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