import"./Notification-15e980db.js";import{h as o}from"./moment-a9aaa855.js";const c={filters:{leagueLabel(e){let a,t=e.games;e.location,a=`${e.season.name}`;let n=o();t.length?n=o(t[0].date):e.start_date&&(n=o(e.start_date)),a+=` '${n.format("YY")}`,a+=` ${e.activity.name}`;let r=o();if(o().isoWeekday(),t.length)r=o(t[0].date);else{let s=parseInt(r.format("d")),l;e.days_of_week.forEach(d=>{let i=parseInt(d.day_of_week);!l&&i>=s&&(l=i)}),r=o(l)}return a+=` ${r.format("ddd")}`,t.length&&t[0].location&&(a+=` @ ${t[0].location.name}`),a},formatDate(e,a="YYYY-MM-DD"){return o(e).format(a)},addWeek(e,a="YYYY-MM-DD"){let t=o(e);return t=t.add(7,"days"),t.format(a)}},methods:{getLocation(e){let a=null,t=e.games;if(t.length){let n=t[0];n.location&&(a=n.location)}return a}}};export{c as L};