1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[781],{7647:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/event/[id]",function(){return t(1628)}])},1628:function(e,s,t){"use strict";t.r(s),t.d(s,{__N_SSP:function(){return o}});var l=t(5893),a=t(9582),n=t(1723),r=t(6249),d=t(9140);t(7294);var c=t(1163),i=t(9255),o=!0;s.default=(0,i.Q)(function(e){let{event:s}=e,t=(0,c.useRouter)(),i=n.G.map(e=>({...e,current:"events"===e.name.toLowerCase()})),o=async()=>{try{await d.UA.deleteDocument("64839072e709a24a628c","6483908710749fcd4065",s.$id).then(()=>t.push("/event/my_events"))}catch(e){}};return(0,l.jsx)(a.Z,{navigation:i,userNavigation:n.C,children:(0,l.jsx)("div",{className:"py-6",children:(0,l.jsxs)("div",{className:"p-4 sm:p-6 md:p-12",children:[(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("p",{className:"text-xl xl:text-xl font-semibold pb-4",children:"Edit Event"}),(0,l.jsxs)("div",{className:"flex space-x-4 ",children:[(0,l.jsxs)("button",{onClick:o,className:"text-red-800 border border-red-700 flex items-center rounded-lg px-4 hover:shadow-lg h-10 space-x-2",children:[(0,l.jsx)(r.Z,{className:"h-4 w-4","aria-hidden":"true"}),(0,l.jsx)("p",{className:"text-xs lg:text-sm font-bold",children:"Delete Event"})]}),(0,l.jsx)("button",{href:"/",className:"bg-[#00695c] hover:bg-[#03786a] text-white flex items-center rounded-lg px-4 shadow-lg h-10",children:(0,l.jsx)("p",{className:"text-xs lg:text-sm ",children:"Save event"})})]})]}),(0,l.jsxs)("form",{children:[(0,l.jsxs)("div",{className:"w-full rounded-lg shadow-md border p-10 my-10",children:[(0,l.jsx)("p",{className:"text-xl font-bold",children:"General"}),(0,l.jsx)("p",{className:"text-sm border-b border-gray-200 pt-2 pb-3",children:"Information about the event"}),(0,l.jsxs)("div",{className:"flex py-4 items-center",children:[(0,l.jsx)("label",{className:"w-1/4 font-bold text-sm",children:"Title"}),(0,l.jsx)("input",{className:"rounded-lg border w-1/3 py-2 px-3",defaultValue:s.name})]})," ",(0,l.jsxs)("div",{className:"flex py-4 items-center",children:[(0,l.jsx)("label",{className:"w-1/4 font-bold text-sm",children:"Description"}),(0,l.jsx)("textarea",{className:"rounded-lg border w-1/3 py-2 px-3",defaultValue:s.description})]})," "]}),(0,l.jsxs)("div",{className:"w-full rounded-lg shadow-md border p-10 my-10",children:[(0,l.jsx)("p",{className:"text-xl font-bold",children:"About the event"}),(0,l.jsx)("p",{className:"text-sm border-b border-gray-200 pt-2 pb-3",children:"Information about the event"}),(0,l.jsxs)("div",{className:"flex py-4 items-center",children:[(0,l.jsx)("label",{className:"w-1/4 font-bold text-sm",children:"Location"}),(0,l.jsx)("input",{className:"rounded-lg border w-1/3 py-2 px-3",defaultValue:s.location})]})," ",(0,l.jsxs)("div",{className:"flex py-4 items-center",children:[(0,l.jsx)("label",{className:"w-1/4 font-bold text-sm",children:"Date"}),(0,l.jsx)("input",{className:"rounded-lg border w-1/3 py-2",type:"datetime-local",defaultValue:s.datetime})]})," ",(0,l.jsxs)("div",{className:"flex py-4 items-center",children:[(0,l.jsx)("label",{className:"w-1/4 font-bold text-sm",children:"Time"}),(0,l.jsx)("input",{className:"rounded-lg border w-1/3 py-2 px-3",defaultValue:new Date(s.datetime).getTime()})]})," "]})," ",(0,l.jsxs)("div",{className:"flex space-x-4 ",children:[(0,l.jsxs)("button",{onClick:o,className:"text-red-800 border border-red-700 flex items-center rounded-lg px-4 hover:shadow-lg h-10 space-x-2",children:[(0,l.jsx)(r.Z,{className:"h-4 w-4","aria-hidden":"true"}),(0,l.jsx)("p",{className:"text-xs lg:text-sm font-bold",children:"Delete Event"})]}),(0,l.jsx)("button",{href:"/",className:"bg-[#00695c] hover:bg-[#03786a] text-white flex items-center rounded-lg px-4 shadow-lg h-10",children:(0,l.jsx)("p",{className:"text-xs lg:text-sm ",children:"Save event"})})]})]})]})})})})},6249:function(e,s,t){"use strict";var l=t(7294);let a=l.forwardRef(function({title:e,titleId:s,...t},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":s},t),e?l.createElement("title",{id:s},e):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))});s.Z=a}},function(e){e.O(0,[160,490,733,774,888,179],function(){return e(e.s=7647)}),_N_E=e.O()}]);
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.