1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5141],{25141:(e,t,l)=>{l.r(t),l.d(t,{default:()=>d});var o=l(38776),n=l(12020),a=l(66060),i=l(42310);let r=()=>(0,o.jsx)("svg",{fill:"none",height:"46",viewBox:"0 0 35 46",width:"35",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M17.8223 0.927002C13.3154 0.932936 8.99488 2.71274 5.80805 5.87612C2.62123 9.03951 0.828244 13.3283 0.822266 17.802C0.822266 29.9168 16.6606 45.0902 17.3335 45.7301C17.4644 45.8564 17.6397 45.927 17.8223 45.927C18.0048 45.927 18.1801 45.8564 18.311 45.7301C18.9839 45.0902 34.8223 29.9168 34.8223 17.802C34.8163 13.3283 33.0233 9.03951 29.8365 5.87612C26.6497 2.71274 22.3291 0.932936 17.8223 0.927002Z",fill:"#E3EFD5"})});var s=l(37302);let d=e=>{let{heading:t,addresses:l=[],locationDetails:d}=e,c=(0,n.useRef)(null),g=(0,n.useRef)(null),p=(0,n.useCallback)(e=>{if(!c.current||!window.google)return;let t=(null==e?void 0:e.latitude)||60.752684,n=(null==e?void 0:e.longitude)||-3.452684,i=new google.maps.Map(c.current,{center:{lat:t,lng:n},zoom:(null==e?void 0:e.latitude)&&(null==e?void 0:e.longitude)?12:2.82,mapTypeId:"roadmap",disableDefaultUI:!0,zoomControl:!0,fullscreenControl:!0,fullscreenControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT}});if(g.current=i,(null==e?void 0:e.latitude)&&(null==e?void 0:e.longitude)){let t={latitude:e.latitude,longitude:e.longitude},n=new google.maps.OverlayView;n.onAdd=()=>{let e=n.getPanes();if(!(null==e?void 0:e.overlayMouseTarget))return;let s=document.createElement("div");s.className="absolute w-[34px] h-[45px] cursor-pointer transform -translate-x-1/2 -translate-y-1/2",a.createRoot(s).render((0,o.jsx)(r,{})),e.overlayMouseTarget.appendChild(s),s.addEventListener("click",()=>{m(i,t,l)}),n._markerDiv=s},n.draw=()=>{let e=n.getProjection();if(!e)return;let l=e.fromLatLngToDivPixel(new google.maps.LatLng(t.latitude,t.longitude)),o=n._markerDiv;l&&o&&(o.style.left="".concat(l.x,"px"),o.style.top="".concat(l.y-34,"px"))},n.onRemove=()=>{let e=n._markerDiv;(null==e?void 0:e.parentNode)&&e.parentNode.removeChild(e)},n.setMap(i)}u(i)},[l]),u=e=>{var t;let l=document.createElement("div");l.title="Show Your Location",l.className="bg-white !right-2.5 p-2 shadow-md cursor-pointer w-10 h-10 flex justify-center items-center";let n=document.createElement("div");n.className="w-6 h-6 bg-cover bg-[url(https://maps.gstatic.com/tactile/mylocation/mylocation-sprite-2x.png)] bg-[length:260px_26px] bg-[0px_0px]",l.appendChild(n),null==(t=e.controls[google.maps.ControlPosition.RIGHT_BOTTOM])||t.push(l),l.addEventListener("click",()=>{navigator.geolocation&&navigator.geolocation.getCurrentPosition(t=>{let{latitude:l,longitude:n}=t.coords,i=new google.maps.LatLng(l,n);e.setCenter(i),e.setZoom(12);let s=new google.maps.OverlayView;s.onAdd=function(){let e=this.getPanes();if(!(null==e?void 0:e.overlayMouseTarget))return;let t=document.createElement("div");t.className="absolute w-[34px] h-[45px] cursor-pointer transform -translate-x-1/2 -translate-y-1/2",a.createRoot(t).render((0,o.jsx)(r,{})),e.overlayMouseTarget.appendChild(t),this._markerDiv=t},s.draw=function(){let e=this.getProjection();if(!e)return;let t=e.fromLatLngToDivPixel(i),l=this._markerDiv;t&&(null==l?void 0:l.style)&&(l.style.left="".concat(t.x-17,"px"),l.style.top="".concat(t.y-22.5,"px"))},s.onRemove=function(){let e=this._markerDiv;(null==e?void 0:e.parentNode)&&e.parentNode.removeChild(e)},s.setMap(e)},()=>{})})};(0,n.useEffect)(()=>{(()=>{if(window.google)return p(d);if(!document.getElementById("google-maps-script")){let e=document.createElement("script");e.id="google-maps-script",e.src="https://maps.googleapis.com/maps/api/js?key=".concat(i.Bl),e.async=!0,e.defer=!0,e.onload=()=>p(d),e.onerror=()=>console.error("Failed to load Google Maps script."),document.body.appendChild(e)}})()},[p,d]);let m=(e,t,l)=>{let o=document.getElementById("custom-popup");if(o){var n;null==(n=o.parentNode)||n.removeChild(o)}let a=document.createElement("div");a.id="custom-popup",a.className="absolute bg-white p-4 rounded-lg shadow-lg max-w-[300px] font-sans flex flex-col gap-2 z-[1000]";
1let i="string"==typeof s.A?s.A:s.A.src,r=document.createElement("button");if(r.className="absolute top-2 right-2 w-4 h-4 cursor-pointer",r.innerHTML='<img src="'.concat(i,'" alt="Close" class="w-full h-full" />'),r.addEventListener("click",()=>{a.remove()}),l.length>0){let e=l[0];if(null==e?void 0:e.heading){let t=document.createElement("h3");t.className="text-lg font-semibold text-gray-800 mt-2",t.textContent=e.heading,a.appendChild(t)}if(null==e?void 0:e.address){let t=document.createElement("p");t.className="text-sm text-gray-600 whitespace-pre-line",t.textContent=e.address,a.appendChild(t)}}a.insertBefore(r,a.firstChild);let d=new google.maps.OverlayView;d.onAdd=function(){let e=this.getPanes();(null==e?void 0:e.floatPane)&&e.floatPane.appendChild(a)},d.draw=function(){let e=this.getProjection();if(!e)return;let l=e.fromLatLngToDivPixel(new google.maps.LatLng(t.latitude,t.longitude));l&&(a.style.left="".concat(l.x-a.offsetWidth/2,"px"),a.style.top="".concat(l.y-a.offsetHeight-75,"px"))},d.onRemove=function(){var e;null==(e=a.parentNode)||e.removeChild(a)},d.setMap(e),r.addEventListener("click",()=>{d.setMap(null)})};return(0,o.jsx)("div",{className:"google-map-section",children:(0,o.jsx)("div",{className:"container mx-auto px-4 py-8",children:(0,o.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[(0,o.jsx)("div",{className:"order-2 lg:order-1",children:(0,o.jsx)("div",{className:"google-map relative h-[527px] w-full rounded-lg overflow-hidden",ref:c})}),(0,o.jsxs)("div",{className:"order-1 lg:order-2",children:[t&&(0,o.jsx)("h2",{className:"text-xxl font-semibold text-heading-color mb-6",children:t}),l&&l.length>0&&(0,o.jsx)("div",{className:"space-y-6",children:l.map((e,t)=>(0,o.jsxs)("div",{className:"bg-white p-6 rounded-lg shadow-md",children:[e.heading&&(0,o.jsx)("h3",{className:"text-lg font-semibold text-gray-800 mb-3",children:e.heading}),e.address&&(0,o.jsx)("p",{className:"text-sm text-gray-600 whitespace-pre-line",children:e.address})]},t))})]})]})})})}},37302:(e,t,l)=>{l.d(t,{A:()=>o});let o={src:"/_next/static/media/close-icon.9ea5e1b0.svg",height:16,width:16,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.