PageSourceSearch

https://axethrowing.org/assets/newDashboard-DDL-MvCc.js

js axethrowing.org collected 2026-10-01 15:01:29 UTC 3,886 bytes, 1 lines download raw bytes

1import{H as e}from"./hostAppBar-Nsn6mbm2.js";import{_ as a,Y as t,as as l,c as s,a4 as n,a7 as o,o as u,e as r,f as c,v as i,t as d,aa as p,a5 as v,r as y,q as m,y as f,a9 as h,F as g,x as b,g as S,B as k,n as _,O as w,R as x,S as O,T as N,N as I,U as j,G as P,H as C}from"./index-M5qy_4Wm.js";import"./customSearch-sElyVGsZ.js";import"./drawerIcon-D6p8KgWU.js";const T={class:"d-flex mb-8"},U={key:0,style:{"font-size":"16px","font-weight":"bold",padding:"20px"}},Y=["href"],K=["href"],V={key:1},D=["href"],E=a({__name:"newDashboard",setup(a){const E=t(),R=l({year:E.currentYear,season:E.currentSeason,type:"notPaid"}),A=s(()=>{let e="";for(let[a,t]of Object.entries(E.seasonYears))t===+R.year&&(e=a);return e}),B=n([]),F=o(!1),H="https://us-central1-forged-7adb7.cloudfunctions.net";function L(){let e=R.season;const a=A.value;B.value=[],w(C("/venues"),t=>{let l=t.val();const s={};for(let[e,a]of Object.entries(l))"subscription"!==a.paymentMethod&&(s[e]=a);F.value=!0;let n=[];for(let o in s)n.push(new Promise((t,n)=>{w(x(I("/venues/".concat(o,"/event-list/league")),N("currentSeason"),O(a)),u=>{if(u.exists()){let r=u.val();for(let u in r)if("admin-test-test"!==o&&"watl"!==o){if(!r[u].slug){n(!1);continue}w(j("/venues/".concat(o,"/league/").concat(r[u].slug,"/").concat(a,"/").concat("Week5")),a=>{let n=a.exists(),c=l[o].company+" - "+l[o].city;r[u].seasonName===e&&((!r[u].paid&&"notPaid"===R.type||"all"===R.type)&&(n&&r[u].players>0?B.value.push({venueName:c,venueKey:o,slug:r[u].slug,title:r[u].title,due:n,paid:r[u].paid,players:r[u].players,customer:s[o].customer}):console.log("no players",o,r[u].slug)),n&&!r[u].paid&&P(I("/venues/"+o+"/event-list/league/"+u),{due:!0})),t(!0)},{onlyOnce:!0})}else n(!1)}else n(!1)},{onlyOnce:!0})}));Promise.allSettled(n).then(()=>{F.value=!1})},{onlyOnce:!0})}return u(()=>{}),(a,t)=>{const l=y("v-spacer"),s=y("v-btn"),n=y("v-table");return S(),r("div",null,[c(e,{title:"Dashboard","hide-search-input":""}),i("div",T,[c(p,{label:"Year",items:[{title:2024,value:2024},{title:2025,value:2025},{title:2026,value:2026}],value:R.year,onUpdatedSelectValue:t[0]||(t[0]=e=>R.year=e),class:"mr-3 filterSelector"},null,8,["value"]),c(p,{label:"Season",items:v(E).seasons,value:R.season,onUpdatedSelectValue:t[1]||(t[1]=e=>R.season=e),class:"mr-3 filterSelector"},null,8,["items","value"]),c(l),c(p,{label:"Type",items:[{title:"All",value:"all"},{title:"Not paid",value:"notPaid"}],value:R.type,onUpdatedSelectValue:t[2]||(t[2]=e=>R.type=e),class:"filterSelector"},null,8,["value"]),c(h,{onClick:L,class:"my-0"},{default:m(()=>[...t[3]||(t[3]=[f("check",-1)])]),_:1})]),F.value?(S(),r("div",U," Loading please wait... ")):d("",!0),c(n,{class:"listTable"},{default:m(()=>[t[7]||(t[7]=i("thead",null,[i("tr",null,[i("td",null,"№"),i("td",null,"venue"),i("td",null,"league"),i("td",null,"players"),i("td",null,"stripe"),i("td",null,"action")])],-1)),i("tbody",null,[(S(!0),r(g,null,b(B.value,(e,a)=>(S(),r("tr",null,[i("td",null,k(a+1),1),i("td",null,k(e.venueName),1),i("td",null,[i("a",{href:"https://axethrowing.org/"+e.venueKey+"/league/"+e.slug,target:"_blank"},k(e.title),9,Y)]),i("td",null,k(e.players),1),i("td",null,[e.customer?(S(),r("a",{key:0,href:"https://dashboard.stripe.com/customers/"+e.customer,target:"_blank"},"STRIPE",8,K)):d("",!0),e.customer?d("",!0):(S(),r("span",V,[t[4]||(t[4]=f("NO CUSTOMER (",-1)),i("a",{href:"".concat(v(H),"/locations/owner?venue=")+e.venueKey,target:"_blank"},"FIND",8,D),t[5]||(t[5]=f(")",-1))]))]),i("td",null,[e.customer&&!e.paid?(S(),_(s,{key:0,onClick:a=>{return t=e.venueKey,a.target.classList.add("hide"),void window.open("".concat(H,"/payments/generateInvoice?venue=").concat(t,"&season=").concat(A.value),"_blank");var t}},{default:m(()=>[...t[6]||(t[6]=[f("INVOICE",-1)])]),_:1},8,["onClick"])):d("",!0)])]))),256))])]),_:1})])}}},[["__scopeId","data-v-8325b358"]]);export{E as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.