PageSourceSearch

https://euroleague.tv/code/js/chunks/composed-collection-page.e8c7526abab5366219fd.js

js euroleague.tv collected 2026-10-02 12:09:13 UTC 7,816 bytes, 3 lines download raw bytes

1(()=>{(function(){try{var R=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},h=new R.Error().stack;h&&(R._sentryDebugIds=R._sentryDebugIds||{},R._sentryDebugIds[h]="78913c92-8b11-4f3e-9043-3255a5cd7147",R._sentryDebugIdIdentifier="sentry-dbid-78913c92-8b11-4f3e-9043-3255a5cd7147")}catch(e){}})();(self.webpackChunkdice_web=self.webpackChunkdice_web||[]).push([[1296],{52921:((R,h,e)=>{e.d(h,{s:()=>D});var o=e(22325),E=e(26888),I=e(26995),T=e(51234);const _=r=>r.view,A=r=>r.view.data,g=(r,W,M)=>{var K;return(K=r.view.data)===null||K===void 0?void 0:K[(0,T.ZF)(M,W)]},D={makeGetState:()=>(0,o.Mz)([_],r=>r),makeGetViewData:()=>(0,o.Mz)([A],r=>r),makeGetViewByTypeAndId:()=>(0,o.Mz)([g,E.T.getState],(r,W)=>(0,I.hm)(r,W)),makeGetPaginationInfo:()=>(0,o.Mz)([g],r=>(0,T.XE)(r==null?void 0:r.fetchedPageSizes)),getState:_,getViewData:A,getViewByTypeAndId:(r,W,M)=>(0,I.hm)(g(r,W,M),E.T.getState(r))}}),57713:((R,h,e)=>{e.r(h),e.d(h,{CollectionPage:()=>ce});var o=e(96540),E=e(71468),I=e(76213),T=e(89467),_=e(64849),A=e(32248),g=e(82705),O=e(68407),a=e(90953),f=e(64759),S=e(59530),B=e(57611),D=e(68428),r=e(21975),W=e(81730),M=e(2275),K=e(71342),J=e(31065),Z=Object.defineProperty,re=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,k=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,ee=(i,d,u)=>d in i?Z(i,d,{enumerable:!0,configurable:!0,writable:!0,value:u}):i[d]=u,x=(i,d)=>{for(var u in d||(d={}))q.call(d,u)&&ee(i,u,d[u]);if(k)for(var u of k(d))ie.call(d,u)&&ee(i,u,d[u]);return i},Q=(i,d)=>re(i,ae(d));const ce=()=>{const i=(0,I.zy)(),d=(0,B.W)(),{routes:u}=o.useContext(S.P),{seasonId:te,seriesId:G}=(0,I.g)(),{error:de}=(0,E.d4)(_.i.getState),{contentTitles:s,settings:{seriesInterstitialStatus:t}}=(0,a.U)(),n=t===A.X4.ENABLED,v=s===g.q.SHOW,m=!!(0,W.Y)(u[r.xW.SERIES],i.pathname),V=!!(0,W.Y)(u[r.xW.SEASON],i.pathname),L=new URLSearchParams(i.search),F=L.get("seasonId"),H=L.get("watchlistId"),C=L.get("owner"),[j,p]=o.useState(!1),c=m&&n&&!F&&!j;o.useEffect(()=>{p(!1)},[G]),o.useEffect(()=>{if(c){if(!Number(G))return p(!0);T._.getCurrentSeasonId(Number(G)).then(l=>{if(!l)return p(!0);const P=new URLSearchParams(i.search);P.set("seasonId",String(l)),(0,M.mH)(`${i.pathname}?${P}`,d,{state:i.state,replace:!0})}).catch(()=>p(!0))}},[c,G,d,i.pathname,i.search,i.state]);const X=()=>{const l={};return F&&n&&!V&&(l.seasonId=F),(0,M.Im)(l)?null:l};if(de)return o.createElement(J.Mk,{preventCustomRouteCheck:!0});if(c)return o.createElement(f.A,{useRealmColor:!0});const z=l=>{var P,N,y,U,$,b,w,se,ue,ve;const{seriesId:Ee,title:fe}=((P=l.metadata)==null?void 0:P.series)||{},{seasonId:me,title:_e}=((N=l.metadata)==null?void 0:N.currentSeason)||{},Ie=(se=(w=(b=($=(U=(y=l.elements)==null?void 0:y.find(Y=>Y.$type==="series"))==null?void 0:U.attributes)==null?void 0:$.seasons)==null?void 0:b.items)==null?void 0:w[0])==null?void 0:se.id,ne=me!=null?me:te||F||Ie,oe=Ee!=null?Ee:G,Pe=(ue=l==null?void 0:l.metadata)==null?void 0:ue.currentVod;if(!(m&&n)){if(V&&n){if(oe&&ne){const Y=fe?(0,K.Yv)(fe):null,le=(0,I.tW)(u[r.xW.SERIES],x({seriesId:oe},v&&Y&&{seriesTitle:Y}));(0,M.mH)(le,d,{payload:{seasonId:ne},state:i.state,replace:!0})}}else if(m&&oe&&ne){const Y=_e?(0,K.Yv)(_e):null,le=(ve=Pe==null?void 0:Pe.seasonId)!=null?ve:ne,ge=(0,I.tW)(u[r.xW.SEASON],x({seasonId:le},s&&Y&&{eventTitle:Y})),he=Q(x(x({},H&&{watchlistId:H}),C&&{owner:C}),{seriesId:oe});(0,M.mH)(ge,d,{payload:he,state:i.state,replace:!0})}}};return o.createElement(D.d,{type:G?O.qi.SERIES:O.qi.SEASON,id:G||te,extraParams:X(),onReady:z})}}),64849:((R,h,e)=>{e.d(h,{i:()=>O});var o=e(22325);const E=a=>a.series,I=a=>{const f=E(a),S=[];return f.ids.forEach(B=>{const D=f.data[B];D&&S.push(D)}),S},T=(a,f)=>a.series.data[f],O={makeGetState:()=>(0,o.Mz)([E],a=>a),makeGetData:()=>(0,o.Mz)([I],a=>a),makeGetSeriesById:()=>(0,o.Mz)([T],a=>a),getState:E,getData:I,getSeriesById:T}}),68428:((R,h,e)=>{e.d(h,{d:()=>de});var o=e(96540),E=e(71468),I=e(27237),T=e(52921),_=e(68407),A=e(975),g=e(48118),O=e(76213),a=e(71914),f=e(11860),S=e(46276),B=e(63196),D=e(59530),r=e(91613),W=e(57611),M=e(2275),K=e(22296),J=e(64056),Z=e(39401),re=Object.defineProperty,ae=Object.defineProperties,k=Object.getOwnPropertyDescriptors,q=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,x=(s,t,n)=>t in s?re(s,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[t]=n,Q=(s,t)=>{for(var n in t||(t={}))ie.call(t,n)&&x(s,n,t[n]);if(q)for(var n of q(t))ee.call(t,n)&&x(s,n,t[n]);return s},ce=(s,t)=>ae(s,k(t));const i=(s,t,n)=>{const{routes:v}=o.useContext(D.P),m=(0,E.d4)(F=>F.services.app.previousLocation),V=m==null?void 0:m.split("?")[0];return(0,J.Kz)(s,t,n,V,v)},d=()=>{const s=(0,E.d4)(m=>m.services.session.user.isGuest),t=(0,E.d4)(m=>m.userProfile.isSwitching),n=(0,B.ZC)(s),v=(0,B.ZC)(t);return(0,M.lP)(n,s)||(0,M.gj)(v,t)},u=(s,t)=>s===_.qi.GRID&&!t||s===_.qi.SEARCH?s:t,te=(s,t,n,v)=>{var m,V;const L=(0,W.W)(),F=(0,O.zy)(),H=(0,r.w)(),C=(0,a.DP)(),j=(m=F.state)==null?void 0:m.defaultSearchValue,[p,c]=(0,o.useState)(),X=(V=(0,Z.Nm)(n,p))==null?void 0:V.attributes,z=(0,Z.ax)(C.viewport,X),l=(0,Z.o5)(C.viewport,z,X),P=o.useRef(void 0),N=o.useMemo(()=>
1{if(t===_.qi.GRID&&!(v!=null&&v.rpp)){if(P.current===void 0){const{dynamicRpp:w}=(0,Z.ed)(C.viewport,l,z);P.current=w}return P.current}},[t,v==null?void 0:v.rpp,C.viewport,l,z]),y=o.useMemo(()=>N?ce(Q({},v),{rpp:N}):v,[v,N]);let U=(0,J.c1)(t,j);if(U&&y){const w={};y.seasonId!==void 0&&(w.seasonId=y.seasonId),y.rpp!==void 0&&(w.rpp=String(y.rpp)),U=(0,S.uR)(U,w)}const $=i(t,n,j),b=d();return o.useEffect(()=>{$||H(f.B.fetch(Q({type:t,id:u(t,s),urlOverride:U,timezone:K.OG},y&&{extraParams:y}))),j&&(0,J.eJ)(L)},[t,s,$,U]),o.useEffect(()=>{b&&H(f.B.fetch(Q({type:t,id:u(t,s),urlOverride:U,timezone:K.OG},y&&{extraParams:y})))},[b]),o.useEffect(()=>{const w=p&&p!==n,se=!p&&(n==null?void 0:n.isFetching);(w||se||$)&&c(n)},[p,n,$,U]),{cachedPage:p,itemsPerRow:l,sizeType:z}},G=(s,t)=>{if(s===t)return!0;if(!s||!t)return!1;const n=new Set([...Object.keys(s),...Object.keys(t)]);n.delete("isFetchingNext");for(const v of n)if(s[v]!==t[v])return!1;return!0},de=({type:s,id:t,onReady:n,extraParams:v})=>{const m=o.useMemo(()=>T.s.makeGetViewByTypeAndId(),[]),V=o.useMemo(()=>I.Xw.makeGetState(),[]),L=s===_.qi.GRID?t:+t,H=[_.qi.SEASON,_.qi.SERIES,_.qi.VOD,_.qi.PLAYLIST].includes(s)&&!L,C=(0,E.d4)(P=>m(P,L,s),G),j=(0,E.d4)(P=>{var N;return(N=m(P,L,s))==null?void 0:N.isFetchingNext}),p=(0,E.d4)(P=>V(P)),{cachedPage:c,itemsPerRow:X,sizeType:z}=te(t,s,C,v),l=!c||(c==null?void 0:c.isFetching);return o.useEffect(()=>{!l&&C&&n&&n(C)},[l,n]),o.createElement(A.IQ,{type:s,view:c,fallbackCards:c==null?void 0:c.fallbackCards,localWatchHistory:p,id:t,isFetching:c==null?void 0:c.isFetching,isFetchingNext:j,isUpdating:c==null?void 0:c.isUpdating,isFormError:c==null?void 0:c.isFormError,isFormSuccess:c==null?void 0:c.isFormSuccess,error:(c==null?void 0:c.error)||H,isLoading:l,itemsPerRow:X,sizeType:z},o.createElement(g.AC,{type:s,id:t}))}}),89467:((R,h,e)=>{e.d(h,{_:()=>A});var o=e(46276),E=e(91287);const I={getById:g=>`/series/${g}`},A={getById:async(g,O)=>{const a=E.N.instance.httpService,f=`${(0,o.x3)(a.baseUrl,"v4")}${I.getById(g)}`,{lastSeen:S,rpp:B}=O,D={};return S&&(D.lastSeen=String(S)),B&&(D.rpp=String(B)),(await a.get(f,{queryParams:D})).parsedData},getCurrentSeasonId:async g=>{var O,a,f;const S=await A.getById(g,{rpp:1});return((a=(O=S.currentVod)===null||O===void 0?void 0:O.episodeInformation)===null||a===void 0?void 0:a.season)||((f=S.seasons[0])===null||f===void 0?void 0:f.id)}}})}]);})();
2
3//# sourceMappingURL=composed-collection-page.e8c7526abab5366219fd.js.map

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.