1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1574],{1574:(e,l,n)=>{n.r(l),n.d(l,{MapWithOffset:()=>r});var t=n(85664),a=n(258),s=n(63276),i=n(3589),u=n(83470),c=n(98594),o=n(96777);function r(e){let{center:l,markers:n,theme:r,zoom:h}=e,{isLoaded:d,loadError:f}=(0,c.K)(u.vu),[p,g]=(0,s.useState)(null),[m,b]=(0,s.useState)(!1),v=(0,s.useRef)(null),{width:x=0}=(0,i.wY)({ref:v}),w=(0,s.useCallback)(function(e){g(e)},[]),j=(0,s.useCallback)(function(){g(null)},[]);return((0,s.useEffect)(()=>{p&&x>1e3&&!m&&setTimeout(()=>{p.panBy(-x/4,0),b(!0)},200)},[x,p,m]),f)?(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center text-center",children:"Map cannot be loaded right now, sorry."}):(0,t.jsx)("div",{className:(0,o.cn)("gable"===r&&"h-full"),ref:v,children:d?(0,t.jsx)("div",{className:(0,o.cn)("relative h-360 overflow-hidden bg-gray","beam"===r&&"rounded-20 lg:h-700","apex"===r&&"lg:h-600","fascia"===r&&"lg:h-700","chalet"===r&&"lg:h-600 xl:h-665","gable"===r?"h-full":"md:h-540","duplex"===r&&"lg:h-670"),children:(0,t.jsx)(a.u6,{center:l,mapContainerStyle:{height:"100%",width:"100%"},onLoad:w,onUnmount:j,options:u.tS,zoom:h||16,children:null==n?void 0:n.map(e=>{var l;return(0,t.jsx)(a.pH,{icon:{scaledSize:new google.maps.Size(48,67),url:u.hE.active},position:e},"location-".concat(null!=(l=e.name)?l:""))})})}):null})}}}]);
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.