function filenavSetAging(e){myfilenav.datas=e,$("#mya2btnc").text(CMFile.aging(2,myfilenav.datas).length),$("#mya3btnc").text(CMFile.aging(3,myfilenav.datas).length),$("#mya4btnc").text(CMFile.aging(4,myfilenav.datas).length),$("#mya5abtnc").text(CMFile.aging("5a",myfilenav.datas).length),$("#mya5bbtnc").text(CMFile.aging("5b",myfilenav.datas).length)}function filenavSetArea(e){return myfilenav.aging=CMFile.aging(e,myfilenav.datas),function(e){let t=[];for(var a=e.length-1;a>=0;a--){let n=myfilenav.aging.filter(((t,n,i)=>t.area===e[a]));t.push({text:e[a],callback:{type:"click",handler:function(){$(this).addClass("active").siblings().removeClass("active"),FileNav.setFocus(n),FileNav.view()}},count:n.length})}return t.sort(((e,t)=>t.count-e.count)),t}([...new Set(myfilenav.aging.map((e=>e.area)))])}function filenavSetPTP(e){return myfilenav.aging=CMFile.aging(e,myfilenav.datas),function(e){let t=[];for(var a=e.length-1;a>=0;a--){let n=myfilenav.aging.filter(((t,n,i)=>t.date.ptp===e[a])),i=(new Date).getDate(),l=e[a].split("-");l.splice(0,1),l.reverse(),l=i===parseInt(l[0])?"today":l.join(" / "),t.push({text:l,callback:{type:"click",handler:function(){$(this).addClass("active").siblings().removeClass("active"),FileNav.setFocus(n),FileNav.view()}},count:n.length,date:new Date(e[a])})}$("#mycatbtn button.active").text().includes("ptp")?t.sort(((e,t)=>new Date(e.date)-new Date(t.date))):$("#mycatbtn button.active").text().includes("broken")&&t.sort(((e,t)=>new Date(t.date)-new Date(e.date)));return t}([...new Set(myfilenav.aging.map((e=>e.date.ptp)))])}