PageSourceSearch

https://opensports.net/_next/static/chunks/pages/[aliasID]/admin/r…/leagueSeasonWaitlist-d70576ec91054448.js

js opensports.net collected 2026-09-24 12:19:21 UTC 15,469 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]="0c37b110-bb3e-526d-8999-a278ee5af8a6")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[26692],{10747:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[aliasID]/admin/reports/leagues/leagueSeasonWaitlist",function(){return a(14477)}])},14477:function(e,t,a){"use strict";a.r(t);var n=a(85893),r=a(67294),o=a(41664),l=a.n(o),i=a(11163),s=a(41484),u=a(93967),d=a.n(u),c=a(18446),p=a.n(c),m=a(56989),g=a(57297),f=a(57737),v=a(17387),y=a(71266),h=a(23526),x=a(17347),D=a(28924),b=a(65603),I=a(31469),S=a(33196),C=a(70722),q=a(24200),j=a(77092),w=a(45232),N=a(92626),T=a(43764),M=a(48452),P=a(11524),A=a(91138),k=a(10168),G=a(80963),F=a(30642),Z=a(35648),E=a(12618),R=a(92444),L=a(6310),O=a(17196),_=a(16465),H=a.n(_),W=a(95335),B=a.n(W);let J="leagueSeasonWaitlist";t.default=(0,P.cA)((0,T.r)("Reports")(function(e){var t,a,o,u,c,T,P,_,W,V,K,U,z;let{t:Q}=(0,s.$G)(["group","report","common","groupReport","league"]),X=(0,M.Qy)(e=>e.auth.user),Y=(0,M.Qy)(t=>(0,O.P_)(t.groupDetail,e.aliasID)),$=(0,i.useRouter)();function ee(e){$.push({query:{...$.query,...e}},void 0,{shallow:!0,scroll:!1})}let{groupID:et,timeZone:ea,currency:en,aliasID:er}=(0,Z.K5)(Y,e.aliasID),[eo]=(0,Z.dC)(et,X),el=(0,r.useMemo)(()=>(0,Z.i9)($.query.reportID),[$.query.reportID]),ei=(0,k.V)((0,r.useCallback)(async()=>{if(!e.groupID)return null;let[t,a]=await Promise.all([(0,L.rw)({groupID:e.groupID},X),(0,L.AQ)({groupID:e.groupID},X)]),n=(0,L.g8)(a);return t.sort(n),{tags:t,tagGroups:a}},[e.groupID,X]),{enabled:!!e.groupID}),es=(0,k.V)((0,r.useCallback)(async()=>et&&el?await (0,Z.RZ)({reportID:el},X):null,[et,el,X]),{enabled:!!et}),eu=null!==(P=null===(t=es.data)||void 0===t?void 0:t.data.view)&&void 0!==P?P:"basic",ed=(0,r.useMemo)(()=>(0,Z.jv)($.query.view,eu,["basic","dimensions"]),[$.query.view,eu]),[ec,ep]=(0,r.useMemo)(()=>(0,E.vb)(ed,es.data),[es.data,ed]),em=null==ec?void 0:ec.fields,eg=(0,r.useMemo)(()=>void 0===$.query.fields&&em?em:(0,Z.Vy)($.query.fields,E.UL,E.lI),[em,$.query.fields]),ef=null!==(_=null==ec?void 0:ec.summaryFields)&&void 0!==_?_:null==ep?void 0:ep.summaryFields,ev=(0,r.useMemo)(()=>void 0===$.query.summaryFields&&ef?ef:(0,Z.lo)($.query.summaryFields,E.Pr),[ef,$.query.summaryFields]),ey=null!==(W=null==ec?void 0:ec.timeZone)&&void 0!==W?W:null==ep?void 0:ep.timeZone,eh=(0,r.useMemo)(()=>void 0===$.query.timeZone&&ey?ey:(0,Z.jv)($.query.timeZone,ea,(0,Z.nl)()),[ea,ey,$.query.timeZone]),ex=null==ec?void 0:ec.dateType,eD=(0,r.useMemo)(()=>void 0===$.query.dateType&&ex?ex:(0,Z.jv)($.query.dateType,"dateCreated",E.Ws),[ex,$.query.dateType]),eb=null==ec?void 0:ec.filterMap.leagueSeasonTags,eI=(0,r.useMemo)(()=>void 0===$.query.leagueSeasonTags&&eb?eb:(0,Z.B9)($.query.leagueSeasonTags),[eb,$.query.leagueSeasonTags]),eS=null==ec?void 0:ec.filterMap.leagueSeasonAccountingCodeID,eC=(0,r.useMemo)(()=>void 0===$.query.leagueSeasonAccountingCodeID&&eS?eS:(0,Z.B9)($.query.leagueSeasonAccountingCodeID),[eS,$.query.leagueSeasonAccountingCodeID]),eq=null==ec?void 0:ec.filterMap.leagueSeasonID,ej=(0,r.useMemo)(()=>void 0===$.query.leagueSeasonID&&eq?eq:(0,Z.B9)($.query.leagueSeasonID),[eq,$.query.leagueSeasonID]),ew=null==ec?void 0:ec.period,eN=(0,r.useMemo)(()=>{var e;return void 0===$.query.period&&ew?ew:null!==(e=(0,Z.B9)($.query.period))&&void 0!==e?e:{type:"last4w"}},[ew,$.query.period]),eT=null==ec?void 0:ec.previousPeriod,eM=(0,r.useMemo)(()=>{var e;return void 0===$.query.previousPeriod&&eT?eT:null!==(e=(0,Z.B9)($.query.previousPeriod))&&void 0!==e?e:null},[eT,$.query.previousPeriod]),eP=null==ep?void 0:ep.rowDimensions,eA=(0,r.useMemo)(()=>void 0===$.query.rowDimensions&&eP?eP:(0,Z.B9)($.query.rowDimensions),[eP,$.query.rowDimensions]),ek=null==ep?void 0:ep.columnDimensions,eG=(0,r.useMemo)(()=>void 0===$.query.columnDimensions&&ek?ek:(0,Z.B9)($.query.columnDimensions),[ek,$.query.columnDimensions]),eF=(0,r.useMemo)(()=>(0,Z.jv)($.query.tableSortDirection,"asc",Z.Wn),[$.query.tableSortDirection]),eZ=(0,r.useMemo)(()=>(0,Z.jv)($.query.tableSortKey,"dateCreated",E.lI),[$.query.tableSortKey]),eE=null==ec?void 0:ec.filter,eR=(0,r.useMemo)(()=>void 0===$.query.filter&&eE?eE:(0,Z.B9)($.query.filter),[eE,$.query.filter]),eL=null==ep?void 0:ep.filter,eO=(0,r.useMemo)(()=>void 0===$.query.pivotTableFilter&&eL?eL:(0,Z.B9)($.query.pivotTableFilter),[eL,$.query.pivotTableFilter]),e_=!!et&&(!el||!!es.data),{createChat:eH,viewAdminGroupSchemaResponse:eW}=(0,G.N)({groupID:e.groupID,getUserID:e=>e.userID,getFirstName:G.A.getFirstName,getLastName:G.A.getLastName}),eB=[];eH&&eB.push({isPresent:!0,icon:eH.icon,onHoverTitle:eH.label,action:eH.onPress,button:e=>(0,n.jsx)("button",{className:"btn btn-xs btn-default",onClick:()=>eH.onPress(e),children:eH.label},"button-user-".concat(e.id))}),eW&&eB.push({isPresent:!1,icon:eW.icon,onHoverTitle:eW.label,action:eW.onPress,button:()=>null});let eJ=(0,k.V)((0,r.useCallback)(async()=>
3{if(!et||"dimensions"===ed)return null;let e=(0,E.Rc)({leagueSeasonTags:eI,leagueSeasonAccountingCodeID:eC,leagueSeasonID:ej}),t=(0,E.Pj)(eD,eN,eh);return await (0,E.zk)({groupID:et,filter:(0,Z.f5)([e,eR,t])},X)},[et,ed,eI,eC,ej,eD,eN,eh,eR,X]),{enabled:e_}),eV=(0,k.V)((0,r.useCallback)(async()=>{if(!et||!eM||!es.receivedAt||"dimensions"===ed)return null;let e=(0,E.Rc)({leagueSeasonTags:eI,leagueSeasonAccountingCodeID:eC,leagueSeasonID:ej}),t=(0,E.lv)(eD,eN,eM,eh);return await (0,E.zk)({groupID:et,filter:(0,Z.f5)([e,eR,t])},X)},[et,eM,es.receivedAt,ed,eI,eC,ej,eD,eN,eh,eR,X]),{enabled:e_}),eK=(0,F.Z)((0,r.useCallback)(async()=>{if(!et||"dimensions"===ed)return[];let e=(0,E.Rc)({leagueSeasonTags:eI,leagueSeasonAccountingCodeID:eC,leagueSeasonID:ej}),t=(0,E.Pj)(eD,eN,eh);return await (0,E.cW)({limit:250,groupID:et,sortBy:eZ,sortDirection:eF,filter:(0,Z.f5)([e,eR,t])},X)},[et,ed,eI,eC,ej,eD,eN,eh,eZ,eF,eR,X]),async e=>{if(!et)return[];let t=(0,Z.Un)(e[eZ]),a=(0,E.Rc)({leagueSeasonTags:eI,leagueSeasonAccountingCodeID:eC,leagueSeasonID:ej}),n=(0,E.Pj)(eD,eN,eh);return await (0,E.cW)({limit:250,groupID:et,sortBy:eZ,sortDirection:eF,lastID:e.id,lastSortBy:t,filter:(0,Z.f5)([a,eR,n])},X)},{limit:250,enabled:e_});async function eU(e){if(!et||!er)return;let t=await (0,E.cW)({limit:5e4,groupID:et,sortBy:eZ,sortDirection:eF,filter:e.filter},X),[a,n]=(0,Z.Kx)(eN,eh);(0,A.EZ)({groupAliasID:er,start:a.value,end:n.value,formattedReport:(0,A.WE)({columns:E.zR,transformedReport:(0,A.vX)(t,(0,E.rS)(Q,en,eh,!0)),hyperLinks:E.IJ}),csvName:J+"Report"})}let ez=(0,r.useMemo)(()=>(0,E.JH)({dateType:eD,timeZone:eh,period:eN,previousPeriod:eM,summaryFields:ev,filter:eR,pivotTableFilter:eO,rowDimensions:eA,columnDimensions:eG,view:ed,fields:eg,leagueSeasonTags:eI,leagueSeasonAccountingCodeID:eC,leagueSeasonID:ej}),[eD,eh,eN,eM,ev,eR,eO,eA,eG,ed,eg,eI,eC,ej]),eQ=g.LEAGUE_LIST.findIndex(e=>e.tab===J);if(-1===eQ||!et||!er)return null;let eX=(0,R.D)({title:"Reports: ".concat(g.LEAGUE_LIST[eQ].title)}),eY=!!es.data&&!1===p()(JSON.parse(JSON.stringify(ez)),es.data.data);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:H().reportsLeaguesContainerNew,children:[eX,(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(er,"/admin/reports"),children:"Reports"}),"/ Leagues & Tournaments"]}),(0,n.jsx)("div",{className:"overflow-auto",children:(0,n.jsx)(S.Z,{tabs:g.LEAGUE_LIST.map(e=>({tabKey:e.tab,href:"/".concat(er,"/admin/reports/").concat(e.href),title:e.title,isSelected:e.tab===J}))})})]}),(0,n.jsxs)(I.Z,{title:null!==(V=null===(a=es.data)||void 0===a?void 0:a.title)&&void 0!==V?V:"All Waitlists",description:null===(o=es.data)||void 0===o?void 0:o.description,hasUnsavedChanges:eY,loading:es.loading,children:["basic"===ed&&(0,n.jsx)(D.Z,{disabled:eK.loading||!eK.data,onClick:()=>eU({filter:(0,Z.f5)([eR,(0,E.Rc)({leagueSeasonAccountingCodeID:eC,leagueSeasonTags:eI,leagueSeasonID:ej}),(0,E.Pj)(eD,eN,eh)])})}),"basic"===ed&&(0,n.jsx)(f.Z,{...(0,Z.G4)({headerContent:E.zR,selectedValues:eg,lockedValues:E.E6}),onChange:e=>ee({fields:e.map(e=>e.value)})})]}),"basic"===ed&&(0,n.jsx)(w.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)(x.Z,{formOptions:eo,data:eC,triggerTitle:"Accounting Code",onChangeData:e=>ee({leagueSeasonAccountingCodeID:(0,Z.SG)(e)}),formPlaceholder:"Select ".concat(E.SH.leagueSeasonAccountingCodeID),formCommandEmptyMessage:"No ".concat(E.SH.leagueSeasonAccountingCodeID," Found"),formCommandPlaceholder:"Search ".concat(E.SH.leagueSeasonAccountingCodeID),formCanCreate:!1,formTitle:"Accounting Code"}),(0,n.jsx)(b.Z,{groupID:et,data:ej,triggerTitle:"League/Tournament",onChangeData:e=>ee({leagueSeasonID:(0,Z.SG)(e)}),formPlaceholder:"Select ".concat(E.SH.leagueSeasonID),formCommandEmptyMessage:"No ".concat(E.SH.leagueSeasonID," Found"),formCommandPlaceholder:"Search ".concat(E.SH.leagueSeasonID),formCanCreate:!1,formTitle:"League/Tournament"}),(0,n.jsx)(C.Z,{tags:null!==(K=null===(c=ei.data)||void 0===c?void 0:c.tags)&&void 0!==K?K:[],tagGroups:null!==(U=null===(T=ei.data)||void 0===T?void 0:T.tagGroups)&&void 0!==U?U:[],selectedTagGroups:null!==(z=null==eI?void 0:eI.values)&&void 0!==z?z:[],onSelect:e=>ee({leagueSeasonTags:(0,Z.SG)({values:e,mode:"tagGroups"})})}),(0,n.jsx)(v.ZP,{dateOptionTabs:[{label:E.VM.dateCreated,icon:(0,n.jsx)("i",{className:"fa fa-file-text-o"}),options:v.MK.default,dateType:"dateCreated"},{label:E.VM.leagueSeasonLeaguePlayStart,icon:(0,n.jsx)("i",{className:"fa fa-calendar-o"}),options:v.MK.default,dateType:"leagueSeasonLeaguePlayStart"}],dateType:eD,timeZone:eh,period:eN,onChange:e=>ee({dateType:e.dateType,timeZone:e.timeZone,period:JSON.stringify(e.period),previousPeriod:e.previousPeriod?JSON.stringify(e.previousPeriod):void 0}),previousPeriod:null!=eM?eM:void 0,previousPeriodOptions:y.hv.default}),(0,n.jsx)(h.Z,{quickFilterMatchers:(0,Z.GE)((0,Z.f5)([(0,E.Rc)({leagueSeasonAccountingCodeID:eC,leagueSeasonTags:eI,leagueSeasonID:ej}),(0,E.Pj)(eD,eN,eh),(0,E.lv)(eD,eN,eM,eh)])),filterMatchers:(0,Z.GE)(null!=eR?eR:null),onApply:e=>ee({filter:JSON.stringify((0,Z.Tq)(e))}),filterCategories:E.sS,FilterMatcherComponent:e=>{var t,a,n,r;let{matcher:o,onChange:l}=e;return(0,E.HT)({matcher:o,onChange:l,tags:null!==(n=null===(t=ei.data)||void 0===t?void 0:t.tags)&&void 0!==n?n:[],tagGroups:null!==(r=null===(a=ei.data)||void 0===a?void 0:a.tagGroups)&&void 0!==r?r:[],accountingCodes:eo,timeZone:eh,groupID:et})}})]})}),"basic"===ed&&(0,n.jsx)(q.Z,{summaries:(0,E.MX)(eJ.data,eV.data),loading:eJ.loading||eV.loading,error:eJ.error||eV.error,onReload:()=>{eJ.reload(),eV.reload()}}),"basic"===ed&&(0,n.jsx)("div",{className:B().tableContainerWithSummaryNew,children:(0,n.jsx)(N.Z,{className:d()(B().content,B().border,"bg-white"),children:e=>{var t;let{scrollingRight:a}=e;return(0,n.jsx)("div",{className:H().reportsTable,children:(0,n.jsx)(j.Z,{content:{data:null!==(t=eK.data)&&void 0!==t?t:[],loading:eK.loading,reachedLast:eK.reachedLast,error:(0,m.prettifyErrorMessage)(Q,eK.error),onRefresh:eK.reload,onLoadMore:eK.onEndReached},columns:{active:eg,clickable:E.IJ,sticky:E.E6,onColumnHeaderClick:(e,t)=>{(0,Z.jm)(e,t,$)},nonSortable:E.Qe},headers:E.zR,sort:{key:eZ,sortDirection:eF},row:{actions:eB},transformations:(0,E.rS)(Q,en,eh,!1),tooltips:E.jH,isScrollingRight:a,dataTableKey:J})})}})})]})})}))},65603:function(e,t,a){"use strict";a.d(t,{Z:function(){return u}});var n=a(85893),r=a(67294),o=a(93967),l=a.n(o),i=a(10980),s=a(51755);function u(e){let{iconClassName:t="fa fa-filter"}=e,[a,o]=(0,r.useState)(e.data),[u,d]=(0,r.useState)(!1),c=e.data&&e.data.values.length>0;function p(){e.onChangeData(a),d(!1)}return(0,n.jsxs)(i.J2,{open:u,onOpenChange:function(t){if(!t){p();return}o(e.data),d(t)},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:t}),(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:a,onChangeData:o,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:p,children:"Apply"})]})]})]})}},6310:function(e,t,a){"use strict";a.d(t,{AQ:function(){return d},F2:function(){return f},Fy:function(){return v},Tw:function(){return o},YY:function(){return c},aE:function(){return p},bN:function(){return r},bx:function(){return g},c9:function(){return m},g8:function(){return h},pE:function(){return y},rw:function(){return u},tc:function(){return s},uW:function(){return l},vl:function(){return i}});let n=new(a(88835)).ApiClient;async function r(e,t){return await n.post("tags/insert",{data:e,keepAllFields:!0},t)}async function o(e,t){return await n.post("tags/updateBulk",{data:e,keepAllFields:!0},t)}async function l(e,t){return await n.post("tags/update",{data:e,keepAllFields:!0},t)}async function i(e,t){return await n.post("tags/update",{data:e,keepAllFields:!0},t)}async function s(e,t){return await n.post("tags/remove",{data:e},t)}async function u(e,t){return await n.get("tags/list",{params:e},t)}async function d(e,t){return await n.get("tagGroups/list",{params:e},t)}async function c(e,t){return await n.post("tagGroups/insert",{data:e,keepAllFields:!0},t)}async function p(e,t){return await n.post("tagGroups/update",{data:e,keepAllFields:!0},t)}async function m(e,t){return await n.post("tagGroups/update",{data:e,keepAllFields:!0},t)}async function g(e,t){return await n.post("tagGroups/remove",{data:e},t)}async function f(e,t){return await n.post("tagGroups/reorderTags",{data:e},t)}async function v(e,t){return await n.post("tags/merge",{data:{groupID:e.groupID,tagIDs:e.tagIDs,text:e.text,tagGroupID:e.tagGroupID,color:null},keepAllFields:!0},t)}function y(e,t){return null===e.sortOrder&&null===t.sortOrder?e.id.localeCompare(t.id):null===e.sortOrder?1:null===t.sortOrder?-1:e.sortOrder-t.sortOrder}function h(e){let t=new Map(e.map((e,t)=>[e.id,t]));return(e,a)=>{var n,r;return null===e.tagGroupID&&null===a.tagGroupID?e.text.localeCompare(a.text):null===e.tagGroupID?-1:null===a.tagGroupID?1:(null!==(n=t.get(e.tagGroupID))&&void 0!==n?n:-1)-(null!==(r=t.get(a.tagGroupID))&&void 0!==r?r:-1)||y(e,a)}}}},function(e){e.O(0,[87536,55951,85872,61284,27057,41160,29195,43764,91138,35648,94202,43249,34921,57737,77452,99576,72731,82977,92888,49774,40179],function(){return e(e.s=10747)}),_N_E=e.O()}]);
4//# sourceMappingURL=leagueSeasonWaitlist-d70576ec91054448.js.map
5//# debugId=0c37b110-bb3e-526d-8999-a278ee5af8a6

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.