1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[681],{80043:function(e,a,n){"use strict";n.d(a,{k:function(){return o}});var t=n(5152);let o=n.n(t)()(()=>Promise.all([n.e(8823),n.e(8585),n.e(6540)]).then(n.bind(n,6540)),{loadableGenerated:{webpack:()=>[6540]},ssr:!1});a.Z=o},98370:function(e,a,n){"use strict";n.d(a,{Z:function(){return c}});var t=n(85893),o=n(94184),i=n.n(o),l=n(20066),r=n(36607),s=n.n(r),c=e=>{let{ctaText:a,ctaTextMobile:n,ctaHref:o,variant:r="default",ariaLabel:c="Johns Hopkins navigation"}=e,u=a||("default"===r?"Get started":void 0),d=o||("default"===r?"/explore/intro":void 0),h=d?(0,l.cQ)(d):void 0,m=n||u;return(0,t.jsxs)("nav",{"aria-label":c,className:i()("cowd-theme",s().navigation,"campaign"===r&&s().campaign),children:[(0,t.jsx)("div",{className:s().logoLink,children:(0,t.jsx)("img",{src:"/svg-icons/cowd/jhu-cowd-lockup.svg",alt:"Johns Hopkins School of Government and Policy and Center for Opportunity and Wealth Data",width:390,height:72})}),u&&h?(0,t.jsxs)("a",{className:s().cta,href:h,"data-analytics-url":d,children:[(0,t.jsx)("span",{className:s().ctaDesktop,children:u}),(0,t.jsx)("span",{className:s().ctaMobile,children:m})]}):null]})}},26110:function(e,a,n){"use strict";n.d(a,{Z:function(){return A}});var t=n(85893),o=n(9008),i=n.n(o),l=n(4298),r=n.n(l),s=n(80043),c=n(41664),u=n.n(c),d=n(94184),h=n.n(d),m=n(67294),v=n(39332),g=n(11163),_=n(88100),p=n(19258),x=n.n(p),b=n(17398),f=n(82906),N=n(54385),w=n(30093);let j=[{href:"/explore/intro",label:"Platform"},{href:"/news",label:"News"}],C=e=>"/"===e||"/api"===e||"/api-landing"===e||"/api/request"===e||"/api-request"===e||e.startsWith("/explore")&&!(0,N.Yw)(e),k=e=>{let{isLoggedIn:a,isLoading:n,session:t}=e,o=(0,g.useRouter)(),i=(0,v.usePathname)(),{loginWithRedirect:l}=(0,_.D3)(),{utmParams:r}=(0,m.useContext)(b.B),[s,c]=(0,m.useState)(!1),[u,d]=(0,m.useState)(!1),[h,p]=(0,m.useState)(""),[j,k]=(0,m.useState)([]),O=(0,m.useRef)(null),y=C(i);(0,m.useEffect)(()=>{c(!1),d(!1),p(""),k([])},[i]),(0,m.useEffect)(()=>{if(!s)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[s]),(0,m.useEffect)(()=>{if(!s&&!u)return;let e=e=>{"Escape"===e.key&&(c(!1),d(!1),p(""),k([]))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s,u]),(0,m.useEffect)(()=>{if(u){var e;null===(e=O.current)||void 0===e||e.focus()}},[u]),(0,m.useEffect)(()=>{let e=!0;return h.trim().length<3?k([]):(async()=>{try{let n=await (0,N.OT)(h,5,"global");if(e){var a;k(null!==(a=null==n?void 0:n.data.data.hits)&&void 0!==a?a:[])}}catch(a){e&&k([]),x().error(a)}})(),()=>{e=!1}},[h]);let D=()=>{p(""),k([])},S=()=>{c(!1),D()},W=async()=>{if(S(),a){await o.push("/dashboard");return}try{var e,n,t,s,c,u,d,h;let a=null!==(e=localStorage.getItem("ajs_user_id"))&&void 0!==e?e:"none";await l({authorizationParams:{"ext-referrer":(0,N.G)(null!==(n=(null==r?void 0:r.referrer)!=="none"?null==r?void 0:r.referrer:window.location.href)&&void 0!==n?n:"none"),"ext-utm_campaign":(0,N.G)(null!==(t=null==r?void 0:r.utm_campaign)&&void 0!==t?t:"none"),"ext-utm_content":(0,N.G)(null!==(s=null==r?void 0:r.utm_content)&&void 0!==s?s:"none"),"ext-utm_medium":(0,N.G)(null!==(c=null==r?void 0:r.utm_medium)&&void 0!==c?c:"none"),"ext-utm_source":(0,N.G)(null!==(u=null==r?void 0:r.utm_source)&&void 0!==u?u:"none"),"ext-utm_term":(0,N.G)(null!==(d=null==r?void 0:r.utm_term)&&void 0!==d?d:"none"),"ext-partnerSource":(0,N.G)(null!==(h=null==r?void 0:r.partnerSource)&&void 0!==h?h:"none"),"ext-conference":!1,"ext-conversionPage":(0,N.G)(i,!0),"ext-anonymous-id":(0,N.G)(a)}})}catch(e){console.error(e),x().error(e)}};return{closeNavigation:S,closeSearch:()=>{d(!1),D()},handleLogin:W,handleSearchSubmit:e=>{e.preventDefault();let a=h.trim();a.length<2||((0,N.pE)("other",()=>{(0,w.U3)("".concat(null==t?void 0:t.Email),a,"nav-bar",f.Sc.SITE_SEARCH)},N.Q2),o.push((0,N.ji)("/search?q=",a),void 0,{shallow:!0}),D(),d(!1),c(!1))},handleSuggestionClick:e=>{if(D(),d(!1),c(!1),!e.isInternalUrl){window.open(e.url,"_blank","noopener,noreferrer");return}let a="resourcesExternalResource"===e.type?(0,N.oM)(e.title,"resources"):e.url;o.push(a)},isLight:y,isLinkActive:e=>"/explore"===e?i.startsWith("/explore")&&!(0,N.Yw)(i):i===e,isLoading:n,isLoggedIn:a,isMenuOpen:s,isSearchOpen:u,pathname:i,searchInputRef:O,
1searchResults:j,searchTerm:h,setIsMenuOpen:c,setIsSearchOpen:d,setSearchTerm:p}};var O=n(23124),y=n.n(O),D=e=>{let{closeSearch:a,handleLogin:n,handleSearchSubmit:o,handleSuggestionClick:i,isLight:l,isLinkActive:r,isLoading:s,isLoggedIn:c,isSearchOpen:d,pathname:m,searchInputRef:v,searchResults:g,searchTerm:_,setIsSearchOpen:p,setSearchTerm:x}=k(e);return(0,t.jsxs)("nav",{"aria-label":"Main navigation",className:h()("cowd-theme",y().navigation,l?y().light:y().dark),children:[(0,t.jsx)("div",{className:y().logoLink,children:(0,t.jsx)("img",{src:l?"/svg-icons/cowd/logo-green.svg":"/svg-icons/cowd/logo-white.svg",alt:"Center for Opportunity and Wealth Data",width:200,height:34})}),d?(0,t.jsxs)("div",{className:y().desktopSearch,children:[(0,t.jsxs)("button",{type:"button",className:y().closeSearchButton,onClick:a,children:[(0,t.jsx)("span",{className:y().closeLabel,children:"Close"}),(0,t.jsx)("span",{className:y().closeIcon,"aria-hidden":"true"})]}),(0,t.jsxs)("form",{className:y().searchForm,onSubmit:o,role:"search",children:[(0,t.jsx)("label",{className:y().srOnly,htmlFor:"cowd-nav-search",children:"Search data, articles, and more"}),(0,t.jsx)("input",{ref:v,id:"cowd-nav-search",type:"search",value:_,onChange:e=>x(e.target.value.trimStart().replace(/\s\s+/g," ")),placeholder:"Search data, articles, and more",autoComplete:"off"}),(0,t.jsx)("button",{type:"submit",className:y().searchSubmitButton,"aria-label":"Submit search",children:(0,t.jsx)("span",{className:y().searchGlyph,"aria-hidden":"true"})}),g.length>0&&(0,t.jsxs)("ul",{className:y().searchResults,"aria-label":"Search suggestions",children:[g.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>i(e),children:[(0,t.jsx)("span",{children:e.title}),(0,t.jsx)("small",{children:e.type.replace(/([A-Z])/g," $1")})]})},e.objectID)),(0,t.jsx)("li",{className:y().allResults,children:(0,t.jsx)("button",{type:"submit",children:"See all results"})})]})]})]}):(0,t.jsxs)("div",{className:y().desktopLinks,children:[j.map(e=>(0,t.jsx)(u(),{href:e.href,className:h()(r(e.href)&&y().activeLink),"aria-current":r(e.href)?"page":void 0,children:e.label},e.href)),(0,t.jsxs)("button",{type:"button",className:y().loginButton,onClick:n,disabled:s,"data-analytics-url":c?"/dashboard":"auth.centerforwealthdata.org",children:[!s&&(0,t.jsx)("img",{src:l?"/svg-icons/cowd/account-green.svg":"/svg-icons/cowd/account-white.svg",alt:"",role:"presentation",width:22,height:22}),(0,t.jsx)("span",{className:y().loginLabel,children:s?"Loadingâ¦":c?"My Profile":"Login"})]}),"/search"!==m&&(0,t.jsx)("button",{type:"button",className:y().openSearchButton,onClick:()=>p(!0),"aria-label":"Open search",children:(0,t.jsx)("span",{className:y().searchGlyph,"aria-hidden":"true"})})]})]})},S=n(78528),W=n.n(S),L=e=>{let{closeNavigation:a,handleLogin:n,handleSearchSubmit:o,isLight:i,isLinkActive:l,isLoading:r,isLoggedIn:s,isMenuOpen:c,searchInputRef:d,searchTerm:m,setIsMenuOpen:v,setSearchTerm:g}=k(e),_=i&&!c||!i&&c?"/svg-icons/cowd/logo-green.svg":"/svg-icons/cowd/logo-white.svg";return(0,t.jsxs)("nav",{"aria-label":"Main mobile navigation",className:h()("cowd-theme",W().navigation,i?W().light:W().dark,c&&W().menuOpen),children:[(0,t.jsxs)("div",{className:W().navigationHeader,children:[(0,t.jsx)("div",{className:W().logoLink,children:(0,t.jsx)("img",{src:_,alt:"Center for Opportunity and Wealth Data",width:200,height:34})}),(0,t.jsxs)("button",{type:"button",className:W().menuButton,onClick:()=>v(e=>!e),"aria-expanded":c,"aria-controls":"cowd-mobile-navigation-menu","aria-label":c?"Close menu":"Open menu",children:[(0,t.jsx)("span",{"aria-hidden":"true"}),(0,t.jsx)("span",{"aria-hidden":"true"}),(0,t.jsx)("span",{"aria-hidden":"true"})]})]}),c&&(0,t.jsxs)("div",{id:"cowd-mobile-navigation-menu",className:W().navigationMenu,children:[(0,t.jsx)("div",{className:W().navigationLinks,children:j.map(e=>(0,t.jsx)(u(),{href:e.href,onClick:a,className:h()(l(e.href)&&W().activeLink),"aria-current":l(e.href)?"page":void 0,children:e.label},e.href))}),(0,t.jsx)("span",{className:W().menuDivider,"aria-hidden":"true"}),(0,t.jsxs)("button",{type:"button",className:W().loginButton,onClick:n,disabled:r,"data-analytics-url":s?"/dashboard":"auth.centerforwealthdata.org",children:[(0,t.jsx)("span",{className:W().loginLabel,children:r?"Loadingâ¦":s?"My Profile":"Login"}),!r&&(0,t.jsx)("span",{className:W().accountGlyph,"aria-hidden":"true"})]}),(0,t.jsxs)("form",{className:W().searchForm,onSubmit:o,role:"search",children:[(0,t.jsx)("label",{className:W().srOnly,htmlFor:"cowd-mobile-nav-search",children:"Search data, articles, and more"}),(0,t.jsx)("input",{ref:d,id:"cowd-mobile-nav-search",type:"search",value:m,onChange:e=>g(e.target.value.trimStart().replace(/\s\s+/g," ")),placeholder:"Search",autoComplete:"off"}),(0,t.jsx)("button",{type:"submit",className:W().searchSubmitButton,"aria-label":"Submit search",children:(0,t.jsx)("span",{className:W().searchGlyph,"aria-hidden":"true"})})]})]})]})},G=n(99507),M=n.n(G),B=n(10212),E=n(43442),I=n(31684),R=n(37019),T=n(86426),H=n(65965),P=n(57004),q=n(98370);let z=function(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!!a||"cowd.sgp.jhu.edu"===e.toLowerCase().replace(/^www\./,"")};var F=()=>{let[e,a]=(0,m.useState)(!1);return(0,m.useEffect)(()=>{a(z(window.location.hostname))},[]),e},A=e=>{let{children:a,headTitle:n,metaContent:o,keywords:l,session:c,isLoggedIn:u,isLoading:d,redirectModalData:h,hideFooter:g,hideNavbar:p,useSimpleNavigation:f,simpleNavCtaText:j,simpleNavCtaTextMobile:C,simpleNavCtaHref:k}=e,{inactivityModalIsOpen:O}=(0,m.useContext)(I.Z),{isSessionThirtyMinWarningModalOpen:y,setIsLoading:S,utmParam
1s:W}=(0,m.useContext)(b.B),{chartInExpandedView:G}=(0,m.useContext)(R.Hk),{loginWithRedirect:z,isAuthenticated:A}=(0,_.D3)(),Z=(0,v.usePathname)(),J=Z.includes("/conference/")||Z.includes("/campaign/"),Y=F(),U=f||Y&&"/"===Z||J;return(0,T._7)({onSuccess:async e=>{var a,n,t,o,i,l,r,s,c;S&&S(!0);let u={token:e.credential};z({authorizationParams:{login_hint:(await H._x.post(P.i.GOOGLE_ONE_TAP_LOGIN,u,{headers:{authorization:"".concat("production_blackwealthdata")}})).data,connection:"google-oauth2","ext-referrer":(0,N.G)(null!==(t=(null==W?void 0:W.referrer)!=="none"?null==W?void 0:W.referrer:null===(n=window)||void 0===n?void 0:null===(a=n.location)||void 0===a?void 0:a.href)&&void 0!==t?t:"none"),"ext-utm_campaign":(0,N.G)(null!==(o=null==W?void 0:W.utm_campaign)&&void 0!==o?o:"none"),"ext-utm_content":(0,N.G)(null!==(i=null==W?void 0:W.utm_content)&&void 0!==i?i:"none"),"ext-utm_medium":(0,N.G)(null!==(l=null==W?void 0:W.utm_medium)&&void 0!==l?l:"none"),"ext-utm_source":(0,N.G)(null!==(r=null==W?void 0:W.utm_source)&&void 0!==r?r:"none"),"ext-utm_term":(0,N.G)(null!==(s=null==W?void 0:W.utm_term)&&void 0!==s?s:"none"),"ext-partnerSource":(0,N.G)(null!==(c=null==W?void 0:W.partnerSource)&&void 0!==c?c:"none"),"ext-oneTap":"true","ext-conversionPage":(0,N.G)(Z)}});let d=localStorage.getItem("ajs_user_id")||"";(0,N.pE)("analytics",()=>{var e,a,n,t,o,i,l,r,s,c,u,h,m,v,g,_;let p={campaign:{name:null!==(s=null==W?void 0:W.utm_campaign)&&void 0!==s?s:"",source:null!==(c=null==W?void 0:W.utm_source)&&void 0!==c?c:"",medium:null!==(u=null==W?void 0:W.utm_medium)&&void 0!==u?u:"",term:null!==(h=null==W?void 0:W.utm_term)&&void 0!==h?h:"",content:null!==(m=null==W?void 0:W.utm_content)&&void 0!==m?m:""},user:{userId:d},page:{path:null!==(v=null===(a=window)||void 0===a?void 0:null===(e=a.location)||void 0===e?void 0:e.pathname)&&void 0!==v?v:"",referrer:null!==(g=null===(t=window)||void 0===t?void 0:null===(n=t.location)||void 0===n?void 0:n.href)&&void 0!==g?g:"",url:null!==(_=null===(i=window)||void 0===i?void 0:null===(o=i.location)||void 0===o?void 0:o.href)&&void 0!==_?_:"",name:null===(l=document)||void 0===l?void 0:l.title,title:null===(r=document)||void 0===r?void 0:r.title},auth:{method:"Google OneTap"}};(0,w.T5)(p)}),localStorage.setItem("oneTap",JSON.stringify(!0))},onError:()=>{x().error("Google one tap failure")},cancel_on_tap_outside:!1,disabled:d||u||A||Y}),(0,t.jsxs)(t.Fragment,{children:[!!"0c05dd0ca1e9401013bfe8cc7505a6de".trim()&&(0,t.jsx)(r(),{id:"cookieyes",type:"text/javascript",src:"https://cdn-cookieyes.com/client_data/".concat("0c05dd0ca1e9401013bfe8cc7505a6de","/script.js")}),(0,t.jsxs)(i(),{children:[(0,t.jsx)("title",{children:"".concat(null!=n?n:"Home")}),(0,t.jsx)("meta",{name:"viewport",content:"width=device-width"}),(0,t.jsx)("meta",{name:"title",content:null!=n?n:"Center for Opportunity and Wealth Data"}),(0,t.jsx)("meta",{name:"description",content:null!=o?o:"The Center for Opportunity and Wealth Data was established to provide public and private sector leaders with actionable data intended to grow Black wealth."}),(0,t.jsx)("meta",{name:"keywords",content:null!=l?l:"Black wealth, Black Wealth Data, Center for Opportunity and Wealth Data, Bloomberg Philanthropies"}),(0,t.jsx)("meta",{name:"robots",content:"index, follow"}),(0,t.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=utf-8"}),(0,t.jsx)("meta",{name:"language",content:"English"}),(0,t.jsx)("meta",{name:"author",content:"[email protected]"}),(0,t.jsx)("link",{rel:"icon",href:"https://bwdc-public-images.s3.us-east-1.amazonaws.com/cowd-accent-favicon.png"}),e.canonicalTagHref&&(0,t.jsx)("link",{rel:"canonical",href:e.canonicalTagHref})]}),!p&&(0,t.jsx)("header",{id:"nav-header",className:"cowd-theme",children:U?(0,t.jsx)(q.Z,{ctaText:j,ctaTextMobile:C,ctaHref:k}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(D,{isLoggedIn:u,isLoading:d,session:c}),(0,t.jsx)(L,{isLoggedIn:u,isLoading:d,session:c})]})}),(0,t.jsxs)("main",{className:M().mainContainer,children:[(0,t.jsx)(B.Z,{modalType:E.w8.SESSION_EXPIRED,modalContentHeight:"unset"}),(0,t.jsx)(B.Z,{modalDisplay:O,modalType:E.w8.INACTIVE_USER,modalContentHeight:"400px"}),(0,t.jsx)(B.Z,{modalDisplay:y?"block":"none",modalType:E.w8.SESSION_EXPIRING_SOON,modalContentHeight:"400px"}),N.Kv.slice(0,-1).includes(Z)&&h&&void 0!==u&&!d,a]}
1),!G&&!g&&(0,t.jsx)(s.k,{canonicalizeInternalLinks:"/"===Z,hideLinks:J})]})}},20066:function(e,a,n){"use strict";n.d(a,{cQ:function(){return d}});let t="https://centerforwealthdata.org",o="centerforwealthdata.org",i=t,l=e=>e.startsWith("/")?e:"/".concat(e),r=()=>window.location.hostname.toLowerCase(),s=e=>!!e&&(e.includes("localhost")||e===o||e.endsWith(".".concat(o))),c=()=>{let e=r();return!!e&&s(e)},u=e=>{try{let a=new URL(e);if(s(a.hostname.toLowerCase()))return"".concat(a.pathname).concat(a.search).concat(a.hash)||"/"}catch(e){}return e},d=e=>{if(!e||e.startsWith("#")||e.startsWith("//"))return e;if(/^[a-z][a-z\d+.-]*:/i.test(e))return c()?u(e):e;let a=l(e);return c()?a:"".concat(i).concat(a)}},78528:function(e){e.exports={navigation:"COWDMobileNavigation_navigation__hKKHB",light:"COWDMobileNavigation_light__9xre7",menuOpen:"COWDMobileNavigation_menuOpen__AZ0mf",navigationHeader:"COWDMobileNavigation_navigationHeader__qqBBk",navigationMenu:"COWDMobileNavigation_navigationMenu__ozqmb",navigationLinks:"COWDMobileNavigation_navigationLinks__fuPeO",accountGlyph:"COWDMobileNavigation_accountGlyph__tioAV",loginButton:"COWDMobileNavigation_loginButton__ID5lA",dark:"COWDMobileNavigation_dark__C9Wt9",searchForm:"COWDMobileNavigation_searchForm__bqjv0",searchSubmitButton:"COWDMobileNavigation_searchSubmitButton__ToBUd",searchGlyph:"COWDMobileNavigation_searchGlyph__Mqcnr",activeLink:"COWDMobileNavigation_activeLink__LRDgn",menuDivider:"COWDMobileNavigation_menuDivider__5I20M",logoLink:"COWDMobileNavigation_logoLink__k4eqk",menuButton:"COWDMobileNavigation_menuButton__oJpVJ",searchResults:"COWDMobileNavigation_searchResults__VSsjo",allResults:"COWDMobileNavigation_allResults__yTjAC",loginLabel:"COWDMobileNavigation_loginLabel__wynC6",srOnly:"COWDMobileNavigation_srOnly__OjVCJ"}},23124:function(e){e.exports={navigation:"COWDNavigation_navigation__o4Heg",light:"COWDNavigation_light__pg0yw",desktopLinks:"COWDNavigation_desktopLinks__zSLJ_",activeLink:"COWDNavigation_activeLink__YG3ik",loginButton:"COWDNavigation_loginButton__4aLQl",openSearchButton:"COWDNavigation_openSearchButton__TJfOR",searchGlyph:"COWDNavigation_searchGlyph__ziYKL",closeSearchButton:"COWDNavigation_closeSearchButton__rm8ls",searchForm:"COWDNavigation_searchForm__9g0HY",searchSubmitButton:"COWDNavigation_searchSubmitButton__On96L",dark:"COWDNavigation_dark__UC_4v",logoLink:"COWDNavigation_logoLink__Vtf1M",desktopSearch:"COWDNavigation_desktopSearch__7kkUR",closeLabel:"COWDNavigation_closeLabel__HJBYA",closeIcon:"COWDNavigation_closeIcon__O5tSo",grow:"COWDNavigation_grow__0qRtM",loginLabel:"COWDNavigation_loginLabel__dpean",searchResults:"COWDNavigation_searchResults__0evli",allResults:"COWDNavigation_allResults__4xQxS",srOnly:"COWDNavigation_srOnly__7Yo8n"}},36607:function(e){e.exports={navigation:"COWDSimpleNavigation_navigation__jf4tY",campaign:"COWDSimpleNavigation_campaign__a4B0_",logoLink:"COWDSimpleNavigation_logoLink__zxd0k",cta:"COWDSimpleNavigation_cta__HiDtM",ctaDesktop:"COWDSimpleNavigation_ctaDesktop__PW5Eq",ctaMobile:"COWDSimpleNavigation_ctaMobile__4yQrc"}},99507:function(e){e.exports={navBar:"Layout_navBar__Fiahk"}}}]);
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.