1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3048],{43048:function(t,e,l){l.r(e);var a=l(85893),i=l(67294),o=l(25675),n=l.n(o),s=l(49859),r=l.n(s),d=l(6437),c=l(73484),u=l(63102),v=l(41664),h=l.n(v);e.default=t=>{var e,l,o,s,v,p,m,x;let g;let{addTofav:b,BadgeText:j,cardType:f,cardData:y,checkDeeplink:k,cWidth:w,CHeight:N,loaderProp:_,openProgInfoPopUp:B,shareDataSet:C}=t,E=(0,i.useRef)(),[S,T]=(0,i.useState)(0),[P,Z]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let t=localStorage.getItem("theme");t?Z("dark"===t):Z(!1);let e=new MutationObserver(t=>{t.forEach(t=>{"class"===t.attributeName&&Z(document.body.classList.contains("dark-theme"))})});return e.observe(document.body,{attributes:!0}),()=>e.disconnect()},[]);let{favInfo:M}=(0,i.useContext)(u.e),z=(g=(null==y?void 0:y.isFavourite)==="true",(null==M?void 0:null===(m=M.added)||void 0===m?void 0:m[null==y?void 0:y.targetPath])&&(g=!0),(null==M?void 0:null===(x=M.removed)||void 0===x?void 0:x[null==y?void 0:y.targetPath])&&(g=!1),g);(0,i.useEffect)(()=>{var t,e;(null==E?void 0:null===(t=E.current)||void 0===t?void 0:t.clientHeight)&&T(null==E?void 0:null===(e=E.current)||void 0===e?void 0:e.clientHeight)},[]);let F=!!y.template||(null==y?void 0:null===(l=y.target)||void 0===l?void 0:null===(e=l.pageAttributes)||void 0===e?void 0:e.isDeeplinking)==="true",H=F?"div":h(),I=F?{}:{href:(null==y?void 0:null===(o=y.target)||void 0===o?void 0:o.path)||"#",rel:"noopener noreferrer",onContextMenu:t=>t.stopPropagation()};return(0,a.jsx)("div",{className:y.subtitle||y.subtitle1||y.showFavouriteButton||y.showShareButton?"".concat(r().expands_poster," ").concat(f):"".concat(r().expands_poster," ").concat(r().no_data),children:(0,a.jsx)("div",{className:"".concat(r().card_inner," ").concat(r().searchcardheight),style:{width:w},children:(0,a.jsxs)("div",{style:{height:N+S,width:w},children:[(0,a.jsx)(H,{...I,className:"".concat(r().card_header),onClick:()=>B(y),children:(0,a.jsxs)("div",{className:"".concat(r().card_header),children:[(0,a.jsx)(n(),{unoptimized:!0,className:r().main_img,loader:_,src:(0,c.al)(null==y?void 0:y.display.imageUrl),width:w||0,height:N||0,placeholder:"blur",blurDataURL:d.Z.defaultdetails,alt:y.display.title,onError:t=>{let{currentTarget:e}=t;e.onerror=null,e.srcset="".concat(d.Z.defaultTvShowsPoster)}}),!!(null==y?void 0:y.display.partnerIcon)&&(0,a.jsx)(n(),{unoptimized:!0,height:30,width:30,loader:_,className:" ".concat(r().card_epg_image1),alt:null==y?void 0:null===(v=y.target)||void 0===v?void 0:null===(s=v.pageAttributes)||void 0===s?void 0:s.networkName,src:(0,c.al)(decodeURIComponent(null==y?void 0:y.display.partnerIcon)),onError:t=>{let{currentTarget:e}=t;e.onerror=null,e.src="".concat(d.Z.defaultSquarePoster)}}),!!(null==y?void 0:null===(p=y.display)||void 0===p?void 0:p.badgeMarker)&&(0,a.jsx)(j,{badgeMarker:y.display.badgeMarker}),(0,a.jsx)("div",{className:r().text_scroll,ref:E,children:(0,a.jsxs)("div",{className:r().top_section,children:[(0,a.jsx)("h3",{children:null==y?void 0:y.display.title}),(0,a.jsx)("h6",{children:null==y?void 0:y.display.subtitle1})]})})]})}),(0,a.jsxs)("div",{className:r().card_footer,children:[(0,a.jsx)("div",{className:r().bottom_section}),(0,a.jsxs)("div",{className:r().actions,children:[y.subtitle&&y.subtitle1?(0,a.jsxs)("div",{className:"".concat(r().top_section),children:[(0,a.jsx)("h6",{children:y.subtitle}),(0,a.jsx)("h6",{children:y.subtitle1})]}):(0,a.jsx)(a.Fragment,{}),!!(null==y?void 0:y.showButton)&&(0,a.jsx)("button",{onClick:()=>{k(y)},className:" ".concat(r().defaultBtn," primary ").concat(y.showWatchButton||y.showPlayButton?"".concat(r().playBtn):""),children:(null==y?void 0:y.ButtonText)===""||(null==y?void 0:y.ButtonText)===void 0||(null==y?void 0:y.ButtonText)===null?"Watch Now":null==y?void 0:y.ButtonText}),!!y.showFavouriteButton&&(0,a.jsxs)("button",{className:" ".concat(r().like),onClick:()=>b(y),children:[z&&(0,a.jsx)("img",{src:d.Z.card.favoriteActive,alt:"favorite"}),!z&&(0,a.jsx)("img",{src:P?d.Z.card.favorite:"https://yuppstatic.akamaized.net/yupptv/yupptv_migration/web/watchlist-black.svg",alt:"favorite"}),(0,a.jsx)("span",{children:null==y?void 0:y.favOnHoverText})]}),!!y.showShareButton&&(0,a.jsxs)("button",{className:" ".concat(r().share),onClick:()=>C(y),children:[(0,a.jsx)("img",{src:P?d.Z.card.share:"https://yuppstatic.akamaized.net/yupptv/yupptv_migration/web/share-black.svg",alt:"share"}
1),(0,a.jsx)("span",{children:null==y?void 0:y.shareOnHoverText})]})]})]})]})})})}}}]);
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.