PageSourceSearch

https://policedata.org/static/js/39.54d99b43.chunk.js

js policedata.org collected 2026-09-28 11:17:00 UTC 2,400 bytes, 2 lines download raw bytes

1(this["webpackJsonppolice-data-website"]=this["webpackJsonppolice-data-website"]||[]).push([[39],{112:function(t,e,c){"use strict";var i=c(1),a=c(84),n=a.a?i.useLayoutEffect:i.useEffect,o={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};e.a=a.a&&"undefined"!==typeof window.ResizeObserver?function(){var t=Object(i.useState)(null),e=t[0],c=t[1],a=Object(i.useState)(o),s=a[0],l=a[1],r=Object(i.useMemo)((function(){return new window.ResizeObserver((function(t){if(t[0]){var e=t[0].contentRect,c=e.x,i=e.y,a=e.width,n=e.height,o=e.top,s=e.left,r=e.bottom,d=e.right;l({x:c,y:i,width:a,height:n,top:o,left:s,bottom:r,right:d})}}))}),[]);return n((function(){if(e)return r.observe(e),function(){r.disconnect()}}),[e]),[c,s]}:function(){return[a.b,o]}},139:function(t,e,c){"use strict";c.r(e);var i=c(14),a=c(89),n=c(87),o=c.n(n),s=c(1),l=c(45),r=c.n(l),d=c(4),b=c(98),h=c(96),u=c(112),f=c(21);const p=t=>{var e;let{mapStatistic:c,setMapStatistic:n,isCompleteData:l}=t;const[p,{width:O}]=Object(u.a)(),[j,m]=Object(s.useState)(!1),[v,w]=Object(s.useState)(0),g=Object(d.g)(),x=(null===(e=Object(d.i)().stateCode)||void 0===e?void 0:e.toUpperCase())||"US",S=Object(d.i)().locationName||"statewide",y=i.h.indexOf(c)>=0,[k,C]=Object(b.d)((()=>({opacity:0,background:"".concat(i.w[c].color,"20"),transform:y?"translate3d(".concat(O*i.h.indexOf(c)/i.h.length,"px, 0, 0)"):null,width:"calc(".concat(100/i.h.length,"%)"),config:b.c.gentle})));Object(s.useEffect)((()=>{if(O>0){const t=i.h.indexOf(c)>=0;r.a.unstable_batchedUpdates((()=>{var e;C.start({transform:t?"translate3d(".concat(O*i.h.indexOf(c)/i.h.length,"px, 0, 0)"):null,opacity:t?1:0,background:t?"".concat(null===(e=i.w[c])||void 0===e?void 0:e.color,"20"):null,delay:0===v?1500:0,onStart:m.bind(void 0,!0),onRest:m.bind(void 0,!1)})}))}}),[v,c,C,O]);const N=Object(s.useCallback)((t=>{w((t=>t+1)),n(t),"US"!==x&&(h.b.dismiss(),g.push(Object(a.e)(x,S,t.replace(/_/g,"-"))))}),[n,g,S,x]);return Object(f.jsxs)("div",{className:"MapSwitcher",ref:p,children:[Object(f.jsx)(b.b.div,{className:"highlight",style:k}),i.h.map(((t,e)=>Object(f.jsx)("div",{className:o()("clickable",{["is-".concat(t)]:!j}),onClick:N.bind(void 0,t),style:{width:"calc(".concat(100/i.h.length,"%)")}},e)))]})},O=(t,e)=>t.mapStatistic===e.mapStatistic&&t.isCompleteData===e.isCompleteData;e.default=Object(s.memo)(p,O)}}]);
2//# sourceMappingURL=39.54d99b43.chunk.js.map

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.