PageSourceSearch

https://www.bbb.org/_next/static/chunks/308.4ab8ba92f04682c7.js

js bbb.org collected 2026-09-24 07:34:33 UTC 3,114 bytes, 1 lines download raw bytes

1!function(){try{var 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]="2b778a0b-f51e-4135-be65-5d0adc1a7de6",e._sentryDebugIdIdentifier="sentry-dbid-2b778a0b-f51e-4135-be65-5d0adc1a7de6")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[308],{70308:(e,t,r)=>{r.r(t),r.d(t,{default:()=>x});var n=r(27264),a=r(11212),o=r(48307),s=r(74383),i=r(72564),l=r(25749),c=r(89824),d=r(77664);let u=["marker"],h={width:"100%",height:{xs:"300px",sm:"400px",md:"500px"},borderRadius:"4px"},p={lat:40,lng:-98},f={mapTypeControl:!1,streetViewControl:!1,fullscreenControl:!1,gestureHandling:"cooperative",clickableIcons:!1},g=[[255,255,178,140],[254,204,92,180],[253,141,60,200],[240,59,32,220],[189,0,38,230]];function b(e){return new i.A({id:"scam-heatmap",data:e,getPosition:e=>[e[0],e[1]],getWeight:e=>e[2],radiusPixels:40,intensity:1.5,threshold:.03,colorRange:g,pickable:!1})}let x=function(){let{heatmapUrl:e,googleMapsApiKey:t,mapId:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[i,x]=(0,a.useState)([]),[w,y]=(0,a.useState)(!1),m=(0,a.useRef)(null),k=(0,a.useRef)([]),j=(0,a.useRef)(null),v=null!=t?t:"",A=(0,a.useMemo)(()=>({...f,mapId:r}),[r]),{isLoaded:R,loadError:_}=(0,o.KD)({googleMapsApiKey:v,libraries:u}),C=e||"/scamtracker/api/heatmap-data";(0,a.useEffect)(()=>{let e=!1;return fetch(C).then(e=>{if(!e.ok)throw Error("Heatmap fetch failed: ".concat(e.status));return e.json()}).then(t=>{var r;if(e)return;let n=null!=(r=t.points)?r:[];k.current=n,x(n)}).catch(()=>{e||y(!0)}),()=>{e=!0}},[C]),(0,a.useEffect)(()=>{m.current&&0!==i.length&&m.current.setProps({layers:[b(i)]})},[i]);let E=(0,a.useCallback)(e=>{j.current=e;let t=new s.A({});t.setMap(e),m.current=t,k.current.length>0&&t.setProps({layers:[b(k.current)]})},[]);if(!v||_||w)return null;if(!R)return(0,n.jsx)(l.A,{sx:{width:"100%",borderRadius:"4px",overflow:"hidden"},children:(0,n.jsx)(c.A,{variant:"rectangular",width:"100%",height:500})});let I=g.map((e,t)=>{let[r,n,a]=e;return"rgb(".concat(r,",").concat(n,",").concat(a,") ").concat(t/(g.length-1)*100,"%")}).join(", ");return(0,n.jsxs)(l.A,{sx:{position:"relative",...h},children:[(0,n.jsx)(o.u6,{mapContainerStyle:{width:"100%",height:"100%"},center:p,zoom:4,options:A,onLoad:E}),(0,n.jsxs)(l.A,{sx:{position:"absolute",bottom:32,left:12,bgcolor:"rgba(255,255,255,0.88)",borderRadius:1,px:1.5,py:1,boxShadow:1,pointerEvents:"none"},children:[(0,n.jsx)(d.A,{variant:"caption",display:"block",sx:{mb:.5,fontWeight:600,color:"text.secondary"},children:"Report Volume"}),(0,n.jsxs)(l.A,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,n.jsx)(d.A,{variant:"caption",sx:{color:"text.secondary",whiteSpace:"nowrap"},children:"Low"}),(0,n.jsx)(l.A,{sx:{width:120,height:10,borderRadius:1,background:"linear-gradient(to right, ".concat(I,")")}}),(0,n.jsx)(d.A,{variant:"caption",sx:{color:"text.secondary",whiteSpace:"nowrap"},children:"High"})]})]})]})}}}]);

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.