1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6469],{26469:function(e,i,l){var o=l(26042),n=l(69396),d=l(99534),t=l(85893),r=l(30120),u=l(92684),s=l(68527),a=l(88429),v=l(34724),m=l(89049),c=l(24955),f=l(9669),h=l.n(f),x=l(96486),p=["northernMagenta","tornadoOrange","southernBlue","pink.500","keeperGreen","monarchRed","northernMagenta","tornadoOrange","southernBlue","pink.500","keeperGreen","monarchRed"];i.Z=function(e){var i,l,f,g,j,b,y,w,S,N,A,B,E,C,R,k,I,T,F,z,Z,q,_,G,D,U,W,O,H,M,P,K,X,Q,Y,L,V,J,$,ee,ie,le,oe,ne,de,te,re,ue,se,ae,ve,me,ce,fe=e.game,he=e.size,xe=void 0===he?"md":he,pe=e.index,ge=(0,u.Sx)({base:25,md:50})||25,je=null===fe||void 0===fe||null===(i=fe.officials)||void 0===i?void 0:i.find((function(e){return"HEAD_REFEREE"===(null===e||void 0===e?void 0:e.role)})),be=null===fe||void 0===fe||null===(l=fe.officials)||void 0===l?void 0:l.find((function(e){return"SNITCH_RUNNER"===(null===e||void 0===e?void 0:e.role)})),ye=null===fe||void 0===fe||null===(f=fe.officials)||void 0===f?void 0:f.find((function(e){return"TIMEKEEPER"===(null===e||void 0===e?void 0:e.role)})),we=null===fe||void 0===fe||null===(g=fe.officials)||void 0===g?void 0:g.find((function(e){return"SCOREKEEPER"===(null===e||void 0===e?void 0:e.role)})),Se=null===fe||void 0===fe||null===(j=fe.officials)||void 0===j?void 0:j.find((function(e){return"SNITCH_REFEREE"===(null===e||void 0===e?void 0:e.role)})),Ne=null===fe||void 0===fe||null===(b=fe.officials)||void 0===b?void 0:b.find((function(e){return"PITCH_MANAGER"===(null===e||void 0===e?void 0:e.role)})),Ae=null===fe||void 0===fe||null===(y=fe.officials)||void 0===y?void 0:y.find((function(e){return"FIRST_AIDER"===(null===e||void 0===e?void 0:e.role)})),Be=null===fe||void 0===fe||null===(w=fe.officials)||void 0===w?void 0:w.filter((function(e){return"ASSISTANT_REFEREE"===(null===e||void 0===e?void 0:e.role)})),Ee=null===fe||void 0===fe||null===(S=fe.officials)||void 0===S?void 0:S.filter((function(e){return"GOAL_REFEREE"===(null===e||void 0===e?void 0:e.role)})),Ce=(0,c.Z)({queryKey:["quidditchScheduler","aff","team",null===fe||void 0===fe||null===(N=fe.teamA)||void 0===N?void 0:N.id,"tournament",null===fe||void 0===fe||null===(A=fe.timeslot)||void 0===A||null===(B=A.tournament)||void 0===B?void 0:B.id],queryFn:function(){var e,i,l;return h().get("https://api.quidditchscheduler.com/aff/team/".concat(null===fe||void 0===fe||null===(e=fe.teamA)||void 0===e?void 0:e.id,"/tournament/").concat(null===fe||void 0===fe||null===(i=fe.timeslot)||void 0===i||null===(l=i.tournament)||void 0===l?void 0:l.id))},staleTime:3e5,enabled:Boolean(null===fe||void 0===fe?void 0:fe.teamA)}),Re=Ce.data,ke=void 0===Re?[]:Re,Ie=(0,c.Z)({queryKey:["quidditchScheduler","aff","team",null===fe||void 0===fe||null===(E=fe.teamB)||void 0===E?void 0:E.id,"tournament",null===fe||void 0===fe||null===(C=fe.timeslot)||void 0===C||null===(R=C.tournament)||void 0===R?void 0:R.id],queryFn:function(){var e,i,l;return h().get("https://api.quidditchscheduler.com/aff/team/".concat(null===fe||void 0===fe||null===(e=fe.teamB)||void 0===e?void 0:e.id,"/tournament/").concat(null===fe||void 0===fe||null===(i=fe.timeslot)||void 0===i||null===(l=i.tournament)||void 0===l?void 0:l.id))},staleTime:3e5,enabled:Boolean(null===fe||void 0===fe?void 0:fe.teamB)}),Te=Ie.data,Fe=void 0===Te?[]:Te,ze=(0,x.orderBy)(null===(k=null===ke||void 0===ke?void 0:ke.filter((function(e){return null===e||void 0===e?void 0:e.rostered})))||void 0===k?void 0:k.map((function(e){var i=e.jerseyNumber,l=(0,d.Z)(e,["jerseyNumber"]);return(0,n.Z)((0,o.Z)({},l),{jerseyNumber:isNaN(parseInt(i))?null:parseInt(i)})})),["jerseyNumber"]),Ze=(0,x.orderBy)(null===(I=null===Fe||void 0===Fe?void 0:Fe.filter((function(e){return null===e||void 0===e?void 0:e.rostered})))||void 0===I?void 0:I.map((function(e){var i=e.jerseyNumber,l=(0,d.Z)(e,["jerseyNumber"]);return(0,n.Z)((0,o.Z)({},l),{jerseyNumber:isNaN(parseInt(i))?null:parseInt(i)})})),["jerseyNumber"]);return(0,t.jsxs)(s.kC,{borderRadius:"lg",bg:"white",flexDirection:"column",alignContent:"center",width:"100%",height:"100%",textDecoration:"none",_hover:{textDecoration:"none"},lineHeight:"24px",position:"relative",children:[(0,t.jsxs)(s.rj,{bg:"qukBlue",width:"100%",height:"100%",gridTemplateColumns:"1fr 1fr",position:"absolute",borderRadius:"lg",children:[(0,t.jsx)(s.xu,{display:"block",height:"100%",overflow:"hidden",position:"relative",opacity:.8,children:(null===fe||void 0===fe||null===(T=fe.teamA)||void 0===T?void 0:T.logoUrl)&&(0,t.jsx)(v.default,{layout:"fill",objectPosition:"center center",objectFit:"cover",src:null===fe||void 0===fe||null===(F=fe.teamA)||void 0===F?void 0:F.logoUrl,alt:null===fe||void 0===fe||null===(z=fe.teamA)||void 0===z?void 0:z.name,gridArea:"teamA",borderRadius:"lg"})}),(0,t.jsx)(s.xu,{position:"absolute",width:"50%",bgGradient:"linear(to-l, qukBlue, rgba(0, 0, 0, 0))",height:"100%"}),(0,t.jsx)(s.xu,{display:"block",height:"100%",overflow:"hidden",position:"relative",opacity:.8,children:(null===fe||void 0===fe||null===(Z=fe.teamB)||void 0===Z?void 0:Z.logoUrl)&&(0,t.jsx)(v.default,{layout:"fill",src:null===fe||void 0===fe||null===(q=fe.teamB)||void 0===q?void 0:q.logoUrl,alt:null===fe||void 0===fe||null===(_=fe.teamB)||void 0===_?void 0:_.name,borderRadius:"lg"})}),(0,t.jsx)(s.xu,{position:"absolute",right:"0",width:"51%",bgGradient:"linear(to-r, qukBlue, rgba(0, 0, 0, 0))",height:"100%"})]}),(0,t.jsx)(s.xu,{width:"100%",height:"100%",position:"absolute",bgGradient:"linear(to-t, ".concat(p[pe%p.length],", rgba(0, 0, 0, 0))"),borderRadius:"lg"}),(0,t.jsx)(s.kC,{alignItems:"center",justifyContent:"center",pt:"sm"===xe?2:{base:2,md:4},zIndex:1,children:(0,t.jsxs)(s.rj,{gridTemplateColumns:"1fr auto 1fr",gridGap:2,children:[(0,t.jsxs)(s.xv,{my:0,fontSize:"xs",justifySelf:"end",color:"white",textShadow:"0 0 5px rgb(0,0,0)",children:["Pitch ",null===fe||void 0===fe?void 0:fe.pitch]}),(0,t.jsx)(s.xv,{my:0,fontSize:"xs",justifySelf:"center",color:"white",textShadow:"0 0 5px rgb(0,0,0)",children:"|"}),(0,t.jsx)(s.xv,{my:0,fontSize:"xs",justifySelf:"start",color:"white",textShadow:"0 0 5px rgb(0,0,0)",children:r.ou.fromISO(null===fe||void 0===fe||null===(G=fe.timeslot)||void 0===G?void 0:G.t
1ime).toFormat("h:mm a")})]})}),(null===fe||void 0===fe?void 0:fe.teamA)||fe.teamB?(0,t.jsxs)(s.rj,{gridTemplateColumns:"1fr 1fr 1fr",gridGap:4,px:4,pb:"sm"===xe?0:{base:0,md:4},zIndex:1,children:[(0,t.jsxs)(s.rj,{gridTemplateColumns:"sm"===xe?"25px auto":{base:"25px auto",md:"50px auto"},gridGap:2,alignItems:"center",children:[(0,t.jsx)(s.xu,{height:"sm"===xe?"25px":{base:"25px",md:"50px"},width:"sm"===xe?"25px":{base:"25px",md:"50px"},children:(null===fe||void 0===fe||null===(D=fe.teamA)||void 0===D?void 0:D.logoUrl)&&(0,t.jsx)(v.default,{src:null===fe||void 0===fe||null===(U=fe.teamA)||void 0===U?void 0:U.logoUrl,alt:null===fe||void 0===fe||null===(W=fe.teamA)||void 0===W?void 0:W.name,height:"sm"===xe?"25px":ge,width:"sm"===xe?"25px":ge,layout:"responsive"})}),(0,t.jsx)(s.xv,{fontWeight:"bold",fontSize:"sm"===xe?"sm":{base:"sm",md:"md"},color:"white",textShadow:"0 0 5px rgb(0,0,0)",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:" "!==(null===fe||void 0===fe||null===(O=fe.teamA)||void 0===O?void 0:O.shortName)?null===fe||void 0===fe||null===(H=fe.teamA)||void 0===H?void 0:H.shortName:null===fe||void 0===fe||null===(M=fe.teamA)||void 0===M?void 0:M.name})]}),"FINISHED"===(null===fe||void 0===fe?void 0:fe.status)||"ABANDONED"===(null===fe||void 0===fe?void 0:fe.status)?(0,t.jsx)(s.kC,{alignItems:"center",justifyContent:"center",children:(0,t.jsxs)(s.rj,{gridTemplateColumns:"1fr auto 1fr",gridGap:2,children:[(0,t.jsxs)(s.xv,{fontWeight:"bold",fontSize:"sm"===xe?"lg":{base:"lg",md:"4xl"},justifySelf:"end",color:"white",textShadow:"0 0 5px rgb(0,0,0)",marginY:0,children:[null===fe||void 0===fe?void 0:fe.teamAScore,"TEAM_A"===(null===fe||void 0===fe?void 0:fe.snitchCaughtBy)&&(0,t.jsx)(t.Fragment,{children:"*"})]}),(0,t.jsx)(s.xv,{fontWeight:"bold",fontSize:"sm"===xe?"lg":{base:"lg",md:"4xl"},justifySelf:"center",color:"white",textShadow:"0 0 5px rgb(0,0,0)",marginY:0,children:"\u2014"}),(0,t.jsxs)(s.xv,{fontWeight:"bold",fontSize:"sm"===xe?"lg":{base:"lg",md:"4xl"},justifySelf:"start",color:"white",textShadow:"0 0 5px rgb(0,0,0)",marginY:0,children:[null===fe||void 0===fe?void 0:fe.teamBScore,"TEAM_B"===(null===fe||void 0===fe?void 0:fe.snitchCaughtBy)&&(0,t.jsx)(t.Fragment,{children:"*"})]})]})}):(0,t.jsx)(s.xu,{}),(0,t.jsxs)(s.rj,{gridTemplateColumns:"sm"===xe?"auto 25px":{base:"auto 25px",md:"auto 50px"},gridGap:2,gridTemplateAreas:"'name logo'",alignItems:"center",children:[(0,t.jsx)(s.xv,{fontWeight:"bold",color:"white",textShadow:"0 0 5px rgb(0,0,0)",fontSize:"sm"===xe?"sm":{base:"sm",md:"md"},gridArea:"name",textAlign:"right",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:" "!==(null===fe||void 0===fe||null===(P=fe.teamB)||void 0===P?void 0:P.shortName)?null===fe||void 0===fe||null===(K=fe.teamB)||void 0===K?void 0:K.shortName:null===fe||void 0===fe||null===(X=fe.teamB)||void 0===X?void 0:X.name}),(0,t.jsx)(s.kC,{height:"sm"===xe?"25px":{base:"25px",md:"50px"},width:"sm"===xe?"25px":{base:"25px",md:"50px"},gridArea:"logo",flexDirection:"column",justifySelf:"flex-end",children:(null===fe||void 0===fe||null===(Q=fe.teamB)||void 0===Q?void 0:Q.logoUrl)&&(0,t.jsx)(v.default,{src:null===fe||void 0===fe||null===(Y=fe.teamB)||void 0===Y?void 0:Y.logoUrl,alt:null===fe||void 0===fe||null===(L=fe.teamB)||void 0===L?void 0:L.name,height:"sm"===xe?"25px":ge,width:"sm"===xe?"25px":ge,layout:"responsive"})})]})]}):(0,t.jsx)(s.kC,{alignItems:"center",justifyContent:"center",zIndex:1,children:(0,t.jsx)(s.xv,{fontWeight:"bold",fontSize:"sm"===xe?"sm":{base:"sm",md:"md"},color:"white",textShadow:"0 0 5px rgb(0,0,0)",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:null===fe||void 0===fe?void 0:fe.label})}),(null===fe||void 0===fe?void 0:fe.teamA)||fe.teamB?(0,t.jsx)(a.UQ,{allowToggle:!0,zIndex:"1",width:"100%",children:(0,t.jsxs)(a.Qd,{children:[(0,t.jsx)(s.X6,{m:0,children:(0,t.jsx)(a.KF,{bg:"transparent",color:"white",fontFamily:"body",fontWeight:"bold",m:0,border:"0",cursor:"pointer",fontSize:"sm"===xe?"sm":{base:"sm",md:"md"},children:(0,t.jsxs)(s.kC,{alignItems:"center",width:"100%",textAlign:"center",justifyContent:"center",textShadow:"0 0 5px rgb(0,0,0)",children:["Details",(0,t.jsx)(a.XE,{})]})})}),(0,t.jsxs)(a.Hk,{pb:4,backgroundColor:"rgba(255,255,255,0.8)",borderBottomRadius:"md",children:[(null===fe||void 0===fe||null===(V=fe.officials)||void 0===V?void 0:V.length)>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.X6,{color:"qukBlue",fontSize:"2xl",fontFamily:"body",children:"Volunteers"}),(0,t.jsxs)(s.rj,{gridTemplateColumns:"sm"===xe?"1fr":{base:"1fr",md:"1fr 1fr"},gridGap:16,children:[(0,t.jsxs)(m.Z,{children:[(0,t.jsx)(m.d,{term:"Head Referee",description:null===je||void 0===je||null===(J=je.volunteer)||void 0===J||null===($=J.person)||void 0===$?void 0:$.fullName}),(0,t.jsx)(m.d,{term:"Snitch Runner",description:null===be||void 0===be||null===(ee=be.volunteer)||void 0===ee||null===(ie=ee.person)||void 0===ie?void 0:ie.fullName}),(0,t.jsx)(m.d,{term:"Snitch Referee",description:null===Se||void 0===Se||null===(le=Se.volunteer)||void 0===le||null===(oe=le.person)||void 0===oe?void 0:oe.fullName}),null===Be||void 0===Be?void 0:Be.map((function(e){var i,l;return(0,t.jsx)(m.d,{term:"Assistant Referee",description:null===e||void 0===e||null===(i=e.volunteer)||void 0===i||null===(l=i.person)||void 0===l?void 0:l.fullName},null===e||void 0===e?void 0:e.id)}
1))]}),(0,t.jsxs)(m.Z,{children:[(0,t.jsx)(m.d,{term:"Scorekeeper",description:null===we||void 0===we||null===(ne=we.volunteer)||void 0===ne||null===(de=ne.person)||void 0===de?void 0:de.fullName}),(0,t.jsx)(m.d,{term:"Timekeeper",description:null===ye||void 0===ye||null===(te=ye.volunteer)||void 0===te||null===(re=te.person)||void 0===re?void 0:re.fullName}),null===Ee||void 0===Ee?void 0:Ee.map((function(e){var i,l;return(0,t.jsx)(m.d,{term:"Goal Referee",description:null===e||void 0===e||null===(i=e.volunteer)||void 0===i||null===(l=i.person)||void 0===l?void 0:l.fullName},null===e||void 0===e?void 0:e.id)})),(0,t.jsx)(m.d,{term:"First Aider",description:null===Ae||void 0===Ae||null===(ue=Ae.volunteer)||void 0===ue||null===(se=ue.person)||void 0===se?void 0:se.fullName}),(0,t.jsx)(m.d,{term:"Pitch Manager",description:null===Ne||void 0===Ne||null===(ae=Ne.volunteer)||void 0===ae||null===(ve=ae.person)||void 0===ve?void 0:ve.fullName})]})]}),(0,t.jsx)(s.iz,{borderColor:"qukBlue",opacity:"1",borderBottomWidth:"2px",mt:10})]}),(0,t.jsxs)(s.rj,{gridTemplateColumns:"sm"===xe?"1fr":{base:"1fr",md:"1fr 1fr"},gridGap:16,children:[(0,t.jsxs)(s.xu,{justifyItems:"start",children:[(0,t.jsxs)(s.X6,{color:"qukBlue",fontSize:"2xl",fontFamily:"body",children:[null===fe||void 0===fe||null===(me=fe.teamA)||void 0===me?void 0:me.name," Roster"]}),(0,t.jsx)(m.Z,{children:null===ze||void 0===ze?void 0:ze.map((function(e){var i;return(0,t.jsx)(m.d,{term:null===e||void 0===e?void 0:e.jerseyNumber,description:null===e||void 0===e||null===(i=e.person)||void 0===i?void 0:i.fullName},null===e||void 0===e?void 0:e.id)}))})]}),(0,t.jsxs)(s.xu,{children:[(0,t.jsxs)(s.X6,{color:"qukBlue",fontSize:"2xl",fontFamily:"body",children:[null===fe||void 0===fe||null===(ce=fe.teamB)||void 0===ce?void 0:ce.name," Roster"]}),(0,t.jsx)(m.Z,{children:null===Ze||void 0===Ze?void 0:Ze.map((function(e){var i;return(0,t.jsx)(m.d,{term:null===e||void 0===e?void 0:e.jerseyNumber,description:null===e||void 0===e||null===(i=e.person)||void 0===i?void 0:i.fullName},null===e||void 0===e?void 0:e.id)}))})]})]})]})]})}):null]})}},89049:function(e,i,l){l.d(i,{d:function(){return s}});var o=l(26042),n=l(85893),d=l(68527),t={borderTop:"1px solid",borderColor:"greyLight",py:2,_last:{paddingBottom:0}},r=function(e){return(0,n.jsx)(d.xu,(0,o.Z)({as:"dt",fontSize:"sm",fontWeight:"normal",color:"black",m:"0",pr:1},t,e))},u=function(e){return(0,n.jsx)(d.xu,(0,o.Z)({as:"dd",fontSize:"sm",fontWeight:"bold",color:"qukBlue",textAlign:"right",m:"0",pl:1},t,e))},s=function(e){var i=e.term,l=e.description;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r,{children:i}),(0,n.jsx)(u,{children:l})]})};i.Z=function(e){return(0,n.jsx)(d.xu,(0,o.Z)({as:"dl",m:"0",display:"grid",gridTemplateColumns:"auto auto"},e))}},24955:function(e,i,l){l.d(i,{Z:function(){return s}});var o=l(47568),n=l(26042),d=l(99534),t=l(97582),r=l(88767);var u=function(e){return e.data};function s(e){var i=e.queryFn,l=e.selector,s=void 0===l?u:l,a=(0,d.Z)(e,["queryFn","selector"]);return(0,r.useQuery)((0,n.Z)({queryFn:function(){var e=(0,o.Z)((function(e){var l,o,n,d;return(0,t.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,i(e)];case 1:return l=t.sent(),[2,s(l)];case 2:if(o=t.sent(),!o.response)throw o;throw 401===(null===o||void 0===o||null===(n=o.response)||void 0===n?void 0:n.status)||null===o||void 0===o||null===(d=o.response)||void 0===d||d.status,o;case 3:return[2]}}
1))}));return function(i){return e.apply(this,arguments)}}()},a))}}}]); 2//# sourceMappingURL=6469.2c24c714b0566ec6.js.map
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.