{"version":3,"sources":["OECD_white_EN.png","index.js","Site.module.css"],"names":["module","exports","ReactGA","initialize","pageview","window","location","search","pathname","mapboxgl","accessToken","colors","top5_list","result","regionTotal","Africa","Americas","Asia","Europe","Oceania","quantile","arr","q","sorted","sort","a","b","asc","pos","length","base","Math","floor","rest","undefined","legend","style","backgroundColor","tooltip","e","payload","className","classes","region","sciScaled","Application","props","onUpdate","ISO2","Name","Region","setState","selectedCountry","sci","sciOriginal","map","state","button","push","start","end","selected","scidata","scidataRank","scidataRankRegion","scidataRankRegionCode","countryData","Object","keys","k","slice","rank_region","v","indexOf","percentile20","sortedSCI","rank_country","top5","round","reduced","reduce","m","d","count","item","numbers","name","matchExpression","forEach","remove","addLayer","id","source","type","filter","paint","on","features","properties","iso_3166_1","getCanvas","cursor","coordinates","lngLat","lng","lat","sciPopup","rankPopup","sciColor","rankPopupRegion","regionNumber","i","popUp","setLngLat","setHTML","name_en","addTo","getElement","color","rendered","obj","removeLayer","moveRegion","activeLabel","flyTo","center","zoom","essential","this","Popup","closeButton","closeOnClick","Map","container","mapContainer","attributionControl","addControl","AttributionControl","customAttribution","addSource","url","prevProps","prevState","topleft","headwrapper","buttonwrapper","buttonActive","onClick","table","regionsel","normal","width","aspect","data","localeCompare","marginTop","dataKey","interval","textAnchor","fontFamily","fill","content","entry","index","key","icon","href","ref","el","logo","src","alt","React","Component","ReactDOM","render","document","getElementById"],"mappings":"w0ZAAAA,EAAOC,QAAU,IAA0B,2C,4QCa3CC,IAAQC,WAAW,kBACnBD,IAAQE,SAASC,OAAOC,SAASC,OAAOF,OAAOC,SAASE,UAKxDC,IAASC,YAAc,wFAGvB,IAAMC,EAAS,CAAC,UAAU,UAAU,UAAU,UAAU,UAAU,UAAU,UAAU,UAAU,WAO5FC,EAAU,CAAC,GAAG,GAAG,GAAG,GAAG,IACvBC,EAAO,GAILC,EAAY,CAACC,OAAO,GAAGC,SAAS,GAAGC,KAAK,GAAGC,OAAO,GAAGC,QAAQ,IAI7DC,EAA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JAC8I,6BAAK,6BACnJ,+CAA4B,6BAF5B,0lBAGulB,6BAAK,6BAH5lB,kTAKF,6BAAK,6BAAK,yHALR,MAOJ,yBAAK5H,UAAU,MACf,uBAAG6H,KAAK,mKACJ,kBAAC,IAAD,CAAcD,KAAK,aACnB,kHAIV,yBAAKE,IAAK,SAAAC,GAAE,OAAI,EAAKlC,aAAekC,GAAI/H,UAAWC,IAAQ4F,eAC3D,yBAAK7F,UAAWC,IAAQP,QAASA,GAC/B,uBAAGmI,KAAK,2BACN,yBAAK7H,UAAWC,IAAQ+H,KAAMC,IAAKD,IAAME,IAAI,sB,GAxa/BC,IAAMC,WA8ahCC,IAASC,OAAO,kBAAClI,EAAD,MAAiBmI,SAASC,eAAe,S,wCCrfzDjL,EAAOC,QAAU,CAAC,aAAe,2BAA2B,QAAU,sBAAsB,OAAS,qBAAqB,MAAQ,oBAAoB,QAAU,sBAAsB,UAAY,wBAAwB,MAAQ,oBAAoB,KAAO,mBAAmB,OAAS,qBAAqB,aAAe,2BAA2B,YAAc,4B","file":"static/js/main.4f3270bf.chunk.js","sourcesContent":["module.exports = __webpack_public_path__ + \"static/media/OECD_white_EN.9ef51567.png\";","import React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport mapboxgl from 'mapbox-gl';\r\nimport sciOriginal from './sci.json';\r\nimport countryData from './country.json';\r\nimport classes from './Site.module.css';\r\nimport { BarChart, Cell, Bar, Tooltip, XAxis,ResponsiveContainer} from 'recharts';\r\nimport ReactGA from 'react-ga';\r\nimport './index.css';\r\nimport logo from './OECD_white_EN.png';\r\nimport MaterialIcon from 'material-icons-react';\r\n\r\n\r\nReactGA.initialize('UA-128268752-1');\r\nReactGA.pageview(window.location.search+window.location.pathname);\r\n\r\n//iso_3166_1_alpha_3\r\n\r\n//// Access token for Africapolis mapbox account\r\nmapboxgl.accessToken = 'pk.eyJ1IjoibWttZCIsImEiOiJjajBqYjJpY2owMDE0Mndsbml0d2V1ZXczIn0.el8wQmA-TSJp2ggX8fJ1rA';\r\n\r\n\r\nconst colors = [\"#F3F2E8\",\"#D4EBE2\",\"#B6E3DB\",\"#97DCD5\",\"#79D5CF\",\"#5ACEC9\",\"#3CC6C2\",\"#1DBFBC\",\"#333333\"]\r\n\r\n\r\n\r\n//////////////////\r\n\r\n// sort array ascending\r\nlet top5_list=[[],[],[],[],[]];\r\nlet result=[];\r\n\r\n\r\n\r\nconst regionTotal={Africa:55,Americas:40,Asia:46,Europe:42,Oceania:12}\r\n\r\nconst asc = arr => arr.sort((a, b) => a - b);\r\n\r\nconst quantile = (arr, q) => {\r\n const sorted = asc(arr);\r\n const pos = (sorted.length - 1) * q;\r\n const base = Math.floor(pos);\r\n const rest = pos - base;\r\n if (sorted[base + 1] !== undefined) {\r\n return sorted[base] + rest * (sorted[base + 1] - sorted[base]);\r\n } else {\r\n return sorted[base];\r\n }\r\n};\r\n\r\nconst legend = (\r\n
Country | SCI | Region | \r\n
---|---|---|
{countryData[top5_list[i].end][0]} | {top5_list[i].sciScaled}x | {countryData[top5_list[i].end][1]} |