(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{88563:(e,t,s)=>{Promise.resolve().then(s.bind(s,53468))},53468:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>k});var a=s(95155),r=s(12115),l=s(4049),n=s(7468),i=s(48173),c=s.n(i),o=s(5565),d=s(33687),x=s(95935);function m(){let e=(0,r.useRef)(null);return(0,r.useEffect)(()=>{e.current&&e.current.play()},[]),(0,a.jsxs)("div",{className:"absolute inset-0 w-full h-full overflow-hidden",children:[(0,a.jsx)("video",{ref:e,className:"absolute inset-0 w-full h-full object-cover",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,children:(0,a.jsx)("source",{src:"/hero-section-video/2022395-hd_1920_1080_30fps.mp4",type:"video/mp4"})}),(0,a.jsx)("div",{className:"absolute inset-0 bg-black/50"})]})}var u=s(24572),f=s(2076),h=s(54658),v=s(9211),p=s(120),j=s(52897),b=s(37195),g=s(54333),N=s(95389),w=s(60728);s(45187);var y=s(47370);function E(){let{events:e,loading:t,error:s}=(0,p.L)(),r=new Date,n=null==e?void 0:e.filter(e=>new Date(e.end_date)>r);return t?(0,a.jsx)("div",{className:"min-h-screen bg-black text-white flex flex-col items-center justify-center px-4",children:(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 max-w-6xl w-full",children:[void 0,void 0,void 0].map((e,t)=>(0,a.jsxs)("div",{className:"p-4 border border-gray-700 rounded-lg shadow-md w-full",children:[(0,a.jsx)(v.E,{className:"w-full h-48 rounded-lg mb-4"}),(0,a.jsx)(v.E,{className:"w-3/4 h-6 mb-3"}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2 mb-4",children:[(0,a.jsx)(v.E,{className:"w-1/3 h-5"}),(0,a.jsx)(v.E,{className:"w-1/4 h-5"})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)(v.E,{className:"w-24 h-10 rounded"}),(0,a.jsx)(v.E,{className:"w-24 h-10 rounded"})]})]},t))})}):s?(0,a.jsx)("p",{children:"Error loading events."}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{className:"text-4xl font-bold mb-12 text-center text-blue-600",children:"Upcoming Events"}),(0,a.jsx)("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-7xl mx-auto",children:n.length>0?n.map((e,t)=>{var s,r;return(0,a.jsx)(l.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.1*t},viewport:{once:!0},whileHover:{scale:1.05,zIndex:1},className:"relative",children:(0,a.jsx)(c(),{href:"/events/".concat(e.id),children:(0,a.jsx)(w.Zp,{className:"bg-zinc-800 border-2 border-blue-600 overflow-hidden h-full shadow-lg shadow-blue-600/20",children:(0,a.jsxs)(w.Wu,{className:"p-0 flex flex-col h-full",children:[(0,a.jsx)("div",{className:"relative h-48",children:(0,a.jsx)(o.default,{src:"".concat("https://storage.googleapis.com/xenon-lyceum-442506-i4.appspot.com/midas%20promotions%20event%20images/").concat(e.bucketImages.large),alt:e.title,fill:!0,className:"object-cover"})}),(0,a.jsxs)("div",{className:"p-6 flex flex-col flex-grow",children:[(0,a.jsx)("h3",{className:"text-2xl font-bold mb-2 text-blue-600",children:e.title}),(0,a.jsxs)("div",{className:"flex items-center text-sm text-gray-300 mb-2",children:[(0,a.jsx)(j.A,{className:"w-4 h-4 mr-2 text-blue-600"}),(0,a.jsx)("span",{children:new Date(e.start_date).toLocaleDateString()})]}),(0,a.jsxs)("div",{className:"flex items-center text-sm text-gray-300 mb-2",children:[(0,a.jsx)(b.A,{className:"w-4 h-4 mr-2 text-blue-600"}),(0,a.jsx)("span",{children:new Date(e.start_date).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]}),(0,a.jsxs)("div",{className:"flex items-center text-sm text-gray-300 mb-4",children:[(0,a.jsx)(g.A,{className:"w-4 h-4 mr-2 text-blue-600"}),(0,a.jsxs)("span",{children:[null===(s=e.venue)||void 0===s?void 0:s.city,", ",null===(r=e.venue)||void 0===r?void 0:r.country]})]}),(0,a.jsx)("p",{className:"text-gray-300 mb-4 flex-grow",dangerouslySetInnerHTML:{__html:e.description.slice(0,100)+"..."}}),(0,a.jsxs)("div",{className:"flex items-center justify-between mt-auto",children:[(0,a.jsx)("div",{}),(0,a.jsx)(y.$,{className:"bg-blue-600 text-black hover:bg-yellow-600",children:"View"})]})]})]})})})},e.id)}):(0,a.jsxs)(l.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"col-span-full text-center",children:[(0,a.jsx)("p",{className:"text-2xl text-blue-500 font-semibold",children:"More events are coming up... stay tuned!"}),(0,a.jsx)(l.P.div,{animate:{scale:[1,1.1,1]},transition:{duration:2,repeat:Number.POSITIVE_INFINITY,ease:"easeInOut"},className:"mt-8",children:(0,a.jsx)(N.A,{className:"w-16 h-16 mx-auto text-blue-500"})})]})})]})}function k(){let e=(0,r.useRef)(null),{scrollYProgress:t}=(0,n.L)({target:e,offset:["start end","end start"]});(0,r.useEffect)(()=>{(0,d.Tzs)({icons:x})},[]);let{events:s,loading:i,error:c}=(0,p.L)();return console.log(s),(0,a.jsxs)("div",{className:"min-h-screen bg-black text-white",ref:e,children:[(0,a.jsx)(u.A,{}),(0,a.jsx)(f.A,{}),(0,a.jsxs)("section",{className:"relative h-screen",children:[(0,a.jsx)(m,{}),(0,a.jsx)("div",{className:"relative min-h-screen bg-transparent overflow-hidden",children:(0,a.jsxs)("div",{className:"relative z-10 flex flex-col items-center justify-center min-h-screen px-4 text-white",children:[(0,a.jsxs)(l.P.h1,{className:"text-4xl md:text-6xl font-bold tracking-wider text-center mb-4",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},children:[(0,a.jsx)("span",{className:"block transform hover:scale-105 transition-transform duration-300 text-zinc-100",children:"CREATING"}),(0,a.jsx)("span",{className:"block transform hover:scale-105 transition-transform duration-300 text-blue-600",children:"UNFORGETTABLE"}),(0,a.jsx)("span",{className:"block transform hover:scale-105 transition-transform duration-300 text-zinc-100",children:"LIVE EXPERIENCES"})]}),(0,a.jsx)(l.P.p,{className:"text-lg md:text-xl text-zinc-400 font-light text-center max-w-2xl",initial:{opacity:0},animate:{opacity:1},transition:{delay:.5,duration:1},children:"Your premier entertainment partner in Asia"}),(0,a.jsx)(l.P.div,{className:"w-16 h-1 bg-blue-600 mt-6",initial:{width:0},animate:{width:64},transition:{delay:1,duration:.8}})]})})]}),(0,a.jsx)(l.P.section,{className:"py-20 px-4 md:px-8 bg-gradient-to-b from-black to-zinc-900",initial:{opacity:0},whileInView:{opacity:1},transition:{duration:.8},viewport:{once:!0},id:"upcoming-events",children:(0,a.jsx)(E,{})}),(0,a.jsx)(h.A,{})]})}(0,l.P)(c())},45187:(e,t,s)=>{"use strict";s.d(t,{E:()=>i});var a=s(95155);s(12115);var r=s(31027),l=s(77849);let n=(0,r.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:t,variant:s,...r}=e;return(0,a.jsx)("div",{className:(0,l.cn)(n({variant:s}),t),...r})}},60728:(e,t,s)=>{"use strict";s.d(t,{Wu:()=>i,Zp:()=>n});var a=s(95155),r=s(12115),l=s(77849);let n=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...r})});n.displayName="Card",r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",s),...r})}).displayName="CardHeader",r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("font-semibold leading-none tracking-tight",s),...r})}).displayName="CardTitle",r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",s),...r})}).displayName="CardDescription";let i=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("p-6 pt-0",s),...r})});i.displayName="CardContent",r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("flex items-center p-6 pt-0",s),...r})}).displayName="CardFooter"},9211:(e,t,s)=>{"use strict";s.d(t,{E:()=>l});var a=s(95155),r=s(77849);function l(e){let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-gray-700",t),...s})}},120:(e,t,s)=>{"use strict";s.d(t,{EventProvider:()=>n,L:()=>i});var a=s(95155),r=s(12115);let l=(0,r.createContext)();function n(e){let{children:t}=e,[s,n]=(0,r.useState)([]),[i,c]=(0,r.useState)(!0),[o,d]=(0,r.useState)(null),[x,m]=(0,r.useState)([]),[u,f]=(0,r.useState)(!0),[h,v]=(0,r.useState)(null);return(0,r.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/all_events");if(!e.ok)throw Error(e.statusText);let t=await e.json();n(t.events)}catch(e){d(e)}finally{c(!1)}})()},[]),(0,r.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/all_media");if(!e.ok)throw Error(e.statusText);let t=await e.json();m(t)}catch(e){v(e)}finally{f(!1)}})()},[]),(0,a.jsx)(l.Provider,{value:{events:s,loading:i,error:o,media:x,mediaLoading:u,mediaError:h},children:t})}function i(){return(0,r.useContext)(l)}}},e=>{var t=t=>e(e.s=t);e.O(0,[212,498,721,704,441,517,358],()=>t(88563)),_N_E=e.O()}]);