1(this["webpackJsonppolice-data-website"]=this["webpackJsonppolice-data-website"]||[]).push([[18],{136:function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"c",(function(){return i})),a.d(t,"b",(function(){return n})),a.d(t,"d",(function(){return c})),a.d(t,"e",(function(){return l})),a.d(t,"f",(function(){return r}));const s={position:"absolute",transform:"translate3d(-20rem, 0, 0)",height:"100vh",zIndex:-1},i={position:"absolute",transform:"translate3d(10rem, 0, 0)"},n={opacity:1,position:"absolute",height:"100vh",top:64,zIndex:999},c={opacity:1,position:"absolute",height:"100vh",top:64,zIndex:999},l={opacity:1,transform:"translate3d(0, 0px, 0)",height:228},r={opacity:0,transform:"translate3d(0, 2px, 0)",height:0}},165:function(e,t,a){},174:function(e){e.exports=JSON.parse('{"name":"police-data-website","version":"1.9.0","description":"Police Data Website","author":"Police Data","engines":{"node":">= 18.15.0","npm":">= 9.5.0"},"contributors":[{"name":"Peter Schmalfeldt","email":"[email protected]","url":"peterschmalfeldt.com"}],"scripts":{"start":"react-scripts start","build":"react-scripts build","postbuild":"yarn run compress_maps && cp build/index.html build/404.html && yarn run build:sw","compress_maps":"rollup -c","test":"eslint .","eslint":"eslint .","eslint:fix":"eslint --fix --max-warnings=0 .","format":"prettier --write \\"**/*.+(js|jsx|json|yml|yaml|md|html)\\"","scss-lint":"sass-lint \'src/**/*.scss\' -v -f table --max-warnings 0","scss-lint:fix":"sass-lint-auto-fix \'src/**/*.scss\' -d -h -c \'.sass-lint-auto-fix.yml\'","analyze":"source-map-explorer \'build/static/js/*.js\'","build:sw":"node ./src/swBuild.js","start:sw":"http-server ./build -c 0","eject":"react-scripts eject","update":"NODE_ENV=production git fetch && git pull && rm -fr node_modules/.cache && npm run -s build && npm run -s postbuild && npm run -s build:sw"},"repository":{"type":"git","url":"git+https://github.com/PoliceDataProject/website.git"},"bugs":{"url":"https://github.com/PoliceDataProject/website/issues"},"homepage":"https://github.com/PoliceDataProject/website#readme","keywords":["Police","Data","Website"],"dependencies":{"@primer/octicons-react":"^14.2.2","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@tippyjs/react":"^4.2.5","caniuse-lite":"1.0.30001632","classnames":"^2.2.6","corejs-typeahead":"^1.3.1","d3-array":"^3.0.1","d3-axis":"^3.0.0","d3-brush":"^3.0.0","d3-fetch":"^3.0.1","d3-format":"^3.0.0","d3-geo":"^3.0.1","d3-interpolate":"^3.0.1","d3-interpolate-path":"^2.2.3","d3-scale":"^4.0.0","d3-scale-chromatic":"^3.0.0","d3-selection":"^3.0.0","d3-shape":"^3.0.1","d3-transition":"^3.0.1","date-fns":"^2.22.1","date-fns-tz":"^1.1.4","dotenv":"^16.0.3","fast-deep-equal":"^3.1.3","i18next":"^20.3.1","i18next-browser-languagedetector":"^6.1.1","i18next-http-backend":"^1.2.6","immer":"^9.0.3","keen-slider":"^5.5.1","react":"^17.0.1","react-calendar":"^3.4.0","react-content-loader":"^6.0.1","react-dom":"^17.0.1","react-feather":"^2.0.9","react-helmet":"^6.1.0","react-i18next":"^11.10.0","react-router-dom":"^5.2.0","react-scripts":"^4.0.1","react-spring":"^9.2.3","react-swipeable":"^6.1.2","react-use":"^17.2.4","source-map-explorer":"^2.5.2","swr":"^0.5.6","topojson-client":"^3.0.2","use-dark-mode":"^2.3.1","workerize-loader":"^1.3.0"},"eslintConfig":{"extends":"react-app"},"lint-staged":{"*.+(js|jsx)":["yarn run eslint:fix","prettier --write \\"**/*.+(js|jsx)\\""],"*.+(json|yml|yaml|md)":["prettier --write \\"**/*.+(json|yml|yaml|md)\\""],"*.+(css|scss)":["yarn run scss-lint:fix","yarn run scss-lint"]},"devDependencies":{"@babel/node":"^7.25.0","@babel/plugin-proposal-private-property-in-object":"^7.21.11","@welldone-software/why-did-you-render":"^6.1.4","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","eslint":"^7.27.0","eslint-config-google":"^0.14.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-prettier":"^3.4.0","eslint-plugin-react":"^7.24.0","http-server":"^0.12.3","husky":"^6.0.0","lint-staged":"^11.0.0","npm-scripts-help":"^0.8.0","prettier":"^2.3.0","react-toastify":"^9.0.0","rollup":"^2.51.1","rollup-plugin-copy":"^3.3.0","sass":"^1.34.1","sass-lint":"^1.13.1","sass-lint-auto-fix":"^0.21.2","workbox-build":"^6.1.5"},"overrides":{"caniuse-lite":"1.0.30001632"},"browserslist":[">0.2%","not dead","not op_mini all"],"react-dotenv":{"whitelist":["API_DOMAIN","NODE_ENV","PUBLIC_URL"]}}')},255:function(e,t,a){"use strict";a.r(t);a(165);var s=a(136),i=a(23),n=a(1),c=a(213),l=a(214),r=a(215),o=a(216),d=a(217),p=a(218),b=a(219),j=a(220),h=a(221),u=a(257),m=a(39),O=a(98),g=a(211),x=a(253),w=a(212),v=a(166),f=a(21);const y=Object(n.lazy)((()=>Object(i.m)((()=>a.e(19).then(a.bind(null,129))))));function k(e){let{pages:t,setExpand:a,darkMode:s,windowSize:i,searchValue:c,setSearchValue:l}=e;const r=Object(n.useRef)(null),{t:o}=Object(u.a)(),d=Object(n.useCallback)((()=>{i.width>=769&&a(!1)}),[a,i.width]),p=Object(n.useCallback)((e=>{l(e)}),[l]),b=Object(n.useCallback)((()=>{a(!1),l(null)}),[a,l]);return Object(f.jsxs)("div",{className:"expand",ref:r,onMouseLeave:d,children:[Object(f.jsx)(n.Suspense,{fallback:Object(f.jsx)("div",{}),children:Object(f.jsx)(y,{onChange:p,onClick:b,container:"navbar"})}),!c&&t.map(((e,t)=>!0===e.showInNavbar?Object(f.jsx)(m.b,{to:e.pageLink.startsWith("mailto:")||e.pageLink.startsWith("http")?"#":e.pageLink,onClick:()=>{a(!1),(e.pageLink.startsWith("mailto:")||e.pageLink.startsWith("http"))&&(window.location=e.pageLink)},...i.width<769&&{onClick:()=>{a(!1),(e.pageLink.startsWith("mailto:")||e.pageLink.startsWith("http"))&&(window.location=e.pageLink)}},children:Object(f.jsx)("span",{...L(e.pageLink,e.animationDelayForNavbar),children:o(e.displayName)})},t):null)),!c&&Object(f.jsxs)(f.Fragment,{children:[i.width<769&&Object(f.jsx)(P,{darkMode:s}),Object(f.jsx)("div",{className:"expand-bottom",children:Object(f.jsx)("h5",{children:"An initiative to collect and publish police use of force data nationwide."})})]})]})}var N=function(e){let{pages:t}=e;const[a,i]=Object(n.useState)(!1),[j,h]=Object(n.useState)(null),y=Object(v.a)(!0),{t:N}=Object(u.a)();Object(g.a)(a);const L=Object(x.a)();Object(w.a)((()=>{i(!1),h(null)}));const C=Object(O.f)(!0,{from:{opacity:0}
1,enter:{opacity:1}}),z=Object(O.f)(a,{from:L.width<769?s.b:s.a,enter:L.width<769?s.d:s.c,leave:L.width<769?s.b:s.a,config:{mass:1,tension:210,friction:26}}),S=Object(n.useCallback)((()=>{L.width>=769&&i(!0)}),[L.width]);return C(((e,s)=>Object(f.jsxs)(O.b.div,{className:"Navbar",style:e,children:[Object(f.jsx)("div",{className:"navbar-middle",children:Object(f.jsxs)(m.b,{to:"/",onClick:i.bind(this,!1),children:["Police ",Object(f.jsx)("span",{children:"Data"})]})}),Object(f.jsxs)("div",{className:"navbar-right",onMouseEnter:S,...L.width<769&&{onClick:i.bind(this,!a)},children:[L.width<769&&Object(f.jsx)("span",{children:N(a?"Close":"Menu")}),L.width>=769&&Object(f.jsxs)(f.Fragment,{children:[Object(f.jsx)(m.b,{to:"#search",children:Object(f.jsx)("span",{children:Object(f.jsx)(c.a,{})})}),Object(f.jsx)(m.b,{to:"/",children:Object(f.jsx)("span",{children:Object(f.jsx)(l.a,{...I("/")})})}),Object(f.jsx)(m.b,{to:"/findings",children:Object(f.jsx)("span",{children:Object(f.jsx)(r.a,{...I("/findings")})})}),Object(f.jsx)(m.b,{to:"/police-killings-police-violence",children:Object(f.jsx)("span",{children:Object(f.jsx)(o.a,{...I("/police-killings-police-violence")})})}),Object(f.jsx)(m.b,{to:"/about",children:Object(f.jsx)("span",{children:Object(f.jsx)(d.a,{...I("/about")})})}),Object(f.jsx)(m.b,{to:{pathname:"https://drive.google.com/file/d/1q2rl7FInse4tf82mbAJ5VHvj6ZnAlcAs/view?usp=sharing"},target:"_blank",children:Object(f.jsx)("span",{children:Object(f.jsx)(p.a,{})})}),Object(f.jsx)(m.b,{to:{pathname:"mailto:[email protected]"},target:"_blank",children:Object(f.jsx)("span",{children:Object(f.jsx)(b.a,{})})}),Object(f.jsx)("span",{children:Object(f.jsx)(P,{darkMode:y})})]})]}),z(((e,a)=>a&&Object(f.jsx)(O.b.div,{style:e,children:Object(f.jsx)(k,{pages:t,setExpand:i,darkMode:y,windowSize:L,searchValue:j,setSearchValue:h})})))]})))};const L=e=>({className:"".concat(window.location.pathname===e?"focused":"")}),I=e=>({style:{stroke:window.location.pathname===e?"#4c75f2":""}}),P=e=>{let{darkMode:t}=e;return Object(f.jsx)("div",{className:"SunMoon",onClick:t.toggle,children:Object(f.jsx)("div",{children:t.value?Object(f.jsx)(j.a,{color:"#ffc107"}):Object(f.jsx)(h.a,{})})})};var C=a(174),z=a(4),S=a(96);a(175);const A=Object(n.lazy)((()=>Object(i.m)((()=>Promise.all([a.e(0),a.e(6),a.e(21),a.e(22)]).then(a.bind(null,256)))))),D=Object(n.lazy)((()=>Object(i.m)((()=>Promise.all([a.e(0),a.e(32)]).then(a.bind(null,224)))))),E=Object(n.lazy)((()=>Object(i.m)((()=>Promise.all([a.e(0),a.e(34)]).then(a.bind(null,225)))))),M=Object(n.lazy)((()=>Object(i.m)((()=>Promise.all([a.e(0),a.e(35)]).then(a.bind(null,226)))))),_=Object(n.lazy)((()=>Object(i.m)((()=>Promise.all([a.e(0),a.e(36)]).then(a.bind(null,227)))))),W=Object(n.lazy)((()=>Object(i.m)((()=>Promise.all([a.e(0),a.e(37)]).then(a.bind(null,228)))))),V=Object(n.lazy)((()=>Object(i.m)((()=>Promise.all([a.e(0),a.e(33)]).then(a.bind(null,229)))))),F=Object(n.lazy)((()=>Object(i.m)((()=>Promise.all([a.e(0),a.e(6),a.e(25)]).then(a.bind(null,230))))));t.default=()=>{const e=Object(z.h)();Object(n.useEffect)((()=>{if(localStorage.getItem("version")!=C.version&&("caches"in window&&(caches.keys().then((e=>{e.forEach((e=>{caches.delete(e)}))})),window.location.reload(!0)),localStorage.clear(),localStorage.setItem("version",C.version)),e.pathname.startsWith("/report/us"))return window.location.href="/",null}));const t=[{pageLink:"/",view:A,displayName:"Explore Data",showInNavbar:!0},{pageLink:"/findings",view:E,displayName:"Initial Findings",showInNavbar:!0},{pageLink:"/police-killings-police-violence",view:M,displayName:"Police Killings Archive",showInNavbar:!0},{pageLink:"/about",view:D,displayName:"About",showInNavbar:!0},{pageLink:"https://drive.google.com/file/d/1q2rl7FInse4tf82mbAJ5VHvj6ZnAlcAs/view?usp=sharing",view:null,displayName:"Report",showInNavbar:!0},{pageLink:"mailto:[email protected]",view:null,displayName:"Contact",showInNavbar:!0},{pageLink:"/report/:stateCode",view:F,displayName:"State",showInNavbar:!1},{pageLink:"/report/:stateCode/:locationName",view:F,displayName:"State",showInNavbar:!1},{pageLink:"/report/:stateCode/:locationName/:statisticName",view:F,displayName:"State",showInNavbar:!1}
1,{pageLink:"/privacy-policy",view:_,displayName:"Privacy Policy",showInNavbar:!1},{pageLink:"/terms-of-use",view:W,displayName:"Terms of Use",showInNavbar:!1},{pageLink:"/acceptable-use",view:V,displayName:"Acceptable Use",showInNavbar:!1}];return Object(f.jsxs)("div",{className:"App",children:[Object(f.jsx)(S.a,{newestOnTop:!0,closeOnClick:!0,pauseOnHover:!0,position:"top-center",autoClose:6e3,limit:1,theme:"colored"}),Object(f.jsx)(N,{pages:t}),Object(f.jsx)(n.Suspense,{fallback:Object(f.jsx)("div",{}),children:Object(f.jsxs)(z.d,{location:e,children:[t.map(((e,t)=>Object(f.jsx)(z.b,{exact:!0,path:e.pageLink,render:()=>Object(f.jsx)(e.view,{})},t))),Object(f.jsx)(z.a,{to:"/"})]})})]})}}}]); 2//# sourceMappingURL=18.51d9881c.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.