PageSourceSearch

https://policedata.org/static/js/7.8a1d9b3f.chunk.js

js policedata.org collected 2026-09-28 11:16:30 UTC 5,461 bytes, 2 lines download raw bytes

1(this["webpackJsonppolice-data-website"]=this["webpackJsonppolice-data-website"]||[]).push([[7],{100:function(e,t,a){"use strict";var l=a(127),o=a(1),c=(a(119),a(120),a(21));t.a=function(e){let{children:t,message:a,hold:r=!1,childProps:n={}}=e;const s=Object(o.useCallback)((e=>e.stopPropagation()),[]);return Object(c.jsx)(l.a,{className:"Tooltip",content:"string"===typeof a?Object(c.jsx)("p",{className:"message",dangerouslySetInnerHTML:{__html:a.trim().split("\n").map((e=>"<div>".concat(e,"</div>"))).join("")}}):a,arrow:!1,animation:"shift-away",delay:100,touch:!r||["hold",300],children:Object(c.jsx)("div",{onClick:s,...n,children:t})})}},186:function(e,t,a){"use strict";a.r(t);var l=a(100),o=a(97),c=a(23),r=a(87),n=a.n(r),s=a(88),i=a.n(s),p=a(1),d=a(98),u=a(21);function b(e){let{percentAll:t,percentComplete:a,totalPercent:r,populationAll:s,populationComplete:i,totalPopulation:b,stateCode:j,isCompleteData:h,startYear:m,endYear:O}=e;const[f]=Object(p.useState)(2),v=Object(p.useRef)(!1),g=Object(d.d)({percentAll:t,percentComplete:a,totalPercent:r,populationAll:s,populationComplete:i,totalPopulation:b,startYear:m,endYear:O,from:{percentAll:0,percentComplete:0,totalPercent:0,populationAll:0,populationComplete:0,totalPopulation:0},delay:v.current?0:2e3});return Object(p.useEffect)((()=>{v.current=!0}),[]),Object(u.jsxs)("div",{className:"progress-bar-wrapper fadeInUp",style:{animationDelay:"".concat(2e3,"ms")},children:[Object(u.jsxs)("div",{className:n()("legend",{highlighted:1===f}),children:[Object(u.jsxs)("div",{className:"label-wrapper",children:[Object(u.jsx)(d.b.div,{style:{width:g.percentComplete.to((e=>"calc(".concat(Math.round(e),"% - 3rem)")))}}),Object(u.jsx)("div",{className:"label",children:"Population with Full ".concat(m,"-").concat(O," Data Obtained ").concat(Object(c.e)(Math.round(a)),"%")})]}),Object(u.jsx)(d.b.div,{className:"arrow",style:{marginLeft:g.percentComplete.to((e=>"calc(".concat(Math.round(e),"% - 0.3ch)")))},children:"|"})]}),Object(u.jsxs)("div",{className:"progress-bar",children:[Object(u.jsx)(l.a,{message:"Show Complete Data Only",children:Object(u.jsx)(d.b.div,{className:n()("progress-bar","value",{highlighted:1===f}),onClick:()=>{Object(o.a)("completeDataMap",!0),Object(o.a)("completeDataTable",!0)},style:{width:g.percentComplete.to((e=>"".concat(Math.round(e),"%"))),zIndex:2,cursor:"pointer"},children:Object(u.jsx)(d.b.span,{children:g.percentComplete.to((e=>Object(c.e)(Math.round(e),"%")))})})}),Object(u.jsx)(l.a,{message:"Show All Available Data",children:Object(u.jsx)(d.b.div,{className:n()("progress-bar","value","opaque",{highlighted:2===f}),onClick:()=>{Object(o.a)("completeDataMap",!1),Object(o.a)("completeDataTable",!1)},style:{width:g.percentAll.to((e=>"".concat(Math.round(e),"%"))),zIndex:1,cursor:"pointer"},children:t<95&&Object(u.jsx)(d.b.span,{style:{color:"white"},children:g.percentAll.to((e=>Object(c.e)(Math.round(e),"%")))})})})]}),t>0&&Object(u.jsxs)("div",{className:n()("legend",{highlighted:2===f}),children:[Object(u.jsx)(d.b.div,{className:"arrow",style:{marginLeft:g.percentAll.to((e=>"calc(".concat(Math.round(e),"% - 0.3ch)")))},children:"|"}),Object(u.jsxs)("div",{className:"label-wrapper",children:[Object(u.jsx)(d.b.div,{style:{width:g.percentAll.to((e=>"calc(".concat(Math.round(e),"% - 4rem)")))}}),Object(u.jsx)(d.b.div,{className:"label",children:g.totalPopulation.to((e=>"At Least 1 Year of Data Obtained ".concat(Math.round(t),"%")))})]})]})]})}function j(e){var t,a;let{data:l,stateCode:o,isCompleteData:r}=e;const n=null===l||void 0===l||null===(t=l.m)||void 0===t?void 0:t.pa,s=null===l||void 0===l||null===(a=l.m)||void 0===a?void 0:a.pc,{startYear:i,endYear:p}=Object(c.j)(l),d={AL:5024279,AK:733391,AZ:7151502,AR:3011524,CA:39538223,CO:5773714,CT:3605944,DE:989948,DC:689545,FL:21538187,GA:10711908,HI:1455271,ID:1839106,IL:12812508,IN:6785528,IA:3190369,KS:2937880,KY:4505836,LA:4657757,ME:1362359,MD:6177224,MA:7029917,MI:10077331,MN:5706494,MS:2961279,MO:6154913,MT:1084225,NE:1961504,NV:3104614,NH:1377529,NJ:9288994,NM:2117522,NY:20201249,NC:10439388,ND:779094,OH:11799448,OK:3959353,OR:4237256,PA:13002700,RI:1097379,SC:5118425,SD:886667,TN:6910840,TX:29145505,UT:3271616,VT:643077,VA:8631393,WA:7705281,WV:1793716,WI:5893718,WY:576851,US:331449281}[o],j=n/d*100,h=s/d*100;return Object(u.jsx)("div",{className:"ReportBarHeader",children:Object(u.jsx)(b,{percentAll:j,percentComplete:h,totalPercent:100,populationAll:n,populationComplete:s,totalPopulation:d,stateCode:o,isCompleteData:r,startYear:i,endYear:p})})}d.a.assign({colors:null});const h=(e,t)=>!!i()(e.data,t.data)&&!!i()(e.isCompleteData,t.isCompleteData);t.default=Object(p.memo)(j,h)},88:function(e,t,a){"use strict";e.exports=function e(t,a){if(t===a)return!0;
vendor: 706 bytes, lines 1-2
1if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var l,o,c;if(Array.isArray(t)){if((l=t.length)!=a.length)return!1;for(o=l;0!==o--;)if(!e(t[o],a[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((l=(c=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(o=l;0!==o--;)if(!Object.prototype.hasOwnProperty.call(a,c[o]))return!1;for(o=l;0!==o--;){var r=c[o];if(!e(t[r],a[r]))return!1}return!0}return t!==t&&a!==a}}}]);
2//# sourceMappingURL=7.8a1d9b3f.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.