"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9411],{69411:function(e,s,a){a.d(s,{Z:function(){return MainLayout_MainLayout}});var t=a(85893),n=a(67294),r=a(11010),l=a(91309),i=a(97582),c=a(11163),o=a(41664),d=a.n(o),h=a(74946),u=a(36474),m=a(26101),f=a(39334),p=a(55889),x=a(63178);a(8899);var j=a(25675),g=a.n(j),N=a(18767),v=a(23773),Footer=function(){(0,c.useRouter)(),new Date().getFullYear();var e,s,a=(0,l._)((0,n.useState)(),2),o=a[0],j=a[1],y=(0,l._)((0,n.useState)(),2),b=y[0],k=y[1],_=(0,l._)((0,n.useState)(),2),w=_[0],S=_[1],A=(0,l._)((0,n.useState)(!1),2),L=A[0],B=A[1];encodeURIComponent("API Access Request"),encodeURIComponent("\uD83D\uDC4DI would like to learn about API access to ShotQuality");var C=null===(s=(0,n.useContext)(N.Il))||void 0===s?void 0:s.userDetail,P=v.ZP.isTrader(C),D=(e=(0,r._)(function(e){return(0,i.Jh)(this,function(s){return(j(),e.preventDefault(),w&&""!=w)?validateEmail()?fetch("".concat("https://shotqualitybets.com","/api/klaviyo/footer/").concat(w,"/save")).then(function(e){200===e.status?(B(!0),k("Request has been sent successfully!"),j("")):j("An error occurred. Please try again")}).catch(function(e){console.error("err",e),j("An error occurred. Please try again")}):j("Email is not valid"):j("Please enter an email"),[2]})}),function(s){return e.apply(this,arguments)}),validateEmail=function(){var e=w.lastIndexOf("@"),s=w.lastIndexOf(".");return e<s&&e>0&&-1==w.indexOf("@@")&&s>2&&w.length-s>2};return(0,t.jsx)("div",{children:(0,t.jsxs)("footer",{className:"footer text-center",children:[(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("div",{className:"footerGeneral",children:[(0,t.jsxs)("div",{className:"row ",children:[(0,t.jsx)("div",{className:"col-12 text-center col-md-3 mb-3 order-md-1 order-1",children:(0,t.jsx)(g(),{src:h.default.src,width:286,height:40,style:{height:"auto"},alt:"Footer logo"})}),(0,t.jsx)("div",{className:"col-12 text-center col-md-6 mb-5 order-md-2 order-3",children:!P&&(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsxs)("form",{action:"#",className:"",style:{display:"flex",gap:"1rem",alignItems:"start",justifyContent:"center",flexWrap:"wrap"},children:[(0,t.jsx)("input",{type:"email",placeholder:"Enter your Email",className:"input outline",id:"exampleInputEmail1","aria-describedby":"emailHelp",style:{minWidth:"20rem"},onChange:function(e){S(e.target.value)},value:w}),(0,t.jsx)("button",{className:"btn btn-orange p-10-15",onClick:D,disabled:L,children:"Get Free Picks"})]}),(0,t.jsxs)("div",{className:"position-relative w-100 text-left",children:[o?(0,t.jsx)("p",{className:"wrongDetails mb-0 p-0",children:o}):(0,t.jsx)(t.Fragment,{}),b?(0,t.jsx)("p",{className:"formSuccess mb-0 p-0",children:b}):(0,t.jsx)(t.Fragment,{})]})]})}),(0,t.jsx)("div",{className:"col-12 text-center col-md-3 mb-4 order-md-3 order-2",children:(0,t.jsx)("div",{className:"mobileFooterBtn",children:(0,t.jsx)("div",{className:"d-flex justify-content-center",children:(0,t.jsxs)("div",{className:"footerSocialIcons",children:[(0,t.jsx)("div",{className:"SocialIcon",children:(0,t.jsx)(d(),{className:"footerBtn",href:"https://twitter.com/shotqualitybets",target:"blank",children:(0,t.jsx)(g(),{loading:"lazy",width:24,height:24,src:u.default.src,className:"SocialIconImg",alt:"Twitter"})})}),(0,t.jsx)("div",{className:"SocialIcon",children:(0,t.jsx)(d(),{className:"footerBtn",href:"https://www.tiktok.com/@shotqualitybets",target:"blank",children:(0,t.jsx)(g(),{loading:"lazy",width:24,height:24,src:f.default.src,className:"SocialIconImg",alt:"TikTok"})})}),(0,t.jsx)("div",{className:"SocialIcon",children:(0,t.jsx)(d(),{className:"footerBtn",href:"https://www.instagram.com/shot_quality/",target:"blank",children:(0,t.jsx)(g(),{loading:"lazy",width:24,height:24,src:p.default.src,className:"SocialIconImg",alt:"Instagram"})})}),(0,t.jsx)("div",{className:"SocialIcon",children:(0,t.jsx)(d(),{className:"footerBtn",href:"https://www.youtube.com/channel/UCpPaMp8E_Wv1a3dc8mL57dA",target:"blank",children:(0,t.jsx)(g(),{loading:"lazy",width:24,height:24,src:m.default.src,className:"SocialIconImg",alt:"Youtube"})})}),(0,t.jsx)("div",{className:"SocialIcon",children:(0,t.jsx)(d(),{className:"footerBtn",href:"https://podcasts.apple.com/us/podcast/shotquality-bets/id1657213908",target:"blank",children:(0,t.jsx)(g(),{loading:"lazy",width:24,height:24,src:x.default.src,className:"SocialIconImg",alt:"Apple Podcast"})})})]})})})})]}),(0,t.jsxs)("div",{className:"middleFooterBlock row",children:[(0,t.jsxs)("div",{className:"col-md-3 col-12 footerColumn",children:[(0,t.jsx)("span",{className:"columnHeader",children:"Your Membership"}),(0,t.jsxs)("div",{style:{marginBottom:"25px"},children:[!P&&(0,t.jsx)(d(),{href:"/welcome",className:"answer",children:(0,t.jsx)("p",{children:"Activate your membership"})}),(0,t.jsx)(d(),{href:"/login",className:"answer",children:(0,t.jsx)("p",{children:"Login to your account"})}),!P&&(0,t.jsx)(d(),{href:"https://discord.com/invite/shotquality",className:"answer",children:(0,t.jsx)("p",{children:"Join Us on Discord"})})]}),(0,t.jsx)("span",{className:"columnHeader",children:"Premium Tools"}),!P&&(0,t.jsx)(d(),{href:"/premium-tools",children:(0,t.jsx)("p",{className:"footerLink",children:"Premium Analysis"})}),(0,t.jsx)(d(),{href:"/build",children:(0,t.jsx)("p",{className:"footerLink",children:"Access the ShotQuality API"})}),(0,t.jsx)(d(),{href:"https://docs.api.shotquality.com/docs/introduction",target:"_blank",children:(0,t.jsx)("p",{className:"footerLink",children:"Developers & API Docs"})})]}),(0,t.jsxs)("div",{className:"col-md-3 col-12 footerColumn",children:[(0,t.jsx)("span",{className:"columnHeader",children:"NBA Basketball Predictions"}),(0,t.jsxs)("div",{style:{marginBottom:"25px"},children:[(0,t.jsx)(d(),{href:"/nba/shotquality-scores",children:(0,t.jsx)("p",{className:"footerLink",children:"NBA Basketball ScoreCenter"})}),(0,t.jsx)(d(),{href:"/nba/betting-record",children:(0,t.jsx)("p",{className:"footerLink",children:"NBA Betting Trends"})}),(0,t.jsx)(d(),{href:"/nba/team-standings",children:(0,t.jsx)("p",{className:"footerLink",children:"NBA Basketball Standings"})}),(0,t.jsx)(d(),{href:"/nba/regression-stats",children:(0,t.jsx)("p",{className:"footerLink",children:"NBA Regression Statistics"})}),(0,t.jsx)(d(),{href:"/nba/trend-finder",children:(0,t.jsx)("p",{className:"footerLink",children:"NBA Trend Finder"})}),(0,t.jsx)(d(),{href:"/nba/player-stats",children:(0,t.jsx)("p",{className:"footerLink",children:"NBA Player Analysis"})}),(0,t.jsx)(d(),{href:"/nba/picks/playerprops",children:(0,t.jsx)("p",{className:"footerLink",children:" NBA Player Props Research"})})]})]}),(0,t.jsxs)("div",{className:"col-md-3 col-12 footerColumn",children:[(0,t.jsx)("span",{className:"columnHeader",children:"NCAAM Basketball Predictions"}),(0,t.jsxs)("div",{style:{marginBottom:"25px"},children:[(0,t.jsx)(d(),{href:"/ncaa/shotquality-scores",children:(0,t.jsx)("p",{className:"footerLink",children:"NCAAM Basketball ScoreCenter"})}),!P&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(d(),{href:"/ncaa/betting-record",children:(0,t.jsx)("p",{className:"footerLink",children:"NCAAM Betting Trends"})})}),(0,t.jsx)(d(),{href:"/ncaa/team-standings",children:(0,t.jsx)("p",{className:"footerLink",children:"NCAAM Basketball Standings"})}),(0,t.jsx)(d(),{href:"/ncaa/regression-stats",children:(0,t.jsx)("p",{className:"footerLink",children:"NCAAM Regression Stats"})}),(0,t.jsx)(d(),{href:"/ncaa/trend-finder",children:(0,t.jsx)("p",{className:"footerLink",children:"NCAAM Trend Finder"})}),(0,t.jsx)(d(),{href:"/ncaa/player-stats",children:(0,t.jsx)("p",{className:"footerLink",children:"NCAAM Player Analysis"})}),!P&&(0,t.jsx)(d(),{href:"/ncaa/picks",children:(0,t.jsx)("p",{className:"footerLink",children:"NCAAM Basketball Picks and Predictions"})})]})]}),(0,t.jsxs)("div",{className:"col-md-3 col-12 footerColumn",children:[(0,t.jsx)("span",{className:"columnHeader",children:"WNBA Basketball Predictions"}),(0,t.jsxs)("div",{style:{marginBottom:"25px"},children:[(0,t.jsx)(d(),{href:"/wnba/shotquality-scores",children:(0,t.jsx)("p",{className:"footerLink",children:"WNBA Basketball ScoreCenter"})}),(0,t.jsx)(d(),{href:"/wnba/betting-record",children:(0,t.jsx)("p",{className:"footerLink",children:"WNBA Betting Trends"})}),(0,t.jsx)(d(),{href:"/wnba/team-standings",children:(0,t.jsx)("p",{className:"footerLink",children:"WNBA Basketball Standings"})}),(0,t.jsx)(d(),{href:"/wnba/regression-stats",children:(0,t.jsx)("p",{className:"footerLink",children:"WNBA Regression Stats"})}),(0,t.jsx)(d(),{href:"/wnba/trend-finder",children:(0,t.jsx)("p",{className:"footerLink",children:"WNBA Trend Finder"})}),(0,t.jsx)(d(),{href:"/wnba/player-stats",children:(0,t.jsx)("p",{className:"footerLink",children:"WNBA Player Analysis"})}),(0,t.jsx)(d(),{href:"/wnba/picks/playerprops",children:(0,t.jsx)("p",{className:"footerLink",children:" WNBA Player Props Research"})})]})]}),(0,t.jsxs)("div",{className:"col-md-3 col-12 footerColumn",children:[(0,t.jsx)("span",{className:"columnHeader",children:"How ShotQuality Works"}),(0,t.jsx)(d(),{href:"/stats-explained",children:(0,t.jsx)("p",{className:"footerLink",children:"ShotQuality Predictive Models"})}),(0,t.jsx)(d(),{href:"/stats-explained#sq-points",children:(0,t.jsx)("p",{className:"footerLink",children:"ShotQuality Predictive Scores"})}),(0,t.jsx)(d(),{href:"/stats-explained#adj-sq",children:(0,t.jsx)("p",{className:"footerLink",children:"Adjusted ShotQuality Stats"})}),(0,t.jsx)(d(),{href:"/stats-explained#record-luck",children:(0,t.jsx)("p",{className:"footerLink",children:"Calculating Record Luck"})}),(0,t.jsx)(d(),{href:"/stats-explained#Rim&3",children:(0,t.jsx)("p",{className:"footerLink",children:"ShotQuality Rim and 3 Pointers Statistics"})}),(0,t.jsx)(d(),{href:"/stats-explained#passing-stats",children:(0,t.jsx)("p",{className:"footerLink",children:"ShotQuality Passing Stats"})}),(0,t.jsx)(d(),{href:"/stats-explained#misc-stats",children:(0,t.jsx)("p",{className:"footerLink",children:"Other Basketball Statistics"})}),(0,t.jsx)(d(),{href:"/glossary",children:(0,t.jsx)("p",{className:"footerLink",children:"Winning Metrics"})})]}),(0,t.jsxs)("div",{className:"col-md-3 col-12 footerColumn",children:[(0,t.jsx)("span",{className:"columnHeader",children:"Blog & Basketball Analysis"}),!P&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d(),{href:"/betcast",children:(0,t.jsx)("p",{className:"footerLink",children:"BetCast"})}),(0,t.jsx)(d(),{href:"/blog",children:(0,t.jsx)("p",{className:"footerLink",children:"FREE NCAA Pick of the Day"})}),(0,t.jsx)(d(),{href:"/blog",children:(0,t.jsx)("p",{className:"footerLink",children:"ShotQuality Expert Analysis"})})]}),!P&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(d(),{href:"/ncaa/picks",children:(0,t.jsx)("p",{className:"footerLink",children:"NCAAM Basketball Picks and Predictions"})})}),(0,t.jsx)(d(),{href:"/blog",children:(0,t.jsx)("p",{className:"footerLink",children:"ShotQuality Bets Podcast"})})]}),(0,t.jsxs)("div",{className:"col-md-3 col-12 footerColumn",children:[(0,t.jsx)("span",{className:"columnHeader",children:"Contact Us"}),(0,t.jsxs)("div",{style:{marginBottom:"25px"},children:[(0,t.jsx)("p",{className:"question",children:"\uD83D\uDC4B\uD83C\uDFFD Need help?"}),(0,t.jsx)(d(),{target:"_blank",href:"https://info.shotquality.com/",className:"answer",children:(0,t.jsx)("p",{children:"Help Center"})}),(0,t.jsx)(d(),{target:"_blank",href:"/stats-explained",className:"answer",children:(0,t.jsx)("p",{children:"Stats Explained"})}),(0,t.jsx)(d(),{href:"mailto:hello@shotquality.com",className:"answer",children:(0,t.jsx)("p",{children:"\uD83D\uDCE7 hello@shotquality.com"})})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"question",children:"Partner?"}),(0,t.jsx)(d(),{href:"mailto:partners@shotquality.com",className:"answer",children:(0,t.jsx)("p",{children:"partners@shotquality.com"})})]})]}),(0,t.jsxs)("div",{className:"col-md-12 policyWrapper",children:[(0,t.jsx)("p",{style:{color:"#fff",fontSize:"12px",fontWeight:400},children:"\xa9 Copyright ShotQuality, Inc. 2024"}),(0,t.jsxs)("div",{className:"footerLink fd-row",children:[(0,t.jsx)(d(),{href:"/privacy-policy",className:"footerBtn",style:{marginRight:"24px"},children:"Privacy Policy"}),(0,t.jsx)(d(),{href:"/terms-of-service",className:"footerBtn",style:{marginRight:"24px"},children:"Terms of Service"}),(0,t.jsx)(d(),{href:"/sitemap.xml",className:"footerBtn",children:"Sitemap"})]})]})]})]})}),(0,t.jsx)("div",{style:{width:"100%",height:"1px",marginTop:"30px",backgroundColor:"#6B6C72"}}),(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("div",{className:"bottomFooterBlock",children:[(0,t.jsxs)("p",{children:[(0,t.jsx)("b",{children:"DISCLAIMER:"})," This site is 100% for entertainment purposes only and does not involve real money betting. There is no gambling offered on the site and no guarantees are made for any specific outcome. If you or someone you know has a gambling problem and wants help, call 1-800 GAMBLER. This service is intended for adult users only."]}),(0,t.jsx)("p",{children:"We are commited to making our website accessible and user friendly to all. While we are consistently working to improve, we welcome your feedback and accommodation requests. If you are having difficulty accessing or navigation our website, or if you have any suggestions to improve accessability, please email our team."}),(0,t.jsxs)("p",{children:[(0,t.jsx)("b",{children:"AFFILIATE DISCLOSURE:"})," ShotQuality may receive advertising commissions for visits or account creation to a sportsbook website."]})]})})]})})},y=a(8128),b=a(72253),k=a(14932),_=a(4586),w=a(7922),S=a(1489),A=a(10708),L=a(5152),B=a.n(L),C=a(12337),P=a(80095),D=B()(function(){return a.e(4516).then(a.bind(a,54516))},{loadableGenerated:{webpack:function(){return[54516]}},ssr:!0}),I={control:function(e){return(0,k._)((0,b._)({},e),{height:"30px",maxHeight:"30px",minHeight:"30px",backgroundColor:"white"})},dropdownIndicator:function(e){return(0,k._)((0,b._)({},e),{padding:"0px",margin:"0px"})},menu:function(e){return(0,k._)((0,b._)({},e),{marginTop:"0",padding:"0px",margin:"0px"})}};Object.keys(y.K);var T=["January","February","March","April","May","June","July","August","September","October","November","December"],components_LiveLinksHeader=function(){var e,s,a=(0,l._)((0,n.useState)(null),2),o=a[0],d=a[1],h=(0,c.useRouter)(),u=(null===(e=h.query)||void 0===e?void 0:e.league)===void 0?"nba":null===(s=h.query)||void 0===s?void 0:s.league,m=(0,l._)((0,n.useState)(null),2),f=m[0],p=m[1],x=(0,l._)((0,n.useState)(0),2),j=x[0],g=x[1],y=(0,l._)((0,A.Z)(["token_access"]),1)[0],L=(0,n.useContext)(N.Il),B=L.store,E=L.setStore,F=B.showLiveLinkHeader,M=(0,n.useRef)(),q=(0,l._)((0,n.useState)(void 0===F||F),2),H=q[0],R=q[1],W=v.ZP.hasPremiumPlan(o),O=v.ZP.hasStandardPlan(o),Q=v.ZP.isTrader(o),Z=(0,l._)((0,n.useState)("ncaa"===u?"college_mens":u),2),G=Z[0],J=Z[1],U=(0,l._)((0,n.useState)([]),2),z=U[0],Y=U[1],K=(0,l._)((0,n.useState)([]),2),V=K[0],X=K[1],$=(0,l._)((0,n.useState)([]),2),ee=$[0],es=$[1],ea=(0,l._)((0,n.useState)([]),2),et=ea[0],en=ea[1],er=(0,l._)((0,n.useState)([]),2),el=er[0],ei=er[1],ec=(0,l._)((0,n.useState)([]),2),eo=ec[0],ed=ec[1],eh=(0,l._)((0,n.useState)(!1),2),eu=eh[0],em=eh[1],ef=(0,l._)((0,n.useState)([{value:"All",label:"All"}]),2),ep=ef[0],ex=ef[1],ej=(0,l._)((0,n.useState)(),2),eg=ej[0],eN=ej[1],ev="",ey=eo.map(function(e,s){0===s&&(ev="");var a=formatDate(new Date(e.game_time_nyc).getTime()),r=new Date(e.game_time_nyc).getTime(),l=new Date(r),i=l.getHours(),c=l.getMinutes(),o={game:e,maxCardHeight:j,formattedDate:a,time:"".concat(i%12==0?12:i%12,":").concat(c<10?"0".concat(c):c," ").concat(i>=12?"PM":"AM"),leagueFromUrl:u,store:B,idx:s,isPremiumPlan:W,isStandardPlan:O};if(e.filterDate!==ev&&"final"!==e.status){ev=e.filterDate;var d=e.filterDate.split(" ");return(0,t.jsxs)(n.Fragment,{children:[(0,t.jsxs)("div",{className:" text-center p-2",style:{width:"5rem"},children:[(0,t.jsx)("h6",{children:d[0]}),(0,t.jsx)("div",{children:d[1]})]},"date-filter"+s),(0,t.jsx)(D,{data:o},"game-card"+s)]},"frag"+s)}return"final"===e.status?null:(0,t.jsx)(D,{data:o},"game-card-else"+s)});function formatDate(e){var s=new Date(e),a=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][s.getDay()],t=T[s.getMonth()],n=s.getDate(),r=function(e){if(e>=11&&e<=13)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}(n);return"".concat(a," ").concat(t," ").concat(n).concat(r)}(0,n.useEffect)(function(){p(document.cookie.split("token_access=").pop().split(";").shift());var e=176;M.current.childNodes.forEach(function(s){if(s.nodeType===Node.ELEMENT_NODE){var a=s.offsetHeight;a>e&&(e=a)}}),g(e)},[]),(0,n.useEffect)(function(){var e=localStorage.getItem("user");e&&d(JSON.parse(e))},[f]);var sortGames=function(e){return e.sort(function(e,s){return"live"===e.status&&"live"!==s.status?-1:"live"!==e.status&&"live"===s.status?1:"live"===e.status&&"live"===s.status?new Date(e.game_time_nyc)-new Date(s.game_time_nyc):"final"===e.status&&"final"!==s.status?1:"final"!==e.status&&"final"===s.status?-1:("final"===e.status&&s.status,new Date(e.game_time_nyc)-new Date(s.game_time_nyc))})},eb=["college_mens","nba","college_womens","wnba"];return Q&&eb.push("japan_b1"),(0,n.useEffect)(function(){if(f){var e,s;Promise.all(eb.map(function(e){return(0,S.in)("/api/".concat(e,"/live-games").concat(o?"":"/unprotected"),f)})).then(function(e){return e.map(function(e){return e?{leagueType:e.config.url.match(/\/api\/([^\/]+)\/live-games/)[1],data:e.data}:null})}).then((e=(0,r._)(function(e){var s,a,t,n,r,l,c,o;return(0,i.Jh)(this,function(i){return s={college_mens:[],wnba:[],nba:[],college_womens:[]},e.forEach(function(e){if(e){var a=e.leagueType,t=e.data;s[a]=t.data?t.data.map(function(e){return(0,k._)((0,b._)({},e),{leagueType:a})}):[]}}),Object.keys(s).forEach(function(e){s[e]=sortGames(s[e])}),t=(a=sortGames(((e=e.filter(function(e){return e})).flatMap(function(e){var s=e.leagueType,a=e.data;return a.data?a.data.map(function(e){return(0,k._)((0,b._)({},e),{leagueType:s})}):[]})||[]).map(function(e){var s=formatDate(new Date(e.game_time_nyc).getTime()).split(" "),a=s[0].substring(0,3).toUpperCase(),t=T.indexOf(s[1])+1+"/"+s[2].substring(0,s[2].length-2);return(0,k._)((0,b._)({},e),{filterDate:a+" "+t})}))).filter(function(e){return"live"===e.status}),n=a.filter(function(e){return"nba"===e.leagueType}),r=a.filter(function(e){return"wnba"===e.leagueType}),l=a.filter(function(e){return"college_mens"===e.leagueType}),localStorage.setItem("HeaderLeagueGames",JSON.stringify(s)),X(t),es(n),en(r),ei(l),E((0,k._)((0,b._)({},B),{headerLeagueGames:s})),Y(a),c=a.map(function(e){return"final"===e.status?null:e.filterDate}),o=(0,_._)(new Set(c)).map(function(e){return{value:e,label:e}}),ex([{value:"All",label:"All"}].concat((0,_._)(o))),"ncaa"===u&&l.length>0?J("college_mens"):"wnba"===u&&r.length>0?J(u):"nba"===u&&n.length>0?J(u):J("all"),setTimeout(function(){em(!0)},800),[2]})}),function(s){return e.apply(this,arguments)})).catch((s=(0,r._)(function(e){var s;return(0,i.Jh)(this,function(a){switch(a.label){case 0:if(!e.message.includes("401"))return[3,6];a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch("".concat("https://shotqualitybets.com","/api/refresh"),{method:"POST",headers:{Authorization:"Bearer ".concat(f)},body:f})];case 2:return[4,a.sent().json()];case 3:return(s=a.sent()).access_token?(y("token_access",s.access_token),p(s.access_token)):console.error("Error refreshing token",s),[3,5];case 4:return console.error("Error during token refresh:",a.sent()),[3,5];case 5:return[3,7];case 6:console.error("API request error:",e),a.label=7;case 7:return[2]}})}),function(e){return s.apply(this,arguments)}))}},[f,o]),(0,n.useEffect)(function(){var e,s,a,t,n,r=[];G||J(B.leagueType),"live"===G?(e=r).push.apply(e,(0,_._)(V)):"wnba"===G?(s=r).push.apply(s,(0,_._)(et)):"nba"===G?(a=r).push.apply(a,(0,_._)(ee)):"college_mens"===G?(t=r).push.apply(t,(0,_._)(el)):(n=r).push.apply(n,(0,_._)(z)),eg&&"All"!==eg&&(r=r.filter(function(e){return e.filterDate===eg})),ed(r=r.filter(function(e){return"final"!==e.status}))},[z,V,ee,et,el,G,eg]),(0,t.jsxs)("div",{style:{position:"relative"},children:[(0,t.jsx)(w.Z,{id:"live-link-header",className:"live-header-navbar",ref:M,bg:"light",variant:"light",children:eu&&H&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"live-header-league-menu",children:[(0,t.jsx)("div",{onClick:function(){return J("all")},className:"live-header-league-menu-item ".concat("all"===G?"active":""),children:"All"}),(0,t.jsx)("div",{onClick:function(){return J("nba")},className:"live-header-league-menu-item ".concat("nba"===G?"active":""),children:"NBA"}),(0,t.jsx)("div",{onClick:function(){return J("wnba")},className:"live-header-league-menu-item ".concat("wnba"===G?"active":""),children:"WNBA"})]}),ey,0===ey.length&&(0,t.jsxs)("h4",{className:"w-100 text-center",children:["No"," ","all"===G?"":"college_mens"===G?"NCAA":null==G?void 0:G.toUpperCase()," ","games available!"]})]})}),eu&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"live-header-hide-show-btn d-flex justify-content-center",children:[(0,t.jsx)("span",{children:"Hide Scores"}),(0,t.jsx)(C.Z,{isShown:!H,handleHideShow:function(){E((0,k._)((0,b._)({},B),{showLiveLinkHeader:!H})),R(!H)}})]}),H&&(0,t.jsx)("span",{className:"live-header-hide-show-btn select-date-filter-dropdown d-flex justify-content-center",children:(0,t.jsx)(P.ZP,{instanceId:"select-filter-date",id:"select-filter-date",options:ep,placeholder:"All conferences",value:{value:eg||"All",label:eg||"Select Date"},styles:I,onChange:function(e){eN(e.value)}})})]})]})},E=a(60069),F=a.n(E),M=a(72138),q=a.n(M),H=a(15441),R=a.n(H),W=a(9134);a(27967);var MainLayout_MainLayout=function(e){var s=e.children,a=e.showLiveLinkHeader,n=e.className,r=void 0===n?"":n;return(0,t.jsxs)("div",{className:"".concat(F().variable," ").concat(q().variable," ").concat(R().variable," ").concat(r),children:[(0,t.jsx)(y.h,{}),(void 0===a||a)&&(0,t.jsx)(components_LiveLinksHeader,{}),s,(0,t.jsx)(Footer,{}),(0,t.jsx)(W.Ix,{})]})}},12337:function(e,s,a){var t=a(85893);a(67294),s.Z=function(e){var s=e.isShown,a=e.handleHideShow,n=e.id,r=void 0===n?"":n;return(0,t.jsxs)("div",{className:"toggler-checkbox",children:[(0,t.jsx)("input",{type:"checkbox",id:"cbx_"+r,onChange:a,checked:s}),(0,t.jsx)("label",{htmlFor:"cbx_"+r,className:"toggle",children:(0,t.jsx)("span",{})})]})}},8899:function(e,s,a){var t=a(72253),n=a(14932),r=a(47702),l=a(85893),i=a(67294).forwardRef(function(e,s){var a,i=e.icon,c=e.rightIcon,o=(0,r._)(e,["icon","rightIcon"]);return(0,l.jsxs)("div",{className:"form-group form-input",children:[i?(0,l.jsx)("span",{className:"form-icon form-icon__left",children:i}):null,(0,l.jsx)("input",(0,n._)((0,t._)({},o),{className:"form-control ".concat(null!==(a=null==o?void 0:o.className)&&void 0!==a?a:""),ref:s})),c?(0,l.jsx)("span",{className:"form-icon form-icon__right",children:c}):null]})});i.displayName="Input",s.Z=i}}]);
//# sourceMappingURL=9411-f5b020ec8fc8dfce.js.map