!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]="317a9847-4940-4670-a8c2-603a6221e3d4",e._sentryDebugIdIdentifier="sentry-dbid-317a9847-4940-4670-a8c2-603a6221e3d4")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[26260],{18645:(e,t,n)=>{n.d(t,{eD:()=>l.e,pY:()=>a.p,tg:()=>r.t});var r=n(91407),a=n(91603),l=n(33480)},39975:(e,t,n)=>{n.d(t,{A:()=>i,q:()=>s});var r=n(6029),a=n(25940),l=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),m=(0,l.useRef)(t),f=(0,l.useRef)(n);(0,l.useEffect)(()=>{h&&!0!==m.current&&(m.current=!0),h&&f.current!==n&&(f.current=(null==g?void 0:g.boundingClientRect.height)||n)},[h,g]);let y=c||(f.current?(0,r.jsx)(a.az,{h:f.current}):null),j=h||i&&m.current;return(0,r.jsx)(a.az,{ref:x,...u,children:j?d:y})},i=s},39979:(e,t,n)=>{n.d(t,{A:()=>E});var r=n(6029),a=n(21377),l=n(494),o=n(24400),s=n(68711),i=n(18517),c=n(95084),d=n(72753),u=n(73914),p=n(21501),x=n(76356),h=n(90248),g=n(18645);let m=e=>{let{entityId:t,entity:n}=e;switch(n){case a.bq7.MutedPlayers:return(0,r.jsx)(g.tg,{id:t,size:40});case a.bq7.MutedTeams:return(0,r.jsx)(g.pY,{id:t,size:40});case a.bq7.MutedTournaments:return(0,r.jsx)(g.eD,{id:t,size:40});default:return null}};var f=n(52466),y=n(62389),j=n(36882);let b=e=>{let{id:t,entity:n,entityGroup:a,onClick:o}=e,s=(0,l.wA)(),i=(e=>{switch(e){case"player":return j.b.Player;case"team":return j.b.Team;case"tournament":return j.b.UniqueTournament;default:return}})(a);return(0,r.jsx)(u.$n,{py:"sm",pr:"md",onClick:()=>{i&&(0,c.g2)({id:t,type:i,location:j.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)(f.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,a.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:a}=e,o=(0,p.hX)(),{isFollowed:s,isOpen:i,handleNoThanksClose:d,handleClose:g,isDontShowAgainSelected:f,toggleIsDontShowAgainSelected:y}=((e,t,n)=>{let r="".concat(A).concat(t),[a,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),[m,f]=(0,w.A)("".concat(r,"_pausedUntil"),void 0),y=(0,l.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||m&&Date.now()e!==n):[...s];e.push(n);let t=a[n]?{count:a[n].count+1,timestamp:Date.now()}:{count:1,timestamp:Date.now()};if(4===t.count){let{[n]:t,...r}=a;o(r),i(e.filter(e=>e!==n)),u(!0);return}if(e.length>20){let r=e.shift(),{[r]:l,...s}=a;o({...s,[n]:t})}else o({...a,[n]:t});i(e)},[n]),{isFollowed:y,isOpen:d,handleNoThanksClose:()=>{p&&(p&&g(!0),C(t)),(()=>{u(!1);let{[n]:e,...r}=a;o(r),p||f(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)}}})(a,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)(m,{entityId:t,entity:a}),(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:f,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)(b,{id:t,entity:a,entityGroup:n,onClick:g})]})]})},q={[a.bq7.MutedTournaments]:c.XN.LeagueScreen,[a.bq7.Tournaments]:c.XN.LeagueScreen,[a.bq7.MutedTeams]:c.XN.TeamScreen,[a.bq7.Teams]:c.XN.TeamScreen,[a.bq7.MutedPlayers]:c.XN.PlayerScreen,[a.bq7.Players]:c.XN.PlayerScreen},E=e=>{let{entityGroup:t,entity:n,id:a,entityTournamentId:c}=e,{priorityModal:u}=(0,o.Z)(),{isNBAModalOpen:p,setIsNBAModalOpen:x}=(0,i.z)(c),h=(0,l.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:a,entityGroup:t})}},68711:(e,t,n)=>{n.d(t,{s:()=>p,S:()=>x});var r=n(6029),a=n(73914),l=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,a.$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)(l.az,{style:p?x:void 0,br:"lg",children:[(0,r.jsx)(l.so,{h:"8xl",px:"xl",pt:{md:"xl"},children:(0,r.jsx)(l.az,{w:"4xl",h:"4xl",children:(0,r.jsx)(a._V,{src:"/static/images/nba-league-pass/league-pass-logo.svg",h:"4xl",w:"4xl",alt:"NBA"})})}),(0,r.jsxs)(l.so,{direction:"column",justify:"flex-end",minH:"[400px]",px:"lg",pb:"lg",gap:"2xl",children:[(0,r.jsxs)(l.so,{direction:"column",gap:"lg",children:[(0,r.jsx)(l.az,{textStyle:"display.extraLarge",color:"onColor.primary",children:(0,r.jsx)(s.A,{id:"league_pass_promo_title"})}),(0,r.jsx)(l.az,{textStyle:"body.mediumParagraph",color:"onColor.primary",children:(0,r.jsx)(s.A,{id:"league_pass_promo_body_long"})})]}),(0,r.jsxs)(l.so,{direction:"column",gap:"sm",pt:"xs",children:[(0,r.jsx)(a.$n,{children:(0,r.jsx)(u,{onClick:()=>{(0,d.AW)({type:"bottom_sheet",name:"nba_league_pass",location:c}),h()},children:(0,r.jsx)(l.az,{color:"onColor.primary",children:(0,r.jsx)(s.A,{id:"claim_offer"})})})}),(0,r.jsx)(a.$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:a,setIsNBAModalOpen:l}=(0,c.z)(t);return a?(0,r.jsx)(p,{isOpen:a,setIsOpen:l,location:n}):null}},79634:(e,t,n)=>{n.d(t,{q:()=>r.q});var r=n(39975)}}]);