1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8505],{38997:(e,t,l)=>{l.d(t,{A:()=>s});let s={src:"/_next/static/media/locatioins.150918d0.svg",height:20,width:18,blurWidth:0,blurHeight:0}},78505:(e,t,l)=>{l.r(t),l.d(t,{default:()=>C});var s=l(37876),a=l(14232),i=l(45105),n=l.n(i),c=l(62945),o=l(40876),r=l(97719),d=l(60929),h=l(46882),u=l(90448),m=l(54587),p=l.n(m),g=l(48230),x=l.n(g),j=l(86010),f=l(76860),v=l(38997);let N={src:"/_next/static/media/tele.28244b25.svg",height:24,width:24,blurWidth:0,blurHeight:0},w={src:"/_next/static/media/direction.e35c0c2e.svg",height:24,width:24,blurWidth:0,blurHeight:0};var _=l(83310),b=l(14e3);let C=e=>{let{locationsData:t}=e,l=(0,b.useSearchParams)().get("location");(0,a.useEffect)(()=>{if(l){G(l),L(l),W(!0);let e=document.getElementById("Gmap");if(e){let t=e.getBoundingClientRect().top+window.pageYOffset+-80;window.scrollTo({top:t,behavior:"smooth"})}}},[l]);let i=null==t?void 0:t.location_post,[m,g]=(0,a.useState)({lat:20.5937,lng:78.9629}),[C,y]=(0,a.useState)(4.8),[F,L]=(0,a.useState)(l||null),[A,S]=(0,a.useState)(null),[k,E]=(0,a.useState)((null==i?void 0:i.flatMap(e=>e.locations))||[]),[H,M]=(0,a.useState)(null),[I,O]=(0,a.useState)(l||""),[B,W]=(0,a.useState)(!!t),R=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=e=>{R.current&&!R.current.contains(e.target)&&W(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,a.useEffect)(()=>{let e=null==t?void 0:t.location_post.flatMap(e=>e.locations);E(e||[]),e&&(g({lat:e.reduce((e,t)=>e+parseFloat(t.latitude),0)/e.length,lng:e.reduce((e,t)=>e+parseFloat(t.longitude),0)/e.length}),y(4.8))},[t]);let T=e=>{M(e),g({lat:parseFloat(e.latitude),lng:parseFloat(e.longitude)}),y(15)},G=e=>{L(e),O(e.toLowerCase());let l=null==t?void 0:t.location_post.find(t=>t.city===e);if(l){let e=new window.google.maps.LatLngBounds;l.locations.forEach(t=>e.extend(new window.google.maps.LatLng(parseFloat(t.latitude),parseFloat(t.longitude)))),g(e.getCenter().toJSON()),y(11),E(l.locations)}},P=null==t?void 0:t.location_post.filter(e=>e.city.toLowerCase().includes(I.toLowerCase())),[z,D]=(0,a.useState)(!1);return(0,s.jsx)("section",{className:"secPad map-element",id:"Gmap",children:(0,s.jsx)(o.A,{children:(0,s.jsx)("div",{className:"locations",children:(0,s.jsxs)(r.A,{children:[(0,s.jsx)(d.A,{lg:6,children:(0,s.jsxs)("div",{className:"locations_content",children:[(0,s.jsx)("h5",{className:"mb-3",dangerouslySetInnerHTML:{__html:"".concat(null==t?void 0:t.heading)}}),(0,s.jsx)("p",{className:"mb-4 pb-1",children:null==t?void 0:t.description}),(0,s.jsxs)("div",{className:"all_locations mb-4 mb-md-0",ref:R,children:[(0,s.jsxs)("div",{className:"search_location",children:[(0,s.jsx)("input",{type:"text",placeholder:"Enter Location",className:"form-control locations_input",onChange:e=>O(e.target.value),onFocus:()=>W(!0),value:I}),(0,s.jsx)("div",{children:B?(0,s.jsx)(p(),{src:f.A,alt:"ico",width:24,height:24,className:"img-fluid search_icon",onClick:()=>{O(""),W(!1),L(null);let e=null==t?void 0:t.location_post.flatMap(e=>e.locations);E(e||[]),e&&(g({lat:e.reduce((e,t)=>e+parseFloat(t.latitude),0)/e.length,lng:e.reduce((e,t)=>e+parseFloat(t.longitude),0)/e.length}),y(4.8))}}):(0,s.jsx)(p(),{src:j.A,alt:"ico",width:24,height:24,className:"img-fluid search_icon"})})]}),!B&&(null==t?void 0:t.cta_text)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"text-center my-3",children:"OR "}),(0,s.jsx)(x(),{href:"/contact-us",className:"btnwhite pointer",children:null==t?void 0:t.cta_text})]}),B&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"my-2",children:[null==t?void 0:t.location_post.length," cities in India"]}),(0,s.jsx)("div",{className:"locations_lists webkitscroller",children:(0,s.jsx)("ul",{className:"city_list webkitscroller",children:null==P?void 0:P.map(e=>(0,s.jsxs)(a.Fragment,{children:[F!==e.city&&(0,s.jsx)("li",{className:"city",onClick:()=>G(e.city),children:(0,s.jsx)("h6",{className:"fs-16",children:e.city})}),(null==F?void 0:F.toLocaleLowerCase())===e.city.toLocaleLowerCase()&&(0,s.jsx)("div",{className:"locations_centers",children:(0,s.jsx)(h.A,{className:"border-0 border-radius-0",children:e.locations.map((e,t)=>(0,s.jsxs)(h.A.Item,{eventKey:t.toString(),className:"border-0 p-0",children:[(0,s.jsx)(h.A.Header,{onClick:()=>T(e),children:(0,s.jsxs)("div",{className:"d-flex flex-column gap-2",children:[(0,s.jsx)("p",{className:"fs-16 mb-2",children:e.title}),(0,s.jsx)("div",{className:"badges d-flex gap-2",children:e.centers.map((e,t)=>(0,s.jsx)(u.A,{bg:"",children:e},t))})]})}),(0,s.jsx)(h.A.Body,{children:(0,s.jsxs)("ul",{className:"addrs_list",children:[(0,s.jsxs)("li",{className:"gap-2 d-flex",children:[(0,s.jsx)(p(),{src:v.A,alt:"icon",width:20,height:20}),(0,s.jsx)("p",{className:"fs-14",children:e.address})]}),(0,s.jsxs)("li",{className:"gap-2 d-flex",children:[(0,s.jsx)(p(),{src:N,alt:"icon",width:24,height:24}),(0,s.jsx)("p",{className:"fs-14",children:e.teleNum})]}),(0,s.jsxs)("li",{className:"gap-2 d-flex",children:[(0,s.jsx)(p(),{src:_.A,alt:"icon",width:24,height:24}),(0,s.jsxs)("p",{className:"fs-14",children:[" ",e.timings]})]}),(0,s.jsxs)("li",{className:"gap-2 d-flex",children:[(0,s.jsx)(p(),{src:w,alt:"icon",width:24,height:24}),(0,s.jsx)("a",{target:"_vinay",href:"https://www.google.com/maps?".concat(e.address),rel:"noopener noreferrer",className:"fs-16 poppins-800 text-decoration-underline textblue",children:"Direction"})]})]})})]},t))})})]},e.city))})})]})]})]})}),(0,s.jsx)(d.A,{lg:6,children:(0,s.jsxs)("div",{className:"map_custom",children:[(0,s.jsx)(n(),{src:"/api/maps-script",strategy:"afterInteractive",onLoad:()=>D(!0)}),z&&(0,s.jsx)(c.u6,{center:m,zoom:C,mapContainerClassName:"g_map",options:{streetViewControl:!1,mapTypeControl:!0},children:null==k?void 0:k.map((e,t)=>(0,s.jsx)(c.pH,{icon:"".concat(e.mapicon),position:{lat:parseFloat(e.latitude),lng:parseFloat(e.longitude)},title:e.title,onClick:()=>T(e),onMouseOver:()=>S(e),onMouseOut:()=>S(null),children:A===e&&(0,s.jsx)(c.Fu,{position:{lat:parseFloat(e.latitude),lng:parseFloat(e.longitude)},onCloseClick:()=>S(null),children:(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"fs-14",children:e.title}),(0,s.jsx)("p",{className:"fs-14",children:e.address})]})})},t))})]})})]})})})})}},83310:(e,t,l)=>{l.d(t,{A:()=>s});let s={src:"/_next/static/media/timeing.1a94ab79.svg",height:24,width:24,blurWidth:0,blurHeight:0}}}]);
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.