AoS.Health Senegal Production Dashboard
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

2 lines
4.1 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b7e25b5c"],{1148:function(t,e,i){"use strict";var n=i("a691"),r=i("577e"),a=i("1d80");t.exports=function(t){var e=r(a(this)),i="",c=n(t);if(c<0||c==1/0)throw RangeError("Wrong number of repetitions");for(;c>0;(c>>>=1)&&(e+=e))1&c&&(i+=e);return i}},"408a":function(t,e){var i=1..valueOf;t.exports=function(t){return i.call(t)}},"880b":function(t,e,i){"use strict";i("b4b4")},b4b4:function(t,e,i){},b680:function(t,e,i){"use strict";var n=i("23e7"),r=i("a691"),a=i("408a"),c=i("1148"),o=i("d039"),s=1..toFixed,l=Math.floor,u=function(t,e,i){return 0===e?i:e%2===1?u(t,e-1,i*t):u(t*t,e/2,i)},f=function(t){var e=0,i=t;while(i>=4096)e+=12,i/=4096;while(i>=2)e+=1,i/=2;return e},d=function(t,e,i){var n=-1,r=i;while(++n<6)r+=e*t[n],t[n]=r%1e7,r=l(r/1e7)},h=function(t,e){var i=6,n=0;while(--i>=0)n+=t[i],t[i]=l(n/e),n=n%e*1e7},p=function(t){var e=6,i="";while(--e>=0)if(""!==i||0===e||0!==t[e]){var n=String(t[e]);i=""===i?n:i+c.call("0",7-n.length)+n}return i},m=s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o((function(){s.call({})}));n({target:"Number",proto:!0,forced:m},{toFixed:function(t){var e,i,n,o,s=a(this),l=r(t),m=[0,0,0,0,0,0],v="",g="0";if(l<0||l>20)throw RangeError("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(v="-",s=-s),s>1e-21)if(e=f(s*u(2,69,1))-69,i=e<0?s*u(2,-e,1):s/u(2,e,1),i*=4503599627370496,e=52-e,e>0){d(m,0,i),n=l;while(n>=7)d(m,1e7,0),n-=7;d(m,u(10,n,1),0),n=e-1;while(n>=23)h(m,1<<23),n-=23;h(m,1<<n),d(m,1,1),h(m,2),g=p(m)}else d(m,0,i),d(m,1<<-e,0),g=p(m)+c.call("0",l);return l>0?(o=g.length,g=v+(o<=l?"0."+c.call("0",l-o)+g:g.slice(0,o-l)+"."+g.slice(o-l))):g=v+g,g}})},deb6:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"card",class:t.item.class},[i("a",{attrs:{href:"https://openweathermap.org/city/"+t.id,target:t.item.target,rel:"noreferrer"}},[i("div",{staticClass:"card-content"},[i("div",{staticClass:"media"},[t.icon?i("div",{staticClass:"media-left",class:t.item.background},[i("figure",{staticClass:"image is-48x48"},[i("img",{attrs:{src:"https://openweathermap.org/img/wn/"+t.icon+"@2x.png",alt:t.conditions,title:t.conditions}})])]):t._e(),i("div",{staticClass:"media-content"},[t.error?i("p",{staticClass:"error"},[t._v("Data could not be retrieved")]):i("div",[i("p",{staticClass:"title is-4"},[t._v(t._s(t.name))]),i("p",{staticClass:"subtitle is-6"},[t._v(" "+t._s(t._f("tempSuffix")(t.temp,this.item.units))+" ")])])])]),t.item.tag?i("div",{staticClass:"tag",class:t.item.tagstyle},[i("strong",{staticClass:"tag-text"},[t._v("#"+t._s(t.item.tag))])]):t._e()])])])])},r=[],a=i("1da1"),c=(i("96cf"),i("99af"),i("d3b7"),i("b0c0"),i("b680"),i("a4d3"),i("e01a"),{name:"OpenWeather",props:{item:Object},data:function(){return{id:null,icon:null,name:null,temp:null,conditions:null,error:!1}},created:function(){this.fetchWeather()},methods:{fetchWeather:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,i,n=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this.item.locationId?"id=".concat(this.item.locationId):"q=".concat(this.item.location),i="https://api.openweathermap.org/data/2.5/weather?".concat(e,"&appid=").concat(this.item.apiKey,"&units=").concat(this.item.units),fetch(i).then((function(t){if(!t.ok)throw Error(t.statusText);return t.json()})).then((function(t){n.id=t.id,n.name=t.name,n.temp=parseInt(t.main.temp).toFixed(1),n.icon=t.weather[0].icon,n.conditions=t.weather[0].description})).catch((function(t){console.log(t),n.error=!0}));case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},filters:{tempSuffix:function(t,e){if(!t)return"";var i="K";return"metric"===e?i="°C":"imperial"===e&&(i="°F"),"".concat(t," ").concat(i)}}}),o=c,s=(i("880b"),i("2877")),l=Object(s["a"])(o,n,r,!1,null,"69cc6c4f",null);e["default"]=l.exports}}]);
//# sourceMappingURL=chunk-b7e25b5c.66acb07b.js.map