1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5128],{5772:(e,a,t)=>{t.d(a,{default:()=>s.a});var r=t(97651),s=t.n(r)},6663:(e,a,t)=>{t.d(a,{A:()=>r});let r=(0,t(78340).A)("youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]])},8238:(e,a,t)=>{t.d(a,{A:()=>r});let r=(0,t(78340).A)("instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]])},16486:(e,a,t)=>{t.d(a,{A:()=>o});var r=t(95155),s=t(12115),i=t(73321),n=t(97697);let o=()=>{let e=[{id:"",name:"Select Destination"},{id:"goa-resorts",name:"Amoravida Resort Goa"},{id:"lonavala-resort",name:"Lonavala"},{id:"jaipur-jal-mahal",name:"Jalmahal, Jaipur"},{id:"aurangabad",name:"Aurangabad"},{id:"jaipur-tonk-road",name:"Jaipur, Tonk road"},{id:"mahape",name:"Mahape, Navi Mumbai"},{id:"nashik",name:"Nashik"},{id:"pune-pimpri",name:"Pune, Pimpri"},{id:"pune-viman-nagar",name:"Pune, Viman Nagar"},{id:"vadodara",name:"Vadodara"},{id:"bikaner-gaj-kesri",name:"Gaj Kesri, Bikaner"},{id:"visakhapatnam",name:"Visakhapatnam"},{id:"khandala",name:"Khandala"},{id:"guruvayur",name:"Guruvayur"}],[a,t]=(0,s.useState)({}),[o,l]=(0,s.useState)(!1),d=(0,i.useParams)(),m=d?.hotelId||"corporate",[u,c]=(0,s.useState)({firstName:"",email:"",phoneNumber:"",subject:"",message:"",destination:""});(0,s.useEffect)(()=>{let a=e.find(e=>e.id===m);a&&c(e=>({...e,destination:a.id}))},[m]);let h=e=>{c(a=>({...a,[e.target.name]:e.target.value})),t(a=>({...a,[e.target.name]:""}))},p=async e=>{try{let a=new FormData;Object.keys(e).forEach(t=>{a.append(t,e[t])});let t=await fetch("https://script.google.com/macros/s/AKfycby6wumwnKMIJewGeKPQX-TeYZwSWcxekIZu4A79Qch224wsKDF_rAoFCpe6BBY6B9gY6g/exec",{method:"POST",body:a}),r=await t.json();return console.log("Data saved to Google Sheets:",r),!0}catch(e){return console.error("Error saving to Google Sheets:",e),!1}},b=async a=>{let r;a.preventDefault();let s=(r={},u.firstName.trim()||(r.firstName="Full Name is required"),u.email.trim()||(r.email="Email is required"),u.phoneNumber.trim()||(r.phoneNumber="Phone Number is required"),u.subject.trim()||(r.subject="Subject is required"),u.destination.trim()||(r.destination="Destination is required"),r);if(Object.keys(s).length>0)return void t(s);l(!0);try{let a=e.find(e=>e.id===u.destination)?.name||u.destination,t=new Date().toISOString().split("T")[0],r={firstName:u.firstName,email:u.email,phoneNumber:u.phoneNumber,subject:u.subject,message:u.message,destination:a,hotelId:m,currentDate:t};await p(r)?(n.oR.success("Form Submitted Successfully"),c({firstName:"",email:"",phoneNumber:"",subject:"",message:"",destination:m})):n.oR.error("Failed to submit form")}catch(e){console.error(e),n.oR.error("Failed to submit form")}finally{l(!1)}};return(0,r.jsxs)("div",{children:[(0,r.jsxs)("form",{onSubmit:b,className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,r.jsx)("input",{type:"hidden",name:"hotelId",value:m}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Full Name"}),(0,r.jsx)("input",{type:"text",name:"firstName",value:u.firstName,onChange:h,placeholder:"John Doe",className:`w-full border ${a.firstName?"border-red-500":"border-gray-300"} rounded-md px-4 py-2 focus:outline-none focus:ring-2 focus:ring-red-500`}),a.firstName&&(0,r.jsx)("p",{className:"text-red-500 text-sm mt-1",children:a.firstName})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Email"}),(0,r.jsx)("input",{type:"email",name:"email",value:u.email,onChange:h,placeholder:"[email protected]",className:`w-full border ${a.email?"border-red-500":"border-gray-300"} rounded-md px-4 py-2 focus:outline-none focus:ring-2 focus:ring-red-500`}),a.email&&(0,r.jsx)("p",{className:"text-red-500 text-sm mt-1",children:a.email})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Phone Number"}),(0,r.jsx)("input",{type:"text",name:"phoneNumber",value:u.phoneNumber,onChange:h,placeholder:"+91 98765 43210",className:`w-full border ${a.phoneNumber?"border-red-500":"border-gray-300"} rounded-md px-4 py-2 focus:outline-none focus:ring-2 focus:ring-red-500`}),a.phoneNumber&&(0,r.jsx)("p",{className:"text-red-500 text-sm mt-1",children:a.phoneNumber})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Subject"}),(0,r.jsx)("input",{type:"text",name:"subject",value:u.subject,onChange:h,placeholder:"Booking Inquiry",className:`w-full border ${a.subject?"border-red-500":"border-gray-300"} rounded-md px-4 py-2 focus:outline-none focus:ring-2 focus:ring-red-500`}),a.subject&&(0,r.jsx)("p",{className:"text-red-500 text-sm mt-1",children:a.subject})]}),(0,r.jsxs)("div",{className:"md:col-span-2",children:[(0,r.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Select Property"}),(0,r.jsx)("select",{name:"destination",value:u.destination,onChange:h,className:"px-0 lg:px-2 py-2 rounded-lg w-full bg-transparent border border-gray-300 outline-none",children:e.map(e=>(0,r.jsx)("option",{value:e.id,children:e.name},e.id))}),a.destination&&(0,r.jsx)("p",{className:"text-red-500 text-sm mt-1",children:a.destination})]}),(0,r.jsxs)("div",{className:"md:col-span-2",children:[(0,r.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Message"}),(0,r.jsx)("textarea",{name:"message",rows:"5",value:u.message,onChange:h,placeholder:"How can we help you today?",className:`w-full border ${a.message?"border-red-500":"border-gray-300"} rounded-md px-4 py-2 focus:outline-none focus:ring-2 focus:ring-red-500`}),a.message&&(0,r.jsx)("p",{className:"text-red-500 text-sm mt-1",children:a.message})]}),(0,r.jsx)("div",{children:(0,r.jsx)("button",{type:"submit",className:"bg-[#C12D2E] text-white px-6 py-2 rounded transition-colors cursor-pointer disabled:opacity-50",disabled:o,children:o?"Please wait...":"Submit"})})]}),(0,r.jsx)(n.N9,{})]})}},19928:(e,a,t)=>{t.d(a,{A:()=>r});let r=(0,t(78340).A)("linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]])},29403:(e,a,t)=>{t.d(a,{A:()=>i});var r=t(95155);t(12115);var s=t(5772);let i=({banner:e,heading:a,text:t})=>(0,r.jsxs)("div",{className:"w-full h-[60vh] lg:h-[80vh] relative bg-gray-100",children:[(0,r.jsx)("div",{className:"bg-black/30 absolute top-0 right-0 bottom-0 left-0 z-10"}),e&&(0,r.jsx)(s.default,{src:e,fill:!0,alt:"7apple hotels and resorts",unoptimized:!0,loading:"eager",className:"object-cover",sizes:"100vw"}),(0,r.jsx)("div",{className:" absolute left-0 right-0 bottom-[
110%] mx-auto z-10",children:(0,r.jsx)("div",{className:"max-w-2xl px-10 mx-auto text-center",children:(0,r.jsx)("div",{className:" left-0 right-0 top-4/12"})})})]})},33894:(e,a,t)=>{t.d(a,{A:()=>r});let r=(0,t(78340).A)("facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]])},73321:(e,a,t)=>{var r=t(74645);t.o(r,"useParams")&&t.d(a,{useParams:function(){return r.useParams}}),t.o(r,"usePathname")&&t.d(a,{usePathname:function(){return r.usePathname}}),t.o(r,"useRouter")&&t.d(a,{useRouter:function(){return r.useRouter}})},85118:(e,a,t)=>{t.d(a,{A:()=>r});let r=(0,t(78340).A)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]])},92289:(e,a,t)=>{t.d(a,{A:()=>r});let r=(0,t(78340).A)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]])},97651:(e,a,t)=>{Object.defineProperty(a,"__esModule",{value:!0});var r={default:function(){return m},getImageProps:function(){return d}};for(var s in r)Object.defineProperty(a,s,{enumerable:!0,get:r[s]});let i=t(73623),n=t(95413),o=t(38437),l=i._(t(36095));function d(e){let{props:a}=(0,n.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,t]of Object.entries(a))void 0===t&&delete a[e];return{props:a}}let m=o.Image}}]);
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.