window.VT=window.VT||{},VT.TodoDay=function(a){var b={dateId:a.dataset.key,items:[]};a.innerHTML="
\n

\n
\n
\n
",VT.TodoList(a.querySelector(".todo-list")),a.addEventListener("addItem",function(a){a.detail.listId=b.dateId}),a.addEventListener("moveItem",function(a){a.detail.listId=b.dateId,a.detail.index=a.detail.index||0}),a.todoDay={update:function(c){Object.assign(b,c);var d=new Date(b.dateId),e=new Date;e.setHours(0,0,0,0);var f=new Date(e);f.setDate(f.getDate()+1),a.classList.toggle("-past",d=e&&d .dayofweek").innerText=VT.formatDayOfWeek(d),a.querySelector(".header > .date").innerText=VT.formatDate(d),a.querySelector(".todo-list").todoList.update({items:b.items})}}};