(self["webpackChunkaw_webui"]=self["webpackChunkaw_webui"]||[]).push([[6171],{6171:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>w});o(56977),o(47042),o(69600);var r=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{"text-align":"center"}},[t._v("Your total score today is:"),e("div",{style:"font-size: 2em; color: "+(t.score>=0?"#0A0":"#F00")},[t._v(t._s(t.score>=0?"+":"")+t._s((Math.round(10*t.score)/10).toFixed(1)))]),e("div",{staticClass:"small text-muted"},[t._v("("+t._s(t.score_productive_percent.toFixed(1))+"% productive)")])]),e("hr"),e("div",[e("b",[t._v("Top productive:")]),t._l(t.top_productive,(function(o){return e("div",{staticClass:"mt-2"},[e("div",{staticClass:"d-flex"},[e("div",[e("div",[t._v(t._s(o.data.$category.slice(-1)[0]))]),e("div",{staticStyle:{"font-size":"0.7em",color:"#666"}},[t._v(t._s(o.data.$category.slice(0,-1).join(" > ")))])]),e("div",{staticClass:"ml-auto"},[e("span",{staticStyle:{"font-size":"1.2em",color:"#0A0"}},[t._v("+"+t._s((Math.round(10*o.data.$total_score)/10).toFixed(1)))])])])])}))],2),e("hr"),e("div",[e("b",[t._v("Top distracting:")]),t._l(t.top_distracting,(function(o){return e("div",{staticClass:"mt-2"},[e("div",{staticClass:"d-flex"},[e("div",[e("div",[t._v(t._s(o.data.$category.slice(-1)[0]))]),e("div",{staticStyle:{"font-size":"0.7em",color:"#666"}},[t._v(t._s(o.data.$category.slice(0,-1).join(" > ")))])]),e("div",{staticClass:"ml-auto"},[e("span",{staticStyle:{"font-size":"1.2em",color:"#F00"}},[t._v(t._s((Math.round(10*o.data.$total_score)/10).toFixed(1)))])])])])}))],2)])},i=[],s=o(89734),a=o.n(s),c=o(63105),n=o.n(c),u=o(73303),d=o.n(u),_=o(12297),l=o.n(_),v=o(35161),f=o.n(v),p=o(72195);const h={name:"aw-score",computed:{categories_with_score:function(){var t=(0,p.j)().category.top;return f()(t,(function(t){return t.data.$total_score=t.duration/3600*t.data.$score,t}))},score:function(){return l()(f()(this.categories_with_score,(function(t){return t.data.$total_score})))},score_productive_percent:function(){var t=d()(this.categories_with_score,(function(t){return t.duration})),e=d()(n()(this.categories_with_score,(function(t){return t.data.$total_score>0})),(function(t){return t.duration}));return e/t*100},top_productive:function(){return a()(n()(this.categories_with_score,(function(t){return t.data.$total_score>.1})),(function(t){return-t.data.$total_score}))},top_distracting:function(){return a()(n()(this.categories_with_score,(function(t){return t.data.$total_score<-.1})),(function(t){return t.data.$total_score}))}}},g=h;var $=o(1001),m=(0,$.Z)(g,r,i,!1,null,null,null);const w=m.exports},12297:(t,e,o)=>{var r=o(67762),i=o(6557);function s(t){return t&&t.length?r(t,i):0}t.exports=s}}]);
//# sourceMappingURL=6171.e34b4bf4.js.map