1(()=>{(function(){try{var c=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},d=new c.Error().stack;d&&(c._sentryDebugIds=c._sentryDebugIds||{},c._sentryDebugIds[d]="7eeec560-a097-4841-9492-6021cacccb97",c._sentryDebugIdIdentifier="sentry-dbid-7eeec560-a097-4841-9492-6021cacccb97")}catch(a){}})();(self.webpackChunkdice_web=self.webpackChunkdice_web||[]).push([[36348],{15568:((c,d,a)=>{a.d(d,{A:()=>h});var n=a(96540),v=a(12544),m=Object.defineProperty,f=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,p=(l,o,s)=>o in l?m(l,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):l[o]=s,O=(l,o)=>{for(var s in o||(o={}))g.call(o,s)&&p(l,s,o[s]);if(f)for(var s of f(o))E.call(o,s)&&p(l,s,o[s]);return l};const h=l=>n.createElement(v.A,O({},l))}),88557:((c,d,a)=>{a.r(d),a.d(d,{default:()=>tt});var n=a(96540),v=a(71468),m=a(91613),f=a(27237),g=a(1346),E=a(30318),p=a(58562),O=a(90953),y=a(84610),h=a(91310),l=a(15568),o=a(52955),s=a(88382),W=a(9236),b=a(2275),L=a(87585),B=Object.defineProperty,I=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,F=(r,t,e)=>t in r?B(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,G=(r,t)=>{for(var e in t||(t={}))K.call(t,e)&&F(r,e,t[e]);if(I)for(var e of I(t))H.call(t,e)&&F(r,e,t[e]);return r};const A=(0,b.tq)().toString(),X=r=>{const{favourite:{consumedPages:t,events:e,totalResults:et,totalPages:at},adUnit:rt,setMetadata:T,getReadyState:nt}=r,{contentTitles:ot}=(0,O.U)(),C=(0,m.w)(),{favourites:st,addVideoAsFavouriteToSee:lt,anErrorOccured:N}=(0,p.b0)(["favourites","addVideoAsFavouriteToSee","anErrorOccured"]),it=n.useMemo(()=>f.Xw.makeGetState(),[]),ut=(0,v.d4)(i=>it(i)),[S,R]=n.useState(!1),[ct,U]=n.useState(!1),[M,P]=n.useState(null),{hasLoginStateChanged:V}=(0,o.O)(),u=e.filter(i=>i.favourite),dt=(e==null?void 0:e.length)-(u==null?void 0:u.length),vt=et-dt;n.useEffect(()=>{e!=null&&e.length||x()},[]),n.useEffect(()=>{V&&x()},[V]);const x=async()=>{R(!0),P(null);try{const{parsedData:i}=await(0,y.Yl)({rpp:A});C({type:y.z2.UPDATE,payload:i})}catch(i){P(N.value)}finally{R(!1)}},ft=async()=>{const i=(t+1).toString();U(!0),P(null);try{await(0,y.fU)({p:i,rpp:A},C),(0,L.u4)(g.Zp.LOAD_MORE,{page:i})}catch(j){P(N.value)}finally{U(!1)}},gt=({id:i,type:j,accessLevel:Pt,title:mt})=>{const Et=ot===E.q5.SHOW;(0,L.u4)(g.Zp.CARD_CLICK,G({id:i,type:j,accessLevel:Pt},Et&&{title:mt})),T==null||T({adUnit:rt})},pt=()=>!S&&(u!=null&&u.length)?n.createElement(l.A,{title:st.value,name:"Favorites",totalPages:"1",totalResults:vt,resultsPerPage:u.length,contentList:u,pageName:"favourite",isFull:!0,dispatch:C,onCardClick:gt,showInterstitial:!0,localWatchHistory:ut}):null,yt=()=>!S&&(!u||!u.length)&&!M?n.createElement("div",{className:"empty"},n.createElement(h.A,{height:"30",width:"30",className:"icon-star"}),n.createElement("span",null,lt.value)):null;return n.createElement(W.e,{isLoadingContent:S||ct,getReadyState:nt,className:"favourite",list:pt(),hasMoreContent:t<at,fetchNextContentPage:ft,emptyMessage:yt(),error:M})},Z=(0,s.U)(X,null);var z=a(59530),Y=a(21975),J=Object.defineProperty,w=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,D=(r,t,e)=>t in r?J(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,k=(r,t)=>{for(var e in t||(t={}))Q.call(t,e)&&D(r,e,t[e]);if(w)for(var e of w(t))$.call(t,e)&&D(r,e,t[e]);return r};const q=r=>{const{routes:t}=n.useContext(z.P);return n.createElement(Z,k({adUnit:t[Y.xW.FAVOURITES]},r))},_=({views:{favourite:r}})=>({favourite:r}),tt=(0,v.Ng)(_,null)(q)})}]);})(); 2 3//# sourceMappingURL=favourite.df6ecae149dfddb1f903.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.