2 lines
20 KiB
JavaScript
2 lines
20 KiB
JavaScript
(function(t){function e(e){for(var o,r,s=e[0],i=e[1],u=e[2],d=0,f=[];d<s.length;d++)r=s[d],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&f.push(a[r][0]),a[r]=0;for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o]);l&&l(e);while(f.length)f.shift()();return c.push.apply(c,u||[]),n()}function n(){for(var t,e=0;e<c.length;e++){for(var n=c[e],o=!0,s=1;s<n.length;s++){var i=n[s];0!==a[i]&&(o=!1)}o&&(c.splice(e--,1),t=r(r.s=n[0]))}return t}var o={},a={app:0},c=[];function r(e){if(o[e])return o[e].exports;var n=o[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=t,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/worktime/";var s=window["webpackJsonp"]=window["webpackJsonp"]||[],i=s.push.bind(s);s.push=e,s=s.slice();for(var u=0;u<s.length;u++)e(s[u]);var l=i;c.push([0,"chunk-vendors"]),n()})({0:function(t,e,n){t.exports=n("56d7")},"0346":function(t,e,n){"use strict";n("8bc3")},1038:function(t,e,n){t.exports=n.p+"img/stop.8a252492.svg"},"307f":function(t,e,n){},"4fbf":function(t,e,n){},"54d8":function(t,e,n){"use strict";n("7566")},"56d7":function(t,e,n){"use strict";n.r(e);n("e260"),n("e6cf"),n("cca6"),n("a79d");var o=n("7a23"),a=Object(o["i"])("div",{class:"app-backdrop"},null,-1),c=Object(o["i"])("div",{id:"modalSpot"},null,-1);function r(t,e){var n=Object(o["z"])("router-view");return Object(o["r"])(),Object(o["f"])(o["a"],null,[a,Object(o["i"])(n),c],64)}n("8509");var s=n("d959"),i=n.n(s);const u={},l=i()(u,[["render",r]]);var d=l,f=n("9483");Object(f["a"])("".concat("/worktime/","service-worker.js"),{ready:function(){console.log("App is being served from cache by a service worker.\nFor more details, visit https://goo.gl/AFskqB")},registered:function(){console.log("Service worker has been registered.")},cached:function(){console.log("Content has been cached for offline use.")},updatefound:function(){console.log("New content is downloading.")},updated:function(){console.log("New content is available; please refresh.")},offline:function(){console.log("No internet connection found. App is running in offline mode.")},error:function(t){console.error("Error during service worker registration:",t)}});var b=n("6c02"),v={class:"home"};function g(t,e,n,a,c,r){var s=Object(o["z"])("TheCategoryBar"),i=Object(o["z"])("GlobalTaskControls"),u=Object(o["z"])("TheTaskList");return Object(o["r"])(),Object(o["f"])("div",v,[Object(o["i"])(s,{onSelect:r.select},null,8,["onSelect"]),Object(o["i"])(i),Object(o["i"])(u,{selectedCategory:c.selectedCategory},null,8,["selectedCategory"])])}var p=n("5530"),O=n("5502"),j=n("89fe"),m=n.n(j),k=n("5cc9"),h=n.n(k),y=Object(o["J"])("data-v-1bcc5785");Object(o["u"])("data-v-1bcc5785");var C={class:"category-bar"},T={class:"categories"},A=Object(o["i"])("img",{src:m.a},null,-1),w=Object(o["i"])("img",{src:h.a},null,-1);Object(o["s"])();var M=y((function(t,e,n,a,c,r){var s=Object(o["z"])("SettingsModal");return Object(o["r"])(),Object(o["f"])("div",C,[Object(o["G"])(Object(o["i"])("input",{class:"add-category","onUpdate:modelValue":e[1]||(e[1]=function(t){return c.newCategory=t}),placeholder:"New category",onKeypress:e[2]||(e[2]=Object(o["H"])((function(){return r.addCategory&&r.addCategory.apply(r,arguments)}),["enter"])),onClick:e[3]||(e[3]=function(){return r.hoverInput&&r.hoverInput.apply(r,arguments)}),onMouseenter:e[4]||(e[4]=function(){return r.hoverInput&&r.hoverInput.apply(r,arguments)}),onMouseleave:e[5]||(e[5]=function(){return r.blurInput&&r.blurInput.apply(r,arguments)})},null,544),[[o["E"],c.newCategory]]),Object(o["i"])("div",T,[(Object(o["r"])(!0),Object(o["f"])(o["a"],null,Object(o["x"])(t.categories,(function(t){return Object(o["r"])(),Object(o["f"])("div",{class:["category",{selected:c.selectedCategory===t}],key:t,style:{background:r.stringToColor(t)},onClick:function(e){return r.selectCategory(t)}},[Object(o["h"])(Object(o["B"])(t)+" ",1),Object(o["i"])("span",{onClick:Object(o["I"])((function(e){return r.removeCategory(t)}),["stop"])},[A],8,["onClick"])],14,["onClick"])})),128))]),Object(o["i"])("div",{class:"settings",onClick:e[6]||(e[6]=function(){return r.openSettings&&r.openSettings.apply(r,arguments)})},[w]),Object(o["i"])(s,{ref:"settingsModal"},null,512)])}));function F(t){var e=["#FF6633","#FFB399","#FF33FF","#FFFF99","#00B3E6","#3366E6","#99FF99","#B34D4D","#80B300","#E6B3B3","#6680B3","#66991A","#FF99E6","#CCFF1A","#FF1A66","#E6331A","#33FFCC","#B366CC","#CC80CC","#991AFF","#E666FF","#4DB3FF","#1AB399","#E666B3","#CC9999","#B3B31A","#00E680","#E6FF80","#1AFF33","#FF3380","#CCCC00","#66E64D","#4D80CC","#E64D66","#4DB380","#FF4D4D","#99E6E6","#6666FF"],n=0;if(0===t.length)return n;for(var o=0;o<t.length;o++)n=t.charCodeAt(o)+((n<<5)-n),n&=n;return n=(n%e.length+e.length)%e.length,e[n]}var _=Object(o["J"])("data-v-f199c15c");Object(o["u"])("data-v-f199c15c");var B=Object(o["i"])("div",{class:"title"},"Settings",-1),I={class:"setting"},R=Object(o["i"])("label",{for:"reset"},"Reset all tasks to 0 at midnight",-1);Object(o["s"])();var S=_((function(t,e,n,a,c,r){var s=Object(o["z"])("Modal");return Object(o["r"])(),Object(o["f"])(s,{ref:"modal"},{default:_((function(){return[B,Object(o["i"])("div",I,[Object(o["G"])(Object(o["i"])("input",{type:"checkbox",id:"reset","onUpdate:modelValue":e[1]||(e[1]=function(t){return c.resetAtMidnight=t})},null,512),[[o["D"],c.resetAtMidnight]]),R])]})),_:1},512)})),D=Object(o["J"])("data-v-792aa0bd");Object(o["u"])("data-v-792aa0bd");var $={class:"window"},x=Object(o["i"])("img",{src:m.a},null,-1);Object(o["s"])();var E=D((function(t,e,n,a,c,r){return Object(o["r"])(),Object(o["f"])(o["b"],{to:"#modalSpot"},[Object(o["i"])("div",{class:["modal",{hidden:!c.active}]},[Object(o["i"])("div",{class:"bg",onClick:e[1]||(e[1]=function(){return r.close&&r.close.apply(r,arguments)})}),Object(o["i"])("div",$,[Object(o["i"])("div",{class:"close",onClick:e[2]||(e[2]=function(){return r.close&&r.close.apply(r,arguments)})},[x]),Object(o["y"])(t.$slots,"default",{},void 0,!0)])],2)])})),z={data:function(){return{active:!1}},methods:{open:function(){this.active=!0},close:function(){this.active=!1}}};n("eb0f");const J=i()(z,[["render",E],["__scopeId","data-v-792aa0bd"]]);var P=J,L={components:{Modal:P},data:function(){return{resetAtMidnight:void 0}},computed:Object(p["a"])({},Object(O["c"])(["midnightReset"])),watch:{resetAtMidnight:function(t){this.setMidnightReset(t)}},beforeMount:function(){this.resetAtMidnight=this.midnightReset},methods:Object(p["a"])(Object(p["a"])({},Object(O["b"])(["setMidnightReset"])),{},{open:function(){this.$refs.modal.open()}})};n("e8bf");const G=i()(L,[["render",S],["__scopeId","data-v-f199c15c"]]);var H=G,N={components:{SettingsModal:H},data:function(){return{newCategory:"+",selectedCategory:void 0}},methods:{addCategory:function(t){this.$store.commit("addCategory",this.newCategory),this.newCategory="",this.blurInput(t)},removeCategory:function(t){this.$store.commit("removeCategory",t),t===this.selectedCategory&&this.selectCategory()},hoverInput:function(t){this.newCategory="",t.target.classList.add("hover")},blurInput:function(t){this.newCategory="+",t.target.classList.remove("hover"),t.target.blur()},stringToColor:function(t){return F(t)},selectCategory:function(t){this.selectedCategory===t?this.selectedCategory=void 0:this.selectedCategory=t,this.$emit("select",this.selectedCategory)},openSettings:function(){this.$refs.settingsModal.open()}},computed:Object(p["a"])({},Object(O["c"])(["categories"]))};n("9afb");const q=i()(N,[["render",M],["__scopeId","data-v-1bcc5785"]]);var U=q,V=n("1038"),K=n.n(V),Q=n("c870"),W=n.n(Q),X=n("c637"),Y=n.n(X),Z=Object(o["J"])("data-v-66858698");Object(o["u"])("data-v-66858698");var tt={class:"global-controls"},et=Object(o["i"])("div",null," Total ",-1),nt={class:"buttons"},ot=Object(o["i"])("img",{src:K.a},null,-1),at=Object(o["i"])("img",{src:W.a},null,-1),ct=Object(o["i"])("img",{src:Y.a},null,-1);Object(o["s"])();var rt=Z((function(t,e,n,a,c,r){var s=Object(o["z"])("Time"),i=Object(o["z"])("ResetAllModal"),u=Object(o["z"])("RemoveAllModal");return Object(o["r"])(),Object(o["f"])("div",tt,[Object(o["i"])(s,{time:c.totalTime,pulsing:r.atLeastOneRunning},null,8,["time","pulsing"]),et,Object(o["i"])("div",nt,[Object(o["i"])(o["c"],{name:"slide-up"},{default:Z((function(){return[r.atLeastOneRunning?(Object(o["r"])(),Object(o["f"])("div",{key:0,class:"stop",onClick:e[1]||(e[1]=function(){return r.stop&&r.stop.apply(r,arguments)})},[ot])):Object(o["g"])("",!0)]})),_:1}),Object(o["i"])("div",{onClick:e[2]||(e[2]=function(e){return t.$refs.resetAllModal.open()})},[at]),Object(o["i"])("div",{onClick:e[3]||(e[3]=function(e){return t.$refs.removeAllModal.open()})},[ct])]),Object(o["i"])(i,{ref:"resetAllModal"},null,512),Object(o["i"])(u,{ref:"removeAllModal"},null,512)])})),st=(n("159b"),n("b0c0"),Object(o["J"])("data-v-b0239664")),it=st((function(t,e,n,a,c,r){return Object(o["r"])(),Object(o["f"])("div",{class:["time",{pulsing:n.pulsing}]},Object(o["B"])(r.formattedTime),3)})),ut=(n("a9e3"),n("99af"),{props:{time:{type:Number,required:!0},pulsing:{type:Boolean,default:!1}},computed:{formattedTime:function(){var t=this.time,e=1e3,n=60*e,o=60*n,a=24*o,c=Math.floor(t/a);t-=c*a;var r=Math.floor(t/o);t-=r*o;var s=Math.floor(t/n);return"".concat(c,"d ").concat(r,"h ").concat(s,"m")}}});n("54d8");const lt=i()(ut,[["render",it],["__scopeId","data-v-b0239664"]]);var dt=lt,ft=Object(o["J"])("data-v-67c71f24");Object(o["u"])("data-v-67c71f24");var bt=Object(o["i"])("div",{class:"title"},"Are you sure you want to delete all of your tasks?",-1),vt={class:"buttons"};Object(o["s"])();var gt=ft((function(t,e,n,a,c,r){var s=Object(o["z"])("Modal");return Object(o["r"])(),Object(o["f"])(s,{ref:"modal"},{default:ft((function(){return[bt,Object(o["i"])("div",vt,[Object(o["i"])("button",{onClick:e[1]||(e[1]=function(){return r.close&&r.close.apply(r,arguments)})}," Cancel "),Object(o["i"])("button",{onClick:e[2]||(e[2]=function(){return r.removeAllTasksAndClose&&r.removeAllTasksAndClose.apply(r,arguments)})}," Delete ")])]})),_:1},512)})),pt={components:{Modal:P},methods:Object(p["a"])(Object(p["a"])({},Object(O["b"])(["removeAllTasks"])),{},{removeAllTasksAndClose:function(){this.removeAllTasks(),this.close()},open:function(){this.$refs.modal.open()},close:function(){this.$refs.modal.close()}})};n("b4f9");const Ot=i()(pt,[["render",gt],["__scopeId","data-v-67c71f24"]]);var jt=Ot,mt=Object(o["J"])("data-v-0de3b15e");Object(o["u"])("data-v-0de3b15e");var kt=Object(o["i"])("div",{class:"title"},"Are you sure you want to reset all of your tasks to 0?",-1),ht={class:"buttons"};Object(o["s"])();var yt=mt((function(t,e,n,a,c,r){var s=Object(o["z"])("Modal");return Object(o["r"])(),Object(o["f"])(s,{ref:"modal"},{default:mt((function(){return[kt,Object(o["i"])("div",ht,[Object(o["i"])("button",{onClick:e[1]||(e[1]=function(){return r.close&&r.close.apply(r,arguments)})}," Cancel "),Object(o["i"])("button",{onClick:e[2]||(e[2]=function(){return r.resetTasksAndClose&&r.resetTasksAndClose.apply(r,arguments)})}," Reset ")])]})),_:1},512)})),Ct={components:{Modal:P},methods:Object(p["a"])(Object(p["a"])({},Object(O["b"])(["resetTasks"])),{},{resetTasksAndClose:function(){this.resetTasks(),this.close()},open:function(){this.$refs.modal.open()},close:function(){this.$refs.modal.close()}})};n("92d6");const Tt=i()(Ct,[["render",yt],["__scopeId","data-v-0de3b15e"]]);var At=Tt,wt={components:{Time:dt,RemoveAllModal:jt,ResetAllModal:At},data:function(){return{totalTime:0}},computed:Object(p["a"])(Object(p["a"])({},Object(O["c"])(["tasks"])),{},{atLeastOneRunning:function(){return this.tasks.reduce((function(t,e){return e.running||t}),!1)}}),beforeMount:function(){var t=this;setInterval((function(){t.totalTime=t.getTotalTime()}),1e3)},methods:{getTotalTime:function(){return this.tasks.reduce((function(t,e){if(e.startedAt){var n=Date.now()-e.startedAt;return t+e.totalTime+n}return t+e.totalTime}),0)},stop:function(){var t=this;this.tasks.forEach((function(e){e.running&&t.$store.commit("stopTask",e.name)}))}}};n("d091");const Mt=i()(wt,[["render",rt],["__scopeId","data-v-66858698"]]);var Ft=Mt,_t=Object(o["J"])("data-v-bab97014");Object(o["u"])("data-v-bab97014");var Bt={class:"task-list"};Object(o["s"])();var It=_t((function(t,e,n,a,c,r){var s=Object(o["z"])("Task");return Object(o["r"])(),Object(o["f"])("div",Bt,[Object(o["i"])("div",null,[Object(o["G"])(Object(o["i"])("input",{class:"add-task","onUpdate:modelValue":e[1]||(e[1]=function(t){return c.newTask=t}),placeholder:"Add new task",onKeypress:e[2]||(e[2]=Object(o["H"])((function(){return r.addTask&&r.addTask.apply(r,arguments)}),["enter"]))},null,544),[[o["E"],c.newTask]])]),(Object(o["r"])(!0),Object(o["f"])(o["a"],null,Object(o["x"])(r.filteredTasks,(function(t){return Object(o["r"])(),Object(o["f"])(s,{key:t.startedAt,task:t},null,8,["task"])})),128))])})),Rt=(n("4de4"),n("ec7e")),St=n.n(Rt),Dt=n("5830"),$t=n.n(Dt),xt=Object(o["J"])("data-v-1e059a3c");Object(o["u"])("data-v-1e059a3c");var Et={class:"task"},zt={class:"toggle-state"},Jt=Object(o["i"])("img",{src:St.a},null,-1),Pt=Object(o["i"])("img",{src:$t.a},null,-1),Lt={class:"optional-break"},Gt={class:"name"},Ht=Object(o["i"])("img",{src:m.a},null,-1),Nt=Object(o["i"])("img",{src:Y.a},null,-1);Object(o["s"])();var qt=xt((function(t,e,n,a,c,r){var s=Object(o["z"])("Time"),i=Object(o["z"])("CategoryModal");return Object(o["r"])(),Object(o["f"])("div",Et,[Object(o["i"])(s,{time:r.time,pulsing:n.task.running},null,8,["time","pulsing"]),Object(o["i"])("div",zt,[n.task.running?(Object(o["r"])(),Object(o["f"])("div",{key:0,onClick:e[1]||(e[1]=function(){return r.stopTask&&r.stopTask.apply(r,arguments)})},[Jt])):(Object(o["r"])(),Object(o["f"])("div",{key:1,onClick:e[2]||(e[2]=function(){return r.startTask&&r.startTask.apply(r,arguments)})},[Pt]))]),Object(o["i"])("div",Lt,[Object(o["i"])("div",Gt,Object(o["B"])(n.task.name),1),n.task.category?(Object(o["r"])(),Object(o["f"])("div",{key:0,class:"category",style:{background:r.stringToColor(n.task.category)}},[Object(o["h"])(Object(o["B"])(n.task.category)+" ",1),Object(o["i"])("span",{onClick:e[3]||(e[3]=function(){return r.removeCategory&&r.removeCategory.apply(r,arguments)})},[Ht])],4)):(Object(o["r"])(),Object(o["f"])("div",{key:1,class:"select-category",onClick:e[4]||(e[4]=function(){var e;return t.$refs.categorySelect.open&&(e=t.$refs.categorySelect).open.apply(e,arguments)})}," Assign Category "))]),Object(o["i"])(i,{ref:"categorySelect",name:n.task.name},null,8,["name"]),Object(o["i"])("div",{class:"delete",onClick:e[5]||(e[5]=function(){return r.removeTask&&r.removeTask.apply(r,arguments)})},[Nt])])})),Ut=Object(o["J"])("data-v-1e31fc44");Object(o["u"])("data-v-1e31fc44");var Vt=Object(o["i"])("div",{class:"title"},"Assign Category",-1);Object(o["s"])();var Kt=Ut((function(t,e,n,a,c,r){var s=Object(o["z"])("Modal");return Object(o["r"])(),Object(o["f"])(s,{ref:"modal"},{default:Ut((function(){return[Vt,(Object(o["r"])(!0),Object(o["f"])(o["a"],null,Object(o["x"])(a.categories,(function(t){return Object(o["r"])(),Object(o["f"])("div",{key:t,class:"category",style:{background:a.stringToColor(t)},onClick:function(e){return a.assignCategory(t)}},Object(o["B"])(t),13,["onClick"])})),128))]})),_:1},512)})),Qt={components:{Modal:P},props:{name:{type:String,required:!0}},setup:function(t){var e=Object(O["d"])(),n=Object(o["w"])(null),a=function(){n.value.open()},c=function(){n.value.close()},r=function(t){return F(t)},s=function(o){e.commit("assignCategory",{name:t.name,category:o}),n.value.close()};return{modal:n,open:a,close:c,assignCategory:s,stringToColor:r,categories:Object(o["d"])((function(){return e.state.categories}))}}};n("d32e");const Wt=i()(Qt,[["render",Kt],["__scopeId","data-v-1e31fc44"]]);var Xt=Wt,Yt={components:{Time:dt,CategoryModal:Xt},props:{task:Object},data:function(){return{timePassed:0,openDropdown:!1}},methods:{startTask:function(){this.$store.commit("startTask",this.task.name)},stopTask:function(){this.$store.commit("stopTask",this.task.name)},removeCategory:function(){this.$store.commit("assignCategory",{name:this.task.name,category:void 0})},stringToColor:function(t){return F(t)},removeTask:function(){this.$store.commit("removeTask",this.task.name)}},computed:{time:function(){return this.task.startedAt?this.task.totalTime+this.timePassed:this.task.totalTime}},beforeMount:function(){var t=this;setInterval((function(){t.timePassed=Date.now()-t.task.startedAt}),1e3)}};n("7424");const Zt=i()(Yt,[["render",qt],["__scopeId","data-v-1e059a3c"]]);var te=Zt,ee={components:{Task:te},props:{selectedCategory:String},data:function(){return{newTask:""}},methods:{addTask:function(){this.$store.commit("addTask",this.newTask),this.newTask=""}},computed:Object(p["a"])(Object(p["a"])({},Object(O["c"])(["tasks"])),{},{filteredTasks:function(){var t=this;return this.selectedCategory?this.tasks.filter((function(e){return e.category===t.selectedCategory})):this.tasks}})};n("0346");const ne=i()(ee,[["render",It],["__scopeId","data-v-bab97014"]]);var oe=ne,ae={name:"Home",components:{TheCategoryBar:U,GlobalTaskControls:Ft,TheTaskList:oe},data:function(){return{selectedCategory:void 0}},computed:Object(p["a"])({},Object(O["c"])(["midnightReset","lastReset"])),beforeMount:function(){var t=new Date;t.setHours(0,0,0,0);var e=new Date(this.lastReset);this.midnightReset&&e<t&&this.resetTasks()},methods:Object(p["a"])(Object(p["a"])({},Object(O["b"])(["resetTasks"])),{},{select:function(t){this.selectedCategory=t}})};const ce=i()(ae,[["render",g]]);var re=ce,se=[{path:"/",name:"Home",component:re}],ie=Object(b["a"])({history:Object(b["b"])(),routes:se}),ue=ie,le=n("2909"),de=(n("caad"),n("2532"),n("d81d"),n("bfa9")),fe=new de["a"]({storage:window.localStorage}),be=Object(O["a"])({state:{categories:[],tasks:[],midnightReset:!1,lastReset:new Date,darkTheme:!0},mutations:{addCategory:function(t,e){e&&!t.categories.includes(e)&&(t.categories=[].concat(Object(le["a"])(t.categories),[e]))},removeCategory:function(t,e){t.categories=t.categories.filter((function(t){return t!==e})),t.tasks=t.tasks.map((function(t){var n=t;return n.category===e&&(n.category=void 0),n}))},assignCategory:function(t,e){var n=e.name,o=e.category;t.tasks=t.tasks.map((function(t){var e=t;return e.name===n&&(e.category=o),e}))},addTask:function(t,e){if(e){var n={name:e,startedAt:void 0,running:!1,totalTime:0,category:void 0};t.tasks=[].concat(Object(le["a"])(t.tasks),[n])}},removeTask:function(t,e){t.tasks=t.tasks.filter((function(t){return t.name!==e}))},removeAllTasks:function(t){t.tasks=[]},startTask:function(t,e){t.tasks=t.tasks.map((function(t){var n=t;return n.name===e?(n.running=!0,n.startedAt=Date.now()):n.running&&(n.running=!1,n.totalTime+=Date.now()-n.startedAt,n.startedAt=void 0),n}))},stopTask:function(t,e){t.tasks=t.tasks.map((function(t){var n=t;return n.name===e&&(n.running=!1,n.totalTime+=Date.now()-n.startedAt,n.startedAt=void 0),n}))},resetTasks:function(t){t.tasks=t.tasks.map((function(t){var e=t;return e.running=!1,e.totalTime=0,e.startedAt=void 0,e})),t.lastReset=new Date},setMidnightReset:function(t,e){t.midnightReset=!!e}},plugins:[fe.plugin]}),ve=Object(o["e"])(d);ve.use(be),ve.use(ue),ve.mount("#app")},5830:function(t,e,n){t.exports=n.p+"img/play.53d47113.svg"},"5cc9":function(t,e,n){t.exports=n.p+"img/gear.944f434b.svg"},"684e":function(t,e,n){},7424:function(t,e,n){"use strict";n("307f")},7566:function(t,e,n){},8509:function(t,e,n){"use strict";n("e930")},"89fe":function(t,e,n){t.exports=n.p+"img/cross.df13156b.svg"},"8bc3":function(t,e,n){},"92d6":function(t,e,n){"use strict";n("d750")},"9afb":function(t,e,n){"use strict";n("e14c")},b4f9:function(t,e,n){"use strict";n("4fbf")},c637:function(t,e,n){t.exports=n.p+"img/trash.c93e9df1.svg"},c870:function(t,e,n){t.exports=n.p+"img/reset.2a2e9e9d.svg"},d091:function(t,e,n){"use strict";n("e83a")},d1f4:function(t,e,n){},d32e:function(t,e,n){"use strict";n("e6b8")},d750:function(t,e,n){},e14c:function(t,e,n){},e6b8:function(t,e,n){},e83a:function(t,e,n){},e8bf:function(t,e,n){"use strict";n("d1f4")},e930:function(t,e,n){},eb0f:function(t,e,n){"use strict";n("684e")},ec7e:function(t,e,n){t.exports=n.p+"img/pause.70a06771.svg"}});
|
|
//# sourceMappingURL=app.1b298ad8.js.map
|