1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1508],{99009:(e,t,i)=>{"use strict";i.d(t,{A:()=>g});var s=i(74848),o=i(96540),r=i(74368),a=i(12133),n=i.n(a),l=i(27116),d=i(98126),c=i(46942),_=i.n(c),p=i(91106),u=i.n(p);let h={clickHouseShoot:d.Y3};class m extends o.Component{componentDidMount(){var e,t;this.getVisibleElements(),this.setState({noJs:!1,wrapWidth:null===(t=this.wrap)||void 0===t?void 0:null===(e=t.current)||void 0===e?void 0:e.getBoundingClientRect().width})}componentDidUpdate(e){var t,i,s;let o=this.wrap.current,{wrapWidth:r}=this.state,a=null==o?void 0:o.getBoundingClientRect().width,n=a!==r;((null===(t=e.movieData)||void 0===t?void 0:t._id)!==(null===(i=this.props.movieData)||void 0===i?void 0:i._id)||n)&&(n&&this.setState({wrapWidth:a}),(null===(s=this.props.movieData)||void 0===s?void 0:s._id)&&this.setState({translateX:0,visibleIndex:0,widthOfVisible:[],arrayOfHidden:[]},()=>{o.scroll({left:0,behavior:"smooth"}),this.getVisibleElements()}))}render(){var e,t,i,o,r,a;let{current:l,noTitle:d,categoriesList:c,inPlayer:p,movieData:h,series:m,inPlayerPopup:g,sidesShadow:v,alias:b,renderContent:S}=this.props,{arrayOfVisible:y,noJs:f}=this.state,{deviceSize:w,userBrowser:x}=this.props.systemInformation,k="series"===b;return(0,s.jsxs)("div",{className:_()(n().categories__categories,{[n().categories__nt]:d,[n().categories__player]:p,[n().categories__player_popup]:g}),onMouseOver:()=>this.setState({mouseOver:!0}),onMouseOut:()=>this.setState({mouseOver:!1}),children:[(0,s.jsx)("div",{className:_()(n().categories__a,n().categories__dl,{[n().categories__shadowVisible_left]:v}),onClick:()=>this.handleArrowClick("left"),style:{visibility:(null===(t=this.wrap)||void 0===t?void 0:null===(e=t.current)||void 0===e?void 0:e.scrollLeft)!==0?"visible":"hidden"},children:(0,s.jsx)("img",{src:"/static/images/tv/left.svg"})}),S?S({className:_()({[n().categories__wrap]:!p&&!g,[n()["categories__player-wrap"]
1]:p,[n().categories__player_popup_wrap]:g}),onWheel:this.handleWheel,onScroll:this.handleScroll,onMouseDown:this.handleDragStart,onMouseUp:this.handleDragEnd,onMouseLeave:this.handleDragEnd,onMouseMove:this.handleDrag,ref:this.wrap,"data-testid":"seasons_tabs",arrayOfVisible:y,deviceSize:w,userBrowser:x,current:l}):(0,s.jsx)("div",{className:_()({[n().categories__wrap]:!p&&!g,[n()["categories__player-wrap"]]:p,[n().categories__player_popup_wrap]:g}),onWheel:this.handleWheel,onScroll:this.handleScroll,onMouseDown:this.handleDragStart,onMouseUp:this.handleDragEnd,onMouseLeave:this.handleDragEnd,onMouseMove:this.handleDrag,ref:this.wrap,"data-testid":"seasons_tabs",children:(null==c?void 0:c.length)?c.map((e,t)=>(0,s.jsx)("div",{className:"".concat(n().categories__cWrap," ").concat("desktop_web"!==w||y.includes(t)?"":n().categories__aWrap," ").concat((null==x?void 0:x.browserName)==="Safari"?n().categories__safari:""),children:f&&k?(0,s.jsx)(u(),{prefetch:!1,href:"/watch/".concat(h.alias,"/season-").concat(e.num),className:"".concat(n().categories__category," ").concat((null==l?void 0:l.alias)===e.alias?n().categories__active:""),onClick:"desktop_web"!==w||y.includes(t)?()=>this.props.onClickCategory(e,t):null,children:e.title}):(0,s.jsx)("div",{className:"".concat(n().categories__category," ").concat((null==l?void 0:l.alias)===e.alias?n().categories__active:""),onClick:"desktop_web"!==w||y.includes(t)?()=>this.props.onClickCategory(e,t):null,children:e.title})},t)):null}),(0,s.jsx)("div",{className:_()(n().categories__a,n().categories__dr,{[n().categories__shadowVisible_rigth]:v}),onClick:()=>this.handleArrowClick("right"),style:{visibility:parseInt(null===(o=this.wrap)||void 0===o?void 0:null===(i=o.current)||void 0===i?void 0:i.clientWidth)+parseInt(null===(a=this.wrap)||void 0===a?void 0:null===(r=a.current)||void 0===r?void 0:r.scrollLeft)<parseInt(this.state.categoriesLineWidth)?"visible":"hidden"},children:(0,s.jsx)("img",{src:"/static/images/tv/right.svg",alt:"right"})})]})}constructor(...e){super(...e),this.apiUrl=this.props.systemInformation.API_URL||l.H$,this.lockScroll=!1,this.state={visibleIndex:0,translateX:0,widthOfVisible:[],arrayOfHidden:[],mouseOver:!1,categoriesLineWidth:0,wrap:null,arrayOfVisible:[],noJs:!0,isDragging:!1,dragStartPosX:0,wrapWidth:null},this.wrap=o.createRef(),this.scrollTimeout=null,this.getVisibleElements=()=>{var e,t;let i=this.wrap.current,s=[...i.childNodes],o=s.map(e=>e.getBoundingClientRect().width),r=o.reduce((e,t)=>e+=t,0),a=parseInt(null===(e=window)||void 0===e?void 0:e.getComputedStyle(i,null).paddingRight)+parseInt(null===(t=window)||void 0===t?void 0:t.getComputedStyle(i,null).paddingLeft);r=parseInt(r+a);let n=[];s.forEach((e,t)=>{!(1*e.getBoundingClientRect().right>(null==i?void 0:i.getBoundingClientRect().right))&&e.getBoundingClientRect().left>0&&n.push(t)});let l=0,d=[];o.map((e,t)=>{l+e<(null==i?void 0:i.getBoundingClientRect().width)-a?l+=e:(d.length&&(l+=d[d.length-1]),d.push(l),l=e)}),this.setState({widthOfVisible:d,arrayOfHidden:[],categoriesLineWidth:r,arrayOfVisible:n})},this.handleArrowClick=e=>{let{visibleIndex:t,widthOfVisible:i}=this.state,s=this.wrap.current,{onArrowClick:o}=this.props;if("right"===e){if(t>=i.length)return;this.setState({visibleIndex:t+1,translateX:i[t]},()=>{this.wrap.current.scroll({left:this.state.translateX,behavior:"smooth"})})}else t>=0&&this.setState({visibleIndex:t-1,translateX:i[t-2]||0},()=>{s.scroll({left:this.state.translateX,behavior:"smooth"})});o&&o(e),this.lockScroll=!1},this.handleScroll=()=>{clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(this.getVisibleElements,0)},this.handleWheel=()=>{let e=0;this.state.widthOfVisible.some(t=>{t<this.wrap.current.scrollLeft&&e++}),this.setState({visibleIndex:e,translateX:e>=0?this.state.widthOfVisible[e]:0})},this.handleDragStart=e=>{var t;e.preventDefault();let i=e.clientX,s=i<56,o=(null===(t=window)||void 0===t?void 0:t.innerWidth)-i<56;s||o||this.setState({isDragging:!0,dragStartPosX:i})},this.handleDragEnd=()=>{this.setState({isDragging:!1})},this.handleDrag=e=>{let{isDragging:t,dragStartPosX:i}=this.state;if(!t)return;e.preventDefault();let s=i-e.clientX;Math.abs(s)>28&&(s>0?this.handleArrowClick("right"):this.handleArrowClick("left"),this.setState({isDragging:!1}))}}}let g=(0,r.Ng)(e=>({systemInformation:e.systemInformation,registration:e.registration}),h)(m)},50425:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var s=i(74848),o=i(96540),r=i(29833),a=i.n(r),n=i(91106),l=i.n(n),d=i(27116),c=i(98126),_=i(74368);let p={clickHouseShoot:c.Y3};class u extends o.Component{componentDidMount(){let{bannerData:e}=this.props,t=window.innerWidth;this.setState({browserWidth:t}),window.addEventListener("resize",this.resizeHandler),t>1024&&this.setState({urlImg:e.image_desktop}),t<1025&&this.setState({urlImg:e.image_tablet}),t<411&&this.setState({urlImg:e.image_mobile})}render(){let{bannerData:e}=this.props,{urlImg:t}=this.state,i=t?"".concat(this.apiUrl).concat(t):"",o=e&&e.url?e.url:"";return o&&-1===o.indexOf("http")?(0,s.jsx)(l(),{prefetch:!1,href:"".concat(o),passHref:!0,onClick:this.clickHandler,children:(0,s.jsx)("div",{className:a().product__banner,style:{backgroundImage:"url('".concat(i,"')")}})}):(0,s.jsx)("a",{href:o,onClick:this.clickHandler,children:(0,s.jsx)("div",{className:a().product__banner,style:{backgroundImage:"url('".concat(i,"')")}})})}constructor(...e){super(...e),this.state={urlImg:"",browserWidth:0},this.apiUrl=this.props.systemInformation.API_URL||d.H$,this.apiKey=this.props.systemInformation.API_KEY||d.Lq,this.componentDidUpdate=()=>{let{browserWidth:e,urlImg:t}=this.state,{bannerData:i}=this.props;e>1024&&t!==i.image_desktop&&this.setState({urlImg:i.image_desktop}),e<768&&e>410&&t!==i.image_tablet&&this.setState({urlImg:i.image_tablet}),e<411&&t!==i.image_mobile&&this.setState({urlImg:i.image_mobile})},this.resizeHandler=()=>{setTimeout(()=>{let e=window.innerWidth,{browserWidth:t}=this.state;e!==t&&this.setState({browserWidth:e})},100)},this.clickHandler=()=>{let{clickHouseData:e}=this.props.systemInformation,{bannerData:t}=this.props,{movieData:i}=this.props,s={...e,action_id:"click",block_type:"banner",block_attributes_id:t.name?t.name:"",product_id:i._id,element_type:"banner",element_attributes_id:t.name?t.name:"",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,s)},this.componentWillUnmount=()=>{window.removeEventListener("resize",this.resizeHandler)}}}let h=(0,_.Ng)(e=>({systemInformation:e.systemInformation}),p)(u)},28113:(e,t,i)=>{"use strict";i.d(t,{A:()=>ew});var s=i(74848),o=i(46942),r=i.n(o),a=i(86715),n=i.n(a),l=i(96540),d=i(74368),c=i(63480),_=i(47819),p=i(27116),u=i(35296),h=i(9515),m=i(39710),g=i(96276),v=i(72202),b=i(67265),S=i(75756),y=i(98126),f=i(98047),w=i(13057),x=i(87873),k=i(54532),C=i(30511),P=i(99009),T=i(50425),N=i(75273),j=i(68850),I=i(80364),E=i(48398),A=i(29965),D=i.n(A),R=i(91106),M=i.n(R),L=i(97461),W=i(47828);let U=e=>{let t=new Date(e),i=t.getDate(),s=p.wp[(0,W.A)(t)];return"".concat(i," ").concat(s)},O=e=>{let{img:t,imgStub:i,apiUrl:s,size:o,quality:r}=e;return t?"".concat(s).concat((0,u.bZ)(t,o,r)):i};var B=i(4011),z=i.n(B);let H="/static/images/horizontal_poster.svg",V={SEASON:"SEASON",TRAILER:"TRAILER"},K=e=>{let{type:t,linkUrl:i,isNoJs:o,onClick:a,children:n}=e;return o||t===V.SEASON?(0,s.jsx)(M(),{href:i,onClick:a,prefetch:!1,scroll:!1,className:r()(z().wrapper,{[z().seasonWrapper]:t===V.SEASON,[z().trailerWrapper]:t===V.TRAILER}),children:n}):(0,s.jsx)("div",{className:r()(z().wrapper,z().trailerWrapper),onClick:a,children:n})},F={Season:e=>{let{image:t,releaseDate:i,seasonNumber:o,linkUrl:a,onClick:n}=e,l=(0,I.A)();return(0,s.jsxs)(K,{type:V.SEASON,linkUrl:a,onClick:n,children:[(0,s.jsx)(D(),{className:z().img,src:O({img:t,imgStub:H,apiUrl:l,size:"160x90",quality:1}),loader:u.R2,alt:"Ñезон",fill:!0,priority:!0,sizes:"(max-width: 1024px) 100vw"}),(0,s.jsx)("div",{className:z().seasonTitle,children:i?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:z().text,children:U(i)}),(0,s.jsxs)("span",{className:r()(z().text,z().text_shaded),children:[o," Сезон"]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:r()(z().text,z().text_shaded),children:"СкоÑо"}),(0,s.jsxs)("span",{className:z().text,children:[o," Сезон"]})]})})]})},Trailer:e=>{let{image:t,linkUrl:i,isNoJs:o,onClick:a}=e,n=(0,I.A)();return(0,s.jsxs)(K,{type:V.TRAILER,linkUrl:i,isNoJs:o,onClick:a,children:[(0,s.jsx)("div",{className:z().trailerPoster,children:(0,s.jsx)(D(),{className:z().img,src:O({img:t,imgStub:H,apiUrl:n}),loader:u.R2,alt:"ÑÑейлеÑ",fill:!0,sizes:"(max-width: 1024px) 100vw"})}),(0,s.jsxs)("div",{className:z().trailerContent,children:[(0,s.jsxs)("div",{className:z().trailerTitle,children:[(0,s.jsx)("span",{className:r()(z().text),children:"СмоÑÑиÑе"}),(0,s.jsx)("span",{className:r()(z().text,z().text_shaded),children:"ТÑейлеÑ"})]}),(0,s.jsx)(L.$n,{size:L.GO.SMALL,variant:L.Vt.SECONDARY,title:"СмоÑÑеÑÑ",iconLeft:(0,s.jsx)("img",{className:z().trailerButton__icon,src:"/static/images/product/kino.svg",alt:"trailer"}),iconSize:250})]})]})}};var J=i(71447),Y=i.n(J);let G=e=>{var t;let{movieData:i,season:o,isLast:r}=e,a=(0,d.wA)(),n=(0,j.A)(),c=(0,I.A)(),_=(0,E.A)(),p=(0,d.d4)(e=>e.profile.childProfile),[u,h]=(0,l.useState)(!0),m=r&&(null===(t=i.additional_content)||void 0===t?void 0:t.findLast(e=>e.announcement)),v=async()=>
1{if(p&&await (0,C.j)({apiUrl:c,apiKey:_})){a((0,f.bL)({visible:!0}));return}let e={movieUrl:"/web/watch/".concat(i.alias),movieTitle:m.title,movieId:i._id,uid:i.uid,rating_age:m.rating_age||i.rating_age,trailerSrc:m.video_src,playback:i.playback_options,announce:null==m?void 0:m.announcement,isTrailer:!0,noNext:!0,promoData:{cls:"Trailer",uid:m.uid,title:m.title,promoting_content:{id:i._id,uid:i.uid,cls:i._cls,alias:i.alias}}};a((0,y.kI)({init:!0,type:"Trailer"})),a((0,g.o2)(e)),n({action_id:"click",product_id:i.uid,content_id:i.uid,content_type:i._cls,block_type:"season",block_attributes_id:"season-".concat(o.num),element_type:"button",element_attributes_id:"play_trailer",element_attributes_text:"СмоÑÑеÑÑ",element_attributes_index:2})};return(0,l.useEffect)(()=>{h(!1)},[]),(0,s.jsx)("div",{className:Y().wrapper,children:(0,s.jsxs)("div",{className:Y().list,children:[(0,s.jsx)(F.Season,{image:i.background.image_15x,releaseDate:o.start_release_date,seasonNumber:o.num,linkUrl:"/watch/".concat(i.alias,"/season-").concat(o.num),onClick:e=>e.preventDefault()}),m&&(0,s.jsx)(F.Trailer,{image:m.packshot.image_15x||o.background.image_15x,linkUrl:"/watch/".concat(i.alias,"/trailers/").concat(m.start_id),isNoJs:u,onClick:v})]})})};var X=i(60963),Z=i(74351),q=i.n(Z);let Q=e=>{let{watchedText:t,itemDurationText:i}=e;return(0,s.jsxs)("div",{className:"".concat(q().watched),children:[(0,s.jsxs)("div",{className:q()["watched-line"],children:[(0,s.jsx)("div",{className:q()["red-line"]}),(0,s.jsx)("div",{className:q()["white-line"]})]}),(0,s.jsx)("div",{className:q()["watched-title"],children:t})]})},$=e=>{let{current:t,item:i,itemDurationText:o,itemProgress:a}=e;return(null==a?void 0:a.progress)&&(null==a?void 0:a.progress)<=95?(0,s.jsxs)("div",{className:"".concat(q().watched),children:[(0,s.jsxs)("div",{className:q()["watched-line"],children:[(0,s.jsx)("div",{className:q()["red-line"],style:{width:"".concat(a.progress<10?10:a.progress,"%")}}),(0,s.jsx)("div",{className:q()["white-line"],style:{width:"".concat(100-a.progress,"%")}})]}),(0,s.jsx)("div",{className:q()["watched-progress-title"],children:t?"ÐÑ ÑмоÑÑиÑе":((e,t)=>{let i=Math.round((e-e*t/100)/1e3/60);return"ÐÑÑалоÑÑ ".concat(i," мин")})(a.duration,a.progress)})]}):(null==i?void 0:i.duration)&&!(null==i?void 0:i.announcement)?(0,s.jsx)("span",{className:r()(q().duration,{[q().series__watched]:(null==a?void 0:a.progress)&&(null==a?void 0:a.progress)>95}),children:o}):null};var ee=i(2352),et=i(12107);let ei=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,i=e.filter(e=>"free"===e.type&&!e.under_logo_position&&"single"===e.structure)[0],s=e.filter(e=>"badge"===e.type&&!e.under_logo_position&&"single"===e.structure)[0];return!t&&i?i:s},es=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(e=>"badge"===e.type&&!e.under_logo_position&&"single"===e.structure)[0]},eo=e=>{let t={};if(e){let i=(0,ee.A)(new Date("".concat(e)),"d MMMM",{locale:et.A}),s=(0,ee.A)(new Date("".concat(e)),"EEEE",{locale:et.A});t.title=i,t.subtitle=s}else t.title="СкоÑо";return t};var er=i(11735),ea=i.n(er);let en=e=>{var t,i;let{index:o,selectedSeasonIndex:a,currentEpisode:n,card:c,alias:_,onTitleClick:h,onPosterClick:m,onPlayIconClick:g,seriesBackground:v}=e,b=(0,I.A)(),S=(0,d.d4)(e=>e.registration.authData),y=(0,d.d4)(e=>e.profile.progress),f=(0,d.d4)(e=>e.systemInformation.windowInnerWidth),w=(0,d.d4)(e=>e.registration.subscriptionType),[x,k]=(0,l.useState)(),C=null==y?void 0:null===(t=y.items)||void 0===t?void 0:t.find(e=>e.content_id===c.uid),P=n&&c._id===n._id,T=Math.ceil(((null==c?void 0:c.duration)?Math.ceil(c.duration/1e3):0)/60),N="without_free_true"===(0,u.l3)(null==S?void 0:S.ab,"Without_Free_Content_Premier")||"without_free_true"===(0,u.l3)(null==S?void 0:S.ab,"Without_Free_Content_No_Premier")?es(c.badges):ei(c.badges,(null==S?void 0:null===(i=S.subscriptions)||void 0===i?void 0:i.length)>0),j=w===p.tO.LITE&&(c.is_free||c.free_for_authorized),E=!(0,u.xM)(c.subscriptions,w);return(0,l.useEffect)(()=>{!c.announcement||c.packshot&&c.packshot.image_15x||k(eo(c.start_release_date))},[c]),(0,s.jsxs)("div",{className:ea().item,children:[(0,s.jsxs)("div",{className:r()({[ea()["item-img-wrap"]
1]:!0,[ea()["item-img-wrap-announcement"]]:(null==c?void 0:c.announcement)||(null==c?void 0:c.unavailable_by_geo),[ea()["item-img-wrap-announcement-with-overlay"]]:(null==c?void 0:c.announcement)&&(!c.packshot||!c.packshot.image_15x)}),onClick:()=>m(o,c.title,c.announcement,c,a,n&&c._id===n._id,a),children:[(0,s.jsx)(D(),{className:ea()["item-img-wrap-poster"],loader:u.R2,src:(()=>{var e,t;let i=f/p.U8,s="".concat(i>1?Math.floor(471*i):471,"x").concat(i>1?Math.floor(266*i):266);return(null===(e=c.packshot)||void 0===e?void 0:e.image_15x)||c.announcement&&(!c.announcement||v)?!c.announcement||c.packshot&&c.packshot.image_15x?"".concat(b).concat((0,u.bZ)(null===(t=c.packshot)||void 0===t?void 0:t.image_15x,s)):"".concat(b).concat((0,u.bZ)("".concat(v,"&blur=30"),s,85)):"/static/images/V2/preview-no-poster-horizontal.webp"})(),alt:"poster",loading:"eager",fill:!0}),(null==c?void 0:c.announcement)&&x?(0,s.jsxs)("div",{className:ea()["item-img-wrap-text"],children:[x.title&&(0,s.jsx)("div",{className:ea()["item-img-wrap-text-title"],dangerouslySetInnerHTML:{__html:x.title}}),x.subtitle&&(0,s.jsx)("div",{className:ea()["item-img-wrap-text-subtitle"],dangerouslySetInnerHTML:{__html:x.subtitle}})]}):null,(0,s.jsx)("img",{className:ea()["item-img-wrap-play-img"],src:"/static/images/product/button-play.svg",alt:"play",onClick:e=>g(e,o,c.title,c.announcement,c,a,a)}),(null==C?void 0:C.progress)>95&&(0,s.jsx)(Q,{watchedText:"ÐÑоÑмоÑÑено",itemDurationText:(0,u._9)(T)}),(0,s.jsx)($,{item:C,itemProgress:C,current:P,itemDurationText:(0,u._9)(T)}),(null==C?void 0:C.progress)||null==c||!c.duration||(null==c?void 0:c.announcement)||(null==S?void 0:S.virtual)!==!0?null:(0,s.jsx)("span",{className:ea()["item-img-wrap-time"],children:(0,u._9)(T)})]}),(0,s.jsxs)("div",{className:ea().item__link,onClick:()=>h(c,a),children:[(0,s.jsx)("div",{className:ea().item__titles,children:(0,s.jsxs)("div",{className:ea()["item__titles-title-badge-block"],children:[(0,s.jsx)("div",{className:ea()["item__titles-title-wrap"],children:(0,s.jsx)("span",{className:ea()["item__titles-title"],children:null==c?void 0:c.title})}),j?null:E?(0,s.jsx)(X.JI,{className:ea().item__premium_badge}):N&&!(null==c?void 0:c.announcement)&&(0,s.jsx)(X.Ay,{textColor:N.text_color,bgColor:N.background_color,text:N.text})]})}),!(null==c?void 0:c.announcement)&&(0,s.jsx)("div",{className:ea().item__description,children:c.description})]})]})};var el=i(32467),ed=i(96927),ec=i(85299),e_=i(36617),ep=i.n(e_),eu=i(41364),eh=i(18056);let em=l.memo(e=>{var t;let{item:i,page:o,position:a,noJs:n,selectedSeasonIndex:c,currentEpisode:_,progress:h,movieData:m,onPosterClick:g,onPlayIconClick:v,onTitleClickHandle:b}=e,S=(0,I.A)(),y=(0,d.d4)(e=>{var t,i;return null===(i=e.registration.authData)||void 0===i?void 0:null===(t=i.subscriptions)||void 0===t?void 0:t.length}),f=(0,d.d4)(e=>e.systemInformation.renderMobile),w=(0,d.d4)(e=>e.registration.subscriptionType),[x,k]=(0,l.useState)(!1),[C,P]=(0,l.useState)(),T=ei(i.badges,y),N=Math.ceil(Math.ceil((null==i?void 0:i.duration)/1e3)/60),j=(0,l.useMemo)(()=>{var e;return null==h?void 0:null===(e=h.items)||void 0===e?void 0:e.find(e=>e.content_id===i.uid)},[h,i.uid]),E=_&&i._id===_._id,A=w===p.tO.LITE&&(i.is_free||i.free_for_authorized),D=!(0,u.xM)(i.subscriptions,w),R=()=>{b(i,c,n,a)};return(0,l.useEffect)(()=>{!i.announcement||i.packshot&&i.packshot.image_15x||P(eo(i.start_release_date))},[i]),(0,s.jsx)("div",{className:r()(ep()["item-wrap"],{[ep().current]:E}),children:(0,s.jsxs)("div",{className:ep().item,children:[(0,s.jsxs)("div",{className:r()(ep()["item-img-wrap"],{[ep()["item-img-wrap-announcement"]]:(null==i?void 0:i.announcement)||(null==i?void 0:i.unavailable_by_geo),[ep()["item-img-wrap-announcement-with-overlay"]]:(null==i?void 0:i.announcement)&&(!i.packshot||!i.packshot.image_15x)}),onClick:()=>{g(a,i.title,i.announcement,i,c,E,c)},children:[!x&&!n&&(0,s.jsx)(ed.A,{className:ep()["skeleton-card"]}),(0,s.jsx)(el.A,{className:ep()["item-img-wrap-poster"],src:(e=>{var t;let s="desktop_web"!==f?"333x188":"471x266";if(!e&&(!i.announcement||i.announcement&&!(null===(t=m.background)||void 0===t?void 0:t.image_15x)))return"/static/images/V2/preview-no-poster-horizontal.webp";if(i.announcement&&(!i.packshot||!i.packshot.image_15x)){let e="".concat(m.background.image_15x,"&blur=30");return"".concat(S).concat((0,u.bZ)(e,s,85))}return"".concat(S).concat((0,u.bZ)(e,s,85))})(null===(t=i.packshot)||void 0===t?void 0:t.image_15x),width:"desktop_web"!==f?222:314,height:"desktop_web"!==f?125:177,onLoad:()=>k(!0),onError:()=>k(!1)}),(null==i?void 0:i.announcement)&&C?(0,s.jsxs)("div",{className:ep()["item-img-wrap-text"],children:[C.title&&(0,s.jsx)("div",{className:ep()["item-img-wrap-text-title"],dangerouslySetInnerHTML:{__html:C.title}}),C.subtitle&&(0,s.jsx)("div",{className:ep()["item-img-wrap-text-subtitle"],dangerouslySetInnerHTML:{__html:C.subtitle}}
1)]}):null,!n&&(0,s.jsx)("img",{onClick:e=>{v(e,a,i.title,i.announcement,i,c,c)},className:ep()["item-img-wrap-play-img"],src:"/static/images/product/button-play.svg",alt:"play"}),(null==j?void 0:j.progress)>95&&(0,s.jsx)(Q,{watchedText:"ÐÑоÑмоÑÑено",itemDurationText:(0,u._9)(N)}),(0,s.jsx)($,{item:i,itemProgress:j,current:E,itemDurationText:(0,u._9)(N)}),(null==j?void 0:j.progress)||null==i||!i.duration||(null==i?void 0:i.announcement)||"desktop_web"!==f?null:(0,s.jsx)("span",{className:ep()["item-img-wrap-time"],children:(0,u._9)(N)})]}),n?(0,s.jsxs)(M(),{prefetch:!1,href:"/watch/".concat(null==m?void 0:m.alias,"/").concat(i.start_id),"data-testid":"episode_title_".concat(a),className:ep().item__link,onClick:R,children:[(0,s.jsx)("div",{className:ep().item__titles,children:(0,s.jsxs)("div",{className:ep()["item__titles-title-badge-block"],children:[(0,s.jsx)("div",{className:ep()["item__titles-title-wrap"],children:(0,s.jsx)("span",{className:ep()["item__titles-title"],children:null==i?void 0:i.title})}),A?null:D?(0,s.jsx)(X.JI,{className:ep().item__premium_badge}):T&&!(null==i?void 0:i.announcement)&&(0,s.jsx)(X.Ex,{textColor:T.text_color,bgColor:T.background_color,text:T.text})]})}),!(null==i?void 0:i.announcement)&&(0,s.jsx)("div",{className:ep().item__description,children:null==i?void 0:i.description})]}):(0,s.jsxs)("div",{className:ep().item__link,onClick:R,"data-testid":"episode_title_".concat(a),children:[(0,s.jsx)("div",{className:ep().item__titles,children:(0,s.jsxs)("div",{className:ep()["item__titles-title-badge-block"],children:[(0,s.jsx)("div",{className:ep()["item__titles-title-wrap"],children:(0,s.jsx)("span",{className:ep()["item__titles-title"],children:null==i?void 0:i.title})}),A?null:D?(0,s.jsx)(X.JI,{className:ep().item__premium_badge}):T&&!(null==i?void 0:i.announcement)&&(0,s.jsx)(X.Ex,{textColor:T.text_color,bgColor:T.background_color,text:T.text})]})}),!(null==i?void 0:i.announcement)&&(0,s.jsx)("div",{className:r()(ep().item__description,{[ep()["item__description-all"]]:"seasons"===o||"episode"===o}),children:null==i?void 0:i.description})]})]})})}),eg=e=>{let{sliderList:t,alias:i,isPaginator:o,onPosterClick:a,onPlayIconClick:c,onTitleClick:h,selectedSeasonIndex:m,selectedEpisodeIndex:g,currentEpisode:v,playerProp:b,onArrowClick:S,movieData:y,page:w,handleSeasonSelected:x,clickSeasonSelected:k,needEstPayment:C,payment:P,isEst:T}=e,N=(0,I.A)(),j=(0,eu.RP)(),E=(0,d.wA)(),A=(0,eu.jo)(),R=(0,d.d4)(e=>e.profile),M=(0,d.d4)(e=>e.systemInformation.documentClientWidth),{authData:W}=(0,d.d4)(e=>e.registration),{tariff:U}=(0,d.d4)(e=>e.est),[O,B]=(0,l.useState)(!1),[z,H]=(0,l.useState)(null),[V,K]=(0,l.useState)(!0),[F,J]=(0,l.useState)(null),{progress:Y}=R,G="кÑпиÑÑ".concat(P?"\xa0за\xa0".concat(null==P?void 0:P.price," ").concat(p.UM[null==P?void 0:P.currency]):""),X=(e,t,i,s)=>{H(parseInt(s)),h(e,t,i)};(0,l.useEffect)(()=>{K(!1)},[]),(0,l.useEffect)(()=>{b||H(g)},[g,m]);let Z=(0,l.useMemo)(()=>{if(M){if(M>p.U8){let e=(0,u.$J)(56,M);return{paddingRight:e,paddingLeft:e}}if(b&&M>p.U8){let e=(0,u.$J)(40,M);return{paddingRight:e,paddingLeft:e}}if(M>p.U8){let e=(0,u.$J)(56,M);return{paddingRight:e,paddingLeft:e}}return M>p.af?{paddingRight:56,paddingLeft:56}:{paddingRight:24,paddingLeft:24}}},[M]),q="".concat(y.background.image_15x,"&blur=30"),Q="".concat(N).concat((0,u.bZ)(q,"1328x340",85));return C&&T?(0,s.jsxs)("div",{className:r()(ep().est,{[ep().player]:b}),children:[(0,s.jsx)(D(),{src:Q,alt:"poster",loader:u.R2,width:1328,height:340}),(0,s.jsx)("div",{className:ep().est__poster}),(0,s.jsxs)("div",{className:ep().est__content,children:[(0,s.jsx)("div",{className:ep().est__title,children:"Сезон доÑÑÑпен к\xa0покÑпке"}),(0,s.jsx)("div",{className:ep().est__description,children:"ÐокÑпайÑе и\xa0ÑмоÑÑиÑе ÑейÑаÑ"}),(0,s.jsx)(L.$n,{title:G,onClick:()=>{var e,t,i;if(A({action_id:"click",screen_type:"product",screen_attributes_id:"".concat(null==y?void 0:y.alias).concat(m>1?"/season-".concat(m):""),product_id:null==y?void 0:y.uid,content_id:(null==y?void 0:null===(e=y.items)||void 0===e?void 0:e.length)?null==y?void 0:y.items[m-1||0].uid:null==y?void 0:y.uid,content_type:null==y?void 0:y._cls,block_type:"block",block_attributes_id:"top",element_type:"button",element_attributes_id:"est_buy_season",element_attributes_text:G,event_version:"1.0",event_time:new Date().getTime()}),"RU"!==W.current_country_code){E((0,f.Og)({visible:!0}));return}let s=null==y?void 0:null===(t=y.items)||void 0===t?void 0:t.find(e=>e.num==m),o=!(null==s?void 0:s.is_disabled)&&(null==U?void 0:null===(i=U.items)||void 0===i?void 0:i.find(e=>e.content_id===s.uid));if(o){J(!0);let e="".concat(N).concat(_.PI.estBuy).concat(j),t={tvod_type:"est",items:[{content_id:o.content_id,tariff_price_id:o.tariff_price_id,price:o.price.toString(),currency:o.currency}]};if(null==W?void 0:W.virtual){(0,u.TV)(eh.v8.EST_DATA,JSON.stringify(t)),(0,u.TV)(eh.v8.EST_CURRENT_SELECT,"true"),n().push("/auth");return}fetch(e,{method:"POST",credentials:"include",body:JSON.stringify(t),headers:{"Content-type":"application/json; charset=UTF-8"}}).then(e=>{e.status<400?e.json().then(e=>{window.location.href=e.form_url}):(J(!1),E((0,f.Og)({visible:!0,data:t})))})}else E((0,f.Og)({visible:!0}))},variant:L.Vt.MONO,size:L.GO.REGULAR,needResponsive:!0,isLoading:F})]})]}):(0,s.jsx)("div",{className:ep()["slider-wrap"],onMouseOver:()=>B(!0),onMouseOut:()=>B(!1),onFocus:()=>B(!0),onBlur:()=>B(!1),children:(0,s.jsx)(ec.A,{wrapperStyles:Z,widthCard:{desktop:314,mobile:222},heightCard:{desktop:200,mobile:243},isPaginator:o,active:O,alias:i,items_total:null==t?void 0:t.length,arrowClick:e=>{e?S("arrow_right"):S("arrow_left")},cardIdent:16,isProduct:!0,isProductSelections:b,items:t,selectedEpisode:z,handleSeasonSelected:x,clickSeasonSelected:k,children:(0,s.jsx)("div",{className:r()(ep().items_wrap,{[ep().inPlayer]:b}),children:null==t?void 0:t.map((t,i)=>
1(0,s.jsx)(em,{page:w,item:t,position:i,movieData:y,noJs:V,selectedSeasonIndex:m,currentEpisode:v,progress:Y,onPosterClick:a,onPlayIconClick:c,onTitleClickHandle:X,estCanPurchase:e.estCanPurchase},t._id))})})})};var ev=i(45145),eb=i.n(ev);let eS={[N.Qh.HOLOD]:"product__season-tabs-holod",[N.Qh.OLDSKUL]:"product__season-tabs-oldskul"},ey={[N.Qh.HOLOD]:"product__season-tab-holod",[N.Qh.OLDSKUL]:"product__season-tab-oldskul"};class ef extends l.PureComponent{componentDidUpdate(e,t){var i,s,o,r,a,l;let{query:d}=n(),c=null===(i=d.params)||void 0===i?void 0:i[1],{movieData:_,page:p,playerProp:h,maxSeason:m,currentEpisode:g,season:v}=this.props,{movieData:b,maxSeason:S,page:y,currentEpisode:f,season:w}=e,{selectedSeasonIndex:x,progressSeasonNum:k,progressEpisodeIndex:C,estPurchased:P}=this.state,{selectedSeasonIndex:T}=t,{authData:N}=this.props.registration,{lastProgress:j,progress:I,lastProgressId:E}=this.props.profile,{lastProgress:A,progress:D}=e.profile,{windowInnerWidth:R}=this.props.systemInformation,{windowInnerWidth:M}=e.systemInformation,{access:L,shop:W}=this.props.est;R&&M&&R!==M&&this.resizeHandler();let U=c&&-1!==c.indexOf("season-")&&parseInt(c.split("-")[1]);if(!v&&(null==_?void 0:null===(s=_.items)||void 0===s?void 0:s.length)&&g&&(null==f?void 0:f.uid)!==(null==g?void 0:g.uid)){let e=this.findCurrentEpisodeSeason();e&&this.setState({currentSeason:e.num,selectedSeasonIndex:e.num})}if(b&&_&&_._id!==b._id){this.loadProfile=!1;let e=this.getFirstAvailableSeasonNumber();this.setState({selectedSeasonIndex:h?m:e})}if(!U&&m!==S||!p&&p!==y){let e=this.getFirstAvailableSeasonNumber();this.setState({selectedSeasonIndex:h?m:e})}if(v&&v!==w&&v!=x&&this.setState({selectedSeasonIndex:v}),h&&this.setState({selectedSeasonIndex:x>m?m:x}),_&&_.items&&_.items.length&&!this.loadMovie&&(this.loadMovie=!0),N&&_&&!this.loadProfile&&(this.loadProfile=!0,(null==N?void 0:N.virtual)?this.setState({selectedEpisodeIndex:0}):(this.fetchProfileProgress(_.uid,!0),this.fetchProfileProgress(_.uid,!1))),E&&j&&I&&(j.content_id!==(null==A?void 0:A.content_id)||I!==D)){this.loadProgress=!1;let e=null===(a=_.items)||void 0===a?void 0:a.find(e=>null==e?void 0:e.items.find(e=>e.uid===(null==j?void 0:j.content_id))),t=(null==e?void 0:e.items)||[],i=t.findIndex(e=>e.uid===(null==j?void 0:j.content_id)),s=(null==I?void 0:I.items)||[],o=s.length?s[0]:{},r=s.length?s[s.length-1]:{},n=null===(l=_.items)||void 0===l?void 0:l.find(e=>e.items.find(e=>e.uid===o.content_id)),d=((null==n?void 0:n.items)||[]).findIndex(e=>e.uid===(null==j?void 0:j.content_id)),c=(null==n?void 0:n.num)||1,p=d>-1?d:0;if(j){if(0!==j.progress&&i>-1||0===j.progress&&o.content_id!==j.content_id)c=null==e?void 0:e.num,p=i;else{let i=t.findIndex(e=>e.announcement),s=(0,u.UY)(null==_?void 0:_.items)[0];r.progress>0&&(i>-1?(c=null==e?void 0:e.num,p=i):(null==s?void 0:s.num)&&(c=null==s?void 0:s.num,p=i))}}this.setState({progressSeasonNum:c,progressEpisodeIndex:p})}if(k&&!v&&!this.loadProgress&&(null==L?void 0:null===(o=L.items)||void 0===o?void 0:o.length)&&(this.loadProgress=!0,this.setState({selectedSeasonIndex:k,selectedEpisodeIndex:C})),T&&x!==T&&k&&(x===k?this.setState({selectedEpisodeIndex:C}):this.setState({selectedEpisodeIndex:0})),(null==_?void 0:_.is_disabled)&&(null==L?void 0:null===(r=L.items)||void 0===r?void 0:r.length)&&P&&!this.loadAccess){this.loadAccess=!0;let e=this.getAllAvailableSeasons();!U||U&&e.find(e=>e.num===U)?this.setState({selectedSeasonIndex:this.getFirstAvailableSeasonNumber()}):n().push("/watch/".concat(d.params[0]))}if(W&&!this.loadShop){this.loadShop=!0;let e=(0,u.RE)(_,L),t=e.getCheckEstAvailable(),i=e.getCheckEstPurchased(),s=e.getCheckCanPurchase();this.setState({isEst:t,estPurchased:i,estCanPurchase:s||[]})}}render(){var e,t,i,o;let{currentEpisode:a,page:n,movieData:l,bannerData:d,playerProp:c,isNewEpisodePage:_,productCustomization:p}=this.props,{currentSeason:h,selectedSeasonIndex:m,selectedEpisodeIndex:g,noJs:v,isAllSeriesActive:b,isDesktop:S,isEst:y,estCanPurchase:f,estPurchased:k}=this.state,{tariff:C,access:j}=this.props.est,{authData:I}=this.props.registration,E=this.preparedSeasonsFunc(c?(0,u.DT)(null==l?void 0:l.items):null==l?void 0:l.items),A=v&&h||m,D=(null==l?void 0:l.is_disabled)?k?null===(e=l.items)||void 0===e?void 0:e.find(e=>(null==j?void 0:j.items.find(t=>
1t.content_id===e.uid))&&(null==e?void 0:e.num)==A):[]:null===(t=l.items)||void 0===t?void 0:t.find(e=>(null==e?void 0:e.num)==A&&(!e.is_disabled||e.is_disabled&&k)),R=(null==D?void 0:D.items)||[],M=(null==D?void 0:D.is_preview)&&!(null==R?void 0:R.length),L=(0,u.Ls)((0,u.UY)(null==l?void 0:l.items)),W=S&&!M,U=null==E?void 0:null===(i=E.find(e=>(null==e?void 0:e.num)==A))||void 0===i?void 0:i.alias,O=(0,N.Kf)(p,eb(),eS),B=!!((null==f?void 0:f.length)&&(null==f?void 0:f.find(e=>e.uid===(null==D?void 0:D.uid)))),z=null==C?void 0:null===(o=C.items)||void 0===o?void 0:o.find(e=>e.content_id===(null==D?void 0:D.uid));return(null==l?void 0:l.is_disabled)&&!k||y&&!k&&(null==I?void 0:I.current_country_code)!=="RU"?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:this.seriesRef,className:eb().product__series,children:(0,s.jsxs)("div",{className:eb()["product__series-inner"],children:[(0,s.jsxs)("div",{className:c?eb()["product__seasons-player"]:eb().product__seasons,children:[!c&&(0,s.jsxs)("div",{className:eb().product__header,children:[(0,s.jsx)("h2",{className:eb()["product__header-title"],children:"Ð¡ÐµÐ·Ð¾Ð½Ñ Ð¸ ÑеÑии"}),W&&!B?(0,s.jsx)(w.A,{className:{button:r()(eb()["product__header-button"],{[eb()["product__header-button--active"]]:b}),title:eb()["product__header-button-title"],icon:r()(eb()["product__header-button-icon"],{[eb()["product__header-button-icon--down"]]:b})},collapsedText:"ÐÑе ÑеÑии",expandedText:"СвеÑнÑÑÑ",arrowSrc:"/static/images/arrow-medium-down.svg",isExpand:b,onClick:this.handleAllSeriesButtonClick(!1)}):null]}),(0,s.jsx)(P.A,{alias:c?"player_".concat(null==l?void 0:l.alias):"series",movieData:l,categoriesList:E,current:null==E?void 0:E.find(e=>(null==e?void 0:e.num)==A),onClickCategory:this.handleCategoryClick,inPlayer:c,productPage:!0,renderContent:e=>{let{className:t,...i}=e;return(0,s.jsx)(x.t,{type:"link",variant:"secondary",tabSize:"large",tabs:E,tabId:"alias",className:r()(t,eb().tabs,O),renderContent:e=>(0,s.jsx)("span",{className:r()(e.alias===U&&(0,N.Kf)(p,eb(),ey)),children:e.title}),activeTabId:U,getTabProps:e=>({route:"/watch/".concat(l.alias,"/season-").concat(e.num),scroll:!1}),onClickTab:this.handleClickTab,...i})}})]}),W&&b?(0,s.jsxs)("div",{className:eb()["product__series-all"],children:[(0,s.jsx)("div",{className:eb()["product__series-wrap"],children:null==R?void 0:R.map((e,t)=>{var i;return(0,s.jsx)(en,{index:t,alias:l.alias,card:e,selectedSeasonIndex:m,currentEpisode:a,onPosterClick:this.initSeasonPlayer,onPlayIconClick:this.handleClickPlay,onTitleClick:this.seriesTitleClick,seriesBackground:null==l?void 0:null===(i=l.background)||void 0===i?void 0:i.image_15x},t)})}),!B&&(0,s.jsx)(w.A,{className:{button:r()(eb()["product__header-button"],{[eb()["product__header-button--active"]]:b}),title:eb()["product__header-button-title"],icon:r()(eb()["product__header-button-icon"],{[eb()["product__header-button-icon--down"]]:b})},collapsedText:"ÐÑе ÑеÑии",expandedText:"СвеÑнÑÑÑ",arrowSrc:"/static/images/arrow-medium-down.svg",isExpand:b,onClick:this.handleAllSeriesButtonClick(!0)})]}):M&&!c?(0,s.jsx)(G,{movieData:l,season:D,isLast:L==A}):(0,s.jsx)(eg,{lineIdx:1,page:n,alias:c?"player_series":"series",sliderList:R,movieData:l,playerProp:c,selectedSeasonIndex:m,selectedEpisodeIndex:g,currentEpisode:a,currentSeason:h||m,isNewEpisodePage:_,onPosterClick:this.initSeasonPlayer,onPlayIconClick:this.handleClickPlay,onTitleClick:this.seriesTitleClick,onArrowClick:this.handleArrowShoot,handleSeasonSelected:this.handleSeasonSelected,clickSeasonSelected:this.state.clickSeasonSelected,isEst:y,needEstPayment:B,estCanPurchase:f,payment:z,estPurchased:k})]})}),d&&"series"===d.position&&(0,s.jsx)(T.A,{bannerData:d,movieData:l})]})}constructor(...e){var t;super(...e),t=this,this.state={selectedSeasonIndex:this.props.playerProp&&this.props.maxSeason||1,selectedEpisodeIndex:null,progressSeasonNum:null,progressEpisodeIndex:null,currentSeason:this.props.season,mlk_msisdn:(0,u.Ri)("mlk_msisdn"),mlk_app:(0,u.Ri)("mlk_app"),settings:{dots:!1,draggable:!1,speed:250,touchMove:!0,infinite:!1,arrows:!0,slidesToShow:4,slidesToScroll:4,browserWidth:0,adaptiveHeight:!0,responsive:[{breakpoint:320,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:750,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:1025,settings:{arrows:!0,slidesToShow:this.props.playerProp?4:3,slidesToScroll:this.props.playerProp?4:3}}]}
1,SeasonSlider:{dots:!1,draggable:!1,speed:250,touchMove:!0,swipeToSlide:!0,infinite:!1,arrows:!this.props.playerProp,browserWidth:0,slidesToScroll:2,variableWidth:!0,focusOnSelect:!1,afterChange:()=>{this.toggleSliderArrowDisplay()}},videoTitle:"",showAllSeries:!0,noJs:!0,isAllSeriesActive:!1,isDesktop:!0,clickSeasonSelected:!1,isEst:!1,estPurchased:!1,estCanPurchase:[]},this.seriesRef=l.createRef(),this.apiKey=this.props.systemInformation.API_KEY||p.Lq,this.apiUrl=this.props.systemInformation.API_URL||p.H$,this.loadMovie=!1,this.loadProfile=!1,this.loadProgress=!1,this.loadAccess=!1,this.loadShop=!1,this.componentDidMount=()=>{var e;let{query:t}=n(),{maxSeason:i,playerProp:s}=this.props,o=window.innerWidth,r=null===(e=t.params)||void 0===e?void 0:e[1],a=r&&-1!==r.indexOf("season-")&&parseInt(r.split("-")[1]),l=this.getFirstAvailableSeasonNumber();this.setState({browserWidth:o,isDesktop:o>p.xW.TABLET,currentSeason:a,selectedSeasonIndex:a||(s?i:l),noJs:!1})},this.resizeHandler=()=>{let{innerWidth:e}=window,{browserWidth:t}=this.state;e!==t&&this.setState({browserWidth:e,isDesktop:e>p.xW.TABLET})},this.findCurrentEpisodeSeason=()=>{var e;let{movieData:t,currentEpisode:i}=this.props;if((null==t?void 0:null===(e=t.items)||void 0===e?void 0:e.length)&&i)return t.items.find(e=>e.items.some(e=>e.uid===i.uid))},this.getFirstAvailableSeasonNumber=()=>{let{movieData:e,playerProp:t,access:i}=this.props,{estPurchased:s}=this.state,o=(null==e?void 0:e.is_disabled)?s?null==e?void 0:e.items.filter(e=>{var t;return null==i?void 0:null===(t=i.items)||void 0===t?void 0:t.find(t=>e.uid===t.content_id)}):[]:null==e?void 0:e.items.filter(e=>!e.is_disabled),r=t?(0,u.DT)(o):o,a=1;if(r){var n;a=null===(n=(null==r?void 0:r.sort((e,t)=>e.num>t.num?1:t.num>e.num?-1:0))[0])||void 0===n?void 0:n.num}return a},this.getAllAvailableSeasons=()=>{let{movieData:e,access:t}=this.props,{estPurchased:i}=this.state,s=(null==e?void 0:e.is_disabled)&&i?null==e?void 0:e.items.filter(e=>{var i;return null==t?void 0:null===(i=t.items)||void 0===i?void 0:i.find(t=>e.uid===t.content_id)}):null==e?void 0:e.items;return null==s?void 0:s.sort((e,t)=>e.num>t.num?1:t.num>e.num?-1:0)},this.handleArrowShoot=e=>{let{season:t,playerProp:i,shootBase:s}=this.props,{clickHouseData:o}=this.props.systemInformation,{currentSeason:r,selectedSeasonIndex:a}=this.state,{_id:l}=this.props.movieData,d={...o,...s,action_id:"click",block_type:"season",block_attributes_id:t||n().query&&n().query.season||"season-".concat(a)||0,element_type:"button",element_attributes_id:e,product_id:l,event_time:new Date().getTime()};
1i?d.screen_type="player":d.screen_type,this.props.clickHouseShoot(this.apiUrl,this.apiKey,d)},this.seasonCategoryClickHandler=(e,t)=>{let{_id:i}=this.props.movieData,{selectedSeasonIndex:s}=this.state,{playerProp:o,shootBase:r}=this.props;this.setState({selectedSeasonIndex:e.num,currentSeason:e.num},()=>{let{clickHouseData:a}=this.props.systemInformation,n={...a,...r,action_id:"click",block_type:"block",block_attributes_id:"seasons",product_id:i,element_type:"menu_item",element_attributes_id:"season-".concat(e.num),element_attributes_text:"".concat(e.num," ").concat(e.num===s?"Ñезон":""),element_attributes_index:t+1,event_time:new Date().getTime()};o?n.screen_type="player":n.screen_type,this.props.clickHouseShoot(this.apiUrl,this.apiKey,n)})},this.seriesTitleClick=(e,t,i)=>{let{playerProp:s,intersectionObserverOff:o}=this.props,{clickHouseData:r,config:a}=this.props.systemInformation,{_id:l,alias:d}=this.props.movieData;if(this.checkForBlock(a,e))return;let c={...r,action_id:"click",block_type:"season",block_attributes_id:"season-".concat(t),element_type:"product",element_attributes_id:"episode-".concat(e.num),element_attributes_index:t+1,element_attributes_text:e.title,product_id:l,content_id:e.uid,content_type:e._cls,event_time:new Date().getTime()};if(s?c.screen_type="player":c.screen_type,this.props.clickHouseShoot(this.apiUrl,this.apiKey,c),!i){let t="/watch/".concat(d,"/").concat(e.start_id);o&&o(),n().push(t,void 0,{scroll:!1})}},this.fetchStreamOptions=async e=>{let{startDeviceId:t}=this.props.systemInformation,{authData:i,tariffs:s}=this.props.registration,{playerProp:o}=this.props,r="".concat(this.apiUrl).concat(e).concat(this.apiKey,"&device_id=").concat(t,"&auth_token=").concat(i.authentication_token),a=await fetch(r,{method:"GET",credentials:"include"}),l=await a.json();if(a.status<400)return l;if(400===a.status&&("USER_USE_ANONYMIZER"===l.message||"FORBIDEN_IP"===l.message)){this.props.pushStackAddItem({text:"<span>Ðе забÑдÑÑе вÑклÑÑиÑÑ VPN</span> ЧÑÐ¾Ð±Ñ Ð²ÐµÑÑ ÐºÐ¾Ð½ÑÐµÐ½Ñ START ÑÑал доÑÑÑпен",withWarning:!0,withTitle:!0,withoutAutoClosing:!0});return}if(403===a.status)switch(l.code){case"DEVICE_COUNT_EXCEEDED":return this.props.toggleDevicesPopup(!0),{devices:!0};case"DEVICE_NOT_REGISTERED":this.props.toggleDeletedDevicePopup(!0);return}else fetch("".concat(this.apiUrl).concat(_.PI.authRefresh).concat(this.apiKey),{credentials:"include",method:"POST"}).then(e=>{if(e.status>400){if(401===a.status){let{authData:e}=this.props.registration;e.partner&&"ttk"===e.partner.name?this.props.toggleTTKPopup(!0):(null==e?void 0:e.virtual)===!1?(0,m.b)({authData:this.props.registration.authData,tariffs:s,playerMovie:this.props.movie.playerMovie,dispatch:this.props.dispatch,onSuccess:()=>{this.paymentRedirect(s)},onVirtualUserCallback:()=>{o&&this.props.playerReset(),n().push("/auth"),o&&this.props.closePlayer(!0)}}):(o&&this.props.playerReset(),n().push("/auth")),o&&this.props.closePlayer(!0)}else this.props.pushStackAddItem({text:"<span>ЧÑо-Ñо поÑло не Ñак</span> СкоÑо вÑе поÑиним. ÐопÑобÑйÑе позже",withError:!0,withTitle:!0})}})},this.paymentRedirect=e=>{var t,i,s;let{authData:o}=this.props.registration,{playerProp:r}=this.props,{mlk_app:a}=this.state;if((a||(null==o?void 0:null===(t=o.mf_info)||void 0===t?void 0:t.mf_pop_up)&&(null==o?void 0:null===(s=o.mf_info)||void 0===s?void 0:null===(i=s.mf_pop_up)||void 0===i?void 0:i.indexOf("_web"))===-1)&&(null==o?void 0:o.mf_info.is_mf))"to_block"!==o.mf_info.mf_pop_up?(r&&this.props.playerReset(),n().push("/megafon_connect")):(this.props.pushStackAddItem({text:"<span>Ðа ÑÑеÑÑ ÐегаФона не доÑÑаÑоÑно ÑÑедÑÑв</span> ÐополниÑе Ð±Ð°Ð»Ð°Ð½Ñ Ð¸ возвÑаÑайÑеÑÑ",withError:!0,withTitle:!0}),r&&this.props.closePlayer(!0));else{let t=null;try{t=ga.getAll()[0].get("clientId")}catch(e){}let i=(0,_.fQ)("".concat(this.apiUrl).concat(e[0].url).concat(this.apiKey).concat(t?"&ga_id=".concat(t):""));(0,_.BA)({url:i,toPaymentTariffs:!0,callback:()=>{r&&this.props.closePlayer(!0)},errorCallback:()=>{this.props.pushStackAddItem({text:"<span>
1ЧÑо-Ñо поÑло не Ñак</span> СкоÑо вÑе поÑиним. ÐопÑобÑйÑе позже",withError:!0,withTitle:!0})}})}},this.handleBannerClick=()=>{let{estCanPurchase:e}=this.props,{tariff:t}=this.props.est;if(!(null==e?void 0:e.length)){this.props.toggleSomethingWentWrongEstPopup({visible:!0});return}if((null==e?void 0:e.length)>1)this.props.toggleEstSeasonSelectPopup(!0);else{var i,s,o,r;let e="".concat(this.apiUrl).concat(_.PI.estBuy).concat(this.apiKey),a={tvod_type:"est",items:[{content_id:null==t?void 0:null===(i=t.items[0])||void 0===i?void 0:i.content_id,tariff_price_id:null==t?void 0:null===(s=t.items[0])||void 0===s?void 0:s.tariff_price_id,price:null==t?void 0:null===(o=t.items[0])||void 0===o?void 0:o.price.toString(),currency:null==t?void 0:null===(r=t.items[0])||void 0===r?void 0:r.currency}]};fetch(e,{method:"POST",credentials:"include",body:JSON.stringify(a),headers:{"Content-type":"application/json; charset=UTF-8"}}).then(e=>{e.status<400?e.json().then(e=>{window.location.href=e.form_url}):this.props.toggleSomethingWentWrongEstPopup({visible:!0,data:a})})}},this.handleClickPlay=async(e,t,i,s,o,r,a)=>{var l,d,c,_,p,g,v,b,S,y,f,w,x,P,T,N,j;let I;e.stopPropagation();let{config:E}=this.props.systemInformation;if(this.checkForBlock(E,o))return;let{playerProp:A,seasonNum:D}=this.props,{isEst:R,estCanPurchase:M,estPurchased:L}=this.state,{clickHouseData:W}=this.props.systemInformation,{authData:U,tariffs:O}
1=this.props.registration,B=this.props.profile.pendingSubscription,z=this.props.profile.childProfile,{_id:H,alias:V,rating_age:K,items:F}=this.props.movieData,{tariff:J,access:Y}=this.props.est,G=(null==o?void 0:o.is_free)||(null==o?void 0:o.free_for_authorized),X={...W,action_id:"click",block_type:"season",block_attributes_id:"season-".concat(r),element_type:"button",element_attributes_id:"play",element_attributes_index:t+1,product_id:H,content_id:o.uid,content_type:o._cls,event_time:new Date().getTime()};if(A?X.screen_type="player":X.screen_type,this.props.clickHouseShoot(this.apiUrl,this.apiKey,X),z&&await (0,C.j)({apiUrl:this.apiUrl,apiKey:this.apiKey})){this.props.toggleSwitchToAdultProfile({visible:!0});return}if(s||o.unavailable_by_geo)return!1;(null==U?void 0:U.virtual)&&(null==U?void 0:U.current_country_code)==="RU"&&o&&"Episode"===o._cls&&o.free_for_authorized&&(0,u.Uy)();let Z=new Date().getTime(),q=D||r,Q=null==F?void 0:F.length,$=Q?F[q-1||0]:this.props.movieData,ee=$&&(null==Y?void 0:null===(l=Y.items)||void 0===l?void 0:l.find(e=>e.content_id===$.uid||e.product_id===$.uid)),et=ee||!!R&&((null==F?void 0:F.length)?null===(p=this.props.movieData)||void 0===p?void 0:null===(_=p.items[q-1||0].subscriptions)||void 0===_?void 0:null===(c=_.find(e=>{var t;return(null===(t=e.type)||void 0===t?void 0:t.toLowerCase())==="est"}))||void 0===c?void 0:null===(d=c.streams)||void 0===d?void 0:d.find(e=>1e3*e.unpublish>Z&&1e3*e.publish<Z):null===(b=this.props.movieData.subscriptions)||void 0===b?void 0:null===(v=b.find(e=>{var t;return(null===(t=e.type)||void 0===t?void 0:t.toLowerCase())==="est"}))||void 0===v?void 0:null===(g=v.streams)||void 0===g?void 0:g.find(e=>1e3*e.unpublish>Z&&1e3*e.publish<Z));
1if(o.playback_options&&!o.playback_options.includes(".m3u8")&&!o.is_preview&&!et){if(I=await this.fetchStreamOptions(o.playback_options),(0,u.Eo)(null==I?void 0:I.upgrade_options)){(0,u.vB)({contentUpgradeOptions:null==I?void 0:I.upgrade_options,saveBackRoute:!0});return}if(!(null==I?void 0:null===(S=I.playlists)||void 0===S?void 0:S.length)&&!(null==I?void 0:I.devices)){let{show:e,type:t}=(0,k.g5)(U,B);U.partner&&"ttk"===U.partner.name?this.props.toggleTTKPopup(!0):(null==U?void 0:null===(y=U.externals)||void 0===y?void 0:y.length)&&!(null==U?void 0:null===(f=U.subscriptions)||void 0===f?void 0:f.length)?this.paymentRedirect((null==I?void 0:null===(T=I.upgrade_options)||void 0===T?void 0:T.length)?I.upgrade_options:O):e&&!G?(0,u.G6)((null==U?void 0:U.ab)||[],"Benefits_screen_customization","Test_Benefits_screen_customization")&&localStorage.getItem("bgUrl")?this.props.toggleSubscriptionOfferPopup({visible:!0,type:t,isContentPage:!0}):this.props.toggleSubscriptionOfferPopup({visible:!0,type:t}):(null==U?void 0:U.virtual)===!1&&(null==I?void 0:null===(w=I.upgrade_options)||void 0===w?void 0:w.length)?this.paymentRedirect(I.upgrade_options):(null==U?void 0:null===(x=U.subscriptions)||void 0===x?void 0:x.length)||(null==I?void 0:null===(P=I.upgrade_options)||void 0===P?void 0:P.length)?(null==U?void 0:U.virtual)===!0&&(A&&this.props.playerReset(),G&&((0,u.TV)("fromProductPageWithFreeContent",!0),(0,u.Uy)()),n().push("/auth")):(0,m.b)({authData:this.props.registration.authData,tariffs:O,playerMovie:this.props.movie.playerMovie,dispatch:this.props.dispatch,onSuccess:()=>{this.paymentRedirect(O)},onVirtualUserCallback:()=>{A&&this.props.playerReset(),n().push("/auth"),A&&this.props.closePlayer(!0)}}),A&&this.props.closePlayer(!0);return}}if(et){if((null==U?void 0:U.virtual)===!0){n().push("/auth");return}if(!(null==J?void 0:null===(N=J.items)||void 0===N?void 0:N.length)&&!ee){this.props.toggleSomethingWentWrongEstPopup({visible:!0});return}if((null==M?void 0:M.length)&&(null==M?void 0:M.length)===(null==J?void 0:null===(j=J.items)||void 0===j?void 0:j.length)&&!L&&!ee){Q?this.props.toggleEstSeasonSelectPopup(!0):this.handleBannerClick();return}
1I=await this.fetchStreamOptions(null==o?void 0:o.playback_options_est)}(0,h.j)({ratingAge:K,dispatch:this.props.dispatch,childProfile:this.props.childProfile,parentalControl:this.props.parentalControl,successCallback:()=>{this.setState({videoTitle:i,selectedItem:o},()=>{var e,i,s,r;this.props.initPlayer({type:"Season",init:!0,index:t});let n={movieUrl:"/web/watch/".concat(V),movieTitle:o.title,isTrailer:!1,movieId:o._id,playback:et?o.playback_options_est:o.playback_options,similar:this.props.similar,uid:o.uid,rating_age:o.rating_age||K,containsMeta:!!(null===(e=o.restrictions)||void 0===e?void 0:e.find(e=>"ContainsMeta"===e.id))||!!(null===(i=a.restrictions)||void 0===i?void 0:i.find(e=>"ContainsMeta"===e.id)),containsSmoking:!!(null===(s=o.restrictions)||void 0===s?void 0:s.find(e=>"ContainsSmoking"===e.id))||!!(null===(r=a.restrictions)||void 0===r?void 0:r.find(e=>"ContainsSmoking"===e.id)),isSeries:!0,playerSource:I};this.props.isFairplay?this.props.closePlayer(!0,!1,n):this.props.getPlayerData(n)}),this.props.setAutoTrailer(!1)}})},this.initSeasonPlayer=async(e,t,i,s,o,r,a)=>{var l,d,c,_,p,g,v,b,S,y,f,w,x,P,T,N,j;let I;let{config:E}=this.props.systemInformation;if(this.checkForBlock(E,s))return;let{playerProp:A,seasonNum:D}=this.props,{isEst:R,estCanPurchase:M,estPurchased:L}=this.state,{clickHouseData:W}=this.props.systemInformation,{authData:U,tariffs:O,subscriptionType:B}
1=this.props.registration,z=this.props.profile.pendingSubscription,H=this.props.profile.childProfile,{_id:V,alias:K,rating_age:F,items:J}=this.props.movieData,{tariff:Y,access:G}=this.props.est,X=(null==s?void 0:s.is_free)||(null==s?void 0:s.free_for_authorized),Z={...W,action_id:"click",block_type:"season",block_attributes_id:"season-".concat(o),element_type:"product",element_attributes_id:"episode-".concat(s.num),element_attributes_index:e+1,element_attributes_text:s.title,product_id:V,content_id:s.uid,content_type:s._cls,event_time:new Date().getTime()};if(A?Z.screen_type="player":Z.screen_type,this.props.clickHouseShoot(this.apiUrl,this.apiKey,Z),H&&await (0,C.j)({apiUrl:this.apiUrl,apiKey:this.apiKey})){this.props.toggleSwitchToAdultProfile({visible:!0});return}if(i||s.unavailable_by_geo)return!1;(null==U?void 0:U.virtual)&&(null==U?void 0:U.current_country_code)==="RU"&&s&&"Episode"===s._cls&&s.free_for_authorized&&(0,u.Uy)();let q=new Date().getTime(),Q=D||o,$=null==J?void 0:J.length,ee=$?J[Q-1||0]:this.props.movieData,et=ee&&(null==G?void 0:null===(l=G.items)||void 0===l?void 0:l.find(e=>e.content_id===ee.uid||e.product_id===ee.uid)),ei=et||!!R&&((null==J?void 0:J.length)?null===(p=this.props.movieData)||void 0===p?void 0:null===(_=p.items[Q-1||0].subscriptions)||void 0===_?void 0:null===(c=_.find(e=>{var t;return(null===(t=e.type)||void 0===t?void 0:t.toLowerCase())==="est"}))||void 0===c?void 0:null===(d=c.streams)||void 0===d?void 0:d.find(e=>1e3*e.unpublish>q&&1e3*e.publish<q):null===(b=this.props.movieData.subscriptions)||void 0===b?void 0:null===(v=b.find(e=>{var t;return(null===(t=e.type)||void 0===t?void 0:t.toLowerCase())==="est"}))||void 0===v?void 0:null===(g=v.streams)||void 0===g?void 0:g.find(e=>1e3*e.unpublish>q&&1e3*e.publish<q));if(s.playback_options&&!s.playback_options.includes(".m3u8")&&!s.is_preview&&!ei){I=await this.fetchStreamOptions(s.playback_options);let e=(0,u.G6)((null==U?void 0:U.ab)||[],"Benefits_screen_customization","Test_Benefits_screen_customization")&&!!localStorage.getItem("bgUrl");if(!(0,u.xM)(null==s?void 0:s.subscriptions,B)){(0,u.vB)({contentUpgradeOptions:null==I?void 0:I.upgrade_options,saveBackRoute:!0});return}if(!(null==I?void 0:null===(S=I.playlists)||void 0===S?void 0:S.length)&&!(null==I?void 0:I.devices)){let{show:t,type:i}=(0,k.g5)(U,z);U.partner&&"ttk"===U.partner.name?this.props.toggleTTKPopup(!0):(null==U?void 0:null===(y=U.externals)||void 0===y?void 0:y.length)&&!(null==U?void 0:null===(f=U.subscriptions)||void 0===f?void 0:f.length)?this.paymentRedirect((null==I?void 0:null===(T=I.upgrade_options)||void 0===T?void 0:T.length)?I.upgrade_options:O):t&&!X?e?this.props.toggleSubscriptionOfferPopup({visible:!0,type:i,isContentPage:!0}):this.props.toggleSubscriptionOfferPopup({visible:!0,type:i}):(null==U?void 0:U.virtual)===!1&&(null==I?void 0:null===(w=I.upgrade_options)||void 0===w?void 0:w.length)?this.paymentRedirect(I.upgrade_options):(null==U?void 0:null===(x=U.subscriptions)||void 0===x?void 0:x.length)||(null==I?void 0:null===(P=I.upgrade_options)||void 0===P?void 0:P.length)?(null==U?void 0:U.virtual)===!0&&(A&&this.props.playerReset(),X&&((0,u.TV)("fromProductPageWithFreeContent",!0),(0,u.Uy)()),n().push("/auth")):(0,m.b)({authData:this.props.registration.authData,tariffs:O,playerMovie:this.props.movie.playerMovie,dispatch:this.props.dispatch,onSuccess:()=>{this.paymentRedirect(O)},onVirtualUserCallback:()=>{A&&this.props.playerReset(),n().push("/auth"),A&&this.props.closePlayer(!0)}}),A&&this.props.closePlayer(!0);return}}if(ei){if(!(null==Y?void 0:null===(N=Y.items)||void 0===N?void 0:N.length)&&!et){this.props.toggleSomethingWentWrongEstPopup({visible:!0});return}if((null==M?void 0:M.length)&&(null==M?void 0:M.length)===(null==Y?void 0:null===(j=Y.items)||void 0===j?void 0:j.length)&&!L&&!et){$?this.props.toggleEstSeasonSelectPopup(!0):this.handleBannerClick();return}I=await this.fetchStreamOptions(null==s?void 0:s.playback_options_est)}(0,h.j)({ratingAge:F,dispatch:this.props.dispatch,childProfile:this.props.profile.childProfile,parentalControl:this.props.parentalControl,successCallback:()=>{var i;this.setState({videoTitle:t,selectedItem:s},()=>{var t,i,o,n;this.props.initPlayer({type:"Season",init:!0,index:e});let l={movieUrl:"/web/watch/".concat(K),movieTitle:s.title,isTrailer:!1,movieId:s._id,playback:R?s.playback_o
1ptions_est:s.playback_options,currentEpisode:r,uid:s.uid,rating_age:s.rating_age||F,containsMeta:!!(null===(t=s.restrictions)||void 0===t?void 0:t.find(e=>"ContainsMeta"===e.id))||!!(null===(i=a.restrictions)||void 0===i?void 0:i.find(e=>"ContainsMeta"===e.id)),isSeries:!0,containsSmoking:!!(null===(o=s.restrictions)||void 0===o?void 0:o.find(e=>"ContainsSmoking"===e.id))||!!(null===(n=a.restrictions)||void 0===n?void 0:n.find(e=>"ContainsSmoking"===e.id)),playerSource:I};this.props.isFairplay?this.props.closePlayer(!0,!1,l):this.props.getPlayerData(l)}),r&&(null===(i=this.props)||void 0===i?void 0:i.onClickCurrentEpisode)&&this.props.onClickCurrentEpisode()}})},this.preparedSeasonsFunc=e=>{if(!e)return;let{selectedSeasonIndex:t,estCanPurchase:i,estPurchased:s,isEst:o}=this.state,{movieData:r,access:a}=this.props,{authData:n}=this.props.registration,l=null==e?void 0:e.sort((e,t)=>e.num>t.num?1:t.num>e.num?-1:0);if((null==(l=o?l.filter(e=>{var t;return(null==a?void 0:null===(t=a.items)||void 0===t?void 0:t.find(t=>e.uid===t.content_id||e.uid===t.product_id))||"RU"===n.current_country_code&&(i.find(t=>t.uid===e.uid)||!e.is_disabled&&!(null==r?void 0:r.is_disabled))}):l.filter(e=>!e.is_disabled&&!(null==r?void 0:r.is_disabled)))?void 0:l.length)&&(s||null==r||!r.is_disabled))return null==l?void 0:l.map(e=>({title:t==(null==e?void 0:e.num)?"".concat(null==e?void 0:e.num," Ñезон"):null==e?void 0:e.num,alias:null==e?void 0:e.alias,num:e.num}))},this.handleCategoryClick=(e,t)=>{let{movieData:i,page:s,intersectionObserverOff:o}=this.props,{selectedSeasonIndex:r}=this.state,a=e.num===r,l="/watch/".concat(i.alias,"/season-").concat(e.num);a&&"seasons"===s||(o&&o(),n().push(l,void 0,{scroll:!1}),this.seasonCategoryClickHandler(e,t),this.handleSeasonSelected(!0))},this.handleSeasonSelected=e=>{this.setState({clickSeasonSelected:e})}
1,this.getSelectedSeasonUid=()=>{var e;let{selectedSeasonIndex:t}=this.state,{items:i}=this.props.movieData;return null===(e=i[t-1])||void 0===e?void 0:e.uid},this.handleAllSeriesButtonClick=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return i=>{let{selectedSeasonIndex:s}=t.state,{_cls:o,uid:r}=t.props.movieData,{clickHouseData:a}=t.props.systemInformation,n={...a,action_id:"click",block_type:"season",block_attributes_id:"season-".concat(s),product_id:r,content_id:t.getSelectedSeasonUid(),content_type:o,element_type:"button",element_attributes_id:i?"all_episodes":"show_less",element_attributes_text:i?"ÐÑе ÑеÑии":"СвеÑнÑÑÑ",event_time:new Date().getTime()};t.props.clickHouseShoot(t.apiUrl,t.apiKey,n),t.setState({isAllSeriesActive:i},()=>{if(!i&&e){let e=document.getElementById("main_header").offsetHeight;window.scrollTo({top:t.seriesRef.current.offsetTop-e})}})}},this.fetchProfileProgress=function(e){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{authData:s}=t.props.registration;s&&(null==s?void 0:s.virtual)===!1&&fetch("".concat(t.apiUrl).concat(_.PI.profileProgress).concat(s.profile_id,"/").concat(e).concat(t.apiKey,"&last=").concat(i),{credentials:"include",method:"GET"}).then(e=>{e.status<400&&e.json().then(e=>{var s,o,r;i?t.props.fetchedProfileLastProgress((null==e?void 0:null===(r=e.data)||void 0===r?void 0:null===(o=r.items)||void 0===o?void 0:o[0])||null):t.props.fetchedProfileProgress(null==e?void 0:e.data),t.props.fetchedProfileProgressId(null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.product_id)})})},this.checkForBlock=(e,t)=>{var i,s;let{authData:o}=this.props.registration;if((null==e?void 0:null===(i=e.blocked_content_tv)||void 0===i?void 0:i.length)&&(null==o?void 0:null===(s=o.subscriptions)||void 0===s?void 0:s.length)){let i=null==e?void 0:e.blocked_content_tv.find(e=>e.item===t._id);if(i)return this.props.toggleBlockedContentPopup({visible:!0,id:i.item,date:i.date}),!0}return!1},this.handleClickTab=(e,t,i)=>{e.preventDefault(),e.stopPropagation(),this.handleCategoryClick(t,i)}}}let ew=(0,d.Ng)(e=>({registration:e.registration,systemInformation:e.systemInformation,profile:e.profile,player:e.player,movie:e.movie,parentalControl:e.parentalControl,est:e.est}),e=>({dispatch:e,...(0,c.zH)({initPlayer:y.kI,clickHouseShoot:y.Y3,getPlayerData:g.o2,setAutoTrailer:v.jG,toggleDevicesPopup:f.QQ,toggleDeletedDevicePopup:f.YO,toggleTTKPopup:f.QF,toggleSubscriptionOfferPopup:f.gb,fetchedTariffs:S.ZI,fetchedProfileProgress:v.ay,fetchedProfileLastProgress:v.eY,fetchedProfileProgressId:v.Zw,pushStackAddItem:b.nD,toggleSwitchToAdultProfile:f.bL,toggleBlockedContentPopup:f.uH,toggleSomethingWentWrongEstPopup:f.Og,toggleEstSeasonSelectPopup:f.qg},e)}))(ef)},75273:(e,t,i)=>{"use strict";i.d(t,{JP:()=>a,Kf:()=>d,MY:()=>n,Qh:()=>s,dM:()=>l,iG:()=>o});let s={TSBR:"tsbr",HOLOD:"holod",LML:"lml",OLDSKUL:"oldskul"},o={SERIES:"series"},r=[{type:s.TSBR,alias:"tvoe-serdce-budet-razbito",flag:"tsbr_customization",hideProductBanners:!0,showProjectElements:!0,ratingVariant:s.TSBR,contentBackgroundStart:null},{type:s.HOLOD,alias:"holod",flag:"holod_customization",hideProductBanners:!1,showProjectElements:!1,ratingVariant:s.HOLOD,contentBackgroundStart:o.SERIES},{type:s.LML,alias:"lyubi-menya-lyubi",flag:"lml_customization",hideProductBanners:null,showProjectElements:null,ratingVariant:null,contentBackgroundStart:null},{type:s.OLDSKUL,alias:"oldskul",flag:"oldskul_customization",hideProductBanners:null,showProjectElements:null,ratingVariant:s.OLDSKUL,contentBackgroundStart:null}],a=e=>{let{alias:t,config:i}=e;return r.find(e=>e.alias===t&&(null==i?void 0:i[e.flag])===!0)||null},n=(e,t)=>(null==e?void 0:e.type)===t,l=e=>n(e,s.TSBR),d=(e,t,i)=>{let s=null==i?void 0:i[null==e?void 0:e.type];return s?null==t?void 0:t[s]:null}},83308:(e,t,i)=>{"use strict";i.d(t,{Ix:()=>n,KK:()=>p,LK:()=>a,Pf:()=>d,_U:()=>_,ls:()=>u,pe:()=>c,pk:()=>l,qK:()=>h,zM:()=>o});var s=i(27116);let o=e=>(null==e?void 0:e._cls)==="Product.Movie",r=e=>(null==e?void 0:e._cls)==="Product.Series",a=(e,t)=>{var i;let s=0,o=0;return null==t||null===(i=t.items)||void 0===i||i.find((t,i)=>{var r;return null===(r=t.items)||void 0===r?void 0:r.some((t,r)=>{t.uid===e.uid&&(s=i,o=r)})}),{season:s,seasonIndex:s,episode:o,episodeIndex:o}},n=(e,t)=>{var i;if(!(null==t?void 0:null===(i=t.items)||void 0===i?void 0:i.length))return t;let s=null;return t.items.map(t=>{t.items.map(i=>{i.uid===e.uid&&(s=t)})}),s},l=(e,t)=>
1{var i;if(!r(t)||!(null===(i=t.items)||void 0===i?void 0:i.length))return!0;let{seasonIndex:s,episodeIndex:o}=a(e,t),n=t.items.filter(e=>!e.is_preview);if(0===n.length)return!1;let l=n[n.length-1].items.filter(e=>!e.announcement);if(0===l.length)return!1;let d=n.length-1,c=l.length-1;return s===d&&o===c},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.find(e=>"ContainsSmoking"===e.id),i=e.find(e=>"ContainsDrugs"===e.id),s=[];return t&&s.push("ÐÑÑение вÑÐµÐ´Ð¸Ñ Ð²Ð°ÑÐµÐ¼Ñ Ð·Ð´Ð¾ÑовÑÑ"),i&&s.push("Ðезаконное поÑÑебление наÑкоÑиÑеÑкиÑ
ÑÑедÑÑв, пÑиÑ
оÑÑопнÑÑ
веÑеÑÑв, иÑ
аналогов пÑиÑинÑÐµÑ Ð²Ñед здоÑовÑÑ, иÑ
незаконнÑй обоÑÐ¾Ñ Ð·Ð°Ð¿ÑеÑен и влеÑÐµÑ ÑÑÑановленнÑÑ Ð·Ð°ÐºÐ¾Ð½Ð¾Ð´Ð°ÑелÑÑÑвом оÑвеÑÑÑвенноÑÑÑ"),s},c=(e,t)=>{let i=t?e/1e3:e,o=Math.floor(i/60);if(o>59){let e=Math.floor(o/60),t=(0,s.gv)(e),r=(0,s.gv)(Math.floor(i-60*o));return"".concat(t,":").concat((0,s.gv)(o-60*e),":").concat(r)}let r=(0,s.gv)(o),a=(0,s.gv)(Math.floor(i-60*o));return"".concat(r,":").concat(a)},_=()=>{let e=document;return!!(e.fullscreen||e.webkitIsFullScreen||e.mozFullScreen||e.msFullscreenElement||e.fullscreenElement)},p=()=>{if(!document.getElementById("dashjs")){let e=document.createElement("script");e.src="/static/js/dash.all.min.js",e.id="dashjs",document.body.appendChild(e)}},u=e=>{let t=s.XX.filter(t=>t<=e);return(null==t?void 0:t.length)?t[t.length-1]:"auto"},h=e=>{let t=parseFloat(e);return"volume_".concat(t>0?Math.min(10,Math.ceil(10*t)):"mute")}},9515:(e,t,i)=>{"use strict";i.d(t,{j:()=>n});var s=i(27116),o=i(98047),r=i(73160),a=i(4229);let n=e=>{let{dispatch:t,ratingAge:i,childProfile:n,parentalControl:l,successCallback:d,closeCallback:c}=e,{pinStatus:_,isEverytime:p}=l,u="true"===sessionStorage.getItem(s.fl),h=_===r.p.DISABLED||_===r.p.REQUIRED&&(!p||u);if(n||i&&"18+"!==i||h){d();return}if(_===r.p.CREATE||_===r.p.PAYMENT_REQUIRED){t((0,o.hi)({visible:!0,type:s.Rr.CREATE,onCompleteCallback:()=>{sessionStorage.setItem(s.fl,"true"),d()},onCloseCallback:e=>{e===a.UT.SUCCESS&&(sessionStorage.removeItem(s.kF),sessionStorage.setItem(s.fl,"true"),d()),c&&c()}}));return}if(_===r.p.REQUIRED&&!0===p){t((0,o.hi)({visible:!0,type:s.Rr.CHECK,shouldCheckPin:!0,onCompleteCallback:()=>{sessionStorage.setItem(s.fl,"true"),d()},onCloseCallback:e=>{e===a.UT.SUCCESS&&(sessionStorage.setItem(s.fl,"true"),d()),c&&c()}}));return}}},58505:(e,t,i)=>{"use strict";function s(e){return{type:"FETCH_MOVIE_CONTENT_FULFILLED",payload:e}}function o(e){return{type:"CHECK_IS_NOTICE",payload:e}}function r(e){return{type:"FETCH_PLAYER_MOVIE_CONTENT_FULFILLED",payload:e}}function a(e){return{type:"SET_MOVIE_LINE",payload:e}}function n(e){return{type:"SET_MUTED",payload:e}}i.d(t,{BC:()=>r,KN:()=>s,Vp:()=>o,b8:()=>a,y5:()=>n})},60963:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>_,Ex:()=>d,JI:()=>c,L$:()=>l});var s=i(74848),o=i(46942),r=i.n(o),a=i(2327),n=i.n(a);let l=e=>{let{className:t,size:i,text:o,textRight:a,textColor:l,textColorRight:c,bgColor:_,bgColorRight:p}=e;return(0,s.jsxs)("div",{className:r()(n()["badge-double"],t),children:[(0,s.jsx)(d,{className:n()["badge-double__left"],textColor:l,bgColor:_,text:o}),(0,s.jsx)(d,{className:n()["badge-double__right"],textColor:c,bgColor:p,text:a})]})},d=e=>{let{className:t,size:i,textColor:o,bgColor:a,text:l}=e;return(0,s.jsx)("div",{className:r()(n().badge,t),style:{color:o,backgroundColor:a},children:l})},c=e=>{let{className:t}=e;return(0,s.jsx)(d,{className:r()(n().premiumBadge,t),text:"PREMIUM"})},_=d},32467:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var s=i(74848),o=i(29965),r=i.n(o),a=i(96540),n=i(35296);let l=(0,a.memo)(e=>{let{className:t,src:i,width:o,height:l,onLoad:d,onError:c,alt:_="cover",priority:p="lazy",fill:u=!1,sizes:h=""}=e,m=(0,a.useRef)(!1),g=(0,a.useRef)(null),v=(0,a.useCallback)(()=>{m.current||(d(),m.current=!0)},[d]);return(0,a.useEffect)(()=>{v(),(null==g?void 0:g.current.complete)&&v()},[v]),(0,s.jsx)(r(),{ref:g,className:t,width:o,height:l,src:i,loader:n.R2,onError:c,onLoad:v,alt:_,fill:u,sizes:h,loading:"lazy"})})},13057:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var s=i(74848),o=i(46942),r=i.n(o),a=i(92841),n=i.n(a);let l=e=>{let{className:t={button:null,title:null,icon:null},isExpand:i=!1,expandedText:o="СвеÑнÑÑÑ",collapsedText:a="ÐоказаÑÑ ÐµÑÑ",arrowSrc:l="/static/images/newVideoUnit/arrow.svg",testId:d=null,onClick:c=()=>{}}=e;return(0,s.jsxs)("div",{className:r()(n().button,t.button),"data-testid":d,onClick:()=>c(!i),children:[(0,s.jsx)("span",{className:r()(n().title,t.title),children:i?o:a}),(0,s.jsx)("img",{className:r()(n().icon,{[n()["icon--down"]]:i},t.icon),src:l,alt:"arrow"})]})}},87873:(e,t,i)=>{"use strict";i.d(t,{t:()=>m});var s=i(74848),o=i(46942),r=i.n(o),a=i(91106),n=i.n(a),l=i(96540),d=i(57985),c=i.n(d);let _=e=>{let{children:t,className:i,...o}=e;return(0,s.jsx)("div",{className:i,...o,children:t})}
1,p=e=>{let{children:t,className:i,onClick:o,...r}=e;return(0,s.jsx)("button",{type:"button",className:i,onClick:o,...r,children:t})},u=e=>{let{route:t,children:i,className:o,prefetch:r=!1,...a}=e;return(0,s.jsx)(n(),{href:t,prefetch:r,className:o,...a,children:i})},h=e=>{let{type:t="default",...i}=e;switch(t){case"button":return(0,s.jsx)(p,{...i});case"link":return(0,s.jsx)(u,{...i});default:return(0,s.jsx)(_,{...i})}},m=e=>{let{className:t,tabClassName:i,activeTabId:o,type:a,variant:n="primary",tabSize:d,tabId:_,renderContent:p,tabs:u=[],onClickTab:m,getTabProps:g,accStyle:v,tvCategories:b,ref:S,...y}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{ref:S,className:r()(y.calendar&&c()[y.calendar],v?c().newTabsWrap4Acc:c().newTabsWrap,c()["container_".concat(n)],"secondary"===n&&c().secondaryTabsWrap,c().tvCategories,t),...y,children:u.map((e,t)=>{let S=null==g?void 0:g(e);return(0,s.jsx)(l.Fragment,{children:e.component?(0,s.jsx)(h,{type:"default",className:r()(i,c()[n],c()[d],t===u.length-1&&c().lastTab,o===e[_]&&[c()["".concat(n,"--active")]],c().secondary__cWrap),onClick:"desktop_web"!==y.deviceSize||(null==y?void 0:y.arrayOfVisible.includes(t))?i=>{null==m||m(i&&i,e,t)}:null,...S,children:(0,s.jsx)("div",{className:c().contentBox,children:e.component})},e[_]||t):(0,s.jsx)(h,{type:a,className:r()(i,c()[v],c()[n],c()[d],o===e[_]&&[r()(c()["".concat(n,"--active")],c()["".concat(d,"--active")])],c().secondary__cWrap),onClick:"desktop_web"!==y.deviceSize||y.arrayOfVisible.includes(t)?i=>{null==m||m(i&&i,e,t)}:null,...S,..."tvCategories"===b&&o===e[_]?{id:"tvchannel_".concat(o)}:{},children:(0,s.jsx)("div",{className:r()(c().contentBox,o===e[_]&&c().activeContentBox),children:y.leftIcon?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:c().leftIconWrapper,children:(0,s.jsx)("img",{src:y.leftIcon,className:c().leftIcon})}),(0,s.jsx)("div",{className:c().contentRight,children:null==p?void 0:p(e)})]}):y.rightIcon?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:c().contentLeft,children:null==p?void 0:p(e)}),(0,s.jsx)("div",{className:c().rightIconWrapper,children:(0,s.jsx)("img",{src:y.rightIcon,className:c().rightIcon})})]}):null==p?void 0:p(e)})},e[_])},e[_]||t)})})})}},12133:e=>{e.exports={"storybook-root":"CategorySlider_storybook-root__MS7Yv",categories__wrapper:"CategorySlider_categories__wrapper__UeB_K",main:"CategorySlider_main__zeaZ5",categories__card:"CategorySlider_categories__card__BNIBz",categories__footer:"CategorySlider_categories__footer__0XAd0",categories__header:"CategorySlider_categories__header___I_V3",categories__head:"CategorySlider_categories__head__erUaa",categories__description:"CategorySlider_categories__description__SHguL",categories__emptyPadding:"CategorySlider_categories__emptyPadding__quycy",categories__player:"CategorySlider_categories__player__O18lg",categories__player_popup:"CategorySlider_categories__player_popup__MkL_A",categories__productPage:"CategorySlider_categories__productPage__jMMEt",categories__categories:"CategorySlider_categories__categories__LL_4e",categories__nt:"CategorySlider_categories__nt__G5fbr",categories__a:"CategorySlider_categories__a__ln1WR",categories__dl:"CategorySlider_categories__dl__k0qdX",categories__dr:"CategorySlider_categories__dr__4vxIr",categories__shadowVisible_rigth:"CategorySlider_categories__shadowVisible_rigth__YnUBq",categories__shadowVisible_left:"CategorySlider_categories__shadowVisible_left__6eQuS",categories__wrap:"CategorySlider_categories__wrap__IkH2H","categories__player-wrap":"CategorySlider_categories__player-wrap__KTMHM",categories__player_popup_wrap:"CategorySlider_categories__player_popup_wrap__77RtO",categories__safari:"CategorySlider_categories__safari__8NcpG",categories__cWrap:"CategorySlider_categories__cWrap__28TGz",categories__aWrap:"CategorySlider_categories__aWrap__J7Gcx",categories__category:"CategorySlider_categories__category__874YA",categories__active:"CategorySlider_categories__active__rmAfV",categories__category_child:"CategorySlider_categories__category_child__NMJP8",categories__data:"CategorySlider_categories__data__zArz_",categories__title:"CategorySlider_categories__title__lxlcP",categories__d:"CategorySlider_categories__d__704bk",categories__empty_categories:"CategorySlider_categories__empty_categories__eaCZZ",categories:"CategorySlider_categories__RoEUB"}},29833:e=>{e.exports={product__banner:"ContentBanner_product__banner__manNy"}},46279:e=>{e.exports={"storybook-root":"NewProduct_storybook-root__uWY0w",product:"NewProduct_product__Uo4O_","product_tvoe-serdce-budet-razbito":"NewProduct_product_tvoe-serdce-budet-razbito__heB5s",product_holod:"NewProduct_product_holod__8aPGv","product__customized-content_holod":"NewProduct_product__customized-content_holod__W_XE7","product__customized-content_oldskul":"NewProduct_product__customized-content_oldskul__qWrPY",onboarding:"NewProduct_onboarding__zaa22","product-block":"NewProduct_product-block__fWG2I",unpage:"NewProduct_unpage__KZ6Xy","product-block__content-wrapper":"NewProduct_product-block__content-wrapper__yBpB5","product-button":"NewProduct_product-button__GZnLL",product__linked:"NewProduct_product__linked__E2TL7",playerHead:"NewProduct_playerHead__6pOOw",player:"NewProduct_player__3m2wc"}},71447:e=>{e.exports={"storybook-root":"Announcement_storybook-root___UMda",wrapper:"Announcement_wrapper__Wp2BY",list:"Announcement_list__nGDJO"}},4011:e=>{e.exports={"storybook-root":"AnnouncementCard_storybook-root__Xpc_b",wrapper:"AnnouncementCard_wrapper__6C3IV",img:"AnnouncementCard_img__abREv",text:"AnnouncementCard_text__pEnN_",text_shaded:"AnnouncementCard_text_shaded__jzvLZ",seasonWrapper:"AnnouncementCard_seasonWrapper__oEeKM",seasonTitle:"AnnouncementCard_seasonTitle__3R29Q",trailerWrapper:"AnnouncementCard_trailerWrapper__jwRqR",trailerPoster:"AnnouncementCard_trailerPoster__RaCni",trailerContent:"AnnouncementCard_trailerContent__M0Jqr",trailerTitle:"AnnouncementCard_trailerTitle__p48WU",trailerButton:"AnnouncementCard_trailerButton__5s7h_",trailerButton__icon:"AnnouncementCard_trailerButton__icon__3jtkZ"}},45145:e=>{e.exports={"storybook-root":"Series_storybook-root__ix6J_",slider:"Series_slider__FXbey","product__slider-wrap":"Series_product__slider-wrap__LQpjT",product__header:"Series_product__header__5MNOb","product__header-button":"Series_product__header-button__e_yyw","product__header-button-icon":"Series_product__header-button-icon__dsr2r","product__header-button-title":"Series_product__header-button-title__8b_YW","product__header-button--active":"Series_product__header-button--active__joRxC","product__header-button-icon--down":"Series_product__header-button-icon--down__JzVNs",product__series:"Series_product__series__NNcaz","product__series-inner":"Series_product__series-inner__mu4QF",product__seasons:"Series_product__seasons__UThEz","product__seasons-player":"Series_product__seasons-player__FYzJ9","product__series-all":"Series_product__series-all__vYb2R","product__series-wrap":"Series_product__series-wrap__uzNpW","product__seasons-item":"Series_product__seasons-item__zDgjg",active:"Series_active___6zRK",playerActive:"Series_playerActive__5sGf5","product__season-tabs-holod":"Series_product__season-tabs-holod__IWubp","product__season-tab-holod":"Series_product__season-tab-holod__NzWnj","product__season-tabs-oldskul":"Series_product__season-tabs-oldskul__xzgUz","product__season-tab-oldskul":"Series_product__season-tab-oldskul__nwa87",product__items:"Series_product__items__B9X6S","product__items-image":"Series_product__items-image__TJzpJ","product__items-image-img":"Series_product__items-image-img__RufM_","product__items-image_play":"Series_product__items-image_play__UJpke","product__items-image_play-announcement":"Series_product__items-image_play-announcement__HHZty","product__items-content":"Series_product__items-content__MPvrx","product__items-default":"Series_product__items-default__1RRb5","product__items-description":"Series_product__items-description__94J4B","product__items-title-wrapper":"Series_product__items-title-wrapper__3Hyk8","product__items-title":"Series_product__items-title__xFLWK",playerTitle:"Series_playerTitle__Z0ylG","product__items-title_text":"Series_product__items-title_text__jLG10","product__items-duration":"Series_product__items-duration__7cLAy","product__items-button-wrapper":"Series_product__items-button-wrapper__Mo7CK",all:"Series_all__Driha","product__items-show-more":"Series_product__items-show-more__z0oSy","product__items-show-more-image":"Series_product__items-show-more-image__Zlmza",down:"Series_down__pmgNY","product__items-show-all-wrapper":"Series_product__items-show-all-wrapper__cRyAV","product__items-image-player":"Series_product__items-image-player___Gg1o","product__items-content-player":"Series_product__items-content-player__chfdj",watched:"Series_watched__s7esS","wat
1ched-line":"Series_watched-line__sc98i","red-line":"Series_red-line__aAKod","white-line":"Series_white-line__o5LgB","watched-title":"Series_watched-title__kOzoj","product__items-title-badge":"Series_product__items-title-badge__W_HQ2"}},11735:e=>{e.exports={"storybook-root":"SeriesCard_storybook-root__90b2n",item:"SeriesCard_item__iPqDk",watched:"SeriesCard_watched__Hdh5s","watched-line":"SeriesCard_watched-line__9btnF","red-line":"SeriesCard_red-line__AOTmf","watched-title":"SeriesCard_watched-title__JAkYP","watched-progress-title":"SeriesCard_watched-progress-title__inKJc","item-img-wrap":"SeriesCard_item-img-wrap__nqpl7","item-img-wrap-poster":"SeriesCard_item-img-wrap-poster__ZWf23","item-img-wrap-play-img":"SeriesCard_item-img-wrap-play-img__3Ra1l","item-img-wrap-text":"SeriesCard_item-img-wrap-text__ECFVf","item-img-wrap-text-title":"SeriesCard_item-img-wrap-text-title___OOeA","item-img-wrap-text-subtitle":"SeriesCard_item-img-wrap-text-subtitle__9PNgw","item-img-wrap-time":"SeriesCard_item-img-wrap-time__1Ot9n","item-img-wrap-announcement":"SeriesCard_item-img-wrap-announcement__KnZ7V","item-img-wrap-announcement-poster":"SeriesCard_item-img-wrap-announcement-poster__EYYcI","item-img-wrap-announcement-with-overlay":"SeriesCard_item-img-wrap-announcement-with-overlay__HR7CV",item__link:"SeriesCard_item__link__IaaZh",item__description:"SeriesCard_item__description__sVc7d",item__titles:"SeriesCard_item__titles__1erVA","item__titles-title-badge-block":"SeriesCard_item__titles-title-badge-block__SQJbq","item__titles-title-wrap":"SeriesCard_item__titles-title-wrap__pgkZl","item__titles-title":"SeriesCard_item__titles-title__CNl2c",item__premium_badge:"SeriesCard_item__premium_badge__mYHDA"}},36617:e=>{e.exports={"storybook-root":"SeriesSlider_storybook-root__PGIvo","slider-wrap":"SeriesSlider_slider-wrap__S_nmf","skeleton-card":"SeriesSlider_skeleton-card__bQBCE",items_wrap:"SeriesSlider_items_wrap__PUZ4X","item-wrap":"SeriesSlider_item-wrap__G1qJM",est:"SeriesSlider_est___lUp1",player:"SeriesSlider_player__yWFaY",est__poster:"SeriesSlider_est__poster__uuYu5",est__content:"SeriesSlider_est__content__GLspl",est__title:"SeriesSlider_est__title__2sdpe",est__description:"SeriesSlider_est__description__czeMm",item:"SeriesSlider_item__hiIc9",watched:"SeriesSlider_watched__kEPtD","watched-line":"SeriesSlider_watched-line__adSJZ","red-line":"SeriesSlider_red-line__aZST2","watched-title":"SeriesSlider_watched-title__XPVys","watched-progress-title":"SeriesSlider_watched-progress-title___FMfJ","item-img-wrap":"SeriesSlider_item-img-wrap__I7GJY","item-img-wrap-poster":"SeriesSlider_item-img-wrap-poster__0Y0qs","item-img-wrap-play-img":"SeriesSlider_item-img-wrap-play-img__oRYrJ","item-img-wrap-time":"SeriesSlider_item-img-wrap-time__RcT4a","item-img-wrap-rating":"SeriesSlider_item-img-wrap-rating__2CJrA","item-img-wrap-rating-high":"SeriesSlider_item-img-wrap-rating-high__gyEso","item-img-wrap-text":"SeriesSlider_item-img-wrap-text__DlNJt","item-img-wrap-text-title":"SeriesSlider_item-img-wrap-text-title__gdDA6","item-img-wrap-text-subtitle":"SeriesSlider_item-img-wrap-text-subtitle__IYTcU","item-img-wrap-announcement":"SeriesSlider_item-img-wrap-announcement__YDf17","item-img-wrap-announcement-poster":"SeriesSlider_item-img-wrap-announcement-poster__1nRjA","item-img-wrap-announcement-with-overlay":"SeriesSlider_item-img-wrap-announcement-with-overlay__cd24m",item__link:"SeriesSlider_item__link__gw28x",item__description:"SeriesSlider_item__description__moG3x",item__titles:"SeriesSlider_item__titles__pc9z_","item__titles-title-badge-block":"SeriesSlider_item__titles-title-badge-block__3nsxM","item__titles-title-wrap":"SeriesSlider_item__titles-title-wrap__PJyj7","item__titles-title":"SeriesSlider_item__titles-title__4rrP5","item__titles-time":"SeriesSlider_item__titles-time__jITei",item__premium_badge:"SeriesSlider_item__premium_badge___ZqZ_","item__description-all":"SeriesSlider_item__description-all__V2peQ",item__subtitle:"SeriesSlider_item__subtitle___7Sgz",inPlayer:"SeriesSlider_inPlayer__8xMsT",current:"SeriesSlider_current__Hk87b",item__time:"SeriesSlider_item__time__oirhL"}},74351:e=>{e.exports={"storybook-root":"WatchMarkups_storybook-root__orJyD",watched:"WatchMarkups_watched__qs9yW","watched-line":"WatchMarkups_watched-line__Kbmm6","red-line":"WatchMarkups_red-line__UxVAR","watched-title":"WatchMarkups_watched-title__4TRx1","watched-time":"WatchMarkups_watched-time__X0LN5","watched-progress-title":"WatchMarkups_watched-progress-title__4wOLj",duration:"WatchMarkups_duration__71ys8",series__watched:"WatchMarkups_series__watched__JkJRy"}},2327:e=>{e.exports={"storybook-root":"Badge_storybook-root__BDw8n",badge:"Badge_badge__GrobN","badge-double":"Badge_badge-double__7cJIO","badge-double__left":"Badge_badge-double__left__Xm0CL","badge-double__right":"Badge_badge-double__right__I_ofx",premiumBadge:"Badge_premiumBadge__SSAC_"}},92841:e=>{e.exports={"storybook-root":"ExpandButton_storybook-root__jiGKt",button:"ExpandButton_button__WvWiX",title:"ExpandButton_title__YCZWn",icon:"ExpandButton_icon__I7uOf","icon--down":"ExpandButton_icon--down__h5UFE"}},57985:e=>{e.exports={"storybook-root":"Tabs_storybook-root__jMod1",newTabsWrap:"Tabs_newTabsWrap__p2X30",secondaryTabsWrap:"Tabs_secondaryTabsWrap__diXSF",contentBox:"Tabs_contentBox__yXrPd",leftIconWrapper:"Tabs_leftIconWrapper__43q3q",leftIcon:"Tabs_leftIcon__hgaAZ",contentRight:"Tabs_contentRight__fCZb8",rightIconWrapper:"Tabs_rightIconWrapper__XJtE2",contentLeft:"Tabs_contentLeft__Mk80b",rightIcon:"Tabs_rightIcon__dl_t1",calendar:"Tabs_calendar__vNRGj",secondary:"Tabs_secondary__w55e0","secondary--active":"Tabs_secondary--active__s2lPR",secondary__aWrap:"Tabs_secondary__aWrap__0kOzt",large:"Tabs_large__g_dtP","large--active":"Tabs_large--active__rh6vA",medium:"Tabs_medium__OLlel","medium--active":"Tabs_medium--active__7EWwq",small:"Tabs_small__tzCoe","small--active":"Tabs_small--active__JUwwX",primary:"Tabs_primary__LfP_h","primary--active":"Tabs_primary--active__8reyf",activeContentBox:"Tabs_activeContentBox__odGve",accStyle:"Tabs_accStyle__ew0m8",newTabsWrap4Acc:"Tabs_newTabsWrap4Acc__5mpJ7",tvCategories:"Tabs_tvCategories__hpavj"}}}]);
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.