1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977],{5925:()=>{},16007:(e,s,a)=>{"use strict";a.d(s,{default:()=>r});var l=a(95155),n=a(12115);a(21734);var i=a(55367);let r=({data:e,baseUrl:s,tenantId:a,token:r})=>{let[t,c]=(0,n.useState)({name:"",email:"",mobile:"",message:""}),[d,o]=(0,n.useState)(!1),[h,m]=(0,n.useState)(""),[b,x]=(0,n.useState)(""),[j,u]=(0,n.useState)(null);(0,n.useEffect)(()=>{e?.branches?.length&&u(e.branches[0])},[e]);let g=e=>{let{name:s,value:a}=e.target;c(e=>({...e,[s]:a}))},p=async e=>{if(e.preventDefault(),a){o(!0),x(""),m("");try{let e=await fetch(`${s}/client/contact/contact?tenantId=${a}`,{method:"POST",headers:{"Content-Type":"application/json",...r&&{Authorization:`Bearer ${r}`}},body:JSON.stringify(t)}),l=await e.json();if(!e.ok||!l.success)throw Error(l.message||"Failed to send message");m("Message sent successfully!"),c({name:"",email:"",mobile:"",message:""})}catch(e){console.error("Contact submit failed:",e),x(e.message||"Something went wrong")}finally{o(!1)}}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"gb-section",children:(0,l.jsxs)("div",{className:"gb-container",children:[(0,l.jsxs)("div",{className:"gb-info-panel",children:[e?.branches?.length>1&&(0,l.jsx)("div",{className:"branch-tabs mb-4",children:e.branches.map(e=>(0,l.jsx)("button",{className:`branch-btn ${j?.id===e.id?"active":""}`,onClick:()=>u(e),type:"button",children:e.label},e.id))}),(0,l.jsx)("h2",{children:"Get In Touch"}),(0,l.jsx)("p",{className:"desc",children:"Feel free to contact us with any questions. Our team will help you to schedule a free counseling session."}),(0,l.jsxs)("div",{className:"gb-contact-card",children:[(0,l.jsx)("div",{className:"gb-icon-bg",children:(0,l.jsx)("i",{className:"fa fa-map-marker","aria-hidden":"true"})}),(0,l.jsxs)("div",{className:"gb-contact-text",children:[(0,l.jsx)("h4",{children:"Office Address"}),(0,l.jsx)("p",{children:j?.address})]})]}),(0,l.jsxs)("div",{className:"gb-contact-card",children:[(0,l.jsx)("div",{className:"gb-icon-bg",children:(0,l.jsx)("i",{className:"fa fa-phone","aria-hidden":"true"})}),(0,l.jsxs)("div",{className:"gb-contact-text",children:[(0,l.jsx)("h4",{children:"Call Us"}),(0,l.jsx)("p",{children:(0,l.jsx)("a",{href:`tel:${j?.mobileNo}`,children:j?.mobileNo})})]})]}),(0,l.jsxs)("div",{className:"gb-contact-card",children:[(0,l.jsx)("div",{className:"gb-icon-bg",children:(0,l.jsx)("i",{className:"fa-brands fa-whatsapp"})}),(0,l.jsxs)("div",{className:"gb-contact-text",children:[(0,l.jsx)("h4",{children:"WhatsApp"}),(0,l.jsx)("p",{children:(0,l.jsx)("a",{href:`https://wa.me/${j?.whatsappNo}`,target:"_blank",rel:"noreferrer",children:j?.whatsappNo})})]})]}),(0,l.jsxs)("div",{className:"gb-contact-card",children:[(0,l.jsx)("div",{className:"gb-icon-bg",children:(0,l.jsx)("i",{className:"fa-solid fa-envelope"})}),(0,l.jsxs)("div",{className:"gb-contact-text",children:[(0,l.jsx)("h4",{children:"Email Support"}),(0,l.jsx)("p",{children:(0,l.jsx)("a",{href:`mailto:${j?.email}`,children:j?.email})})]})]})]}),(0,l.jsxs)("div",{className:"gb-form-panel",children:[(0,l.jsx)("span",{className:"gb-label-top",children:"Contact Us"}),(0,l.jsx)("h2",{children:"Send us a message"}),(0,l.jsxs)("form",{onSubmit:p,children:[(0,l.jsx)("div",{className:"gb-input-row",children:(0,l.jsx)("input",{type:"text",name:"name",className:"gb-field",placeholder:"Enter your full name",value:t.name,onChange:g,required:!0})}),(0,l.jsx)("div",{className:"gb-input-row",children:(0,l.jsx)("input",{type:"email",name:"email",className:"gb-field",placeholder:"Enter your email address",value:t.email,onChange:g,required:!0})}),(0,l.jsx)("div",{className:"gb-input-row",children:(0,l.jsx)("input",{type:"tel",name:"mobile",className:"gb-field",placeholder:"Your mobile number",value:t.mobile,onChange:g,maxLength:"10",required:!0})}),(0,l.jsx)("div",{className:"gb-input-row",children:(0,l.jsx)("textarea",{className:"gb-field gb-textarea",name:"message",rows:"4",placeholder:"How can we help you?",value:t.message,onChange:g,required:!0})}),h&&(0,l.jsx)("p",{className:"gb-success",children:h}),b&&(0,l.jsx)("p",{className:"gb-error",children:b}),(0,l.jsx)("button",{type:"submit",className:"gb-submit",disabled:d,children:d?"Sending...":"Send Message"})]})]})]})}),(0,l.jsx)(i.A,{embedCode:j?.googleMap||""})]})}},21734:()=>{},41447:()=>{},52826:(e,s,a)=>{Promise.resolve().then(a.t.bind(a,98500,23)),Promise.resolve().then(a.t.bind(a,38437,23)),Promise.resolve().then(a.bind(a,41112)),Promise.resolve().then(a.bind(a,21957)),Promise.resolve().then(a.t.bind(a,75784,23)),Promise.resolve().then(a.t.bind(a,30939,23)),Promise.resolve().then(a.t.bind(a,79853,23)),Promise.resolve().then(a.t.bind(a,9646,23)),Promise.resolve().then(a.t.bind(a,57652,23)),Promise.resolve().then(a.t.bind(a,48957,23)),Promise.resolve().then(a.bind(a,16007)),Promise.resolve().then(a.bind(a,55064)),Promise.resolve().then(a.t.bind(a,54384,23)),Promise.resolve().then(a.bind(a,9214)),Promise.resolve().then(a.bind(a,21219)),Promise.resolve().then(a.bind(a,39853)),Promise.resolve().then(a.bind(a,99797)),Promise.resolve().then(a.bind(a,99762)),Promise.resolve().then(a.bind(a,23527)),Promise.resolve().then(a.bind(a,77929)),Promise.resolve().then(a.t.bind(a,2869,23)),Promise.resolve().then(a.t.bind(a,3039,23))},54384:()=>{},55064:(e,s,a)=>{"use strict";a.d(s,{default:()=>r});var l=a(95155),n=a(12115);a(5925);var i=a(55367);let r=({data:e,baseUrl:s,tenantId:a,token:r})=>
1{let[t,c]=(0,n.useState)({name:"",email:"",mobile:"",message:""}),[d,o]=(0,n.useState)(!1),[h,m]=(0,n.useState)(""),[b,x]=(0,n.useState)(""),[j,u]=(0,n.useState)(null);(0,n.useEffect)(()=>{e?.branches?.length&&u(e.branches[0])},[e]);let g=e=>{let{name:s,value:a}=e.target;c(e=>({...e,[s]:a}))},p=async e=>{if(e.preventDefault(),a){o(!0),x(""),m("");try{let e=await fetch(`${s}/client/contact/contact?tenantId=${a}`,{method:"POST",headers:{"Content-Type":"application/json",...r&&{Authorization:`Bearer ${r}`}},body:JSON.stringify(t)}),l=await e.json();if(!e.ok||!l.success)throw Error(l.message||"Failed to send message");m("Message sent successfully!"),c({name:"",email:"",mobile:"",message:""})}catch(e){console.error("Contact submit failed:",e),x(e.message||"Something went wrong")}finally{o(!1)}}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("section",{className:"contact-banner py-2",children:(0,l.jsx)("div",{className:"container-fluid container",children:(0,l.jsxs)("div",{className:"row",children:[(0,l.jsxs)("div",{className:"col-xl-6 col-lg-6 col-md-6 col-sm-12",children:[e?.branches?.length>0&&(0,l.jsx)("div",{className:"branch-tabs mb-4",children:e.branches.map(e=>(0,l.jsx)("button",{className:`branch-btn ${j?.id===e.id?"active":""}`,onClick:()=>u(e),type:"button",children:e.label},e.id))}),(0,l.jsxs)("div",{className:"address-box wow fadeInLeft",children:[(0,l.jsx)("h5",{className:"web-title",children:"CONTACT INFO"}),(0,l.jsx)("h6",{className:"web-heading",children:"Get in Touch"}),(0,l.jsxs)("ul",{children:[(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"icon-box",children:(0,l.jsx)("i",{className:"fa-solid fa-location-dot"})}),(0,l.jsxs)("div",{className:"address-detail",children:[(0,l.jsx)("h5",{children:"Our Address"}),(0,l.jsx)("p",{children:j?.address})]})]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"icon-box",children:(0,l.jsx)("i",{className:"fa-solid fa-phone"})}),(0,l.jsxs)("div",{className:"address-detail",children:[(0,l.jsx)("h5",{children:"Mobile"}),(0,l.jsx)("p",{children:(0,l.jsx)("a",{href:`tel:${j?.mobileNo}`,children:j?.mobileNo})})]})]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"icon-box",children:(0,l.jsx)("i",{className:"fa-brands fa-whatsapp"})}),(0,l.jsxs)("div",{className:"address-detail",children:[(0,l.jsx)("h5",{children:"Whatsapp"}),(0,l.jsx)("p",{children:(0,l.jsx)("a",{href:`https://wa.me/${j?.whatsappNo}`,target:"_blank",rel:"noreferrer",children:j?.whatsappNo})})]})]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"icon-box",children:(0,l.jsx)("i",{className:"fa-regular fa-envelope"})}),(0,l.jsxs)("div",{className:"address-detail",children:[(0,l.jsx)("h5",{children:"Email"}),(0,l.jsx)("p",{children:(0,l.jsx)("a",{href:`mailto:${j?.email}`,children:j?.email})})]})]})]})]})]}),(0,l.jsx)("div",{className:"col-xl-6 col-lg-6 col-md-6 col-sm-12 contact-right",children:(0,l.jsxs)("div",{className:"contact-form wow fadeInRight",children:[(0,l.jsx)("h6",{children:"Ready To Get Started?"}),(0,l.jsxs)("form",{onSubmit:p,children:[(0,l.jsx)("input",{required:!0,name:"name",className:"form-control",placeholder:"Your name",value:t.name,onChange:g}),(0,l.jsx)("input",{required:!0,type:"email",name:"email",className:"form-control",placeholder:"Your Email Address",value:t.email,onChange:g}),(0,l.jsx)("input",{required:!0,name:"mobile",maxLength:"10",className:"form-control",placeholder:"Your mobile no.",value:t.mobile,onChange:g}),(0,l.jsx)("textarea",{required:!0,name:"message",rows:"5",className:"form-control",placeholder:"Write your message...",value:t.message,onChange:g}),h&&(0,l.jsx)("p",{className:"text-success mt-2",children:h}),b&&(0,l.jsx)("p",{className:"text-danger mt-2",children:b}),(0,l.jsx)("button",{type:"submit",className:"btn send-btn",disabled:d,children:d?"Sending...":"Send Message"})]})]})})]})})}),(0,l.jsx)(i.A,{embedCode:j?.googleMap||""})]})}},55367:(e,s,a)=>{"use strict";a.d(s,{A:()=>n});var l=a(95155);a(12115),a(41447);let n=({embedCode:e})=>{if(!e)return(0,l.jsx)("p",{children:"No map available"});let s=e.includes("<iframe");return console.log("embedCode:",e),(0,l.jsx)("section",{className:"section-banner py-2",children:(0,l.jsx)("div",{className:"container-fluid container",children:(0,l.jsx)("div",{className:"row",children:s?(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:e}}):(0,l.jsx)("iframe",{src:e,width:"100%",height:"450",style:{border:0},allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"Google Map"})})})})}}},e=>{e.O(0,[8096,4043,780,1571,7708,2342,5480,529,7558,3623,2076,7358],()=>e(e.s=52826)),_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.