1import{T as U,c as i,b as g,u as n,Z as L,w as b,d as t,g as E,m as v,v as c,o as l,t as d,j as u,F as p,r as y,q as D,s as M,f as O,i as k,e as x,k as h,Q as B,N as S}from"./app-Dgj2QQ2l.js";import{_ as N}from"./AuthenticatedLayout-B1VwJuzi.js";import{U as R}from"./UploadImageComponent-BF4jNxG1.js";import{E as z}from"./Editor-Bzti6fk7.js";import{_ as A}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./ApplicationLogo-I1lf0InU.js";/* empty css */import"./Dropdown-DQNOlvOU.js";import"./ResponsiveNavLink-DJ138h2i.js";const T={class:"container mx-auto"},F={key:0,class:"error-messsage"},H={key:1,class:"error-messsage"},$=["value"],q=["value"],G={key:0,class:"error-messsage"},P={key:0,class:"error-messsage"},Q=["value"],Z={class:"buttons-row"},J={key:0},K={class:"error-messsage"},W={class:"doc-items"},X={key:0,class:"documents"},Y=["href"],_={class:"doc-items"},ee={key:0,class:"documents"},te=["href"],oe={name:"Event"},ne=Object.assign(oe,{props:{levels:Object,divisions:Object,event:Object,eventLogoImage:Object,documentation:Object},setup(a){const r=a,w=h(()=>B().props.errors),j=h(()=>Object.keys(w.value).length>
10),s=U({id:r.event.id??"",title:r.event.title??"",location:r.event.location??"",message:r.event.message??"",level:r.event.level_id??"",division:r.event.division_id??"",startDate:r.event.from??"",closingDate:r.event.to??"",active:!!r.event.active,eventLogoImage:r.eventLogoImage??""}),V=h(()=>r.eventLogoImage[0]?r.eventLogoImage[0].original_url:"/storage/images/empty_logo.jpg"),C=x({year:"numeric",month:"short",day:"numeric"}),f=x({eventDocumentation:[],eventResults:[]}),I=()=>{S.post(route("dashboard.upload-event-doc",r.event.slug),f,{preserveScroll:!0,onSuccess:()=>{f.eventDocumentation=[],f.eventResults=[]}})};return(m,e)=>(l(),i(p,null,[g(n(L),{title:"Event"}),g(N,null,{header:b(()=>[...e[12]||(e[12]=[t("h2",{class:"font-semibold text-xl text-gray-800 leading-tight"},"Event",-1)])]),default:b(()=>[t("section",T,[t("article",null,[t("form",{onSubmit:e[9]||(e[9]=E(o=>n(s).post(m.route("dashboard.save-event")),["prevent"]))},[v(t("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=o=>n(s).title=o),placeholder:"Title"},null,512),[[c,n(s).title]]),n(s).errors.title?(l(),i("div",F,d(n(s).errors.title),1)):u("",!0),t("time",null,"Published: "+d(a.event.created_at?new Intl.DateTimeFormat("en-GB",C).format(new Date(a.event.created_at)):""),1),t("div",null,[e[13]||(e[13]=t("label",{for:"location"},"Location:",-1)),v(t("input",{id:"location","onUpdate:modelValue":e[1]||(e[1]=o=>n(s).location=o),placeholder:"Country, town"},null,512),[[c,n(s).location]])]),g(n(z),{modelValue:n(s).message,"onUpdate:modelValue":e[2]||(e[2]=o=>
1n(s).message=o),"api-key":"4ylgnxz1lx236jxhfz4wrjfntfe35id41nrsnuhzct37pkko",init:{plugins:["lists","table","emoticons","code"],menu:{happy:{title:"Happy",items:"code"}},menubar:"table | happy",toolbar:"undo redo bold italic forecolor emoticons | bullist numlist outdent indent | alignleft aligncenter alignright alignjustify | removeformat | help",content_style:"body { font-family:Helvetica,Arial,sans-serif; font-size:14px }"}},null,8,["modelValue"]),n(s).errors.message?(l(),i("div",H,d(n(s).errors.message),1)):u("",!0),t("div",null,[t("div",null,[e[14]||(e[14]=t("label",{for:"divisions"},"Choose a division:",-1)),v(t("select",{name:"divisions",id:"divisions","onUpdate:modelValue":e[3]||(e[3]=o=>n(s).division=o)},[(l(!0),i(p,null,y(a.divisions,o=>(l(),i("option",{value:o.id},d(o.division),9,$))),256))],512),[[D,n(s).division]])]),t("div",null,[e[15]||(e[15]=t("label",{for:"levels"},"Choose a division:",-1)),v(t("select",{name:"levels",id:"levels","onUpdate:modelValue":e[4]||(e[4]=o=>n(s).level=o)},[(l(!0),i(p,null,y(a.levels,o=>(l(),i("option",{value:o.id},d(o.level),9,q))),256))],512),[[D,n(s).level]])]),t("div",null,[e[16]||(e[16]=t("label",{for:"start"},"Start Date:",-1)),v(t("input",{type:"date",id:"start","onUpdate:modelValue":e[5]||(e[5]=o=>n(s).startDate=o)},null,512),[[c,n(s).startDate]]),n(s).errors.startDate?(l(),i("div",G,d(n(s).errors.startDate),1)):u("",!0)]),t("div",null,[e[17]||(e[17]=t("label",{for:"closing"},"Closing Date:",-1)),v(t("input",{type:"date",id:"closing","onUpdate:modelValue":e[6]||(e[6]=o=>n(s).closingDate=o)},null,512),[[c,n(s).closingDate]]),n(s).errors.closingDate?(l(),i("div",P,d(n(s).errors.closingDate),1)):u("",!0)]),t("div",null,[t("span",null,[v(t("input",{type:"checkbox",id:"active",name:"active","onUpdate:modelValue":e[7]||(e[7]=o=>n(s).active=o),value:n(s).active},null,8,Q),[[M,n(s).active]]),e[18]||(e[18]=t("label",{for:"active"},"Active",-1))]),e[19]||(e[19]=t("div",{class:"secondary-text"},"Event Logo",-1)),g(R,{image:V.value,onUploadedImage:e[8]||(e[8]=o=>n(s).eventLogoImage=o)},null,8,["image"])]),t("div",Z,[e[21]||(e[21]=t("button",{type:"submit",class:"save"},"Save",-1)),a.event.slug?(l(),O(n(k),{key:0,href:m.route("dashboard.delete-event",[a.event.slug])},{default:b(()=>[...e[20]||(e[20]=[t("button",{class:"delete"},"Delete Event",-1)])]),_:1},8,["href"])):u("",!0)])])],32)]),Object.keys(a.event).length>0?(l(),i("div",J,[e[24]||(e[24]=t("p",{class:"secondary-text"},"Documentations",-1)),j.value?(l(!0),i(p,{key:0},y(w.value,o=>(l(),i("div",K,d(o),1))),256)):u("",!0),e[25]||(e[25]=t("div",{class:"tertiary-text"},"Add Invitation",-1)),t("input",{type:"file",onChange:e[10]||(e[10]=o=>f.eventDocumentation=o.target.files[0])},null,32),(l(!0),i(p,null,y(a.documentation,o=>(l(),i("div",W,[t("ul",null,[o.collection_name==="eventDocumentation"?(l(),i("li",X,[t("a",{href:m.route("download-documentation",o.file_name)},d(o.name),9,Y),g(n(k),{href:m.route("dashboard.delete-event-doc",o.file_name),method:"post","preserve-scroll":""},{default:b(()=>[...e[22]||(e[22]=[t("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},[t("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 7h16m-10 4v6m4-6v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3"})],-1)])]),_:1},8,["href"])])):u("",!0)])]))),256)),e[26]||(e[26]=t("div",{class:"tertiary-text"},"Add Result List",-1)),t("input",{type:"file",onChange:e[11]||(e[11]=o=>f.eventResults=o.target.files[0])},null,32),(l(!0),i(p,null,y(a.documentation,o=>(l(),i("div",_,[t("ul",null,[o.collection_name==="eventResults"?(l(),i("li",ee,[t("a",{href:m.route("download-documentation",o.file_name)},d(o.name),9,te),g(n(k),{href:m.route("dashboard.delete-event-doc",o.file_name),method:"post","preserve-scroll":""},{default:b(()=>[...e[23]||(e[23]=[t("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},[t("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 7h16m-10 4v6m4-6v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3"})],-1)])]),_:1},8,["href"])])):u("",!0)])]))),256)),t("button",{type:"button",class:"save",onClick:I},"Upload")])):u("",!0)])]),_:1})],64))}}),ge=A(ne,[["__scopeId","data-v-f10fa633"]]);export{ge 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.