PageSourceSearch

https://www.bbb.org/_next/static/chunks/5090.a82f7e319bb4a4cb.js

js bbb.org collected 2026-09-24 07:34:39 UTC 2,638 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]="70d8362d-32d3-4acc-9a69-a0f532edb297",e._sentryDebugIdIdentifier="sentry-dbid-70d8362d-32d3-4acc-9a69-a0f532edb297")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5090],{75090:(e,t,a)=>{a.r(t),a.d(t,{default:()=>c});var n=a(27264),o=a(11212),r=a(42582);let s=e=>{let{label:t,value:a}=e;return(0,n.jsxs)("div",{style:i,children:[(0,n.jsx)("div",{style:{fontSize:12,fontWeight:700,letterSpacing:"0.08em",textTransform:"uppercase",color:"var(--bds-color-gray-70)",lineHeight:1.3,minHeight:"3.9em"},children:t}),(0,n.jsx)("div",{style:{fontSize:26,fontWeight:700,fontVariantNumeric:"tabular-nums",lineHeight:1.1,color:"var(--bds-color-black)"},children:a})]})},l={display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:16},i={background:"var(--bds-color-white)",border:"1px solid var(--bds-color-gray-45)",borderRadius:2,padding:"14px 18px",display:"flex",flexDirection:"column",gap:6},c=e=>{let{stats:t,countryView:a}=e,c=(0,r.A)("(max-width: 768px)"),d=(0,r.A)("(max-width: 480px)"),[u,f]=(0,o.useState)(null),[p,g]=(0,o.useState)(!0),[h,b]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=!1;return fetch("/scamtracker/api/scam-monthly-stats").then(e=>{if(!e.ok)throw Error("HTTP ".concat(e.status));return e.json()}).then(t=>{e||(f(t),g(!1))}).catch(()=>{e||(b(!0),g(!1))}),()=>{e=!0}},[]);let m=(0,o.useMemo)(()=>t?t.filter(e=>e.country===a&&e.reports>0).length:null,[t,a]),x={...l,gridTemplateColumns:"repeat(".concat(d?1:c?2:4,", minmax(0, 1fr))")};if(p)return(0,n.jsx)("div",{style:x,children:Array.from({length:4}).map((e,t)=>(0,n.jsx)("div",{style:{...i,height:78,background:"var(--bds-color-gray-30)"}},t))});if(h||!u)return null;let y=u.month.split(" ")[0];return(0,n.jsxs)("div",{style:x,children:[(0,n.jsx)(s,{label:"Reports - Last Month (".concat(y,")"),value:u.totalScams.toLocaleString()}),(0,n.jsx)(s,{label:"Median Loss - Last Month (".concat(y,")"),value:null!=u.medianLoss?(e=>e>=1e9?"$".concat((e/1e9).toFixed(1),"B"):e>=1e6?"$".concat((e/1e6).toFixed(1),"M"):e>=1e3?"$".concat((e/1e3).toFixed(1),"K"):"$".concat(e.toFixed(0)))(u.medianLoss):"-"}),(0,n.jsx)(s,{label:"% of Scams Reporting Losses - Last Month (".concat(y,")"),value:null!=u.pctReportingLoss?"".concat(u.pctReportingLoss.toFixed(1),"%"):"-"}),(0,n.jsx)(s,{label:"Locations reporting",value:null!=m?"".concat(m," / ").concat("USA"===a?51:13):"-"})]})}}}]);

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.