PageSourceSearch

https://opensports.net/_next/static/chunks/pages/[aliasID]/admin/reports/leagues/invoices-91aad3ca358c9322.js

js opensports.net collected 2026-10-01 15:38:02 UTC 26,849 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="80bf659f-8a3b-5a76-b745-ea9692378288")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[61039,67018],{48861:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[aliasID]/admin/reports/leagues/invoices",function(){return t(35229)}])},35229:function(e,a,t){"use strict";t.r(a);var n=t(85893),o=t(67294),r=t(41664),l=t.n(r),i=t(11163),s=t(41484),u=t(93967),d=t.n(u),c=t(18446),m=t.n(c),g=t(56989),p=t(57297),f=t(57737),y=t(17387),v=t(71266),S=t(23526),D=t(17347),C=t(28924),I=t(65603),h=t(31469),b=t(33196),T=t(70722),N=t(24200),x=t(65428),A=t(77092),P=t(45232),M=t(92626),w=t(43764),L=t(62438),k=t(48452),F=t(11524),j=t(91138),q=t(10168),Z=t(80963),E=t(30642),G=t(1623),U=t(35648),R=t(67018),O=t(92444),_=t(6310),B=t(17196),J=t(16465),H=t.n(J),z=t(95335),V=t.n(z);let W="invoices";function K(e,a){return e.teamSeasonMemberID===a.teamSeasonMemberID}let Y=["group","report","common","groupReport","league"];a.default=(0,F.cA)((0,w.r)("Reports")(function(e){var a,t,r,u,c,w,F,J,z,Q,X,$,ee;let{t:ea}=(0,s.$G)(Y),et=(0,k.Qy)(e=>e.auth.user),en=(0,k.Qy)(a=>(0,B.P_)(a.groupDetail,e.aliasID)),eo=(0,i.useRouter)();function er(e){eo.push({query:{...eo.query,...e}},void 0,{shallow:!0,scroll:!1})}let{groupID:el,timeZone:ei,currency:es,aliasID:eu}=(0,U.K5)(en,e.aliasID),ed=(0,q.V)((0,o.useCallback)(async()=>{if(!e.groupID)return null;let[a,t]=await Promise.all([(0,_.rw)({groupID:e.groupID},et),(0,_.AQ)({groupID:e.groupID}
3,et)]),n=(0,_.g8)(t);return a.sort(n),{tags:a,tagGroups:t}},[e.groupID,et]),{enabled:!!e.groupID}),[ec]=(0,U.dC)(el,et),em=(0,o.useMemo)(()=>(0,U.i9)(eo.query.reportID),[eo.query.reportID]),eg=(0,q.V)((0,o.useCallback)(async()=>el&&em?await (0,U.RZ)({reportID:em},et):null,[el,em,et]),{enabled:!!el}),ep=null!==(F=null===(a=eg.data)||void 0===a?void 0:a.data.view)&&void 0!==F?F:"basic",ef=(0,o.useMemo)(()=>(0,U.jv)(eo.query.view,ep,["basic","dimensions"]),[eo.query.view,ep]),[ey,ev]=(0,o.useMemo)(()=>(0,R.vb)(ef,eg.data),[eg.data,ef]),eS=null==ey?void 0:ey.fields,eD=(0,o.useMemo)(()=>void 0===eo.query.fields&&eS?eS:(0,U.Vy)(eo.query.fields,R.UL,R.lI),[eS,eo.query.fields]),eC=null!==(J=null==ey?void 0:ey.summaryFields)&&void 0!==J?J:null==ev?void 0:ev.summaryFields,eI=(0,o.useMemo)(()=>void 0===eo.query.summaryFields&&eC?eC:(0,U.lo)(eo.query.summaryFields,R.Pr),[eC,eo.query.summaryFields]),eh=null!==(z=null==ey?void 0:ey.timeZone)&&void 0!==z?z:null==ev?void 0:ev.timeZone,eb=(0,o.useMemo)(()=>void 0===eo.query.timeZone&&eh?eh:(0,U.jv)(eo.query.timeZone,ei,(0,U.nl)()),[ei,eh,eo.query.timeZone]),eT=null==ey?void 0:ey.dateType,eN=(0,o.useMemo)(()=>void 0===eo.query.dateType&&eT?eT:(0,U.jv)(eo.query.dateType,"dateCreated",R.Ws),[eT,eo.query.dateType]),ex=null==ey?void 0:ey.filterMap.leagueSeasonTags,eA=(0,o.useMemo)(()=>void 0===eo.query.leagueSeasonTags&&ex?ex:(0,U.B9)(eo.query.leagueSeasonTags),[ex,eo.query.leagueSeasonTags]),eP=null==ey?void 0:ey.filterMap.leagueSeasonAccountingCodeID,eM=(0,o.useMemo)(()=>void 0===eo.query.leagueSeasonAccountingCodeID&&eP?eP:(0,U.B9)(eo.query.leagueSeasonAccountingCodeID),[eP,eo.query.leagueSeasonAccountingCodeID]),ew=null==ey?void 0:ey.filterMap.leagueSeasonID,eL=(0,o.useMemo)(()=>void 0===eo.query.leagueSeasonID&&ew?ew:(0,U.B9)(eo.query.leagueSeasonID),[ew,eo.query.leagueSeasonID]),ek=null==ey?void 0:ey.period,eF=(0,o.useMemo)(()=>{var e;return void 0===eo.query.period&&ek?ek:null!==(e=(0,U.B9)(eo.query.period))&&void 0!==e?e:{type:"last4w"}},[ek,eo.query.period]),ej=null==ey?void 0:ey.previousPeriod,eq=(0,o.useMemo)(()=>{var e;return void 0===eo.query.previousPeriod&&ej?ej:null!==(e=(0,U.B9)(eo.query.previousPeriod))&&void 0!==e?e:null},[ej,eo.query.previousPeriod]),eZ=null==ev?void 0:ev.rowDimensions,eE=(0,o.useMemo)(()=>void 0===eo.query.rowDimensions&&eZ?eZ:(0,U.B9)(eo.query.rowDimensions),[eZ,eo.query.rowDimensions]),eG=null==ev?void 0:ev.columnDimensions,eU=(0,o.useMemo)(()=>void 0===eo.query.columnDimensions&&eG?eG:(0,U.B9)(eo.query.columnDimensions),[eG,eo.query.columnDimensions]),eR=(0,o.useMemo)(()=>(0,U.jv)(eo.query.tableSortDirection,"asc",U.Wn),[eo.query.tableSortDirection]),eO=(0,o.useMemo)(()=>(0,U.jv)(eo.query.tableSortKey,"dateCreated",R.lI),[eo.query.tableSortKey]),e_=null==ey?void 0:ey.filter,eB=(0,o.useMemo)(()=>void 0===eo.query.filter&&e_?e_:(0,U.B9)(eo.query.filter),[e_,eo.query.filter]),eJ=null==ev?void 0:ev.filter,eH=(0,o.useMemo)(()=>void 0===eo.query.pivotTableFilter&&eJ?eJ:(0,U.B9)(eo.query.pivotTableFilter),[eJ,eo.query.pivotTableFilter]),ez=!!el&&(!em||!!eg.data),eV=(0,q.V)((0,o.useCallback)(async()=>{if(!el||"dimensions"===ef)return null;let e=(0,R.Rc)({leagueSeasonTags:eA,leagueSeasonAccountingCodeID:eM,leagueSeasonID:eL}),a=(0,R.Pj)(eN,eF,eb);return await (0,R.zk)({groupID:el,filter:(0,U.f5)([e,eB,a])},et)},[el,ef,eA,eM,eL,eN,eF,eb,eB,et]),{enabled:ez}),eW=(0,q.V)((0,o.useCallback)(async()=>{if(!el||!eq||!eg.receivedAt||"dimensions"===ef)return null;let e=(0,R.Rc)({leagueSeasonTags:eA,leagueSeasonAccountingCodeID:eM,leagueSeasonID:eL}),a=(0,R.lv)(eN,eF,eq,eb);return await (0,R.zk)({groupID:el,filter:(0,U.f5)([e,eB,a])},et)},[el,eq,eg.receivedAt,ef,eA,eM,eL,eN,eF,eb,eB,et]),{enabled:ez}),eK=(0,E.Z)((0,o.useCallback)(async()=>{if(!el||"dimensions"===ef)return[];let e=(0,R.Rc)({leagueSeasonTags:eA,leagueSeasonAccountingCodeID:eM,leagueSeasonID:eL}),a=(0,R.Pj)(eN,eF,eb);return await (0,R.cW)({limit:250,groupID:el,sortBy:eO,sortDirection:eR,filter:(0,U.f5)([e,eB,a])},et)},[el,ef,eA,eM,eL,eN,eF,eb,eO,eR,eB,et]),async e=>{if(!el)return[];let a=(0,U.Un)(e[eO]),t=(0,R.Rc)({leagueSeasonTags:eA,leagueSeasonAccountingCodeID:eM,leagueSeasonID:eL}),n=(0,R.Pj)(eN,eF,eb);return await (0,R.cW)({limit:250,groupID:el,sortBy:eO,sortDirection:eR,lastID:e.id,lastSortBy:a,filter:(0,U.f5)([t,eB,n])},et)},{limit:250,enabled:ez});async function eY(e){if(!el||!eu)return;let a=await (0,R.cW)({limit:5e4,groupID:el,sortBy:eO,sortDirection:eR,filter:e.filter},et),[t,n]=(0,U.Kx)(eF,eb);(0,j.EZ)({groupAliasID:eu,start:t.value,end:n.value,formattedReport:(0,j.WE)({columns:R.zR,transformedReport:(0,j.vX)(a,(0,R.rS)(ea,es,eb,!0)),hyperLinks:R.IJ}),csvName:W+"Report"})}let eQ=(0,o.useMemo)(()=>(0,R.JH)({dateType:eN,timeZone:eb,period:eF,previousPeriod:eq,summaryFields:eI,filter:eB,pivotTableFilter:eH,rowDimensions:eE,columnDimensions:eU,view:ef,fields:eD,leagueSeasonTags:eA,leagueSeasonAccountingCodeID:eM,leagueSeasonID:eL}),[eN,eb,eF,eq,eI,eB,eH,eE,eU,ef,eD,eA,eM,eL]),[eX,e$,e0,e1]=(0,G.Z)(K),e2=(0,o.useCallback)((e,a)=>{e$({teamSeasonMemberID:e.teamSeasonMemberID,leagueSeasonID:e.leagueSeasonID,userID:e.userID},a)},[e$]),{createChat:e9,viewAdminGroupSchemaResponse:e4}=(0,Z.N)({groupID:e.groupID,getUserID:e=>e.userID,getFirstName:Z.A.getFirstName,getLastName:Z.A.getLastName}),e6=[];e9&&e6.push({isPresent:!0,icon:e9.icon,onHoverTitle:e9.label,action:e9.onPress,button:e=>(0,n.jsx)("button",{className:"btn btn-xs btn-default",onClick:()=>e9.onPress(e),children:e9.label},"button-user-".concat(e.id))}),e4&&e6.push({isPresent:!1,icon:e4.icon,onHoverTitle:e4.label,action:e4.onPress,button:()=>null});let e5=p.LEAGUE_LIST.findIndex(e=>e.tab===W);if(-1===e5||!el||!eu)return null;let e8=(0,O.D)({title:"Reports: ".concat(p.LEAGUE_LIST[e5].title)}),e3=!!eg.data&&!1===m()(JSON.parse(JSON.stringify(eQ)),eg.data.data);return(0,n.jsxs)(n.Fragment,{children:[!!el&&eX.map((e,a)=>(0,n.jsx)(x.Z,{draggable:!0,zIndex:a+2e3,onFocus:()=>e1(e.item),mousePosition:e.mousePosition,xOffset:20,headerID:"league-popup-header-".concat(e.item.teamSeasonMemberID),children:(0,n.jsx)(L.Z,{teamSeasonMemberID:e.item.teamSeasonMemberID,teamSeasonMemberUserID:e.item.userID,groupID:el,leagueSeasonID:e.item.leagueSeasonID,t:ea,onCloseVie
3w:()=>e0(e.item),onRefresh:eg.reload})},e.item.teamSeasonMemberID)),(0,n.jsxs)("div",{className:H().reportsLeaguesContainerNew,children:[e8,(0,n.jsxs)("div",{className:"relative flex gap-10 items-center mx-4 mt-2",children:[(0,n.jsxs)("h4",{className:"flex gap-1",children:[(0,n.jsx)(l(),{href:"/".concat(eu,"/admin/reports"),children:"Reports"}),"/ Leagues & Tournaments"]}),(0,n.jsx)("div",{className:"overflow-auto",children:(0,n.jsx)(b.Z,{tabs:p.LEAGUE_LIST.map(e=>({tabKey:e.tab,href:"/".concat(eu,"/admin/reports/").concat(e.href),title:e.title,isSelected:e.tab===W}))})})]}),(0,n.jsxs)(h.Z,{title:null!==(Q=null===(t=eg.data)||void 0===t?void 0:t.title)&&void 0!==Q?Q:"All Invoices",description:null===(r=eg.data)||void 0===r?void 0:r.description,hasUnsavedChanges:e3,loading:eg.loading,children:["basic"===ef&&(0,n.jsx)(C.Z,{disabled:eK.loading||!eK.data,onClick:()=>eY({filter:(0,U.f5)([eB,(0,R.Rc)({leagueSeasonAccountingCodeID:eM,leagueSeasonTags:eA,leagueSeasonID:eL}),(0,R.Pj)(eN,eF,eb)])})}),"basic"===ef&&(0,n.jsx)(f.Z,{...(0,U.G4)({headerContent:R.zR,selectedValues:eD,lockedValues:R.E6}),onChange:e=>er({fields:e.map(e=>e.value)})})]}),"basic"===ef&&(0,n.jsx)(P.Z,{hasNotData:(null==eK?void 0:null===(u=eK.data)||void 0===u?void 0:u.length)===0,headerComponent:(0,n.jsxs)("div",{className:"ml-auto flex gap-2",children:[(0,n.jsx)(D.Z,{formOptions:ec,data:eM,triggerTitle:"Accounting Code",onChangeData:e=>er({leagueSeasonAccountingCodeID:(0,U.SG)(e)}),formPlaceholder:"Select ".concat(R.SH.leagueSeasonAccountingCodeID),formCommandEmptyMessage:"No ".concat(R.SH.leagueSeasonAccountingCodeID," Found"),formCommandPlaceholder:"Search ".concat(R.SH.leagueSeasonAccountingCodeID),formCanCreate:!1,formTitle:"Accounting Code"}),(0,n.jsx)(I.Z,{groupID:el,data:eL,triggerTitle:"League/Tournament",onChangeData:e=>er({leagueSeasonID:(0,U.SG)(e)}),formPlaceholder:"Select ".concat(R.SH.leagueSeasonID),formCommandEmptyMessage:"No ".concat(R.SH.leagueSeasonID," Found"),formCommandPlaceholder:"Search ".concat(R.SH.leagueSeasonID),formCanCreate:!1,formTitle:"League/Tournament"}),(0,n.jsx)(T.Z,{tags:null!==(X=null===(c=ed.data)||void 0===c?void 0:c.tags)&&void 0!==X?X:[],tagGroups:null!==($=null===(w=ed.data)||void 0===w?void 0:w.tagGroups)&&void 0!==$?$:[],selectedTagGroups:null!==(ee=null==eA?void 0:eA.values)&&void 0!==ee?ee:[],onSelect:e=>er({leagueSeasonTags:(0,U.SG)({values:e,mode:"tagGroups"})})}),(0,n.jsx)(y.ZP,{dateOptionTabs:[{label:R.VM.dateCreated,icon:(0,n.jsx)("i",{className:"fa fa-file-text-o"}),options:y.MK.default,dateType:"dateCreated"},{label:R.VM.leagueSeasonLeaguePlayStart,icon:(0,n.jsx)("i",{className:"fa fa-calendar-o"}),options:y.MK.default,dateType:"leagueSeasonLeaguePlayStart"}],dateType:eN,timeZone:eb,period:eF,onChange:e=>er({dateType:e.dateType,timeZone:e.timeZone,period:JSON.stringify(e.period),previousPeriod:e.previousPeriod?JSON.stringify(e.previousPeriod):void 0}),previousPeriod:null!=eq?eq:void 0,previousPeriodOptions:v.hv.default}),(0,n.jsx)(S.Z,{quickFilterMatchers:(0,U.GE)((0,U.f5)([(0,R.Rc)({leagueSeasonAccountingCodeID:eM,leagueSeasonTags:eA,leagueSeasonID:eL}),(0,R.Pj)(eN,eF,eb),(0,R.lv)(eN,eF,eq,eb)])),filterMatchers:(0,U.GE)(null!=eB?eB:null),onApply:e=>er({filter:JSON.stringify((0,U.Tq)(e))}),filterCategories:R.sS,FilterMatcherComponent:e=>{var a,t,n,o;let{matcher:r,onChange:l}=e;return(0,R.HT)({matcher:r,onChange:l,tags:null!==(n=null===(a=ed.data)||void 0===a?void 0:a.tags)&&void 0!==n?n:[],tagGroups:null!==(o=null===(t=ed.data)||void 0===t?void 0:t.tagGroups)&&void 0!==o?o:[],accountingCodes:ec,timeZone:eb,groupID:el})}})]})}),"basic"===ef&&(0,n.jsx)(N.Z,{summaries:(0,R.MX)(ea,es,eV.data,eW.data),loading:eV.loading||eW.loading,error:eV.error||eW.error,onReload:()=>{eV.reload(),eW.reload()}}),"basic"===ef&&(0,n.jsx)("div",{className:V().tableContainerWithSummaryNew,children:(0,n.jsx)(M.Z,{className:d()(V().content,V().border,"bg-white"),children:e=>{var a;let{scrollingRight:t}=e;return(0,n.jsx)("div",{className:H().reportsTable,children:(0,n.jsx)(A.Z,{content:{data:null!==(a=eK.data)&&void 0!==a?a:[],loading:eK.loading,reachedLast:eK.reachedLast,error:(0,g.prettifyErrorMessage)(ea,eK.error),onRefresh:eK.reload,onLoadMore:eK.onEndReached},columns:{active:eD,clickable:R.IJ,sticky:R.E6,onColumnHeaderClick:(e,a)=>{(0,U.jm)(e,a,eo)},nonSortable:R.Qe},headers:R.zR,sort:{key:eO,sortDirection:eR},row:{actions:e6,onSelect:e2},transformations:(0,R.rS)(ea,es,eb,!1),tooltips:{},isScrollingRight:t,dataTableKey:W})})}})})]})]})}))},65603:function(e,a,t){"use strict";t.d(a,{Z:function(){return u}});var n=t(85893),o=t(67294),r=t(93967),l=t.n(r),i=t(10980),s=t(51755);function u(e){let{iconClassName:a="fa fa-filter"}=e,[t,r]=(0,o.useState)(e.data),[u,d]=(0,o.useState)(!1),c=e.data&&e.data.values.length>0;function m(){e.onChangeData(t),d(!1)}
3return(0,n.jsxs)(i.J2,{open:u,onOpenChange:function(a){if(!a){m();return}r(e.data),d(a)},children:[(0,n.jsxs)(i.xo,{className:l()("btn btn-sm flex gap-2 items-center text-sm h-[38px]",c?"btn-primary text-[#FFF]":"btn-default text-[#666]"),children:[(0,n.jsx)("i",{className:a}),(0,n.jsx)("div",{className:"flex items-center gap-1",children:e.triggerTitle})]}),(0,n.jsxs)(i.yk,{style:{padding:0},className:"flex flex-col gap-2 w-[400px] text-inherit",children:[(0,n.jsx)("div",{className:"flex flex-col gap-2 p-3",children:(0,n.jsx)("div",{className:"flex flex-col items-stretch gap-2",children:(0,n.jsx)(s.Z,{data:t,onChangeData:r,title:e.formTitle,placeholder:e.formPlaceholder,commandPlaceholder:e.formCommandPlaceholder,commandEmptyMessage:e.formCommandEmptyMessage,canCreate:e.formCanCreate,groupID:e.groupID})})}),(0,n.jsxs)("div",{className:"flex items-center justify-between p-2 mt-2",style:{borderTop:"1px solid #ddd"},children:[(0,n.jsx)("button",{className:"btn btn-default btn-xs text-sm px-2 py-1",onClick:function(){d(!1)},children:"Cancel"}),(0,n.jsx)("button",{className:"btn btn-primary btn-xs text-sm px-2 py-1",onClick:m,children:"Apply"})]})]})]})}},67018:function(e,a,t){"use strict";t.d(a,{E6:function(){return N},HT:function(){return U},IJ:function(){return x},JH:function(){return C},MX:function(){return F},Pj:function(){return Z},Pr:function(){return A},Qe:function(){return h},Rc:function(){return j},SH:function(){return q},UL:function(){return T},VM:function(){return S},Ws:function(){return v},cW:function(){return M},lI:function(){return I},lv:function(){return E},mw:function(){return w},rS:function(){return P},sS:function(){return G},t$:function(){return k},vb:function(){return D},zR:function(){return b},zk:function(){return L}});var n,o,r=t(85893);t(67294);var l=t(88835),i=t(56989),s=t(91138),u=t(22294),d=t(35648),c=t(87251),m=t(83041),g=t(51755),p=t(13774),f=t(7890);let y=new l.ApiClient,v=["dateCreated","leagueSeasonLeaguePlayStart"],S={dateCreated:"Date Created",leagueSeasonLeaguePlayStart:"Match Start Date"};function D(e,a){return a&&"invoices"===a.data.type?"basic"===a.data.view&&"basic"===e?[a.data,null]:"dimensions"===a.data.view&&"dimensions"===e?[null,a.data]:[null,null]:[null,null]}function C(e){var a,t,n,o;return"basic"===e.view?{view:"basic",period:e.period,previousPeriod:e.previousPeriod,type:"invoices",dateType:e.dateType,filter:null!==(a=e.filter)&&void 0!==a?a:null,fields:e.fields,summaryFields:e.summaryFields,timeZone:e.timeZone,filterMap:{leagueSeasonTags:e.leagueSeasonTags,leagueSeasonAccountingCodeID:e.leagueSeasonAccountingCodeID,leagueSeasonID:e.leagueSeasonID}}:{view:"dimensions",type:"invoices",rowDimensions:null!==(t=e.rowDimensions)&&void 0!==t?t:[],columnDimensions:null!==(n=e.columnDimensions)&&void 0!==n?n:[],filter:null!==(o=e.pivotTableFilter)&&void 0!==o?o:null,summaryFields:e.summaryFields,timeZone:e.timeZone}}let I=["dateCreated","dateModified","status","firstName","lastName","email","creatorUserFirstName","creatorUserLastName","youthFirstName","youthLastName","amountInCents","leagueSeasonTitle","teamSeasonName","isTournament","isForTeamCost","isAdmin","reason","notes","userID","accountingCode","leagueSeasonTags","leagueSeasonLeaguePlayStart","leagueSeasonLeaguePlayEnd"],h=["userID","notes","leagueSeasonTags"],b=[{key:"dateCreated",label:"Date Created",align:"left"},{key:"dateModified",label:"Date Modified",align:"left"},{key:"status",label:"Status",align:"left"},{key:"firstName",label:"First Name",align:"left"},{key:"lastName",label:"Last Name",align:"left"},{key:"email",label:"Email",align:"left"},{key:"creatorUserFirstName",label:"Creator First Name",align:"left"},{key:"creatorUserLastName",label:"Creator Last Name",align:"left"},{key:"youthFirstName",label:"Youth First Name",align:"left"},{key:"youthLastName",label:"Youth Last Name",align:"left"},{key:"amountInCents",label:"Amount",align:"right"},{key:"leagueSeasonTitle",label:"League/Tournament Title",align:"left"},{key:"teamSeasonName",label:"Team",align:"left"},{key:"isTournament",label:"League/Tournament Type",align:"left"},{key:"isForTeamCost",label:"For Team Cost",align:"left"},{key:"isAdmin",label:"Issued by Admin",align:"left"},{key:"reason",label:"Reason",align:"left"},{key:"notes",label:"Notes",align:"left"},{key:"userID",label:"User ID",align:"left"},{key:"accountingCode",label:"League/Tournament Accounting Code",align:"left"},{key:"leagueSeasonTags",label:"League/Tournament Tags",align:"left"},{key:"leagueSeasonLeaguePlayStart",label:"League/Tournament Match Start Date",align:"left"},{key:"leagueSeasonLeaguePlayEnd",label:"League/Tournament Match End Date",align:"left"}].map(e=>{switch(e.key){case"dateCreated":return{...e,ratio:140};case"teamSeasonName":return{...e,ratio:200}}return{...e,ratio:(0,u.Ef)(e.label)}}),T=["dateCreated","dateModified","status","firstName","lastName","email","youthFirstName","youthLastName","creatorUserFirstName","creatorUserLastName","amountInCents","leagueSeasonTitle","teamSeasonName","isTournament","isForTeamCost","isAdmin","reason","leagueSeasonTags"],N=["dateCreated","firstName"],x=[{key:"leagueSeasonTitle",href:e=>"/leagues/".concat(e.leagueSeasonID,"/admin/home")},{key:"creatorUserFirstName",href:e=>"/users/".concat(e.creatorUserID)},{key:"creatorUserLastName",href:e=>"/users/".concat(e.creatorUserID)}],A=["count","pendingCount","pendingAmountInCents","paidCount","paidAmountInCents","cancelledCount","cancelledAmountInCents","distinctUserCount"];function P(e,a,t,n){let o=n?u.K_:"MMM DD YYYY, LT";return{dateCreated:e=>(0,s.Mu)(e.dateCreated,t,o),dateModified:e=>(0,s.Mu)(e.dateModified,t,o),status:a=>(0,i.prettifyInvoiceStatus)(e,a.status),firstName:e=>{var a;return null!==(a=e.firstName)&&void 0!==a?a:" "},lastName:e=>{var a;return null!==(a=e.lastName)&&void 0!==a?a:" "},email:e=>{var a;return null!==(a=e.email)&&void 0!==a?a:" "},creatorUserFirstName:e=>{var a;return null!==(a=e.creatorUserFirstName)&&void 0!==a?a:" "},creatorUserLastName:e=>{var a;return null!==(a=e.creatorUserLastName)&&void 0!==a?a:" "},youthFirstName:e=>{var a;return null!==(a=e.youthFirstName)&&void 0!==a?a:" "},youthLastName:e=>{var a;return null!==(a=e.youthLastName)&&void 0!==a?a:" "},amountInCents:t=>(0,d.zF)(e,t.amountInCents,a),isForTeamCost:e=>e.isForTeamCost?"Yes":"No",isTournament:e=>e.isTournament?"Tournament":"League",isAdmin:e=>e.isAdmin?"Yes":"No",leagueSeasonTags:e=>{var a;return(null===(a=e.leagueSeasonTags)||void 0===a?void 0:a.join(", "))||" "},leagueSeasonLeaguePlayStart:e=>(0,s.Mu)(e.leagueSeasonLeaguePlayStart,t,o),leagueSeasonLeaguePlayEnd:e=>(0,s.Mu)(e.leagueSeasonLeaguePlayEnd,t,o)}}async function M(e,a){return await y.get("leagues/admin/reports/invoices/list",{params:{...e,filter:e.filter?JSON.stringify(e.filter):void 0},timeout:12e4},a)}async function w(e,a){return await y.get("leagues/admin/reports/invoices/list",{params:{...e,filter:e.filter?JSON.stringify(e.filter):void 0},timeout:12e4},a)}async function L(e,a){return await y.get("leagues/admin/reports/invoices/listSummary",{params:{...e,filter:e.filter?JSON.stringify(e.filter):void 0},timeout:12e4},a)}async function k(e,a){return await y.get("leagues/admin/reports/invoices/listSummary",{params:{...e,filter:e.filter?JSON.stringify(e.filter):void 0},timeout:12e4},a)}function F(e,a,t,n){return[{primaryData:[(0,c.Bo)("# Invoices",null==t?void 0:t.count,null==n?void 0:n.count,!1)]},{primaryData:[(0,c.E_)("Paid Amount",null==t?void 0:t.paidAmountInCents,null==n?void 0:n.paidAmountInCents,!1,a,e),(0,c.Bo)("# Paid Invoices",null==t?void 0:t.paidCount,null==n?void 0:n.paidCount,!1)]}
3,{primaryData:[(0,c.E_)("Pending Amount",null==t?void 0:t.pendingAmountInCents,null==n?void 0:n.pendingAmountInCents,!0,a,e),(0,c.Bo)("# Pending Invoices",null==t?void 0:t.pendingCount,null==n?void 0:n.pendingCount,!0)]},{primaryData:[(0,c.E_)("Cancelled Amount",null==t?void 0:t.cancelledAmountInCents,null==n?void 0:n.cancelledAmountInCents,!0,a,e),(0,c.Bo)("# Cancelled Invoices",null==t?void 0:t.cancelledCount,null==n?void 0:n.cancelledCount,!0)]},{primaryData:[(0,c.Bo)(d.SP.distinctUserCount,null==t?void 0:t.distinctUserCount,null==n?void 0:n.distinctUserCount,!1)]}]}function j(e){let a=[];return e.leagueSeasonTags&&a.push({type:"matcher",matcher:{type:"leagueSeasonTags",data:e.leagueSeasonTags}}),e.leagueSeasonAccountingCodeID&&a.push({type:"matcher",matcher:{type:"leagueSeasonAccountingCodeID",data:e.leagueSeasonAccountingCodeID}}),e.leagueSeasonID&&a.push({type:"matcher",matcher:{type:"leagueSeasonID",data:e.leagueSeasonID}}),{type:"group",combiner:"AND",filters:a}}d.SP.distinctUserCount,(n=o||(o={}))[n.Pending=200]="Pending",n[n.Paid=1e3]="Paid",n[n.Deleted=410]="Deleted",n[n.Cancelled=500]="Cancelled";let q={dateCreated:S.dateCreated,leagueSeasonLeaguePlayStart:S.leagueSeasonLeaguePlayStart,leagueSeasonID:"League/Tournament",leagueSeasonAccountingCodeID:"League/Tournament Accounting Code",leagueSeasonTags:"Tags",rules:"Member Rule"};function Z(e,a,t){if("allTime"===a.type)return{type:"group",combiner:"AND",filters:[]};let[n,o]=(0,d.Kx)(a,t);return{type:"group",combiner:"AND",filters:[{type:"matcher",matcher:{type:e,data:n}},{type:"matcher",matcher:{type:e,data:o}}]}}function E(e,a,t,n){let o=(0,d.og)(a,t,n);if(!o)return;let[r,l]=o;return{type:"group",combiner:"AND",filters:[{type:"matcher",matcher:{type:e,data:r}},{type:"matcher",matcher:{type:e,data:l}}]}}let G=[{label:"Invoice Filters",filters:[{value:"dateCreated",label:q.dateCreated,matcher:{type:"dateCreated",data:m.zT}}]},{label:"League/Tournament Filters",filters:[{value:"leagueSeasonLeaguePlayStart",label:q.leagueSeasonLeaguePlayStart,matcher:{type:"leagueSeasonLeaguePlayStart",data:m.zT}},{value:"leagueSeasonID",label:q.leagueSeasonID,matcher:{type:"leagueSeasonID",data:{values:[]}}},{value:"leagueSeasonTags",label:q.leagueSeasonTags,matcher:{type:"leagueSeasonTags",data:{values:[],mode:"tagGroups"}}},{value:"leagueSeasonAccountingCodeID",label:q.leagueSeasonAccountingCodeID,matcher:{type:"leagueSeasonAccountingCodeID",data:{values:[]}}}]}];function U(e){let{matcher:a,onChange:t,accountingCodes:n}=e;if(!(null==a?void 0:a.type))return{Component:(0,r.jsx)(r.Fragment,{}),label:""};switch(a.type){case"dateCreated":return{label:(0,m.pW)(q.dateCreated,a.data,e.timeZone),Component:(0,r.jsx)(m.ZP,{data:a.data,onChangeData:e=>t({type:a.type,data:e})})};case"leagueSeasonLeaguePlayStart":return{label:(0,m.pW)(q.leagueSeasonLeaguePlayStart,a.data,e.timeZone),Component:(0,r.jsx)(m.ZP,{data:a.data,onChangeData:e=>t({type:a.type,data:e})})};case"leagueSeasonID":return{label:(0,g.z)(q.leagueSeasonID,a.data),Component:(0,r.jsx)(g.Z,{groupID:e.groupID,data:a.data,onChangeData:e=>t({type:a.type,data:e}),placeholder:"Select ".concat(q.leagueSeasonID),commandEmptyMessage:"No ".concat(q.leagueSeasonID," Found"),commandPlaceholder:"Search ".concat(q.leagueSeasonID),canCreate:!1,title:void 0})};case"leagueSeasonTags":return{label:(0,p.u)(q.leagueSeasonTags,a.data),Component:(0,r.jsx)(p.Z,{tags:e.tags,tagGroups:e.tagGroups,data:a.data,onChangeData:e=>t({type:a.type,data:e})})};case"leagueSeasonAccountingCodeID":return{label:(0,f.V)(q.leagueSeasonAccountingCodeID,a.data,n),Component:(0,r.jsx)(f.Z,{options:n,data:a.data,onChangeData:e=>t({type:a.type,data:e}),placeholder:"Select ".concat(q.leagueSeasonAccountingCodeID),commandEmptyMessage:"No ".concat(q.leagueSeasonAccountingCodeID," Found"),commandPlaceholder:"Search ".concat(q.leagueSeasonAccountingCodeID),canCreate:!0,title:void 0})};case"leagueSeasonTags":return{label:(0,p.u)(q.leagueSeasonTags,a.data),Component:(0,r.jsx)(p.Z,{tags:e.tags,tagGroups:e.tagGroups,data:a.data,onChangeData:e=>t({type:a.type,data:e})})};case"rules":return{label:"",Component:(0,r.jsx)(r.Fragment,{})}}}},6310:function(e,a,t){"use strict";t.d(a,{AQ:function(){return d},F2:function(){return f},Fy:function(){return y},Tw:function(){return r},YY:function(){return c},aE:function(){return m},bN:function(){return o},bx:function(){return p},c9:function(){return g},g8:function(){return S},pE:function(){return v},rw:function(){return u},tc:function(){return s},uW:function(){return l},vl:function(){return i}});let n=new(t(88835)).ApiClient;async function o(e,a){return await n.post("tags/insert",{data:e,keepAllFields:!0},a)}async function r(e,a){return await n.post("tags/updateBulk",{data:e,keepAllFields:!0},a)}async function l(e,a){return await n.post("tags/update",{data:e,keepAllFields:!0},a)}async function i(e,a){return await n.post("tags/update",{data:e,keepAllFields:!0},a)}async function s(e,a){return await n.post("tags/remove",{data:e},a)}async function u(e,a){return await n.get("tags/list",{params:e},a)}async function d(e,a){return await n.get("tagGroups/list",{params:e},a)}async function c(e,a){return await n.post("tagGroups/insert",{data:e,keepAllFields:!0},a)}async function m(e,a){return await n.post("tagGroups/update",{data:e,keepAllFields:!0},a)}async function g(e,a){return await n.post("tagGroups/update",{data:e,keepAllFields:!0},a)}async function p(e,a){return await n.post("tagGroups/remove",{data:e},a)}async function f(e,a){return await n.post("tagGroups/reorderTags",{data:e},a)}async function y(e,a){return await n.post("tags/merge",{data:{groupID:e.groupID,tagIDs:e.tagIDs,text:e.text,tagGroupID:e.tagGroupID,color:null},keepAllFields:!0},a)}function v(e,a){return null===e.sortOrder&&null===a.sortOrder?e.id.localeCompare(a.id):null===e.sortOrder?1:null===a.sortOrder?-1:e.sortOrder-a.sortOrder}function S(e){let a=new Map(e.map((e,a)=>[e.id,a]));return(e,t)=>{var n,o;return null===e.tagGroupID&&null===t.tagGroupID?e.text.localeCompare(t.text):null===e.tagGroupID?-1:null===t.tagGroupID?1:(null!==(n=a.get(e.tagGroupID))&&void 0!==n?n:-1)-(null!==(o=a.get(t.tagGroupID))&&void 0!==o?o:-1)||v(e,t)}}}},function(e){e.O(0,[87536,96825,55951,85872,61284,27057,41160,29195,43764,91138,89674,35648,92796,94202,45232,43249,57737,77452,85219,99576,72731,92363,29161,94369,92888,49774,40179],function(){return e(e.s=48861)}),_N_E=e.O()}]);
4//# sourceMappingURL=invoices-91aad3ca358c9322.js.map
5//# debugId=80bf659f-8a3b-5a76-b745-ea9692378288

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.