/
main-es2015.c452d06e278e134a5bd4.js
1 lines (1 loc) · 54.6 KB
/
main-es2015.c452d06e278e134a5bd4.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{0:function(e,t,a){e.exports=a("zUnb")},crnd:function(e,t){function a(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}a.keys=function(){return[]},a.resolve=a,e.exports=a,a.id="crnd"},zUnb:function(e,t,a){"use strict";a.r(t);var i=a("fXoL"),s=a("jhN1"),r=a("R1ws"),n=a("tk/3"),o=a("sYmb"),b=a("mqiu"),c=a("tyNb"),d=a("mrSG"),l={Afghanistan:"AF","Aland Islands":"AX",Albania:"AL",Algeria:"DZ","American Samoa":"AS",Andorra:"AD",Angola:"AO",Anguilla:"AI",Antarctica:"AQ","Antigua And Barbuda":"AG",Argentina:"AR",Armenia:"AM",Aruba:"AW",Australia:"AU",Austria:"AT",Azerbaijan:"AZ",Bahamas:"BS",Bahrain:"BH",Bangladesh:"BD",Barbados:"BB",Belarus:"BY",Belgium:"BE",Belize:"BZ",Benin:"BJ",Bermuda:"BM",Bhutan:"BT",Bolivia:"BO","Bosnia and Herzegovina":"BA",Botswana:"BW","Bouvet Island":"BV",Brazil:"BR","British Indian Ocean Territory":"IO",Brunei:"BN",Bulgaria:"BG","Burkina Faso":"BF",Burundi:"BI",Cambodia:"KH",Cameroon:"CM",Canada:"CA","Cape Verde":"CV","Cayman Islands":"KY","Central African Republic":"CF",Chad:"TD",Chile:"CL",China:"CN","Christmas Island":"CX","Cocos (Keeling) Islands":"CC",Colombia:"CO",Comoros:"KM",Congo:"CG",DRC:"CD","Cook Islands":"CK","Costa Rica":"CR","Ivory Coast":"CI",Croatia:"HR",Cuba:"CU",Cyprus:"CY",Czechia:"CZ",Denmark:"DK",Djibouti:"DJ",Dominica:"DM","Dominican Republic":"DO",Ecuador:"EC",Egypt:"EG","El Salvador":"SV","Equatorial Guinea":"GQ",Eritrea:"ER",Estonia:"EE",Ethiopia:"ET","Falkland Islands":"FK","Faeroe Islands":"FO",Fiji:"FJ",Finland:"FI",France:"FR","French Guiana":"GF","French Polynesia":"PF","French Southern Territories":"TF",Gabon:"GA",Gambia:"GM",Georgia:"GE",Germany:"DE",Ghana:"GH",Gibraltar:"GI",Greece:"GR",Greenland:"GL",Grenada:"GD",Guadeloupe:"GP",Guam:"GU",Guatemala:"GT",Guernsey:"GG",Guinea:"GN","Guinea-Bissau":"GW",Guyana:"GY",Haiti:"HT","Heard Island & Mcdonald Islands":"HM","Holy See (Vatican City State)":"VA",Honduras:"HN","Hong Kong":"HK",Hungary:"HU",Iceland:"IS",India:"IN",Indonesia:"ID",Iran:"IR",Iraq:"IQ",Ireland:"IE","Isle Of Man":"IM",Israel:"IL",Italy:"IT",Jamaica:"JM",Japan:"JP","Channel Islands":"JE",Jordan:"JO",Kazakhstan:"KZ",Kenya:"KE",Kiribati:"KI",Korea:"KR","S. Korea":"KR",Kuwait:"KW",Kyrgyzstan:"KG","Lao People's Democratic Republic":"LA",Latvia:"LV",Lebanon:"LB",Lesotho:"LS",Liberia:"LR","Libyan Arab Jamahiriya":"LY",Liechtenstein:"LI",Lithuania:"LT",Luxembourg:"LU",Macao:"MO",Macedonia:"MK",Madagascar:"MG",Malawi:"MW",Malaysia:"MY",Maldives:"MV",Mali:"ML",Malta:"MT","Marshall Islands":"MH",Martinique:"MQ",Mauritania:"MR",Mauritius:"MU",Mayotte:"YT",Mexico:"MX","Micronesia, Federated States Of":"FM",Moldova:"MD",Monaco:"MC",Mongolia:"MN",Montenegro:"ME",Montserrat:"MS",Morocco:"MA",Mozambique:"MZ",Myanmar:"MM",Namibia:"NA",Nauru:"NR",Nepal:"NP",Netherlands:"NL","Netherlands Antilles":"AN","New Caledonia":"NC","New Zealand":"NZ",Nicaragua:"NI",Niger:"NE",Nigeria:"NG",Niue:"NU","Norfolk Island":"NF","North Macedonia":"MP",Norway:"NO",Oman:"OM",Pakistan:"PK",Palau:"PW",Palestine:"PS",Panama:"PA","Papua New Guinea":"PG",Paraguay:"PY",Peru:"PE",Philippines:"PH",Pitcairn:"PN",Poland:"PL",Portugal:"PT","Puerto Rico":"PR",Qatar:"QA","R\xe9union":"RE",Romania:"RO",Russia:"RU",Rwanda:"RW","Saint Barthelemy":"BL","St. Barth":"BL","Saint Helena":"SH","Saint Kitts And Nevis":"KN","Saint Lucia":"LC","Saint Martin":"MF","Saint Pierre And Miquelon":"PM","St. Vincent Grenadines":"VC",Samoa:"WS","San Marino":"SM","Sao Tome And Principe":"ST","Saudi Arabia":"SA",Senegal:"SN",Serbia:"RS",Seychelles:"SC","Sierra Leone":"SL",Singapore:"SG",Slovakia:"SK",Slovenia:"SI","Solomon Islands":"SB",Somalia:"SO","South Africa":"ZA","South Georgia And Sandwich Isl.":"GS",Spain:"ES","Sri Lanka":"LK",Sudan:"SD",Suriname:"SR","Svalbard And Jan Mayen":"SJ",Swaziland:"SZ",Sweden:"SE",Switzerland:"CH","Syrian Arab Republic":"SY",Taiwan:"TW",Tajikistan:"TJ",Tanzania:"TZ",Thailand:"TH","Timor-Leste":"TL",Togo:"TG",Tokelau:"TK",Tonga:"TO","Trinidad and Tobago":"TT",Tunisia:"TN",Turkey:"TR",Turkmenistan:"TM","Turks And Caicos Islands":"TC",Tuvalu:"TV",Uganda:"UG",Ukraine:"UA",UAE:"AE",UK:"GB",USA:"US","United States Outlying Islands":"UM",Uruguay:"UY",Uzbekistan:"UZ",Vanuatu:"VU",Venezuela:"VE",Vietnam:"VN","Virgin Islands, British":"VG","U.S. Virgin Islands":"VI","Wallis And Futuna":"WF","Western Sahara":"EH",Yemen:"YE",Zambia:"ZM",Zimbabwe:"ZW","Cura\xe7ao":"CW"},h=a("itXk"),u=a("cclQ"),p=a("xJfa"),m=a("WlQZ"),g=a("0I/V"),f=a("d3rb"),v=a("un/a"),w=a("JIr8"),K=a("z6cu");let J=(()=>{class e{constructor(e){this._http=e,this.host="https://api.coronastatistics.live"}getAll(e){return this._http.get(`${this.host}/countries?sort=${e}`).pipe(Object(v.a)(1),Object(w.a)(this.handleError))}getCountry(e){return this._http.get(`${this.host}/countries/${e}`).pipe(Object(v.a)(1),Object(w.a)(this.handleError))}getTimeline(){return this._http.get(`${this.host}/timeline`).pipe(Object(v.a)(1),Object(w.a)(this.handleError))}getTimelineCountry(e){return this._http.get(`${this.host}/timeline/${e}`).pipe(Object(v.a)(1),Object(w.a)(this.handleError))}getTimelineGlobal(){return this._http.get(`${this.host}/timeline/global`).pipe(Object(v.a)(1),Object(w.a)(this.handleError))}handleError(e){let t="";return t=e.error instanceof ErrorEvent?e.error.message:`Error Code: ${e.status}\nMessage: ${e.message}`,window.alert("Please check your internet connection!."),Object(K.a)(t)}}return e.\u0275fac=function(t){return new(t||e)(i.Ob(n.a))},e.\u0275prov=i.Db({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var C=a("/+cc"),S=a("Kdsb"),y=a("MCLT"),I=a("K3ix"),x=a("R0Ic"),L=a("ofXK");function k(e,t){if(1&e&&(i.Kb(0,"div",3),i.Kb(1,"span",2),i.oc(2),i.Jb(),i.Kb(3,"span",2),i.oc(4),i.Jb(),i.Kb(5,"span",2),i.oc(6),i.Jb(),i.Kb(7,"span",2),i.oc(8),i.Jb(),i.Jb()),2&e){const e=i.Ub();i.wb(2),i.qc(" ",e.timer.days," "),i.wb(2),i.qc(" ",e.timer.hours," "),i.wb(2),i.qc(" ",e.timer.minutes," "),i.wb(2),i.qc(" ",e.timer.seconds," ")}}let O=(()=>{class e{constructor(){this.oldDate=new Date("2019-12-01")}ngOnInit(){setInterval(()=>{this.timer=this.dhms(Math.floor((new Date).getTime()-this.oldDate.getTime()))},1e3)}dhms(e){return{days:Math.floor(e/864e5*1),hours:Math.floor(e%864e5/36e5*1),minutes:Math.floor(e%864e5%36e5/6e4*1),seconds:Math.floor(e%864e5%36e5%6e4/1e3*1)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Bb({type:e,selectors:[["app-countup"]],decls:14,vars:13,consts:[["class","row font-weight-bold",4,"ngIf"],[1,"row"],[1,"col-3"],[1,"row","font-weight-bold"]],template:function(e,t){1&e&&(i.mc(0,k,9,4,"div",0),i.Kb(1,"div",1),i.Kb(2,"span",2),i.oc(3),i.Vb(4,"translate"),i.Jb(),i.Kb(5,"span",2),i.oc(6),i.Vb(7,"translate"),i.Jb(),i.Kb(8,"span",2),i.oc(9),i.Vb(10,"translate"),i.Jb(),i.Kb(11,"span",2),i.oc(12),i.Vb(13,"translate"),i.Jb(),i.Jb()),2&e&&(i.ac("ngIf",t.timer),i.wb(3),i.pc(i.Wb(4,5,"Shared.Other.3")),i.wb(3),i.pc(i.Wb(7,7,"Shared.Other.4")),i.wb(3),i.pc(i.Wb(10,9,"Shared.Other.5")),i.wb(3),i.pc(i.Wb(13,11,"Shared.Other.6")))},directives:[L.j],pipes:[o.c],styles:[""]}),e})();const M=["autoShownModal"];function V(e,t){if(1&e&&i.Ib(0,"img",101),2&e){const e=i.Ub().$implicit,t=i.Ub();i.cc("src","assets/flags/",t.countryCodes[e.country].toLowerCase(),".svg",i.jc),i.bc("alt",e.country)}}function T(e,t){if(1&e&&i.Ib(0,"img",102),2&e){const e=i.Ub().$implicit;i.bc("alt",e.country)}}const A=function(e){return["/country",e]};function D(e,t){if(1&e&&(i.Kb(0,"div",90),i.Kb(1,"a",91),i.Kb(2,"div",92),i.mc(3,V,1,2,"img",93),i.mc(4,T,1,1,"ng-template",null,94,i.nc),i.Jb(),i.Kb(6,"h5",95),i.oc(7),i.Jb(),i.Kb(8,"p",96),i.Kb(9,"span",97),i.oc(10),i.Vb(11,"translate"),i.Jb(),i.oc(12," & "),i.Kb(13,"span",98),i.oc(14),i.Vb(15,"translate"),i.Jb(),i.Jb(),i.Kb(16,"p",99),i.oc(17),i.Vb(18,"translate"),i.Jb(),i.Kb(19,"p",100),i.oc(20),i.Vb(21,"translate"),i.Jb(),i.Jb(),i.Jb()),2&e){const e=t.$implicit,a=i.gc(5),s=i.Ub();i.wb(1),i.ac("routerLink",i.ec(20,A,e.country.toLowerCase())),i.wb(2),i.ac("ngIf",s.countryCodes[e.country])("ngIfElse",a),i.wb(4),i.pc(e.country),i.wb(3),i.rc("",e.cases," ",i.Wb(11,12,"Home.AffectedCountries.10"),""),i.wb(4),i.rc("",e.deaths," ",i.Wb(15,14,"Home.AffectedCountries.11"),""),i.wb(3),i.rc("+",e.todayCases," ",i.Wb(18,16,"Home.AffectedCountries.10"),""),i.wb(3),i.rc("+",e.todayDeaths," ",i.Wb(21,18,"Home.AffectedCountries.11"),"")}}function W(e,t){if(1&e&&(i.Kb(0,"h2",103),i.oc(1),i.Jb()),2&e){const e=i.Ub();i.zb("d-none",e.isLoading),i.wb(1),i.qc(" ",e.fuse.list.length,"")}}function R(e,t){if(1&e&&(i.Kb(0,"h2",62),i.Ib(1,"img",63),i.oc(2),i.Vb(3,"translate"),i.Jb()),2&e){const e=i.Ub();i.wb(1),i.cc("src","assets/flags/",e.countryCodes[e.country.country].toLowerCase(),".svg",i.jc),i.bc("alt",e.country.country),i.wb(1),i.rc(" ",e.country.country,"'s ",i.Wb(3,4,"Shared.Other.18"),"")}}function z(e,t){if(1&e&&(i.Kb(0,"h4",26),i.oc(1),i.Vb(2,"translate"),i.Jb()),2&e){const e=i.Ub();i.wb(1),i.rc("\n",e.country.country,"'s ",i.Wb(2,2,"Home.InfectionCountries.1"),"\n")}}function B(e,t){if(1&e&&(i.Kb(0,"span"),i.oc(1),i.Vb(2,"number"),i.Jb()),2&e){const e=i.Ub();i.wb(1),i.qc("",i.Xb(2,1,e.totalRecoveries/e.finishedCases*100,".1-2"),"%")}}function F(e,t){1&e&&(i.Kb(0,"span"),i.oc(1,"N/A"),i.Jb())}function G(e,t){if(1&e&&(i.Kb(0,"span"),i.oc(1),i.Vb(2,"number"),i.Jb()),2&e){const e=i.Ub();i.wb(1),i.qc("",i.Xb(2,1,e.totalDeaths/e.finishedCases*100,".1-2"),"%")}}function P(e,t){1&e&&(i.Kb(0,"span"),i.oc(1,"N/A"),i.Jb())}u.f(m.a);const E=[{path:"",component:(()=>{class e{constructor(e,t,a){this.zone=e,this._getDataService=t,this.translate=a,this.isModalShown=!1,this.modalStep=1,this.translations={},this.caseData=[],this.recoveriesData=[],this.deathData=[],this.isLoading=!0,this.isLoadingMap=!0,this.isLoadingCountries=!0,this.sortType="todayCases",this.countryCodes=l,this.countries=[]}ngDoCheck(){return Object(d.b)(this,void 0,void 0,(function*(){this.translate.get(["Shared.Other.14","Shared.Other.15","Shared.Other.16","Shared.Other.17","Shared.TopCards.1","Shared.TopCards.3","Shared.TopCards.4"]).subscribe(e=>(this.setTranslations(e),0))}))}calculateSum(e,t=this.countries){for(var a=0,i=0,s=t.length;i<s;i++)a+=t[i][e];return a}sortData(e,t){try{const a=t;e.sort((e,t)=>e[a]<t[a]?-1:e[a]>t[a]?1:0)}catch(a){return console.error("ERROR while sorting",a),e}return e}ngOnDestroy(){this.zone.runOutsideAngular(()=>{this.pieChart&&this.pieChart.dispose(),this.mapChart&&this.mapChart.dispose(),this.lineChart&&this.lineChart.dispose(),this.radarChart&&this.radarChart.dispose()})}ngOnInit(){return Object(d.b)(this,void 0,void 0,(function*(){yield this.ngDoCheck(),this.zone.runOutsideAngular(()=>Object(d.b)(this,void 0,void 0,(function*(){Object(h.a)(this._getDataService.getAll(this.sortType),this._getDataService.getTimelineGlobal()).subscribe(([e,t])=>{this.isLoading=!1,this.isLoadingCountries=!1,this.isLoadingMap=!1,this.countries=e,this.totalCases=this.calculateSum("cases"),this.totalDeaths=this.calculateSum("deaths"),this.totalRecoveries=this.calculateSum("recovered"),this.totalCritical=this.calculateSum("critical"),this.todayCases=this.calculateSum("todayCases"),this.todayDeaths=this.calculateSum("todayDeaths"),this.activeCases=this.calculateSum("active"),this.casesPer1M=this.calculateSum("casesPerOneMillion"),this.finishedCases=this.totalDeaths+this.totalRecoveries,this.fuse=new C(this.countries,{shouldSort:!0,threshold:.6,location:0,distance:100,minMatchCharLength:1,keys:["country"]}),this.timeLine=t,this.loadLineChart(!1),this.loadRadar(),this.loadPieChart()})})))}))}searchCountries(e){if(e){if(this.countries=this.fuse.search(e),Object(y.isUndefined)(this.directiveScroll))return;this.directiveScroll.directiveRef.scrollToTop()}else this.countries=this.fuse.list}sortCountries(e,t){this.isLoadingCountries=!0,this.sortType=e,this.loadSorted()}loadSorted(){this._getDataService.getAll(this.sortType).subscribe(e=>{this.countries=e,this.isLoadingCountries=!1})}loadPieChart(){let e=this.fuse.list.slice();this.sortData(e,"cases"),e=e.reverse();let t=u.d("pieChart",p.e);t.data=e.slice(0,10);let a=e.slice(10,e.length);t.data.push({country:"Other",cases:this.calculateSum("cases",a)});let i=t.series.push(new p.f);i.dataFields.value="cases",i.dataFields.category="country",i.labels.template.disabled=!0,i.ticks.template.disabled=!0,i.slices.template.stroke=u.c("#313a46"),i.slices.template.strokeWidth=1,i.slices.template.strokeOpacity=1,this.pieChart=t,this.loadMap("cases")}loadLineChart(e){this.caseData=[],this.lineChart&&this.lineChart.dispose(),Object.keys(this.timeLine).forEach(e=>{this.caseData.push({date:new Date(e),cases:this.timeLine[e].cases,recoveries:this.timeLine[e].recovered,deaths:this.timeLine[e].deaths})}),this.caseData.push({date:(new Date).getTime(),cases:this.totalCases,recoveries:this.totalRecoveries,deaths:this.totalDeaths});let t=u.d("lineChart",p.k);t.numberFormatter.numberFormat="#a",t.numberFormatter.bigNumberPrefixes=[{number:1e3,suffix:"K"},{number:1e6,suffix:"M"},{number:1e9,suffix:"B"}];let a=t.xAxes.push(new p.b);a.renderer.minGridDistance=50;let i=t.yAxes.push(new p.j);i.logarithmic=e,i.renderer.labels.template.fill=u.c("#adb5bd"),a.renderer.labels.template.fill=u.c("#adb5bd"),t=this.createSeriesLine(t,"#21AFDD","cases"),t=this.createSeriesLine(t,"#10c469","recoveries"),t=this.createSeriesLine(t,"#ff5b5b","deaths"),t.data=this.caseData,t.legend=new p.c,t.legend.labels.template.fill=u.c("#adb5bd"),t.cursor=new p.l,this.lineChart=t}loadMap(e){this.isLoadingMap=!0,this.mapChart&&this.mapChart.dispose();let t="#21AFDD";"recovered"==e?t="#10c469":"critical"==e?t="#f9c851":"deaths"==e&&(t="#ff5b5b");let a=[];this.fuse.list.forEach(i=>{0!=i[e]&&a.push({id:this.countryCodes[i.country],name:i.country,value:i[e],color:u.c(t)})});let i=u.d("worldChart",g.a);i.geodata=f.a,i.projection=new g.d.Miller;let s=i.series.push(new g.c);s.exclude=["AQ"],s.useGeodata=!0,s.nonScalingStroke=!0,s.strokeWidth=.5,s.calculateVisualCenter=!0;let r=i.series.push(new g.b);r.data=a,r.dataFields.value="value";let n=r.mapImages.template;n.nonScaling=!0;let o=n.createChild(u.a);o.fillOpacity=.7,o.propertyFields.fill="color",o.tooltipText="{name}: [bold]{value}[/]",i.events.on("ready",()=>{this.isLoadingMap=!1}),r.heatRules.push({target:o,property:"radius",min:4,max:30,dataField:"value"}),n.adapter.add("latitude",(function(e,t){let a=s.getPolygonById(t.dataItem.dataContext.id);return a?a.visualLatitude:e})),n.adapter.add("longitude",(function(e,t){let a=s.getPolygonById(t.dataItem.dataContext.id);return a?a.visualLongitude:e}));let b=s.mapPolygons.template;b.tooltipText="{name}",b.fill=u.c("#282d37"),b.stroke=u.c("#313a46"),this.mapChart=i}loadRadar(){let e=u.d("radarChart",p.g);e.data=[{category:this.translations.critical,value:this.totalCritical/this.activeCases*100,full:100},{category:this.translations.deaths,value:this.totalDeaths/this.finishedCases*100,full:100},{category:this.translations.recovered,value:this.totalRecoveries/this.finishedCases*100,full:100},{category:this.translations.active,value:100-this.totalCritical/this.activeCases*100,full:100}],e.startAngle=-90,e.endAngle=180,e.innerRadius=u.e(20),e.numberFormatter.numberFormat="#.#'%'";let t=e.yAxes.push(new p.a);t.dataFields.category="category",t.renderer.grid.template.location=0,t.renderer.grid.template.strokeOpacity=0,t.renderer.labels.template.horizontalCenter="right",t.renderer.labels.template.adapter.add("fill",(function(e,t){return u.c(0==t.dataItem.index?"#f9c851":1==t.dataItem.index?"#ff5b5b":2==t.dataItem.index?"#10c469":"#21AFDD")})),t.renderer.minGridDistance=10;let a=e.xAxes.push(new p.j);a.renderer.grid.template.strokeOpacity=0,a.min=0,a.max=100,a.strictMinMax=!0,a.renderer.labels.template.fill=u.c("#adb5bd");let i=e.series.push(new p.h);i.dataFields.valueX="full",i.dataFields.categoryY="category",i.clustered=!1,i.columns.template.fill=(new u.b).getFor("alternativeBackground"),i.columns.template.fillOpacity=.08,i.columns.template.cornerRadiusTopLeft=20,i.columns.template.strokeWidth=0,i.columns.template.radarColumn.cornerRadius=20;let s=e.series.push(new p.h);s.dataFields.valueX="value",s.dataFields.categoryY="category",s.clustered=!1,s.columns.template.strokeWidth=0,s.columns.template.tooltipText="{category}: [bold]{value}[/]",s.columns.template.radarColumn.cornerRadius=20,s.columns.template.adapter.add("fill",(function(e,t){return u.c(0==t.dataItem.index?"#f9c851":1==t.dataItem.index?"#ff5b5b":2==t.dataItem.index?"#10c469":"#21AFDD")})),e.cursor=new p.i,e.cursor.fill=u.c("#282e38"),e.tooltip.label.fill=u.c("#282e38"),this.radarChart=e}createSeriesLine(e,t,a){let i=a.charAt(0).toUpperCase()+a.slice(1);"cases"==a?i=this.translations.cases:"recoveries"==a?i=this.translations.recovered:"deaths"==a&&(i=this.translations.deaths);let s=e.series.push(new p.d);return s.dataFields.valueY=a,s.fill=u.c(t),s.dataFields.dateX="date",s.strokeWidth=2,s.minBulletDistance=10,s.tooltipText="{valueY} "+i,s.tooltip.pointerOrientation="vertical",s.tooltip.background.cornerRadius=20,s.tooltip.background.fillOpacity=.5,s.stroke=u.c(t),s.legendSettings.labelText=i,s.tooltip.autoTextColor=!1,s.tooltip.label.fill=u.c("#282e38"),e}showModal(){this.modalStep=1,this.isModalShown=!0}hideModal(){this.autoShownModal.hide()}onHidden(){this.isModalShown=!1}nextStep(){this.modalStep+=1}close(e){e&&localStorage.setItem("dontShow","true"),this.hideModal()}setTranslations(e){return Object(d.b)(this,void 0,void 0,(function*(){this.translations.active=e["Shared.Other.14"],this.translations.recovered=e["Shared.Other.15"],this.translations.deaths=e["Shared.Other.16"],this.translations.critical=e["Shared.Other.17"],this.translations.cases=e["Shared.Other.14"]}))}}return e.\u0275fac=function(t){return new(t||e)(i.Hb(i.z),i.Hb(J),i.Hb(o.d))},e.\u0275cmp=i.Bb({type:e,selectors:[["app-dashboard"]],viewQuery:function(e,t){var a;1&e&&(i.sc(S.b,!0),i.sc(M,!0)),2&e&&(i.fc(a=i.Tb())&&(t.directiveScroll=a.first),i.fc(a=i.Tb())&&(t.autoShownModal=a.first))},decls:271,vars:214,consts:[[1,"container-fluid"],[1,"row"],[1,"col-xl-3","col-md-6","col-6"],[1,"card-box"],[1,"header-title","m-0","text-md-left","text-center"],[1,"topBoxes"],[1,"fa-3x","text-center"],[1,"fas","fa-circle-notch","fa-spin","m-2"],[1,"topBoxesDetails","text-md-right","text-center"],[1,"badge","badge-blue","badge-pill","float-md-left","m-md-3","mt-2"],[1,"mdi","mdi-trending-up"],[1,"font-weight-normal"],[1,"text-muted"],[1,"progress","progress-bar-alt-blue","progress-sm","m-0"],["role","progressbar","aria-valuenow","77","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","bg-blue",2,"width","100%"],[1,"badge","badge-danger","badge-pill","float-md-left","m-md-3","mt-2"],[1,"progress","progress-bar-alt-danger","progress-sm","m-0"],["role","progressbar","aria-valuenow","77","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","bg-danger",2,"width","100%"],[1,"badge","badge-success","badge-pill","float-md-left","m-md-3","mt-2"],[1,"progress","progress-bar-alt-success","progress-sm","m-0"],["role","progressbar","aria-valuenow","77","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","bg-success",2,"width","100%"],[1,"badge","badge-warning","badge-pill","float-md-left","m-md-3","mt-2"],[1,"progress","progress-bar-alt-warning","progress-sm","m-0"],["role","progressbar","aria-valuenow","77","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","bg-warning",2,"width","100%"],[1,"col-xl-4"],[1,"float-right"],[1,"header-title","mb-3"],[1,"form-group","row"],[1,"col-md-8","col-8"],["type","text","id","example-placeholder",1,"form-control",3,"placeholder","keyup"],["search",""],[1,"col-md-4","col-4"],[1,"custom-select",3,"change"],["sortBy",""],["selected","","disabled",""],["value","cases"],["value","todayCases"],["value","deaths"],["value","todayDeaths"],["value","recovered"],[1,"infectedCountries"],[2,"height","346px"],["perfectscrollbar",""],["class","infectedCountry",4,"ngFor","ngForOf"],[1,"col-xl-8"],[1,"float-md-right","float-right","d-md-inline","d-none"],["type","button",1,"btn","btn-xs","btn-lighten-blue","waves-effect","waves-light","width-xs","mr-md-1","mr-0",3,"click"],["type","button",1,"btn","btn-xs","btn-lighten-danger","waves-effect","waves-light","width-xs","mr-md-1","mr-0",3,"click"],["type","button",1,"btn","btn-xs","btn-lighten-success","waves-effect","waves-light","width-xs","mr-md-1","mr-0",3,"click"],["type","button",1,"btn","btn-xs","btn-lighten-warning","waves-effect","waves-light","width-xs",3,"click"],[1,"header-title","mt-0","mb-3","mt-md-0"],[1,"table-responsive"],["id","worldChart",2,"width","100%","height","400px","overflow","hidden"],[1,"d-md-none","d-inline"],["type","button",1,"btn","btn-block","btn-xs","btn-lighten-blue","waves-effect","waves-light","width-xs","mr-md-1","mr-0",3,"click"],["type","button",1,"btn","btn-block","btn-xs","btn-lighten-danger","waves-effect","waves-light","width-xs","mr-md-1","mr-0",3,"click"],["type","button",1,"btn","btn-block","btn-xs","btn-lighten-success","waves-effect","waves-light","width-xs","mr-md-1","mr-0",3,"click"],["type","button",1,"btn","btn-block","btn-xs","btn-lighten-warning","waves-effect","waves-light","width-xs",3,"click"],[1,"inbox-widget"],["id","radarChart",2,"width","100%","height","400px"],[1,"custom-control","custom-checkbox"],["type","checkbox","id","enableLogarithmicScale",1,"custom-control-input",3,"change"],["enableLogarithmicScale",""],["for","enableLogarithmicScale",1,"custom-control-label"],["id","lineChart",2,"width","100%","height","400px","overflow","hidden"],["id","pieChart",2,"width","100%","height","300px"],[1,"col-xl-5"],[1,"header-title","mt-0","mb-3"],[1,"col-12"],[1,"col-xl-6","col-md-6"],[1,"card-box","widget-user","bg-d"],[1,"text-center"],[1,"fas","fa-circle-notch","fa-spin","m-2","text-blue"],[1,"font-weight-normal","text-success"],[1,"fas","fa-circle-notch","fa-spin","m-2","text-danger"],[1,"font-weight-normal","text-danger"],[1,"fas","fa-circle-notch","fa-spin","m-2","text-warning"],[1,"font-weight-normal","text-warning"],[1,"fas","fa-circle-notch","fa-spin","m-2","text-info"],["class","font-weight-normal text-info",3,"d-none",4,"ngIf"],[1,"col-xl-3"],[1,"card-box","text-center"],["target","_blank","href","https://www.facebook.com/sharer/sharer.php?u=https://orpiv.com/covid19",1,"btn","btn-icon","waves-effect","btn-blue","mr-1"],[1,"fab","fa-facebook"],["target","_blank","href","https://twitter.com/intent/tweet?url=https://orpiv.com/covid19&hashtags=Covid_19,CoronavirusPandemic,coronastatistics,corona&text=Stay%20Updated%20with%20Live%20Coronavirus%20Tracker",1,"btn","btn-icon","waves-effect","btn-blue","mr-1"],[1,"fab","fa-twitter"],["target","_blank","href","https://vk.com/share.php?url=https://orpiv.com/covid19",1,"btn","btn-icon","waves-effect","btn-blue","mr-1"],[1,"fab","fa-vk"],["href","whatsapp://send?text=Coronavirus live statistics and tracker https://orpiv.com/covid19","data-action","share/whatsapp/share",1,"btn","btn-icon","waves-effect","btn-blue"],[1,"fab","fa-whatsapp"],[1,"infectedCountry"],[3,"routerLink"],[1,"infectedCountryFlag"],["style","height: 30px;\n width: 40px;",3,"src","alt",4,"ngIf","ngIfElse"],["unknown",""],[1,"infectedCountryName","mt-0","mb-1"],[1,"infectedCountryDetails","font-weight-bold"],[1,"text-blue"],[1,"text-danger"],[1,"infectedCountryCases","text-blue"],[1,"infectedCountryDeaths","text-danger"],[2,"height","30px","width","40px",3,"src","alt"],["src","assets/flags/unknown.svg",3,"alt"],[1,"font-weight-normal","text-info"]],template:function(e,t){if(1&e){const e=i.Lb();i.Kb(0,"div",0),i.Kb(1,"div",1),i.Kb(2,"div",2),i.Kb(3,"div",3),i.Kb(4,"h4",4),i.oc(5),i.Vb(6,"translate"),i.Jb(),i.Kb(7,"div",5),i.Kb(8,"div",6),i.Ib(9,"i",7),i.Jb(),i.Kb(10,"div",8),i.Kb(11,"span",9),i.Ib(12,"i",10),i.Jb(),i.Kb(13,"h2",11),i.oc(14),i.Vb(15,"number"),i.Jb(),i.Kb(16,"p",12),i.oc(17),i.Vb(18,"translate"),i.Jb(),i.Jb(),i.Kb(19,"div",13),i.Ib(20,"div",14),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(21,"div",2),i.Kb(22,"div",3),i.Kb(23,"h4",4),i.oc(24),i.Vb(25,"translate"),i.Jb(),i.Kb(26,"div",5),i.Kb(27,"div",6),i.Ib(28,"i",7),i.Jb(),i.Kb(29,"div",8),i.Kb(30,"span",15),i.oc(31),i.Vb(32,"number"),i.Ib(33,"i",10),i.Jb(),i.Kb(34,"h2",11),i.oc(35),i.Vb(36,"number"),i.Jb(),i.Kb(37,"p",12),i.oc(38),i.Vb(39,"translate"),i.Jb(),i.Jb(),i.Kb(40,"div",16),i.Ib(41,"div",17),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(42,"div",2),i.Kb(43,"div",3),i.Kb(44,"h4",4),i.oc(45),i.Vb(46,"translate"),i.Jb(),i.Kb(47,"div",5),i.Kb(48,"div",6),i.Ib(49,"i",7),i.Jb(),i.Kb(50,"div",8),i.Kb(51,"span",18),i.oc(52),i.Vb(53,"number"),i.Ib(54,"i",10),i.Jb(),i.Kb(55,"h2",11),i.oc(56),i.Vb(57,"number"),i.Jb(),i.Kb(58,"p",12),i.oc(59),i.Vb(60,"number"),i.Vb(61,"translate"),i.Jb(),i.Jb(),i.Kb(62,"div",19),i.Ib(63,"div",20),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(64,"div",2),i.Kb(65,"div",3),i.Kb(66,"h4",4),i.oc(67),i.Vb(68,"translate"),i.Jb(),i.Kb(69,"div",5),i.Kb(70,"div",6),i.Ib(71,"i",7),i.Jb(),i.Kb(72,"div",8),i.Kb(73,"span",21),i.oc(74),i.Vb(75,"number"),i.Ib(76,"i",10),i.Jb(),i.Kb(77,"h2",11),i.oc(78),i.Vb(79,"number"),i.Jb(),i.Kb(80,"p",12),i.oc(81),i.Vb(82,"number"),i.Vb(83,"translate"),i.Jb(),i.Jb(),i.Kb(84,"div",22),i.Ib(85,"div",23),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(86,"div",1),i.Kb(87,"div",24),i.Kb(88,"div",3),i.Kb(89,"div",25),i.Kb(90,"p"),i.oc(91),i.Vb(92,"translate"),i.Jb(),i.Jb(),i.Kb(93,"h4",26),i.oc(94),i.Vb(95,"translate"),i.Jb(),i.Kb(96,"div",27),i.Kb(97,"div",28),i.Kb(98,"input",29,30),i.Sb("keyup",(function(){i.ic(e);const a=i.gc(99);return t.searchCountries(a.value)})),i.Vb(100,"translate"),i.Vb(101,"translate"),i.Jb(),i.Jb(),i.Kb(102,"div",31),i.Kb(103,"select",32,33),i.Sb("change",(function(){i.ic(e);const a=i.gc(104),s=i.gc(99);return t.sortCountries(a.value,s.value)})),i.Kb(105,"option",34),i.oc(106),i.Vb(107,"translate"),i.Jb(),i.Kb(108,"option",35),i.oc(109),i.Vb(110,"translate"),i.Jb(),i.Kb(111,"option",36),i.oc(112),i.Vb(113,"translate"),i.Jb(),i.Kb(114,"option",37),i.oc(115),i.Vb(116,"translate"),i.Jb(),i.Kb(117,"option",38),i.oc(118),i.Vb(119,"translate"),i.Jb(),i.Kb(120,"option",39),i.oc(121),i.Vb(122,"translate"),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(123,"div",6),i.Ib(124,"i",7),i.Jb(),i.Kb(125,"div",40),i.Kb(126,"perfect-scrollbar",41,42),i.mc(128,D,22,22,"div",43),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(129,"div",44),i.Kb(130,"div",3),i.Kb(131,"div",45),i.Kb(132,"button",46),i.Sb("click",(function(){return t.loadMap("cases")})),i.oc(133),i.Vb(134,"translate"),i.Jb(),i.Kb(135,"button",47),i.Sb("click",(function(){return t.loadMap("deaths")})),i.oc(136),i.Vb(137,"translate"),i.Jb(),i.Kb(138,"button",48),i.Sb("click",(function(){return t.loadMap("recovered")})),i.oc(139),i.Vb(140,"translate"),i.Jb(),i.Kb(141,"button",49),i.Sb("click",(function(){return t.loadMap("critical")})),i.oc(142),i.Vb(143,"translate"),i.Jb(),i.Jb(),i.Kb(144,"h4",50),i.oc(145),i.Vb(146,"translate"),i.Jb(),i.Kb(147,"div",6),i.Ib(148,"i",7),i.Jb(),i.Kb(149,"div",51),i.Ib(150,"div",52),i.Jb(),i.Kb(151,"div",53),i.Kb(152,"button",54),i.Sb("click",(function(){return t.loadMap("cases")})),i.oc(153),i.Vb(154,"translate"),i.Jb(),i.Kb(155,"button",55),i.Sb("click",(function(){return t.loadMap("deaths")})),i.oc(156),i.Vb(157,"translate"),i.Jb(),i.Kb(158,"button",56),i.Sb("click",(function(){return t.loadMap("recovered")})),i.oc(159),i.Vb(160,"translate"),i.Jb(),i.Kb(161,"button",57),i.Sb("click",(function(){return t.loadMap("critical")})),i.oc(162),i.Vb(163,"translate"),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(164,"div",1),i.Kb(165,"div",24),i.Kb(166,"div",3),i.Kb(167,"h4",26),i.oc(168),i.Vb(169,"translate"),i.Jb(),i.Kb(170,"div",6),i.Ib(171,"i",7),i.Jb(),i.Kb(172,"div",58),i.Ib(173,"div",59),i.Jb(),i.Jb(),i.Jb(),i.Kb(174,"div",44),i.Kb(175,"div",3),i.Kb(176,"div",45),i.Kb(177,"div",60),i.Kb(178,"input",61,62),i.Sb("change",(function(){i.ic(e);const a=i.gc(179);return t.loadLineChart(a.checked)})),i.Jb(),i.Kb(180,"label",63),i.oc(181),i.Vb(182,"translate"),i.Jb(),i.Jb(),i.Jb(),i.Kb(183,"h4",50),i.oc(184),i.Vb(185,"translate"),i.Jb(),i.Kb(186,"div",6),i.Ib(187,"i",7),i.Jb(),i.Kb(188,"div",51),i.Ib(189,"div",64),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(190,"div",1),i.Kb(191,"div",24),i.Kb(192,"div",3),i.Kb(193,"h4",26),i.oc(194),i.Vb(195,"translate"),i.Jb(),i.Kb(196,"div",6),i.Ib(197,"i",7),i.Jb(),i.Kb(198,"div",58),i.Ib(199,"div",65),i.Jb(),i.Jb(),i.Jb(),i.Kb(200,"div",66),i.Kb(201,"div",3),i.Kb(202,"h4",67),i.oc(203),i.Vb(204,"translate"),i.Jb(),i.Kb(205,"div",1),i.Kb(206,"div",68),i.Kb(207,"div",1),i.Kb(208,"div",69),i.Kb(209,"div",70),i.Kb(210,"div",71),i.Kb(211,"div",6),i.Ib(212,"i",72),i.Jb(),i.Kb(213,"h2",73),i.oc(214),i.Vb(215,"number"),i.Jb(),i.Kb(216,"h5"),i.oc(217),i.Vb(218,"translate"),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(219,"div",69),i.Kb(220,"div",70),i.Kb(221,"div",71),i.Kb(222,"div",6),i.Ib(223,"i",74),i.Jb(),i.Kb(224,"h2",75),i.oc(225),i.Vb(226,"number"),i.Jb(),i.Kb(227,"h5"),i.oc(228),i.Vb(229,"translate"),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(230,"div",69),i.Kb(231,"div",70),i.Kb(232,"div",71),i.Kb(233,"div",6),i.Ib(234,"i",76),i.Jb(),i.Kb(235,"h2",77),i.oc(236),i.Vb(237,"number"),i.Jb(),i.Kb(238,"h5"),i.oc(239),i.Vb(240,"translate"),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(241,"div",69),i.Kb(242,"div",70),i.Kb(243,"div",71),i.Kb(244,"div",6),i.Ib(245,"i",78),i.Jb(),i.mc(246,W,2,3,"h2",79),i.Kb(247,"h5"),i.oc(248),i.Vb(249,"translate"),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(250,"div",80),i.Kb(251,"div",81),i.Kb(252,"h5"),i.oc(253),i.Vb(254,"translate"),i.Jb(),i.Ib(255,"app-countup"),i.Jb(),i.Kb(256,"div",81),i.Kb(257,"h5"),i.oc(258),i.Vb(259,"translate"),i.Jb(),i.Kb(260,"p"),i.oc(261),i.Vb(262,"translate"),i.Jb(),i.Kb(263,"a",82),i.Ib(264,"i",83),i.Jb(),i.Kb(265,"a",84),i.Ib(266,"i",85),i.Jb(),i.Kb(267,"a",86),i.Ib(268,"i",87),i.Jb(),i.Kb(269,"a",88),i.Ib(270,"i",89),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Jb()}2&e&&(i.wb(5),i.pc(i.Wb(6,106,"Shared.TopCards.2")),i.wb(3),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(4),i.qc(" ",i.Wb(15,108,t.totalCases)," "),i.wb(3),i.rc("",t.todayCases," ",i.Wb(18,110,"Shared.TopCards.6"),""),i.wb(7),i.pc(i.Wb(25,112,"Shared.TopCards.3")),i.wb(3),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(2),i.qc("",i.Xb(32,114,t.totalDeaths/t.finishedCases*100,".1-2"),"% "),i.wb(4),i.qc(" ",i.Wb(36,117,t.totalDeaths)," "),i.wb(3),i.rc("",t.todayDeaths," ",i.Wb(39,119,"Shared.TopCards.6"),""),i.wb(7),i.pc(i.Wb(46,121,"Shared.TopCards.4")),i.wb(3),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(2),i.qc("",i.Xb(53,123,t.totalRecoveries/t.finishedCases*100,".1-2"),"% "),i.wb(4),i.qc(" ",i.Wb(57,126,t.totalRecoveries)," "),i.wb(3),i.rc("",i.Wb(60,128,t.activeCases)," ",i.Wb(61,130,"Shared.TopCards.8"),""),i.wb(8),i.pc(i.Wb(68,132,"Shared.TopCards.5")),i.wb(3),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(2),i.qc("",i.Xb(75,134,t.totalCritical/t.activeCases*100,".1-2"),"% "),i.wb(4),i.qc(" ",i.Wb(79,137,t.totalCritical)," "),i.wb(3),i.rc("",i.Wb(82,139,t.casesPer1M)," ",i.Wb(83,141,"Shared.TopCards.7"),""),i.wb(10),i.pc(i.Wb(92,143,"Home.AffectedCountries.2")),i.wb(3),i.qc("",i.Wb(95,145,"Home.AffectedCountries.1")," "),i.wb(4),i.dc("placeholder","",i.Wb(100,147,"Home.AffectedCountries.3")," ",t.countries.length," ",i.Wb(101,149,"Home.AffectedCountries.1"),""),i.wb(8),i.pc(i.Wb(107,151,"Home.AffectedCountries.4")),i.wb(3),i.pc(i.Wb(110,153,"Home.AffectedCountries.5")),i.wb(3),i.pc(i.Wb(113,155,"Home.AffectedCountries.6")),i.wb(3),i.pc(i.Wb(116,157,"Home.AffectedCountries.7")),i.wb(3),i.pc(i.Wb(119,159,"Home.AffectedCountries.8")),i.wb(3),i.pc(i.Wb(122,161,"Home.AffectedCountries.9")),i.wb(2),i.zb("d-none",!t.isLoadingCountries),i.wb(2),i.zb("d-none",t.isLoadingCountries),i.wb(3),i.ac("ngForOf",t.countries),i.wb(5),i.qc("",i.Wb(134,163,"Shared.TopCards.1")," "),i.wb(3),i.pc(i.Wb(137,165,"Shared.TopCards.3")),i.wb(3),i.pc(i.Wb(140,167,"Shared.TopCards.4")),i.wb(3),i.pc(i.Wb(143,169,"Shared.TopCards.5")),i.wb(3),i.qc("",i.Wb(146,171,"Home.WorldMap.1")," "),i.wb(2),i.zb("d-none",!t.isLoadingMap),i.wb(2),i.zb("d-none",t.isLoadingMap),i.wb(4),i.pc(i.Wb(154,173,"Shared.TopCards.1")),i.wb(3),i.pc(i.Wb(157,175,"Shared.TopCards.3")),i.wb(3),i.pc(i.Wb(160,177,"Shared.TopCards.4")),i.wb(3),i.pc(i.Wb(163,179,"Shared.TopCards.5")),i.wb(6),i.qc("",i.Wb(169,181,"Shared.RateDistribution.1")," "),i.wb(2),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(9),i.pc(i.Wb(182,183,"Shared.InfectionsHistory.2")),i.wb(3),i.pc(i.Wb(185,185,"Shared.InfectionsHistory.1")),i.wb(2),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(6),i.pc(i.Wb(195,187,"Home.InfectionCountries.1")),i.wb(2),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(5),i.pc(i.Wb(204,189,"Shared.Rates.1")),i.wb(8),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(1),i.qc(" ",i.Xb(215,191,t.totalRecoveries/t.finishedCases*100,".1-2"),"%"),i.wb(3),i.pc(i.Wb(218,194,"Shared.Rates.2")),i.wb(5),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(1),i.qc(" ",i.Xb(226,196,t.totalDeaths/t.finishedCases*100,".1-2"),"%"),i.wb(3),i.pc(i.Wb(229,199,"Shared.Rates.3")),i.wb(5),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(1),i.qc(" ",i.Xb(237,201,t.totalCritical/t.activeCases*100,".1-2"),"%"),i.wb(3),i.pc(i.Wb(240,204,"Shared.Rates.4")),i.wb(5),i.zb("d-none",!t.isLoading),i.wb(2),i.ac("ngIf",t.fuse),i.wb(2),i.pc(i.Wb(249,206,"Shared.Other.1")),i.wb(5),i.pc(i.Wb(254,208,"Shared.Other.2")),i.wb(5),i.pc(i.Wb(259,210,"Shared.Other.9")),i.wb(3),i.pc(i.Wb(262,212,"Shared.Other.10")))},directives:[S.b,L.i,L.j,O,c.b],pipes:[o.c,L.d],styles:[".bg-d[_ngcontent-%COMP%]{background-color:#282d37}.modal-step[_ngcontent-%COMP%]{min-height:270px;transition:all .2s}"],data:{animation:[Object(x.j)("fadeInOutAnimation",[Object(x.g)("in",Object(x.h)({opacity:1})),Object(x.i)(":enter",[Object(x.h)({opacity:0}),Object(x.e)(600)])])]}}),e})()},{path:"country/:name",component:(()=>{class e{constructor(e,t,a,i){this.route=e,this._getDataService=t,this.zone=a,this.translate=i,this.isLoading=!0,this.totalCases=0,this.totalDeaths=0,this.totalCritical=0,this.todayCases=0,this.todayDeaths=0,this.activeCases=0,this.casesPer1M=0,this.finishedCases=0,this.countryCodes=l,this.translations={}}ngOnDestroy(){this.zone.runOutsideAngular(()=>{this.pieChart&&this.pieChart.dispose(),this.lineChart&&this.lineChart.dispose(),this.radarChart&&this.radarChart.dispose()})}ngDoCheck(){return Object(d.b)(this,void 0,void 0,(function*(){this.translate.get(["Shared.Other.14","Shared.Other.15","Shared.Other.16","Shared.Other.17","Shared.TopCards.1","Shared.TopCards.3","Shared.TopCards.4"]).subscribe(e=>(this.setTranslations(e),0))}))}ngOnInit(){let e=this.route.snapshot.paramMap.get("name").toLowerCase();"usa"==e?e="us":"taiwan"==e?e="taiwan*":"isle of man"==e?e="united kingdom":"aruba"==e?e="netherlands":"sint maarten"==e?e="netherlands":"st. vincent grenadines"==e?e="saint vincent and the grenadines":"timor-leste"==e?e="East Timor":"montserrat"==e?e="united kingdom":"gambia"==e?e="gambia, the":"cayman islands"==e?e="united kingdom":"bermuda"==e?e="united kingdom":"greenland"==e?e="denmark":"st. barth"==e?e="saint barthelemy":"congo"==e?e="congo (brazzaville)":"saint martin"==e?e="france":"gibraltar"==e?e="united kingdom":"mayotte"==e?e="france":"bahamas"==e?e="bahamas, the":"french guiana"==e?e="france":"u.s. virgin islands"==e?e="us":"cura\xe7ao"==e?e="netherlands":"puerto rico"==e?e="us":"french polynesia"==e?e="france":"ivory coast"==e?e="Cote d'Ivoire":"macao"==e?e="china":"drc"==e?e="congo (kinshasa)":"channel islands"==e?e="united kingdom":"r\xe9union"==e?e="france":"guadeloupe"==e?e="france":"faeroe islands"==e?e="Denmark":"uae"==e?e="United Arab Emirates":"diamond princess"==e?e="australia":"hong kong"==e?e="china":"uk"==e?e="united kingdom":"car"==e&&(e="central african republic"),this.zone.runOutsideAngular(()=>{Object(h.a)(this._getDataService.getCountry(this.route.snapshot.paramMap.get("name")),this._getDataService.getTimelineCountry(e)).subscribe(([e,t])=>{this.isLoading=!1,this.country=e,this.totalCases=e.cases,this.totalDeaths=e.deaths,this.totalRecoveries=e.recovered,this.totalCritical=e.critical,this.todayCases=e.todayCases,this.todayDeaths=e.todayDeaths,this.activeCases=e.active,this.casesPer1M=e.casesPerOneMillion,this.finishedCases=this.totalDeaths+this.totalRecoveries,this.timeLine=t,this.loadPieChart(),this.loadLineChart(),this.loadRadar()})})}loadLineChart(){let e=[];if(this.timeLine.multiple){let t={};this.timeLine.data.forEach(e=>Object(d.b)(this,void 0,void 0,(function*(){e.timeline.forEach(e=>Object(d.b)(this,void 0,void 0,(function*(){t.hasOwnProperty(e.date)||(t[e.date]={},t[e.date].cases=0,t[e.date].deaths=0,t[e.date].recovered=0),t[e.date].cases+=parseInt(e.cases),t[e.date].deaths+=parseInt(e.deaths),t[e.date].recovered+=parseInt(e.recovered)})))}))),Object.keys(t).forEach(a=>{e.push({date:new Date(a),cases:t[a].cases,recovered:t[a].recovered,deaths:t[a].deaths})})}else e=this.timeLine.data.timeline;e.push({date:(new Date).getTime(),cases:this.totalCases,recovered:this.totalRecoveries,deaths:this.totalDeaths});let t=u.d("lineChart",p.k);t.numberFormatter.numberFormat="#a",t.numberFormatter.bigNumberPrefixes=[{number:1e3,suffix:"K"},{number:1e6,suffix:"M"},{number:1e9,suffix:"B"}];let a=t.xAxes.push(new p.b);a.renderer.minGridDistance=50,t.yAxes.push(new p.j).renderer.labels.template.fill=u.c("#adb5bd"),a.renderer.labels.template.fill=u.c("#adb5bd"),t=this.createSeriesLine(t,"#21AFDD","cases"),t=this.createSeriesLine(t,"#10c469","recovered"),t=this.createSeriesLine(t,"#ff5b5b","deaths"),t.data=e,t.legend=new p.c,t.legend.labels.template.fill=u.c("#adb5bd"),t.cursor=new p.l,this.lineChart=t}loadPieChart(){let e=u.d("pieChart",p.e);e.data.push({type:"Recoveries",number:this.totalRecoveries,color:u.c("#10c469")}),e.data.push({type:"Deaths",number:this.totalDeaths,color:u.c("#ff5b5b")}),e.data.push({type:"Critical",number:this.totalCritical,color:u.c("#f9c851")});let t=e.series.push(new p.f);t.dataFields.value="number",t.dataFields.category="type",t.labels.template.disabled=!0,t.ticks.template.disabled=!0,t.slices.template.propertyFields.fill="color",t.slices.template.stroke=u.c("#313a46"),t.slices.template.strokeWidth=1,t.slices.template.strokeOpacity=1,this.pieChart=e}loadRadar(){let e=u.d("radarChart",p.g);e.data=[{category:this.translations.critical,value:this.totalCritical/this.activeCases*100,full:100},{category:this.translations.deaths,value:this.totalDeaths/this.finishedCases*100,full:100},{category:this.translations.recovered,value:this.totalRecoveries/this.finishedCases*100,full:100},{category:this.translations.active,value:100-this.totalCritical/this.activeCases*100,full:100}],e.startAngle=-90,e.endAngle=180,e.innerRadius=u.e(20),e.numberFormatter.numberFormat="#.#'%'";let t=e.yAxes.push(new p.a);t.dataFields.category="category",t.renderer.grid.template.location=0,t.renderer.grid.template.strokeOpacity=0,t.renderer.labels.template.horizontalCenter="right",t.renderer.labels.template.adapter.add("fill",(function(e,t){return u.c(0==t.dataItem.index?"#f9c851":1==t.dataItem.index?"#ff5b5b":2==t.dataItem.index?"#10c469":"#21AFDD")})),t.renderer.minGridDistance=10;let a=e.xAxes.push(new p.j);a.renderer.grid.template.strokeOpacity=0,a.min=0,a.max=100,a.strictMinMax=!0,a.renderer.labels.template.fill=u.c("#adb5bd");let i=e.series.push(new p.h);i.dataFields.valueX="full",i.dataFields.categoryY="category",i.clustered=!1,i.columns.template.fill=(new u.b).getFor("alternativeBackground"),i.columns.template.fillOpacity=.08,i.columns.template.cornerRadiusTopLeft=20,i.columns.template.strokeWidth=0,i.columns.template.radarColumn.cornerRadius=20;let s=e.series.push(new p.h);s.dataFields.valueX="value",s.dataFields.categoryY="category",s.clustered=!1,s.columns.template.strokeWidth=0,s.columns.template.tooltipText="{category}: [bold]{value}[/]",s.columns.template.radarColumn.cornerRadius=20,s.columns.template.adapter.add("fill",(function(e,t){return u.c(0==t.dataItem.index?"#f9c851":1==t.dataItem.index?"#ff5b5b":2==t.dataItem.index?"#10c469":"#21AFDD")})),e.cursor=new p.i,e.cursor.fill=u.c("#282e38"),e.tooltip.label.fill=u.c("#282e38"),this.radarChart=e}createSeriesLine(e,t,a){let i=null;"cases"==a?i=this.translations.cases:"recoveries"==a?i=this.translations.recovered:"deaths"==a&&(i=this.translations.deaths),i||(i=a.charAt(0).toUpperCase()+a.slice(1));let s=e.series.push(new p.d);return s.dataFields.valueY=a,s.fill=u.c(t),s.dataFields.dateX="date",s.strokeWidth=2,s.minBulletDistance=10,s.tooltipText="{valueY} "+i,s.tooltip.pointerOrientation="vertical",s.tooltip.background.cornerRadius=20,s.tooltip.background.fillOpacity=.5,s.stroke=u.c(t),s.legendSettings.labelText=i,s.tooltip.autoTextColor=!1,s.tooltip.label.fill=u.c("#282e38"),e}setTranslations(e){return Object(d.b)(this,void 0,void 0,(function*(){this.translations.active=e["Shared.Other.14"],this.translations.recovered=e["Shared.Other.15"],this.translations.deaths=e["Shared.Other.16"],this.translations.critical=e["Shared.Other.17"],this.translations.cases=e["Shared.Other.14"]}))}}return e.\u0275fac=function(t){return new(t||e)(i.Hb(c.a),i.Hb(J),i.Hb(i.z),i.Hb(o.d))},e.\u0275cmp=i.Bb({type:e,selectors:[["app-country"]],decls:189,vars:144,consts:[[1,"container-fluid"],["class","text-center mt-3 mb-3",4,"ngIf"],[1,"row"],[1,"col-xl-3","col-md-6","col-6"],[1,"card-box"],[1,"header-title","m-0","text-md-left","text-center"],[1,"topBoxes"],[1,"fa-3x","text-center"],[1,"fas","fa-circle-notch","fa-spin","m-2"],[1,"topBoxesDetails","text-md-right","text-center"],[1,"badge","badge-blue","badge-pill","float-md-left","m-md-3","mt-2"],[1,"mdi","mdi-trending-up"],[1,"font-weight-normal"],[1,"text-muted"],[1,"progress","progress-bar-alt-blue","progress-sm","m-0"],["role","progressbar","aria-valuenow","77","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","bg-blue",2,"width","100%"],[1,"badge","badge-danger","badge-pill","float-md-left","m-md-3","mt-2"],[1,"progress","progress-bar-alt-danger","progress-sm","m-0"],["role","progressbar","aria-valuenow","77","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","bg-danger",2,"width","100%"],[1,"badge","badge-success","badge-pill","float-md-left","m-md-3","mt-2"],[1,"progress","progress-bar-alt-success","progress-sm","m-0"],["role","progressbar","aria-valuenow","77","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","bg-success",2,"width","100%"],[1,"badge","badge-warning","badge-pill","float-md-left","m-md-3","mt-2"],[1,"progress","progress-bar-alt-warning","progress-sm","m-0"],["role","progressbar","aria-valuenow","77","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","bg-warning",2,"width","100%"],[1,"col-xl-4"],[1,"header-title","mb-3"],[1,"inbox-widget"],["id","radarChart",2,"width","100%","height","400px"],[1,"col-xl-8"],[1,"header-title","mt-0","mb-3","mt-md-0"],[1,"table-responsive"],["id","lineChart",2,"width","100%","height","400px","overflow","hidden"],["class","header-title mb-3",4,"ngIf"],["id","pieChart",2,"width","100%","height","300px"],[1,"col-xl-5"],[1,"header-title","mt-0","mb-3"],[1,"col-12"],[1,"col-xl-6","col-md-6"],[1,"card-box","widget-user","bg-d"],[1,"text-center"],[1,"fas","fa-circle-notch","fa-spin","m-2","text-blue"],[1,"font-weight-normal","text-success"],[4,"ngIf","ngIfElse"],["naRecovery",""],[1,"fas","fa-circle-notch","fa-spin","m-2","text-danger"],[1,"font-weight-normal","text-danger"],["naDeath",""],[1,"fas","fa-circle-notch","fa-spin","m-2","text-warning"],[1,"font-weight-normal","text-warning"],[1,"fas","fa-circle-notch","fa-spin","m-2","text-info"],[1,"font-weight-normal","text-info"],[1,"col-xl-3"],[1,"card-box","text-center"],["target","_blank","href","https://www.facebook.com/sharer/sharer.php?u=https://orpiv.com/covid19",1,"btn","btn-icon","waves-effect","btn-blue","mr-1"],[1,"fab","fa-facebook"],["target","_blank","href","https://twitter.com/intent/tweet?url=https://orpiv.com/covid19&hashtags=Covid_19,CoronavirusPandemic,coronastatistics,corona&text=Stay%20Updated%20with%20Live%20Coronavirus%20Tracker",1,"btn","btn-icon","waves-effect","btn-blue","mr-1"],[1,"fab","fa-twitter"],["target","_blank","href","https://vk.com/share.php?url=https://orpiv.com/covid19",1,"btn","btn-icon","waves-effect","btn-blue","mr-1"],[1,"fab","fa-vk"],["href","whatsapp://send?text=Coronavirus live statistics and tracker https://orpiv.com/covid19","data-action","share/whatsapp/share",1,"btn","btn-icon","waves-effect","btn-blue"],[1,"fab","fa-whatsapp"],[1,"text-center","mt-3","mb-3"],["width","100px",3,"src","alt"]],template:function(e,t){if(1&e&&(i.Kb(0,"div",0),i.mc(1,R,4,6,"h2",1),i.Kb(2,"div",2),i.Kb(3,"div",3),i.Kb(4,"div",4),i.Kb(5,"h4",5),i.oc(6),i.Vb(7,"translate"),i.Jb(),i.Kb(8,"div",6),i.Kb(9,"div",7),i.Ib(10,"i",8),i.Jb(),i.Kb(11,"div",9),i.Kb(12,"span",10),i.Ib(13,"i",11),i.Jb(),i.Kb(14,"h2",12),i.oc(15),i.Vb(16,"number"),i.Jb(),i.Kb(17,"p",13),i.oc(18),i.Vb(19,"translate"),i.Jb(),i.Jb(),i.Kb(20,"div",14),i.Ib(21,"div",15),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(22,"div",3),i.Kb(23,"div",4),i.Kb(24,"h4",5),i.oc(25),i.Vb(26,"translate"),i.Jb(),i.Kb(27,"div",6),i.Kb(28,"div",7),i.Ib(29,"i",8),i.Jb(),i.Kb(30,"div",9),i.Kb(31,"span",16),i.oc(32),i.Vb(33,"number"),i.Ib(34,"i",11),i.Jb(),i.Kb(35,"h2",12),i.oc(36),i.Vb(37,"number"),i.Jb(),i.Kb(38,"p",13),i.oc(39),i.Vb(40,"translate"),i.Jb(),i.Jb(),i.Kb(41,"div",17),i.Ib(42,"div",18),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(43,"div",3),i.Kb(44,"div",4),i.Kb(45,"h4",5),i.oc(46),i.Vb(47,"translate"),i.Jb(),i.Kb(48,"div",6),i.Kb(49,"div",7),i.Ib(50,"i",8),i.Jb(),i.Kb(51,"div",9),i.Kb(52,"span",19),i.oc(53),i.Vb(54,"number"),i.Ib(55,"i",11),i.Jb(),i.Kb(56,"h2",12),i.oc(57),i.Vb(58,"number"),i.Jb(),i.Kb(59,"p",13),i.oc(60),i.Vb(61,"number"),i.Vb(62,"translate"),i.Jb(),i.Jb(),i.Kb(63,"div",20),i.Ib(64,"div",21),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(65,"div",3),i.Kb(66,"div",4),i.Kb(67,"h4",5),i.oc(68),i.Vb(69,"translate"),i.Jb(),i.Kb(70,"div",6),i.Kb(71,"div",7),i.Ib(72,"i",8),i.Jb(),i.Kb(73,"div",9),i.Kb(74,"span",22),i.oc(75),i.Vb(76,"number"),i.Ib(77,"i",11),i.Jb(),i.Kb(78,"h2",12),i.oc(79),i.Vb(80,"number"),i.Jb(),i.Kb(81,"p",13),i.oc(82),i.Vb(83,"number"),i.Vb(84,"translate"),i.Jb(),i.Jb(),i.Kb(85,"div",23),i.Ib(86,"div",24),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(87,"div",2),i.Kb(88,"div",25),i.Kb(89,"div",4),i.Kb(90,"h4",26),i.oc(91),i.Vb(92,"translate"),i.Jb(),i.Kb(93,"div",7),i.Ib(94,"i",8),i.Jb(),i.Kb(95,"div",27),i.Ib(96,"div",28),i.Jb(),i.Jb(),i.Jb(),i.Kb(97,"div",29),i.Kb(98,"div",4),i.Kb(99,"h4",30),i.oc(100),i.Vb(101,"translate"),i.Jb(),i.Kb(102,"div",7),i.Ib(103,"i",8),i.Jb(),i.Kb(104,"div",31),i.Ib(105,"div",32),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(106,"div",2),i.Kb(107,"div",25),i.Kb(108,"div",4),i.mc(109,z,3,4,"h4",33),i.Kb(110,"div",7),i.Ib(111,"i",8),i.Jb(),i.Kb(112,"div",27),i.Ib(113,"div",34),i.Jb(),i.Jb(),i.Jb(),i.Kb(114,"div",35),i.Kb(115,"div",4),i.Kb(116,"h4",36),i.oc(117),i.Vb(118,"translate"),i.Jb(),i.Kb(119,"div",2),i.Kb(120,"div",37),i.Kb(121,"div",2),i.Kb(122,"div",38),i.Kb(123,"div",39),i.Kb(124,"div",40),i.Kb(125,"div",7),i.Ib(126,"i",41),i.Jb(),i.Kb(127,"h2",42),i.mc(128,B,3,4,"span",43),i.mc(129,F,2,0,"ng-template",null,44,i.nc),i.Jb(),i.Kb(131,"h5"),i.oc(132),i.Vb(133,"translate"),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(134,"div",38),i.Kb(135,"div",39),i.Kb(136,"div",40),i.Kb(137,"div",7),i.Ib(138,"i",45),i.Jb(),i.Kb(139,"h2",46),i.mc(140,G,3,4,"span",43),i.mc(141,P,2,0,"ng-template",null,47,i.nc),i.Jb(),i.Kb(143,"h5"),i.oc(144),i.Vb(145,"translate"),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(146,"div",38),i.Kb(147,"div",39),i.Kb(148,"div",40),i.Kb(149,"div",7),i.Ib(150,"i",48),i.Jb(),i.Kb(151,"h2",49),i.oc(152),i.Vb(153,"number"),i.Jb(),i.Kb(154,"h5"),i.oc(155),i.Vb(156,"translate"),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(157,"div",38),i.Kb(158,"div",39),i.Kb(159,"div",40),i.Kb(160,"div",7),i.Ib(161,"i",50),i.Jb(),i.Kb(162,"h2",51),i.oc(163),i.Vb(164,"number"),i.Jb(),i.Kb(165,"h5"),i.oc(166),i.Vb(167,"translate"),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Kb(168,"div",52),i.Kb(169,"div",53),i.Kb(170,"h5"),i.oc(171),i.Vb(172,"translate"),i.Jb(),i.Ib(173,"app-countup"),i.Jb(),i.Kb(174,"div",53),i.Kb(175,"h5"),i.oc(176),i.Vb(177,"translate"),i.Jb(),i.Kb(178,"p"),i.oc(179),i.Vb(180,"translate"),i.Jb(),i.Kb(181,"a",54),i.Ib(182,"i",55),i.Jb(),i.Kb(183,"a",56),i.Ib(184,"i",57),i.Jb(),i.Kb(185,"a",58),i.Ib(186,"i",59),i.Jb(),i.Kb(187,"a",60),i.Ib(188,"i",61),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Jb()),2&e){const e=i.gc(130),a=i.gc(142);i.wb(1),i.ac("ngIf",t.country),i.wb(5),i.pc(i.Wb(7,81,"Shared.TopCards.2")),i.wb(3),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(4),i.qc(" ",i.Wb(16,83,t.totalCases)," "),i.wb(3),i.rc("",t.todayCases," ",i.Wb(19,85,"Shared.TopCards.6"),""),i.wb(7),i.pc(i.Wb(26,87,"Shared.TopCards.3")),i.wb(3),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(2),i.qc("",i.Xb(33,89,t.totalDeaths/t.finishedCases*100,".1-2"),"% "),i.wb(4),i.qc(" ",i.Wb(37,92,t.totalDeaths)," "),i.wb(3),i.rc("",t.todayDeaths," ",i.Wb(40,94,"Shared.TopCards.6"),""),i.wb(7),i.pc(i.Wb(47,96,"Shared.TopCards.4")),i.wb(3),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(2),i.qc("",i.Xb(54,98,t.totalRecoveries/t.finishedCases*100,".1-2"),"% "),i.wb(4),i.qc(" ",i.Wb(58,101,t.totalRecoveries)," "),i.wb(3),i.rc("",i.Wb(61,103,t.activeCases)," ",i.Wb(62,105,"Shared.TopCards.8"),""),i.wb(8),i.pc(i.Wb(69,107,"Shared.TopCards.5")),i.wb(3),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(2),i.qc("",i.Xb(76,109,t.totalCritical/t.activeCases*100,".1-2"),"% "),i.wb(4),i.qc(" ",i.Wb(80,112,t.totalCritical)," "),i.wb(3),i.rc("",i.Wb(83,114,t.casesPer1M)," ",i.Wb(84,116,"Shared.TopCards.7"),""),i.wb(9),i.qc("",i.Wb(92,118,"Shared.RateDistribution.1")," "),i.wb(2),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(5),i.pc(i.Wb(101,120,"Shared.InfectionsHistory.1")),i.wb(2),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(5),i.ac("ngIf",t.country),i.wb(1),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(5),i.pc(i.Wb(118,122,"Shared.Rates.1")),i.wb(8),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(1),i.ac("ngIf",t.finishedCases>0)("ngIfElse",e),i.wb(4),i.pc(i.Wb(133,124,"Shared.Rates.2")),i.wb(5),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(1),i.ac("ngIf",t.finishedCases>0)("ngIfElse",a),i.wb(4),i.pc(i.Wb(145,126,"Shared.Rates.3")),i.wb(5),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(1),i.qc(" ",i.Xb(153,128,t.totalCritical/t.activeCases*100,".1-2"),"%"),i.wb(3),i.pc(i.Wb(156,131,"Shared.Rates.4")),i.wb(5),i.zb("d-none",!t.isLoading),i.wb(2),i.zb("d-none",t.isLoading),i.wb(1),i.qc("",i.Xb(164,133,100-t.totalCritical/t.activeCases*100,".1-2"),"%"),i.wb(3),i.pc(i.Wb(167,136,"Shared.Rates.4")),i.wb(5),i.pc(i.Wb(172,138,"Shared.Other.2")),i.wb(5),i.pc(i.Wb(177,140,"Shared.Other.9")),i.wb(3),i.pc(i.Wb(180,142,"Shared.Other.10"))}},directives:[L.j,O],pipes:[o.c,L.d],styles:[".bg-d[_ngcontent-%COMP%]{background-color:#282d37}"]}),e})()},{path:"**",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Bb({type:e,selectors:[["app-not-found"]],decls:6,vars:0,consts:[[1,"container-fluid"],[1,"row"],[1,"col-12","text-center"],[1,"mt-5"],["src","assets/images/404.png"]],template:function(e,t){1&e&&(i.Kb(0,"div",0),i.Kb(1,"div",1),i.Kb(2,"div",2),i.Kb(3,"h1",3),i.oc(4,"Sorry, This page doesn't exist."),i.Jb(),i.Ib(5,"img",4),i.Jb(),i.Jb(),i.Jb())},styles:[""]}),e})()}];let H=(()=>{class e{}return e.\u0275mod=i.Fb({type:e}),e.\u0275inj=i.Eb({factory:function(t){return new(t||e)},imports:[[c.c.forRoot(E)]]}),e})(),N=(()=>{class e{constructor(){this.showButton=!1}onbeforeinstallprompt(e){console.log(e),e.preventDefault(),this.deferredPrompt=e,this.showButton=!0}addToHomeScreen(){this.showButton=!1,this.deferredPrompt.prompt(),this.deferredPrompt.userChoice.then(e=>{"accepted"===e.outcome?console.log("User accepted the A2HS prompt"):console.log("User dismissed the A2HS prompt"),this.deferredPrompt=null})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Bb({type:e,selectors:[["app-topbar"]],hostBindings:function(e,t){1&e&&i.Sb("beforeinstallprompt",(function(e){return t.onbeforeinstallprompt(e)}),!1,i.hc)},decls:12,vars:0,consts:[[1,"navbar-custom"],[1,"container-fluid","mb-2"],[1,"logo-box","mx-auto"],["routerLink","/",1,"logo","text-center"],[1,"logo-lg"],["src","assets/images/logo-op.png","alt","","height","60"],[1,"logo-sm"],["src","assets/images/logo-op.png","alt","","height","50"]],template:function(e,t){1&e&&(i.Kb(0,"div",0),i.Kb(1,"div",1),i.Kb(2,"div",2),i.Kb(3,"a",3),i.Kb(4,"span",4),i.Kb(5,"h3"),i.Ib(6,"img",5),i.oc(7,"ORPIV TECHNOLOGIES COVID19 VISUALIZER"),i.Jb(),i.Jb(),i.Kb(8,"span",6),i.Kb(9,"h3"),i.Ib(10,"img",7),i.oc(11," ORPIV TECHNOLOGIES "),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Jb())},directives:[c.b],styles:[""]}),e})(),j=(()=>{class e{constructor(e){this.translate=e}}return e.\u0275fac=function(t){return new(t||e)(i.Hb(o.d))},e.\u0275cmp=i.Bb({type:e,selectors:[["app-footer"]],decls:26,vars:3,consts:[[1,"footer"],[1,"container-fluid"],[1,"row"],[1,"col-md-6"],["href","https://orpiv.com/"],[1,"text-md-right","footer-links","d-none","d-sm-block"],["href","http://facebook.com/orpiv"],[1,"text-blue"],[1,"fab","fa-facebook-square"],["href","https://www.youtube.com/channel/UCEkLK76KVmvkeWiUsGJKY9w"],[1,"text-danger"],[1,"fab","fa-youtube-square"],["href","https://www.linkedin.com/company/orpivtechnologies/"],[1,"fab","fa-linkedin"],["href","https://www.instagram.com/orpiv/"],[1,"text-pink"],[1,"fab","fa-instagram"],["href","https://orpiv.com/contact"],[1,"text-success"],[1,"far","fa-paper-plane"]],template:function(e,t){1&e&&(i.Kb(0,"footer",0),i.Kb(1,"div",1),i.Kb(2,"div",2),i.Kb(3,"div",3),i.oc(4," 2020 \xa9 All Rights Reserved - "),i.Kb(5,"a",4),i.oc(6,"ORPIV TECHNOLOGIES"),i.Jb(),i.Jb(),i.Kb(7,"div",3),i.Kb(8,"div",5),i.Kb(9,"a",6),i.Kb(10,"span",7),i.Ib(11,"i",8),i.Jb(),i.Jb(),i.Kb(12,"a",9),i.Kb(13,"span",10),i.Ib(14,"i",11),i.Jb(),i.Jb(),i.Kb(15,"a",12),i.Kb(16,"span",7),i.Ib(17,"i",13),i.Jb(),i.Jb(),i.Kb(18,"a",14),i.Kb(19,"span",15),i.Ib(20,"i",16),i.Jb(),i.Jb(),i.Kb(21,"a",17),i.Kb(22,"span",18),i.Ib(23,"i",19),i.Jb(),i.oc(24),i.Vb(25,"translate"),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Jb(),i.Jb()),2&e&&(i.wb(24),i.qc(" ",i.Wb(25,1,"Shared.Other.11"),""))},pipes:[o.c],styles:[""]}),e})(),U=(()=>{class e{constructor(){this.showMobileMenu=!1}ngOnInit(){}ngAfterViewInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Bb({type:e,selectors:[["app-layout"]],decls:5,vars:0,consts:[["id","topnav"],[1,"wrapper"]],template:function(e,t){1&e&&(i.Kb(0,"header",0),i.Ib(1,"app-topbar"),i.Jb(),i.Kb(2,"div",1),i.Ib(3,"router-outlet"),i.Jb(),i.Ib(4,"app-footer"))},directives:[N,c.d,j],styles:[""]}),e})(),q=(()=>{class e{constructor(e){this.translate=e,e.addLangs(["en"]),e.setDefaultLang("en")}}return e.\u0275fac=function(t){return new(t||e)(i.Hb(o.d))},e.\u0275cmp=i.Bb({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(e,t){1&e&&i.Ib(0,"app-layout")},directives:[U],styles:[""]}),e})();var _=a("Jho9");const X={};function Y(e){return new b.a(e,"https://orpiv.com/covid19/assets/i18n/",".json")}let Z=(()=>{class e{}return e.\u0275mod=i.Fb({type:e,bootstrap:[q]}),e.\u0275inj=i.Eb({factory:function(t){return new(t||e)},providers:[{provide:S.a,useValue:X}],imports:[[s.a,r.a,n.b,H,L.b,c.c,S.c,I.a.forRoot(),_.a.register("ngsw-worker.js",{enabled:!0,registrationStrategy:"registerImmediately"}),o.b.forRoot({loader:{provide:o.a,useFactory:Y,deps:[n.a]}})]]}),e})();Object(i.R)(),s.b().bootstrapModule(Z).catch(e=>console.error(e))}},[[0,0,7]]]);