PageSourceSearch

https://opensports.net/_next/static/chunks/pages/[aliasID]-41868de0b101b6bf.js

js opensports.net collected 2026-10-01 15:37:32 UTC 32,553 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]="63f466e7-d8f5-57d4-a780-2ccced5adf08")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[32317],{34865:function(e,t,a){var s=a(89465),l=a(77813),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,a){var i=e[t];n.call(e,t)&&l(i,a)&&(void 0!==a||t in e)||s(e,t,a)}},10313:function(e,t,a){var s=a(13218),l=a(25726),n=a(33498),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!s(e))return n(e);var t=l(e),a=[];for(var r in e)"constructor"==r&&(t||!i.call(e,r))||a.push(r);return a}},46904:function(e,t,a){var s=a(68866),l=a(51442),n=a(81704);e.exports=function(e){return s(e,n,l)}},85924:function(e,t,a){var s=a(5569)(Object.getPrototypeOf,Object);e.exports=s},51442:function(e,t,a){var s=a(62488),l=a(85924),n=a(99551),i=a(70479),r=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)s(t,n(e)),e=l(e);return t}:i;e.exports=r},33498:function(e){e.exports=function(e){var t=[];if(null!=e)for(var a in Object(e))t.push(a);return t}},81704:function(e,t,a){var s=a(14636),l=a(10313),n=a(98612);e.exports=function(e){return n(e)?s(e,!0):l(e)}},97179:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[aliasID]",function(){return a(94196)}])},21427:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(72160).Z)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},94196:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return eb}});var s=a(85893),l=a(67294),n=a(11163),i=a.n(n),r=a(48452),o=a(93446),d=a(46695),c=a(29586),u=a(17196),h=a(62357),p=a(10168),m=a(97813),g=a(10753),v=a(62662),x=a(93967),f=a.n(x),j=a(41664),b=a.n(j),y=a(30381),w=a.n(y),C=a(42280),D=a(19092),_=a(34117),S=a(8334),I=a(61721),N=a.n(I),R=a(76774),k=a(41484),T=a(56989);let L=new R.default;function A(e){let{groupID:t}=e,{t:a}=(0,k.$G)(["helpers"]),[n,i]=(0,l.useState)("all-time"),r=(0,l.useCallback)(async()=>{let e,a;if(!t)return[];"all-time"!==n&&(e=w()().subtract("last-7"===n?7:30,"days").toISOString(),a=w()().toISOString());let s={start:e,end:a,groupID:t,limit:10};return function(e){let t=[];return e.forEach((e,a)=>{let s=t[t.length-1];if(!s){t.push([e,1]);return}let[l,n]=s;0==e.count-l.count?t.push([e,n]):t.push([e,a+1])}),t}(await L.get("leaderboards/listFiltered",{params:s}))},[n,t]),{data:o,loading:d,error:c}=(0,p.V)(r),u=["\uD83E\uDD47","\uD83E\uDD48","\uD83E\uDD49"],h=e=>{let[t,a]=e,l="/users/".concat(t.userID,"/events"),n=a<4;return(0,s.jsx)(b(),{href:l,children:(0,s.jsxs)("div",{className:f()(N().topUserRow,{[N().featured]:1===a}),children:[n&&(0,s.jsx)("span",{style:{fontSize:34,textAlign:"center"},children:u[a-1]}),!n&&(0,s.jsx)("span",{className:N().topUserRowRankText,children:"#".concat(a)}),(0,s.jsx)(O,{user:t,showBadge:1===a}),(0,s.jsx)("span",{className:N().topUserCount,children:t.count})]})},t.userID)};return(0,s.jsxs)("div",{className:N().topUsers,style:{display:"flex",flexDirection:"column"},children:[(0,s.jsx)(D.Z,{initialIndex:0,onTabChange:e=>i(e.name),children:["all-time","last-7","last-30"].map(e=>(0,s.jsxs)(_.Z,{label:P[e],name:e,children:[!d&&o&&o.length>0&&(0,s.jsx)("div",{className:N().topUsersContainer,children:o.length>0&&o.map(h)}),!d&&o&&0===o.length&&(0,s.jsx)("span",{style:{minHeight:200,display:"flex",alignItems:"center",margin:16,borderRadius:8,textAlign:"center",backgroundColor:"white",padding:16},children:"Looks like there's room at the top! Why not be the first to make your mark on the leaderboard? Start participating today!"}),d&&(0,s.jsx)("div",{style:{minHeight:300,display:"flex",alignItems:"center"},children:(0,s.jsx)(S.Z,{height:50})}),!!c&&!d&&(0,s.jsx)("span",{children:(0,T.prettifyErrorMessage)(a,c)})]},e))}),(0,s.jsx)("span",{className:"px-6 text-sm align-middle",children:"Leaderboard rankings are based on participation in events, sessions, and leagues/tournament matches."})]})}let O=e=>{let{user:t,showBadge:a}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(C.Z,{user:t,rounded:!0,className:N().topUsersAvatar}),(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:0},children:[(0,s.jsxs)("span",{className:N().name,children:[t.firstName," ",t.lastName]}),a&&(0,s.jsx)("span",{className:N().topAttendeeBadge,children:"Top Attendee"})]})]})},P={"all-time":"All Time","last-7":"7 Days","last-30":"30 Days"};var Z=a(70376),B=a(69093),E=a(46066);function U(e){let{featuredItem:t,cardViewCustomizations:a,t:l,viewAllURL:n,onRefresh:i}=e,{title:r,data:o,description:d,tab:c}=t,u=(e,t)=>
3"events"===c.type?(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:N().featuredCarouselCard,children:(0,s.jsx)(Z.Z,{data:e,showStatus:!0,hidePastStatus:!0,showQuantityOverride:!1,quantityOverrideMessage:"",OnPressWrapper:Z.Z.OnPressWrapper,showSkillLevel:a.showSkillLevel,showTags:a.showTags,displayedTags:a.displayedTags,skillLevelAccentColor:a.skillLevelAccentColor,statusTagAccentColors:a.statusTagAccentColors,onRefresh:i})})},t):"leagues"===c.type||"tournaments"===c.type?(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:N().featuredCarouselCard,children:(0,s.jsx)(B.Z,{data:e,t:l,OnPressWrapper:B.Z.OnPressWrapper})})},t):null,h={speed:500,slidesToShow:3,slidesToScroll:1,dots:!0,nextArrow:(0,s.jsx)(function(e){let{className:t,style:a,onClick:l}=e;return(0,s.jsx)("div",{className:f()(t,N().slickArrow),style:{...a,display:"block",position:"absolute",top:-27,right:24},onClick:l})},{}),prevArrow:(0,s.jsx)(function(e){let{className:t,style:a,onClick:l}=e;return(0,s.jsx)("div",{className:f()(t,N().slickArrow),style:{...a,display:"block",position:"absolute",top:-27,left:"inherit",right:54},onClick:l})},{}),infinite:!1,responsive:[{breakpoint:992,settings:{slidesToShow:2,slidesToScroll:2,initialSlide:2}},{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1}}]};return(0,s.jsxs)("div",{className:N().featureCarousel,children:[(0,s.jsxs)("div",{className:f()(N().carouselViewAll,!!d&&N().urlOnly),children:[!d&&(0,s.jsx)("h4",{children:r}),(0,s.jsx)(b(),{href:n,children:"View all"})]}),(0,s.jsxs)(E.Z,{...h,children:[o.map((e,t)=>u(e,r+t)),o.length>4&&(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:N().carouselEmpty,children:[(0,s.jsx)("span",{style:{textAlign:"center"},children:"Can't find what you're looking for?"}),(0,s.jsx)(b(),{href:n,style:{textDecoration:"none"},children:(0,s.jsx)("button",{className:"btn btn-primary btn-sm",style:{width:"fit-content"},children:"See Full List"})})]})})]})]})}function z(e){let t=e.header.images.length>1,a={speed:500,slidesToShow:1,slidesToScroll:1,dots:t,infinite:e.header.images.length>2,nextArrow:(0,s.jsx)(G,{isNext:!0,hasMoreThanOneImage:t}),prevArrow:(0,s.jsx)(G,{isNext:!1,hasMoreThanOneImage:t})};return(0,s.jsx)("div",{className:"relative pt-[50%]",children:(0,s.jsx)("div",{className:"absolute inset-0",children:(0,s.jsx)(E.Z,{...a,children:e.header.images.map(e=>(0,s.jsx)(M,{uri:e.uri,linkURL:e.linkURL},e.uri))})})})}let M=e=>{let{uri:t,linkURL:a}=e,l=(0,s.jsx)("div",{className:"pb-[50%] bg-cover rounded-lg",style:{backgroundImage:"url(".concat(t,"/media_2000w.jpg)"),cursor:a?"pointer":"default"}});return a?(0,s.jsx)(b(),{href:a,style:{cursor:"pointer"},children:l}):(0,s.jsx)("div",{children:l},t)},G=e=>e.hasMoreThanOneImage?(0,s.jsx)("div",{className:f()(e.className,N().slickArrow),style:{...e.style,display:"block",left:e.isNext?"inherit":-30},onClick:e.onClick}):null;var W=a(86153),F=a(34851),H=a(90330),V=a.n(H),q=a(8164),Q=a.n(q);function $(e){let{groupPath:t,pinnedGroupAnnouncement:a}=e,l=(0,r.u5)(),{t:i}=(0,k.$G)(["helpers","common"]);function o(){var e;let{message:t,dateCreated:n,dateModified:r,title:o,photoURL:d}=a,c=w()(n).format("lll");r!==n&&(c+=" • ".concat(i("helpers:editedOnDate",{date:w()(r).format("lll")}))),l((0,W.Ll)({showCloseButton:!0,content:(0,s.jsxs)("div",{className:f()(V().announcement,N().announcementModal),style:{display:"flex",flexDirection:"column",gap:16},children:[o&&(0,s.jsx)("span",{style:{fontSize:"1.1rem",fontWeight:"bold"},children:o}),!!d&&(0,s.jsx)("img",{src:null!==(e=(0,T.getImageURLWithRes)({photoURL:d,quality:"medium"}))&&void 0!==e?e:void 0,style:{position:"relative",width:"100%",height:"35.7%"}}),(0,s.jsx)(F.Z,{className:V().message,children:t}),(0,s.jsxs)("div",{className:V().subtitle,children:[c,(0,s.jsx)("span",{className:Q().badge,children:i("helpers:pinned")})]})]})}))}return(0,s.jsx)(()=>{var e;let{id:l,message:r,dateCreated:d,title:c,photoURL:u}=a,h=w()(d).format("lll"),p=(0,n.useRouter)();return(0,s.jsxs)("div",{className:V().announcementCard,style:{background:"white",height:"100%",padding:6},children:[(0,s.jsx)(k.pt,{href:"/[aliasID]/announcements/[id]",as:"".concat(t,"/announcements/").concat(l),className:f()(V().announcementRow,V().announcementCard),children:(0,s.jsxs)("span",{style:{display:"flex",flexDirection:"column",gap:2},children:[c&&(0,s.jsx)("span",{style:{fontSize:"1.1rem",fontWeight:"bold"},children:c}),(0,s.jsx)("span",{style:{marginBottom:1,fontSize:c?"0.8rem":"0.9rem",fontWeight:c?"normal":"bold"},children:h})]})}),(0,s.jsxs)("div",{className:V().announcementRow,style:{display:"flex",flexDirection:"column",gap:8},children:[!!u&&(0,s.jsx)(k.pt,{href:"/[aliasID]/announcements/[id]",as:"".concat(t,"/announcements/").concat(l),children:(0,s.jsx)("img",{src:null!==(e=(0,T.getImageURLWithRes)({photoURL:u,quality:"medium"}))&&void 0!==e?e:void 0,style:{position:"relative",width:"100%"}})}),(0,s.jsx)(F.Z,{className:N().announcementLongText,numberOfLines:u?1:7,onTextClick:()=>p.push("".concat(t,"/announcements/").concat(l)),renderExpandButton:()=>(0,s.jsx)("button",{className:f()(N().announcementReadMoreBtn),onClick:o,children:i("common:readMore")}),children:r})]})]})},{})}function J(e){var t;
3let{t:a}=(0,k.$G)(["group","helpers"]),l=(0,n.useRouter)(),i=(0,T.getCardViewCustomizations)(e.eventFilters),r=null==e?void 0:null===(t=e.posts)||void 0===t?void 0:t[0];return(0,s.jsxs)(s.Fragment,{children:[!!r&&(0,s.jsx)("div",{className:f()(V().card,V().center),style:{overflow:"initial"},children:(0,s.jsx)(Z.Z,{data:r,showStatus:!1,hidePastStatus:!0,showQuantityOverride:!1,quantityOverrideMessage:a("common:onlyShownToEventManagers"),OnPressWrapper:Z.Z.OnPressWrapper,showGroupHeader:!1,showSkillLevel:i.showSkillLevel,showTags:i.showTags,displayedTags:i.displayedTags,skillLevelAccentColor:i.skillLevelAccentColor,statusTagAccentColors:i.statusTagAccentColors})}),!r&&(0,s.jsx)("div",{className:f()(V().card,V().center,N().paddingCardContainer),style:{minHeight:140},children:(0,s.jsxs)("div",{className:f()(V().contentPadding,V().emptyCard),children:[(0,s.jsx)("p",{children:a(e.canCreateGame?"group:noEventsCreateNow":e.groupIsPublic?"common:noUpcomingPublicEvents":"group:eventListGroupMembers")}),e.canCreateGame&&(0,s.jsx)("button",{type:"button",className:"btn btn-primary btn-sm",onClick:()=>l.push("/posts/new?groupAliasID=".concat(e.groupAliasID)),children:a("group:addEvent")})]})})]})}var X=a(25357),Y=a(79575),K=a.n(Y),ee=a(28449),et=a.n(ee),ea=a(51823),es=a(20234),el=a(41219);let en="rgba(255, 174, 0, 1)";function ei(e){let{reviewLimit:t}=e,a=(0,r.u5)(),[n,i]=(0,l.useState)("dateCreated"),[o,d]=(0,l.useState)("desc"),c=(0,l.useCallback)(()=>(0,m.J_)({groupID:e.groupID,limit:t,offset:0,sortDirection:o,sortBy:n}),[e.groupID,t,n,o]),{data:u,loading:h,receivedAt:g,setData:v}=(0,p.V)(c),[x,j]=(0,es.Z)(null!=u?u:[],g,()=>(0,m.J_)({groupID:e.groupID,limit:24,offset:null==u?void 0:u.length,sortDirection:o,sortBy:n}),v,24);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(er,{gamesReviewAverage:e.gamesReviewAverage,gamesReviewCount:e.gamesReviewCount,gamesRated1Star:e.gamesRated1Star,gamesRated2Star:e.gamesRated2Star,gamesRated3Star:e.gamesRated3Star,gamesRated4Star:e.gamesRated4Star,gamesRated5Star:e.gamesRated5Star}),(0,s.jsx)("div",{style:{backgroundColor:"#ddd",width:"100%",height:1,margin:"24px auto"}}),!t&&(0,s.jsx)("div",{style:{justifyContent:"flex-end",display:"flex"},children:(0,s.jsx)(ea.Z,{className:f()(et().dropdown,"w-[200px]"),value:"dateCreated"===n&&"desc"===o?"newest":"dateCreated"===n&&"asc"===o?"oldest":"rating"===n&&"desc"===o?"highest":"rating"===n&&"asc"===o?"lowest":void 0,type:"dropdown",textField:"label",valueField:"value",onChange:e=>{var t;"newest"===(t=e.value)?(i("dateCreated"),d("desc")):"oldest"===t?(i("dateCreated"),d("asc")):"highest"===t?(i("rating"),d("desc")):"lowest"===t&&(i("rating"),d("asc"))},data:[{label:"Newest",value:"newest"},{label:"Oldest",value:"oldest"},{label:"Highest",value:"highest"},{label:"Lowest",value:"lowest"}]})}),(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:24,minWidth:t?"none":"50vw",alignItems:"center",justifyContent:"center",maxWidth:600},children:[h&&(0,s.jsx)("div",{style:{alignItems:"center",justifyContent:"center"},children:(0,s.jsx)(S.Z,{height:80})}),u&&!h&&u.map((e,t)=>(0,s.jsx)(eo,{postFeedback:e,isLastItem:t===u.length-1},e.id)),!!e.reviewLimit&&(0,s.jsx)("a",{style:{fontSize:"1rem"},onClick:function(){a((0,W.Ll)({showCloseButton:!0,content:(0,s.jsx)("div",{style:{padding:16},children:(0,s.jsx)(ei,{gamesRated1Star:e.gamesRated1Star,gamesRated2Star:e.gamesRated2Star,gamesRated3Star:e.gamesRated3Star,gamesRated4Star:e.gamesRated4Star,gamesRated5Star:e.gamesRated5Star,gamesReviewCount:e.gamesReviewCount,gamesReviewAverage:e.gamesReviewAverage,groupID:e.groupID})})}))},children:"See all reviews"}),!j&&(0,s.jsx)(el.Z,{className:"btn btn-primary btn-sm",isLoading:h,onClick:x,children:"Load More"})]})]})}function er(e){let{gamesRated1Star:t,gamesRated2Star:a,gamesRated3Star:l,gamesRated4Star:n,gamesRated5Star:i,gamesReviewAverage:r,gamesReviewCount:o}=e;return(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:32,padding:"0 16px"},children:[(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:4,flex:"33
3%"},children:[(0,s.jsx)("div",{className:"h1",style:{marginTop:16,marginBottom:4},children:r}),(0,s.jsx)(ec,{rating:r}),(0,s.jsxs)("label",{style:{fontSize:"0.9rem"},children:[o," ",(0,s.jsx)("span",{children:1===o?"review":"reviews"})]})]}),(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:"100%",justifyContent:"center",marginTop:12,flex:"66%"},children:[(0,s.jsx)(ed,{totalRatings:o,rating:i,index:5}),(0,s.jsx)(ed,{totalRatings:o,rating:n,index:4}),(0,s.jsx)(ed,{totalRatings:o,rating:l,index:3}),(0,s.jsx)(ed,{totalRatings:o,rating:a,index:2}),(0,s.jsx)(ed,{totalRatings:o,rating:t,index:1})]})]})}function eo(e){let{postFeedback:t,isLastItem:a}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,width:"100%",height:"100%",padding:"0 16px"},children:[(0,s.jsxs)("div",{style:{display:"flex",gap:16,alignItems:"center"},children:[(0,s.jsx)(C.Z,{onClick:()=>i().push("/users/[userID]","/users/".concat(t.user.id)),className:K().avatar,user:{userID:t.user.id,firstName:t.user.firstName,lastName:t.user.lastName,photoURL:t.user.photoURL},style:{width:40,height:40,borderRadius:"50%"},rounded:!0,quality:"original"}),(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,s.jsxs)("span",{style:{fontSize:"1rem",fontWeight:"normal"},children:[t.user.firstName," ",t.user.lastName]}),(0,s.jsx)(b(),{href:"/posts/".concat(t.post.aliasID),target:"_blank",style:{fontSize:"0.9rem"},children:t.post.title})]})]}),(0,s.jsxs)("div",{style:{display:"flex",gap:12,alignItems:"center"},children:[(0,s.jsx)(ec,{rating:t.rating,fontSize:14}),(0,s.jsx)("span",{style:{fontSize:"0.8rem"},children:w().tz(t.dateCreated,t.post.timeZone).format("LL")})]}),(0,s.jsx)("span",{style:{margin:0,fontSize:"1rem",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical"},children:t.message})]}),!a&&(0,s.jsx)("div",{style:{backgroundColor:"rgba(0, 0, 0, 0.05)",width:"calc(100% - 16px)",height:1,margin:"auto"}})]})}let ed=e=>{let{totalRatings:t,rating:a,index:l}=e;return(0,s.jsxs)("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[(0,s.jsx)("span",{style:{fontSize:"0.8rem"},children:"".concat(l)}),(0,s.jsx)("div",{style:{width:"100%",backgroundColor:"#e0e0e0",height:"6px",borderRadius:"5px"},children:(0,s.jsx)("div",{style:{width:"".concat(t>0?a/t*100:0,"%"),backgroundColor:en,height:"100%",borderRadius:"5px"}})})]})},ec=e=>{let{rating:t,fontSize:a=24}=e;return(0,s.jsx)("div",{style:{display:"flex",gap:2},children:[void 0,void 0,void 0,void 0,void 0].map((e,l)=>(0,s.jsx)(eu,{fill:t>l?t>=l+1?1:t-l:0,fontSize:a},l))})},eu=e=>{let{fill:t,fontSize:a}=e;return(0,s.jsxs)("div",{style:{position:"relative",display:"inline-block",fontSize:a,color:"lightgray"},children:["☆ ",(0,s.jsx)("div",{style:{position:"absolute",top:0,left:0,overflow:"hidden",width:"".concat(100*Math.max(0,Math.min(t,1)),"%"),color:en},children:"★"})]})};a(20321),a(45752);var eh=a(64928),ep=a(32496);function em(e){var t,a,l,n,o,c,u,h,p,m,g,v,x;let{t:j}=(0,k.$G)(["helpers","group","league","leagueAdmin"]),y=(0,r.u5)(),w=(0,r.Qy)(e=>e.auth.user),C=(0,eh.TU)(e.groupDetail,w),D=null===(t=e.groupLayoutSummaries)||void 0===t?void 0:t.filter(e=>e.data.length>0),_=D&&(null==D?void 0:D.length)>0,S=f()(V().section,N().containerSpacing),I=(0,d.I)();return(0,s.jsxs)("div",{className:f()(V().subBg,V().home),style:{marginBottom:0,paddingBottom:16,backgroundColor:I?"white":"#f6f6f6"},children:[(null==e?void 0:null===(a=e.layout)||void 0===a?void 0:a.header)&&(0,s.jsx)("div",{className:f()(N().groupHeaderAnnouncementSection,N().containerSpacing),children:(0,s.jsx)(z,{header:e.layout.header})}),!!e.groupDetail.pinnedGroupAnnouncement&&(0,s.jsxs)("div",{className:S,children:[(0,s.jsxs)("div",{style:eg,children:[(0,s.jsx)("h4",{children:j("helpers:pinnedAnnouncement")}),(0,s.jsx)(b(),{href:"/[aliasID]/announcements",as:"/".concat(e.groupDetail.aliasID,"/announcements"),children:j("helpers:seeAll")})]}),(0,s.jsx)("div",{className:N().cardOutline,children:(0,s.jsx)($,{groupPath:"/".concat(e.groupDetail.aliasID),pinnedGroupAnnouncement:e.groupDetail.pinnedGroupAnnouncement})})]}
3),!_&&e.groupDetail.aliasID&&(0,s.jsxs)("div",{className:S,children:[(0,s.jsxs)("div",{style:eg,children:[(0,s.jsxs)("h4",{children:[" ",j("group:nextEvent")]}),e.posts&&e.posts.length>1&&(null===(l=e.layout)||void 0===l?void 0:l.tabs.some(e=>"events"===e.type))&&(0,s.jsx)(b(),{scroll:!1,href:"/[aliasID]/tab/[key]",as:"/".concat(e.groupDetail.aliasID,"/tab/").concat(null===(o=e.layout)||void 0===o?void 0:null===(n=o.tabs.find(e=>"events"===e.type))||void 0===n?void 0:n.key),children:j("helpers:seeAll")})]}),(0,s.jsx)(J,{posts:e.posts,eventFilters:null===(c=e.groupDetail)||void 0===c?void 0:c.eventFilters,groupIsPublic:null===(v=e.groupDetail.isPublic)||void 0===v||v,canCreateGame:null!==(x=C.canCreateGame)&&void 0!==x&&x,groupAliasID:e.groupDetail.aliasID})]}),(null===(u=e.groupDetail)||void 0===u?void 0:u.gameReviews)&&!I&&(null===(h=e.layout)||void 0===h?void 0:h.group.id)&&(0,s.jsxs)("div",{className:S,children:[(0,s.jsxs)("div",{style:eg,children:[(0,s.jsx)("h4",{children:"Reviews"}),(0,s.jsx)("a",{onClick:function(){var t,a,l,n;if(!(null===(t=e.groupDetail)||void 0===t?void 0:t.gameReviews)||!(null===(l=e.layout)||void 0===l?void 0:null===(a=l.group)||void 0===a?void 0:a.id)){y((0,W.Ll)({showCloseButton:!0,content:(0,s.jsx)(ep.Z,{body:"Failed to fetch reviews."})}));return}y((0,W.Ll)({showCloseButton:!0,content:(0,s.jsx)("div",{style:{padding:16},children:(0,s.jsx)(ei,{gamesRated1Star:e.groupDetail.gamesRated1Star,gamesRated2Star:e.groupDetail.gamesRated2Star,gamesRated3Star:e.groupDetail.gamesRated3Star,gamesRated4Star:e.groupDetail.gamesRated4Star,gamesRated5Star:e.groupDetail.gamesRated5Star,gamesReviewCount:e.groupDetail.gamesReviewCount,gamesReviewAverage:e.groupDetail.gamesReviewAverage,groupID:null===(n=e.layout)||void 0===n?void 0:n.group.id})})}))},children:j("helpers:seeAll")})]}),(0,s.jsx)("div",{className:N().cardOutline,style:{padding:16,backgroundColor:"white"},children:(0,s.jsx)(ei,{groupID:e.layout.group.id,gamesRated1Star:e.groupDetail.gamesRated1Star,gamesRated2Star:e.groupDetail.gamesRated2Star,gamesRated3Star:e.groupDetail.gamesRated3Star,gamesRated4Star:e.groupDetail.gamesRated4Star,gamesRated5Star:e.groupDetail.gamesRated5Star,gamesReviewCount:e.groupDetail.gamesReviewCount,gamesReviewAverage:e.groupDetail.gamesReviewAverage,reviewLimit:2})})]}),_&&(0,s.jsx)("div",{className:N().featureCarouselHomeView,children:D.map(t=>{var a;if(!e.groupDetail.aliasID)return null;let l="/".concat(e.groupDetail.aliasID,"/tab/").concat(t.tab.key);if(t.rootTags&&t.tab.rootTags){let e=t.rootTags.filter(e=>{var a;return!(null===(a=t.tab.rootTags)||void 0===a?void 0:a.includes(e))});e.length>0&&(l+="?tags=".concat(e.join(",")))}return(0,s.jsx)(U,{featuredItem:t,cardViewCustomizations:(0,T.getCardViewCustomizations)(null===(a=e.groupDetail)||void 0===a?void 0:a.eventFilters),t:j,aliasID:e.groupDetail.aliasID,viewAllURL:l,onRefresh:e.onLayoutSummariesReload},t.title)})}),!I&&e.groupDetail.gamePhotos&&e.groupDetail.gamePhotos.length>0&&(0,s.jsx)("div",{className:S,children:(0,s.jsx)(X.Z,{data:{items:e.groupDetail.gamePhotos},cardClass:f()(V().card,V().photoCard),linkClass:V().link,titleClass:V().title,onCaptionClick:e=>{let{aliasID:t}=e;return t&&i().push("/posts/[aliasID]","/posts/".concat(t))}})}),e.groupDetail.topUsers&&e.groupDetail.topUsers.length>0&&(0,s.jsxs)("div",{className:S,children:[(0,s.jsxs)("div",{style:eg,children:[(0,s.jsx)("h4",{children:j("helpers:members")}),C.canViewMembers&&(0,s.jsx)(b(),{scroll:!1,href:"/[aliasID]/members",as:"/".concat(e.groupDetail.aliasID,"/members"),children:j("helpers:seeAll")})]}),(0,s.jsx)(A,{groupID:e.groupDetail.id})]}),(null===(p=e.groupDetail)||void 0===p?void 0:p.userGroupBalances)&&(null===(g=e.groupDetail)||void 0===g?void 0:null===(m=g.userGroupBalances)||void 0===m?void 0:m.length)>0&&(0,s.jsxs)("div",{className:S,children:[(0,s.jsxs)("h4",{children:[j("helpers:accountCredit")," "]}),(0,s.jsxs)("div",{className:f()(V().card,N().cardOutline),children:[(0,s.jsx)("div",{className:V().center,children:e.groupDetail.userGroupBalances.map(e=>(0,s.jsx)("div",{className:V().balance,children:(0,T.prettifyPrice)(j,e.balanceInCents/100,e.currency)},e.currency))}),(0,s.jsx)("p",{className:f()(V().smallText,V().description),children:j("helpers:accountCreditDesc",{groupName:name})})]})]})]})}let eg={display:"flex",justifyContent:"space-between",alignItems:"center"};var ev=a(28047),ex=a(41204),ef=a(15472);function ej(){var e;let t=(0,n.useRouter)(),a=(0,r.u5)(),i=(0,r.Qy)(e=>e.auth.user),{aliasID:u}=t.query,x=(0,r.Qy)(e=>{var t;return null===(t=e.groupDetail.list.find(e=>{var t;return"string"==typeof u&&(null===(t=e.details.aliasID)||void 0===t?void 0:t.toLowerCase())===u.toLowerCase()}))||void 0===t?void 0:t.details}),f=null==x?void 0:x.aliasID,j=null==x?void 0:x.id,b=(0,r.Qy)(e=>e.forwardWebRouting.pageData.messageGroupSupport),y=null==i?void 0:i.id,w=null==b?void 0:b.aliasID,C=null==x?void 0:x.supportUser;(0,l.useEffect)(()=>{y&&f&&w&&C&&j&&w===f&&(a((0,g.oq)("messageGroupSupport")),C&&y!==C.id&&(0,v.BR)({users:[{id:C.id,firstName:C.firstName,lastName:C.lastName}],groupID:j}))},[w,a,f,j,C,y]);let{data:D}=(0,h.Z)(f),_=(0,p.V)((0,l.useCallback)(async()=>f?await (0,m.hW)({groupAliasID:f},i):null,[f,i]),{enabled:!!f}),S=(0,p.V)((0,l.useCallback)(async()=>"string"!=typeof f?null:await (0,m.Cq)(f,i),[f,i]),{enabled:!!f}),I=(0,l.useCallback)(e=>{"POST_UPDATE"===e.type&&S.data&&S.data.some(t=>"events"===t.type&&t.data.some(t=>t.id===e.payload.postID))&&S.reload()},[S]);(0,c.d)(ef.Is,I);let N=(0,d.I)();return(0,s.jsxs)("div",{className:Q().section,style:{display:"flex",flexDirection:"column",backgroundColor:N?"white":void 0},children:[(0,s.jsxs)("div",{style:{display:"flex",flexDirection:N?"column-reverse":"column"},children:[x&&(0,s.jsx)(ev.Z,{groupDetail:x,error:x.error,receivedAt:null!==(e=x.receivedAt)&&void 0!==e?e:null,loading:x.loading,reload:()=>{f&&a((0,o.fetchOneGroup)({aliasID:f}))},hideTitle:N,hideDescription:N}),!!x&&!!f&&!!D&&(0,s.jsx)(ex.Z,{tabs:D.tabs,currentTabKey:"os-internal-home",groupDetail:x,layout:D})]}),!!x&&!!D&&!!_.data&&(0,s.jsx)("div",{className:Q().container,children:(0,s.jsx)(em,{groupDetail:x,posts:_.data,groupLayoutSummaries:S.data,layout:D,onLayoutSummariesReload:S.reload})})]})}ej.getInitialProps=async e=>("string"==typeof e.query.aliasID&&await (0,u.jE)(e),{groupAliasID:e.query.aliasID,showCustomNavbar:!0,showBannerFooter:!1,namespacesRequired:["group"]});var eb=ej},49147:function(e,t,a){"use strict";a.d(t,{Z:function(){return l}});var s=a(67294);function l(e){let t=(0,s.useRef)(null);return(0,s.useEffect)(()=>{t.current&&(null===e.checked?t.current.indeterminate=!0:(t.current.checked=e.checked,t.current.indeterminate=!1))},[e.checked]),e.children({ref:t})}},25357:function(e,t,a){"use strict";a.d(t,{Z:function(){return x}});var s=a(85893),l=a(67294),n=a(93967),i=a.n(n),r=a(41484),o=a(17254),d=a(12854),c=a(22972),u=a(21427),h=a(47782),p=a(4
30603),m=a.n(p);function g(e){let{images:t,isOpen:a,currentIndex:n,title:i,closeLabel:r,deleteLabel:o,nextLabel:p,previousLabel:g,onClose:v,onDelete:x,onSelect:f}=e,j=(0,l.useRef)(null),b=(0,l.useRef)(null),y=(0,l.useRef)(null),w=t[n],C=n>0,D=n<t.length-1;return((0,l.useEffect)(()=>{var e;a&&(null===(e=y.current)||void 0===e||e.scrollIntoView({block:"nearest",inline:"center"}))},[n,a]),w)?(0,s.jsx)(d.fC,{modal:!1,open:a,onOpenChange:e=>{e||v()},children:(0,s.jsxs)(d.h_,{children:[(0,s.jsx)("div",{"aria-hidden":"true",className:m().lightboxOverlay,onClick:v}),(0,s.jsxs)(d.VY,{"aria-describedby":void 0,className:m().lightboxContent,onKeyDown:e=>{"ArrowLeft"===e.key&&C?(e.preventDefault(),f(n-1)):"ArrowRight"===e.key&&D&&(e.preventDefault(),f(n+1))},onInteractOutside:e=>{e.preventDefault()},onOpenAutoFocus:e=>{var t;b.current=document.activeElement instanceof HTMLElement?document.activeElement:null,e.preventDefault(),null===(t=j.current)||void 0===t||t.focus()},onCloseAutoFocus:e=>{var t;e.preventDefault(),null===(t=b.current)||void 0===t||t.focus(),b.current=null},children:[(0,s.jsx)(d.Dx,{className:m().visuallyHidden,children:i}),(0,s.jsxs)("div",{className:m().lightboxToolbar,children:[x&&(0,s.jsx)("button",{type:"button",className:m().lightboxDeleteButton,onClick:x,children:o}),(0,s.jsx)(d.x8,{asChild:!0,children:(0,s.jsx)("button",{ref:j,type:"button",className:m().lightboxCloseButton,"aria-label":r,title:"".concat(r," (Esc)"),children:(0,s.jsx)(c.Z,{"aria-hidden":"true"})})})]}),(0,s.jsxs)("div",{className:m().lightboxStage,children:[C&&(0,s.jsx)("button",{type:"button",className:m().lightboxPreviousButton,"aria-label":g,title:"".concat(g," (←)"),onClick:()=>f(n-1),children:(0,s.jsx)(u.Z,{"aria-hidden":"true"})}),(0,s.jsx)("button",{type:"button",className:m().lightboxImageButton,"aria-label":D?"".concat(p,": ").concat(w.alt):w.alt,disabled:!D,onClick:()=>f(n+1),children:(0,s.jsx)("img",{className:m().lightboxImage,src:w.src,srcSet:w.srcSet,sizes:w.srcSet?"100v
3w":void 0,alt:w.alt},w.id)}),D&&(0,s.jsx)("button",{type:"button",className:m().lightboxNextButton,"aria-label":p,title:"".concat(p," (→)"),onClick:()=>f(n+1),children:(0,s.jsx)(h.Z,{"aria-hidden":"true"})})]}),(0,s.jsxs)("div",{className:m().lightboxFooter,children:[(0,s.jsx)("div",{className:m().lightboxCaption,children:w.caption}),(0,s.jsxs)("div",{className:m().lightboxCount,children:[n+1," / ",t.length]})]}),(0,s.jsx)("div",{className:m().lightboxThumbnails,role:"group","aria-label":i,children:t.map((e,t)=>(0,s.jsx)("button",{ref:t===n?y:void 0,type:"button",className:m().lightboxThumbnailButton,"aria-label":"".concat(e.alt," ").concat(t+1),"aria-current":t===n?"true":void 0,onClick:()=>f(t),children:(0,s.jsx)("img",{src:e.thumbnail,alt:""})},e.id))})]})]})}):null}class v extends l.PureComponent{render(){let{data:e,cardClass:t,enableUpload:a,deletePhoto:l,isManager:n,user:r,t:d}=this.props,c=e&&e.items||[];if(!a&&0===c.length)return null;let{isOpen:u,currentImage:h}=this.state,p=a?8:9,v=c.slice(0,p),x=Math.max(0,Math.min(h,c.length-1)),f=c[x],j=r&&f&&r.id===f.userID,b=c.map(e=>({id:e.id,src:"".concat(e.url,"/media_2000w.jpg"),thumbnail:"".concat(e.url,"/media_200w.jpg"),srcSet:["".concat(e.url,"/media_200w.jpg 200w"),"".concat(e.url,"/media_500w.jpg 500w"),"".concat(e.url,"/media_1000w.jpg 1000w"),"".concat(e.url,"/media_2000w.jpg 2000w")].join(", "),alt:e.title||this.props.caption||d("form:eventPhoto"),caption:this._constructCaption(e)}));return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,s.jsx)("h4",{children:d("helpers:photos")}),c.length>p&&(0,s.jsx)("a",{onClick:this._seeAll,children:d("helpers:seeAll")})]}),(0,s.jsx)("div",{className:t,children:(0,s.jsxs)("div",{className:m().photos,children:[a&&(0,s.jsx)("div",{className:m().photoContainer,children:(0,s.jsx)(o.Z,{className:i()(m().preview,m().imageField),enableUpload:!0,disableCropping:!0,title:d("form:uploadEventPhotos"),displayQuality:"low",uploadBucket:"posts",onUploaded:this.props.onUploaded,onAdd:this.props.onAdd,multiple:!0,minWidth:1e3})}),v.map((e,t)=>(0,s.jsx)("div",{className:m().photoContainer,children:(0,s.jsx)("button",{type:"button",title:d("form:eventPhoto"),"aria-label":e.title||this.props.caption||d("form:eventPhoto"),className:m().thumbnailContainer,onClick:()=>this._openLightBox(t),children:(0,s.jsx)("img",{className:m().thumbnail,src:"".concat(e.url,"/media_200w.jpg"),srcSet:["".concat(e.url,"/media_200w.jpg 200w"),"".concat(e.url,"/media_500w.jpg 500w"),"".concat(e.url,"/media_1000w.jpg 1000w")].join(", "),sizes:"33vw",alt:""})})},e.id)),(0,s.jsx)(g,{images:b,isOpen:!!(f&&u),currentIndex:x,title:d("helpers:photos"),closeLabel:d("helpers:close"),deleteLabel:d("helpers:delete"),nextLabel:d("helpers:next"),previousLabel:d("helpers:back"),onClose:this._closeLightBox,onDelete:l&&(n||j)?this._deleteCurrentImage:void 0,onSelect:this._gotoImage})]})})]})}constructor(...e){super(...e),this.state={isOpen:!1,currentImage:0},this._openLightBox=e=>{var t;this.setState({isOpen:!0,currentImage:e}),(null===(t=this.props.data)||void 0===t?void 0:t.total)&&this.props.data.total>this.props.data.items.length&&this.props.loadMedia&&this.props.loadMedia()},this._closeLightBox=()=>this.setState({isOpen:!1,currentImage:0}),this._gotoImage=e=>this.setState({currentImage:e}),this._deleteCurrentImage=()=>{let{currentImage:e}=this.state;if(!this.props.data)return;let t=this.props.data.items[e];t&&this.props.deletePhoto&&this.props.deletePhoto(t).then(()=>{let e=Math.min(this.props.data?this.props.data.items.length-1:0,this.state.currentImage);this.setState({currentImage:e})}).catch(e=>console.log("deletephoto failed",e))},this._seeAll=()=>{this._openLightBox(0)},this._constructCaption=e=>{let t=e.title||this.props.caption;return t?this.props.onCaptionClick?(0,s.jsx)("button",{className:"btn btn-link",onClick:()=>this._onCaptionClick(e),children:t}):t:null},this._onCaptionClick=e=>{this.setState({isOpen:!1},()=>{var t,a;return null===(t=(a=this.props).onCaptionClick)||void 0===t?void 0:t.call(a,e)})}}}var x=(0,r.Zh)(["form","common","helpers"])(v)},28449:function(e){e.exports={cardHover:"GroupHome_cardHover__0qxR6",dropdown:"GroupHome_dropdown__PbtO5"}},11262:function(e){e.exports={labelContainer:"Tabs_labelContainer__8JRnZ",light:"Tabs_light__txgnR",active:"Tabs_active__Eomm3",layoutLabelContainer:"Tabs_layoutLabelContainer__Vryz3",equalWidth:"Tabs_equalWidth__0xPOd",tabItems:"Tabs_tabItems__Zz0AD",textItem:"Tabs_textItem__HhPb2",selected:"Tabs_selected__RVMxw",textContainer:"Tabs_textContainer__lN2LB",iconContainer:"Tabs_iconContainer__b35kh",tabLabelIconLabel:"Tabs_tabLabelIconLabel__uUIQC",tabLabelIcon:"Tabs_tabLabelIcon__g8viA",tabLabelIconImage:"Tabs_tabLabelIconImage__MYGe3",tabHeaderCarouselDots:"Tabs_tabHeaderCarouselDots__SRoTt",overflowOverlayIndicator:"Tabs_overflowOverlayIndicator__mcAXO",overflowOverlayIndicatorArrow:"Tabs_overflowOverlayIndicatorArrow__oe074",whitelabelled:"Tabs_whitelabelled__R7gzF",right:"Tabs_right__IpeUU",left:"Tabs_left__S4Q9h",overflowArrow:"Tabs_overflowArrow__OwQss",overflowPolyLine:"Tabs_overflowPolyLine__VlFY_"}}},function(e){e.O(0,[19465,29195,91138,89346,28047,47296,92888,49774,40179],function(){return e(e.s=97179)}),_N_E=e.O()}]);
4//# sourceMappingURL=[aliasID]-41868de0b101b6bf.js.map
5//# debugId=63f466e7-d8f5-57d4-a780-2ccced5adf08

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.