1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9227b68b-8a85-423d-8a72-aee5e37d9b8a",e._sentryDebugIdIdentifier="sentry-dbid-9227b68b-8a85-423d-8a72-aee5e37d9b8a")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1364],{6151:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSG:()=>d,default:()=>m});var s=a(37876),r=a(14232);a(22099);var l=a(12362),n=a(62945);let c=e=>{let{center:t,zoom:a=15,height:l="400px",className:c="",pointers:o=[]}=e,[i,d]=(0,r.useState)(null),{isLoaded:m,loadError:x}=(0,n.KD)({googleMapsApiKey:"AIzaSyBHT3ZkvCtYGwP99melF_nvZuhB5AO6jZY"});return x?(0,s.jsx)("div",{children:"Error loading maps"}):m?(0,s.jsx)("div",{className:"relative w-full ".concat(c),children:(0,s.jsx)(n.u6,{mapContainerStyle:{width:"100%",height:l,borderRadius:"1rem",overflow:"hidden"},center:t,zoom:a,onClick:()=>d(null),children:Array.isArray(o)&&o.map((e,t)=>{let a=Number(e.lat),r=Number(e.lng||e.long),l=e.Title||"Marker ".concat(t+1);return isNaN(a)||isNaN(r)?null:(0,s.jsx)(n.pH,{position:{lat:a,lng:r},icon:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png",onMouseOver:()=>d(t),onMouseOut:()=>d(null),children:i===t&&(0,s.jsx)(n.Fu,{position:{lat:a,lng:r},options:{closeBoxURL:"",disableAutoPan:!0},children:(0,s.jsx)("div",{className:"text-sm font-medium",children:l})})},t)})})}):(0,s.jsx)("div",{children:"Loading..."})};var o=a(34923),i=a(59232),d=!0;let m=()=>{let{t:e}=(0,i.Bd)("common"),[t,a]=(0,r.useState)({name:"",email:"",message:"",accepted_terms:!1}),[n,d]=(0,r.useState)(!1),[m,x]=(0,r.useState)(""),u=e=>{let{id:t,value:s,type:r,checked:l}=e.target;a(e=>({...e,[t]:"checkbox"===r?l:s}))},h=async s=>{if(s.preventDefault(),x(""),!t.name||!t.email||!t.message)return void x({type:"error",text:e("contact.validation.fields")});if(!t.accepted_terms)return void x({type:"error",text:e("contact.validation.terms")});try{d(!0);let s=await (0,o.AT)({endpoint:"contactUs",method:"POST",data:t});s.success?(x({type:"success",text:s.message}),a({name:"",email:"",message:"",accepted_terms:!1})):x({type:"error",text:s.message||e("contact.error.generic")})}catch(t){console.error("API Error:",t),x({type:"error",text:e("contact.error.generic")})}finally{d(!1)}};return(0,s.jsx)(l.A,{children:(0,s.jsx)("div",{className:"min-h-screen py-12 mt-4 px-0 md:px-6 lg:px-8 mx-0 md:mx-8 lg:mx-8 xl:mx-12 flex justify-center items-center",children:(0,s.jsxs)("div",{className:"bg-white overflow-hidden mx-0 w-full grid grid-cols-1 lg:grid-cols-2",children:[(0,s.jsxs)("div",{className:"p-8 md:p-16 sm:p-8",children:[(0,s.jsx)("h2",{className:"text-3xl font-semibold text-[#CC9A55] mb-4",children:e("contact.title")}),(0,s.jsx)("p",{className:"text-gray-600 mb-6",children:e("contact.subtitle")}),(0,s.jsxs)("form",{className:"space-y-6",onSubmit:h,children:[m&&(0,s.jsx)("p",{className:"text-sm mt-2 text-center ".concat("success"===m.type?"text-green-500":"text-red-500"),children:m.text}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700",children:e("contact.name")}),(0,s.jsx)("input",{type:"text",id:"name",value:t.name,onChange:u,className:"mt-1 block w-full p-2 border border-gray-300 rounded",placeholder:e("contact.namePlaceholder")})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700",children:e("contact.email")}),(0,s.jsx)("input",{type:"email",id:"email",value:t.email,onChange:u,className:"mt-1 block w-full p-2 border border-gray-300 rounded",placeholder:e("contact.emailPlaceholder")})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"message",className:"block text-sm font-medium text-gray-700",children:e("contact.message")}),(0,s.jsx)("textarea",{id:"message",rows:"4",value:t.message,onChange:u,className:"mt-1 block w-full p-2 border border-gray-300 rounded",placeholder:e("contact.messagePlaceholder")})]}),(0,s.jsxs)("div",{className:"flex items-start",children:[(0,s.jsx)("input",{id:"accepted_terms",type:"checkbox",checked:t.accepted_terms,onChange:u,className:"h-4 w-4 text-primary border-gray-300 rounded"}),(0,s.jsx)("label",{htmlFor:"accepted_terms",className:"ml-2 text-sm text-gray-700",children:e("contact.terms")})]}),(0,s.jsx)("div",{children:(0,s.jsx)("button",{type:"submit",disabled:n,className:"inline-flex justify-center py-3 px-16 rounded-full text-white ".concat(n?"bg-orange-300 cursor-not-allowed":"bg-[#CC9A55] "),children:n?e("contact.submitting"):e("contact.submit")})})]})]}),(0,s.jsx)("div",{className:"p-6 pt-24",children:(0,s.jsx)(c,{center:{lat:1.3521,lng:103.8198},zoom:10,height:"384px"})})]})})})}},51595:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return a(6151)}])}},e=>{e.O(0,[9759,9848,9703,4104,2362,636,6593,8792],()=>e(e.s=51595)),_N_E=e.O()}]);
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.