!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="aca0c089-4b66-46be-a78d-b963ad61e333",e._sentryDebugIdIdentifier="sentry-dbid-aca0c089-4b66-46be-a78d-b963ad61e333")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[26260],{18645:(e,t,r)=>{r.d(t,{eD:()=>l.e,pY:()=>n.p,tg:()=>a.t});var a=r(91407),n=r(91603),l=r(33480)},39975:(e,t,r)=>{r.d(t,{A:()=>i,q:()=>o});var a=r(6029),n=r(99064),l=r(55729),s=r(43072);let o=e=>{let{initialVisible:t=!1,defaultHeight:r=0,visibleOffset:o=1e3,persist:i=!1,loader:c,children:d,...u}=e,p={initialInView:t,rootMargin:"".concat(o,"px 0px ").concat(o,"px 0px")},[h,x,g]=(0,s.Wx)(p),m=(0,l.useRef)(t),y=(0,l.useRef)(r);(0,l.useEffect)(()=>{x&&!0!==m.current&&(m.current=!0),x&&y.current!==r&&(y.current=(null==g?void 0:g.boundingClientRect.height)||r)},[x,g]);let f=c||(y.current?(0,a.jsx)(n.az,{h:y.current}):null),b=x||i&&m.current;return(0,a.jsx)(n.az,{ref:h,...u,children:b?d:f})},i=o},39979:(e,t,r)=>{r.d(t,{A:()=>N});var a=r(6029),n=r(21377),l=r(494),s=r(24400),o=r(68711),i=r(18517),c=r(95084),d=r(72753),u=r(28349),p=r(21501),h=r(76356),x=r(90248),g=r(18645);let m=e=>{let{entityId:t,entity:r}=e;switch(r){case n.bq7.MutedPlayers:return(0,a.jsx)(g.tg,{id:t,size:40});case n.bq7.MutedTeams:return(0,a.jsx)(g.pY,{id:t,size:40});case n.bq7.MutedTournaments:return(0,a.jsx)(g.eD,{id:t,size:40});default:return null}};var y=r(52466),f=r(62389),b=r(36882);let j=e=>{let{id:t,entity:r,entityGroup:n,onClick:s}=e,o=(0,l.wA)(),i=(e=>{switch(e){case"player":return b.b.Player;case"team":return b.b.Team;case"tournament":return b.b.UniqueTournament;default:return}})(n);return(0,a.jsx)(u.$n,{py:"sm",pr:"md",onClick:()=>{i&&(0,c.g2)({id:t,type:i,location:b.y.Popup,isFollowed:!0}),o((0,f.UQ)(r,t)),s()},children:(0,a.jsxs)(h.zt,{gap:"xs",children:[(0,a.jsx)(u.EY,{textStyle:"action.button.primary",color:"onColor.primary",children:(0,a.jsx)(x.A,{id:"button_favourite"})}),(0,a.jsx)(y.zQC,{icon:"follow-default",className:"follow-indicator-icon",width:"24",height:"24",fill:"onColor.primary"})]})})};var _=r(4967),v=r(55729),w=r(15341),S=r(14831);let k="follow.entity.popup.",A="".concat(k,"dontShowAgain");if(!(0,n.S$s)())try{let e=(0,S.yN)("".concat(k,"organization"));null!=e&&Object.values(e).some(e=>"number"==typeof e)&&(0,S.UI)("".concat(k,"organization"))}catch(e){console.error("Error reading from localStorage:",e)}let z=e=>{try{let t="".concat(k).concat(e);for(let e=0;e{switch(e){case"player":return"add_favorite_player";case"team":return"add_favorite_team";case"tournament":return"add_favorite_league";default:return""}},q=e=>{let{entityId:t,entityGroup:r,entity:n}=e,s=(0,p.hX)(),{isFollowed:o,isOpen:i,handleNoThanksClose:d,handleClose:g,isDontShowAgainSelected:y,toggleIsDontShowAgainSelected:f}=((e,t,r)=>{let a="".concat(k).concat(t),[n,s]=(0,w.A)(a,{}),[o,i]=(0,w.A)("".concat(a,"_queue"),[]),[d,u]=(0,v.useState)(!1),[p,h]=(0,v.useState)(!1),[x,g]=(0,w.A)("".concat(A,".").concat(t),!1),[m,y]=(0,w.A)("".concat(a,"_pausedUntil"),void 0),f=(0,l.d4)(t=>t.favorites.lists[e].includes(r)||t.favorites.lists.favoriteLeagues.includes(r));return(0,v.useEffect)(()=>{d&&(0,c.Ex)({id:r,source:"other",type:C(t)})},[d]),(0,v.useEffect)(()=>{if(x||m&&Date.now()e!==r):[...o];e.push(r);let t=n[r]?{count:n[r].count+1,timestamp:Date.now()}:{count:1,timestamp:Date.now()};if(4===t.count){let{[r]:t,...a}=n;s(a),i(e.filter(e=>e!==r)),u(!0);return}if(e.length>20){let a=e.shift(),{[a]:l,...o}=n;s({...o,[r]:t})}else s({...n,[r]:t});i(e)},[r]),{isFollowed:f,isOpen:d,handleNoThanksClose:()=>{p&&(p&&g(!0),z(t)),(()=>{u(!1);let{[r]:e,...a}=n;s(a),p||y(Date.now()+_.d_),z(t)})(),(0,c.t9)({action:"close",choice:p?"no_show_again":"show_again",id:r,source:"other",type:C(t)})},handleClose:()=>{u(!1)},isDontShowAgainSelected:p,toggleIsDontShowAgainSelected:()=>{h(!p)}}})(n,r,t);return s||o?null:(0,a.jsxs)(u.aF,{isOpen:i,gap:"sm",p:"lg",maxW:"[380px]",children:[(0,a.jsxs)(h.az,{children:[(0,a.jsxs)(h.so,{justify:"flex-start",align:"center",gap:"md",children:[(0,a.jsx)(m,{entityId:t,entity:n}),(0,a.jsx)(u.EY,{textStyle:"display.large",children:(0,a.jsx)(x.A,{id:"popover_favourites_proposal"})})]}),(0,a.jsx)(u.EY,{mt:"lg",mb:"sm",display:"block",children:(0,a.jsx)(x.A,{id:"popover_favourites_proposal_description"})}),(0,a.jsx)(u.Sc,{checked:y,onChange:f,py:"md",children:(0,a.jsx)(u.EY,{children:(0,a.jsx)(x.A,{id:"exit_checkbox"})})})]}),(0,a.jsxs)(h.az,{alignSelf:"flex-end",pt:"lg",children:[(0,a.jsx)(u.$n,{variant:"clear",mr:"sm",onClick:d,children:(0,a.jsx)(x.A,{id:"button_not_now"})}),(0,a.jsx)(j,{id:t,entity:n,entityGroup:r,onClick:g})]})]})},I={[n.bq7.MutedTournaments]:c.XN.LeagueScreen,[n.bq7.Tournaments]:c.XN.LeagueScreen,[n.bq7.MutedTeams]:c.XN.TeamScreen,[n.bq7.Teams]:c.XN.TeamScreen,[n.bq7.MutedPlayers]:c.XN.PlayerScreen,[n.bq7.Players]:c.XN.PlayerScreen},N=e=>{let{entityGroup:t,entity:r,id:n,entityTournamentId:c}=e,{priorityModal:u}=(0,s.Z)(),{isNBAModalOpen:p,setIsNBAModalOpen:h}=(0,i.z)(c),x=(0,l.d4)(d.fg);return p&&I[r]?(0,a.jsx)(o.s,{isOpen:p,setIsOpen:h,location:I[r]}):u||x?null:(0,a.jsx)(q,{entity:r,entityId:n,entityGroup:t})}},68711:(e,t,r)=>{r.d(t,{s:()=>p,S:()=>h});var a=r(6029),n=r(28349),l=r(76356),s=r(55729),o=r(90248),i=r(82536),c=r(18517),d=r(95084);let u=e=>{let{children:t,onClick:r}=e;return(0,a.jsx)("a",{href:"https://nba.sjv.io/c/5441787/2176796/16284",target:"_blank",rel:"noopener",onClick:r,children:t})},p=e=>{let{isOpen:t,setIsOpen:r,location:c}=e,{isDesktop:p}=(0,n.$c)(),h={backgroundImage:"url(/static/images/nba-league-pass/modal.png)",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"};if((0,s.useEffect)(()=>{t&&(0,d.Z1)({type:"bottom_sheet",name:"nba_league_pass",location:c})},[t]),!t)return null;let x=()=>r(!1);return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(i.A,{isOpen:t,setIsOpen:r,footer:null,renderAdPlaceholder:!1,sheetStyles:h,modalContentStyles:h,width:360,children:(0,a.jsxs)(l.az,{style:p?h:void 0,br:"lg",children:[(0,a.jsx)(l.so,{h:"8xl",px:"xl",pt:{md:"xl"},children:(0,a.jsx)(l.az,{w:"4xl",h:"4xl",children:(0,a.jsx)(n._V,{src:"/static/images/nba-league-pass/league-pass-logo.svg",h:"4xl",w:"4xl",alt:"NBA"})})}),(0,a.jsxs)(l.so,{direction:"column",justify:"flex-end",minH:"[400px]",px:"lg",pb:"lg",gap:"2xl",children:[(0,a.jsxs)(l.so,{direction:"column",gap:"lg",children:[(0,a.jsx)(l.az,{textStyle:"display.extraLarge",color:"onColor.primary",children:(0,a.jsx)(o.A,{id:"league_pass_promo_title"})}),(0,a.jsx)(l.az,{textStyle:"body.mediumParagraph",color:"onColor.primary",children:(0,a.jsx)(o.A,{id:"league_pass_promo_body_long"})})]}),(0,a.jsxs)(l.so,{direction:"column",gap:"sm",pt:"xs",children:[(0,a.jsx)(n.$n,{children:(0,a.jsx)(u,{onClick:()=>{(0,d.AW)({type:"bottom_sheet",name:"nba_league_pass",location:c}),x()},children:(0,a.jsx)(l.az,{color:"onColor.primary",children:(0,a.jsx)(o.A,{id:"claim_offer"})})})}),(0,a.jsx)(n.$n,{variant:"clear",color:"onColor.primary",onClick:x,children:(0,a.jsx)(o.A,{id:"maybe_later"})})]})]})]})})})},h=e=>{let{utId:t,location:r}=e,{isNBAModalOpen:n,setIsNBAModalOpen:l}=(0,c.z)(t);return n?(0,a.jsx)(p,{isOpen:n,setIsOpen:l,location:r}):null}},79634:(e,t,r)=>{r.d(t,{q:()=>a.q});var a=r(39975)},91407:(e,t,r)=>{r.d(t,{t:()=>o});var a=r(64082),n=r(6029),l=r(21377),s=r(99064);let o=e=>{var{id:t,name:r,size:o=56,style:i,className:c,grayscale:d,isFantasy:u,placeholder:p="/static/images/placeholders/player.svg"}=e,h=(0,a.T)(e,["id","name","size","style","className","grayscale","isFantasy","placeholder"]);let x=h.w||h.width||o,g=h.h||h.height||o;return(0,n.jsx)(s._V,Object.assign({fallback:(0,n.jsx)(s._V,{style:{borderRadius:"50%"},w:x,h:g,src:p,alt:r}),src:t?l.qvj.image(t,u):"",alt:r,w:x,h:g,br:"50%",border:"onSurface.nLv4",style:i,className:c,isGrayscale:d},h))}}}]);