1import{c as C,I as M,J as z,B as D,r as y,F as e,G as a,a9 as T,ai as N,a5 as v,L as w}from"./index-CiIopJ3_.js";import{S as I}from"./SEO-Ba5BfIjM.js";import{M as k}from"./map-pin-9M1QUXx3.js";import{L as P}from"./loader-circle-BMfOGYHZ.js";import{A as _}from"./arrow-right-B-n7q31k.js";import{C as E}from"./check-Csdjo468.js";import{S as q}from"./sparkles-B6LvF2dq.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const L=C("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 7 * @license lucide-react v0.462.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const S=C("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]),A=["sayHello"],B=async()=>await z.fetch(`*[_type == "sayHello"][0]{ 12 _id, 13 locations 14 }`)||null,F=()=>M({queryKey:A,queryFn:B,staleTime:1e3*60*10}),Y=({children:f,scaling:o=.1})=>{const n=v(0),c=v(0),m=w(n,{stiffness:150,damping:15}),t=w(c,{stiffness:150,damping:15}),p=g=>{const{clientX:i,clientY:d,currentTarget:j}=g,{left:x,top:s,width:l,height:h}=j.getBoundingClientRect(),r=x+l/2,b=s+h/2;n.set((i-r)*o),c.set((d-b)*o)},u=()=>{n.set(0),c.set(0)};return e.jsx(a.div,{onMouseMove:p,onMouseLeave:u,style:{x:m,y:t},children:f})},X=()=>{const{isLowPower:f}=D(),[o,n]=y.useState(!1),[c,m]=y.useState(!1),[t,p]=y.useState({fullName:"",email:"",phone:"",message:""}),u=async s=>{s.preventDefault(),n(!0);const l=new FormData;l.append("fullName",t.fullName),l.append("email",t.email),l.append("phone",t.phone),l.append("message",t.message);const h="https://7ty7-backend-mail.vercel.app/api/sayhello";try{console.log("[SayHello API] Posting to:",h);const r=await fetch(h,{method:"POST",body:l});if(r.ok)m(!0),N.success("Message Cast Successfully!");else{const b=await r.json().catch(()=>({}));N.error(b.message||"Failed to send message.")}}catch(r){console.error("Submission error:",r),N.error("Could not connect to the server.")}finally{n(!1)}},g=()=>{m(!1),p({fullName:"",email:"",phone:"",message:""})},i=s=>{p({...t,[s.target.name]:s.target.value})},{data:d,isLoading:j}=F(),x=(d==null?void 0:d.locations)||[];return e.jsxs("div",{className:"relative min-h-screen lg:h-screen w-full bg-white font-serif text-slate-900 selection:bg-[#e5a5dd] selection:text-[#4a1842] overflow-x-hidden lg:overflow-hidden flex flex-col",children:[e.jsx(I,{title:"Contact Us | 7ty7 Entertainment",description:"Get in touch with 7ty7 Entertainment for world-class experiential events, entertainment solutions, and marketing strategies."}),e.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[e.jsx("div",{className:"absolute top-20 left-10 w-24 h-24 text-[#933083]/10",children:e.jsxs("svg",{viewBox:"0 0 100 100",className:"w-full h-full",children:[e.jsx("circle",{cx:"50",cy:"50",r:"45",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"5,5"}),e.jsx("circle",{cx:"50",cy:"50",r:"30",fill:"none",stroke:"currentColor",strokeWidth:"1.5"})]})}),e.jsx("div",{className:"absolute top-[28%] left-[5%] w-12 h-12 text-[#933083]/10 animate-pulse hidden lg:block",children:e.jsx("svg",{viewBox:"0 0 100 100",className:"w-full h-full",children:e.jsx("path",{d:"M50 10 L60 40 L90 50 L60 60 L50 90 L40 60 L10 50 L40 40 Z",fill:"currentColor"})})}),e.jsx("div",{className:"absolute top-[35%] left-[12%] w-6 h-6 text-[#933083]/15",children:e.jsx("svg",{viewBox:"0 0 100 100",className:"w-full h-full",children:e.jsx("circle",{cx:"50",cy:"50",r:"40",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"4 4"})})}),e.jsx("div",{className:"absolute top-40 right-[10%] w-16 h-16 text-[#933083]/15",children:e.jsx("svg",{viewBox:"0 0 100 100",className:"w-full h-full",children:e.jsx("path",{d:"M50 0L61 39L100 50L61 61L50 100L39 61L0 50L39 39Z",fill:"currentColor"})})}),e.jsx("div",{className:"absolute bottom-[20%] left-[-2%] w-48 h-24 text-[#933083]/10 rotate-[-15deg]",children:e.jsxs("svg",{viewBox:"0 0 200 100",className:"w-full h-full",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[e.jsx("path",{d:"M0,50 Q25,20 50,50 T100,50 T150,50 T200,50"}),e.jsx("path",{d:"M0,70 Q25,40 50,70 T100,70 T150,70 T200,70",strokeOpacity:"0.5",strokeDasharray:"4 4"})]})}),e.jsx("div",{className:"absolute top-1/2 right-10 -translate-y-1/2 w-32 h-64 text-[#933083]/10 opacity-30",children:e.jsx("div",{className:"w-full h-full",style:{backgroundImage:"radial-gradient(currentColor 2px, transparent 2px)",backgroundSize:"24px 24px"}})}),e.jsx("div",{className:"absolute bottom-10 left-1/2 -translate-x-1/2 w-12 h-12 text-[#933083]/20",children:e.jsx("svg",{viewBox:"0 0 100 100",className:"w-full h-full",children:e.jsx("circle",{cx:"50",cy:"50",r:"40",fill:"none",stroke:"currentColor",strokeWidth:"8",strokeDasharray:"1 15",strokeLinecap:"round"})})})]}),e.jsx("section",{className:"relative flex-1 flex items-start pt-24 sm:pt-28 md:pt-28 lg:pt-28 xl:pt-36 2xl:pt-44 pb-10 px-2 sm:px-4 md:px-12 z-10 overflow-visible",children:e.jsx("div",{className:"container mx-auto max-w-7xl xl:max-w-[1440px] flex flex-col",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-1 lg:grid-cols-12 gap-8 md:gap-12 lg:gap-10 xl:gap-12 items-stretch h-full",children:[e.jsxs(a.div,{initial:{opacity:0,y:20}
14,animate:{opacity:1,y:0},className:"lg:col-span-6 flex flex-col gap-4",children:[e.jsxs("div",{className:"shrink-0",children:[e.jsxs("h2",{className:"text-4xl sm:text-5xl md:text-6xl lg:text-[3.5rem] xl:text-7xl 2xl:text-8xl font-serif leading-[0.95] mb-4",children:[e.jsx(a.span,{className:"inline-block",animate:{backgroundPosition:["0% 50%","100% 50%","0% 50%"]},transition:{duration:6,repeat:1/0,ease:"linear"},children:"Get in"}),e.jsx("br",{}),e.jsx(a.span,{className:"inline-block font-bold bg-clip-text text-transparent bg-gradient-to-r from-[#e5a5dd] via-[#4a1842] to-[#933083] animate-gradient pb-[0.08em]",style:{backgroundSize:"200% 200%"},animate:{backgroundPosition:["0% 50%","100% 50%","0% 50%"]},transition:{duration:6,repeat:1/0,ease:"linear"},children:"Touch"})]}),e.jsx(a.div,{initial:{width:0},whileInView:{width:"100px"},transition:{delay:.5,duration:1},viewport:{once:!0},className:"h-[3px] bg-gradient-to-r from-primary to-transparent rounded-full relative z-10"})]}),e.jsx("div",{className:"flex flex-col gap-4 lg:gap-6 pl-1 min-h-[300px]",children:j?e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"h-20 w-3/4 bg-slate-100 rounded animate-pulse"}),e.jsx("div",{className:"h-20 w-1/2 bg-slate-100 rounded animate-pulse"})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-8 lg:gap-10",children:x.slice(0,2).map(s=>e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[#933083]",children:[e.jsx(k,{size:14,strokeWidth:2.5}),e.jsx("h3",{className:"text-sm font-black text-slate-900 tracking-widest font-serif",children:s.city})]}),e.jsx("a",{href:`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(s.address)}`,target:"_blank",rel:"noopener noreferrer",className:"block group/addr no-underline",children:e.jsx("p",{className:"text-[13px] font-serif font-light leading-relaxed text-slate-800 group-hover/addr:text-[#933083] transition-colors max-w-[240px]",children:s.address})}),e.jsxs("div",{className:"pt-0.5 space-y-1",children:[s.phone&&e.jsxs("a",{href:`tel:${s.phone.replace(/[^\d+]/g,"")}`,className:"flex items-center gap-2 text-[12px] font-sans font-black tracking-widest text-slate-900 transition-colors no-underline font-light",children:[e.jsx(S,{size:15,className:"text-[#933083]/70"})," ",s.phone]}),s.email&&e.jsxs("a",{href:`mailto:${s.email}`,className:"flex items-center gap-2 text-[12px] font-serif font-bold text-slate-900 transition-colors no-underline font-light",children:[e.jsx(L,{size:15,className:"text-[#933083]/70"})," ",s.email]})]})]},s.city))}),x.length>2&&(()=>{const s=x[2];return e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[#933083]",children:[e.jsx(k,{size:14,strokeWidth:2.5}),e.jsx("h3",{className:"text-sm font-black text-slate-900 tracking-widest font-serif",children:s.city})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("a",{href:`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(s.address)}`,target:"_blank",rel:"noopener noreferrer",className:"block group/addr no-underline",children:e.jsx("p",{className:"text-[13px] font-serif font-medium leading-relaxed text-slate-800 group-hover/addr:text-[#933083] transition-colors max-w-[320px]",children:s.address})}),e.jsxs("div",{className:"flex flex-col gap-1 pt-0.5",children:[s.phone&&e.jsxs("a",{href:`tel:${s.phone.replace(/[^\d+]/g,"")}`,className:"flex items-center gap-2 text-[12px] font-sans font-black tracking-widest text-black transition-colors no-underline font-light",children:[e.jsx(S,{size:15,className:"text-[#933083]/70"})," ",s.phone]}),s.email&&e.jsxs("a",{href:`mailto:${s.email}`,className:"flex items-center gap-2 text-[12px] font-serif font-bold text-black transition-colors no-underline font-light",children:[e.jsx(L,{size:15,className:"text-[#933083]/70"})," ",s.email]})]})]})]})})()]})})]}),e.jsx(a.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},className:"lg:col-span-6 h-full flex flex-col mt-6 lg:mt-0",children:e.jsx("div",{className:"flex-1 bg-white/70 backdrop-blur-2xl border border-white rounded-[2rem] px-3 py-6 sm:px-8 sm:py-8 lg:py-6 lg:px-8 xl:py-8 xl:px-12 shadow-[0_40px_80px_rgba(147,48,131,0.08)] flex flex-col justify-center m-0",children:e.jsx(T,{mode:"wait",children:c?e.jsxs(a.div,{initial:{scale:.9,opacity:0}
14,animate:{scale:1,opacity:1},className:"flex flex-col items-center text-center py-6",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-[#933083] flex items-center justify-center mb-4 shadow-lg shadow-[#933083]/20",children:e.jsx(E,{size:28,className:"text-white"})}),e.jsx("h3",{className:"text-2xl font-serif font-black mb-1",children:"Message Cast!"}),e.jsx("p",{className:"text-slate-500 text-xs mb-6",children:"Your vision is in our orbit."}),e.jsxs("button",{onClick:g,className:"text-[#933083] font-serif font-bold text-[10px] tracking-widest flex items-center gap-2 hover:underline",children:[e.jsx(q,{size:12})," Send Another"]})]},"success"):e.jsx(a.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"space-y-4",children:e.jsxs("form",{onSubmit:u,className:"space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"text-[12px] font-black text-slate-900 tracking-widest ml-1 opacity-80",children:"Full Name"}),e.jsx("input",{name:"fullName",required:!0,value:t.fullName,onChange:i,placeholder:"John Doe",className:"w-full bg-slate-50/50 border border-slate-100 rounded-xl px-4 py-2.5 text-sm focus:ring-4 focus:ring-[#933083]/5 focus:outline-none font-serif transition-all"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"text-[12px] font-black text-slate-900 tracking-widest ml-1 opacity-80",children:"Email"}),e.jsx("input",{name:"email",type:"email",required:!0,value:t.email,onChange:i,placeholder:"[email protected]",className:"w-full bg-slate-50/50 border border-slate-100 rounded-xl px-4 py-2.5 text-sm focus:ring-4 focus:ring-[#933083]/5 focus:outline-none font-serif transition-all"})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"text-[12px] font-black text-slate-900 tracking-widest ml-1 opacity-80",children:"Phone"}),e.jsx("input",{name:"phone",type:"tel",required:!0,value:t.phone,onChange:i,placeholder:"+91 00000 00000",className:"w-full bg-slate-50/50 border border-slate-100 rounded-xl px-4 py-2.5 text-sm focus:ring-4 focus:ring-[#933083]/5 focus:outline-none font-serif transition-all"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"text-[12px] font-black text-slate-900 tracking-widest ml-1 opacity-80",children:"Message"}),e.jsx("textarea",{name:"message",rows:2,value:t.message,onChange:i,placeholder:"Type here...",className:"w-full bg-slate-50/50 border border-slate-100 rounded-xl px-4 py-3 text-sm focus:ring-4 focus:ring-[#933083]/5 focus:outline-none font-serif resize-none transition-all"})]}),e.jsx(Y,{scaling:.03,children:e.jsx("button",{disabled:o,className:"w-full py-4 mt-2 bg-slate-900 text-white rounded-2xl font-serif font-bold text-[13px] hover:bg-[#933083] transition-all flex items-center justify-center gap-3 group active:scale-95 disabled:opacity-70 shadow-lg",children:o?e.jsx(P,{className:"animate-spin w-4 h-4"}):e.jsxs(e.Fragment,{children:["Submit ",e.jsx(_,{size:14,className:"group-hover:translate-x-1 transition-transform"})]})})})]})},"form")})})})]})})})]})};export{X 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.