PageSourceSearch

https://opensports.net/_next/static/chunks/pages/[aliasID]/admin/leagues/ongoing-71cc9e91b75628d5.js

js opensports.net collected 2026-09-24 12:19:07 UTC 5,396 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]="932ee034-43c8-540e-a37d-ed811d80b061")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[10785],{82429:function(e,r,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[aliasID]/admin/leagues/ongoing",function(){return u(69923)}])},69923:function(e,r,u){"use strict";u.r(r);var a=u(85893),o=u(67294),s=u(41484),n=u(11163),t=u(43764),i=u(60375),l=u(48452),g=u(11524),p=u(92444),d=u(29159),c=u(10168),y=u(96825),f=u(6310),v=u(35648),m=u(35231),h=u(11467),D=u(9482),I=u(75103);function w(e){var r,u;let s=(0,n.useRouter)();function t(e){s.push({query:{...s.query,...e}},void 0,{shallow:!0,scroll:!1})}let l=(0,o.useMemo)(()=>(0,v.Zh)(s.query.tags),[s.query.tags]),g=(0,o.useMemo)(()=>(0,v.lo)(s.query.registration,i.z),[s.query.registration]),p=(0,o.useMemo)(()=>(0,v.lo)(s.query.leaguePlay,i.z),[s.query.leaguePlay]),c=(0,o.useMemo)(()=>(0,v.i9)(s.query.search),[s.query.search]),[y,f]=(0,o.useState)(c),m=(0,d.Z)(e=>{t({search:e})},250),h=(0,o.useMemo)(()=>(0,D.oc)({tagGroups:e.tagGroups,registrationTypesEnabled:e.group.registrationTypesEnabled,checklistsEnabled:e.group.checklistsEnabled}),[e.tagGroups,e.group.registrationTypesEnabled,e.group.checklistsEnabled]),I=(0,o.useMemo)(()=>(0,D.YD)({tagGroups:e.tagGroups,registrationTypesEnabled:e.group.registrationTypesEnabled}),[e.tagGroups,e.group.registrationTypesEnabled]),w=(0,o.useMemo)(()=>I.map(e=>{let[r]=e;return r}).filter(h),[I,h]),E=null===(r=e.view)||void 0===r?void 0:r.data.fields,G=(0,o.useMemo)(()=>{var e;if(void 0===s.query.fields&&E)return E;let r=I.filter(e=>{let[r,u]=e;return u}).map(e=>{let[r]=e;return r}).filter(h);return null!==(e=(0,v.B9)(s.query.fields))&&void 0!==e?e:r},[s.query.fields,E,I,h]),q=(0,o.useMemo)(()=>G.filter(h),[G,h]),b=(0,o.useMemo)(()=>(0,D.fB)({tagGroups:e.tagGroups}),[e.tagGroups]),M=(0,o.useMemo)(()=>(0,D.vJ)({tagGroups:e.tagGroups}),[e.tagGroups]),C=(0,o.useMemo)(()=>M.map(e=>{let[r]=e;return r}).filter(b),[M,b]),T=null===(u=e.view)||void 0===u?void 0:u.data.groupings,k=(0,o.useMemo)(()=>{var e;if(void 0===s.query.groupings&&T)return T;let r=M.filter(e=>{let[r,u]=e;return u}).map(e=>{let[r]=e;return r}).filter(b);return null!==(e=(0,v.B9)(s.query.groupings))&&void 0!==e?e:r},[s.query.groupings,T,M,b]),_=(0,o.useMemo)(()=>k.filter(b),[k,b]);return(0,a.jsx)(i.Z,{reloadViews:e.reloadViews,t:e.t,leagueSeasons:e.leagueSeasons,tagGroups:e.tagGroups,tags:e.tags,search:null!=c?c:"",searchInput:null!=y?y:"",onSearchChange:function(e){f(e),m.debounce(e)},selectedFields:G,selectableFields:w,displayedFields:q,handleFieldsChange:function(e){t({fields:JSON.stringify(e)})},selectedGroupings:k,selectableGroupings:C,displayedGroupings:_,handleGroupingsChange:function(e){t({groupings:JSON.stringify(e)})},registration:g,onRegistrationChange:function(e){t({registration:e})},leaguePlay:p,onLeaguePlayChange:function(e){t({leaguePlay:e})},selectedTags:null!=l?l:[],onTagsChange:function(e){t({tags:e.length>0?e:void 0})},currentPage:"ongoing",group:e.group,views:e.views,view:e.view})}r.default=(0,g.cA)((0,t.r)("Leagues/Tournaments")(function(e){var r,u,t,g,d,D,E;let{t:G}=(0,s.$G)(["helpers","league","error","common"]),q=(0,n.useRouter)(),b=(0,l.Qy)(e=>e.auth.user),M=G("league:leaguesAndTournaments"),C=(0,o.useMemo)(()=>(0,v.i9)(q.query.viewID),[q.query.viewID]),T=(0,c.V)((0,o.useCallback)(async()=>{if(!e.groupID)return null;let[r,u,a]=await Promise.all([(0,y.WF)({groupID:e.groupID,type:"ongoing",limit:1e3},b),(0,f.rw)({groupID:e.groupID},b),(0,f.AQ)({groupID:e.groupID},b)]),o=(0,f.g8)(a);return u.sort(o),{tags:u,tagGroups:a,leagueSeasons:r}},[e.groupID,b])),k=(0,c.V)((0,o.useCallback)(async()=>await (0,I.GO)({groupID:e.groupID,type:"leagueSeasons"},b),[e.groupID,b])),_=(0,c.V)((0,o.useCallback)(async()=>"null"===C?null:C?await (0,I.Iv)({viewID:C},b):await (0,I.Bn)({groupID:e.groupID,type:"leagueSeasons"},b),[e.groupID,b,C])),P=(0,h.W)([[T,!1],[k,!1],[_,!1]]);async function S(){await k.reload(),await _.reload()}return(0,a.jsxs)(a.Fragment,{children:[(0,p.D)({title:M}),(0,a.jsx)(h.Z,{query:P.query,isEmpty:P.isEmpty,LoadingComponent:(0,a.jsx)(i.Z.Loading,{group:{aliasID:e.aliasID,id:e.groupID},currentPage:"ongoing"}),ErrorComponent:(0,a.jsx)(i.Z.Error,{group:{aliasID:e.aliasID,id:e.groupID},currentPage:"ongoing",message:(0,m.prettifyErrorMessage)(G,P.query.error),reload:function(){T.reload(),k.reload(),_.reload()}}),EmptyComponent:null,children:(0,a.jsx)(w,{t:G,group:{id:e.groupID,aliasID:e.aliasID,registrationTypesEnabled:e.groupFeatures.includes("registrationTypes"),checklistsEnabled:e.groupFeatures.includes("checklists")}
3,leagueSeasons:null!==(g=null===(r=T.data)||void 0===r?void 0:r.leagueSeasons)&&void 0!==g?g:[],tags:null!==(d=null===(u=T.data)||void 0===u?void 0:u.tags)&&void 0!==d?d:[],tagGroups:null!==(D=null===(t=T.data)||void 0===t?void 0:t.tagGroups)&&void 0!==D?D:[],views:null!==(E=k.data)&&void 0!==E?E:[],reloadViews:S,view:_.data})})]})}))}},function(e){e.O(0,[96825,55951,85872,41160,29195,43764,91138,89674,35648,92796,57737,95192,30250,17781,92888,49774,40179],function(){return e(e.s=82429)}),_N_E=e.O()}]);
4//# sourceMappingURL=ongoing-71cc9e91b75628d5.js.map
5//# debugId=932ee034-43c8-540e-a37d-ed811d80b061

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.