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]="68443cf2-681a-55a7-8c11-97f5c2ebee52")}catch(e){}}(); 3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64105],{77892:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/leagues/teams/[teamSeasonMemberID]/schedules/[scheduleID]/matches",function(){return n(40075)}])},40075:function(e,t,n){"use strict";n.r(t);var r=n(85893),l=n(67294),s=n(7739),c=n.n(s),a=n(30381),i=n.n(a),o=n(11163),u=n(88835),d=n(56989),m=n(83216),f=n(77775),h=n(63693),x=n(41219),p=n(11467),g=n(1433),j=n(41484),b=n(11524),v=n(30642),y=n(35648),N=n(92444),M=n(27881),w=n(48452);let Z=new u.ApiClient;function C(e,t){return Z.get("v2/leagues/matches/listFiltered",{params:e},t)}function k(e){let t=(0,l.useMemo)(()=>Object.entries(c()(e.matches,e=>{var t;return i().tz(e.scheduledStart,null!==(t=e.timeZone)&&void 0!==t?t:i().tz.guess()).format("YYYY-MM")})).sort((e,t)=>{let[n]=e,[r]=t;return n.localeCompare(r)}).map(e=>{let[t,n]=e;return[i()(t,"YYYY-MM").format("MMMM, YYYY"),n]}),[e.matches]);return 0===t.length?(0,r.jsx)(h.Z,{className:"flex items-center justify-center p-4 text-center",children:e.t("common:noMatchesPublishedPeriod")}):(0,r.jsx)("div",{className:"flex flex-col gap-2",children:t.map(t=>{let[n,l]=t;return(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)("div",{className:"text-lg font-semibold",children:n}),(0,r.jsx)("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(min(100%,20rem),25rem))] justify-start gap-2",children:l.map(t=>(0,r.jsx)(g.Z.OnPressWrapper,{matchID:t.id,teamSeasonMemberID:e.teamSeasonMemberID,children:(0,r.jsx)(g.Z,{match:t})},t.id))})]},n)})})}t.default=(0,b.cA)((0,M._)("Matches")(function(e){var t;let n=(0,o.useRouter)(),s=(0,w.Qy)(e=>e.auth.user),{t:c}=(0,j.$G)(["common","helpers","league"]),a=e.data.leagueSeasonID,i=(0,y.i9)(n.query.scheduleID),u=(0,l.useMemo)(()=>(0,y.Zh)(n.query.subScheduleIDs),[n.query.subScheduleIDs]),h=(0,v.Z)((0,l.useCallback)(async()=>a&&i?C({leagueSeasonID:a,scheduleID:i,subScheduleIDs:u,limit:50,sortBy:"asc"},s):null,[s,a,i,u]),(0,l.useCallback)(async e=>{var t,n,r,l;return a&&i?C({leagueSeasonID:a,scheduleID:i,subScheduleIDs:u,limit:50,lastID:e.id,scheduledStart:e.scheduledStart,lastResourceName:null!==(r=null===(t=e.resource)||void 0===t?void 0:t.name)&&void 0!==r?r:"null",lastFacilityTitle:null!==(l=null===(n=e.facility)||void 0===n?void 0:n.title)&&void 0!==l?l:"null",sortBy:"asc"},s):[]},[s,a,i,u]),{limit:50,enabled:!!a&&!!i}),g=(0,r.jsx)(m.Z,{text:c("league:upcomingMatches"),segments:[{text:c("league:matches"),href:"/leagues/teams/".concat(e.data.teamSeasonMemberID,"/matches")}]});return(0,r.jsxs)(r.Fragment,{children:[(0,N.D)({title:c("league:upcomingMatches")}),(0,r.jsx)(p.Z,{query:h,isEmpty:!1,EmptyComponent:null,LoadingComponent:(0,r.jsx)(f.Z,{LeftComponent:g,children:(0,r.jsx)(f.Z.Loading,{})}),ErrorComponent:(0,r.jsx)(f.Z,{LeftComponent:g,children:(0,r.jsx)(f.Z.Error,{message:(0,d.prettifyErrorMessage)(c,h.error),children:(0,r.jsx)("button",{type:"button",onClick:h.reload,className:"btn btn-primary btn-sm",children:c("helpers:reload")})})}),children:(0,r.jsxs)(f.Z,{LeftComponent:g,children:[(0,r.jsx)(k,{matches:null!==(t=h.data)&&void 0!==t?t:[],t:c,teamSeasonMemberID:e.data.teamSeasonMemberID}),!1===h.reachedLast&&(0,r.jsx)(x.Z,{disabled:h.loading,isLoading:h.loading,type:"button",className:"btn btn-link btn-block btn-sm",onClick:h.onEndReached,children:c("helpers:loadMore")})]})})]})}))},89105:function(e,t,n){"use strict";n.d(t,{L:function(){return l},Z:function(){return s}});var r=n(85893);n(67294);let l={green:"#20AA20",red:"#FF0000",gray:"#747474",orange:"#e6a900",blue:"#2055cc",yellow:"#F1C40F"};function s(e){return(0,r.jsxs)("div",{title:e.title,style:{border:"1px solid ".concat(e.color),background:"linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.95)), ".concat(e.color)},className:"px-1 py-0 rounded w-[fit-content] text-[0.8rem] flex flex-row gap-2",children:[e.children,(0,r.jsx)("span",{style:{color:e.color},className:"text-[0.8rem] shrink-0",children:e.text})]})}},83216:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(85893),l=n(41664),s=n.n(l);function c(e){return(0,r.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[e.segments.map((e,t)=>[(0,r.jsx)(s(),{href:e.href,className:"text-xl",children:e.text},"link-"+t),(0,r.jsx)("span",{className:"text-xl",children:"/"},"separator-"+t)]),(0,r.jsx)("span",{className:"text-xl",children:e.text})]})}n(67294)},77775:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(85893);n(67294);var l=n(8334),s=n(80261),c=n(41484);function a(e){return(0,r.jsxs)("div",{className:"flex flex-col h-full gap-2 p-4 pt-2 overflow-auto",children:[(0,r.jsxs)("div",{className:"flex flex-row items-center gap-2 justify-between flex-wrap",children:[(0,r.jsx)("div",{children:e.LeftComponent}),(0,r.jsx)("div",{children:e.RightComponent})]}),(0,r.jsx)("div",{className:"flex flex-col flex-1",children:e.children})]})}function i(e){return(0,r.jsx)("div",{className:"flex flex-col justify-center items-center h-full bg-white rounded border border-solid border-[#ddd] overflow-hidden",children:e.children})}a.Loading=function(){return(0,r.jsx)(i,{children:(0,r.jsx)(l.Z,{height:128})})},a.Error=function(e){let{t}=(0,c.$G)(["helpers"]);return(0,r.jsx)(i,{children:(0,r.jsxs)("div",{className:"flex flex-col gap-2 items-center",children:[(0,r.jsx)("div",{className:"flex",children:(0,r.jsx)("div",{className:"flex flex-col justify-center items-center bg-gray-200 rounded-sm p-3",children:(0,r.jsx)(s.Z,{size:20})})}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 items-center",children:[(0,r.jsxs)("div",{className:"flex flex-col max-w-80",children:[(0,r.jsx)("span",{className:"text-lg font-bold text-center text-black",children:t("helpers:error")}),(0,r.jsx)("span",{className:"text-base text-center",children:e.message})]}),e.children]})]})})}},53666:function(e,t,n){"use strict";
3function r(e,t,n){let{newList:r,found:l}=e.reduce((e,r)=>{let l=n(r,t),s=l?t:r;return{newList:[...e.newList,s],found:e.found?e.found:l}},{newList:[],found:!1});return l?r:[...r,t]}function l(e,t,n){return e.flatMap(e=>n(e,t)?[]:e)}function s(e,t){return e.id===t.id}function*c(e,t){let n=[],r=0;for(let l of e)n.length===t?(yield{items:n.concat(l),index:r},r+=1,n=[]):n.push(l);n.length>0&&(yield{items:n,index:r})}function a(e,t){if(0===e.length)return[];let n=e.filter(e=>e.length>0),r=n.length-1;return n.reduce((e,n,l)=>l<r?[...e,...n,t]:[...e,...n],[])}function i(e){let t=new Map;for(let[n,r]of e){t.has(n)||t.set(n,[]);let e=t.get(n);e&&t.set(n,[...e,r])}return t}function o(e,t){return e.length!==t.length?null:e.map((e,n)=>[e,t[n]])}function u(e,t){let n=e.length-1;return e.reduce((e,r,l)=>l<n?[...e,r,t(l)]:[...e,r],[])}n.d(t,{$R:function(){return o},Ey:function(){return a},H:function(){return r},Od:function(){return l},dC:function(){return c},gM:function(){return u},no:function(){return s},vM:function(){return i}})}},function(e){e.O(0,[41160,91138,35648,99841,92888,49774,40179],function(){return e(e.s=77892)}),_N_E=e.O()}]); 4//# sourceMappingURL=matches-633e3dc912137e82.js.map 5//# debugId=68443cf2-681a-55a7-8c11-97f5c2ebee52
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.