PageSourceSearch

https://blr-potholes.pages.dev/_next/static/chunks/224.53aa6740cfb95cbd.js

js blr-potholes.pages.dev collected 2026-10-03 06:37:21 UTC 8,242 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a488ee5e-5fdc-4333-a9d7-1596b200c541",e._sentryDebugIdIdentifier="sentry-dbid-a488ee5e-5fdc-4333-a9d7-1596b200c541")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[224],{7:(e,t,n)=>{n.d(t,{DX:()=>s,xV:()=>o});var r=n(7734),a=n(16801),l=n(50294),s=r.forwardRef((e,t)=>{let{children:n,...a}=e,s=r.Children.toArray(n),o=s.find(c);if(o){let e=o.props.children,n=s.map(t=>t!==o?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,l.jsx)(i,{...a,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,l.jsx)(i,{...a,ref:t,children:n})});s.displayName="Slot";var i=r.forwardRef((e,t)=>{let{children:n,...l}=e;if(r.isValidElement(n)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(n);return r.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let a=e[r],l=t[r];/^on[A-Z]/.test(r)?a&&l?n[r]=(...e)=>{l(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...l}:"className"===r&&(n[r]=[a,l].filter(Boolean).join(" "))}return{...e,...n}}(l,n.props),ref:t?(0,a.t)(t,e):e})}return r.Children.count(n)>1?r.Children.only(null):null});i.displayName="SlotClone";var o=({children:e})=>(0,l.jsx)(l.Fragment,{children:e});function c(e){return r.isValidElement(e)&&e.type===o}},14348:(e,t,n)=>{var r=n(69692);n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},16801:(e,t,n)=>{n.d(t,{s:()=>s,t:()=>l});var r=n(7734);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return t=>{let n=!1,r=e.map(e=>{let r=a(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():a(e[t],null)}}}}function s(...e){return r.useCallback(l(...e),e)}},19913:(e,t,n)=>{n.d(t,{hO:()=>o,sG:()=>i});var r=n(7734),a=n(61507),l=n(7),s=n(50294),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...a}=e,i=r?l.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(i,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function o(e,t){e&&a.flushSync(()=>e.dispatchEvent(t))}},30260:(e,t,n)=>{n.r(t),n.d(t,{default:()=>N});var r=n(50294),a=n(7734),l=n(44181),s=n(32317),i=n(45298),o=n(15550),c=n(45422),d=n(52733),u=n(20452),h=n(14348);n(45402);var f=n(23767),p=n.n(f),g=n(29547),m=n.n(g),x=n(6187),y=n(25307),b=n(76950),v=n(33151),w=n(47346),j=n(15505),k=n(1267),C=n(51011);function M(e,t,n,r){let a=e*Math.PI/180,l=n*Math.PI/180,s=(n-e)*Math.PI/180,i=(r-t)*Math.PI/180,o=Math.sin(s/2)*Math.sin(s/2)+Math.cos(a)*Math.cos(l)*Math.sin(i/2)*Math.sin(i/2);return 2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))*6371e3}function N(){let[e,t]=(0,a.useState)(!1),[n,f]=(0,a.useState)("street"),[g,N]=(0,a.useState)(!1),[S,I]=(0,a.useState)(null),[z,E]=(0,a.useState)([]),[P,R]=(0,a.useState)((0,y.nP)("Bengaluru")),[A,F]=(0,a.useState)(16),D=(0,h.useSearchParams)(),_=D.get("lat"),U=D.get("lng"),O=(0,x.a)();(0,a.useEffect)(()=>{fetch("".concat("https://blr-map-api.warlockdn.workers.dev","/api/data")).then(e=>e.json()).then(e=>{if(_&&U){let t=parseFloat(_),n=parseFloat(U),r=e.result.data.filter(e=>30>=M(t,n,e.lat,e.long)).map(e=>({...e,distance:M(t,n,e.lat,e.long)}));E(r);r.length>0?R([r.reduce((e,t)=>e+t.lat,0)/r.length,r.reduce((e,t)=>e+t.long,0)/r.length]):R([t,n]),F(16)}else E(e.result.data)}).catch(e=>console.error(e))},[_,U,O]),(0,a.useEffect)(()=>{S&&P&&A&&g&&setTimeout(()=>
1{try{S.invalidateSize(),S.setView(P,20)}catch(e){console.warn("Map view update failed:",e)}},100)},[S,P,A,g]);let V=y.UH[n];return(0,r.jsxs)("div",{className:"relative h-screen w-screen overflow-hidden bg-gray-100",children:[_&&U&&(0,r.jsxs)("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-[1000] bg-white/90 dark:bg-gray-900/90 p-3 rounded-lg shadow-lg border border-gray-200 dark:border-gray-700 min-w-md max-w-md text-center text-gray-900 dark:text-gray-100 backdrop-blur",children:[(0,r.jsx)("h3",{className:"font-semibold text-xs mb-1",children:"Existing Submissions"}),(0,r.jsxs)("p",{className:"text-sm",children:["Found ",(0,r.jsx)("strong",{children:z.length})," points",(0,r.jsx)("br",{}),(0,r.jsx)("span",{className:"text-xs",children:"within 30m of the target location"})]})]}),(0,r.jsxs)(l.W,{center:P,zoom:A,maxZoom:18,className:"h-full w-full",zoomControl:!1,style:{height:"100vh",width:"100vw"},children:[(0,r.jsx)(s.e,{url:V.url,attribution:V.attribution},n),(0,r.jsx)(b.r,{onMapLoad:()=>N(!0),onMapInstance:I}),_&&U&&(0,r.jsx)(i.p,{position:[parseFloat(_),parseFloat(U)],icon:p().icon({iconUrl:"data:image/svg+xml;utf8,\n                <svg xmlns='http://www.w3.org/2000/svg' width='256' height='256' viewBox='0 0 256 256' fill='%23ff6b6b'>\n                  <g style='stroke: none; fill: none; opacity: 1;' transform='translate(1.4 1.4) scale(2.81 2.81)'>\n                    <path d='M 45 0 C 27.677 0 13.584 14.093 13.584 31.416 c 0 4.818 1.063 9.442 3.175 13.773 c 2.905 5.831 11.409 20.208 20.412 35.428 l 4.385 7.417 C 42.275 89.252 43.585 90 45 90 s 2.725 -0.748 3.444 -1.966 l 4.382 -7.413 c 8.942 -15.116 17.392 -29.4 20.353 -35.309 c 0.027 -0.051 0.055 -0.103 0.08 -0.155 c 2.095 -4.303 3.157 -8.926 3.157 -13.741 C 76.416 14.093 62.323 0 45 0 z M 45 42.81 c -6.892 0 -12.5 -5.607 -12.5 -12.5 c 0 -6.893 5.608 -12.5 12.5 -12.5 c 6.892 0 12.5 5.608 12.5 12.5 C 57.5 37.202 51.892 42.81 45 42.81 z' style='fill: %23ff6b6b; opacity: 1;' />\n                  </g>\n                </svg>",iconSize:[35,35],iconAnchor:[17.5,35]}),children:(0,r.jsx)(o.z,{children:(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("p",{className:"font-semibold",children:"Target Location"}),(0,r.jsxs)("p",{className:"text-sm",children:[parseFloat(_).toFixed(4),", ",parseFloat(U).toFixed(4)]})]})})}),(0,r.jsx)(m(),{chunkedLoading:!0,maxClusterRadius:40,disableClusteringAtZoom:16,iconCreateFunction:e=>{var t,n,r,a,l;let s=(null===(l=e.getAllChildMarkers()[0])||void 0===l?void 0:null===(a=l.options.icon)||void 0===a?void 0:null===(r=a.options)||void 0===r?void 0:null===(n=r.iconUrl)||void 0===n?void 0:null===(t=n.match(/category='([^']+)'/))||void 0===t?void 0:t[1])||"#3498db",i=(0,k.oU)(Number(s));return p().divIcon({html:'<svg width="25" height="25"><circle cx="12.5" cy="12.5" r="12.5" fill="'.concat(i,'" /></svg>'),className:"custom-cluster-icon",iconSize:[25,25]})},children:z.map((e,t)=>(0,r.jsx)(C.x,{point:e,idx:t,onMarkerClick:()=>{}},t))})]},"".concat(P[0],"-").concat(P[1],"-").concat(A)),(0,r.jsx)(j.p,{isVisible:!g}),(0,r.jsx)("div",{className:"absolute top-4 left-4 z-[1000]",children:(0,r.jsx)(u.$,{onClick:()=>t(!e),size:"icon",className:"h-12 w-12 rounded-full shadow-lg bg-white text-gray-800 hover:bg-gray-100 border",children:e?(0,r.jsx)(c.A,{className:"h-5 w-5"}):(0,r.jsx)(d.A,{className:"h-5 w-5"})})}),(0,r.jsx)(v.r,{mapInstance:S}),(0,r.jsx)(w.H,{isOpen:e,selectedLayer:n,onLayerChange:f,mapInstance:S}),e&&(0,r.jsx)("div",{className:"absolute inset-0 z-[998] bg-black bg-opacity-20",onClick:()=>t(!1)})]})}delete p().Icon.Default.prototype._getIconUrl,p().Icon.Default.mergeOptions({iconRetinaUrl:"/placeholder.svg?height=25&width=25",iconUrl:"/placeholder.svg?height=25&width=25",shadowUrl:"/placeholder.svg?height=25&width=25"})},45422:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(78230).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},52733:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(78230).A)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])}}]);

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.