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