(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[787],{59601:(e,s,a)=>{Promise.resolve().then(a.bind(a,2094))},2094:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>T});var t=a(95155),i=a(58803),n=a.n(i),l=a(12115),r=a(5565),c=a(4049),d=a(33687),o=a(95935),m=a(85060),x=a(69606),b=a(43415),h=a(77711),g=a(47370),u=a(65268),j=a(96894),p=a(84328),f=a(98930),y=a(99398),w=a(16124),N=a(54658),v=a(24572),z=a(2076);(0,h.default)(()=>Promise.all([a.e(950),a.e(367),a.e(831),a.e(804),a.e(594),a.e(30)]).then(a.bind(a,20684)),{loadableGenerated:{webpack:()=>[20684]},ssr:!1});let k=b.Ik({name:b.Yj().min(2,{message:"Name must be at least 2 characters."}),email:b.Yj().email({message:"Please enter a valid email address."}),reason:b.Yj({required_error:"Please select a reason for contact."}),message:b.Yj().min(10,{message:"Message must be at least 10 characters."})}),P=["Partnership and Collaboration","Event Details and Concerns","Internships and Job inquiries","Payment Procedures","Ticketing and Refund","Others"],C=[{name:"Vietnam",lat:14.0583,lng:108.2772},{name:"Thailand",lat:15.87,lng:100.9925},{name:"Philippines",lat:12.8797,lng:121.774},{name:"Hong Kong",lat:22.3193,lng:114.1694},{name:"Singapore",lat:1.3521,lng:103.8198}],E=C.reduce((e,s)=>e+s.lat,0)/C.length,S=C.reduce((e,s)=>e+s.lng,0)/C.length;function T(){let{toast:e}=(0,y.dj)(),[s,a]=(0,l.useState)(!1),[i,b]=(0,l.useState)(!1),h=(0,l.useRef)(),[C,T]=(0,l.useState)(1024);(0,l.useEffect)(()=>{{let e=()=>T(window.innerWidth);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}},[]),(0,l.useEffect)(()=>{(0,d.Tzs)({icons:o})},[]);let M=()=>{h.current&&setTimeout(()=>{h.current.pointOfView({lat:E,lng:S,altitude:2.5},0)},100)};(0,l.useEffect)(()=>{M();let e=setTimeout(M,100),s=setTimeout(M,500),a=setTimeout(M,1e3);return()=>{clearTimeout(e),clearTimeout(s),clearTimeout(a)}},[i]);let _=(0,x.mN)({resolver:(0,m.u)(k),defaultValues:{name:"",email:"",message:""}});async function R(s){a(!0);try{if((await fetch("/api/send_contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:s.name,email:s.email,subject:s.reason,message:s.message})})).ok)e({title:"Message sent successfully!",description:"We'll get back to you as soon as possible."}),_.reset();else throw Error("Failed to send message")}catch(s){e({title:"Error",description:"Something went wrong. Please try again.",variant:"destructive"})}finally{a(!1)}}return(0,t.jsxs)("div",{className:"jsx-46d1e7b4eb8f89ce min-h-screen bg-black text-white",children:[(0,t.jsx)(v.A,{}),(0,t.jsx)(z.A,{}),(0,t.jsxs)("div",{className:"jsx-46d1e7b4eb8f89ce w-full max-w-[95%] sm:max-w-[90%] lg:max-w-[85%] xl:max-w-[80%] mx-auto px-4 pt-20 pb-6 sm:py-10 md:py-16",children:[(0,t.jsxs)(c.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center mb-12",children:[(0,t.jsx)("h1",{className:"jsx-46d1e7b4eb8f89ce text-4xl md:text-5xl font-bold mb-4  text-blue-500",children:"Contact Us"}),(0,t.jsx)("p",{className:"jsx-46d1e7b4eb8f89ce text-gray-400 text-lg",children:"Have a question or need assistance? We're here to help!"})]}),(0,t.jsxs)("div",{className:"jsx-46d1e7b4eb8f89ce grid grid-cols-1 lg:grid-cols-2 gap-6 lg:gap-10 mb-8",children:[(0,t.jsx)(c.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},className:"bg-zinc-900 p-5 sm:p-6 md:p-8 rounded-lg border border-blue-600/20",children:(0,t.jsx)(u.lV,{..._,children:(0,t.jsxs)("form",{onSubmit:_.handleSubmit(R),className:"jsx-46d1e7b4eb8f89ce space-y-6",children:[(0,t.jsxs)("div",{className:"jsx-46d1e7b4eb8f89ce grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,t.jsx)(u.zB,{control:_.control,name:"name",render:e=>{let{field:s}=e;return(0,t.jsxs)(u.eI,{children:[(0,t.jsx)(u.lR,{children:"Name"}),(0,t.jsx)(u.MJ,{children:(0,t.jsx)(j.p,{placeholder:"Your name",...s,className:"bg-zinc-800 border-zinc-700"})}),(0,t.jsx)(u.C5,{})]})}}),(0,t.jsx)(u.zB,{control:_.control,name:"email",render:e=>{let{field:s}=e;return(0,t.jsxs)(u.eI,{children:[(0,t.jsx)(u.lR,{children:"Email"}),(0,t.jsx)(u.MJ,{children:(0,t.jsx)(j.p,{placeholder:"your.email@example.com",...s,className:"bg-zinc-800 border-zinc-700"})}),(0,t.jsx)(u.C5,{})]})}})]}),(0,t.jsx)(u.zB,{control:_.control,name:"reason",render:e=>{let{field:s}=e;return(0,t.jsxs)(u.eI,{children:[(0,t.jsx)(u.lR,{children:"Reason for Contact"}),(0,t.jsxs)(f.l6,{onValueChange:s.onChange,defaultValue:s.value,children:[(0,t.jsx)(u.MJ,{children:(0,t.jsx)(f.bq,{className:"bg-zinc-800 border-zinc-700 text-white",children:(0,t.jsx)(f.yv,{placeholder:"Select a reason"})})}),(0,t.jsx)(f.gC,{className:"bg-zinc-800 border-zinc-700",children:P.map(e=>(0,t.jsx)(f.eb,{value:e,className:"text-white hover:bg-blue-600 hover:text-black transition-colors duration-200",children:e},e))})]}),(0,t.jsx)(u.C5,{})]})}}),(0,t.jsx)(u.zB,{control:_.control,name:"message",render:e=>{let{field:s}=e;return(0,t.jsxs)(u.eI,{children:[(0,t.jsx)(u.lR,{children:"Message"}),(0,t.jsx)(u.MJ,{children:(0,t.jsx)(p.T,{placeholder:"How can we help you?",className:"bg-zinc-800 border-zinc-700 min-h-[150px]",...s})}),(0,t.jsx)(u.C5,{})]})}}),(0,t.jsx)("div",{className:"jsx-46d1e7b4eb8f89ce flex justify-end",children:(0,t.jsx)(g.$,{type:"submit",className:"bg-blue-600 text-black hover:bg-yellow-600",disabled:s,children:s?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("i",{"data-lucide":"loader-2",className:"jsx-46d1e7b4eb8f89ce mr-2 h-4 w-4 animate-spin"}),"Sending..."]}):"Send Message"})})]})})}),(0,t.jsxs)(c.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.4},children:[(0,t.jsx)("h2",{className:"jsx-46d1e7b4eb8f89ce text-lg sm:text-xl font-bold mb-3 text-blue-500",children:"Where We Are"}),(0,t.jsx)("div",{className:"jsx-46d1e7b4eb8f89ce h-[280px] sm:h-[300px] md:h-[350px] lg:h-[400px] w-full flex items-center justify-center",children:(0,t.jsx)(r.default,{src:"/contact map image/map.jpeg",alt:"Location Map",width:(C<640?280:C<1024?400:550)-60,height:(C<640?280:C<1024?400:550)-50,className:"rounded-lg"})})]})]}),(0,t.jsx)(c.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.6},className:"grid grid-cols-1 sm:grid-cols-3 gap-4 sm:gap-6 mt-6 sm:mt-0",children:[{icon:"phone",title:"Phone",description:"+65 6324 2521"},{icon:"mail",title:"Email",description:"info@midaspromotions.com"},{icon:"map-pin",title:"Address",description:"123 Entertainment Drive, Singapore"}].map((e,s)=>(0,t.jsxs)("div",{className:"jsx-46d1e7b4eb8f89ce p-4 bg-zinc-900 rounded-lg border border-zinc-800 flex flex-col items-start",children:[(0,t.jsx)("div",{className:"jsx-46d1e7b4eb8f89ce mb-2",children:(0,t.jsx)("i",{"data-lucide":e.icon,className:"jsx-46d1e7b4eb8f89ce h-6 w-6 text-blue-600"})}),(0,t.jsx)("h3",{className:"jsx-46d1e7b4eb8f89ce text-sm sm:text-base font-semibold mb-1 text-blue-400",children:e.title}),(0,t.jsx)("p",{className:"jsx-46d1e7b4eb8f89ce text-xs sm:text-sm text-gray-300",children:e.description})]},s))})]}),(0,t.jsx)(n(),{id:"46d1e7b4eb8f89ce",children:"@media(max-width:640px){nav{position:fixed;top:0;left:0;right:0;z-index:50;background-color:rgba(0,0,0,.8);height:90px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:0 1rem}}"}),(0,t.jsx)(w.l,{}),(0,t.jsx)(N.A,{})]})}}},e=>{var s=s=>e(e.s=s);e.O(0,[212,498,631,725,704,50,441,517,358],()=>s(59601)),_N_E=e.O()}]);