(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[336],{72083:(e,s,l)=>{Promise.resolve().then(l.bind(l,73598))},73598:(e,s,l)=>{"use strict";l.r(s),l.d(s,{default:()=>w});var t=l(95155),a=l(12115),i=l(5565),n=l(48173),r=l.n(n),c=l(4049),d=l(33687),o=l(95935),x=l(52897),m=l(37195),u=l(54333),h=l(78147),v=l(47370),b=l(9211),f=l(120),j=l(56457),p=l(24572),g=l(2076),N=l(54658);function w(e){var s,l;let{params:n}=e,w=(0,a.use)(n),{events:y,loading:E,error:k}=(0,f.L)();if((0,a.useEffect)(()=>{(0,d.Tzs)({icons:o})},[]),E)return(0,t.jsxs)("div",{className:"min-h-screen bg-black text-white",children:[(0,t.jsx)(p.A,{}),(0,t.jsx)(g.A,{}),(0,t.jsxs)("div",{className:"max-w-4xl mx-auto px-4 py-20",children:[(0,t.jsx)(b.E,{className:"w-full h-[400px] rounded-lg mb-8"}),(0,t.jsx)(b.E,{className:"w-3/4 h-12 mb-4"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-4 mb-6",children:[void 0,void 0,void 0,void 0].map((e,s)=>(0,t.jsx)(b.E,{className:"w-32 h-6"},s))}),[void 0,void 0,void 0,void 0,void 0].map((e,s)=>(0,t.jsx)(b.E,{className:"w-full h-6 mb-2"},s)),(0,t.jsxs)("div",{className:"flex justify-between items-center mt-8",children:[(0,t.jsx)(b.E,{className:"w-32 h-10"}),(0,t.jsx)(b.E,{className:"w-32 h-10"})]})]}),(0,t.jsx)(N.A,{})]});let A=null==y?void 0:y.find(e=>(null==e?void 0:e.id)==(null==w?void 0:w.id)),_=function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["p","b","i","em","strong","a","ul","ol","li","br"],l=(e=String(e||"")).replace(/(srcset|sizes)="[^"]*"/g,"");return(l=j.A.sanitize(l,{ALLOWED_TAGS:s,ALLOWED_ATTR:["href","target","rel"]})).replace(/<p>/g,'<p class="mb-4">').replace(/<ul>/g,'<ul class="list-disc pl-5 mb-4">').replace(/<ol>/g,'<ol class="list-decimal pl-5 mb-4">').replace(/<li>/g,'<li class="mb-2">').replace(/<a /g,'<a class="text-yellow-500 hover:underline" ').replace(/<strong>|<b>/g,'<strong class="font-bold">').replace(/<em>|<i>/g,'<em class="italic">')}(null==A?void 0:A.description);return null==A?(0,t.jsx)("div",{className:"min-h-screen bg-black text-white flex flex-col items-center justify-center px-4",children:(0,t.jsxs)(c.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"text-center",children:[(0,t.jsx)("h1",{className:"text-4xl font-bold mb-4 text-blue-500",children:"Event not found"}),(0,t.jsx)("p",{className:"text-xl mb-8",children:"The event you're looking for doesn't exist or has been removed."}),(0,t.jsx)(r(),{href:"/",children:(0,t.jsx)(v.$,{className:"bg-blue-500 text-black hover:bg-blue-600",children:"Return to Home"})})]})}):(0,t.jsxs)("div",{className:"min-h-screen bg-black text-white",children:[(0,t.jsx)(p.A,{}),(0,t.jsx)(g.A,{}),(0,t.jsx)("div",{className:"max-w-6xl mx-auto px-4 pt-32 pb-20",children:(0,t.jsx)(c.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},children:(0,t.jsxs)("div",{className:"flex flex-col md:flex-row gap-x-12 items-center",children:[(0,t.jsx)(i.default,{src:(null==A?void 0:null===(s=A.bucketImages)||void 0===s?void 0:s.large)?"".concat("https://storage.googleapis.com/xenon-lyceum-442506-i4.appspot.com/midas%20promotions%20event%20images/").concat(A.bucketImages.large):"/placeholder.svg",alt:(null==A?void 0:A.title)||"Event image",width:800,height:500,className:"w-full md:w-2/3 h-auto rounded-lg"}),(0,t.jsxs)("div",{className:"w-full md:w-2/3",children:[(0,t.jsx)("h1",{className:"text-4xl md:text-5xl font-bold mb-4 text-blue-600",children:null==A?void 0:A.title}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-4 mb-6",children:[(0,t.jsxs)("div",{className:"flex items-center text-gray-300",children:[(0,t.jsx)(x.A,{className:"w-5 h-5 mr-2 text-blue-600"}),(0,t.jsx)("span",{children:null==A?void 0:A.start_date.split("T")[0]})]}),(0,t.jsxs)("div",{className:"flex items-center text-gray-300",children:[(0,t.jsx)(m.A,{className:"w-5 h-5 mr-2 text-blue-600"}),(0,t.jsx)("span",{children:null==A?void 0:A.start_date.split("T")[1]})]}),(0,t.jsxs)("div",{className:"flex items-center text-gray-300",children:[(0,t.jsx)(u.A,{className:"w-5 h-5 mr-2 text-blue-600"}),(0,t.jsx)("span",{children:null==A?void 0:null===(l=A.venue)||void 0===l?void 0:l.address})]}),(0,t.jsxs)("div",{className:"flex items-center text-gray-300",children:[(0,t.jsx)(h.A,{className:"w-5 h-5 mr-2 text-blue-600"}),(0,t.jsxs)("span",{children:["Starting from ",(null==A?void 0:A.ticketPrice)||"TBA"]})]})]}),(0,t.jsx)("div",{className:"prose prose-invert max-w-none mb-8",dangerouslySetInnerHTML:{__html:_}}),(0,t.jsxs)("div",{className:"flex justify-between items-center",children:[(0,t.jsx)(r(),{href:"/",children:(0,t.jsx)(v.$,{variant:"outline",className:"border-blue-600 text-blue-600 hover:bg-blue-600 hover:text-black",children:"Back to Events"})}),(0,t.jsx)(v.$,{className:"bg-blue-600 text-black hover:bg-yellow-600",children:"Get Tickets"})]})]})]})})}),(0,t.jsx)(N.A,{})]})}},9211:(e,s,l)=>{"use strict";l.d(s,{E:()=>i});var t=l(95155),a=l(77849);function i(e){let{className:s,...l}=e;return(0,t.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-md bg-gray-700",s),...l})}},120:(e,s,l)=>{"use strict";l.d(s,{EventProvider:()=>n,L:()=>r});var t=l(95155),a=l(12115);let i=(0,a.createContext)();function n(e){let{children:s}=e,[l,n]=(0,a.useState)([]),[r,c]=(0,a.useState)(!0),[d,o]=(0,a.useState)(null),[x,m]=(0,a.useState)([]),[u,h]=(0,a.useState)(!0),[v,b]=(0,a.useState)(null);return(0,a.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/all_events");if(!e.ok)throw Error(e.statusText);let s=await e.json();n(s.events)}catch(e){o(e)}finally{c(!1)}})()},[]),(0,a.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/all_media");if(!e.ok)throw Error(e.statusText);let s=await e.json();m(s)}catch(e){b(e)}finally{h(!1)}})()},[]),(0,t.jsx)(i.Provider,{value:{events:l,loading:r,error:d,media:x,mediaLoading:u,mediaError:v},children:s})}function r(){return(0,a.useContext)(i)}}},e=>{var s=s=>e(e.s=s);e.O(0,[212,498,257,704,441,517,358],()=>s(72083)),_N_E=e.O()}]);