1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[854,959,974],{6083:(e,t,a)=>{Promise.resolve().then(a.bind(a,5571)),Promise.resolve().then(a.t.bind(a,7970,23))},1408:(e,t,a)=>{"use strict";a.d(t,{default:()=>s});var l=a(5155),r=a(2115);function s(e){let{mobileSlot:t,desktopSlot:a,format:s="responsive",className:n=""}=e,d=(0,r.useRef)(null),[i,o]=(0,r.useState)(null),[c,u]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{u("localhost"===window.location.hostname);let e=()=>o(window.innerWidth<768);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,r.useEffect)(()=>{if(!c&&d.current&&null!==i)try{(window.adsbygoogle=window.adsbygoogle||[]).push({})}catch(e){console.error("AdSense error:",e)}},[i]),null===i)?null:c?(0,l.jsx)("div",{className:`w-full bg-gray-100 border-2 border-dashed border-gray-300 flex items-center justify-center ${n}`,style:{minHeight:"100px"},children:(0,l.jsxs)("div",{className:"text-gray-500 text-sm text-center p-4",children:[(0,l.jsx)("div",{className:"font-semibold mb-1",children:"Ad Placeholder"}),(0,l.jsxs)("div",{className:"text-xs",children:["multiplex"===s?"Multiplex Ad":i?"Mobile":"Desktop"," Ad"]})]})}):"multiplex"===s?(0,l.jsx)("div",{className:`w-full ${n}`,children:(0,l.jsx)("ins",{ref:d,className:"adsbygoogle",style:{display:"block"},"data-ad-format":"autorelaxed","data-ad-client":"ca-pub-3027407238948175","data-ad-slot":t})}):i?(0,l.jsx)("div",{className:`w-full ${n}`,children:(0,l.jsx)("ins",{ref:d,className:"adsbygoogle",style:{display:"block"},"data-ad-format":"fluid","data-ad-layout-key":"-6p+de-31-76+qt","data-ad-client":"ca-pub-3027407238948175","data-ad-slot":t})}):(0,l.jsx)("div",{className:`w-full ${n}`,children:(0,l.jsx)("ins",{ref:d,className:"adsbygoogle",style:{display:"block"},"data-ad-client":"ca-pub-3027407238948175","data-ad-slot":a,"data-ad-format":"auto","data-full-width-responsive":"true"})})}},5571:(e,t,a)=>{"use strict";a.d(t,{default:()=>p});var l=a(5155),r=a(2115),s=a(4839),n=a.n(s),d=a(6046),i=a(5565);let o=(0,r.forwardRef)((e,t)=>{let{map:a}=e;return(0,l.jsxs)(n(),{ref:t,href:`/map/${a.slug||a.id}`,className:"bg-white rounded-lg shadow-md overflow-hidden hover:shadow-lg transition-shadow h-full flex flex-col",children:[(0,l.jsx)("div",{className:"aspect-video relative",children:(0,l.jsx)(i.default,{src:a.img,alt:a.title,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",className:"object-cover",loading:"lazy"})}),(0,l.jsxs)("div",{className:"p-4 flex flex-col flex-1",children:[(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsx)("h2",{className:"text-xl font-semibold mb-2 line-clamp-1 text-gray-900",children:a.title}),(0,l.jsx)("p",{className:"text-gray-600 line-clamp-2",children:a.desc})]}),a.types&&(0,l.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:a.types.map(e=>(0,l.jsx)("span",{className:"px-2 py-1 text-sm bg-blue-100 text-blue-800 rounded-full",children:e.label},e.id))})]})]})});o.displayName="MapCard";var c=a(1408),u=a(5828);let f=(0,u.createServerReference)("40d624defd0530308212e036f2b490c1a08df88d09",u.callServer,void 0,u.findSourceMapURL,"searchMaps"),m=(0,u.createServerReference)("4051e6b908428b52a63186ed813b2d8c8dc0ee2128",u.callServer,void 0,u.findSourceMapURL,"fetchTopMaps"),h=(0,u.createServerReference)("40b23b98a61923a9410e90468faa1964e42676727b",u.callServer,void 0,u.findSourceMapURL,"fetchMaps");function p(e){let{initialData:t,selectedType:a,searchQuery:s,isTopMaps:i}=e;(0,d.useRouter)();let u=(0,d.usePathname)(),p=(0,d.useSearchParams)(),[b,x]=(0,r.useState)(t?.maps||[]),[v,g]=(0,r.useState)(!1),[w,y]=(0,r.useState)(t?.hasMore||!1),[j,S]=(0,r.useState)(1),[N,R]=(0,r.useState)(1),[E,P]=(0,r.useState)(!1),M=(0,r.useRef)(),$=(0,r.useRef)(`${u}?${p}`);(0,r.useEffect)(()=>{let e=`${u}?${p}`;$.current!==e&&(window.scrollTo(0,0),$.current=e)},[u,p]),(0,r.useEffect)(()=>{x(t?.maps||[]),y(t?.hasMore||!1)},[t]),(0,r.useEffect)(()=>{S(1),window.scrollTo(0,0)},[a,s]),(0,r.useEffect)(()=>{let e=()=>{let e=window.innerWidth;e>=1024?R(3):e>=768?R(2):R(1)};return P(!0),e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let k=(0,r.useCallback)(e=>
1{!v&&(M.current&&M.current.disconnect(),M.current=new IntersectionObserver(e=>{e[0].isIntersecting&&w&&S(e=>e+1)}),e&&M.current.observe(e))},[v,w]);(0,r.useEffect)(()=>{j>1&&(async()=>{g(!0);try{let e=s?await f({query:s,page:j}):i?await m({page:j}):await h({page:j,type:a});x(t=>[...t,...e.maps]),y(e.hasMore)}catch(e){console.error("Error loading more maps:",e)}finally{g(!1)}})()},[j,a,s,i]);let _=new Set;b.forEach(e=>{e.types?.forEach(e=>_.add(e.label))});let L=Array.from(_);return(0,l.jsxs)(l.Fragment,{children:["/"===u&&L.length>0&&(0,l.jsxs)("div",{className:"mb-6 flex flex-wrap gap-2",children:[(0,l.jsx)(n(),{href:"/",className:`px-4 py-2 rounded-full transition-colors ${a?"bg-blue-100 hover:bg-blue-200 text-blue-800":"bg-blue-600 text-white hover:bg-blue-700"}`,children:"All"}),L.map(e=>(0,l.jsx)(n(),{href:`/?type=${encodeURIComponent(e)}`,className:`px-4 py-2 rounded-full transition-colors ${a===e?"bg-blue-600 text-white hover:bg-blue-700":"bg-blue-100 hover:bg-blue-200 text-blue-800"}`,children:e},e))]}),(0,l.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:b.map((e,t)=>{let a=t+1,s=t===b.length-1,n=N>1&&a%N==0,d=n?a/N:0,i=E&&1===N&&a%5==0,u=E&&N>1&&n&&d%4==0;return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)(o,{ref:s?k:null,map:e}),i&&(0,l.jsx)(c.default,{mobileSlot:"3608248148",desktopSlot:"3608248148",className:"h-full"}),u&&(0,l.jsx)("div",{className:"col-span-1 md:col-span-2 lg:col-span-3 w-full",children:(0,l.jsx)(c.default,{mobileSlot:"1502735655",desktopSlot:"1502735655",className:"h-full"})})]},`map-${e.id}-${t}`)})}),v&&(0,l.jsx)("div",{className:"mt-8 text-center",children:(0,l.jsx)("div",{className:"inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-blue-600 border-r-transparent"})}),!w&&b.length>0&&(0,l.jsx)("div",{className:"mt-8",children:(0,l.jsx)(c.default,{mobileSlot:"4037399654",format:"multiplex",className:"w-full"})})]})}},5565:(e,t,a)=>{"use strict";a.d(t,{default:()=>r.a});var l=a(4146),r=a.n(l)},6046:(e,t,a)=>{"use strict";var l=a(6658);a.o(l,"usePathname")&&a.d(t,{usePathname:function(){return l.usePathname}}),a.o(l,"useRouter")&&a.d(t,{useRouter:function(){return l.useRouter}}),a.o(l,"useSearchParams")&&a.d(t,{useSearchParams:function(){return l.useSearchParams}})},5828:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var a in t)Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}(t,{callServer:function(){return l.callServer},createServerReference:function(){return s},findSourceMapURL:function(){return r.findSourceMapURL}});let l=a(9603),r=a(3355),s=a(4979).createServerReference},4146:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var a in t)Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}(t,{default:function(){return i},getImageProps:function(){return d}});let l=a(306),r=a(666),s=a(7970),n=l._(a(5514));function d(e){let{props:t}=(0,r.getImgProps)(e,{defaultLoader:n.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,a]of Object.entries(t))void 0===a&&delete t[e];return{props:t}}let i=s.Image}},e=>{var t=t=>e(e.s=t);e.O(0,[74,441,517,358],()=>t(6083)),_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.