1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1572],{39738:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var o,s=i(96540);function r(){return(r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)({}).hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t}).apply(null,arguments)}let a=function(t){return s.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 40 40"},t),o||(o=s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.67 22.417c.228 3.132.886 5.8 1.737 7.698.534 1.192 1.065 1.903 1.45 2.264q.082.077.143.124.06-.047.144-.124c.384-.36.915-1.072 1.45-2.264.85-1.899 1.508-4.566 1.736-7.698zm15.682 0h-4.178c-.197 3.108-.769 5.966-1.628 8.333a12.6 12.6 0 0 0 5.806-8.333M26.546 9.251c.86 2.367 1.431 5.225 1.628 8.333h4.178a12.6 12.6 0 0 0-5.806-8.333m10.87 10.75c0 9.618-7.797 17.416-17.416 17.416S2.584 29.62 2.584 20 10.38 2.584 20 2.584 37.417 10.38 37.417 20M13.456 30.75c-.86-2.367-1.432-5.225-1.629-8.333H7.649a12.6 12.6 0 0 0 5.806 8.333m-1.629-13.166c.197-3.108.77-5.966 1.629-8.333a12.6 12.6 0 0 0-5.806 8.333zM20 7.498q.06.047.144.124c.384.36.915 1.072 1.45 2.264.85 1.899 1.508 4.566 1.736 7.698h-6.66c.228-3.132.886-5.8 1.737-7.698.534-1.192 1.065-1.903 1.45-2.264q.082-.077.143-.124",clipRule:"evenodd"})))}},25770:(t,e,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/watch/[[...params]]",function(){return i(2914)}])},70108:(t,e,i)=>{"use strict";i.d(e,{AT:()=>o,OG:()=>s,QF:()=>r});let o={PRODUCT:"product",COLLECTION:"collection",PLAYLIST:"playlist",CHANNEL:"channel",TV_SELECTION:"tv_selection",LINK:"link",MAIN_SELECTION:"mainselection",PROFILE:"profile"}
1,s={PLAY:"play",OPEN:"open",ADD_TO_FAVORITES:"add_to_favorites",CATCHUP:"catchup",PLAY_TRAILER:"play_trailer"},r=[o.PRODUCT,o.COLLECTION,o.PLAYLIST,o.CHANNEL,o.TV_SELECTION,o.LINK,o.MAIN_SELECTION,o.PROFILE]},39608:(t,e,i)=>{"use strict";i.d(e,{$:()=>s});var o=i(96540);let s=t=>{let e=(0,o.useRef)(new Map),i=(0,o.useRef)(new Map),s=(0,o.useRef)(null);return(o,r)=>{r?(i.current.has(o.id)||e.current.set(o.id,o),i.current.set(o.id,o)):(e.current.delete(o.id),i.current.delete(o.id)),s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{e.current.size>0&&(t(Array.from(e.current.values()).sort((t,e)=>t.position-e.position)),e.current=new Map)},2e3)}}},47828:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var o=i(44387),s=i(93503);function r(t){return(0,s.A)(1,arguments),(0,o.A)(t).getMonth()}},2914:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>rX});var o=i(74848),s=i(86715),r=i.n(s),a=i(96540),l=i(74368),n=i(47819),c=i(27116),_=i(35296);let d=t=>{var e,i,o;return!!((null==t?void 0:null===(i=t.registration)||void 0===i?void 0:null===(e=i.authData)||void 0===e?void 0:e.profile_for_child)||(null==t?void 0:null===(o=t.profile)||void 0===o?void 0:o.childProfile))},p=function(){var t;let{req:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e?(null===(t=e.cookies)||void 0===t?void 0:t[c.AR])==="True":"True"===(0,_.Ri)(c.AR)},u=function(){var t,e;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(i)||d(null===(e=i.reduxStore)||void 0===e?void 0:null===(t=e.getState)||void 0===t?void 0:t.call(e))};var h=i(58505),m=i(98126),v=i(98047);let g=["addf9cea-347b-451a-824e-a80d9c1ccc0d","7c253b00-474c-4c2c-8efb-917c6a67c59e"],b=["trailers","trailer","person","characters","hero","extras","extra"],k=t=>g.includes(t),f=(t,e)=>{var i;return(null==t?void 0:null===(i=t.items)||void 0===i?void 0:i.length)&&e&&t.items.find(t=>Number(t.num||t.number)===Number(e))||null},x=(t,e)=>{let i=f(t,e);return(null==i?void 0:i.subtitle)||(null==i?void 0:i.title)||"".concat(e," Ñезон")},y=t=>{var e;return(null==t?void 0:null===(e=t.items)||void 0===e?void 0:e.length)?t.items.flatMap(t=>(null==t?void 0:t.items)||[]).filter(t=>t&&!0!==t.announcement):[]},w=t=>{var e;return!t||!0===t.virtual||!1===t.virtual&&!(null===(e=t.subscriptions)||void 0===e?void 0:e.length)},T=t=>w(t)?" ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½":"",S={"ÐаÑÑ 1/16":"1/16 Ñинала","ÐаÑÑ 1/8":"1/8 Ñинала","ÐаÑÑ 1/4":"1/4 Ñинала"},j={"ÐÑÑпповой ÑÑап":"маÑÑ ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½ беÑплаÑно ÑÑанÑлÑÑиÑ","ÐаÑÑ 1/16":"маÑÑ ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½ беÑплаÑно ÑÑанÑлÑÑиÑ","ÐаÑÑ 1/8":"маÑÑ ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½ беÑплаÑно ÑÑанÑлÑÑиÑ","ÐаÑÑ 1/4":"маÑÑ ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½ беÑплаÑно ÑÑанÑлÑÑÐ¸Ñ ÑеÑвеÑÑÑÑинала",ÐолÑÑинал:"маÑÑ ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½ беÑплаÑно ÑÑанÑлÑÑÐ¸Ñ Ð¿Ð¾Ð»ÑÑинала","ÐаÑÑ Ð·Ð° 3 меÑÑо":"маÑÑ Ð·Ð° 3 меÑÑо ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½ ÑÑанÑлÑÑиÑ",Финал:"Ñинал ЧÐ-2026 ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½ ÑÑанÑлÑÑиÑ"},C=t=>"string"==typeof t?t.trim():t,B=t=>{let e=C(t);return S[e]||e||""},N=t=>(C(t)||"").match(/^(.*?)(?:,\s*)?(\d+\s*:\s*\d+)$/),P=t=>{let{seasonSubtitle:e,episodeTitle:i}=t,o=C(i)||"",s=C(e),r=N(o);if(r)return"".concat(r[1].trim()," маÑÑ Ð·Ð°Ð²ÐµÑÑен Ñо ÑÑеÑом, ").concat(r[2]);let a=j[s]||j["ÐÑÑпповой ÑÑап"];return"".concat(o," ").concat(a).concat(" | ÐÑÑмой ÑÑÐ¸Ñ Ð§Ð-2026 по ÑÑÑболÑ")},I=t=>{let{movie:e,page:i,episode:o,seasonNum:s}=t;if(!i)return"".concat(null==e?void 0:e.title," ÑезÑлÑÑаÑÑ Ð¼Ð°ÑÑей");let r=x(e,s);return"episode"===i?P({seasonSubtitle:r,episodeTitle:null==o?void 0:o.title}):"seasons"===i?"".concat(B(r)," ЧÐ-2026: ÑезÑлÑÑаÑÑ Ð¼Ð°ÑÑей"):"".concat(null==e?void 0:e.title," ÑезÑлÑÑаÑÑ Ð¼Ð°ÑÑей")},D=t=>{let{movie:e,page:i,episode:o,seasonNum:s}=t;if(!i)return"".concat(null==e?void 0:e.title,": ÑезÑлÑÑаÑÑ Ð¼Ð°ÑÑей");let r=x(e,s);return"episode"===i?N(null==o?void 0:o.title)?"".concat(null==e?void 0:e.title," ").concat(B(r)," ").concat(null==o?void 0:o.title," ÑезÑлÑÑÐ°Ñ Ð¼Ð°ÑÑа"):"".concat(null==e?void 0:e.title," ").concat(r," ").concat(null==o?void 0:o.title," â ÑмоÑÑиÑе онлайн ÑÑанÑлÑÑÐ¸Ñ Ð¼Ð°ÑÑа беÑплаÑно на START в Ñ
оÑоÑем каÑеÑÑве"):"seasons"===i?"".concat(null==e?void 0:e.title," ").concat(B(r)," â ÑезÑлÑÑаÑÑ Ð¼Ð°ÑÑей"):"".concat(null==e?void 0:e.title,": ÑезÑлÑÑаÑÑ Ð¼Ð°ÑÑей")},A=t=>{let{movie:e,page:i,episode:o,seasonNum:s}=t;if(!i)return"".concat(null==e?void 0:e.title," ÑезÑлÑÑаÑÑ Ð¼Ð°ÑÑей");let r=x(e,s);return"episode"===i?N(null==o?void 0:o.title)?"".concat(null==e?void 0:e.title," ").concat(B(r)," ÑÑеÑ: ").concat(null==o?void 0:o.title):"".concat(null==e?void 0:e.title," ").concat(r,": ").concat(null==o?void 0:o.title," ÑмоÑÑеÑÑ Ð¼Ð°ÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½"):"seasons"===i?"".concat(null==e?void 0:e.title," â ").concat(B(r)," ÑезÑлÑÑаÑÑ Ð¼Ð°ÑÑей"):"".concat(null==e?void 0:e.title," ÑезÑлÑÑаÑÑ Ð¼Ð°ÑÑей")},E=t=>{let{movie:e,season:i,episode:o,isEpisodePage:s}=t,r=C((null==e?void 0:e.seo)&&e.seo.short_description||(null==e?void 0:e.description)),a=i?String(i).split("-")[1]:null==o?void 0:o.seasonNum,l=f(e,a),n=C((null==l?void 0:l.seo_text)||(null==l?void 0:l.description)),c=C(null==o?void 0:o.seo_text);return s?c||n||r:a&&n||r};var R=i(83741),L=i(47947),M=i.n(L),U=i(14953),H=i.n(U),O=i(96276),F=i(72202),W=i(38648),K=i(30291),V=i(46942),z=i.n(V),Y=i(56848);function G(t){return{type:"FETCH_PROMOCONTENT_FULFILLED",payload:t}}let J=t=>{if(!t)return;let{alias:e,cast:i,directors:o,operators:s,producers:r,writers:a,composers:l}=t,n=i&&i.length>0?i.filter(t=>t.name&&t.alias):null,c=o&&o.length>0?o.filter(t=>t.name&&t.alias):null,_=s&&s.length>0?s.filter(t=>t.name&&t.alias):null,d=r&&r.length>0?r.filter(t=>t.name&&t.alias):null,p=a&&a.length>0?a.filter(t=>t.name&&t.alias):null,u=l&&l.length>0?l.filter(t=>t.name&&t.alias):null,h=[];return n&&n.length>0&&h.push({items:[...n],alias:"cast",title:"РглавнÑÑ
ÑолÑÑ
"}),c&&c.length>0&&h.push({items:[...c],alias:"directors",title:c.length>1?"РежиÑÑеÑÑ":"РежиÑÑеÑ"}),_&&_.length>0&&h.push({items:[..._],alias:"operators",title:_.length>1?"ÐпеÑаÑоÑÑ":"ÐпеÑаÑоÑ"}),d&&d.length>
10&&h.push({items:[...d],alias:"producers",title:d.length>1?"ÐÑодÑÑеÑÑ":"ÐÑодÑÑеÑ"}),p&&p.length>0&&h.push({items:[...p],alias:"writers",title:p.length>1?"СÑенаÑиÑÑÑ":"СÑенаÑиÑÑ"}),u&&u.length>0&&h.push({items:[...u],alias:"composers",title:u.length>1?"ÐомпозиÑоÑÑ":"ÐомпозиÑоÑ"}),h},q=(t,e)=>{var i,o;return t&&(null==t?void 0:t.length)?e?null===(o=t.filter(t=>(null==t?void 0:t.alias)===(null==e?void 0:e.alias))[0])||void 0===o?void 0:o.items:null===(i=t[0])||void 0===i?void 0:i.items:[]};var Z=i(48398),Q=i(80364),X=i(68850),$=i(40308),tt=i(67265),te=i(29965),ti=i.n(te),to=i(97461),ts=i(75273),tr=i(16344),ta=i.n(tr);let tl=t=>{let{page:e,movieData:i,seasonNum:s,numbersOfAvailableSeasons:r,episode:n,onButtonClick:d,productCustomization:p}=t,[u,h]=(0,a.useState)(null),{profile:m,systemInformation:v}=(0,l.d4)(t=>t),{subscriptionType:g}=(0,l.d4)(t=>t.registration),{documentClientWidth:b}=v,{lastProgress:k,lastProgressId:f}=m,{_id:x,_cls:y,items:w,is_preview:T,is_disabled:S,subscriptions:j}=i,C=p||(0,ts.JP)({alias:null==i?void 0:i.alias,config:v.config}),B=(0,ts.dM)(C),N=(0,ts.MY)(C,ts.Qh.HOLOD),P=T||S||(null==r?void 0:r.size)===0,I=(0,_.xM)(j,g),D=()=>e&&"episode"===e;return(0,a.useEffect)(()=>{var t,e;let o=!1,s=(null==w?void 0:w.length)&&(null===(t=w[0])||void 0===t?void 0:t.items.length)?null===(e=w[0])||void 0===e?void 0:e.items[0]:{};"Product.Series"===y&&f===i.uid&&k&&((null==k?void 0:k.content_id)!==(null==s?void 0:s.uid)||(null==k?void 0:k.content_id)===(null==s?void 0:s.uid)&&(null==k?void 0:k.position)>0)&&(o=!0),"Product.Series"!==y&&f===i.uid&&k&&(null==k?void 0:k.position)>0&&(o=!0),h(o)},[i,m]),(0,o.jsx)(a.Fragment,{children:(0,o.jsx)(to.$n,{className:z()(ta().button,{[ta().button_tsbr]:B,[ta().button_holod]:N}),iconLeft:T||S?(0,o.jsx)("img",{src:"/static/images/icons/favorite".concat((t=>{if(Array.isArray(null==m?void 0:m.favorites)){let e=null==m?void 0:m.favorites.map(t=>t._id);return null==e?void 0:e.includes(t)}return!1})(x)?"_active":"",".svg"),width:24,height:24,alt:"notify"}):(0,o.jsx)("img",{src:"/static/images/icons/play-2.svg",width:16,height:16,alt:"play"}),size:to.GO.MEDIUM,title:b>c.af&&function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"CмоÑÑеÑÑ";return P?"ÐÑÐ´Ñ ÑмоÑÑеÑÑ":I?u?"ÐÑодолжиÑÑ Ð¿ÑоÑмоÑÑ":s&&(!r||r.has(s))?D()&&!u?"".concat(t," ").concat(s," Ñезон ").concat(null==n?void 0:n.num," ÑеÑиÑ"):"".concat(t," ").concat(s," Ñезон"):t:"СмоÑÑеÑÑ Ñ PREMIUM"}(),variant:to.Vt.SECONDARY,iconSize:T||S?to.f6[to.GO.LARGE]:to.f6[to.GO.SMALL],onClick:t=>{d(t,u)}})})};var tn=i(78762),tc=i.n(tn);let t_=function(t){let{moreElems:e,movieData:i}=t,s=(0,a.useRef)(null),[r,l]=(0,a.useState)(null),n=(0,X.A)(),c=t=>{var e,i;!["more-button-svg","more-button-path","more-button-wrap"].includes(null==t?void 0:t.target.id)&&((null==s?void 0:null===(i=s.current)||void 0===i?void 0:null===(e=i.classList)||void 0===e?void 0:e.contains(tc().hide))||l(!1))},_=t=>{var e;let o={series:"seasons_and_episodes",persons:"crew",subject:"plot",articles:"journal_post"},s=null==t?void 0:null===(e=t.hash)||void 0===e?void 0:e.replace("#","");n({action_id:"click",product_id:null==i?void 0:i.uid,content_id:null==i?void 0:i.uid,content_type:null==i?void 0:i._cls,block_type:"block",block_attributes_id:"navbar",element_type:"menu_item",element_attributes_id:(null==o?void 0:o[s])?null==o?void 0:o[s]:s,element_attributes_text:null==t?void 0:t.text}),tk(s)};return(0,a.useEffect)(()=>(document.addEventListener("click",t=>c(t)),()=>document.removeEventListener("click",()=>c())),[]),(0,o.jsxs)("div",{id:"more-button-wrap",className:z()(tc()["more-button-wrap"],{[tc()["more-button__active"]]:r}),onClick:()=>{l(t=>!t)},children:["EÑе",(0,o.jsx)("svg",{id:"more-button-svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("g",{id:"ic / 24 / more",children:(0,o.jsx)("path",{id:"more-button-path",fillRule:"evenodd",clipRule:"evenodd",d:"M3 12C3 10.8954 3.89543 10 5 10C6.10457 10 7 10.8954 7 12C7 13.1046 6.10457 14 5 14C3.89543 14 3 13.1046 3 12ZM10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12ZM17 12C17 10.8954 17.8954 10 19 10C20.1046 10 21 10.8954 21 12C21 13.1046 20.1046 14 19 14C17.8954 14 17 13.1046 17 12Z",fill:"white",fillOpacity:"0.6"})})}),(0,o.jsx)("div",{ref:s,className:z()(tc()["more-button__links-block-wrap"],{[tc().hide]:!r}),children:e.map((t,e)=>(0,o.jsx)("a",{href:null==t?void 0:t.hash,onClick:()=>_(t),children:t.text},null==t?void 0:t.hash))})]})};var td=i(50422),tp=i.n(td);let tu=t=>{var e;let{page:i,children:s,onNavBarButtonClick:r,movieData:n,isVisible:c,setMobileShadowPosition:d,seasonNum:p,numbersOfAvailableSeasons:u,episode:h,productCustomization:m,isHolod:v}=t,g=(0,a.useRef)(null),[b,k]=(0,a.useState)([]),{documentClientWidth:f}=(0,l.d4)(t=>t.systemInformation);return(0,a.useEffect)(()=>{let t=Math.round(g.current.getBoundingClientRect().right);for(let e=0;e<g.current.children.length;e++){let i=g.current.children[e];if(Math.round(i.getBoundingClientRect().right)+10>t){let{text:t,hash:e}=i;t&&e&&k(i=>[...i,{text:t,hash:e}]),i.removeAttribute("id"),i.style.display="none"}}},[null==g?void 0:null===(e=g.current)||void 0===e?void 0:e.offsetWidth,b,f]),(0,o.jsx)("div",{className:z()(tp()["navbar-wrap"],{[tp()["nav-bar-visible"]]:c}),children:(0,o.jsxs)("nav",{className:z()(tp().navbar,{[tp().navbar_holod]:v}),children:[(0,o.jsx)("div",{ref:g,className:tp()["navbar__links-wrap"],children:s}),(null==b?void 0:b.length)>0&&(0,o.jsx)(t_,{moreElems:b,movieData:n}),(0,o.jsx)(ti(),{className:tp()["navbar__vertical-line"],src:"/static/images/product/nav_bar/vertical-line.svg",loader:_.R2,width:2,height:36,alt:"line"}),(0,o.jsx)(tl,{page:i,episode:h,seasonNum:p,movieData:n,numbersOfAvailableSeasons:u,onButtonClick:r,productCustomization:m})]})})};
1var th=i(54532),tm=i(30511),tv=i(7327),tg=i.n(tv);let tb=()=>{let t=document.getElementById("main_header");if(!t)return 0;let e=t.getBoundingClientRect();return e.bottom<=0?0:Math.round(e.height)},tk=t=>{let e=tb();Y.XG.scrollTo("".concat(t),{duration:500,smooth:!0,offset:-e})},tf=t=>{var e,i,s,d;let{ref:p,page:u,movieData:h,episode:g,trailer:b,similar:k,type:f,hasSimilar:x,hasArticles:y,topBlockReportFunc:w,seasonNum:T,numbersOfAvailableSeasons:S,noJs:j,productCustomization:C,isHolod:B}=t,N=h.items&&Array.isArray(h.items)&&h.items.length,P=(0,_.M$)(h),I=(0,a.useRef)(!1),D=(0,a.useRef)(null),[A,E]=(0,a.useState)(function(){return r().asPath.split("#")[1]||"series"}),[R,L]=(0,a.useState)(null),[M,U]=(0,a.useState)(null),{profile:H,systemInformation:W,registration:K}=(0,l.d4)(t=>t),{pendingSubscription:V}=(0,l.d4)(t=>t.profile),{subscriptionType:Y,tariffs:G}=(0,l.d4)(t=>t.registration),J=(0,l.d4)(t=>{var e,i,o,s;return!!((null===(i=t.registration)||void 0===i?void 0:null===(e=i.authData)||void 0===e?void 0:e.email)||(null===(s=t.registration)||void 0===s?void 0:null===(o=s.authData)||void 0===o?void 0:o.phone))}),{startDeviceId:q}=(0,l.d4)(t=>t.systemInformation),{documentClientWidth:te,documentClientHeight:ti,player:to}=W,{childProfile:ts}=H,{authData:tr}=K,ta=null==to?void 0:to.init,tl=(0,l.wA)(),tn=(0,X.A)(),tc=(0,Q.A)(),t_=(0,Z.A)(),td=(0,$.l)(),tp=Math.round(null==td?void 0:null===(e=td[0])||void 0===e?void 0:e.y),tv=te<c.af,tb=null==tr?void 0:tr.virtual,tf=null==tr?void 0:tr.trial_is_available,tx=J&&tf,ty=J&&!tf,tw=t=>{if(!t)return;let e=t.getBoundingClientRect().x,i=t.parentNode.getBoundingClientRect().x,o=t.parentNode.scrollLeft;t.parentNode.scrollTo({left:e+o-i,behavior:"smooth"})},tT=t=>{if(M)return;E(t);let e="#".concat(t),i=window.location.pathname+window.location.search;i.includes("/watch")&&window.location.hash!==e&&window.history.replaceState(window.history.state,document.title,i+e)};(0,a.useImperativeHandle)(p,()=>({changeActiveElem:tT}));let tS=(t,e)=>{var i;U(!0),clearTimeout(D.current);let o={series:"seasons_and_episodes",persons:"crew",story:"plot",articles:"journal_post"};tn({action_id:"click",product_id:null==h?void 0:h.uid,content_id:null==h?void 0:h.uid,content_type:null==h?void 0:h._cls,block_type:"block",block_attributes_id:"navbar",element_type:"menu_item",element_attributes_id:(null==o?void 0:o[e])?null==o?void 0:o[e]:e,element_attributes_text:null==t?void 0:null===(i=t.target)||void 0===i?void 0:i.innerText}),tv&&(tw(null==t?void 0:t.target),E(e)),D.current=setTimeout(()=>{U(!1),tv||E(e)},500),tk(e)},tj=async(t,e)=>{let i="".concat(tc).concat(n.PI.favorites).concat(tr.profile_id).concat(t_);try{(await fetch(i,{credentials:"include",method:e?"DELETE":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_id:t})})).status<400&&tl((0,F.Jb)(tr.profile_id,tc,t_))}catch(t){console.error(t)}},tC=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;tn({action_id:t,screen_type:"product",screen_attributes_id:null==h?void 0:h.alias,block_type:"popup",block_attributes_id:e,..."click"===t&&{element_type:"button",element_attributes_id:"cross"}})},tB=t=>{let e=sessionStorage.getItem("announcePremierPopupShown");t?(tl((0,tt.nD)({text:"<span>УбÑали из Ñаздела \xabÐоÑ\xbb</span>",onCrossClickCallback:()=>tC("click","notification_success_remove_from_favorites"),withProgressBar:!0,closeIn:2e3,variant:"addedToFavorites"})),tC("popupview","notification_success_remove_from_favorites")):!e&&(null==h?void 0:h.is_preview)?tl((0,v.YF)(!0,null==h?void 0:h.uid)):(tl((0,tt.nD)({text:"<span>Ðобавили в \xabÐоÑ\xbb</span>",onCrossClickCallback:()=>tC("click","notification_success_add_to_favorites"),withProgressBar:!0,closeIn:2e3,variant:"addedToFavorites"})),tC("popupview","notification_success_add_to_favorites"))},tN=t=>{if(Array.isArray(null==H?void 0:H.favorites)){let e=null==H?void 0:H.favorites.map(t=>t._id);return null==e?void 0:e.includes(t)}return!1},tP=(t,e)=>{let i=(0,_.xM)(null==h?void 0:h.subscriptions,Y),o=tE();tn({action_id:"click",product_id:null==h?void 0:h.uid,content_id:o?null==o?void 0:o.uid:null==h?void 0:h.uid,content_type:null==h?void 0:h._cls,block_type:"block",block_attributes_id:"navbar",element_type:"button",element_attributes_id:i?t?"continue":"watch":"watch_premium",element_attributes_text:e})},tI=async(t,e)=>
1{var i,o,s,a,l,n,c,d;let p=null==t?void 0:null===(i=t.target)||void 0===i?void 0:i.innerText,u=(0,_.G6)((null==tr?void 0:tr.ab)||[],"Benefits_screen_customization","Test_Benefits_screen_customization")&&!!localStorage.getItem("bgUrl"),{_id:m,uid:g,is_preview:b,is_disabled:k,background:f,logotype:x,badges:y,playback_options:w,is_free:T,items:j,subscriptions:C,_cls:B}=h,N=(null==tr?void 0:tr.type)==="EX_PAID"||(null==tr?void 0:tr.type)==="EX_TRIAL"||(null==tr?void 0:tr.type)==="EX_PROMO",P=!(0,_.xM)(C,Y),I=T||(null==j?void 0:j.find(t=>null==t?void 0:t.is_free))||(null===(s=j[0])||void 0===s?void 0:null===(o=s.items[0])||void 0===o?void 0:o.is_free)||(null===(l=j[0])||void 0===l?void 0:null===(a=l.items[0])||void 0===a?void 0:a.free_for_authorized),D=null===(c=j[0])||void 0===c?void 0:null===(n=c.items[0])||void 0===n?void 0:n.free_for_authorized,A=!!I&&(tb||P||tf||N);if(ts&&await (0,tm.j)({apiUrl:tc,apiKey:t_})){tl((0,v.bL)({visible:!0}));return}if("Product.Series"===B&&A&&(0,_.TV)("isFreeContentFlow",encodeURIComponent(null==h?void 0:null===(d=h.background)||void 0===d?void 0:d.image_15x)),!b&&!(null==w?void 0:w.includes(".m3u8"))){let t=await tD(w),i=tE(),o=i?null==i?void 0:i.subscriptions:null==h?void 0:h.subscriptions;if(!(0,_.xM)(o,Y)&&!A){tP(e,p),(0,_.vB)({contentUpgradeOptions:null==t?void 0:t.upgrade_options,saveBackRoute:!0});return}}if(b||k||S&&0===S.size){if(tb)tl((0,v.t0)({visible:!0,uid:g,background:f.image_15x,logotype:x.image_15x,badges:y}));else{tn({action_id:"click",product_id:null==h?void 0:h.uid,content_id:null==h?void 0:h.uid,content_type:null==h?void 0:h._cls,block_type:"block",block_attributes_id:"navbar",element_type:"button",element_attributes_id:"notify",element_attributes_text:p});let t=tN(m);tj(g,t),tB(t)}}else if((tb||tx||ty)&&u){let{show:t,type:e}=(0,th.g5)(tr,V);t&&!A&&tl((0,v.gb)({visible:!0,type:e,isContentPage:!0}))}else tb&&D?((0,_.TV)("fromProductPageWithFreeContent",!0),(0,_.Uy)(),r().push("/auth")):tA(e,p)},tD=async t=>{let e=new URL("".concat(tc).concat(t).concat(t_));e.searchParams.set("device_id",q),e.searchParams.set("auth_token",tr.authentication_token);let i=await fetch(e,{credentials:"include"});if(i.ok)return await i.json()},tA=(t,e)=>{let{hash:i,pathname:o}=window.location;if(null==h?void 0:h.unavailable_by_geo){r().replace(o);return}if(tP(t,e),W.dataLayer){let t=W.dataLayer;t.dataLayer.event="productCardClickPlayEvent",tl((0,m.ak)(t))}tl((0,m.kI)({init:!0,type:"Movie"}));let s=tE(),a={movieUrl:"/web/watch/".concat(h.alias),movieTitle:h.title,isTrailer:!1,movieId:h._id,playback:s?null==s?void 0:s.playback_options:h.playback_o
1ptions,similar:k,uid:s?null==s?void 0:s.uid:h.uid,rating_age:h.rating_age,forceCheckParentalControl:!0};tl((0,O.o2)(a)),("#playproduct"===i||"#playtrailer"===i)&&o&&r().replace(o)},tE=()=>{let{lastProgress:t}=H;if("Product.Series"!==h._cls)return null;if(T&&!t){var e,i,o;return null===(o=h.items)||void 0===o?void 0:null===(i=o[T-1])||void 0===i?void 0:null===(e=i.items)||void 0===e?void 0:e[0]}let s=h.items.flatMap(t=>t.items);return t?s.find(e=>t.content_id===e.uid):s[0]};return(0,a.useEffect)(()=>()=>{clearTimeout(D.current)},[]),(0,a.useEffect)(()=>{let t=()=>{E(window.location.hash.slice(1)||"series")};return r().events.on("routeChangeComplete",t),()=>{r().events.off("routeChangeComplete",t)}},[]),(0,o.jsx)("div",{className:tg()["nav-bar-wrap"],children:(0,o.jsxs)(tu,{page:u,isVisible:(()=>{var t;if(tp>0&&tp+ti<document.body.scrollHeight)return I.current=!0,!0;if(I.current&&""!==window.location.hash&&!ta&&(null===(t=document)||void 0===t?void 0:t.readyState)==="complete"){let t=window.location.pathname+window.location.search;window.history.replaceState(window.history.state,document.title,t)}return!1})()||j,movieData:h,setMobileShadowPosition:L,topBlockReportFunc:w,seasonNum:T,numbersOfAvailableSeasons:S,episode:g,scrollY:tp,onNavBarButtonClick:tI,productCustomization:C,isHolod:B,children:[N&&!h.unavailable_by_geo?(0,o.jsx)("a",{href:"#series",className:z()(tg().link,{[tg().active]:"series"===A,[tg()["shadow-".concat(R)]]:R}),onClick:t=>tS(t,"series"),children:"Ð¡ÐµÐ·Ð¾Ð½Ñ Ð¸ ÑеÑии"}):null,((null==h?void 0:null===(i=h.seo)||void 0===i?void 0:i.short_description)||(null==h?void 0:h.description))&&(0,o.jsx)("a",{href:"#description",className:z()(tg().link,{[tg().active]:"description"===A,[tg()["shadow-".concat(R)]]:R}),onClick:t=>tS(t,"description"),children:"ÐпиÑание"}),(null==h?void 0:null===(s=h.promo_content)||void 0===s?void 0:s.length)?(0,o.jsx)("a",{href:"#extras",className:z()(tg().link,{[tg().active]:"extras"===A,[tg()["shadow-".concat(R)]]:R}),onClick:t=>tS(t,"extras"),children:te<=375?"ÐаÑеÑиалÑ":"ÐополниÑелÑнÑе маÑеÑиалÑ"}):null,((null===(d=h.hashtags)||void 0===d?void 0:d.length)||x)&&"seasons"!==u?(0,o.jsx)("a",{href:"#selections",className:z()(tg().link,{[tg().active]:"selections"===A,[tg()["shadow-".concat(R)]]:R}),onClick:t=>tS(t,"selections"),children:"ÐодбоÑки"}):null,h.additional_content&&h.additional_content.length&&!h.is_disabled&&!h.unavailable_by_geo?(0,o.jsx)("a",{href:"#trailers",className:z()(tg().link,{[tg().active]:"trailers"===A,[tg()["shadow-".concat(R)]]:R}),onClick:t=>tS(t,"trailers"),children:"ТÑейлеÑÑ"}):null,P?(0,o.jsx)("a",{href:"#persons",className:z()(tg().link,{[tg().active]:"persons"===A,[tg()["shadow-".concat(R)]]:R}),onClick:t=>tS(t,"persons"),children:"ÐкÑеÑÑ"}):null,h.cast&&h.cast.length&&h.cast.filter(t=>t.character.name&&t.character.photo&&t.character.biography).length?(0,o.jsx)("a",{href:"#characters",className:z()(tg().link,{[tg().active]:"characters"===A,[tg()["shadow-".concat(R)]]:R}),onClick:t=>tS(t,"characters"),children:"ÐеÑои"}):null,!u&&h&&h.seo&&h.seo&&h.seo.subject?(0,o.jsx)("a",{href:"#story",className:z()(tg().link,{[tg().active]:"story"===A,[tg()["shadow-".concat(R)]]:R}),onClick:t=>tS(t,"story"),children:"СÑжеÑ"}):null,!ts&&y?(0,o.jsx)("a",{href:"#articles",className:z()(tg().link,{[tg().active]:"articles"===A,[tg()["shadow-".concat(R)]]:R}),onClick:t=>tS(t,"articles"),children:"СÑаÑÑи"}):null]})})};var tx=i(19023),ty=i.n(tx);let tw=()=>{let t=(0,l.wA)(),e=(0,l.d4)(t=>t.toggle.loginSubscribePopup),i=()=>{t((0,v.Kw)(!1)),document.body.classList.remove("overflow")};return((0,a.useEffect)(()=>(document.body&&e&&document.body.classList.add("overflow"),()=>{document.body.classList.remove("overflow")}),[e]),e)?(0,o.jsx)("div",{className:ty().modal,onClick:i,children:(0,o.jsxs)("div",{className:ty().modal__content,children:[(0,o.jsx)("div",{className:ty().modal__close,onClick:i,children:(0,o.jsx)("img",{src:"/static/images/popups/cross.svg",alt:"popup"})}),(0,o.jsx)("div",{className:ty().modal__title,children:"ÐойдиÑе в аккаÑнÑ"}),(0,o.jsx)("div",{className:ty().modal__info,children:"РподпиÑиÑеÑÑ Ð½Ð° поÑвление ÑилÑма и ÑеÑиала"}),(0,o.jsx)(to.$n,{size:to.GO.REGULAR,title:"ÐойÑи",className:ty().modal__btn,onClick:()=>{r().push("/auth")},fullWidth:!0}),(0,o.jsxs)("div",{className:ty().modal__reg_wrapper,children:[(0,o.jsx)("span",{children:"ÐÐµÑ Ð°ÐºÐºÐ°ÑнÑа?"}),(0,o.jsx)("button",{className:ty().modal__btn_reg,onClick:()=>{r().push("/auth")},children:"ÐопÑобÑйÑе беÑплаÑно"})]})]})}):null};var tT=i(86117),tS=i.n(tT);let tj={toggleCheckAgePopup:v.UV,clickHouseShoot:m.Y3},tC=(0,l.Ng)(t=>({toggle:t.toggle,systemInformation:t.systemInformation}),tj)(t=>{let{clickHouseData:e,API_URL:i}=t.systemInformation,{checkAge:s}=t.toggle,l=(0,_.Ri)("adult");return((0,a.useEffect)(()=>
1{if(e){let o={...e,action_id:"popupview",screen_type:"product",screen_attributes_id:t.alias,product_id:t.id,block_type:"popup",block_attributes_id:"age18",event_time:Date.now()};t.clickHouseShoot(i,o)}},[e]),(0,a.useEffect)(()=>()=>t.toggleCheckAgePopup(!1),[]),s&&!l)?(0,o.jsx)("div",{className:tS()["check-age"],children:(0,o.jsxs)("div",{className:tS()["check-age__conent"],"data-testid":"check_age_popup",children:[(0,o.jsx)("div",{className:tS()["check-age__img"],children:(0,o.jsx)("img",{src:"/static/images/popups/18+.svg",alt:"18+"})}),(0,o.jsx)("div",{className:tS()["check-age__header"],children:"Ðам Ñже еÑÑÑ 18 леÑ?"}),(0,o.jsx)("div",{className:tS()["check-age__text"],children:"ÐÑоÑмоÑÑ Ð´Ð¾ÑÑÑпен ÑолÑко зÑиÑелÑм ÑÑаÑÑе 18 леÑ"}),(0,o.jsxs)("div",{className:tS()["check-age__buttons-wrapper"],children:[(0,o.jsx)("div",{className:tS()["check-age__button-agree"],onClick:()=>{t.toggleCheckAgePopup(!1);let o={...e,action_id:"click",screen_type:"product",screen_attributes_id:t.alias,product_id:t.id,block_type:"popup",block_attributes_id:"age18",element_type:"button",element_attributes_id:"yes",event_time:Date.now()};t.clickHouseShoot(i,o);let s=new Date;s.setDate(s.getDate()+366),(0,_.TV)("adult",!0,{expires:s})},children:"Ðа"}),(0,o.jsx)("div",{className:tS()["check-age__button-disargee"],onClick:()=>{let o={...e,action_id:"click",screen_type:"product",screen_attributes_id:t.alias,product_id:t.id,block_type:"popup",block_attributes_id:"age18",element_type:"button",element_attributes_id:"no",event_time:Date.now()};t.clickHouseShoot(i,o),r().push("/").then(()=>{t.toggleCheckAgePopup(!1)})},children:"ÐеÑ"})]})]})}):null});var tB=i(95864);let tN={toggleVisibleNoAuthLikePopup:v.xz,toggleVisiblePopup:v.TX,clickHouseShoot:m.Y3};class tP extends a.Component{componentDidMount(){let{clickHouseData:t}=this.props.systemInformation,{movie:e}=this.props.movie,i={...t,action_id:"popupview",screen_type:"product",block_type:"popup",block_attributes_id:"register_or_login",content_type:null==e?void 0:e._cls,product_id:null==e?void 0:e._id,content_id:null==e?void 0:e.uid,event_time:Date.now()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,i)}render(){return(0,o.jsx)("div",{className:tS().nalp,children:(0,o.jsxs)("div",{className:tS().nalp__wrapper,children:[(0,o.jsx)("div",{className:tS().nalp__title,children:"ÐаÑегиÑÑÑиÑÑйÑеÑÑ Ð¸Ð»Ð¸\xa0войдиÑе"}),(0,o.jsx)("div",{className:tS().nalp__text,children:"Ð Ð¼Ñ ÑÑÑÑм ваÑÑ Ð¾ÑÐµÐ½ÐºÑ Ð² бÑдÑÑиÑ
ÑекомендаÑиÑÑ
"}),(0,o.jsxs)("div",{className:tS().nalp__buttons,children:[(0,o.jsx)(to.$n,{title:"Ðа, давайÑе",variant:tB.Vt.PRIMARY,onClick:this.handleSubmit,testid:"ok",fullWidth:!0}),(0,o.jsx)(to.$n,{title:"Ðе ÑейÑаÑ",variant:tB.Vt.SECONDARY,onClick:this.handleCancel,testid:"not_now",fullWidth:!0})]})]})})}constructor(...t){super(...t),this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.handleSubmit=()=>{let{movie:t}=this.props.movie,{clickHouseData:e}=this.props.systemInformation;t.background&&t.background.image_15x&&localStorage.setItem("bgUrl",t.background.image_15x),t.logotype&&t.logotype.image_15x&&localStorage.setItem("logoUrl","".concat(this.apiUrl).concat(t.logotype.image_15x));let i={...e,action_id:"click",screen_type:"product",block_type:"popup",block_attributes_id:"register_or_login",element_type:"button",element_attributes_id:"ok",element_attributes_text:"Ðа, давайÑе",content_type:null==t?void 0:t._cls,product_id:null==t?void 0:t._id,content_id:null==t?void 0:t.uid,event_time:Date.now()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,i),(0,_.TV)("returnToProduct",window.location.pathname),(0,_.TV)("returnToProductUid",null==t?void 0:t.uid),this.props.toggleVisiblePopup(!1),this.props.toggleVisibleNoAuthLikePopup(!1),r().push("/auth")},this.handleCancel=()=>{let{movie:t}=this.props.movie,{clickHouseData:e}=this.props.systemInformation,i={...e,action_id:"click",screen_type:"product",block_type:"popup",block_attributes_id:"register_or_login",element_type:"button",element_attributes_id:"not_now",element_attributes_text:"Ðе ÑейÑаÑ",content_type:null==t?void 0:t._cls,product_id:null==t?void 0:t._id,content_id:null==t?void 0:t.uid,event_time:Date.now()};(0,_.Yj)("returnToProductScore"),this.props.clickHouseShoot(this.apiUrl,this.apiKey,i),this.props.toggleVisiblePopup(!1),this.props.toggleVisibleNoAuthLikePopup(!1)}}}let tI=(0,l.Ng)(t=>({toggle:t.toggle,movie:t.movie,systemInformation:t.systemInformation}),tN)(tP);var tD=i(91106),tA=i.n(tD),tE=i(85299),tR=i(72110),tL=i.n(tR),tM=i(32467),tU=i(37913),tH=i.n(tU),tO=i(96927);let tF=a.memo(t=>{let{wrappClassName:e,className:i,title:s,description:r,category:l,poster:n,url:d,deviceData:p,shortDescription:u=!1,small:h=!1,onClick:m,index:v,showGrid:g}=t,[b,k]=(0,a.useState)(!1);return(0,o.jsx)("div",{className:e,children:(0,o.jsx)(tA(),{prefetch:!1,href:d,className:z()({[tH().article]:!g,[tH().article_small]:h&&!g,[tH().article_grid]:g,[i]:i}),onClick:m,children:(0,o.jsxs)(o.Fragment,{children:[!b&&(0,o.jsx)(tO.A,{className:z()({[tH().skeleton]:!g,[tH()["skeleton-grid"]]:g})}),(0,o.jsx)(tM.A,{fill:!0,className:tH().article__background,src:(t=>{let e="580x336";switch(p){case"mobile_web":e="383x222";break;case"tablet_web":e="992x575";break;
1case"desktop_web":e="1360x788";break;default:e="580x336"}return(0,_.bZ)(t,e,"mobile_web"===p?30:20)})(n),sizes:"(max-width: 768px) 100vw",onLoad:()=>k(!0),onError:()=>k(!1)}),(0,o.jsxs)("div",{className:tH()["article-content"],children:[(0,o.jsxs)("div",{className:tH().article__category,children:[(0,o.jsx)("span",{className:tH()["article__category-mark"],style:{backgroundColor:l.color,color:l.text_color}}),(0,o.jsx)("span",{className:tH()["article__category-title"],children:l.title})]}),(0,o.jsx)("div",{className:tH().article__title,children:(0,c.IN)(120,s)}),s.length<=120?(0,o.jsx)("div",{className:tH().article__description,children:u?(0,c.IN)(150,r):(0,c.IN)(240,r)}):null]}),(0,o.jsx)("img",{className:tH()["article-arrow"],src:"/static/images/product/article-arrow.svg",alt:""})]})})})}),tW={clickHouseShoot:m.Y3},tK=(0,l.Ng)(t=>({systemInformation:t.systemInformation,toggle:t.toggle,registration:t.registration,profile:t.profile}),tW)(t=>{let{sliderList:e,lineIdx:i,alias:s,isPaginator:r,onItemClick:n,systemInformation:d,movieData:p,blockAttributesIndex:u,showGrid:h}=t,v=(0,Q.A)(),g=(0,Z.A)(),[b,k]=(0,a.useState)(!1),{documentClientWidth:f,clickHouseData:x}=d,y=(0,l.wA)(),w=f<c.af,T=f<c.af,S=f>c.I9&&f<=c.af,j=!T&&!S,C=(t,e,i)=>{var o;t.stopPropagation();let s={...x,action_id:"click",product_id:null==p?void 0:p._id,content_id:null==e?void 0:e.id,content_type:null!==(o=null==p?void 0:p._cls)&&void 0!==o?o:"",block_type:"collection",block_attributes_id:"journal",block_attributes_index:u,element_type:"journal_post",element_attributes_id:e.alias,element_attributes_text:e.title,element_attributes_index:parseInt(i+1)||1,event_time:new Date().getTime()};y((0,m.Y3)(v,g,s))};return(0,o.jsx)("div",{className:z()({[tL()["slider-wrap"]]:!h,[tL().slider_wrap_grid]:h}),onMouseOver:()=>k(!0),onMouseOut:()=>k(!1),onFocus:()=>k(!0),onBlur:()=>k(!1),children:(0,o.jsx)(tE.A,{wrapperStyles:(()=>{if(f){if(f>c.U8){let t=(0,_.$J)(56,f);return{paddingRight:t,paddingLeft:t}}return f>c.af?{paddingRight:56,paddingLeft:56}:{paddingRight:24,paddingLeft:24}}})(),widthCard:{desktop:540,mobile:326},heightCard:{desktop:382,mobile:214},lineIdx:"lineIdx",active:b&&!h,alias:s,items:e&&e,isPaginator:r&&!h,items_total:e&&(null==e?void 0:e.length),arrowClick:t=>{var e;let i={...x,product_id:null==p?void 0:p._id,content_id:null==p?void 0:p.uid,content_type:null!==(e=null==p?void 0:p._cls)&&void 0!==e?e:"",block_type:"collection",block_attributes_id:"journal",block_attributes_index:u,element_type:"button",element_attributes_id:t?"arrow_right":"arrow_left",event_time:new Date().getTime()};y((0,m.Y3)(v,g,i))},cardIdent:w?16:24,isProduct:!0,renderFade:!h,children:(0,o.jsx)("div",{className:z()({[tL().items_wrap]:!h,[tL().items_wrap__grid]:h}),children:null==e?void 0:e.map((t,e)=>(0,o.jsx)(tF,{wrappClassName:tL()["item-wrap"],title:t.title,category:t.category,description:t.short_description,poster:"".concat(v).concat(t.horizontal_poster),url:t.web_url,deviceData:d.deviceData,shortDescription:j||t.length>=2,small:!j&&t.length>=2,onClick:i=>C(i,t,e),index:e,showGrid:h},t.alias))})})})}),tV=t=>{let{articles:e,page:i,type:s,movieData:n,isPaginator:_,isNewEpisodePage:d}=t,[p,u]=(0,a.useState)(!0),h=(0,l.wA)(),v=(0,l.d4)(t=>t.systemInformation),g=v.API_URL||c.H$,b=v.API_KEY||c.Lq,k=null==n?void 0:n.alias,f="ЧиÑаÑÑ Ð¾ ".concat(s.toLowerCase(),"е"),x="".concat("Product.Series"===n._cls?"СеÑиал":""," ").concat(null==n?void 0:n.title,": СÑаÑÑи"),y=!i||"seasons"===i||d?"/watch/".concat(k,"/articles"):null,w=y?2:1;(0,a.useEffect)(()=>{u(!1)},[]);let T="articles"===i;return(0,o.jsxs)("div",{className:z()({[tH()["articles-main"]]:!T,[tH().articles_main_r]:T}),children:[y?(0,o.jsx)(tA(),{prefetch:!1,href:y.replace("/web",""),"data-testid":"read_about_link",children:(0,o.jsx)("h2",{className:tH().linked,children:(0,o.jsx)("span",{children:f})})}):(0,o.jsx)("h1",{className:z()(tH()["articles-header"],{[tH()["articles-header-redesign"]]:T}),"data-testid":"read_about_title",children:x}),(0,o.jsx)(tK,{sliderList:e,alias:"articles",movieData:n,blockAttributesIndex:w,showGrid:T,isPaginator:!0}),(0,o.jsx)("div",{className:tH()["article-button-wrap"],children:(0,o.jsx)(to.$n,{size:to.GO.REGULAR,variant:to.Vt.SECONDARY,title:"ÐолÑÑе ÑÑаÑей в ÐÑÑнале",onClick:t=>{var e;let i={...v.clickHouseData,action_id:"click",product_id:null==n?void 0:n._id,content_id:null==n?void 0:n.uid,content_type:null!==(e=null==n?void 0:n._cls)&&void 0!==e?e:"",block_type:"collection",block_attributes_id:"journal",block_attributes_index:w,element_type:"button",element_attributes_id:"show_more",element_attributes_text:t.target.textContent,event_time:Date.now()};h((0,m.Y3)(g,b,i)),r().push("/journal")},needResponsive:!0})})]})};var tz=i(40094),tY=i(65317),tG=i(75756),tJ=i(32991),tq=i.n(tJ);let tZ=t=>{var e,i,n,c,d,p,u,h,m,g;let{movieData:b,index:k,yearSubMonthlyPrice:f,currentCurrency:x}=t,y=(0,l.wA)(),w=(0,tY.A)(),T=(0,s.useRouter)(),S=(0,X.A)(),j=(0,l.d4)(t=>t.registration.authData),C=(0,l.d4)(t=>
1t.registration.tariffs),B=(0,l.d4)(t=>t.systemInformation.config),N=(0,l.d4)(t=>t.systemInformation.clickHouseData),P=(null==j?void 0:j.type)==="EX_PAID",I=null==j?void 0:j.profile_for_child,D=(null==j?void 0:j.subscriptions.some(t=>(null==t?void 0:t.acl_type)==="lite"))&&!(null==j?void 0:j.subscriptions.some(t=>(null==t?void 0:t.acl_type)==="premium")),A=(P||D)&&I,E=null===(e=T.query.params)||void 0===e?void 0:e[1],R=null===(i=T.query.params)||void 0===i?void 0:i[0],L=(0,_.pK)(C),M=(0,_.EE)(null==j?void 0:j.trial_is_available,L),U=(0,_.Ri)("channel"),{ref:H,inView:O}=(0,tz.Wx)({threshold:.5});(0,a.useEffect)(()=>{O&&N&&j&&S({action_id:"collection_view",action_result:1,action_attributes_num:k,action_parameter:"link",block_type:"banner",block_attributes_id:"banner_link",block_attributes_index:k,product_id:null==b?void 0:b.uid,element_type:"link",element_attributes_index:1,element_attributes_id:"".concat(window.location.origin,"/auth"),screen_type:"product",screen_attributes_id:"".concat(R).concat(E?"/".concat(E):""),custom_field_str1:"".concat(window.location.origin,"/auth")})},[O,N,j]);let F=j?(t=>t?t<768?"/static/images/product/banner/banner-375.webp":t<1025?"/static/images/product/banner/banner-1024.webp":"/static/images/product/banner/banner-1440.webp":"")(null==w?void 0:w.width):"",W=M?"ÐопÑобоваÑÑ".concat(U?"":" ".concat(L," ").concat((0,_.jQ)(["денÑ","днÑ","дней"],L))," беÑплаÑно"):"ÐÑоÑмиÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑкÑ";return(null==B?void 0:null===(n=B.banner_kp)||void 0===n?void 0:n.title)||(null==B?void 0:null===(c=B.banner_kp)||void 0===c?void 0:c.desc)?(0,o.jsxs)("article",{ref:H,className:tq().banner,onClick:()=>{if(S({action_id:"click",action_parameter:"link",block_type:"banner",block_attributes_id:"banner_link",block_attributes_index:k,product_id:null==b?void 0:b.uid,screen_type:"product",element_type:"link",element_attributes_id:"".concat(window.location.origin,"/auth"),element_attributes_index:1,element_attributes_text:M?"ÐопÑобоваÑÑ ".concat(L," ").concat((0,_.jQ)(["денÑ","днÑ","дней"],L)," беÑплаÑно"):"ÐÑоÑмиÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑкÑ",screen_attributes_id:"".concat(R).concat(E?"/".concat(E):""),custom_field_str1:"".concat(window.location.origin,"/auth")}),null==j?void 0:j.virtual)r().push("/auth");else{if(A){y((0,v.bL)({visible:!0}));return}y((0,tG.bo)())}},children:[F?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:tq().title,dangerouslySetInnerHTML:{__html:(null==B?void 0:null===(u=B.banner_kp)||void 0===u?void 0:null===(p=u.title)||void 0===p?void 0:null===(d=p.replace("{titlePrice}",f))||void 0===d?void 0:d.replace("{titleCurrency}",x))||"ÐÐÐÐÐШÐСЬ ÐРЧУÐÐ-СÐÐ ÐÐÐЫ РХÐТЫ START"}}),(0,o.jsx)("span",{className:tq().description,dangerouslySetInnerHTML:{__html:(null==B?void 0:null===(g=B.banner_kp)||void 0===g?void 0:null===(m=g.desc)||void 0===m?void 0:null===(h=m.replace("{descPrice}",f))||void 0===h?void 0:h.replace("{descCurrency}",x))||"Родной подпиÑке \xabÐоÑледний ÐогаÑÑÑÑ. ÐаÑледие\xbb, \xabÐиÑÑ Ð¶Ð¸Ð·Ð½Ñ\xbb, \xabСлово паÑана\xbb, \xabСодеÑжанки\xbb и еÑе 100+ оÑигиналÑнÑÑ
пÑоекÑов. РеÑе новинки кино, лÑбимÑе мÑлÑÑÑилÑÐ¼Ñ Ð¸ 200+ ТÐ-каналов"}}),(0,o.jsx)("div",{className:z()(tq().fee),children:(0,o.jsx)(to.$n,{className:tq().button,title:W})})]}):null,F?(0,o.jsx)(ti(),{loading:"eager",src:F,className:tq().image,loader:_.R2,width:0,height:0,priority:!0,alt:"Banner"}):null]}):null};var tQ=i(87873),tX=i(99009),t$=i(50425),t0=i(62971),t1=i.n(t0),t2=i(80278),t4=i.n(t2);let t3=t=>{var e,i,s,r,n,c;let{card:d,index:p,onItemClick:u,gridCard:h}=t,m=(0,Q.A)(),[v,g]=(0,a.useState)(!1),[b,k]=(0,a.useState)(!0),f=(0,l.d4)(t=>t.systemInformation.renderMobile);(0,a.useEffect)(()=>{k(!1)},[]);let x="".concat(m).concat((0,_.bZ)(null==d?void 0:null===(e=d.photo)||void 0===e?void 0:e.image_15x,f?"176x176":"280x280",75)),y=null==d?void 0:null===(i=d.name)||void 0===i?void 0:i.split(" "),w=null==y?void 0:y[0];null==y||y.shift();let T=null==y?void 0:y.join(" "),S=!!(null==d?void 0:null===(s=d.photo)||void 0===s?void 0:s.image_15x);return(0,o.jsxs)("div",{className:z()({[t4().item_wrap]:!h,[t4().item_wrap_grid]:h}),onClick:()=>u(null==d?void 0:d.alias,null==d?void 0:d.name,p),children:[!v&&!b&&S&&(0,o.jsx)("div",{className:z()({[t4().skeleton__wrap]:!h,[t4().skeleton_grid__wrap]:h}),children:(0,o.jsx)("div",{className:z()({[t4().skeleton__1_wrap]:!h,[t4().skeleton_grid__
11_wrap]:h}),children:(0,o.jsx)(tO.A,{className:z()({[t4().skeleton__1]:!h,[t4().skeleton_grid__1]:h})})})}),(0,o.jsx)(tA(),{prefetch:!1,href:"/person/".concat(null==d?void 0:d.alias),children:(0,o.jsxs)("div",{className:z()({[t4().item]:!h,[t4().item_grid]:h}),children:[(0,o.jsx)("div",{className:z()({[t4().item_grid__img_wrap]:h}),children:(null==d?void 0:d.photo)&&(null==d?void 0:null===(r=d.photo)||void 0===r?void 0:r.image_15x)?(0,o.jsx)(tM.A,{className:z()({[t4().item__photo]:!h,[t4().item_grid__photo]:h}),src:x,width:f?88:140,height:f?88:140,onLoad:()=>g(!0),onError:()=>g(!1)}):(0,o.jsxs)("div",{className:z()({[t4().item__no_photo]:!h,[t4().item_grid__no_photo]:h}),children:[null===(n=w[0])||void 0===n?void 0:n.toUpperCase(),null===(c=T[0])||void 0===c?void 0:c.toUpperCase()]})}),(0,o.jsxs)("div",{className:z()({[t4().item__fio]:!h,[t4().item_grid__fio]:h}),children:[(0,o.jsx)("span",{className:z()({[t4().item__fio__name]:!h,[t4().item_grid__fio__name]:h}),children:w}),(0,o.jsx)("span",{className:z()({[t4().item__fio__lastname]:!h,[t4().item_grid__fio__lastname]:h}),children:T})]})]})})]})},t5=a.memo(t=>{let{list:e,showGrid:i,onItemClick:s}=t;return(0,o.jsx)("div",{className:z()({[t1().items_wrap]:!i,[t1().items_wrap__grid]:i}),children:null==e?void 0:e.map((t,e)=>(0,o.jsx)(t3,{card:t,index:e,gridCard:i,onItemClick:s},"".concat(e,"-").concat(t.alias)))})}),t6=a.memo(t=>{let{sliderList:e,alias:i,isPaginator:s,onItemClick:r,isProduct:n,onArrowClick:d,showGrid:p}=t,[u,h]=(0,a.useState)(!1),{documentClientWidth:m}=(0,l.d4)(t=>t.systemInformation),v=(0,a.useMemo)(()=>null==e?void 0:e.map(t=>({...t})),[null==e?void 0:e.length]),g=(0,a.useMemo)(()=>{if(m){if(m>c.U8){let t=(0,_.$J)(56,m);return{paddingRight:t,paddingLeft:t}}return m>c.af?{paddingRight:56,paddingLeft:56}:{paddingRight:24,paddingLeft:24}}},[m]);return(0,o.jsx)("div",{className:t1()["slider-wrap"],onMouseOver:()=>h(!0),onMouseOut:()=>h(!1),onFocus:()=>h(!0),onBlur:()=>h(!1),children:(0,o.jsx)(tE.A,{wrapperStyles:g,widthCard:{desktop:140,mobile:88},heightCard:{desktop:215,mobile:128},isPaginator:s&&!p,active:u&&!p,alias:i,items:v,items_total:null==v?void 0:v.length,arrowClick:d,cardIdent:16,isProduct:n,children:(0,o.jsx)(t5,{list:e,gridCard:p,onItemClick:r})})})}),t7={[ts.Qh.TSBR]:"product__cast_tsbr",[ts.Qh.OLDSKUL]:"product__cast_oldskul"},t8={[ts.Qh.TSBR]:"product__cast-tabs-tsbr",[ts.Qh.HOLOD]:"product__cast-tabs-holod",[ts.Qh.OLDSKUL]:"product__cast-tabs-oldskul"},t9={[ts.Qh.TSBR]:"product__cast-tab-tsbr",[ts.Qh.HOLOD]:"product__cast-tab-holod",[ts.Qh.OLDSKUL]:"product__cast-tab-oldskul"};var et=i(16729),ee=i.n(et),ei=i(58861),eo=i.n(ei);let es=function(t){var e;let{movieData:i,episode:s,productCustomization:r}=t,l=J(i),[n,c]=(0,a.useState)(null==l?void 0:l[0]),_=(0,ts.Kf)(r,ee(),t8),d=(0,X.A)(),p=(t,e)=>{let{uid:o,_cls:r}=i;JSON.stringify(n)!==JSON.stringify(t)&&(d({action_id:"click",product_id:o,content_id:s?null==s?void 0:s.uid:o,content_type:r,block_type:"block",block_attributes_id:"person",element_type:"tab",element_attributes_id:null==t?void 0:t.alias,element_attributes_text:null==t?void 0:t.title,event_time:Date.now()}),c(t))},u=(t,e,o)=>{let{uid:r,_cls:a}=i;d({action_id:"click",block_type:"block",block_attributes_id:"person",content_id:s?null==s?void 0:s.uid:r,product_id:r,element_type:"person",element_attributes_id:t||"person",element_attributes_index:parseInt(o)+1,content_type:a,element_attributes_text:e||"ÐкÑеÑÑ Ð¸ ÑÑемоÑÐ½Ð°Ñ Ð³ÑÑппа",event_time:new Date().getTime()})},h=(t,e)=>{p(e)};return(0,o.jsxs)("div",{className:eo().internal_cast_wrap,children:[(0,o.jsxs)("h1",{children:["Product.Series"===i._cls?"СеÑиал":""," ",null==i?void 0:i.title,": ÐкÑеÑÑ Ð¸ ÑÑемоÑÐ½Ð°Ñ Ð³ÑÑппа"]}),(0,o.jsx)(tX.A,{alias:"cast",movieData:i,categoriesList:l,current:(null==l?void 0:l.length)>0&&n?n:null==l?void 0:l[0],onClickCategory:p,onArrowClick:t=>{let{uid:e,_cls:o}=i;d({action_id:"click",product_id:e,content_id:s?null==s?void 0:s.uid:e,content_type:o,block_type:"block",block_attributes_id:"person",element_type:"button",element_attributes_id:"right"===t?"arrow_right":"arrow_left",event_time:Date.now()})},renderContent:t=>{let{className:e,...i}=t;return(0,o.jsx)(tQ.t,{type:"button",variant:"secondary",tabSize:"large",tabs:l,tabId:"alias",renderContent:t=>(0,o.jsx)("span",{className:z()(t.alias===(null==n?void 0:n.alias)&&(0,ts.Kf)(r,ee(),t9)),children:t.title}),activeTabId:null==n?void 0:n.alias,onClickTab:h,className:z()(e,eo().tabs,_),...i})}}),(0,o.jsx)("h3",{children:(null==n?void 0:n.title)?null==n?void 0:n.title:null==l?void 0:null===(e=l[0])||void 0===e?void 0:e.title}),(0,o.jsx)(t6,{alias:"cast-slider",sliderList:q(l,n),isProduct:!0,onItemClick:(t,e,i)=>u(t,e,i),onArrowClick:t=>{let{uid:e,_cls:o}=i;s&&(null==s||s.uid),Date.now()},selectedCategory:n,showGrid:!0,isPaginator:!1})]})};var er=i(46279),ea=i.n(er);let el={clickHouseShoot:m.Y3},en=a.memo(t=>{let{alias:e,movieData:i,categoriesList:s,selectedCategory:r,sliderList:l,onTitleLinkClickHandle:n,onClickCategory:c,onArrowClick:_,onItemClick:d,productCustomization:p}=t,[u,h]=(0,a.useState)(r),[m,v]=(0,a.useState)(l),g=(0,ts.Kf)(p,ee(),t7),b=(0,ts.Kf)(p,ee(),t8),k=(0,ts.MY)(p,ts.Qh.OLDSKUL);(0,a.useEffect)(()=>{(r!==u||m!==l)&&(h(r),v(l))},[r,l]);let f=(t,e)=>{c(e)};return(0,o.jsxs)("div",{className:z()(ee().product__cast,ee().unpage,ea().unpage,g),children:[(0,o.jsx)(tA(),{prefetch:!1,href:"/watch/".concat(e,"/person"),onClick:n,"data-testid":"person_link",children:(0,o.jsx)("h2",{className:ea().product__linked,children:(0,o.jsx)("span",{children:k?"УÑиÑелÑÑÐºÐ°Ñ ":"ÐкÑеÑÑ Ð¸ ÑÑемоÑÐ½Ð°Ñ Ð³ÑÑппа"})})}),(0,o.jsx)("div",{className:ee()["product__cast__category-slider-wrap"],children:(0,o.jsx)(tX.A,{alias:"cast",movieData:i,categoriesList:s,
1current:(null==s?void 0:s.length)>0&&u?u:null==s?void 0:s[0],onClickCategory:c,onArrowClick:_,renderContent:t=>{let{className:e,...i}=t;return(0,o.jsx)(tQ.t,{type:"button",variant:"secondary",tabSize:"large",tabId:"alias",className:z()(e,ee().tabs,b),tabs:s,renderContent:t=>(0,o.jsx)("span",{className:z()(t.alias===(null==u?void 0:u.alias)&&(0,ts.Kf)(p,ee(),t9)),children:t.title}),activeTabId:null==u?void 0:u.alias,onClickTab:f,...i})}})}),(0,o.jsx)(t6,{alias:"cast-slider",selectedCategory:r,sliderList:m,isProduct:!0,onItemClick:d,onArrowClick:_,showGrid:!1})]})});class ec extends a.Component{componentDidUpdate(t){var e,i;(null===(e=t.movieData)||void 0===e?void 0:e._id)!==(null===(i=this.props.movieData)||void 0===i?void 0:i._id)&&this.setState({selectedCategory:null})}render(){let{page:t,trailer:e,bannerData:i,categoriesList:s,movieData:r,productCustomization:a}=this.props,{config:l}=this.props.systemInformation,{selectedCategory:n}=this.state,c=q(s,n),_=a||(0,ts.JP)({alias:null==r?void 0:r.alias,config:l});return(0,o.jsxs)(o.Fragment,{children:[!t||"seasons"===t||"episode"===t||e?(0,o.jsx)(en,{alias:r.alias,movieData:r,categoriesList:s,selectedCategory:n,sliderList:c,onTitleLinkClickHandle:this.handleCategoryClick,onClickCategory:this.handleCategoryClick,onArrowClick:this.handleCategoryArrowClick,onItemClick:this.handleShoot,productCustomization:_}):(0,o.jsx)(es,{movieData:r,productCustomization:_}),i&&"cast"===i.position?(0,o.jsx)(t$.A,{bannerData:i,movieData:r}):null]})}constructor(t){super(t),this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.handleShoot=(t,e,i)=>{let{clickHouseData:o}=this.props.systemInformation,{uid:s}=this.props.movieData,{episode:r}=this.props,a={...o,action_id:"click",block_type:"block",block_attributes_id:"person",content_id:r?null==r?void 0:r.uid:s,product_id:s,element_type:"person",element_attributes_id:t||"person",element_attributes_index:i+1,content_type:this.props.movieData._cls,element_attributes_text:e||"ÐкÑеÑÑ Ð¸ ÑÑемоÑÐ½Ð°Ñ Ð³ÑÑппа",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,a)},this.handleCategoryClick=t=>{let{clickHouseData:e}=this.props.systemInformation,{episode:i}=this.props,{uid:o}=this.props.movieData,{selectedCategory:s}=this.state;if(!(null==t?void 0:t.alias)||(null==s?void 0:s.alias)===(null==t?void 0:t.alias))return;let r={...e,action_id:"click",product_id:this.props.movieData.uid,content_id:i?null==i?void 0:i.uid:o,content_type:this.props.movieData._cls,block_type:"block",block_attributes_id:"person",element_type:"tab",element_attributes_id:t.alias,element_attributes_text:t.title,event_time:Date.now()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,r),this.setState({selectedCategory:t})},this.handleCategoryArrowClick=t=>{let{clickHouseData:e}=this.props.systemInformation,{episode:i}=this.props,{uid:o}=this.props.movieData,s={...e,action_id:"click",product_id:this.props.movieData.uid,content_id:i?null==i?void 0:i.uid:o,content_type:this.props.movieData._cls,block_type:"block",block_attributes_id:"person",element_type:"button",element_attributes_id:"right"===t?"arrow_right":"arrow_left",event_time:Date.now()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,s)};let e=J(t.movieData);this.state={selectedCategory:e[0]}}}let e_=(0,l.Ng)(t=>({childProfile:t.profile.childProfile,systemInformation:t.systemInformation}),el)(ec),ed={dash:"-",comma:", "},ep={UHD:"4Ð (ÑолÑко на ТÐ)"};var eu=i(31650),eh=i.n(eu);let em=(0,a.memo)(t=>{let{item:e}=t,[i,s]=(0,a.useState)(0),[r,l]=(0,a.useState)(0),n=(0,a.useRef)(null),c=(0,a.useRef)(null),_=()=>{var t,e;s(null===(t=n.current)||void 0===t?void 0:t.getBoundingClientRect().width),l(null===(e=c.current)||void 0===e?void 0:e.getBoundingClientRect().width)};return(0,a.useEffect)(()=>(_(),window.addEventListener("resize",_),()=>{window.removeEventListener("resize",_)}),[_]),(0,o.jsxs)("div",{className:eh().field,children:[(0,o.jsxs)("div",{className:eh().field__title,children:[(0,o.jsx)("span",{ref:n,className:eh()["field__title-elem"],children:e.title}),(0,o.jsx)("div",{className:eh()["field__title-bg"],style:{width:i+4}})]}),(0,o.jsx)("div",{className:eh().field__divider}),(0,o.jsxs)("div",{className:eh().field__value,children:[(0,o.jsx)("span",{ref:c,className:eh()["field__value-elem"],children:e.list?e.list.map((t,i)=>(0,o.jsxs)("span",{children:[t.href?(0,o.jsx)(tA(),{href:t.href,onClick:t.onClick,children:t.value}):t.value,e.list.length-1===i?"":t.separator||ed.comma]},i)):e.href?(0,o.jsx)(tA(),{href:e.href,onClick:e.onClick,children:e.value}):e.value}),(0,o.jsx)("div",{className:eh()["field__value-bg"],style:{width:r+4}})]})]})});em.displayName="DescriptionMetaItem";let ev=(0,a.memo)(t=>{let{movieData:e,kidsProfile:i,streamMeta:s,numbersOfAvailableSeasons:r,descriptionVariant:n,defaultExpanded:c,hideExpandButton:d=!1}=t,p=(0,X.A)(),u=(0,l.d4)(t=>t.systemInformation.renderMobile),h=(0,l.d4)(t=>t.systemInformation.config),[m,v]=(0,a.useState)(!0),{_id:g,uid:b,origin_countries:k,_cls:f,year:x,items:y,title_original:w,genres:T,duration:S,alias:j}=e,{max_quality:C,audios:B,subtitles:N}=s,P=u?2:1,I=m?void 0:P,D=n===ts.Qh.HOLOD,A=(0,ts.JP)({alias:j,config:h}),E=(0,ts.MY)(A,ts.Qh.OLDSKUL),R=t=>{var e;if(i)return"/animation";let o=(null==t?void 0:t.code)?"/".concat(null===(e=t.code)||void 0===e?void 0:e.toLowerCase()):"";return"/".concat("Product.Movie"===f?"movies":"series").concat(o)},L=t=>i?"/animation":"/".concat("Product.Movie"===f?"movies":"series","/").concat(t.toString()),M=t=>i?"/animation":"/".concat("Product.Movie"===f?"movies":"series","/").concat(t.slug.toString()),U=()=>
1{if("Product.Movie"===f)return x?[x]:[];let t=new Set;for(let e=0;e<y.length;e++)(0===e||y.length-1===e)&&"Product.Season"===y[e]._cls&&y[e].year&&t.add(y[e].year);return[...t]},H=()=>{let t=null==r?void 0:r.size;return(null==r?void 0:r.size)===0&&e.items.length>=1&&(t=1),"".concat(t," ").concat((0,_.jQ)(["Ñезон","Ñезона","Ñезонов"],t))},O=()=>{var t,e;let i=t=>Math.ceil(t/6e4);if("Product.Movie"===f&&S)return(0,_._9)(i(S));if(!y||0===y.length)return 0;let o=null===(t=y[0].items[2])||void 0===t?void 0:t.duration;if(o)return(0,_._9)(i(o));let s=null===(e=y[0].items[0])||void 0===e?void 0:e.duration;return s?(0,_._9)(i(s)):0},F=t=>{let{attributesId:e,attributesText:i}=t;p({action_id:"click",product_id:g,content_id:b,content_type:f,block_type:"block",block_attributes_id:"top",element_type:"link",element_attributes_id:e,element_attributes_text:i})},W=(0,a.useMemo)(()=>{let t=()=>{let t=[];return(null==k?void 0:k.length)&&t.push({title:"СÑÑанÑ",list:k.map(t=>({value:t.title,href:R(t),onClick:()=>F({attributesId:"country_".concat(t.code),attributesText:t.title}),separator:ed.comma}))}),C&&t.push({title:"ÐакÑ. каÑеÑÑво",value:ep[C]||C}),(null==B?void 0:B.length)&&t.push({title:"ÐÑдио",list:B.map(t=>({value:t.title,separator:ed.comma}))}),(null==N?void 0:N.length)&&t.push({title:"СÑбÑиÑÑÑ",list:N.map(t=>({value:t.title,separator:ed.comma}))}),(null==T?void 0:T.length)&&t.push({title:"ÐанÑÑ",list:T.map(t=>({value:t.title,href:M(t),onClick:()=>F({attributesId:"genre_".concat(t.slug),attributesText:t.title}),separator:ed.comma}))}),t},e=()=>{var t;let e=[];return(null===(t=U())||void 0===t?void 0:t.length)&&e.push({title:"Ðод",list:U().map(t=>({value:t,href:L(t),onClick:()=>F({attributesId:"year_".concat(t),attributesText:t}),separator:ed.dash}))}),"Product.Series"===f&&(null==y?void 0:y.length)&&e.push({title:"СезонÑ",value:H()}),O()&&e.push({title:"ÐлиÑелÑноÑÑÑ",value:O()}),w&&e.push({title:"ÐÑигиналÑное название",value:w}),e},i=u?[...t(),...e()]:t(),o=u?[]:e(),s=i.length>P||o.length>P,r=i.length+o.length;return{leftSideData:i,rightSideData:o,showMoreButton:s,totalCount:r}},[u,g]);return(0,a.useEffect)(()=>{v(c)},[g,c]),W.totalCount>0?(0,o.jsxs)("div",{className:z()(eh().wrapper,{[eh().product_holod]:D,[eh().product_oldskul]:E}),children:[(0,o.jsxs)("div",{className:eh().content,children:[W.leftSideData.length>0?(0,o.jsx)("div",{className:eh().content__col,children:W.leftSideData.slice(0,I).map((t,e)=>(0,o.jsx)(em,{item:t},e))}):null,W.rightSideData.length>0?(0,o.jsx)("div",{className:eh().content__col,children:W.rightSideData.slice(0,I).map((t,e)=>(0,o.jsx)(em,{item:t},e))}):null]}),W.showMoreButton&&!d?(0,o.jsxs)("div",{className:eh().more,onClick:()=>{v(t=>!t)},children:[(0,o.jsx)("span",{className:eh().more__text,children:m?"СкÑÑÑÑ":"ÐоказаÑÑ ÐµÑÑ"}),(0,o.jsx)(ti(),{className:z()({[eh()["more-rotated"]]:m}),src:"/static/images/product/arrow-down.svg",loader:_.R2,width:24,height:24,alt:"arrow"})]}):null]}):null});var eg=i(38773),eb=i.n(eg),ek=i(97662),ef=i.n(ek),ex=i(9338),ey=i.n(ex),ew=i(74888),eT=i.n(ew),eS=i(17737),ej=i.n(eS);let eC=t=>{let{rating_start:e,productTypeText:i,documentClientWidth:s,nojs:r,like:a,dislike:n,getLikeOrDislike:_,ratingDescriptionText:d}=t,p=(0,l.d4)(t=>t.systemInformation.windowInnerWidth)>c.xW.TABLET_WIDE;return(0,o.jsxs)("div",{className:ej().rating,children:[(0,o.jsx)("h3",{children:"РейÑинг"}),(0,o.jsxs)("div",{className:ej().rating__wrap,children:[(0,o.jsxs)("div",{className:ej().rating__meter,"data-rating-state":a?"like":n?"dislike":"default",children:[(0,o.jsx)("img",{className:ej().rating__meterBase,src:"/static/images/product/customizations/rating_meter_heart.png",alt:"",width:460,height:264}),(0,o.jsx)("img",{className:ej().rating__meterArrow,src:"/static/images/product/customizations/rating_arrow.png",alt:"",width:700,height:360})]}),(0,o.jsxs)("div",{className:ej().rating__content,children:[(0,o.jsxs)("div",{className:ej().rating__block,children:[e>0&&(0,o.jsx)("h2",{className:ej().rating__value,children:null==e?void 0:e.toFixed(1)}),(0,o.jsxs)("div",{className:ej().rating__text,children:[(0,o.jsxs)("span",{className:ej().rating__title,children:["Ðак вам ",i,"?"]}),(0,o.jsx)("span",{className:ej().rating__subtitle,children:d(s)})]})]}),r?null:(0,o.jsxs)("div",{className:ej().rating__buttons,children:[(0,o.jsx)(to.$n,{"data-button-active":a,iconLeft:(0,o.jsx)("img",{src:"/static/images/product/customizations/like_icon.svg",alt:"like",width:20,height:20}),size:p?to.GO.MEDIUM:to.GO.REGULAR,title:p&&"ÐÑавиÑÑÑ",fullWidth:p,variant:to.Vt.SECONDARY,titleClassName:ej().rating__button_title,onClick:()=>_("like")}),(0,o.jsx)(to.$n,{"data-button-active":n,iconLeft:(0,o.jsx)("img",{src:"/static/images/product/customizations/dislike_icon.svg",alt:"dislike",width:24,height:24}),size:p?to.GO.MEDIUM:to.GO.REGULAR,title:p&&"Ðе нÑавиÑÑÑ",fullWidth:p,variant:to.Vt.SECONDARY,titleClassName:ej().rating__button_title,iconSize:250,onClick:()=>_("dislike")})]})]})]})]})},eB=t=>{let{rating_start:e,productTypeText:i,documentClientWidth:s,nojs:r,like:a,dislike:n,getLikeOrDislike:_,ratingDescriptionText:d}=t,p=(0,l.d4)(t=>t.systemInformation.windowInnerWidth)>c.xW.TABLET_WIDE;return(0,o.jsxs)("div",{className:eb()["product__description-rating"],children:[(0,o.jsx)("h3",{children:"РейÑинг"}),(0,o.jsxs)("div",{className:eb()["product__description-rating-block-wrap"],children:[(0,o.jsxs)("div",{className:eb()["product__description-rating-block"],children:[e>0&&(0,o.jsx)("h2",{className:eb()["product__description-rating-rating"],children:null==e?void 0:e.toFixed(1)}),(0,o.jsxs)("div",{className:eb()["product__description-rating-text"],children:[(0,o.jsxs)("span",{className:eb()["product__description-rating-text-title"],children:["Ðак вам ",i,"?"]}),(0,o.jsx)("span",{className:eb()["product__description-rating-text-title-2"],
1children:d(s)})]})]}),r?null:(0,o.jsxs)("div",{className:eb()["product__description-rating-buttons"],children:[(0,o.jsx)(to.$n,{iconLeft:(0,o.jsx)("img",{src:"/static/images/product/".concat(a?"like-active":"like",".svg"),alt:"like",width:20,height:20}),size:p?to.GO.MEDIUM:to.GO.REGULAR,title:p&&"ÐÑавиÑÑÑ",fullWidth:p,variant:to.Vt.SECONDARY,titleClassName:eb()["product__description-rating-buttons__button_title"],onClick:()=>_("like")}),(0,o.jsx)(to.$n,{iconLeft:(0,o.jsx)("img",{src:"/static/images/product/".concat(n?"dislike-active":"dislike",".svg"),alt:"dislike",width:20,height:20}),size:p?to.GO.MEDIUM:to.GO.REGULAR,title:p&&"Ðе нÑавиÑÑÑ",fullWidth:p,variant:to.Vt.SECONDARY,titleClassName:eb()["product__description-rating-buttons__button_title"],iconSize:p?200:250,onClick:()=>_("dislike")})]})]})]})},eN=t=>{let{rating_start:e,productTypeText:i,documentClientWidth:s,nojs:r,like:a,dislike:n,getLikeOrDislike:_,ratingDescriptionText:d}=t,p=a||n?"broken":"unbroken",u=(0,l.d4)(t=>t.systemInformation.windowInnerWidth)>c.xW.TABLET_WIDE;return(0,o.jsxs)("div",{className:z()(eb()["product__description-rating"],ey().rating),children:[(0,o.jsx)("h3",{children:"РейÑинг"}),(0,o.jsxs)("div",{className:z()(eb()["product__description-rating-block-wrap"],ey().rating__wrap),children:[(0,o.jsxs)("div",{className:eb()["product__description-rating-block"],children:[e>0&&(0,o.jsx)("h2",{className:eb()["product__description-rating-rating"],children:null==e?void 0:e.toFixed(1)}),(0,o.jsxs)("div",{className:eb()["product__description-rating-text"],children:[(0,o.jsxs)("span",{className:eb()["product__description-rating-text-title"],children:["Ðак вам ",i,"?"]}),(0,o.jsx)("span",{className:eb()["product__description-rating-text-title-2"],children:d(s)})]})]}),r?null:(0,o.jsxs)("div",{className:ey().rating__buttons,children:[(0,o.jsx)(to.$n,{"data-button-active":a,iconLeft:(0,o.jsx)("img",{src:"/static/images/product/".concat(a?"like-active":"like",".svg"),alt:"like",width:20,height:20}),size:u?to.GO.MEDIUM:to.GO.REGULAR,title:u&&"ÐÑавиÑÑÑ",fullWidth:u,variant:to.Vt.TERTIARY,iconSize:u?200:250,onClick:()=>_("like"),titleClassName:ey().rating__button_title}),(0,o.jsx)(to.$n,{"data-button-active":n,iconLeft:(0,o.jsx)("img",{src:"/static/images/product/".concat(n?"dislike-active":"dislike",".svg"),alt:"dislike",width:20,height:20}),size:u?to.GO.MEDIUM:to.GO.REGULAR,title:u&&"Ðе нÑавиÑÑÑ",fullWidth:u,variant:to.Vt.SECONDARY,iconSize:u?200:250,onClick:()=>_("dislike"),titleClassName:ey().rating__button_title})]})]}),(0,o.jsx)("img",{className:ey().rating__state,src:"/static/images/product/customizations/holod/".concat(p,".webp"),alt:"",width:450,height:450})]})},eP=t=>{let{rating_start:e,productTypeText:i,documentClientWidth:s,nojs:r,like:a,dislike:n,getLikeOrDislike:_,ratingDescriptionText:d}=t,p=a?"like":n?"dislike":"default",u=(0,l.d4)(t=>t.systemInformation.windowInnerWidth)>c.xW.TABLET_WIDE;return(0,o.jsx)("div",{className:eT().rating,children:(0,o.jsxs)("div",{className:eT().rating__wrap,children:[(0,o.jsx)("div",{className:eT().rating__image,children:(0,o.jsx)("img",{src:{default:"/static/images/product/customizations/oldskul/default.webp",like:"/static/images/product/customizations/oldskul/like.webp",dislike:"/static/images/product/customizations/oldskul/dislike.webp"}[p],alt:"",width:450,height:348})}),(0,o.jsxs)("div",{className:eT().rating__content,children:[(0,o.jsxs)("div",{className:eT().rating__block,children:[e>0&&(0,o.jsx)("h2",{className:eT().rating__value,children:null==e?void 0:e.toFixed(1)}),(0,o.jsxs)("div",{className:eT().rating__text,children:[(0,o.jsxs)("span",{className:eT().rating__title,children:["Ðак вам ",i,"?"]}),(0,o.jsx)("span",{className:eT().rating__subtitle,children:d(s)})]})]}),r?null:(0,o.jsxs)("div",{className:eT().rating__buttons,children:[(0,o.jsx)(to.$n,{"data-button-active":a,iconLeft:(0,o.jsx)("img",{src:"/static/images/product/customizations/oldskul/rating_like".concat(a?"_active":"",".svg"),alt:"",width:17,height:15}),size:u?to.GO.MEDIUM:to.GO.REGULAR,title:u&&"ÐÑавиÑÑÑ",fullWidth:u,variant:to.Vt.SECONDARY,titleClassName:eT().rating__button_title,onClick:()=>_("like")}),(0,o.jsx)(to.$n,{"data-button-active":n,iconLeft:(0,o.jsx)("img",{src:"/static/images/product/customizations/oldskul/rating_dislike".concat(n?"_active":"",".svg"),alt:"",width:17,height:15}),size:u?to.GO.MEDIUM:to.GO.REGULAR,title:u&&"Ðе нÑавиÑÑÑ",fullWidth:u,variant:to.Vt.SECONDARY,titleClassName:eT().rating__button_title,onClick:()=>_("dislike")})]})]})]})})},eI=t=>{var e,i;let{movieData:s,nojs:r,like:a,dislike:n,getLikeOrDislike:c,ratingV
1ariant:_}=t,d=(0,l.d4)(t=>t.systemInformation.documentClientWidth),p=(0,l.d4)(t=>t.systemInformation.config),{is_preview:u,for_kids:h,rating_start:m,_cls:v}=s,g="Product.Movie"===v?"ÑилÑм":"ÑеÑиал",b=(null==p?void 0:null===(e=p.dobromer_rating)||void 0===e?void 0:e.is_active)===!0,k=Array.isArray(null==p?void 0:null===(i=p.dobromer_rating)||void 0===i?void 0:i.items)?p.dobromer_rating.items:[],f=_===ts.Qh.TSBR,x=_===ts.Qh.HOLOD,y=_===ts.Qh.OLDSKUL,w=t=>t<768?"":"ÐÑенки ÑлÑÑÑаÑÑ".concat(1024>t&&t<1350?" ваÑи":""," ÑекомендаÑии");return u?null:b&&(h||k.includes(null==s?void 0:s.uid))?(0,o.jsxs)("div",{className:ef().kind_main,children:[(0,o.jsxs)("div",{className:ef().kind_topBlock,children:[(0,o.jsxs)("div",{className:ef().kind_tileBlock,children:[(0,o.jsx)("h4",{className:ef().kind_title,children:"ÐобÑÐ¾Ð¼ÐµÑ Ð¾Ñ Ð§ÐµÐ±ÑÑаÑки"}),(0,o.jsxs)("span",{className:ef().kind_description,children:["Ðак вам ",g,"?"]})]}),m>0&&(0,o.jsx)("div",{"data-rating-green":m>=7,className:ef().kind_rating,children:null==m?void 0:m.toFixed(1)})]}),(0,o.jsxs)("div",{className:ef().kind_buttons,children:[(0,o.jsx)("button",{"data-button-active":a,onClick:()=>c("like"),className:ef().kind_likeButton,children:(0,o.jsx)("span",{className:ef().kind_buttons_title,children:"ÐобÑÑй"})}),(0,o.jsx)("button",{"data-button-active":n,onClick:()=>c("dislike"),className:ef().kind_dislikeButton,children:(0,o.jsx)("span",{className:ef().kind_buttons_title,children:"Ðе оÑенÑ"})})]})]}):f?(0,o.jsx)(eC,{rating_start:m,productTypeText:g,documentClientWidth:d,nojs:r,like:a,dislike:n,getLikeOrDislike:c,ratingDescriptionText:w}):x?(0,o.jsx)(eN,{rating_start:m,productTypeText:g,documentClientWidth:d,nojs:r,like:a,dislike:n,getLikeOrDislike:c,ratingDescriptionText:w}):y?(0,o.jsx)(eP,{rating_start:m,productTypeText:g,documentClientWidth:d,nojs:r,like:a,dislike:n,getLikeOrDislike:c,ratingDescriptionText:w}):(0,o.jsx)(eB,{rating_start:m,productTypeText:g,documentClientWidth:d,nojs:r,like:a,dislike:n,getLikeOrDislike:c,ratingDescriptionText:w})},eD={clickHouseShoot:m.Y3,fetchedProfileRatedContent:F.mq,toggleVisibleNoAuthLikePopup:v.xz,toggleVisiblePopup:v.TX,pushStackAddItem:tt.nD};class eA extends a.PureComponent{componentDidMount(){this.setState({isClient:!0,url:"".concat(window.location.href),nojs:!1}),r().events.on("routeChangeComplete",this.setUrl)}componentDidUpdate(t){let{showSkeleton:e}=this.state;if(t.movieData){let{_id:e}=t.movieData,{_id:i,uid:o}=this.props.movieData,{ratedContent:s}=this.props.profile,{visible:r}=this.state;if(i!==e){r&&this.setState({visible:!1});let t=null==s?void 0:s.find(t=>t.content_id===o);t?t.is_liked?this.setState({like:!0,dislike:!1}):this.setState({dislike:!0,like:!1}):this.setState({dislike:!1,like:!1})}}let{ratedContent:i}=this.props.profile,{uid:o}=this.props.movieData,{authData:s}=this.props.registration;if(!this.loadRatedContent&&(null==i?void 0:i.length)&&o){this.loadRatedContent=!0;let t=null==i?void 0:i.find(t=>t.content_id===o);t&&(t.is_liked?this.setState({like:!0,dislike:!1}):this.setState({dislike:!0,like:!1}))}if((null==s?void 0:s.virtual)===!1&&!this.loadAuth&&this.loadRatedContent){this.loadAuth=!0;let t=(0,_.Ri)("returnToProductUid"),e=(0,_.Ri)("returnToProductScore");t&&((0,_.Yj)("returnToProductUid"),(0,_.Yj)("returnToProductScore"),this.getLikeOrDislike(e,t))}e&&null!==s&&this.setState({showSkeleton:!1})}componentWillUnmount(){let{visible:t}=this.state;t&&this.setState({visible:!1}),r().events.off("routeChangeComplete",this.setUrl)}render(){let{movieData:t,season:e,bannerData:i,kidsProfile:s,streamMeta:r,isNewEpisodePage:l,episode:n,numbersOfAvailableSeasons:c}=this.props,{like:_,dislike:d,visible:p,nojs:u}=this.state,{config:h,documentClientWidth:m}=this.props.systemInformation,v=(0,ts.JP)({alias:null==t?void 0:t.alias,config:h}),g=(0,ts.MY)(v,ts.Qh.HOLOD),b=(0,ts.MY)(v,ts.Qh.OLDSKUL),k=b&&void 0!==m&&m>1024,f=t.seo&&t.seo.short_description||t.description,x=f,y=e&&e.split("-")[1];if(l&&(null==n?void 0:n.seo_text)&&!(null==n?void 0:n.announcement)&&(x=null==n?void 0:n.seo_text),y&&t.items&&t.items.length&&(!l||l&&!(null==n?void 0:n.seo_text))){let e=t.items.find(t=>t.num==y);x=e&&e.description||f}return(0,o.jsxs)(a.Fragment,{children:[(0,o.jsx)("div",{className:z()(eb().product__description,{[eb().product_holod]:g,[eb().product_oldskul]:b}),children:(0,o.jsxs)("div",{className:eb()["product__description-wrapper"],children:[(0,o.jsxs)("div",{className:eb()["product__description-left"],children:[x&&m>1024?(0,o.jsxs)("div",{className:eb()["product__description-wrap"],children:[(0,o.jsx)("h2",{className:eb()["product__description-title"],children:"ÐпиÑание"}),(0,o.jsxs)("div",{ref:this.descriptionTextRef,onScroll:this.showShadowTextTop,className:eb()["product__description__text-wrap"],children:[(0,o.jsx)("div",{className:eb()["product__description-text"],dangerouslySetInnerHTML:{__html:x}}),!b&&(0,o.jsx)("div",{className:eb()["product__description-shadow-bottom"]})]})]}):(null==x?void 0:x.length)<=240||p||!this.state.isClient?(0,o.jsxs)(o.Fragment,{children:[x&&(0,o.jsxs)("div",{className:eb()["product__description-wrap"],children:[(0,o.jsx)("h2",{className:eb()["product__description-title"],children:"ÐпиÑание"}),(0,o.jsx)("div",{className:eb()["product__description-text"],dangerouslySetInnerHTML:{__html:x}})]}),x&&x.length>240&&!u&&(0,o.jsxs)("div",{className:eb()["product__description-more"],onClick:this.handleClick,children:[(0,o.jsx)("div",{className:eb()["product__description-more_text"],children:"СвеÑнÑÑÑ"}),(0,o.jsx)("img",{src:"/static/images/product/arrow-down.svg",className:"".concat(eb()["product__description-more_img-rotate"]),alt:"arrow",width:24,height:24})]})]}):(0,o.jsxs)(a.Fragment,{children:[(0,o.jsxs)("div",{className:eb()["product__description-wrap"],children:[(0,o.jsx)("h2",{className:eb()["product__description-title"],children:"ÐпиÑание"}),(0,o.jsx)("div",{className:eb()["product__description-text"],dangerouslySetInnerHTML:{__html:this.takePart(x)}})]}),(0,o.jsxs)("div",{className:eb()["product__description-more"],onClick:this.handleClick,children:[(0,o.jsx)("div",{className:eb()["product__description-more_text"],children:"ÐоказаÑÑ ÐµÑÑ"}),(0,o.jsx)("img",{src:"/static/images/product/arrow-down.svg",alt:"arrow",width:24,height:24})]})]}),r&&(0,o.jsx)(ev,{movieData:t,kidsProfile:s,streamMeta:r,numbersOfAvailableSeasons:c,descriptionVariant:null==v?void 0:v.ratingVariant,defaultExpanded:k,hideExpandButton:k})]}),(0,o.jsx)("div",{className:eb()["product__description-right"],children:(0,o.jsx)(eI,{nojs:u,movieData:t,like:_,dislike:d,getLikeOrDislike:this.getLikeOrDislike,ratingVariant:null==v?void 0:v.ratingVariant})})]})}),i&&"description"===i.position&&(0,o.jsx)(t$.A,{bannerData:i,mov
1ieData:this.props.movieData})]})}constructor(...t){super(...t),this.state={url:"",like:!1,dislike:!1,visible:!1,liked:!1,isClient:!1,showSkeleton:!0,visibleTopTextShadow:!1,nojs:!0},this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.loadRatedContent=!1,this.descriptionTextRef=a.createRef(),this.takePart=t=>{let e=t.slice(0,240),i=t.substr(240);return" "!==i[0]&&(e+=i.split(" ")[0]),"".concat(e,"...")},this.setUrl=()=>{this.setState({url:"".concat(window.location.href)})},this.getLikeOrDislike=(t,e)=>{let{like:i,dislike:o,liked:s}=this.state;if("like"===t&&i||"dislike"===t&&o||s)return;let{authData:r}=this.props.registration;(null==r?void 0:r.virtual)||this.props.pushStackAddItem({text:"СпаÑибо! УÑÑÑм пÑи подбоÑе ÑекомендаÑий",onCloseCallback:()=>{this.setState({liked:!1})}}),this.setState({liked:!0},()=>{let{clickHouseData:i}=this.props.systemInformation,{_id:o,uid:s}=this.props.movieData,r={...i,action_id:"click",action_result:t,action_attributes_str:o,block_type:"block",block_attributes_id:"description",product_id:o,element_type:"button",element_attributes_id:t,event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,r);let{authData:a}=this.props.registration,{ratedContent:l}=this.props.profile;fetch("".concat(this.apiUrl).concat(n.PI.rateContent).concat(this.apiKey),{credentials:"include",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({profile_id:a.profile_id,content_id:e||s,like:"like"===t})}).then(i=>{if(i.status<400){let i=[...l];if("like"===t)i.push({content_id:e||s,is_liked:!0});else{let t=i.findIndex(t=>t.content_id===e||s);-1!==t&&i.splice(t,1)}this.props.fetchedProfileRatedContent(i),this.setState({dislike:"dislike"===t,like:"like"===t})}else 409===i.status&&i.json().then(e=>{"USER_IS_VIRTUAL"===e.code&&((0,_.TV)("returnToProductScore",t),this.props.toggleVisibleNoAuthLikePopup(!0),this.props.toggleVisiblePopup(!0),this.setState({liked:!1}))})})})},this.handleClick=()=>{let{clickHouseData:t}=this.props.systemInformation,{visible:e}=this.state;this.setState({visible:!e},()=>{let i={...t,action_id:"click",action_result:e?"hide":"open",block_type:"block",block_attributes_id:"description",product_id:this.props.movieData._id,element_type:"link",element_attributes_text:e?"СвеÑнÑÑÑ":"ÐоказаÑÑ ÐµÑÑ",element_attributes_id:e?"show_less":"show_more",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,i)})},this.showShadowTextTop=t=>{var e;let{visibleTopTextShadow:i}=this.state,o=(null==t?void 0:null===(e=t.target)||void 0===e?void 0:e.scrollTop)!==0;i!==o&&this.setState({visibleTopTextShadow:o})}}}let eE=(0,l.Ng)(t=>({registration:t.registration,systemInformation:t.systemInformation,toggle:t.toggle,profile:t.profile}),eD)(eA);var eR=i(51046),eL=i(10729),eM=i.n(eL);let eU={clickHouseShoot:m.Y3,initPlayer:m.kI,getPlayerData:O.o2,fetchedProfileRatedContent:F.mq,toggleVisibleNoAuthLikePopup:v.xz,toggleVisiblePopup:v.TX,pushStackAddItem:tt.nD};class eH extends a.Component{componentDidMount(){this.setState({url:"".concat(window.location.href)}),r().events.on("routeChangeComplete",this.setUrl)}componentDidUpdate(){let{authData:t}=this.props.registration;if(t&&!this.loadAuth&&(this.loadAuth=!0,(null==t?void 0:t.virtual)===!1)){let t=(0,_.Ri)("returnToProductUid"),e=(0,_.Ri)("returnToProductScore");t&&((0,_.Yj)("returnToProductUid"),(0,_.Yj)("returnToProductScore"),this.getLikeOrDislike(e,t))}let{ratedContent:e}=this.props.profile,{uid:i}=this.props.movieData;if((null==e?void 0:e.length)&&!this.loadRetedContent){this.loadRetedContent=!0;let t=null==e?void 0:e.find(t=>t.content_id===i);t&&(t.is_liked?this.setState({like:!0,dislike:!1}):this.setState({dislike:!0,like:!1}))}}componentWillUnmount(){let{visible:t}=this.state;t&&this.setState({visible:!1}),r().events.off("routeChangeComplete",this.setUrl)}render(){let{movieData:t,episode:e,seasonNum:i}=this.props,{authData:s}=this.props.registration,{visible:r,like:l,dislike:n,url:d,liked:p}=this.state,{currentProfile:u}=this.props.profile,h=Math.ceil(Math.ceil(e.duration/1e3)/60),m=e.announcement?t.items[i-1].description||t.description||"":e.seo_text||e.description||"";return(0,o.jsxs)("div",{className:"".concat(eM().product__episode," ").concat(ea()["product-block"]),children:[this.calcH1(t,e,i,s),(0,o.jsxs)("div",{className:"".concat(eM()["product__episode-wrapper"]),...e.free_for_authorized?{"data-testid":"free_for_authorized"}:!e.free_for_authorized&&e.packshot_free.image_15x?{"data-testid":"free"}:{},children:[(0,o.jsxs)("div",{className:"".concat(eM()["product__episode-left-section"]),children:[(0,o.jsxs)("div",{className:"".concat(eM()["product__episode-image"]),children:[u?(null==s?void 0:s.virtual)===!1&&s&&s.subscriptions&&s.subscriptions.length>0||!e.packshot_free.image_15x?e.packshot.image_15x?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("img",{src:this.handleImageSource("".concat(this.apiUrl).concat(e.packshot.image_15x)),alt:"".concat(e.title," ").concat(t.title," ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½"),onError:this.handleErrorImage}
1),(0,o.jsx)("link",{itemProp:"contentUrl",href:this.handleImageSource("".concat(this.apiUrl).concat(e.packshot.image_15x))})]}):(0,o.jsx)("img",{src:"/static/images/product/trailer-default.svg",alt:"Start лого"}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("link",{itemProp:"contentUrl",href:this.handleImageSource("".concat(this.apiUrl).concat(e.packshot.image_15x))}),(0,o.jsx)("img",{src:this.handleImageSource("".concat(this.apiUrl).concat(e.packshot_free.image_15x)),alt:"".concat(e.title," ").concat(t.title," ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½"),onError:this.handleErrorImage})]}):null,!e.announcement&&!e.unavailable_by_geo&&(0,o.jsx)("img",{src:"/static/images/product/small-play.svg",className:eM()["product__episode-play"],onClick:()=>this.initSeasonPlayer(e.num,e.title,e.announcement,e,i),alt:"play"}),e.unavailable_by_geo&&s&&(0,o.jsxs)("div",{className:eM()["product__episode-unavailable"],children:[(0,o.jsx)("img",{src:"/static/images/product/globe.svg"}),(0,o.jsx)("div",{className:eM()["product__episode-unavailable-title"],children:"ÐонÑÐµÐ½Ñ Ð½ÐµÐ´Ð¾ÑÑÑпен в ваÑей ÑÑÑане"}),(0,o.jsx)("div",{className:eM()["product__episode-unavailable-desc"],children:"ÐÑли вклÑÑен VPN, оÑклÑÑиÑе его\xa0и\xa0обновиÑе ÑÑÑаниÑÑ"})]})]}),(0,o.jsxs)("div",{className:"".concat(eM()["product__episode-info"]),children:[(0,o.jsx)("div",{className:"".concat(eM()["product__episode-title"]),children:(0,o.jsx)("span",{children:e.title})}),e.duration?(0,o.jsx)("div",{className:"".concat(eM()["product__episode-duration"]),children:(0,o.jsxs)("span",{children:[" ",(0,o.jsxs)("span",{children:[" ",(0,_._9)(h)]})]})}):null]}),m?m.length<=280||r?(0,o.jsxs)(a.Fragment,{children:[(0,o.jsx)("div",{className:"".concat(eM()["product__episode-description"]),dangerouslySetInnerHTML:{__html:m}}),m.length>280?(0,o.jsxs)("div",{className:eM()["product__episode-more"],onClick:this.handleClick,children:[(0,o.jsx)("div",{className:eM()["product__episode-more_text"],children:"СвеÑнÑÑÑ"}),(0,o.jsx)("img",{src:"/static/images/product/arrow-down.svg",className:"".concat(eM()["product__episode-more_image"]," ").concat(eM().rotate),alt:"arrow"})]}):null]}):(0,o.jsxs)(a.Fragment,{children:[(0,o.jsx)("div",{className:"".concat(eM()["product__episode-description"]),dangerouslySetInnerHTML:{__html:(0,c.IN)(280,m)}}),m.length>280?(0,o.jsxs)("div",{className:eM()["product__episode-more"],onClick:this.handleClick,children:[(0,o.jsx)("div",{className:eM()["product__episode-more_text"],children:"ÐоказаÑÑ ÐµÑÑ"}),(0,o.jsx)("img",{src:"/static/images/product/arrow-down.svg",className:"".concat(eM()["product__episode-more_image"]),alt:"arrow"})]}):null]}):(0,o.jsx)("div",{className:"".concat(eM()["product__episode-description"]),dangerouslySetInnerHTML:{__html:t.quote}})]}),(0,o.jsxs)("div",{className:"".concat(eM()["product__episode-right-section"]),children:[(0,o.jsxs)("div",{className:eM()["product__episode-like"],children:[(0,o.jsx)("div",{className:"".concat(eM()["product__episode-up"]," ").concat(n?eM().disabled:""),onClick:()=>this.getLikeOrDislike("like"),children:(0,o.jsx)("img",{src:"/static/images/product/".concat(l?"like-active":"like",".svg "),alt:"like"})}),(0,o.jsx)("div",{className:"".concat(eM()["product__episode-down"]," ").concat(l?eM().disabled:""),onClick:()=>this.getLikeOrDislike("dislike"),children:(0,o.jsx)("img",{src:"/static/images/product/".concat(n?"dislike-active":"dislike",".svg"),alt:"dislike"})})]}),(0,o.jsxs)("div",{className:"".concat(eM()["product__episode-share"]),children:["ÐоделиÑÑÑÑ:"," ",(0,o.jsxs)("div",{className:"".concat(eM()["product__episode-social"]),children:[(0,o.jsx)(eR.rx,{url:d,title:e.title,image:"".concat(this.apiUrl).concat(t.background.image_15x),className:"".concat(eM()["product__episode-social_ico"]),onShareWindowClose:()=>this.afterShare("share_vk"),children:(0,o.jsx)(eR.Hu,{size:36,round:!0})}),(0,o.jsx)(eR.AC,{url:d,image:"".concat(this.apiUrl).concat(t.background.image_15x),className:"".concat(eM()["product__episode-social_ico"]),onShareWindowClose:()=>this.afterShare("share_ok"),children:(0,o.jsx)(eR.uH,{size:36,round:!0})})]})]})]})]})]})}constructor(...t){super(...t),this.state={url:"",like:!1,dislike:!1,visible:!1,liked:!1}
1,this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.loadAuth=!1,this.loadRetedContent=!1,this.setUrl=()=>{this.setState({url:"".concat(window.location.href)})},this.initSeasonPlayer=(t,e,i,o,s)=>{let{clickHouseData:r}=this.props.systemInformation,{_id:a,alias:l,playback_options:n,rating_age:c}=this.props.movieData,{episode:_}=this.props,d={...r,action_id:"click",block_type:"block",block_attributes_id:"season-".concat(s+1),element_type:"button",element_attributes_id:"play",element_attributes_index:t+1,product_id:a,content_id:o.uid,content_type:o._cls,event_time:new Date().getTime()};if(this.props.clickHouseShoot(this.apiUrl,this.apiKey,d),i)return!1;this.setState({videoTitle:e},()=>{var i,s;this.props.initPlayer({type:"Episode",init:!0,index:t});let r={movieUrl:"/web/watch/".concat(l),movieTitle:e,isTrailer:!1,movieId:a,playback:_&&_.playback_options||n,similar:this.props.similar,uid:o.uid,rating_age:_.rating_age||c,containsMeta:!!(null===(i=o.restrictions)||void 0===i?void 0:i.find(t=>"ContainsMeta"===t.id)),containsSmoking:!!(null===(s=o.restrictions)||void 0===s?void 0:s.find(t=>"ContainsSmoking"===t.id))};this.props.getPlayerData(r)})},this.handleImageSource=(t,e)=>{let{deviceData:i}=this.props.systemInformation;return t&&i?(0,_.bZ)(t,"736x374"):"/static/images/product/trailer-default.svg"},this.handleClick=()=>{let{clickHouseData:t}=this.props.systemInformation,{visible:e}=this.state;this.setState({visible:!e},()=>{let i={...t,action_id:"click",action_result:e?"hide":"open",block_type:"block",block_attributes_id:"description",product_id:this.props.movieData._id,element_type:"link",element_attributes_text:e?"СвеÑнÑÑÑ":"ÐоказаÑÑ ÐµÑÑ",element_attributes_id:e?"show_less":"show_more",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,i)})},this.afterShare=t=>{let{clickHouseData:e}=this.props.systemInformation,i={...e,action_id:"click",block_type:"block",block_attributes_id:"description",product_id:this.props.movieData._id,element_type:"button",element_attributes_id:t,event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,i)},this.getLikeOrDislike=(t,e)=>{let{like:i,dislike:o,liked:s}=this.state;"like"===t&&i||"dislike"===t&&o||s||(this.props.pushStackAddItem({text:"СпаÑибо! УÑÑÑм пÑи подбоÑе ÑекомендаÑий"}),this.setState({liked:!0},()=>{let{clickHouseData:i}=this.props.systemInformation,{_id:o,uid:s}=this.props.movieData,r={...i,action_id:"click",action_result:t,action_attributes_str:o,block_type:"block",block_attributes_id:"description",product_id:o,element_type:"button",element_attributes_id:t,event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,r);let{authData:a}=this.props.registration,{ratedContent:l}=this.props.profile;fetch("".concat(this.apiUrl).concat(n.PI.rateContent).concat(this.apiKey),{credentials:"include",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({profile_id:a.profile_id,content_id:e||s,like:"like"===t})}).then(i=>{if(i.status<400){let i=[...l];if("like"===t)i.push({content_id:e||s,is_liked:!0});else{let t=i.findIndex(t=>t.content_id===e||s);-1!==t&&i.splice(t,1)}this.props.fetchedProfileRatedContent(i),this.setState({dislike:"dislike"===t,like:"like"===t})}else 409===i.status&&i.json().then(e=>{"USER_IS_VIRTUAL"===e.code&&((0,_.TV)("returnToProductScore",t),this.props.toggleVisibleNoAuthLikePopup(!0),this.props.toggleVisiblePopup(!0),this.setState({liked:!1}))})})}))},this.handleErrorImage=t=>{t.target.src="/static/images/product/trailer-default.svg"},this.calcH1=(t,e,i,s)=>(0,o.jsx)("h1",{children:"".concat(t.title,": ").concat(i," Ñезон - ").concat(e.title," ").concat(s&&(null==s?void 0:s.virtual)!==!0?"":"ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½")})}}let eO=(0,l.Ng)(t=>({registration:t.registration,systemInformation:t.systemInformation,profile:t.profile}),eU)(eH);var eF=i(79831),eW=i(39608),eK=i(16571),eV=i.n(eK),ez=i(2771),eY=i.n(ez);let eG=(0,a.memo)(t=>{var e;let{card:i,position:s,noJs:r,alias:n,onPosterClick:c,onLinkClick:d,onVisibilityChange:p,geoUnavailable:u}=t,h=(0,Q.A)(),[m,v]=(0,a.useState)(!1),g=(0,l.d4)(t=>t.systemInformation.renderMobile),{ref:b}
1=(0,tz.Wx)({onChange:t=>{p({id:i.uid,position:s+1},t)},triggerOnce:!1,threshold:.9});return(0,o.jsx)("div",{ref:b,className:eY().wrapper,children:(0,o.jsxs)("div",{className:eY().card,children:[(0,o.jsxs)("div",{onClick:()=>{if(u)return;let{title:t,video_src:e,restrictions:o,uid:r}=i;c({title:t,video_src:e,index:s,restrictions:o,uid:r})},className:eY().poster,children:[!m&&!r&&(0,o.jsx)(tO.A,{className:eY().skeleton}),(0,o.jsx)(tM.A,{className:eY().poster__image,src:(t=>t?"".concat(h).concat((0,_.bZ)(t,g?"333x188":"471x266",85)):"/static/images/V2/preview-no-poster-horizontal.webp")(null===(e=i.packshot)||void 0===e?void 0:e.image_15x),width:g?222:314,height:g?125:177,onLoad:()=>v(!0),onError:()=>v(!1)}),!r&&!u&&(0,o.jsx)("img",{className:eY().poster__play,src:"/static/images/product/button-play.svg",alt:"play","data-testid":"extra_play"})]}),(0,o.jsx)("div",{className:eY().text,children:(0,o.jsx)(tA(),{prefetch:!1,href:"/watch/".concat(n,"/extras/").concat(i.start_id),onClick:()=>{d({title:i.title,index:s})},"data-testid":"extra_link",children:(0,o.jsx)("span",{className:eY().title,children:null==i?void 0:i.title})})}),(null==i?void 0:i.description)?(0,o.jsx)("div",{className:eY().description,children:null==i?void 0:i.description}):null]})})}),eJ=t=>{let{sliderList:e,alias:i,onPosterClick:s,onCardLinkClick:r,movieData:n,onVisibilityCardChange:d,onArrowClick:p}=t,[u,h]=(0,a.useState)(!1),[m,v]=(0,a.useState)(!0),g=(0,l.d4)(t=>t.systemInformation.documentClientWidth),b=t=>{if(t){if(t>c.U8){let e=(0,_.$J)(56,t);return{paddingRight:e,paddingLeft:e}}return t>c.af?{paddingRight:56,paddingLeft:56}:{paddingRight:24,paddingLeft:24}}},k=(0,a.useMemo)(()=>b(g),[g]);return(0,a.useEffect)(()=>{v(!1)},[]),(0,o.jsx)("div",{className:eV().wrapper,onMouseOver:()=>h(!0),onMouseOut:()=>h(!1),onFocus:()=>h(!0),onBlur:()=>h(!1),children:(0,o.jsx)(tE.A,{wrapperStyles:k,widthCard:{desktop:314,mobile:222},heightCard:{desktop:200,mobile:243},active:u,alias:i,items:e,items_total:e&&(null==e?void 0:e.length),arrowClick:p,cardIdent:16,isProduct:!0,children:(0,o.jsx)("div",{className:eV().items_wrap,children:null==e?void 0:e.map((t,e)=>(0,o.jsx)(eG,{card:t,noJs:m,position:e,alias:n.alias,onPosterClick:s,onLinkClick:r,onVisibilityChange:d,geoUnavailable:n.unavailable_by_geo},"extra-".concat(e,"-").concat(t.uid)))})})})};var eq=i(13653),eZ=i(72859),eQ=i(2509),eX=i.n(eQ);let e$="/static/images/V2/preview-no-poster-horizontal.webp",e0={[c._.DESKTOP_WIDE]:{width:386,height:217},[c._.DESKTOP]:{width:386,height:217},[c._.TABLET_WIDE]:{width:318,height:167},[c._.MOBILE]:{width:296,height:167}},e1=t=>{var e;let{alias:i,card:s,index:r,onPosterClick:l,onLinkClick:n,geoUnavailable:c}=t,d=(0,eZ.A)(),p=(0,eq.A)({img:null===(e=s.packshot)||void 0===e?void 0:e.image_15x,imgStub:e$,width:e0[d].width,height:e0[d].height}),[u,h]=(0,a.useState)(!0),m=()=>{h(!1)};return(0,o.jsxs)("div",{className:eX().item,children:[u&&(0,o.jsx)(tO.A,{className:eX().skeleton}),(0,o.jsxs)("div",{className:eX().content,"data-testid":"extras-card_content_".concat(r+1),children:[(0,o.jsx)("div",{className:eX().poster,onClick:()=>{c||l({title:s.title,video_src:s.video_src,index:r,restrictions:s.restrictions,uid:s.uid})},children:(0,o.jsxs)("div",{className:eX().posterWrapper,children:[(0,o.jsx)(ti(),{ref:t=>(0,_.$R)(t,!u,m),className:eX().posterImage,loader:_.R2,src:p,blurDataURL:e$,alt:"poster",fill:!0}),!c&&(0,o.jsx)("img",{className:eX().play,src:"/static/images/product/button-play.svg",alt:"play","data-testid":"extra_card_play"})]})}),(0,o.jsxs)(tA(),{prefetch:!1,href:"/watch/".concat(i,"/extras/").concat(s.start_id),onClick:()=>{n({title:s.title,index:r})},className:eX().info,"data-testid":"extra_card_link",children:[(0,o.jsx)("h3",{className:eX().title,children:s.title}),(0,o.jsx)("p",{className:eX().description,children:s.description})]})]})]})};var e2=i(26601),e4=i.n(e2);let e3=t=>{let{movieData:e,page:i,episode:c,similar:d,lineIdx:p}=t,u=(0,l.wA)(),h=(0,X.A)(),m=(0,Q.A)(),g=(0,Z.A)(),{paymentRedirect:b}=(0,eF.u)(),k=(0,l.d4)(t=>t.systemInformation.configExps),f=(0,l.d4)(t=>t.registration.authData),x=(0,l.d4)(t=>
1t.registration.tariffs),y=(0,l.d4)(t=>t.profile.pendingSubscription),w=(0,l.d4)(t=>t.profile.childProfile),T=(0,s.useRouter)(),S=(0,a.useRef)(null),j=!i||"seasons"===i||"episode"===i,C=async t=>{var i,o,s;let{title:a,video_src:l,index:c,restrictions:p,uid:h}=t;if(B({title:a,index:c}),w&&await (0,tm.j)({apiUrl:m,apiKey:g})){u((0,v.bL)({visible:!0}));return}let{show:T,type:S}=(0,th.g5)(f,y);if(T)u((0,v.gb)({visible:!0,type:S}));else if(null==f?void 0:f.virtual)r().push("/auth");else if(null===(i=f.subscriptions)||void 0===i?void 0:i.length){let t={movieUrl:"/web/watch/".concat(e.alias),movieTitle:a,isTrailer:!0,isPageTrailer:!0,isExtras:!0,movieId:e._id,uid:e.uid,trailerSrc:l,playback:e.playback_options,similar:d,announce:e.is_preview||e.is_disabled,additional_content:!0,rating_age:e.rating_age,containsMeta:!!(null==p?void 0:p.find(t=>"ContainsMeta"===t.id)),containsSmoking:!!(null==p?void 0:p.find(t=>"ContainsSmoking"===t.id)),promoData:{cls:"Promo",uid:h,title:a,promoting_content:{id:e._id,uid:e.uid,cls:e._cls,alias:e.alias}}};u((0,O.o2)(t))}else if(null==x?void 0:x.length){let t=null===(o=x[0])||void 0===o?void 0:o.url;t?b({tariffUrl:t,showTarifficator:!0}):console.error(">>> no default traiff")}else{let t=(null==f?void 0:null===(s=f.ab)||void 0===s?void 0:s.length)&&(null==f?void 0:f.current_country_code)==="RU"&&k.length?(0,_.zS)(f.ab,k):"";fetch("".concat(m).concat(n.PI.getTariffs).concat(g).concat(t),{credentials:"include"}).then(t=>{t.status<400?t.json().then(t=>{var e;u((0,tG.ZI)(t)),b({tariffUrl:null===(e=t[0])||void 0===e?void 0:e.url,showTarifficator:!0})}):console.error(">>> no default traiff")})}},B=t=>{let{title:i,index:o}=t;h({action_id:"click",block_type:"collection",block_attributes_id:"fof",product_id:e.uid,content_id:j&&c?null==c?void 0:c.uid:e.uid,content_type:e._cls,element_type:"product",element_attributes_id:e.alias,element_attributes_text:i,element_attributes_index:o+1,block_attributes_index:j?p:1})},N=(0,eW.$)(t=>{h({action_id:"collection_view",action_result:t.map(t=>t.position),action_attributes_num:p,action_attributes_str:t.map(t=>t.id),product_id:e.uid,content_id:c?null==c?void 0:c.uid:e.uid,content_type:e._cls,block_type:"collection",block_attributes_id:"fof",block_attributes_index:p})}),P=()=>{var t,i;let o=null===(t=T.query.params)||void 0===t?void 0:t[1],s=null===(i=T.query.params)||void 0===i?void 0:i[0];h({action_id:"click",screen_type:"product",screen_attributes_id:"".concat(s,"/extrtas"),product_id:e.uid,content_id:(()=>{if(!e.items||!o)return e.uid;if(isNaN(o)){let t=null==o?void 0:o.split("-")[1],i=null==e?void 0:e.items[t-1];return(null==i?void 0:i.uid)||null}{let t=null;return null==e||e.items.map(e=>{var i;let s=(null===(i=e.items)||void 0===i?void 0:i.length)&&(null==e?void 0:e.items.find(t=>t.start_id==o));s&&(t=(null==s?void 0:s.uid)||null)}),t}})(),content_type:e._cls,block_type:"collection",block_attributes_id:"fof",block_attributes_index:p,element_type:"link",element_attributes_id:"extras",element_attributes_text:"ÐополниÑелÑнÑе маÑеÑиалÑ"})};return(0,o.jsx)(o.Fragment,{children:j?(0,o.jsxs)("div",{ref:S,className:e4().productContainer,children:[(0,o.jsx)("div",{className:e4().header,children:(0,o.jsx)(tA(),{href:"/watch/".concat(e.alias,"/extras"),prefetch:!1,"data-testid":"extras_link",children:(0,o.jsx)("h2",{className:z()(ea().product__linked,e4().productTitle),onClick:()=>P(),"data-testid":"extras_product_title",children:(0,o.jsx)("span",{children:"ÐополниÑелÑнÑе маÑеÑиалÑ"})})})}),(0,o.jsx)(eJ,{sliderList:e.promo_content,alias:"extras",movieData:e,onCardLinkClick:B,onPosterClick:C,onVisibilityCardChange:N,onArrowClick:t=>{h({action_id:"click",block_type:"collection",block_attributes_id:"fof",product_id:e.uid,content_id:c?null==c?void 0:c.uid:e.uid,content_type:e._cls,element_type:"button",element_attributes_id:t?"arrow_right":"arrow_left",block_attributes_index:p})}})]}):(0,o.jsxs)("div",{className:e4().container,children:[(0,o.jsx)("h2",{className:e4().title,"data-testid":"extras_title",children:"".concat(e.title," â ÐополниÑелÑнÑе маÑеÑиалÑ")}),(0,o.jsx)("div",{className:e4().list,children:e.promo_content.map((t,i)=>(0,o.jsx)(e1,{index:i,alias:e.alias,card:t,onPosterClick:C,onLinkClick:B,geoUnavailable:e.unavailable_by_geo},t.uid))})]})})};var e5=i(5425),e6=i.n(e5);let e7="/static/images/V2/preview-no-poster-horizontal.webp",e8={[c._.DESKTOP_WIDE]:{width:652,height:367},[c._.DESKTOP]:{width:652,height:367},[c._.TABLET_WIDE]:{width:720,height:405},[c._.MOBILE]:{width:327,height:184}},e9=t=>{var e;let{movieData:i,extra:s,similar:c}=t,d=(0,l.wA)(),p=(0,X.A)(),u=(0,eZ.A)(),h=(0,eq.A)({img:null===(e=s.packshot)||void 0===e?void 0:e.image_15x,imgStub:e7,width:e8[u].width,height:e8[u].height}),m=(0,Q.A)(),g=(0,Z.A)(),{paymentRedirect:b}=(0,eF.u)(),k=(0,l.d4)(t=>t.systemInformation.configExps),f=(0,l.d4)(t=>t.registration.authData),x=(0,l.d4)(t=>
1t.registration.tariffs),y=(0,l.d4)(t=>t.profile.childProfile),[w,T]=(0,a.useState)(!0),S=null==i?void 0:i.promo_content.filter(t=>t.uid!==s.uid),j=()=>{T(!1)},C=t=>{var e,o,s;let{title:a,video_src:l,restrictions:p,uid:u}=t;if(null==f?void 0:f.virtual)r().push("/auth");else if(null===(e=f.subscriptions)||void 0===e?void 0:e.length){let t={movieUrl:"/web/watch/".concat(i.alias),movieTitle:a,isTrailer:!0,isPageTrailer:!0,isExtras:!0,movieId:i._id,uid:i.uid,trailerSrc:l,playback:i.playback_options,similar:c,announce:i.is_preview||i.is_disabled,additional_content:!0,rating_age:i.rating_age,containsMeta:!!(null==p?void 0:p.find(t=>"ContainsMeta"===t.id)),containsSmoking:!!(null==p?void 0:p.find(t=>"ContainsSmoking"===t.id)),promoData:{cls:"Promo",uid:u,title:a,promoting_content:{id:i._id,uid:i.uid,cls:i._cls,alias:i.alias}}};d((0,O.o2)(t))}else if(null==x?void 0:x.length){let t=null===(o=x[0])||void 0===o?void 0:o.url;t?b({tariffUrl:t,showTarifficator:!0}):console.error(">>> no default traiff")}else{let t=(null==f?void 0:null===(s=f.ab)||void 0===s?void 0:s.length)&&(null==f?void 0:f.current_country_code)==="RU"&&k.length?(0,_.zS)(f.ab,k):"";fetch("".concat(m).concat(n.PI.getTariffs).concat(g).concat(t),{credentials:"include"}).then(t=>{t.status<400?t.json().then(t=>{var e;d((0,tG.ZI)(t)),b({tariffUrl:null===(e=t[0])||void 0===e?void 0:e.url,showTarifficator:!0})}):console.error(">>> no default traiff")})}},B=t=>{let{title:e,index:o}=t;p({action_id:"click",block_type:"collection",block_attributes_id:"fof",product_id:i.uid,content_id:i.uid,content_type:i._cls,element_type:"product",element_attributes_id:i.alias,element_attributes_text:e,element_attributes_index:"number"==typeof o?o+1:null})},N=async()=>{if(B({title:s.title}),y&&await (0,tm.j)({apiUrl:m,apiKey:g})){d((0,v.bL)({visible:!0}));return}i.unavailable_by_geo||C({title:s.title,video_src:s.video_src,restrictions:s.restrictions,uid:s.uid})},P=async t=>{let{title:e,video_src:o,index:s,restrictions:r,uid:a}=t;if(B({title:e,index:s}),y&&await (0,tm.j)({apiUrl:m,apiKey:g})){d((0,v.bL)({visible:!0}));return}i.unavailable_by_geo||C({title:e,video_src:o,restrictions:r,uid:a})};return i?(0,o.jsxs)("div",{className:e6().wrapper,children:[(0,o.jsxs)("section",{className:e6().content,children:[(0,o.jsxs)("div",{className:e6().info,children:[(0,o.jsx)("h1",{children:"".concat(null==i?void 0:i.title," â ÐополниÑелÑнÑе маÑеÑиалÑ")}),(0,o.jsxs)("div",{className:e6().meta,children:[(0,o.jsx)("h3",{className:e6().title,children:s.title}),(0,o.jsx)("p",{className:e6().description,children:s.description})]})]}),(0,o.jsxs)("div",{className:e6().poster,style:{pointerEvents:w&&"none"},onClick:N,children:[w&&(0,o.jsx)(tO.A,{className:e6().skeleton}),(0,o.jsxs)("div",{className:e6().posterWrapper,children:[(0,o.jsx)(ti(),{ref:t=>(0,_.$R)(t,!w,j),className:e6().posterImage,loader:_.R2,src:h,blurDataURL:e7,alt:"poster",fill:!0}),!i.unavailable_by_geo&&(0,o.jsx)("img",{className:e6().play,src:"/static/images/product/button-play.svg",alt:"play","data-testid":"extra_current_play"})]})]})]}),(0,o.jsx)("section",{className:e6().list,children:null==S?void 0:S.map((t,e)=>(0,o.jsx)(e1,{index:e,alias:i.alias,card:t,onPosterClick:P,onLinkClick:B,geoUnavailable:i.unavailable_by_geo},t.uid))})]}):null};var it=i(89577),ie=i.n(it);let ii={clickHouseShoot:m.Y3};class io extends a.PureComponent{componentDidUpdate(t){if(t.movieData){let{_id:e}=t.movieData,{_id:i}=this.props.movieData,{visible:o}=this.state;i!==e&&o&&this.setState({visible:!o})}}componentWillUnmount(){this.setState({visible:!1})}render(){let{data:t}=this.props,{isSliderActive:e}=this.state,{documentClientWidth:i}=this.props.systemInformation,s=i<c.af,r=Array.isArray(t)?t.filter(t=>"string"==typeof t?t.trim():t):[];return r.length?(0,o.jsxs)("div",{className:"".concat(ie().product__facts),children:[(0,o.jsx)("h2",{children:"ÐнаеÑе ли вÑ, ÑÑо"}),(0,o.jsx)("div",{className:ie()["product__facts-slider"],onMouseOver:()=>this.setState({isSliderActive:!0}),onMouseOut:()=>this.setState({isSliderActive:!1}),onFocus:()=>this.setState({isSliderActive:!0}),onBlur:()=>this.setState({isSliderActive:!1}),children:(0,o.jsx)(tE.A,{wrapperStyles:this.sliderWrapStyles(),widthCard:{desktop:540,mobile:326},heightCard:{desktop:245,mobile:365}
1,cardIdent:s?16:24,isPaginator:!1,lineIdx:"facts",active:e,alias:"facts",items:r,items_total:r.length,children:r.map((t,e)=>(0,o.jsxs)("div",{className:"".concat(ie()["product__facts-item"]),children:[(0,o.jsx)("div",{className:ie()["product__facts-item_index"],children:String(e+1).padStart(2,"0")}),(0,o.jsx)("div",{className:ie()["product__facts-item_text"],children:(0,c.IN)(310,t)})]},e))})})]}):null}constructor(...t){super(...t),this.state={visible:!1,isSliderActive:!1},this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.handleMore=()=>{let{visible:t}=this.state;this.setState({visible:!t},()=>{let{clickHouseData:e}=this.props.systemInformation,{_id:i}=this.props.movieData,o={...e,action_id:"click",action_result:t?"hide":"open",block_type:"block",block_attributes_id:"facts",product_id:i,element_type:"link",element_attributes_id:t?"show_less":"show_more",element_attributes_text:t?"СвеÑнÑÑÑ":"ÐоказаÑÑ ÐµÑÑ",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,o)})},this.sliderWrapStyles=()=>{let{documentClientWidth:t}=this.props.systemInformation;if(t){if(t>c.U8){let e=(0,_.$J)(56,t);return{paddingRight:e,paddingLeft:e}}return t>c.af?{paddingRight:56,paddingLeft:56}:{paddingRight:24,paddingLeft:24}}}}}let is=(0,l.Ng)(t=>({registration:t.registration,systemInformation:t.systemInformation,profile:t.profile}),ii)(io);var ir=i(10393),ia=i.n(ir);let il=t=>{var e;let{episode:i,internalPagesRedesignExp:s,movieData:r,page:a,season:n,type:c}=t,{authData:_}=(0,l.d4)(t=>t.registration),d=_&&((null==_?void 0:_.email)||(null==_?void 0:_.phone))||(null==r?void 0:r.is_preview)&&!(null==r?void 0:null===(e=r.logotype)||void 0===e?void 0:e.image_15x)&&(!a||"seasons"===a),p=null==_?void 0:_.virtual;return(0,o.jsx)("div",{className:z()(ia().header,{[ia().registered]:(null==_?void 0:_.virtual)===!1&&_.subscriptions&&_.subscriptions.length,[ia().empty]:d&&!n&&!i}),children:((t,e,i,s,r,a)=>i?(0,o.jsx)("h1",{"data-testid":"hero_title",children:"СеÑиал ".concat(null==a?void 0:a.title," ").concat(i.split("-")[1]," Ñезон").concat(p||!t?" ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½":"")}):s?(0,o.jsx)("h1",{"data-testid":"hero_title",children:"".concat(null==a?void 0:a.title," ").concat(null==s?void 0:s.seasonNum," Ñезон - ").concat(null==s?void 0:s.num," ÑеÑиÑ").concat(p||!t?" ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½":"")}):d?void 0:(null==a?void 0:a.is_preview)?(0,o.jsx)("h1",{"data-testid":"hero_title",children:"".concat(r," ").concat(null==a?void 0:a.title,": опиÑание, ÑÑÐ¶ÐµÑ Ð¸ геÑои")}):(0,o.jsx)("h1",{"data-testid":"hero_title",children:"".concat(r," ").concat(null==a?void 0:a.title," ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½")}))(_,0,n,i,c,r,s)})};var ic=i(45078),i_=i.n(ic);let id="/static/images/product/heroes-empty.svg",ip={[c._.DESKTOP_WIDE]:{width:386,height:243},[c._.DESKTOP]:{width:386,height:243},[c._.TABLET]:{width:318,height:202},[c._.TABLET_WIDE]:{width:720,height:405},[c._.MOBILE]:{width:296,height:188}},iu=t=>{var e;let{alias:i,movieData:s,data:r,index:l,onCardClick:n}=t,c=(0,eZ.A)(),d=(0,eq.A)({img:null===(e=r.character)||void 0===e?void 0:e.photo,imgStub:id,width:ip[c].width,height:ip[c].height}),p=(0,X.A)(),[u,h]=(0,a.useState)(!0),m=()=>{h(!1)},v=(t,e,i)=>{t.stopPropagation(),p({action_id:"click",block_type:"block",block_attributes_id:"characters",product_id:null==s?void 0:s.uid,content_id:null==s?void 0:s.uid,content_type:null==s?void 0:s._cls,element_type:"link",element_attributes_id:null==e?void 0:e.alias,element_attributes_text:null==e?void 0:e.name,element_attributes_index:i+1})};return(0,o.jsxs)(tA(),{className:i_().item,href:"/watch/".concat(i,"/characters/").concat(r.character.start_id),prefetch:!1,onClick:()=>n(r),children:[u&&(0,o.jsx)(tO.A,{className:i_().skeleton}),(0,o.jsxs)("div",{className:i_().content,children:[(0,o.jsx)("div",{className:i_().poster,children:(0,o.jsx)("div",{className:i_().posterWrapper,children:(0,o.jsx)(ti(),{ref:t=>(0,_.$R)(t,!u,m),className:i_().posterImage,loader:_.R2,src:d,blurDataURL:id,alt:"poster",fill:!0,sizes:"10vw"})})}),(0,o.jsxs)("div",{className:i_().info,children:[(0,o.jsx)("h3",{className:i_().name,children:r.character.name}),(0,o.jsx)("p",{className:i_().actor,children:r.alias?(0,o.jsx)(tA(),{href:"/person/".concat(r.alias),className:i_().actorLink,onClick:t=>v(t,r,l),children:r.name}):r.name}),(0,o.jsx)("p",{className:i_().description,children:r.character.biography})]})]})]})};var ih=i(77507),im=i.n(ih);let iv={clickHouseShoot:m.Y3};class ig extends a.Component{componentDidMount(){this.setState({nojs:!1})}render(){let{movieData:t,hero:e}=this.props,{title:i}=this.props.movieData,{visible:s,nojs:r}=this.state,l=e.character.biography||"";return(0,o.jsxs)("div",{className:"".concat(ea()["product-block"]," ").concat(im().product__hero),children:[(0,o.jsx)("h1",{children:"".concat(i,": ").concat(e.character.name," ").concat(e.name?"(".concat(e.name,")"):"")}),(0,o.jsxs)("div",{className:im()["product__hero-wrapper"],children:[(0,o.jsx)("div",{className:im()["product__hero-photo"],children:(0,o.jsx)("img",{src:this.handleImageSource("".concat(e.character.ph
1oto)),alt:"".concat(e.character.name," ").concat(t.title),onError:this.handleErrorImage})}),(0,o.jsxs)("div",{className:im()["product__hero-info"],children:[(0,o.jsx)("div",{className:im()["product__hero-name"],children:(0,o.jsx)("span",{children:e.character.name})}),e.name?(0,o.jsx)("div",{className:im()["product__hero-actor"],children:e.alias?(0,o.jsx)(tA(),{prefetch:!1,href:"/person/".concat(e.alias),children:(0,o.jsx)("span",{children:e.name})}):(0,o.jsx)("span",{children:e.name})}):null,l?l.length<=280||s?(0,o.jsx)(a.Fragment,{children:(0,o.jsxs)("div",{className:"".concat(im()["product__hero-description"]),children:[(0,o.jsx)("span",{children:l}),l.length>280?(0,o.jsxs)("div",{className:im()["product__hero-more"],onClick:this.handleClick,children:[(0,o.jsx)("div",{className:im()["product__hero-more_text"],children:"СвеÑнÑÑÑ"}),(0,o.jsx)("img",{src:"/static/images/product/arrow-down.svg",className:"".concat(im()["product__hero-more_image"]," ").concat(im().rotate),alt:"arrow"})]}):null]})}):(0,o.jsx)(a.Fragment,{children:(0,o.jsxs)("div",{className:"".concat(im()["product__hero-description"]),children:[(0,o.jsx)("span",{children:(0,c.IN)(280,l)}),l.length>280?(0,o.jsxs)("div",{className:im()["product__hero-more"],onClick:this.handleClick,children:[(0,o.jsx)("div",{className:im()["product__hero-more_text"],children:"ÐоказаÑÑ ÐµÑÑ"}),(0,o.jsx)("img",{src:"/static/images/product/arrow-down.svg",className:"".concat(im()["product__hero-more_image"]),alt:"arrow"})]}):null]})}):null]})]})]})}constructor(...t){super(...t),this.state={visible:!1,nojs:!0},this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.handleErrorImage=t=>{t.target.src="/static/images/product/heroes-empty.svg"},this.handleClick=()=>{let{clickHouseData:t}=this.props.systemInformation,{visible:e}=this.state;this.setState({visible:!e},()=>{let i={...t,action_id:"click",action_result:e?"hide":"open",block_type:"block",block_attributes_id:"description",product_id:this.props.movieData._id,element_type:"link",element_attributes_text:e?"СвеÑнÑÑÑ":"ÐоказаÑÑ ÐµÑÑ",element_attributes_id:e?"show_less":"show_more",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,i)})},this.handleImageSource=(t,e)=>{let{deviceData:i}=this.props.systemInformation,{nojs:o}=this.state;if(!t||"null"===t||-1!==t.indexOf("/static/images/"))return"/static/images/product/heroes-empty.svg";let s="";switch(i){case"mobile_web":s="288x191";break;case"tablet_web":s="232x154";break;default:s="316x212"}return"".concat(this.apiUrl).concat((0,_.bZ)(t,s))}}}(0,l.Ng)(t=>({registration:t.registration,systemInformation:t.systemInformation,profile:t.profile}),iv)(ig);let ib="/static/images/product/heroes-empty.svg",ik={[c._.DESKTOP_WIDE]:{width:652,height:367},[c._.DESKTOP]:{width:652,height:367},[c._.TABLET]:{width:720,height:460},[c._.TABLET_WIDE]:{width:720,height:405},[c._.MOBILE]:{width:327,height:208}},ix=t=>{var e,i;let{movieData:s,hero:r}=t,l=(0,X.A)(),n=(0,eZ.A)(),c=(0,eq.A)({img:null===(e=r.character)||void 0===e?void 0:e.photo,imgStub:ib,width:ik[n].width,height:ik[n].height}),[d,p]=(0,a.useState)(!0),u=()=>{p(!1)},h=(t,e)=>{var i,o;l({action_id:"click",block_type:"block",block_attributes_id:"characters",product_id:s.uid,content_id:s.uid,content_type:null==s?void 0:s._cls,element_type:"character",element_attributes_id:null==t?void 0:null===(i=t.character)||void 0===i?void 0:i.start_id,element_attributes_text:null==t?void 0:null===(o=t.character)||void 0===o?void 0:o.name,element_attributes_index:parseInt(e)+1})},m=(t,e)=>{t.stopPropagation(),l({action_id:"click",block_type:"block",block_attributes_id:"characters",product_id:null==s?void 0:s.uid,content_id:null==s?void 0:s.uid,content_type:null==s?void 0:s._cls,element_type:"link",element_attributes_id:null==e?void 0:e.alias,element_attributes_text:null==e?void 0:e.name})};return(0,o.jsxs)("div",{className:im().wrapper,children:[(0,o.jsxs)("section",{className:im().content,children:[(0,o.jsxs)("div",{className:im().info,children:[(0,o.jsx)("h1",{children:"".concat(null==s?void 0:s.title," - ").concat(r.character.name," ").concat(r.name?"(".concat(r.name,")"):"")}),(0,o.jsxs)("div",{className:im().meta,children:[r.name?(0,o.jsx)("p",{className:im().actor,children:r.alias?(0,o.jsx)(tA(),{onClick:t=>{m(t,r)},className:im().actorLink,href:"/person/".concat(r.alias),prefetch:!1,children:r.name}):r.name}):null,(0,o.jsx)("p",{className:im().description,children:r.character.biography})]})]}),(0,o.jsxs)("div",{className:im().poster,children:[d&&(0,o.jsx)(tO.A,{className:im().skeleton}),(0,o.jsx)("div",{className:im().posterWrapper,children:(0,o.jsx)(ti(),{ref:t=>(0,_.$R)(t,!d,u),className:im().posterImage,loader:_.R2,src:c,blurDataURL:ib,alt:"".concat(r.character.name," ").concat(s.title),fill:!0})})]})]}),(0,o.jsx)("section",{className:im().list,children:null===(i=(null==s?void 0:s.cast).filter(t=>t.character.start_id!==r.character.start_id).filter(t=>
1t.character.name&&t.character.photo&&t.character.biography).sort((t,e)=>e.character.weight-t.character.weight))||void 0===i?void 0:i.map((t,e)=>(0,o.jsx)(iu,{movieData:s,alias:s.alias,index:e,data:t,onCardClick:()=>h(t,e)},e))})]})};var iy=i(45852),iw=i.n(iy);let iT=[{id:1,name:"Ðика",age:28,range:15,job:"ÐлогеÑ, инÑлÑенÑеÑ",about:"ÐÑÑ Ð»ÑбовÑ, о коÑоÑой ÑнимаÑÑ ÑилÑÐ¼Ñ â наÑÑоÑÑÑÑ, ÑпокойнÑÑ Ð¸\xa0навÑегда.",avatar:"/static/images/heroes/1.jpg"},{id:2,name:"ÐикиÑа",age:34,range:42,job:"ШеÑ-поваÑ",about:"С пÑавилÑнÑм Ñеловеком ÑÑдом\xa0наÑинаеÑÑ Ð»ÑбиÑÑ ÑебÑ\xa0ÑилÑнее",avatar:"/static/images/heroes/2.jpg"},{id:3,name:"ЮлÑ",age:26,range:34,job:"ÐоделÑ",about:"СнаÑала ÑлиÑÑоваÑÑ Ð´Ð¾ ÑÑÑа, а\xa0поÑом ÑлÑÑайно влÑбиÑÑÑÑ Ð½Ð°Ð²Ñегда. Ðак Ñебе план?",avatar:"/static/images/heroes/3.jpg"},{id:4,name:"ÐеÑа",age:30,range:42,job:"ÐÑÑÑопÑиÑ
олог",about:"ÐÑли нам ÑÑждено вÑÑÑеÑиÑÑÑÑ,\xa0звÑÐ·Ð´Ñ Ñами вÑÑ\xa0ÑÑÑÑоÑÑ",avatar:"/static/images/heroes/4.jpg"}],iS=()=>(0,o.jsxs)("div",{className:iw().hero_custom,children:[(0,o.jsx)("h3",{className:iw().title,children:"ÐеÑои ÑеÑиала"}),(0,o.jsx)("ul",{className:iw().list,children:iT.map(t=>{let{name:e,age:i,id:s,range:r,job:a,about:l,avatar:n}=t;return(0,o.jsx)("li",{className:iw().item,style:{backgroundImage:"url(".concat(n,")")},children:(0,o.jsxs)("div",{className:iw().content,children:[(0,o.jsxs)("h4",{className:iw().name,children:[e,", ",i]}),(0,o.jsxs)("div",{className:iw().info,children:[(0,o.jsxs)("div",{className:"".concat(iw().infoRow," ").concat(iw().range),children:[(0,o.jsx)("span",{className:iw().label,children:"Ðм Ð¾Ñ Ð²Ð°Ñ:"}),(0,o.jsx)("span",{className:iw().value,children:r})]}),(0,o.jsx)("div",{className:"".concat(iw().infoRow," ").concat(iw().job),children:a}),(0,o.jsx)("div",{className:"".concat(iw().infoRow," ").concat(iw().about),children:l})]}),(0,o.jsxs)("div",{className:iw().actions,children:[(0,o.jsx)("span",{className:iw().profileBtn}),(0,o.jsx)("span",{className:iw().messageBtn,children:"ÑообÑение..."}),(0,o.jsx)("span",{className:iw().shareBtn}),(0,o.jsx)("span",{className:iw().likeBtn})]})]})},s)})})]});var ij=i(62443),iC=i.n(ij),iB=i(12124),iN=i.n(iB);let iP=a.memo(t=>{var e,i;let{item:s,alias:r,handleShoot:l}=t,n=(0,Q.A)(),[d,p]=(0,a.useState)(!1),u="".concat(n).concat((0,_.bZ)(null==s?void 0:null===(e=s.character)||void 0===e?void 0:e.photo)),h=!!(null==s?void 0:null===(i=s.character)||void 0===i?void 0:i.photo);return(0,o.jsxs)("div",{className:iN()["item-wrap"],onClick:l,children:[!d&&h&&(0,o.jsx)(tO.A,{className:iN().skeleton}),(0,o.jsx)(tA(),{prefetch:!1,href:"/watch/".concat(r,"/characters/").concat(s.character.start_id),children:(0,o.jsxs)("div",{className:iN().item,children:[h?(0,o.jsx)(tM.A,{className:iN()["item-photo"],src:u,onLoad:()=>p(!0),onError:()=>p(!1),sizes:"(max-width: 768px) 100vw",width:140,height:140}):(0,o.jsx)("img",{className:iN()["item-photo"],src:"/static/images/product/heroes-empty.svg"}),(0,o.jsxs)("div",{className:iN().text,children:[(0,o.jsx)("span",{className:iN().text__title,children:s.character.name}),(0,o.jsx)("span",{className:iN().text__subtitle,children:s.name}),(0,o.jsx)("span",{className:iN().text__description,children:(0,c.IN)(170,s.character.biography)})]})]})})]})}),iI=t=>{if(t){if(t>c.U8){let e=(0,_.$J)(56,t);return{paddingRight:e,paddingLeft:e}}return t>c.af?{paddingRight:56,paddingLeft:56}:{paddingRight:24,paddingLeft:24}}},iD=t=>{let{sliderList:e,lineIdx:i,alias:s,isPaginator:r,systemInformation:n,movieData:_}=t,d=(0,X.A)(),p=(0,l.d4)(t=>t.systemInformation.documentClientWidth),[u,h]=(0,a.useState)(!1),m=a.useMemo(()=>iI(p),[p]),v=a.useMemo(()=>p<c.af,[p]);return(0,o.jsx)("div",{className:iN()["slider-wrap"],onMouseOver:()=>h(!0),onMouseOut:()=>h(!1),onFocus:()=>h(!0),onBlur:()=>h(!1),children:(0,o.jsx)(tE.A,{wrapperStyles:m,widthCard:{desktop:314,mobile:222},heightCard:{desktop:459,mobile:344},isPaginator:r,lineIdx:i,active:u,alias:s,items:e&&e,items_total:e&&(null==e?void 0:e.length),arrowClick:t=>{var e;
1d({product_id:null==_?void 0:_._id,content_id:null==_?void 0:_.uid,content_type:null!==(e=null==_?void 0:_._cls)&&void 0!==e?e:"",block_type:"collection",block_attributes_id:"journal",action_id:"click",element_type:"button",element_attributes_id:t?"arrow_right":"arrow_left",event_time:new Date().getTime()})},cardIdent:v?16:24,isProduct:!0,children:(0,o.jsx)("div",{className:iN().items_wrap,children:null==e?void 0:e.map((t,e)=>(0,o.jsx)(iP,{item:t,position:e,alias:null==_?void 0:_.alias},"heroes-".concat(t.alias)))})})})},iA={clickHouseShoot:m.Y3};class iE extends a.Component{componentDidMount(){this.setState({browserWidth:window.innerWidth})}componentDidUpdate(t){let{windowInnerWidth:e}=t.systemInformation,{windowInnerWidth:i}=this.props.systemInformation;i&&e&&i!==e&&this.resizeHandler();let o=document.getElementsByClassName("product__heroes")[0];o&&(this.leftArrow=o.getElementsByClassName("slick-prev")[0],this.rightArrow=o.getElementsByClassName("slick-next")[0],this.leftArrow&&this.rightArrow&&!this.loadedSlider&&(this.loadedSlider=!0,this.rightArrow.addEventListener("click",()=>this.handleArrowShoot("arrow_right")),this.leftArrow.addEventListener("click",()=>this.handleArrowShoot("arrow_left"))))}componentWillUnmount(){this.leftArrow&&this.leftArrow.removeEventListener("click",this.handleArrowClick),this.rightArrow&&this.rightArrow.removeEventListener("click",this.handleArrowClick)}render(){let{movieData:t,bannerData:e,page:i,type:s}=this.props,r=t.cast.filter(t=>t.character.name&&t.character.photo&&t.character.biography);return r&&r?(0,o.jsxs)("div",{id:"characters",className:iC()["heroes-wrap"],children:[i&&"seasons"!==i&&"episode"!==i?(0,o.jsx)("h1",{className:iC().product__header,children:"".concat(t.title,": ÐеÑои ").concat("пÑогÑамма"==s.toLowerCase()?"пÑогÑаммÑ":"".concat(s.toLowerCase(),"а"))}):(0,o.jsx)(tA(),{prefetch:!1,href:"/watch/".concat(t.alias,"/characters"),children:(0,o.jsx)("h2",{className:"".concat(ea().product__linked," ").concat(iC().product__heroes__header),onClick:this.handleShoot,children:(0,o.jsx)("span",{children:"ÐеÑои ".concat("пÑогÑамма"==s.toLowerCase()?"пÑогÑаммÑ":"".concat(s.toLowerCase(),"а"))})})}),(0,o.jsx)(iD,{sliderList:r,alias:null==t?void 0:t.alias,movieData:t,blockAttributesIndex:!0}),e&&"heroes"===e.position&&(0,o.jsx)(t$.A,{bannerData:e,movieData:this.props.movieData})]}):null}constructor(...t){super(...t),this.state={settings:{dots:!1,draggable:!1,speed:250,touchMove:!0,infinite:!1,arrows:!0,slidesToShow:4,slidesToScroll:4,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3}}]},showFullHeroes:!1,browserWidth:0},this.loadedSlider=!1,this.leftArrow=null,this.rightArrow=null,this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.resizeHandler=()=>{let{innerWidth:t}=window,{browserWidth:e}=this.state;t!==e&&this.setState({browserWidth:t})},this.handleArrowShoot=t=>{let{clickHouseData:e}=this.props.systemInformation,{_id:i}=this.props.movieData,o={...e,action_id:"click",block_type:"block",block_attributes_id:"characters",product_id:i,element_type:"button",element_attributes_id:t,event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,o)},this.handleErrorImage=t=>{t.target.src="/static/images/product/heroes-empty.svg"},this.showMore=()=>{let{showFullHeroes:t}=this.state;t?this.setState({showFullHeroes:!1}):this.setState({showFullHeroes:!0})},this.handleImageSource=(t,e)=>{let{deviceData:i}=this.props.systemInformation;if(!t||"null"===t||!i||-1!==t.indexOf("/static/images/"))return"/static/images/product/heroes-empty.svg";let o="";switch(i){case"mobile_web":o="288x191";break;case"tablet_web":o="232x154";break;default:o="316x212"}return"".concat(this.apiUrl).concat((0,_.bZ)(t,o))},this.handleShoot=()=>{let{clickHouseData:t}=this.props.systemInformation,{_id:e}=this.props.movieData,i={...t,action_id:"click",block_type:"block",block_attributes_id:"characters",product_id:e,element_type:"link",element_attributes_id:"characters",element_attributes_text:"ÐеÑои",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,i)}}}(0,l.Ng)(t=>({registration:t.registration,systemInformation:t.systemInformation,profile:t.profile}),iA)(iE);let iR=t=>{let{movieData:e,page:i,type:s,bannerData:r}=t,a=(0,X.A)(),l=(t,i)=>{var o,s;a({action_id:"click",block_type:"block",block_attributes_id:"characters",product_id:e.uid,content_id:e.uid,content_type:null==e?void 0:e._cls,element_type:"character",element_attributes_id:null==t?void 0:null===(o=t.character)||void 0===o?void 0:o.start_id,element_attributes_text:null==t?void 0:null===(s=t.character)||void 0===s?void 0:s.name,element_attributes_index:parseInt(i)+1})},n=(t,e)=>{l(t,e)},c=e.cast.filter(t=>
1t.character.name&&(t.character.photo&&t.character.biography||!t.character.photo&&t.character.biography||t.character.photo&&!t.character.biography));return(null==c?void 0:c.length)?(0,o.jsx)(o.Fragment,{children:i&&"seasons"!==i&&"episode"!==i?(0,o.jsxs)("div",{className:iC().wrapper,children:[(0,o.jsx)("h1",{children:"".concat(e.title," - ÐеÑои ").concat("пÑогÑамма"===s.toLowerCase()?"пÑогÑаммÑ":"".concat(s.toLowerCase(),"а"))}),(0,o.jsx)("div",{className:iC().list,children:c.map((t,i)=>(0,o.jsx)(iu,{movieData:e,alias:e.alias,data:t,index:i,onCardClick:()=>n(t,i)},i))}),r&&"heroes"===r.position&&(0,o.jsx)(t$.A,{bannerData:r,movieData:(void 0).props.movieData})]}):(0,o.jsxs)("div",{id:"characters",className:iC()["heroes-wrap"],children:[(0,o.jsx)(tA(),{prefetch:!1,href:"/watch/".concat(e.alias,"/characters"),children:(0,o.jsx)("h2",{className:"".concat(ea().product__linked," ").concat(iC().product__heroes__header),onClick:()=>{l()},children:(0,o.jsx)("span",{children:"ÐеÑои ".concat("пÑогÑамма"==s.toLowerCase()?"пÑогÑаммÑ":"".concat(s.toLowerCase(),"а"))})})}),(0,o.jsx)(iD,{sliderList:c,alias:null==e?void 0:e.alias,movieData:e,blockAttributesIndex:!0}),r&&"heroes"===r.position&&(0,o.jsx)(t$.A,{bannerData:r,movieData:(void 0).props.movieData})]})}):null};i(70108);let iL=(t,e)=>e?(e=e.replace("quality(70)","format(webp)"),"".concat(t).concat(e)):null;var iM=i(16301),iU=i.n(iM);let iH="tvoe-serdce-budet-razbito",iO=t=>({action_id:t,event_version:"1.0",screen_type:"product",screen_attributes_id:iH,block_type:"banner",block_attributes_id:"tsbr_prediction",block_attributes_index:1,element_type:"product",element_attributes_id:iH,element_attributes_index:1}),iF=(t,e)=>{let i=Array.from({length:t},(t,e)=>e).filter(t=>t!==e);for(let t=i.length-1;t>0;t--){let e=Math.floor(Math.random()*(t+1)),o=i[t];i[t]=i[e],i[e]=o}return i},iW=(t,e)=>t?e?e<=c.xW.MOBILE?t.web_mobile||t.web_tablet||t.web_desktop:e<=c.xW.TABLET_WIDE?t.web_tablet||t.web_desktop||t.web_mobile:t.web_desktop||t.web_tablet||t.web_mobile:t.web_desktop||t.web_tablet||t.web_mobile:null,iK=()=>{let t=(0,Q.A)(),e=(0,Z.A)(),i=(0,X.A)(),s=(0,l.d4)(t=>t.systemInformation.windowInnerWidth),r=(0,l.d4)(t=>t.systemInformation.clickHouseData),[c,_]=(0,a.useState)(null),[d,p]=(0,a.useState)(0),[u,h]=(0,a.useState)([]),m=(0,a.useRef)(d),v=(0,a.useRef)(!1),{ref:g,inView:b}=(0,tz.Wx)({threshold:.5,triggerOnce:!0});(0,a.useEffect)(()=>{let i=new AbortController,o="".concat(t).concat(n.PI.projectsElements.replace("<project_alias>","tsbr")).concat(e);return _(null),p(0),h([]),fetch(o,{signal:i.signal}).then(t=>t.status>=400?null:t.json()).then(t=>{var e;(null==t?void 0:null===(e=t.elements)||void 0===e?void 0:e.length)&&(_(t),p(0),h([]))}).catch(t=>{"AbortError"!==t.name&&_(null)}),()=>i.abort()},[e,t]);let k=(0,a.useMemo)(()=>{var t;return(null==c?void 0:null===(t=c.elements)||void 0===t?void 0:t.filter(t=>iW(null==t?void 0:t.images,s)))||[]},[null==c?void 0:c.elements,s]),f=k[d],x=iL(t,iW(null==f?void 0:f.images,s)),y=k.length>1;return((0,a.useEffect)(()=>{k.length&&d>k.length-1&&p(0)},[d,k.length]),(0,a.useEffect)(()=>{m.current=d},[d]),(0,a.useEffect)(()=>{if(!k.length){h([]);return}let t=m.current<k.length?m.current:0;h(iF(k.length,t))},[k.length]),(0,a.useEffect)(()=>{b&&x&&r&&!v.current&&(v.current=!0,i({...iO("collection_view"),action_result:1,action_attributes_num:1}))},[r,x,b,i]),x)?(0,o.jsxs)("section",{className:iU().projectElements,"aria-label":null==c?void 0:c.title,ref:g,children:[(0,o.jsx)("h2",{className:"".concat(eb()["product__description-title"]," ").concat(iU().projectElements__title),children:"Ðадание по ÑиÑаÑе из книги"}),(0,o.jsx)("button",{className:iU().projectElements__button,type:"button",onClick:()=>{if(i(iO("click")),!y)return;let[t,...e]=u.length?u:iF(k.length,d);p(t),h(e)},"aria-label":(null==f?void 0:f.title)||(null==c?void 0:c.title),children:(0,o.jsx)("img",{className:iU().projectElements__image,src:x,alt:(null==f?void 0:f.title)||(null==c?void 0:c.title)||""})})]}):null};var iV=i(69625),iz=i.n(iV);let iY={clickHouseShoot:m.Y3};class iG extends a.Component{componentDidMount(){this.getVisibleElements()}componentDidUpdate(t){var e,i,o,s;let r=null===(e=document)||void 0===e?void 0:e.getElementById("categories_line");(null===(i=t.movieData)||void 0===i?void 0:i._id)!==(null===(o=this.props.movieData)||void 0===o?void 0:o._id)&&(null===(s=this.props.movieData)||void 0===s?void 0:s._id)&&this.setState({translateX:0,visibleIndex:0,widthOfVisible:[],arrayOfHidden:[]},()=>{r.scroll({left:0,behavior:"smooth"}),this.getVisibleElements()})}render(){var t,e,i,s,r,a;let{current:l,noTitle:n,selections:c,similar:_}=this.props,{visibleIndex:d,widthOfVisible:p,arrayOfHidden:u,mouseOver:h,arrayOfVisible:m}=this.state,{deviceSize:v,userBrowser:g}=this.props.systemInformation;return(0,o.jsxs)("div",{className:"".concat(iz().selections__selections," ").concat(n?iz().selections__nt:""),id:"categories_wrapper",onMouseOver:()=>this.setState({mouseOver:!0}),onMouseOut:()=>this.setState({mouseOver:!1}),children:[(0,o.jsx)("div",{className:"".concat(iz().selections__a," ").concat(iz().selections__dl),onClick:()=>this.handleArrowClick("left"),style:{visibility:(null===(e=this.wrap)||void 0===e?void 0:null===(t=e.current)||void 0===t?void 0:t.scrollLeft)!==0?"visible":"hidden"},children:(0,o.jsx)("img",{src:"/static/images/tv/left.svg"})}),(0,o.jsxs)("div",{className:iz().selections__wrap,id:"categories_line",onWheel:this.handleWheel,onScroll:this.handleScroll,ref:this.wrap,children:[(0,o.jsx)("div",{className:"".concat(iz().selections__cWrap," ").concat("desktop_web"!==v||m.includes(0)?"":iz().selections__aWrap),children:(0,o.jsx)("div",{className:"".concat(iz().selections__category," ").concat((null==l?void 0:l.alias)?"":iz().selections__active),onClick:"desktop_web"!==v||m.includes(0)?this.handleSimilarCategoryClick:null,children:"ÑекомендаÑии"})}),(null==c?void 0:c.length)?c.map((t,e)=>(0,o.jsx)("div",{className:"".concat(iz().selections__cWrap," ").concat("desktop_web"!==v||m.includes(e+1)?"":iz().selections__aWrap," ").concat((null==g?void 0:g.browserName)==="Safari"?iz().selections__safari:""),children:(0,o.jsx)("div",{className:"".concat(iz().selections__category," ").concat((null==l?void 0:l.alias)===t.alias?iz().selections__active:""),onClick:"desktop_web"!==v||m.includes(e+1)?()=>this.handleCategoryClick(t,e):null,style:(null==l?void 0:l.alias)===t.alias?{color:"#252930",backgroundColor:t.text_color}:t.text_color?{color:t.text_color}:{},children:t.title})},t.id)):null]}),(0,o.jsx)("div",{className:"".concat(iz().selections__a," ").concat(iz().selections__dr),onClick:()=>this.handleArrowClick("right"),style:{visibility:parseInt(null===(s=this.wrap)||void 0===s?void 0:null===(i=s.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,o.jsx)("img",{src:"/static/images/tv/right.svg",alt:"right"})})]})}constructor(...t){super(...t),this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.lockScroll=!1,this.state={visibleIndex:0,translateX:0,widthOfVisible:[],arrayOfHidden:[],mouseOver:!1,categoriesLineWidth:0,wrap:null,arrayOfVisible:[]},this.wrap=a.createRef(),this.scrollTimeout=null,this.getVisibleElements=()=>{var t,e;let i=document.getElementById("categories_line");document.getElementById("categories_wrapper");let o=[...i.childNodes],s=o.map(t=>t.getBoundingClientRect().width),r=s.reduce((t,e)=>t+=e,0),a=parseInt(null===(t=window)||void 0===t?void 0:t.getComputedStyle(i,null).paddingRight)+parseInt(null===(e=window)||void 0===e?void 0:e.getComputedStyle(i,null).paddingLeft);r=parseInt(r+a);let l=[];o.forEach((t,e)=>{!(t.getBoundingClientRect().left+t.getBoundingClientRect().width>window.innerWidth)&&t.getBoundingClientRect().left>0&&l.push(e)});let n=0,c=[];s.map((t,e)=>{n+t<window.innerWidth-a?n+=t:(c.length&&(n+=c[c.length-1]),c.push(n),n=t)}),this.setState({widthOfVisible:c,arrayOfHidden:[],categoriesLineWidth:r,arrayOfVisible:l})},this.handleArrowClick=t=>{let{visibleIndex:e,widthOfVisible:i}=this.state,o=document.getElementById("categories_line");if("right"===t){if(e>=i.length)return;this.setState({visibleIndex:e+1,translateX:i[e]},()=>{o.scroll({left:this.state.translateX,behavior:"smooth"})})}else e>=0&&this.setState({visibleIndex:e-1,translateX:i[e-2]||0},()=>{o.scroll({left:this.state.translateX,behavior:"smooth"})});let{clickHouseData:s}=this.props.systemInformation,r={...s,element_type:"button",element_attributes_id:"right"===t?"arrow_right":"arrow_left",action_id:"click",event_time:Date.now(),content_id:this.props.movieData.uid,content_type:this.props.movieData._cls};this.props.clickHouseShoot(this.apiUrl,this.apiKey,r),this.lockScroll=!1},this.handleCategoryClick=(t,e)=>{var i;let{clickHouseData:o}=this.props.systemInformation,s={...o,element_type:"hashtag",element_attributes_id:t.alias,element_attributes_text:t.title,element_attributes_index:parseInt(e+((null===(i=this.props.similar)||void 0===i?void 0:i.length)?2:1)),product_id:this.props.movieData._id,content_id:this.props.movieData.uid,content_type:this.props.movieData._cls,action_id:"click",event_time:Date.now()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,s),this.props.setCurrent(t)},this.handleSimilarCategoryClick=()=>{let{clickHouseData:t}=this.props.systemInformation,e={...t,element_type:"hashtag",element_attributes_index:1,product_id:this.props.movieData._id,content_id:this.props.movieData.uid,content_type:this.props.movieData._cls,action_id:"click",event_time:Date.now()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,e),this.props.setCurrent({})},this.handleScroll=()=>{clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(this.getVisibleElements,0)},this.handleWheel=()=>{let t=0;this.state.widthOfVisible.some(e=>{e<this.wrap.current.offsetLeft&&t++}),this.setState({visibleIndex:t+1,translateX:t>=0?this.state.widthOfVisible[t+1]:0})}}}let iJ=(0,l.Ng)(t=>({systemInformation:t.systemInformation,registration:t.registration}),iY)(iG);var iq=i(60963),iZ=i(34110),iQ=i.n(iZ);let iX=a.memo(t=>{var e,i,r,n,d,p,u,h,m,v,g,b,k,f,x,y,w,T,S;let{noJs:j,card:C,index:B,gridCard:N,lineIdx:P,currentHashTag:I,movieData:D,episode:A,seasonNum:E,visibilityRef:R}=t,L=(0,Q.A)(),[M,U]=(0,a.useState)(!1),{documentClientWidth:H}=(0,l.d4)(t=>t.systemInformation),{deviceSize:O,renderMobile:F}=(0,l.d4)(t=>t.systemInformation),W=H<=c.af,K=(0,s.useRouter)(),V=(0,X.A)(),Y=null===(e=K.query.params)||void 0===e?void 0:e[1],G=null===(i=K.query.params)||void 0===i?void 0:i[0],J=(t,e,i,o)=>{t.stopPropagation(),V({block_type:"collection",block_attributes_id:I?"hashtag_"+(null==I?void 0:I.alias):"recommend",block_attributes_index:P,element_type:"link",element_attributes_id:i.alias,element_attributes_text:i.title,element_attributes_index:parseInt(e+1)||1,product_id:null==i?void 0:i.uid,content_id:(null==o?void 0:o.uid)||(null==i?void 0:i.uid)||D&&(null==D?void 0:D.uid),content_type:null==i?void 0:i._cls,action_id:"click",event_time:Date.now()})},q=(t,e,i,o)=>{t.stopPropagation();let s=null==D?void 0:D.items[E-1];
1V({action_id:"click",screen_type:"product",screen_attributes_id:"/".concat(G).concat(Y?"/".concat(Y):""),product_id:(null==s?void 0:s.uid)||(null==D?void 0:D.uid),content_id:(null==o?void 0:o.uid)||(null==s?void 0:s.uid)||(null==D?void 0:D.uid),content_type:(null==o?void 0:o._cls)||(null==s?void 0:s._cls)||(null==D?void 0:D._cls),block_type:"collection",block_attributes_id:I?"hashtag_"+(null==I?void 0:I.alias):"recommend",block_attributes_index:P,element_type:"product",element_attributes_id:i.alias,element_attributes_text:i.title,element_attributes_index:parseInt(e+1)||1})},Z=null===(r=C.badges)||void 0===r?void 0:r.filter(t=>"badge"===t.type&&!t.under_logo_position),$=(null==C?void 0:C.alias)?"/watch/".concat(null==C?void 0:C.alias):"/",tt=a.useMemo(()=>{var t,e,i,o,s,r;return F?(null==C?void 0:null===(i=C.vertical)||void 0===i?void 0:i.image_15x)?"".concat(L).concat((0,_.bZ)(null===(o=C.vertical)||void 0===o?void 0:o.image_15x,"143x204",85)):"/static/images/V2/preview-no-poster-vertical.webp":W?(null==C?void 0:null===(s=C.vertical)||void 0===s?void 0:s.image_15x)?"".concat(L).concat((0,_.bZ)(null===(r=C.vertical)||void 0===r?void 0:r.image_15x)):
1"/static/images/V2/preview-no-poster-vertical.webp":(null==C?void 0:null===(t=C.horizontal)||void 0===t?void 0:t.image_15x)?"".concat(L).concat((0,_.bZ)(null==C?void 0:null===(e=C.horizontal)||void 0===e?void 0:e.image_15x,"471x266",85)):"/static/images/V2/preview-no-poster-horizontal.webp"},[W,I]);return(0,o.jsx)("div",{ref:R,className:z()({[iQ()["item-wrap"]]:!N,[iQ()["item-wrap-grid"]]:N}),children:(0,o.jsxs)("div",{className:z()({[iQ()["selection-item"]]:!N,[iQ()["selection-item-grid"]]:N}),children:[(0,o.jsx)(tA(),{prefetch:!1,href:$,onClick:t=>q(t,B,C,A),children:(0,o.jsxs)("div",{className:z()({[iQ()["selection-item-img-wrap"]]:!N,[iQ()["selection-item-grid-img-wrap"]]:N}),children:[!M&&!j&&(0,o.jsx)(tO.A,{className:z()(iQ()["selection-skeleton-card"],{[iQ()["selection-skeleton-card-grid"]]:N})}),(0,o.jsx)(tM.A,{className:iQ()["selection-item-img-wrap-poster"],src:tt,width:F?95:314,height:F?136:177,onLoad:()=>U(!0),onError:()=>U(!1)}),(null==C?void 0:C.rating_start)&&!(null==C?void 0:C.is_preview)&&(0,o.jsx)("div",{className:"".concat((null==C?void 0:C.rating_start)>=7?iQ()["selection-item-img-wrap-rating-high"]:""," ").concat(iQ()["selection-item-img-wrap-rating"]," "),children:(0,_.bH)(null==C?void 0:C.rating_start)})]})}),(0,o.jsx)(tA(),{prefetch:!1,href:$,className:iQ()["selection-item__link"],onClick:t=>J(t,B,C,A),children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:iQ()["selection-item__titles"],children:(0,o.jsx)("div",{className:iQ()["selection-item__titles-title-badge-block"],children:(0,o.jsx)("span",{className:"".concat(iQ()["selection-item__titles-selection-title"]),children:null==C?void 0:C.title})})}),(0,o.jsx)("div",{className:iQ()["selection-item__subtitle-wrap"],children:!(null==Z?void 0:Z.length)&&(null==C?void 0:null===(n=C.genres)||void 0===n?void 0:n.length)>0&&C.genres.map((t,e)=>(0,o.jsx)("span",{className:iQ()["selection-item__subtitle"],children:0!==e?", ".concat(t.title):t.title},e))}),(null==Z?void 0:Z.length)?(0,o.jsxs)("div",{className:iQ()["selection-item__titles__selection__badge"],children:["double"===Z[0].structure?(0,o.jsx)(iq.L$,{className:iQ()["selection-item__titles__selection__badge__double"],size:null===(d=Z[0])||void 0===d?void 0:d.size,text:null===(p=Z[0])||void 0===p?void 0:p.text,textRight:null===(u=Z[0])||void 0===u?void 0:u.text_right,textColor:null===(h=Z[0])||void 0===h?void 0:h.text_color,textColorRight:null===(m=Z[0])||void 0===m?void 0:m.text_color_right,bgColor:null===(v=Z[0])||void 0===v?void 0:v.background_color,bgColorRight:null===(g=Z[0])||void 0===g?void 0:g.background_color_right}):(null===(b=Z[0])||void 0===b?void 0:b.structure)==="single"?(0,o.jsx)(iq.Ex,{className:iQ()["selection-item__titles__selection__badge__single"],text:null===(k=Z[0])||void 0===k?void 0:k.text,textColor:null===(f=Z[0])||void 0===f?void 0:f.text_color,bgColor:null===(x=Z[0])||void 0===x?void 0:x.background_color}):null,"single"===Z[0].structure&&(null===(y=Z[1])||void 0===y?void 0:y.structure)==="single"&&"desktop_web"===O?(0,o.jsx)(iq.Ex,{className:iQ()["selection-item__titles__selection__badge__single"],text:null===(w=Z[1])||void 0===w?void 0:w.text,textColor:null===(T=Z[1])||void 0===T?void 0:T.text_color,bgColor:null===(S=Z[1])||void 0===S?void 0:S.background_color}):null]}):null]})})]})})});var i$=i(75043),i0=i.n(i$);let i1=(0,l.Ng)(t=>({systemInformation:t.systemInformation,toggle:t.toggle,registration:t.registration,profile:t.profile}),{})(t=>{var e,i;let{sliderList:r,lineIdx:l,alias:n,isPaginator:d,registration:p,profile:u,systemInformation:h,movieData:m,onArrowClick:v,currentHashTag:g,showGrid:b,episode:k,season:f,seasonNum:x}=t,[y,w]=(0,a.useState)(!0),[T,S]=(0,a.useState)(!1),{documentClientWidth:j}=h,C=(0,s.useRouter)(),B=(0,X.A)(),N=null===(e=C.query.params)||void 0===e?void 0:e[1],P=null===(i=C.query.params)||void 0===i?void 0:i[0],I=n||"hashtag_".concat(null==g?void 0:g.alias),D=(0,eW.$)(t=>{var e;let i=x?null==m?void 0:null===(e=m.items)||void 0===e?void 0:e[x-1]:null;B({action_id:"collection_view",action_result:t.map(t=>t.position),action_attributes_num:l,action_attributes_str:t.map(t=>t.contentId),screen_type:"product",screen_attributes_id:"/".concat(P).concat(N?"/".concat(N):""),product_id:(null==i?void 0:i.uid)||(null==m?void 0:m.uid),content_id:(null==k?void 0:k.uid)||(null==i?void 0:i.uid)||(null==m?void 0:m.uid),content_type:(null==k?void 0:k._cls)||(null==i?void 0:i._cls)||(null==m?void 0:m._cls),block_type:"collection",block_attributes_id:I,block_attributes_index:l})});return(0,a.useEffect)(()=>{w(!1)}
1,[]),(0,o.jsx)("div",{className:z()({[i0()["slider-wrap"]]:!b,[i0().slider__wrap_grid]:b}),onMouseOver:()=>S(!0),onMouseOut:()=>S(!1),onFocus:()=>S(!0),onBlur:()=>S(!1),children:(0,o.jsx)(tE.A,{wrapperStyles:(()=>{if(j){if(j>c.U8){let t=(0,_.$J)(56,j);return{paddingRight:t,paddingLeft:t}}return j>c.af?{paddingRight:56,paddingLeft:56}:{paddingRight:24,paddingLeft:24}}})(),widthCard:{desktop:314,mobile:222},heightCard:{desktop:200,mobile:243},isPaginator:d&&!b,lineIdx:l,active:T&&!b,alias:null==g?void 0:g.alias,productId:34,items:r&&r,items_total:r&&(null==r?void 0:r.length),arrowClick:v,cardIdent:16,isProduct:!0,renderFade:!b,children:(0,o.jsx)("div",{className:z()({[i0().items_wrap]:!b,[i0().items_wrap__grid]:b}),children:null==r?void 0:r.map((t,e)=>{let i=t.uid||t.id;return(0,o.jsx)(tz.pL,{threshold:1,triggerOnce:!1,onChange:t=>{D({id:"".concat(I,":").concat(i),contentId:i,position:e+1},t)},children:i=>{let{ref:s}=i;return(0,o.jsx)(iX,{visibilityRef:s,noJs:y,card:t,index:e,lineIdx:l,gridCard:b,currentHashTag:g,movieData:m,episode:k,seasonNum:x})}},"selections-".concat(i,"-").concat(e))})})})})}),i2={clickHouseShoot:m.Y3,initPlayer:m.kI,getPlayerData:O.o2,setAutoTrailer:F.jG},i4={[ts.Qh.TSBR]:"selections__tabs-tsbr",[ts.Qh.HOLOD]:"selections__tabs-holod",[ts.Qh.OLDSKUL]:"selections__tabs-oldskul"},i3={[ts.Qh.TSBR]:"selections__tab-tsbr",[ts.Qh.HOLOD]:"selections__tab-holod",[ts.Qh.OLDSKUL]:"selections__tab-oldskul"},i5=()=>(0,o.jsxs)("div",{className:iz().selections__empty_selections,children:[(0,o.jsx)("img",{src:"/static/images/stack.svg",alt:"empty"}),(0,o.jsx)("div",{children:"ÐоÑ
оже, Ð´Ð»Ñ Ð²Ð°Ñ Ð½ÐµÑ Ð¿ÐµÑÑоналÑнÑÑ
ÑекомендаÑий в подбоÑке. Ðо в дÑÑгиÑ
Ð²Ñ Ð½Ð°Ð²ÐµÑнÑка найдеÑе ÑÑо-Ñо по дÑÑе."})]});class i6 extends a.Component{componentDidUpdate(t,e){var i,o,s,r;t.page!==this.props.page&&this.setState({currentHashTag:{},hashTagsNotFound:null}),t.movieData._id!==this.props.movieData._id&&this.setState({currentHashTag:{},selectionsData:this.props.selections,hashTagsNotFound:null}),(null===(i=e.currentHashTag)||void 0===i?void 0:i.alias)!==(null===(o=this.state.currentHashTag)||void 0===o?void 0:o.alias)&&(null===(s=this.state.currentHashTag)||void 0===s?void 0:s.alias)&&this.setState({currentHashTag:null===(r=this.state.selectionsData)||void 0===r?void 0:r.find(t=>t.alias===this.state.currentHashTag.alias)})}render(){var t;let{currentHashTag:e,selectionsData:i,hashTagsNotFound:s}=this.state,{similar:r,movieData:a,page:l,lineIdx:n,episode:c,season:_,seasonNum:d,productCustomization:p}=this.props,{childProfile:u}=this.props.profile,{config:h}=this.props.systemInformation,m=p||(0,ts.JP)({alias:null==a?void 0:a.alias,config:h}),v=(0,ts.Kf)(m,iz(),i4),g=(t,e)=>{this.handleCategoryClick(e)};return(0,o.jsxs)("div",{className:z()(iz().selections,iz().selections_redesign_exp),children:["selections"===l?(0,o.jsxs)("h1",{className:iz().selections__title_redesign,"data-testid":"selections_title",children:["Product.Series"===a._cls?"СеÑиал":""," ",null==a?void 0:a.title,": ÐодбоÑки и ÑекомендаÑии"]}):(0,o.jsx)(tA(),{prefetch:!1,href:"/watch/".concat(null==a?void 0:a.alias,"/selections"),"data-testid":"selections_link",children:(0,o.jsx)("h2",{className:z()(ea().product__linked,iz().selections__title),children:(0,o.jsx)("span",{children:"Product.Series"===a._cls?"СеÑиал в подбоÑкаÑ
":"ФилÑм в подбоÑкаÑ
"})})}),u?(0,o.jsx)(iJ,{alias:"selections",movieData:a,selections:i,current:e,setCurrent:this.setCurrentHashTag,similar:r}):(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(tX.A,{alias:"selections",movieData:a,categoriesList:this.collectCategories(),current:e,onClickCategory:this.handleCategoryClick,onArrowClick:this.handleCategoryArrowClick,productPage:!0,renderContent:t=>{let{className:i,...s}=t;return(0,o.jsx)(tQ.t,{type:"button",variant:"secondary",tabSize:"large",tabs:this.collectCategories(),tabId:"alias",activeTabId:null==e?void 0:e.alias,className:z()(i,iz().tabs,iz().categories__categories,iz().categories__aWrap,v),renderContent:t=>(0,o.jsx)("span",{className:z()(t.alias===(null==e?void 0:e.alias)&&(0,ts.Kf)(m,iz(),i3)),children:t.title}),onClickTab:g,...s})}})}),e.alias?s?(0,o.jsx)(i5,{}):(0,o.jsx)(i1,{showGrid:"selections"===l,sliderList:null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.items,lineIdx:n,currentHashTag:e,onArrowClick:this.handleArrowClick,isPaginator:"selections"===l,episode:c,mov
1ieData:a,season:_,seasonNum:d}):(null==r?void 0:r.length)||null===r?(0,o.jsx)(i1,{showGrid:"selections"===l,sliderList:r,lineIdx:n,alias:"recommend",onArrowClick:this.handleArrowClick,isPaginator:"selections"===l,episode:c,movieData:a,season:_,seasonNum:d}):(0,o.jsx)(i5,{})]})}constructor(...t){super(...t),this.state={currentHashTag:{},selectionsData:this.props.selections,hashTagsNotFound:null},this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.setCurrentHashTag=t=>{var e;let{authData:i}=this.props.registration,o=this.state.selectionsData,s=o.findIndex(e=>e.alias===t.alias);if(-1===s){this.setState({currentHashTag:{}});return}if(null===(e=o[s])||void 0===e?void 0:e.data){this.setState({currentHashTag:o[s],hashTagsNotFound:!1});return}fetch("".concat(this.apiUrl,"/hashtags/").concat(o[s].id,"/").concat(null==i?void 0:i.profile_id).concat(this.apiKey,"&for_kids=").concat(null==i?void 0:i.profile_for_child,"&locale=ru&content_lang=ru"),{credentials:"include"}).then(t=>{t.status<400?t.json().then(t=>{o[s].data=t,this.setState({selectionsData:o,currentHashTag:o[s],hashTagsNotFound:!1}),(null==t?void 0:t.items.length)||this.setState({hashTagsNotFound:!0})}):this.setState({hashTagsNotFound:!0})})},this.handleArrowClick=(t,e)=>{let{currentHashTag:i}=this.state,{clickHouseData:o}=this.props.systemInformation,s={...o,element_type:"button",element_attributes_id:t?"arrow_right":"arrow_left",block_attributes_id:(null==i?void 0:i.alias)?"hashtag_"+i.alias:"hashtag_recommend",action_id:"click",product_id:this.props.movieData._id,content_id:this.props.movieData.uid,content_type:this.props.movieData._cls,block_type:"collection",event_time:Date.now()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,s)},this.handleCategoryClick=(t,e)=>{let{clickHouseData:i}=this.props.systemInformation,o={...i,element_type:"hashtag",element_attributes_id:(null==t?void 0:t.title)==="РекомендаÑии"?"recommend":t.alias,element_attributes_text:t.title,element_attributes_index:parseInt(e+1),product_id:this.props.movieData._id,content_id:this.props.movieData.uid,content_type:this.props.movieData._cls,action_id:"click",event_time:Date.now()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,o),this.setCurrentHashTag(t)},this.handleCategoryArrowClick=t=>{let{clickHouseData:e}=this.props.systemInformation,i={...e,element_type:"button",element_attributes_id:"right"===t?"arrow_right":"arrow_left",action_id:"click",event_time:Date.now(),content_id:this.props.movieData.uid,content_type:this.props.movieData._cls};this.props.clickHouseShoot(this.apiUrl,this.apiKey,i)},this.collectCategories=()=>[{title:"РекомендаÑии"},...this.state.selectionsData]}}let i7=(0,l.Ng)(t=>({registration:t.registration,systemInformation:t.systemInformation,profile:t.profile}),i2)(i6);var i8=i(28113),i9=i(23321),ot=i.n(i9);let oe={clickHouseShoot:m.Y3};class oi extends a.PureComponent{componentDidUpdate(t){if(t.movieData){let{_id:e}=t.movieData,{_id:i}=this.props.movieData,{visible:o}=this.state;i!==e&&o&&this.setState({visible:!o})}}componentDidMount(){this.setState({nojs:!1})}componentWillUnmount(){this.setState({visible:!1})}render(){let{data:t,bannerData:e}=this.props,{visible:i,nojs:s}=this.state,r=t.split("</p>"),l=r[0].replace("<p>","").length;return(0,o.jsxs)(a.Fragment,{children:[(0,o.jsxs)("div",{className:"".concat(ot().product__subject),children:[(0,o.jsx)("h2",{children:"СÑжеÑ"}),i?(0,o.jsx)("div",{className:ot()["product__subject-content"],dangerouslySetInnerHTML:{__html:t}}):(0,o.jsx)("div",{className:ot()["product__subject-content"],children:(0,o.jsxs)("p",{children:[r[0].replace("<p>",""),"."===r[0].replace("<p>","")[l-1]?"..":"..."]})}),!s&&(0,o.jsxs)("div",{className:ot()["product__subject-more"],onClick:this.handleMore,children:[(0,o.jsx)("div",{className:ot()["product__subject-more_text"],children:i?"СвеÑнÑÑÑ":"ÐоказаÑÑ ÐµÑÑ"}),(0,o.jsx)("img",{src:"/static/images/product/arrow-down.svg",className:"".concat(ot()["product__subject-more_image"]," ").concat(i?ot().rotate:""),alt:"arrow",width:24,height:24})]})]}),e&&"subject"===e.position&&(0,o.jsx)(t$.A,{bannerData:e,movieData:this.props.movieData})]})}constructor(...t){super(...t),this.state={visible:!1,nojs:!0},this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.handleMore=()=>{let{visible:t}=this.state;this.setState({visible:!t},()=>{let{clickHouseData:e}=this.props.systemInformation,i={...e,action_id:"click",action_result:t?"hide":"open",block_type:"block",block_attributes_id:"plot",product_id:this.props.movieData._id,element_type:"link",element_attributes_text:t?"СвеÑнÑÑÑ":"ÐоказаÑÑ ÐµÑÑ",element_attributes_id:t?"show_less":"show_more",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,i)})}}}let oo=(0,l.Ng)(t=>({registration:t.registration,systemInformation:t.systemInformation,profile:t.profile}),oe)(oi);var os=i(63480),or=i(9515),oa=i(39710),ol=i(90424),on=i(31083),oc=i(60521),o_=i(93931),od=i.n(o_);function op(t){let{yearSubMonthlyPrice:e,currentCurrency:i,isFreeContentFlow:s}=t,a=(0,l.wA)(),n=(0,l.d4)(t=>t.registration.authData),c=(0,l.d4)(t=>
1t.registration.tariffs),d=(0,l.d4)(t=>t.profile.onboardingTrailer),{renderMobile:p}=(0,l.d4)(t=>t.systemInformation),u=(0,_.pK)(c);return((0,_.EE)(null==n?void 0:n.trial_is_available,u),n&&(null==n?void 0:n.subscriptions)&&(null==n?void 0:n.subscriptions.length))?null:(0,o.jsx)("div",{className:z()(od().benefits,{[od().onboarding]:d,[od().bottom]:s}),onClick:()=>{(null==n?void 0:n.virtual)===!0?r().push("/auth"):a((0,tG.bo)())},children:(0,o.jsxs)("ul",{className:od().advantages__list,children:[(0,o.jsxs)("li",{className:od().advantages__item,children:[(0,o.jsx)(ti(),{loader:_.R2,className:od().advantages__item__image,src:"/static/images/product/card.svg",width:p?32:64,height:p?32:64,alt:"catalogue"}),(0,o.jsxs)("div",{className:od().advantages__item__description,children:[(0,o.jsx)("div",{className:od().advantages__item__title,children:"Ðез ÑÐµÐºÐ»Ð°Ð¼Ñ Ð¸ доплаÑ"}),(0,o.jsx)("div",{className:od().advantages__item__text,children:"ÐÐ´Ð¸Ð½Ð°Ñ Ð¿Ð¾Ð´Ð¿Ð¸Ñка, в коÑоÑÑÑ Ð²Ñ
Ð¾Ð´Ð¸Ñ Ð²ÑÑ"})]}),(0,o.jsx)("div",{className:od().devider__gradient})]}),(0,o.jsxs)("li",{className:od().advantages__item,children:[(0,o.jsx)(ti(),{loader:_.R2,className:od().advantages__item__image,src:"/static/images/product/movie.svg",width:p?32:64,height:p?32:64,alt:"stars"}),(0,o.jsxs)("div",{className:od().advantages__item__description,children:[(0,o.jsx)("div",{className:od().advantages__item__title,children:"100+ Ñ
иÑов START"}),(0,o.jsx)("div",{className:od().advantages__item__text,children:"ÐкÑклÑзивнÑе пÑемÑеÑÑ ÐºÐ°Ð¶Ð´ÑÑ Ð½ÐµÐ´ÐµÐ»Ñ"})]}),(0,o.jsx)("div",{className:od().devider__gradient})]}),(0,o.jsxs)("li",{className:od().advantages__item,children:[(0,o.jsx)(ti(),{loader:_.R2,className:od().advantages__item__image,src:"/static/images/product/camera.svg",width:p?32:64,height:p?32:64,alt:"gift"}),(0,o.jsxs)("div",{className:od().advantages__item__description,children:[(0,o.jsx)("div",{className:od().advantages__item__title,children:"100+ Ñелеканалов"}),(0,o.jsx)("div",{className:od().advantages__item__text,children:"ÐоÑÑÑÐ¿Ð½Ñ Ð½Ð° лÑбом ÑÑÑÑойÑÑве"})]})]})]})})}let ou={genres:2,countries:2},oh={HORIZONTAL:"/static/images/V2/playlist/default_playlist_placeholder_horizontal.svg",VERTICAL:"/static/images/V2/playlist/default_playlist_placeholder_vertical.svg"};var om=i(65027),ov=i.n(om);let og=t=>{let{is_preview:e,movieData:i,nojs:s}=t,c=(0,Q.A)(),_=(0,Z.A)(),d=(0,X.A)(),p=(0,l.wA)(),u=(0,l.d4)(t=>t.systemInformation),h=(0,l.d4)(t=>t.registration),g=(0,l.d4)(t=>t.profile),[b,k]=(0,a.useState)(!0),{locale:f,documentClientWidth:x,config:y}=u,{authData:w}=h,T=(0,ts.JP)({alias:null==i?void 0:i.alias,config:y}),S=(0,ts.MY)(T,ts.Qh.OLDSKUL),j=async(t,e)=>{let i="".concat(c).concat(n.PI.favorites).concat(w.profile_id).concat(_);try{(await fetch(i,{credentials:"include",method:e?"DELETE":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_id:t})})).status<400&&p((0,F.Jb)(w.profile_id,c,_,f))}catch(t){console.error(t)}},C=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;d({action_id:t,screen_type:"/"===r().pathname?"main":"product",screen_attributes_id:r().asPath.replace("/watch/","")||"main",block_type:"popup",block_attributes_id:e,..."click"===t&&{element_type:"button",element_attributes_id:"cross"}})},B=t=>{let o=sessionStorage.getItem("announcePremierPopupShown");t?(p((0,tt.nD)({text:"<span>УбÑали из Ñаздела \xabÐоÑ\xbb</span>",onCrossClickCallback:()=>C("click","notification_success_remove_from_favorites"),withProgressBar:!0,closeIn:2e3,variant:"addedToFavorites"})),C("popupview","notification_success_remove_from_favorites")):!o&&e?p((0,v.YF)(!0,null==i?void 0:i.uid)):(p((0,tt.nD)({text:"<span>Ðобавили в \xabÐоÑ\xbb</span>",onCrossClickCallback:()=>C("click","notification_success_add_to_favorites"),withProgressBar:!0,closeIn:2e3,variant:"addedToFavorites"})),C("popupview","notification_success_add_to_favorites"))},N=t=>{let{clickHouseData:e}=u,{_id:o,_cls:s,uid:r,background:a,logotype:l,badges:n}=i,{authData:d}=h;if((null==d?void 0:d.virtual)===!1){let i={...e,action_id:"click",action_result:t?"remove":"add",block_type:"block",block_attributes_id:"top",content_id:r,product_id:r,action_attributes_str:r,content_type:s,element_type:"button",element_attributes_id:t?"delete_favorites":"add_favorites",event_time:new Date().getTime()};p((0,m.Y3)(c,_,i)),j(r,t),B(t)}else p((0,v.t0)({visible:!0,uid:r,background:a.image_15x,logotype:l.image_15x,badges:n}))},P=t=>
1{if(Array.isArray(null==g?void 0:g.favorites)){let e=null==g?void 0:g.favorites.map(t=>t._id);return null==e?void 0:e.includes(t)}return!1};return(0,a.useEffect)(()=>{"loaded"===g.favoritesStatus&&k(!1)},[g]),!s&b?(0,o.jsx)(to.$n,{size:to.GO.REGULAR,variant:S?to.Vt.OUTLINE:to.Vt.SECONDARY,className:ov()["TopBlock__small-buttons"],isLoading:!0}):e?x>1024&&(0,o.jsx)(to.$n,{size:to.GO.REGULAR,className:ov()["TopBlock__favorites-big"],title:"ÐÑÐ´Ñ ÑмоÑÑеÑÑ",onClick:()=>{N(P(i._id))},"data-testid":"topblock_favorites",iconLeft:(0,o.jsx)("img",{src:"/static/images/icons/favorite".concat(P(i._id)?"_active":"",".svg"),alt:"favorites"}),iconSize:250}):(0,o.jsx)(to.$n,{size:to.GO.REGULAR,variant:S?to.Vt.OUTLINE:to.Vt.SECONDARY,className:ov()["TopBlock__small-buttons"],onClick:()=>{N(P(i._id))},"data-testid":"topblock_favorites",iconLeft:(0,o.jsx)("img",{src:"/static/images/icons/favorite".concat(P(i._id)?"_active":"",".svg"),alt:"favorites"}),iconSize:250})},ob=t=>{let{toRightShareBlock:e}=t,i=(0,X.A)(),r=(0,s.useRouter)(),n=(0,l.d4)(t=>t.systemInformation),c=(0,l.d4)(t=>t.movie),[_,d]=(0,a.useState)(!1),[p,u]=(0,a.useState)(!1),h=(0,a.useRef)(null),m=(0,a.useRef)(null),v=(0,a.useRef)(null),{host:g,config:b}=n,k=(0,ts.JP)({alias:null==c?void 0:c.movie.alias,config:b}),f=(0,ts.MY)(k,ts.Qh.OLDSKUL),x=t=>{d(t=>!t),w(t)},y=t=>{(null==t?void 0:t.target)!==(null==v?void 0:v.current)&&(null==t?void 0:t.target)!==(null==m?void 0:m.current)&&(null==h?void 0:h.current)&&d(!1)},w=t=>{var e,o,s;let{query:a}=r,l=null===(e=a.params)||void 0===e?void 0:e[0],n=null===(o=a.params)||void 0===o?void 0:o[1],_=null===(s=a.params)||void 0===s?void 0:s[2];i({action_id:"click",screen_type:"product",screen_attributes_id:"/".concat(l).concat(n?"/".concat(n):"").concat(_?"/".concat(_):""),product_id:c.movie.uid,content_id:(()=>{var t,e;if(!c.movie.items)return c.movie.uid;if(isNaN(n)){let t=null==n?void 0:n.split("-")[1],i=null===(e=c.movie)||void 0===e?void 0:e.items[t-1];return(null==i?void 0:i.uid)||null}let i=null;return null===(t=c.movie)||void 0===t||t.items.map(t=>{var e;let o=(null===(e=t.items)||void 0===e?void 0:e.length)&&(null==t?void 0:t.items.find(t=>t.start_id==n));o&&(i=(null==o?void 0:o.uid)||null)}),i})(),content_type:c.movie._cls,block_type:"block",block_attributes_id:"top",element_type:"button",element_attributes_id:t})};return(0,a.useEffect)(()=>(u("".concat(window.location.origin).concat(window.location.pathname)),document.addEventListener("click",t=>y(t)),document.removeEventListener("click",()=>y())),[r.asPath]),(0,o.jsxs)("div",{style:{position:"relative"},className:ov()["share-button-wrap"],children:[(0,o.jsx)(to.$n,{variant:f?to.Vt.OUTLINE:to.Vt.SECONDARY,ref:m,className:ov()["TopBlock__small-buttons"],onClick:()=>x("share"),iconLeft:(0,o.jsx)("img",{ref:v,src:"/static/images/product/share.svg",alt:"share"}),iconSize:250}),_&&(0,o.jsxs)("div",{ref:h,className:z()({[ov()["TopBlock__share-block"]]:!0,[ov()["TopBlock__share-block-right"]]:e}),children:[(0,o.jsxs)(eR.rx,{onClick:()=>w("share_vk"),url:p||g,className:ov()["TopBlock__share-block__btn"],children:[(0,o.jsx)("img",{src:"/static/images/product/vk.svg",alt:"vk"}),(0,o.jsx)("span",{children:"ÐÐонÑакÑе"}),(0,o.jsx)("div",{cn:ov()["TopBlock__share-block__btn__line"]})]}),(0,o.jsxs)(eR.VI,{onClick:()=>w("share_tg"),url:p||g,className:ov()["TopBlock__share-block__btn"],children:[(0,o.jsx)("img",{src:"/static/images/product/telegram.svg",alt:"tg"}),(0,o.jsx)("span",{children:"Telegram"}),(0,o.jsx)("div",{cn:ov()["TopBlock__share-block__btn__line"]})]}),(0,o.jsxs)(eR.AC,{onClick:()=>w("share_ok"),url:p||g,className:ov()["TopBlock__share-block__btn"],children:[(0,o.jsx)("img",{src:"/static/images/product/ok.svg",alt:"ok"}),(0,o.jsx)("span",{children:"ÐдноклаÑÑники"})]})]})]})},ok=t=>{let{className:e,playButtonText:i,trailerButtonText:s,showPlayIcon:r=!0,hidePlayButton:n=!1,hideTrailerButton:c=!1,movieData:d,hasShowProgressButton:p,isLoading:u,nojs:h,buttonsLoadedFunc:m,onTrailerClick:v,onPlayClick:g,onPlayClickFreeContent:b,forFreeContentBtn:k,btnTextFreeContentFlow:f}=t,x=(0,tY.A)(),y=k&&(null==x?void 0:x.width)>1024,w=(0,l.d4)(t=>t.systemInformation),[T,S]=(0,a.useState)(!1),j=(0,ts.JP)({alias:d.alias,config:w.config}),C=(0,ts.MY)(j,ts.Qh.OLDSKUL);return(0,a.useEffect)(()=>{(void 0===p||null!==p)&&m&&m()}
1,[p]),(0,a.useEffect)(()=>{let t=!!i;r&&!r||t&&!i?S(!1):S(!0)},[r,i]),(0,o.jsxs)("div",{className:z()(ov()["TopBlock__buttons-wrap"],{[ov()["TopBlock__buttons-wrap-column"]]:y}),children:[(null==x?void 0:x.width)>1024&&(u||!T?(0,o.jsx)(to.$n,{size:to.GO.REGULAR,iconSize:250,className:z()(ov()["TopBlock__button-spinner"],e),isLoading:!0}):(0,o.jsx)(to.$n,{size:to.GO.REGULAR,className:z()(ov()["TopBlock__button-play"],{[ov().invisible]:n},{[ov().fullWidth]:y},e),title:T&&i,onClick:g,"data-testid":"topblock_play",iconLeft:T&&!y&&(0,o.jsx)(ti(),{loader:_.R2,src:"/static/images/movie/play.svg",width:16,height:18,alt:"play"}),iconSize:200})),(0,o.jsxs)("div",{className:ov()["TopBlock__buttons-wrap-right"],children:[y&&(0,o.jsx)(to.$n,{size:to.GO.REGULAR,variant:C?to.Vt.OUTLINE:to.Vt.SECONDARY,title:f,className:z()(ov()["TopBlock__play-trailer"]),onClick:b,iconLeft:(0,o.jsx)("img",{src:"/static/images/product/play_outlined.svg",alt:"play"}),iconSize:250}),!c&&(0,o.jsx)(to.$n,{size:to.GO.REGULAR,variant:C?to.Vt.OUTLINE:to.Vt.SECONDARY,title:!y&&s,className:z()(ov()["TopBlock__play-trailer"]),onClick:v,"data-testid":"topblock_trailer",iconLeft:(0,o.jsx)("img",{src:"/static/images/product/kino.svg",alt:"kino"}),iconSize:250}),(0,o.jsx)(og,{isMobileBig:c,movieData:d,nojs:h}),(null==x?void 0:x.width)>767&&(0,o.jsx)(ob,{})]})]})};var of=i(39738);class ox extends a.Component{componentDidMount(){let{subscribeForProduct:t}=this.props.pushData;(0,_.Ri)("isFreeContentFlow")&&(0,_.Yj)("isFreeContentFlow"),t&&r().events.on("routeChangeComplete",()=>{this.props.subscribeForProduct(!1)}),r().events.on("beforeHistoryChange",()=>{this.setState({subscribeAnimate:!1})}),this.setState({browserWidth:window.innerWidth}),this.props.setTopBlockFunc(this.reportAppearance)}componentDidUpdate(t){var e,i,o,s,r,a,l,n;let{authData:d}=this.props.registration,{hash:p}=window.location,{childProfile:u,lastProgress:h,lastProgressId:m,autoTrailer:v,pendingSubscriptionLoadingStatus:g,favoritesStatus:b}=this.props.profile,{alias:k}=this.props.movieData,{asPath:f}=this.props.router,{asPath:x}=t.router,{_id:y}=this.props.movieData,{_id:w,alias:T}=t.movieData,{forcedFavoriteAlias:S}=this.props.profile,{forcedFavoriteAlias:j}=t.profile,{isAuthAndProfileDataLoading:C}=this.state,{windowInnerWidth:B}=t.systemInformation,{windowInnerWidth:N,config:P}=this.props.systemInformation;if(d&&(y!==w||!this.loadBanner)&&(this.loadBanner=!0,this.getBanner()),d&&!(null==d?void 0:d.virtual)&&(0,_.Ri)("fromProductPageWithFreeContent")&&!this.checkFreeContentFlow&&(this.checkFreeContentFlow=!0,(0,_.Yj)("fromProductPageWithFreeContent"),(0,or.j)({ratingAge:this.props.movieData.rating_age,childProfile:u,parentalControl:this.props.parentalControl,dispatch:this.props.dispatch,successCallback:async()=>{}})),(y!==w||f!==x&&(f!=="/watch/".concat(k)||!f.includes("season"))&&this.autoTrailer)&&(this.autoTrailer=!1,this.autoTrailerShown=!1,this.setState({isOnboarding:!1,isContentVisible:!0,isMetaShifted:!0,isMuted:!0,launch:!0}),this.props.setAutoTrailer(!0)),v||this.autoTrailerShown||(this.autoTrailerShown=!0,this.handleTrailerEnded()),N&&B&&N!==B&&this.resizeHandler(),!this.loadAuthData&&d&&((null==d?void 0:d.virtual)===!1&&g===c.Gd.LOADED||(null==d?void 0:d.virtual)===!0)&&"loaded"===b&&(this.loadAuthData=!0,this.setState({isAuthAndProfileDataLoading:!1})),this.loadAuthData&&S&&S===k&&(!this.checkedForcedFavorites||T!==k||S!==j)&&(this.checkedForcedFavorites=!0,this.favoritesClickHandler(!1,!0)),d&&(null==d?void 0:d.virtual)&&"#playproduct"===p&&(0,_.TV)("returnToProduct",window.location.pathname),!d||(null==d?void 0:d.profile_for_child)||"#playproduct"!==p||this.loadProduct||(this.loadProduct=!0,this.initializePlayer()),!d||(null==d?void 0:d.profile_for_child)||"#playtrailer"!==p||this.loadTrailer||(this.loadTrailer=!0,this.trailerClickHandler()),this.props.movieData&&h&&m&&!this.showButtonChecked&&!C){let{_cls:t,items:e,uid:i}=this.props.movieData,o=(null==e?void 0:e.length)&&(null===(l=e[0])||void 0===l?void 0:l.items.length)?null===(n=e[0])||void 0===n?void 0:n.items[0]:{};this.showButtonChecked=!0,m===i?"Product.Series"===t?h?h.content_id!==o.uid||h.content_id===o.uid&&h.position>0?this.setState({showProgressButton:!0,playButtonText:this.playButtonTextMake("СмоÑÑеÑÑ",!0)}):this.setState({showProgressButton:!1,playButtonText:this.playButtonTextMake("СмоÑÑеÑÑ",!1)}):this.setState({showProgressButton:!1}):h?h.position>0?this.setState({showProgressButton:!0,playButtonText:this.playButtonTextMake("СмоÑÑеÑÑ",!0)}):this.setState({showProgressButton:!1,playButtonText:this.playButtonTextMake("СмоÑÑеÑÑ",!1)}):this.setState({showProgressButton:!1}):this.setState({showProgressButton:!1})}if(this.showButtonChecked&&h&&t.profile.lastProgress&&(h.content_id!==t.profile.lastProgress.content_id||h.position!==t.profile.lastProgress.position)&&(this.showButtonChecked=!1),this.showButtonChecked&&(null===(e=this.props.movieData)||void 0===e?void 0:e._id)!==(null===(i=t.movieData)||void 0===i?void 0:i._id)&&(this.showButtonChecked=!1),this.showButtonChecked&&h&&m&&t.profile.lastProgressId&&m!==t.profile.lastProgressId&&(this.showButtonChecked=!1),!this.state.isChild&&(null==d?void 0:d.profile_for_child)&&this.setState({isChild:!0}),d&&(null===(s=window)||void 0===s?void 0:null===(o=s.history)||void 0===o?void 0:o.length)>1&&!this.isReturnable&&(this.isReturnable=!0,this.setState({canReturn:!0})),d&&!this.loadTopBlockFeeHeight){this.loadTopBlockFeeHeight=!0;let t=N<=c.af&&this.topBlockFeeRef.current?this.topBlockFeeRef.current.getBoundingClientRect().height:0;document.documentElement.style.setProperty("--topblock-fee-height","".concat(t,"px"))}(null==d?void 0:null===(r=d.subscriptions)||void 0===r?void 0:r.length)&&(null==P?void 0:null===(a=P.blocked_content_tv)||void 0===a?void 0:a.length)&&!this.visibleBlockContentText&&(this.visibleBlockContentText=!0,this.setState({visibleBlockContentText:this.checkBlockedContentDate(null==P?void 0:P.blocked_content_tv)}))}componentWillUnmount(){let{authData:t}=this.props.registration,e=(0,_.G6)((null==t?void 0:t.ab)||[],"Benefits_screen_customization","Test_Benefits_screen_customization");this.autoTrailer=!1,this.autoTrailerShown=!1,this.isReturnable=!1,this.props.setOnboardingTrailer(!1),[this.contentVisibleTimeout,this.contentHideTimeout,this.onboardingVisibleTimeout,this.onboardingHideTimeout].map(t=>clearTimeout(t)),this.props.setAutoTrailer(!0),document.documentElement.style.removeProperty("--topblock-fee-height"),e&&localStorage.removeItem("bgUrl"),this.props.toggleForceOpenSubscriptionOfferPopup(!1)}render(){var t,e,i,s,r,l;let{page:n,bannerData:d,isNewEpisodePage:p,isInternalPageOn:u,numbersOfAvailableSeasons:h,movieData:m,noJs:v}=this.props,{title:g,alias:b,background:k,vertical:f,logotype:x,is_preview:y,is_disabled:w,genres:T,_cls:S,quote:j,items:C,rating_age:B,rating_start:N,duration:P,for_kids:I,badges:D,unavailable_by_geo:A,origin_countries:E,trailer_src:R,subscriptions:L,is_free:M}=this.props.movieData,{childProfile:U,currentProfile:H,profileList:O}=this.props.profile,{cookieAgreement:F,config:W,deviceData:K,renderMobile:V,renderTablet:Y}=this.props.systemInformation,{authData:G,tariffs:J,subscriptionType:q}=this.props.registration,{forceOpenSubscriptionOfferPopup:Z}=this.props.toggle,{asPath:Q}=this.props.router,{posterBannerData:X,browserWidth:$,showProgressButton:tt,isOnboarding:te,canReturn:tr,mlk_app:ta,isAuthAndProfileDataLoading:tl,visibleBlockContentText:tn}=this.state,tc=Math.ceil(P/6e4),t_=G&&!ta,td=(null==D?void 0:D.filter(t=>"logo"===t.type))||null,tp=(null==D?void 0:D.find(t=>"start"===t.type))||null,tu=null==D?void 0:D.filter(t=>"badge"===t.type&&"single"===t.structure&&t.under_logo_position),th=null==D?void 0:D.filter(t=>"badge"===t.type&&"double"===t.structure&&t.under_logo_position),tm=(null==G?void 0:G.virtual)===!0,tv=(0,_.pK)(J),tg=(0,_.EE)(null==G?void 0:G.trial_is_available,tv),tb=G&&G.trial_is_available,tk=(null==G?void 0:G.type)==="EX_PAID"||(null==G?void 0:G.type)==="EX_TRIAL"||(null==G?void 0:G.type)==="EX_PROMO",tf=(null==G?void 0:G.virtual)===!1&&G.subscriptions&&G.subscriptions.length,tx=!(0,_.xM)(L,q),ty=(M||(null==C?void 0:C.find(t=>null==t?void 0:t.is_free))||(null===(e=C[0])||void 0===e?void 0:null===(t=e.items[0])||void 0===t?void 0:t.is_free)||(null===(s=C[0])||void 0===s?void 0:null===(i=s.items[0])||void 0===i?void 0:i.free_for_authorized))&&(tm||tx||tb||tk),tw="Product.Movie"===S?"СмоÑÑеÑÑ ÑилÑм":"СмоÑÑеÑÑ 1-Ñ ÑеÑиÑ",tT=[{link:"".concat(H&&H.child?"":"Product.Movie"===S?"/movies":"/series"),title:"".concat("Movie"===S.replace("Product.","")?"ФилÑмÑ":"СеÑиалÑ"," онлайн"),name:S&&S.length>0?"".concat("Movie"===S.replace("Product.","")?"ФилÑмÑ":"СеÑиалÑ"):"ÐаÑегоÑÐ¸Ñ Ð½Ðµ Ñказана"},{link:T&&T.length>0?U&&!["РазвиÑие","РазвлеÑениÑ","ÐÑзÑка"].includes(T[0].title)?"":this.getLinkForGenres(T[0]):"/genres",title:"".concat("Movie"===S.replace("Product.","")?"ФилÑмÑ":"СеÑиалÑ"," ").concat(T&&T.length>0?T[0].title:"ÐÐ°Ð½Ñ Ð½Ðµ Ñказан"," онлайн"),name:T&&T.length>0?T[0].title:"ÐÐ°Ð½Ñ Ð½Ðµ Ñказан"},{link:n?"/watch/".concat(b):null,title:"".concat(g).concat(n||G&&(null==G?void 0:G.virtual)!==!0?"":" онлайн"),name:"".concat(g).concat(n||G&&(null==G?void 0:G.virtual)!==!0?"":" онлайн")}];tT=n?tT.concat(this.breadcrumbsPage()):tT;
1let tS=(null==f?void 0:f.image_15x)&&(V||"mobile_web"===K)?this.handleVerticalSource("".concat(this.apiUrl).concat(null==f?void 0:f.image_15x)):oh.VERTICAL,tj=(null==k?void 0:k.image_15x)&&(V||"mobile_web"===K)?this.handleBackgroundBlurSource("".concat(this.apiUrl).concat(null==k?void 0:k.image_1x)):oh.HORIZONTAL,tC=$?$>767:!V||Y,tB=$?$<768:V&&!Y,tN=Q?null===(r=Q.slice(6))||void 0===r?void 0:r.slice(1):"",tP=(0,_.Ri)("channel")&&"settings"!==(0,_.Ri)("channel"),tI="".concat(tv," ").concat((0,_.jQ)(["денÑ","днÑ","дней"],tv)),tD=this.props.productCustomization||(0,ts.JP)({alias:b,config:W}),tE=(0,ts.dM)(tD),tR=(0,ts.MY)(tD,ts.Qh.HOLOD);return(0,o.jsxs)(a.Fragment,{children:[d&&"topblock-top"===d.position&&(0,o.jsx)(t$.A,{bannerData:d,movieData:this.props.movieData}),(0,o.jsxs)("div",{className:z()({[ov().TopBlock_wrapper_redesign]:!n||"seasons"===n||p,[ov().TopBlock_wrapper_holod]:tR,[ov().small]:n&&"seasons"!==n&&!p&&!u,[ov()["TopBlock-wrapper-small_redesign"]]:n&&"seasons"!==n&&!p&&u,[ov()["geo-small"]]:n&&"seasons"!==n&&!p&&A}),children:[(!n||"seasons"===n||p)&&!!$&&$<768&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:z()(ov().TopBlock__share),children:(0,o.jsx)(ob,{})}),tr&&(0,o.jsx)(to.$n,{variant:to.Vt.SECONDARY,className:ov().TopBlock__back,onClick:()=>this.handleReturn(),iconLeft:(0,o.jsx)(ti(),{loader:_.R2,src:"/static/images/product/back.svg",alt:"back",width:24,height:24}),iconSize:250})]}),(0,o.jsxs)("div",{className:z()(ov().TopBlock,{[ov().small]:n&&"seasons"!==n&&!p,[ov()["geo-small"]]:n&&"seasons"!==n&&!u&&A,[ov()["TopBlock_tvoe-serdce-budet-razbito"]]:tE,[ov().TopBlock_holod]:tR}),children:[(0,o.jsxs)(o.Fragment,{children:[(!n||"seasons"===n||p)&&!y&&!A&&!(H&&H.child&&!I)&&!v&&(0,o.jsx)("div",{className:ov().TopBlock__play,children:(0,o.jsx)("img",{src:"/static/images/product/button-play.svg",onClick:()=>this.initializePlayerLogo(ty),alt:"play"})}),u?null:k&&k.image_15x&&(!n||"seasons"===n||"episode"===n)&&tC?(0,o.jsx)("div",{className:z()(ov().TopBlock__background),children:(()=>{let t="".concat(this.apiUrl).concat(k.image_15x),e=e=>(0,_.bZ)(t,e);return(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{media:"(max-width:767px)",srcSet:e("1290x726")}),(0,o.jsx)("source",{media:"(max-width:1024px)",srcSet:e("1020x606")}),(0,o.jsx)("source",{media:"(max-width:1279px)",srcSet:e("1754x990")}),(0,o.jsx)("img",{src:e("1754x1014"),width:V?430:1169,height:V?242:676,fetchPriority:"high",alt:"".concat(g,"_bg")})]})})()}):y?null:(0,o.jsxs)("div",{className:z()(ov().TopBlock__background,ov().TopBlock__background__no_poster),style:{backgroundImage:"url('/static/images/product/no-background.webp')"},children:[(0,o.jsx)("div",{className:ov().TopBlock__shadow}),(0,o.jsx)("div",{className:ov()["TopBlock__shadow-bottom"]})]})]}),u?(0,o.jsxs)("div",{className:ov().TopBlock__redesign_exp,children:[(0,o.jsx)(tA(),{prefetch:!1,href:"/watch/".concat(b),children:(0,o.jsx)(to.$n,{size:to.GO.SMALL,variant:to.Vt.SECONDARY,title:$>767?"Product.Series"===S?"Ð ÑеÑиалÑ":"Ð ÑилÑмÑ":null,"aria-label":"exp__backButton",iconLeft:(0,o.jsx)("img",{src:"/static/images/product/arrow-medium-button.svg",alt:"arrow"}),iconSize:200})}),(0,o.jsx)("div",{className:ov().TopBlock__redesign_exp__breadcrumbsWrap,children:(0,o.jsx)(on.A,{breadcrumbs:tT,breadcrumbsClass:"breadcrumbs_movie__internal_redisign"})}),(0,o.jsx)("span",{className:ov().TopBlock__redesign_exp__rating,children:this.getAgeRating()})]}):(0,o.jsx)(on.A,{breadcrumbs:tT,breadcrumbsClass:"breadcrumbs_movie"}),n&&"seasons"!==n&&!p&&!u&&(0,o.jsx)("div",{className:ov()["TopBlock__rating-age"],children:this.getAgeRating()}),!u&&(0,o.jsxs)("div",{className:z()(ov()["left-wrapper"],{[ov().onboarding]:te,[ov().registered]:tf,[ov().bottom]:n&&"seasons"!==n&&!p}),onMouseOver:t=>this.setContentVisible(t,!0),onMouseOut:t=>this.setContentVisible(t,!1),onFocus:t=>this.setContentVisible(t,!0),onBlur:t=>this.setContentVisible(t,!1),children:[tB&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ti(),{priority:!0,src:tj,className:ov().TopBlock__blur,loader:_.R2,width:384,height:242,alt:"".concat(g,"_blur")}),(0,o.jsx)(ti(),{loading:"eager",src:tS,className:ov().TopBlock__poster,loader:_.R2,width:360,height:516,alt:"".concat(g,"_bg")},tS)]}),(0,o.jsxs)("div",{className:z()(ov().TopBlock__description),children:[(null==td?void 0:td.length)>
10&&!(n&&"seasons"!==n&&!p&&this.showFirstBadgeHandle(y,x))?td.map(t=>(0,o.jsx)("div",{className:ov().TopBlock__logotype_badge,children:(0,o.jsx)(ti(),{loader:_.R2,src:"".concat(this.apiUrl).concat((0,_.bZ)(t.image_1x)),alt:"badge",width:88,height:18})},t.id)):null,x&&x.image_15x&&(!n||"seasons"===n||p)&&$>767?(0,o.jsx)("div",{className:ov().TopBlock__logotype_wrapper,children:(0,o.jsx)(ti(),{loader:_.R2,className:ov().TopBlock__logotype,src:"".concat(this.apiUrl).concat(x.image_15x.replace("quality(70)","format(webp)")),alt:"logo",width:256,height:124},x.image_15x)}):!y||(null==x?void 0:x.image_15x)||n&&"seasons"!==n&&!p?$&&$<768?(0,o.jsx)("p",{className:ov().TopBlock__title,children:g}):null:(0,o.jsxs)("h1",{className:ov().TopBlock__noLogotype_title,children:["Product.Movie"===S?"ФилÑм":"СеÑиал"," ",g," ",tm&&"â ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½"]}),(tp||(null==tu?void 0:tu.length)||(null==th?void 0:th.length))&&!(n&&"seasons"!==n&&!p)?(0,o.jsxs)("div",{className:z()(ov().TopBlock__start_badge,{[ov().TopBlock__start_badge__left]:!(null==x?void 0:x.image_15x)}),children:[tp?(0,o.jsx)(ti(),{loader:_.R2,src:"".concat(this.apiUrl).concat((0,_.bZ)(tp.image_1x)),alt:"badgeStart",width:V?52:78,height:V?16:24}):null,(null==tu?void 0:tu.length)?tu.map(t=>(0,o.jsx)(iq.Ex,{className:ov().TopBlock__start_badge_single,text:t.text,textColor:t.text_color,bgColor:t.background_color},t.id)):null,(null==th?void 0:th.length)>0&&(!(null==tu?void 0:tu.length)||tu.length>0&&"desktop_web"===K)?th.map(t=>(0,o.jsx)(iq.L$,{className:ov().TopBlock__start_badge_double,text:t.text,textRight:t.text_right,textColor:t.text_color,textColorRight:t.text_color_right,bgColor:t.background_color,bgColorRight:t.background_color_right},t.id)):null]}):null,(!n||"seasons"===n||p)&&j&&j.length>0&&(0,o.jsx)("div",{ref:this.descriptionRef,className:z()(ov().TopBlock__info,ov()["not-show-mobile"]),children:(0,o.jsxs)("span",{children:[" ",(0,c.IN)(140,j)," "]})})]}),(!n||"seasons"===n||p)&&(0,o.jsxs)("div",{ref:this.descriptionShortRef,className:ov()["TopBlock__info-short"],children:[N&&!y?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"".concat(N>=7?ov()["TopBlock__info-short-rating"]:""),children:(0,_.bH)(N)}),(0,o.jsx)(ti(),{loader:_.R2,className:ov()["TopBlock__info-short-circle"],src:"/static/images/product/circle.svg",alt:"circle",width:3,height:4})]}):null,(0,o.jsxs)("span",{children:[this.getSeasonsYear()?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:ov()["TopBlock__info-short-value"],content:"".concat(this.getSeasonsYear()),children:(0,o.jsx)(tA(),{prefetch:!1,href:"".concat(this.getLinkForYear()),onClick:()=>{var t;return this.badgeClickHandler(null!==(t=this.getSeasonsYear())&&void 0!==t?t:"")},children:null!==(l=this.getSeasonsYear())&&void 0!==l?l:""})}),(0,o.jsx)(ti(),{loader:_.R2,className:ov()["TopBlock__info-short-circle"],src:"/static/images/product/circle.svg",alt:"circle",width:3,height:4})]}):null,"Product.Series"===S&&C.length>0?(0,o.jsxs)("span",{className:ov()["TopBlock__info-short-value"],children:[this.getLengthSeasons(C,h),(0,o.jsx)(ti(),{loader:_.R2,className:ov()["TopBlock__info-short-circle"],src:"/static/images/product/circle.svg",alt:"circle",width:3,height:4})]}):null,(0,o.jsx)("span",{className:ov()["TopBlock__info-short-value"],children:"Product.Movie"===S?0===P?null:(0,o.jsxs)(o.Fragment,{children:[tc," мин",(0,o.jsx)(ti(),{loader:_.R2,className:ov()["TopBlock__info-short-circle"],src:"/static/images/product/circle.svg",alt:"circle",width:3,height:4})]}):null}),(0,o.jsx)("span",{className:ov()["TopBlock__info-short-value"],children:B&&null!==B?"".concat(B):"0+"}),(null==T?void 0:T.length)||(null==E?void 0:E.length)?(0,o.jsxs)("div",{className:ov()["TopBlock__info-short-break"],children:[0!==$&&$<768&&(0,o.jsx)(ti(),{loader:_.R2,className:ov()["TopBlock__info-short-circle"],src:"/static/images/product/circle.svg",alt:"circle",width:3,height:4}),(null==T?void 0:T.length)?(0,o.jsxs)(o.Fragment,{children:[T.slice(0,ou.genres).map((t,e,i)=>(0,o.jsxs)("span",{className:ov()["TopBlock__info-short-value"],children:[(0,o.jsx)(tA(),{prefetch:!1,href:"".concat(this.getLinkForGenres(t)),onClick:()=>this.badgeClickHandler(t.title),children:t.title}),i.length-1===e?"":(0,o.jsx)(o.Fragment,{children:",\xa0"})]},e)),(null==E?void 0:E.length)?(0,o.jsx)(ti(),{loader:_.R2,className:ov()["TopBlock__info-short-circle"],src:"/static/images/product/circle.svg",alt:"circle",width:3,height:4}):null]}):null,(null==E?void 0:E.length)?E.slice(0,ou.countries).map((t,e,i)=>(0,o.jsxs)("span",{className:ov()["TopBlock__info-short-value"],children:[(0,o.jsx)(tA(),{prefetch:!1,href:this.getLinkForCountry(t),onClick:()=>this.badgeClickHandler(t.title),children:t.title}),i.length-1===e?"":(0,o.jsx)(o.Fragment,{children:",\xa0"})]},e)):null]}):null]})]}),A?(0,o.jsxs)("div",{className:ov().TopBlock__unavailable_by_geo,children:[(0,o.jsx)(of.A,{className:ov().TopBlock__geo_image}),(0,o.jsxs)("div",{className:ov().TopBlock__geo_text,children:[(0,o.jsx)("p",{className:ov().TopBlock__geo_text__title,children:"ÐонÑÐµÐ½Ñ Ð½ÐµÐ´Ð¾ÑÑÑпен в\xa0ваÑей ÑÑÑане"}),(0,o.jsx)("p",{className:ov().TopBlock__geo_text__subtitle,children:"ÐÑли\xa0вклÑÑÑн VPN, оÑклÑÑиÑе его"})]})]}):(0,o.jsxs)(o.Fragment,{children:[tx&&ty&&$>c.xW.TABLET_WIDE?this.renderPremiumPriceInfo():null,(0,o.jsx)("div",{className:ov().TopBlock__buttons,children:!tl&&(0,o.jsx)(o.Fragment,{children:!v&&(y||w||h&&0===h.size?(0,o.jsxs)("div",{className:z()(ov()["TopBlock__preview-content"],{}),children:[(0,o.jsx)(og,{is_preview:y,isMobileBig:!R,movieData:this.props.movieData}),R&&!w?(0,o.jsx)(to.$n,{variant:to.Vt.SECONDARY,title:"ТÑейлеÑ",className:ov()["TopBlock__play-trailer"],onClick:this.trailerClickHandler,"data-testid":"topblock_trailer",iconLeft:(0,o.jsx)("img",{src:"/static/images/product/kino.svg",alt:"kino"}),iconSize:250}):null,$>767&&(0,o.jsx)(ob,{toRightShareBlock:!R})]}):(null==G?void 0:G.virtual)===!0?(0,o.jsx)(ok,{forFreeContentBtn:ty,btnTextFreeContentFlow:tw,playButtonText:this.playButtonTextMake(tg?"ÐопÑобоваÑÑ ".concat(tP?"":" ".concat(tI)," беÑплаÑно"):"ÐÑоÑмиÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑкÑ",null,ty),trailerButtonText:"ТÑейлеÑ",hideTrailerButton:!R||w,movieData:this.props.movieData,buttonsLoadedFunc:()=>this.setState({topBlockButtonsLoaded:!0}),showPlayIcon:!1,isLoading:tl,onPlayClick:this.handleClickSubscribe,onPlayClickFreeContent:()=>this.initializePlayerLogo(ty),onTrailerClick:this.trailerClickHandler}):tf&&ty&&tx?(0,o.jsx)(ok,{forFreeContentBtn:ty,btnTextFreeContentFlow:this.playButtonTextMake(tw,ty&&tt&&!Z,ty),playButtonText:ty?"СмоÑÑеÑÑ Ð²Ñе ÑеÑии c PREMIUM":this.playButtonTextMake("СмоÑÑеÑÑ 1-Ñ ÑеÑÐ¸Ñ Ð±ÐµÑплаÑно",tt),trailerButtonText:"ТÑейлеÑ",hidePlayButton:!G,hideTrailerButton:!R||w,movieData:this.props.movieData,buttonsLoadedFunc:()=>this.setState({topBlockButtonsLoaded:!0}),isLoading:tl,onPlayClick:this.initializePlayer,onPlayClickFreeContent:()=>this.initializePlayerLogo(ty),onTrailerClick:this.trailerClickHandler}):tf?(0,o.jsx)(ok,{playButtonText:tx?"СмоÑÑеÑÑ c PREMIUM":this.playButtonTextMake("СмоÑÑеÑÑ",tt),trailerButtonText:"ТÑейлеÑ",hidePlayButton:!G,hideTrailerButton:!R||w,movieData:this.props.movieData,buttonsLoadedFunc:()=>this.setState({topBlockButtonsLoaded:!0}),isLoading:tl,onPlayClick:this.initializePlayer,onTrailerClick:this.trailerClickHandler}):(0,o.jsx)(ok,{forFreeContentBtn:ty,btnTextFreeContentFlow:this.playButtonTextMake(tw,ty&&tt&&!Z,ty),playButtonText:this.playButtonTextMake(tg?"СмоÑÑеÑÑ ".concat(tP?"":" ".concat(tI)," беÑплаÑно"):"ÐÑоÑмиÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑкÑ",null,ty),trailerButtonText:"ТÑейлеÑ",hidePlayButton:!G,showPlayIcon:!1,hideTrailerButton:!R||w,movieData:this.props.movieData,buttonsLoadedFunc:()=>this.setState({topBlockButtonsLoaded:!0}),isLoading:tl,onPlayClick:this.initializePlayer,onPlayClickFreeContent:()=>this.initializePlayerLogo(ty),onTrailerClick:this.trailerClickHandler}))})}),tn&&$>c.xW.TABLET_WIDE?(0,o.jsxs)("div",{className:ov().blocked_content,children:["ÐÐ¾Ð²Ð°Ñ ÑеÑÐ¸Ñ Ñже доÑÑÑпна в пÑиложении START\xa0на\xa0ТÐ. Ðа ÑайÑе Ñ ",this.checkBlockedContentDate(null==W?void 0:W.blocked_content_tv)]}):null,(0,o.jsx)("noscript",{children:(0,o.jsx)("div",{className:"".concat(ov().TopBlock__buttons),children:(0,o.jsx)(ok,{playButtonText:"СмоÑÑеÑÑ 7 дней беÑплаÑно",trailerButtonText:"ТÑейлеÑ",hidePlayButton:!1,showPlayIcon:tb,hideTrailerButton:!0,movieData:this.props.movieData,buttonsLoadedFunc:()=>this.setState({topBlockButtonsLoaded:!0}),onPlayClick:this.initializePlayer,onTrailerClick:this.trailerClickHandler,noJs:!0})})}),tx&&!ty&&$>c.xW.TABLET_WIDE?this.renderPremiumPriceInfo():null]})]}),$>1024&&G&&(!n||"seasons"===n||p)&&(0,o.jsx)(op,{movieData:m,yearSubMonthlyPrice:this.props.yearSubMonthlyPrice,currentCurrency:this.props.currentCurrency,isFreeContentFlow:ty}),$<=1024&&(0,o.jsx)("div",{ref:this.topBlockFeeRef,className:z()(ov().fee,{[ov().registered]:tf,[ov().cookie]:t_&&!F,[ov().webapp]:!0,[ov().reverse]:ty}),children:(0,o.jsxs)(o.Fragment,{children:[ty&&(0,o.jsx)(to.$n,{size:to.GO.MEDIUM,variant:to.Vt.SECONDARY,title:this.playButtonTextMake(tw,tt&&!Z,ty),onClick:()=>this.initializePlayerLogo(ty),iconLeft:(0,o.jsx)("img",{src:"/static/images/product/play_outlined.svg",alt:"play"}),iconSize:250,fullWidth:!0}),(0,o.jsxs)("div",{className:"".concat(ov()["TopBlock__button-preview"]),children:[!v&&(()=>{let t={title:tg?"СмоÑÑеÑÑ ".concat(tP?"":" ".concat(tI)," беÑплаÑно"):"ÐÑоÑмиÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑкÑ",onClick:this.initializePlayer};return y||w||h&&0===h.size?t={title:"ÐÑÐ´Ñ ÑмоÑÑеÑÑ",iconLeft:(0,o.jsx)("img",{src:"/static/images/icons/favorite".concat(this.checkFavorites(m._id
1)?"_active":"",".svg"),alt:"favorites"}),onClick:()=>this.favoritesClickHandler(this.checkFavorites(m._id))}:(null==G?void 0:G.virtual)===!0?t={title:tg?"ÐопÑобоваÑÑ ".concat(tP?"":" ".concat(tI)," беÑплаÑно"):"ÐÑоÑмиÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑкÑ",onClick:this.handleClickSubscribe}:tf&&(t={title:tx&&ty?"СмоÑÑеÑÑ Ð²Ñе ÑеÑии c PREMIUM":tx?"СмоÑÑеÑÑ c PREMIUM":this.playButtonTextMake("СмоÑÑеÑÑ",tt),iconLeft:!ty&&(0,o.jsx)("img",{src:"/static/images/icons/play-2.svg",height:16,width:16,alt:"play"}),onClick:this.initializePlayer}),(0,o.jsx)(to.$n,{className:z()(ov()["TopBlock__button-preview-text"],{[ov()["TopBlock__button-preview-text_tsbr"]]:tE,[ov()["TopBlock__button-preview-text_holod"]]:tR}),size:to.GO.MEDIUM,iconSize:100,variant:to.Vt.PRIMARY,fullWidth:!0,isLoading:tl,...t})})(),(0,o.jsx)("noscript",{children:(0,o.jsx)("div",{className:ov()["TopBlock__button-preview-text"],children:tg?"ÐопÑобоваÑÑ ".concat(tP?"":" ".concat(tI)," беÑплаÑно"):"ÐÑоÑмиÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑкÑ"})})]}),tn?(0,o.jsxs)("div",{className:ov().blocked_content,children:["ÐÐ¾Ð²Ð°Ñ ÑеÑÐ¸Ñ Ñже доÑÑÑпна в пÑиложении",$<c.xW.TABLET?(0,o.jsx)("br",{}):"\xa0","START\xa0на\xa0ТÐ. Ðа ÑайÑе Ñ"," ",this.checkBlockedContentDate(null==W?void 0:W.blocked_content_tv)]}):null]})}),u?null:k&&k.image_15x&&(!n||"seasons"===n||"episode"===n)?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:z()(ov().TopBlock__shadow_full)}),(0,o.jsx)("div",{className:z()(ov().TopBlock__shadow_redesign)}),(0,o.jsx)("div",{className:ov()["TopBlock__shadow-bottom"]})]}):y?null:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:ov().TopBlock__shadow}),(0,o.jsx)("div",{className:ov()["TopBlock__shadow-bottom"]})]})]}),(!n||"seasons"===n||p)&&j&&j.length>0&&!!$&&$<768&&(0,o.jsxs)("article",{className:ov().TopBlock__quote,children:[(0,o.jsx)(ti(),{loader:_.R2,className:ov()["TopBlock__quote-icon"],src:"/static/images/product/mark.svg",alt:"mark",width:24,height:24}),(0,o.jsxs)("span",{children:[" ",(0,c.IN)(140,j)," "]}),(0,o.jsx)(ti(),{loader:_.R2,className:"".concat(ov()["TopBlock__quote-icon"]," ").concat(ov()["TopBlock__quote-icon-right"]),src:"/static/images/product/mark.svg",alt:"mark",width:24,height:24})]})]}),"mobile_web"!==K||u?"tablet_web"!==K||u?"desktop_web"===K&&(n||"seasons"===n||"episode"===n)&&(0,o.jsx)("div",{style:{marginTop:"32px"}}):(0,o.jsx)("div",{style:{marginTop:"40px"}}):(0,o.jsx)("div",{style:{marginTop:"20px"}}),!u&&(0,oc.T)({poster:X,windowInnerWidth:$,profileList:O})&&(0,o.jsx)(oc.A,{poster:X,blockIdx:2,containerClass:ov().TopBlock__banner,screenType:"product",screenAttributesId:tN})]})}constructor(...t){var e;super(...t),e=this,this.state={browserWidth:0,showProgressButton:null,currentProductSubscribe:null,noSubscribe:null,subscribeAnimate:!1,loading:!1,isContentVisible:!0,isMuted:!0,isTrailerShown:!1,isMetaShifted:!0,isOnboarding:!1,launch:!0,isChild:!1,showSkeleton:!0,topBlockButtonsLoaded:null,mlk_msisdn:(0,_.Ri)("mlk_msisdn"),mlk_app:(0,_.Ri)("mlk_app"),posterBannerData:[],canReturn:!1,isAuthAndProfileDataLoading:!0,playButtonText:null,visibleBlockContentText:!1},this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.loadProduct=!1,this.loadTrailer=!1,this.loadAuthData=!1,this.onboardingVisibleTimeout=null,this.onboardingHideTimeout=null,this.contentVisibleTimeout=null,this.contentHideTimeout=null,this.autoTrailer=!1,this.autoTrailerShown=!0,this.loadBanner=!1,this.isReturnable=!1,this.loadTopBlockFeeHeight=!1,this.checkedForcedFavorites=!1,this.checkFreeContentFlow=!1,this.visibleBlockContentText=!1,this.descriptionShortRef=a.createRef(),this.descriptionRef=a.createRef(),this.topBlockFeeRef=a.createRef(),this.resizeHandler=()=>{let{innerWidth:t}=window,{browserWidth:e}=this.state;t!==e&&this.setState({browserWidth:t})},this.getBanner=async()=>{var t,e;let{uid:i}=this.props.movieData,o=this.props.locale||(null===(e=this.props)||void 0===e?void 0:null===(t=e.systemInformation)||void 0===t?void 0:t.locale)||"ru",{authData:s}=this.props.registration,r="".concat(this.apiUrl).concat(n.PI.postersProduct.replace("<product_id>",i)).concat(this.apiKey,"&for_kids=").concat(null==s?void 0:s.profile_for_child).concat("&locale=".concat(o)).concat("&content_lang=".concat(o),"&device_type=web"),a=await fetch(r,{credentials:"include"});if(a.ok){let t=await a.json();this.setState({posterBannerData:null==t?void 0:t.items[0]})}},this.fetchStreamOptions=async t=>{let{startDeviceId:e}=this.props.systemInformation,{authData:i}=this.props.registration,o="".concat(this.apiUrl).concat(t).concat(this.apiKey,"&device_id=").concat(e,"&auth_token=").concat(i.authentication_token),s=await fetch(o,{method:"GET",credentials:"include"}),a=await s.json();if(s.status<400)return a;
1if(403===s.status){switch(a.code){case"DEVICE_COUNT_EXCEEDED":return this.props.toggleDevicesPopup(!0),{devices:!0};case"DEVICE_NOT_REGISTERED":this.props.toggleDeletedDevicePopup(!0)}return}fetch("".concat(this.apiUrl).concat(n.PI.authRefresh).concat(this.apiKey),{credentials:"include",method:"POST"}).then(t=>{if(t.status>400){if(401===s.status){let{authData:t}=this.props.registration;t.partner&&"ttk"===t.partner.name?this.props.toggleTTKPopup(!0):(null==t?void 0:t.virtual)===!1?(0,oa.b)({authData:t,tariffs:this.props.registration.tariffs,playerMovie:this.props.movie.playerMovie,dispatch:this.props.dispatch,onSuccess:()=>{this.paymentRedirect(this.props.registration.tariffs)}}):r().push("/auth")}else this.props.pushStackAddItem({text:"<span>ЧÑо-Ñо поÑло не Ñак</span> СкоÑо вÑе поÑиним. ÐопÑобÑйÑе позже",withError:!0,withTitle:!0})}})},this.paymentRedirect=t=>{var e,i,o;let{authData:s}=this.props.registration,{mlk_app:a}=this.state;if((a||(null==s?void 0:null===(e=s.mf_info)||void 0===e?void 0:e.mf_pop_up)&&(null==s?void 0:null===(o=s.mf_info)||void 0===o?void 0:null===(i=o.mf_pop_up)||void 0===i?void 0:i.indexOf("_web"))===-1)&&(null==s?void 0:s.mf_info.is_mf))"to_block"!==s.mf_info.mf_pop_up?r().push("/megafon_connect"):this.props.pushStackAddItem({text:"<span>Ðа ÑÑеÑÑ ÐегаФона не доÑÑаÑоÑно ÑÑедÑÑв</span> ÐополниÑе Ð±Ð°Ð»Ð°Ð½Ñ Ð¸ возвÑаÑайÑеÑÑ",withError:!0,withTitle:!0});else{let e=null;try{e=ga.getAll()[0].get("clientId")}catch(t){}let i=(0,n.fQ)("".concat(this.apiUrl).concat(t.filter(t=>0===t.weight&&t.allow_trial)[0].url).concat(this.apiKey).concat(e?"&ga_id=".concat(e):""));(0,n.BA)({url:i,toPaymentTariffs:!0,callback:()=>{},errorCallback:()=>{this.props.pushStackAddItem({text:"<span>ЧÑо-Ñо поÑло не Ñак</span> СкоÑо вÑе поÑиним. ÐопÑобÑйÑе позже",withError:!0,withTitle:!0})}})}},this.initializePlayer=async()=>{var t,e,i,o,s,a,l,n,c,d,p;let u,h;let{page:m,movieData:v,similar:g,seasonNum:b}=this.props,{childProfile:k,lastProgress:f}=this.props.profile,{authData:x,tariffs:y,subscriptionType:w}=this.props.registration,{clickHouseData:T}=this.props.systemInformation,{devicePopup:S}=this.props.toggle,{hash:j,pathname:C}=window.location,B="Product.Series"===v._cls,N=(0,_.pK)(y),P=(0,_.EE)(null==x?void 0:x.trial_is_available,N),I=!(0,_.xM)(null==v?void 0:v.subscriptions,w),D="".concat(N," ").concat((0,_.jQ)(["денÑ","днÑ","дней"],N));if(null==v?void 0:v.unavailable_by_geo){r().replace(C);return}if(B){if(b&&!f)u=null===(s=v.items)||void 0===s?void 0:null===(o=s[b-1])||void 0===o?void 0:null===(i=o.items)||void 0===i?void 0:i[0];else{let t=v.items.flatMap(t=>t.items);u=f?t.find(t=>f.content_id===t.uid):t[0]}}let A=P?"to_try_free":"buy",E=P?"СмоÑÑеÑÑ Ð±ÐµÑплаÑно":"ÐÑоÑмиÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑкÑ";(null==x?void 0:x.virtual)===!0?(A=P?"to_try_free":"buy",E=P?"ÐопÑобоваÑÑ ".concat(D," беÑплаÑно"):"ÐÑоÑмиÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑкÑ"):I?(A="watch_premium",E="СмоÑÑеÑÑ Ñ PREMIUM"):(null===(t=x.subscriptions)||void 0===t?void 0:t.length)&&(A=this.getWatched()?"continue_watching":"watch",E=this.getWatched()?"ÐÑодолжиÑÑ Ð¿ÑоÑмоÑÑ":"СмоÑÑеÑÑ");let R={...T,screen_attributes_ab_tag:x&&x.tags?x.tags:"",action_id:"click",event_time:new Date().getTime(),event_version:"1.0",block_type:"block",block_attributes_id:m?"collapsed_top":"top",element_type:"button",element_attributes_id:A,element_attributes_text:E,product_id:v._id,content_id:u?null==u?void 0:u.uid:v.uid,content_type:v._cls};if(this.props.systemInformation.dataLayer){let t=this.props.systemInformation.dataLayer;t.dataLayer.event="productCardClickPlayEvent",this.props.setDataLayer(t)}if(this.props.clickHouseShoot(this.apiUrl,this.apiKey,R),k&&await (0,tm.j)({apiUrl:this.apiUrl,apiKey:this.apiKey})){this.props.toggleSwitchToAdultProfile({visible:!0});return}let L=u?null==u?void 0:u.playback_options:v.playback_options,M=u?null==u?void 0:u.is_preview:v.is_preview,U=u?null==u?void 0:u.subscriptions:v.subscriptions;if(!L||L.includes(".m3u8")||M)(0,oa.b)({authData:x,tariffs:y,playerMovie:this.props.movie.playerMovie,dispatch:this.props.dispatch,onSuccess:()=>{this.paymentRedirect(y)}});else{if(h=await this.fetchStreamOptions(L),!(0,_.xM)(U,w)){(0,_.vB)({contentUpgradeOptions:null==h?void 0:h.upgrade_options,saveBackRoute:!0});return}if(!(null==h?void 0:null===(a=h.playlists)||void 0===a?void 0:a.length)&&!S){x.partner&&"ttk"===x.partner.name?this.props.toggleTTKPopup(!0):h.devices||(null==x||null===(l=x.externals)||void 0===l||!l.length||(null==x?void 0:null===(n=x.subscriptions)||void 0===n?void 0:n.length))&&((null==x?void 0:x.virtual)!==!1||null==h||null===(c=h.upgrade_options)||void 0===c||!c.length)&&((null==x?void 0:null===(d=x.subscriptions)||void 0===d?void 0:d.length)||(null==h?void 0:null===(p=h.upgrade_options)||void 0===p?void 0:p.length))&&((null==x?void 0:x.virtual)!==!1||x.trial_is_available)&&((null==x?void 0:x.virtual)!==!1||!k)?(null==x?void 0:x.virtual)===!0&&r().push("/auth"):(0,oa.b)({authData:x,tariffs:y,playerMovie:this.props.movie.playerMovie,dispatch:this.props.dispatch,onSuccess:()=>{this.paymentRedirect(y)}});return}}(null==x?void 0:null===(e=x.subscriptions)||void 0===e?void 0:e.length)?(0,or.j)({ratingAge:v.rating_age,childProfile:k,parentalControl:this.props.parentalControl,dispatch:this.props.dispatch,successCallback:()=>{this.setState({isTrailerRequest:!1},()=>{this.props.initPlayer({init:!0,type:"Movie"});let t={movieUrl:"/web/watch/".concat(v.alias),movieTitle:v.title,isTrailer:!1,movieId:v._id,playback:L,similar:g,uid:u?null==u?void 0:u.uid:v.uid,rating_age:v.rating_age,isSeries:B,playerSource:h};this.props.getPlayerData(t)})}}):(0,oa.b)({authData:x,tariffs:y,playerMovie:this.props.movie.playerMovie,dispatch:this.props.dispatch,onSuccess:()=>{this.paymentRedirect(y)}}),("#playproduct"===j||"#playtrailer"===j)&&C&&r().replace(C),this.handleTrailerEnded()},this.handleClickSubscribe=()=>{let t;let{movieData:e,seasonNum:i}=this.props,{authData:o,tariffs:s}=this.props.registration,{lastProgress:a}=this.props.profile,{clickHouseData:l}=this.props.systemInformation,n=(null==o?void 0:o.type)==="EX_PAID",c=null==o?void 0:o.profile_for_child,d=(null==o?void 0:o.subscriptions.some(t=>(null==t?void 0:t.acl_type)==="lite"))&&!(null==o?void 0:o.subscriptions.some(t=>(null==t?void 0:t.acl_type)==="premium")),p="Product.Series"===e._cls,u=(0,_.pK)(s),h=(0,_.
1EE)(null==o?void 0:o.trial_is_available,u);if((n||d)&&c){this.props.toggleSwitchToAdultProfile({visible:!0});return}if(p){if(i&&!a){var m,v,g;t=null===(g=e.items)||void 0===g?void 0:null===(v=g[i-1])||void 0===v?void 0:null===(m=v.items)||void 0===m?void 0:m[0]}else{let i=e.items.flatMap(t=>t.items);t=a?i.find(t=>a.content_id===t.uid):i[0]}}let b={...l,action_id:"click",action_attributes_num:1,event_time:new Date().getTime(),event_version:"1.0",block_type:"block",block_attributes_id:"top",block_attributes_index:1,element_type:"button",element_attributes_id:h?"try_free":"buy",element_attributes_text:h?"ÐопÑобоваÑÑ ".concat(u," ").concat((0,_.jQ)(["денÑ","днÑ","дней"],u)," беÑплаÑно"):"ÐÑоÑмиÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑкÑ",product_id:e._id,content_id:t?null==t?void 0:t.uid:e.uid,content_type:e._cls};this.props.clickHouseShoot(this.apiUrl,this.apiKey,b),(null==o?void 0:o.virtual)&&r().push("/auth")},this.initializePlayerLogo=async t=>{var e,i,o,s,a,l,n,c,d,p,u,h,m,v,g,b,k;let f,x;let{movieData:y,seasonNum:w}=this.props,{clickHouseData:T}=this.props.systemInformation,{authData:S,tariffs:j,subscriptionType:C}=this.props.registration,{_cls:B,uid:N,_id:P,alias:I,title:D,playback_o
1ptions:A,rating_age:E,items:R}=this.props.movieData,{childProfile:L,lastProgress:M,pendingSubscription:U}=this.props.profile,H=(null==S?void 0:S.type)==="EX_PAID",O=null==S?void 0:S.profile_for_child,F=(null==S?void 0:S.subscriptions.some(t=>(null==t?void 0:t.acl_type)==="lite"))&&!(null==S?void 0:S.subscriptions.some(t=>(null==t?void 0:t.acl_type)==="premium")),W={...T,screen_attributes_ab_tag:S&&S.tags?S.tags:"",action_id:"click",event_time:new Date().getTime(),event_version:"1.0",block_type:"block",block_attributes_id:"top",element_type:"button",element_attributes_id:t?"watch_first_episode":"play",element_attributes_text:t?"Product.Movie"===B?"СмоÑÑеÑÑ ÑилÑм":"СмоÑÑеÑÑ 1-Ñ ÑеÑиÑ":null,product_id:P,content_id:N,content_type:B};if(this.props.systemInformation.dataLayer){let t=this.props.systemInformation.dataLayer;t.dataLayer.event="productCardClickPlayEvent",this.props.setDataLayer(t)}if(this.props.clickHouseShoot(this.apiUrl,this.apiKey,W),(H||F)&&O){this.props.toggleSwitchToAdultProfile({visible:!0});return}if("Product.Series"===B){if(w&&!M)f=null==R?void 0:null===(o=R[w-1])||void 0===o?void 0:null===(i=o.items)||void 0===i?void 0:i[0];else{let t=R.flatMap(t=>t.items);f=M?t.find(t=>M.content_id===t.uid):t[0]}if(t){let t=(null==y?void 0:null===(s=y.background)||void 0===s?void 0:s.image_15x)||(null==y?void 0:y.background);t&&(0,_.TV)("isFreeContentFlow",encodeURIComponent(t))}}let K=f?null==f?void 0:f.is_preview:this.props.movieData.is_preview,V=f?null==f?void 0:f.subscriptions:null===(e=this.props.movieData)||void 0===e?void 0:e.subscriptions,{show:z,type:Y}=(0,th.g5)(S,U);if(A&&!A.includes(".m3u8")&&!K){let e=(0,_.xM)(V,C);if(x=await this.fetchStreamOptions(A),!e&&!t){(0,_.vB)({contentUpgradeOptions:null==x?void 0:x.upgrade_options,saveBackRoute:!0});return}if(!(null==x?void 0:null===(a=x.playlists)||void 0===a?void 0:a.length)&&!(null==x?void 0:x.devices)){S.partner&&"ttk"===S.partner.name?this.props.toggleTTKPopup(!0):(null==S?void 0:null===(l=S.externals)||void 0===l?void 0:l.length)&&!(null==S?void 0:null===(n=S.subscriptions)||void 0===n?void 0:n.length)?this.paymentRedirect((null==x?void 0:null===(b=x.upgrade_options)||void 0===b?void 0:b.length)?x.upgrade_options:j):z&&!t?this.props.toggleSubscriptionOfferPopup({visible:!0,type:Y}):(null==S?void 0:S.virtual)===!1&&(null==x?void 0:null===(c=x.upgrade_options)||void 0===c?void 0:c.length)?this.paymentRedirect(x.upgrade_options):(null==S?void 0:null===(d=S.subscriptions)||void 0===d?void 0:d.length)||(null==x?void 0:null===(p=x.upgrade_options)||void 0===p?void 0:p.length)?(null==S?void 0:S.virtual)===!0&&r().push("/auth"):(0,oa.b)({authData:S,tariffs:j,playerMovie:this.props.movie.playerMovie,dispatch:this.props.dispatch,onSuccess:()=>{this.paymentRedirect(j)}}),S.partner&&"ttk"===S.partner.name?this.props.toggleTTKPopup(!0):(null==S?void 0:null===(u=S.externals)||void 0===u?void 0:u.length)&&!(null==S?void 0:null===(h=S.subscriptions)||void 0===h?void 0:h.length)?this.paymentRedirect((null==x?void 0:null===(k=x.upgrade_options)||void 0===k?void 0:k.length)?x.upgrade_options:j):z&&!t?this.props.toggleSubscriptionOfferPopup({visible:!0,type:Y}):(null==S?void 0:S.virtual)===!1&&(null==x?void 0:null===(m=x.upgrade_options)||void 0===m?void 0:m.length)?this.paymentRedirect(x.upgrade_options):(null==S?void 0:null===(v=S.subscriptions)||void 0===v?void 0:v.length)||(null==x?void 0:null===(g=x.upgrade_options)||void 0===g?void 0:g.length)?(null==S?void 0:S.virtual)===!0&&(t&&((0,_.TV)("fromProductPageWithFreeContent",!0),(0,_.Uy)()),r().push("/auth")):(0,oa.b)({authData:S,tariffs:j,playerMovie:this.props.movie.playerMovie,dispatch:this.props.dispatch,onSuccess:()=>{this.paymentRedirect(j)}});return}}(0,or.j)({ratingAge:y.rating_age,childProfile:L,parentalControl:this.props.parentalControl,dispatch:this.props.dispatch,successCallback:async()=>{this.setState({isTrailerRequest:!1},()=>{this.props.initPlayer({init:!0,type:"Movie"});let t={isTrailer:!1,movieId:P,movieTitle:D,movieUrl:"/web/watch/".concat(I),playback:A,similar:this.props.similar,uid:N,rating_age:E,playerSource:x};this.props.getPlayerData(t)}),this.handleTrailerEnded()}}),t&&this.props.toggleForceOpenSubscriptionOfferPopup(!1)},this.handleVerticalSource=t=>{if(t)return(0,_.bZ)(t,"360x516")}
1,this.handleBackgroundBlurSource=t=>{if(t)return(0,_.bZ)(t,"384x241&quality=1")},this.getLengthSeasons=(t,e)=>0===e.size&&t.length>=1||1===e.size?"1\xa0Ñезон":e.size>1&&e.size<5?"".concat(e.size,"\xa0Ñезона"):e.size>4?"".concat(e.size,"\xa0Ñезонов"):void 0,this.getSeasonsYear=()=>{let{_cls:t,year:e,items:i}=this.props.movieData,o=[];if("Product.Movie"===t)return e?e.toString():"";if(0===i.length)return"";for(let t of i)"Product.Season"===t._cls&&o.push(t.year);return(1===i.length&&i[0].year?i[0].year:i.length>1&&o.every(t=>t===o[0])?i[0].year:i.length>1&&(i[0].year||i[i.length-1].year)?"".concat(i[0].year&&i[i.length-1].year?"".concat(i[0].year,"-").concat(i[i.length-1].year):"".concat(i[0].year?i[0].year:i[i.length-1].year)):"").toString()||""},this.getWatched=()=>{let{profileHistory:t}=this.props.profile,{_cls:e,_id:i,items:o}=this.props.movieData,s=[];if(t&&(null==t?void 0:t.length)&&(s=t.filter(t=>t.progress>0&&t.progress<95)),"Product.Movie"===e)return s.filter(t=>i===t.product_id).length>0;if("Product.Series"===e){let t=[];return o.map(e=>e.items.map(e=>t.push(e.uid))),s.filter(e=>t.includes(e.content_uid)).length>0}},this.reportAppearance=t=>{let{authData:e}=this.props.registration,{uid:i}=this.props.movieData;(null==e?void 0:e.virtual)?this.props.toggleLoginSubscribePopup(!0):(this.setState({loading:!0}),fetch("".concat(this.apiUrl).concat(n.PI.profileNotify,"/").concat(e.profile_id,"/").concat(i).concat(this.apiKey),{credentials:"include",method:"POST"}).then(t=>{t.status<400&&t.json().then(t=>{t.success,this.setState({loading:!1,subscribeAnimate:!0})})}).finally(()=>{this.setState({loading:!1})}),t&&t.length>0&&(this.props.deleteSubscribe(),t.map(t=>{fetch("".concat(this.apiUrl).concat(n.PI[t.type]).concat(this.apiKey),{credentials:"include",method:"POST"}).then(e=>{if(e.status<400)switch(t.type){case"subscribeEmail":this.props.subscribeEmail(!0);break;case"subscribeSMS":this.props.subscribeSms(!0)}})})))},this.trailerClickHandler=async()=>{let{clickHouseData:t}=this.props.systemInformation,{authData:e}=this.props.registration,i=this.props.profile.childProfile,{page:o,movieData:s,similar:a}=this.props,{hash:l,pathname:n}=window.location;if(s.unavailable_by_geo){r().push(n);return}let c={...t,screen_attributes_ab_tag:e&&e.tags?e.tags:"",action_id:"click",event_time:new Date().getTime(),event_version:"1.0",block_type:"block",block_attributes_id:o?"collapsed_top":"top",element_type:"button",element_attributes_id:"play_trailer",element_attributes_text:"СмоÑÑеÑÑ ÑÑейлеÑ",product_id:s._id,content_id:s.uid,content_type:s._cls};if(this.props.clickHouseShoot(this.apiUrl,this.apiKey,c),i&&await (0,tm.j)({apiUrl:this.apiUrl,apiKey:this.apiKey})){this.props.toggleSwitchToAdultProfile({visible:!0});return}this.props.initPlayer({init:!0,type:"Trailer"});let _={movieUrl:"/web/watch/".concat(s.alias),movieTitle:s.title,movieId:s._id,trailerSrc:s.trailer_src,playback:s.playback_options,isTrailer:!0,announce:s.is_preview||s.is_disabled,position:s.position,similar:a,uid:s.uid,rating_age:s.rating_age,isTrailerHash:"#playtrailer"===l,promoData:{cls:"Trailer",promoting_content:{id:s._id,uid:s.uid,cls:s._cls,alias:s.alias}}};this.props.getPlayerData(_),("#playproduct"===l||"#playtrailer"===l)&&n&&r().replace(n),this.handleTrailerEnded()},this.getAgeRating=()=>{let{rating_age:t,is_preview:e}=this.props.movieData;return t&&null!==t?"".concat(t.replace("+",""),"+"):!t&&e?"18+":"0+"},this.breadcrumbsPage=()=>{let{page:t,type:e,season:i,seasonNum:o,episode:s,trailer:r,hero:a,extra:l}=this.props,n=i&&i.split("-")[1],{alias:c}=this.props.movieData,{authData:_}=this.props.registration,d=_&&(null==_?void 0:_.virtual)!==!0?"":" онлайн",p={trailers:"ТÑейлеÑÑ",person:"СÑемоÑÐ½Ð°Ñ Ð³ÑÑппа",characters:"ÐеÑои ".concat(e.toLowerCase(),"a"),collections:"РекомендаÑии",articles:"СÑаÑÑи",extras:"ÐополниÑелÑнÑе маÑеÑиалÑ"};if("seasons"===t)return[{title:"".concat(n," Ñезон").concat(d),name:"".concat(n," Ñезон").concat(d)}];if("episode"===t){let t=s.title&&s.title.toLowerCase().includes("ÑеÑиÑ")?"":" ".concat(s.title),e="".concat(s.num," ÑеÑиÑ").concat(t?" -":"").concat(t).concat(d);return[{title:"".concat(o," Ñезон"),name:"".concat(o," Ñезон"),link:"/watch/".concat(c,"/season-").concat(o)},{title:e,name:e}]}return"selections"===t?[{title:"ÐодбоÑки",name:"ÐодбоÑки"}]:r?[{title:"ТÑейлеÑÑ",name:"ТÑейлеÑÑ",link:"/watch/".concat(c,"/trailers")},{title:"".concat(r.title).concat(d),name:"".concat(r.title).concat(d)}]:a?[{title:"ÐеÑои",name:"ÐеÑои",link:"/watch/".concat(c,"/characters")},{title:"".concat(a.character.name),name:"".concat(a.character.name)}]:l?[{title:"ÐополниÑелÑнÑе маÑеÑиалÑ",name:"ÐополниÑелÑнÑе маÑеÑиалÑ",link:"/watch/".concat(c,"/extras")},{title:"".concat(l.title),name:"".concat(l.title)}]:[{title:"".concat(p[t]),name:"".concat(p[t])}]},this.getLinkForGenres=t=>{let{_cls:e}=this.props.movieData,{kidsProfile:i}=this.props;return i?"/animation":"/".concat("Product.Movie"===e?"movies":"series","/").concat(t.slug)},this.getLinkForCountry=t=>{var e;let{_cls:i}=this.props.movieData,{kidsProfile:o}=this.props;if(o)return"/animation";let s=(null==t?void 0:t.code)?"/".concat(null===(e=t.code)||void 0===e?void 0:e.toLowerCase()):"";return"/".concat("Product.Movie"===i?"movies":"series").concat(s)},this.getLinkForYear=()=>{let{kidsProfile:t}=this.props;if(t)return"/animation";let{_cls:e}=this.props.movieData,i=this.getSeasonsYear();if(i&&i.includes("-")){let t=Number(this.getSeasonsYear().split("-")[0]);return"/".concat("Product.Movie"===e?"movies":"series","/").concat(this.getYearOrPeriod(t))}return"/".concat("Product.Movie"===e?"movies":"series","/").concat(this.getYearOrPeriod(Number(i)))},this.getYearOrPeriod=t=>{switch(!0){case t>2009:return"".concat(t);case t>=2e3&&t<=2009:return"2000-2009";case t>=1990&&t<=1999:return"1990-1999";case t>=1980&&t<=1989:return"1980-1989";case t>=1970&&t<=1979:return"1970-1979";default:return""}},this.setContentVisible=(t,e)=>{t.stopPropagation(),this.state.isTrailerShown||this.setState({isMetaShifted:e})},this.handleTrailerEnded=()=>{this.setState({isMuted:!0,isContentVisible:!0,isMetaShifted:!0,isTrailerShown:!0,launch:!1})},this.badgeClickHandler=t=>{let{clickHouseData:e}=this.props.systemInformation,{uid:i,_id:o,_cls:s}=this.props.movieData,{router:r}
1=this.props,a={...e,action_id:"click",screen_type:"product",element_type:"link",element_attributes_id:t,product_id:o,content_id:i,content_type:s,block_type:"block",block_attributes_id:"top",screen_attributes_id:r.asPath.replace("/watch/","")||"",event_version:"1.0",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,a)},this.showFirstBadgeHandle=(t,e)=>!!t&&!!e&&!!e.image_15x,this.playButtonTextMake=(t,e,i)=>{let{isNewEpisodePage:o,seasonNum:s,episode:r,numbersOfAvailableSeasons:a}=this.props;return e?"ÐÑодолжиÑÑ Ð¿ÑоÑмоÑÑ":a&&!a.has(s)?t:s&&!r?"".concat(t):o&&!i?"".concat(t," ").concat(s," Ñезон ").concat(null==r?void 0:r.num," ÑеÑиÑ"):t},this.handleReturn=()=>{var t,e;(null===(e=window)||void 0===e?void 0:null===(t=e.history)||void 0===t?void 0:t.length)&&r().back()},this.handleFavorites=async(t,e)=>{let{authData:i}=this.props.registration,{locale:o}=this.props.systemInformation,s="".concat(this.apiUrl).concat(n.PI.favorites).concat(i.profile_id).concat(this.apiKey);try{(await fetch(s,{credentials:"include",method:e?"DELETE":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_id:t})})).status<400&&this.props.profileFavorites(i.profile_id,this.apiUrl,this.apiKey,o)}catch(t){console.error(t)}},this.pushStackEvent=(t,e)=>{let{clickHouseData:i}=this.props.systemInformation,o={...i,action_id:t,screen_type:"product",screen_attributes_id:"product",block_type:"popup",block_attributes_id:e,..."click"===t&&{element_type:"button",element_attributes_id:"cross"}};this.props.clickHouseShoot(this.apiUrl,this.apiKey,o)},this.announcePremier=t=>{let e=sessionStorage.getItem("announcePremierPopupShown");if(t)this.props.pushStackAddItem({text:"<span>УбÑали из Ñаздела \xabÐоÑ\xbb</span>",onCrossClickCallback:()=>this.pushStackEvent("click","notification_success_remove_from_favorites"),withProgressBar:!0,closeIn:2e3,variant:"addedToFavorites"}),this.pushStackEvent("popupview","notification_success_remove_from_favorites");else{var i,o;!e&&(null===(i=this.props.movieData)||void 0===i?void 0:i.is_preview)?this.props.toggleAnnouncePremierPopup(!0,null===(o=this.props.movieData)||void 0===o?void 0:o.uid):(this.props.pushStackAddItem({text:"<span>Ðобавили в \xabÐоÑ\xbb</span>",onCrossClickCallback:()=>this.pushStackEvent("click","notification_success_add_to_favorites"),withProgressBar:!0,closeIn:2e3,variant:"addedToFavorites"}),this.pushStackEvent("popupview","notification_success_add_to_favorites"))}},this.favoritesClickHandler=function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{clickHouseData:o}=e.props.systemInformation,{_id:s,_cls:r,uid:a,background:l,logotype:n,badges:c}=e.props.movieData,{authData:_}=e.props.registration,{forcedFavoriteAlias:d}=e.props.profile;if(null==_?void 0:_.virtual)e.props.toggleVisibleNoAuthFavoritesPopup({visible:!0,uid:a,background:l.image_15x,logotype:n.image_15x,badges:c});else{d&&e.props.setForcedFavoriteAlias();let l={...o,action_id:"click",action_result:t?"remove":"add",action_attributes_str:a,element_type:"button",element_attributes_id:t?"delete_favorites":"add_favorites",event_time:new Date().getTime(),...!i&&{block_type:"block",block_attributes_id:"top",content_id:s,content_type:r,product_id:s},...i&&{screen_type:"product",screen_attributes_id:"product"}};e.props.clickHouseShoot(e.apiUrl,e.apiKey,l),e.handleFavorites(a,t),e.announcePremier(t)}},this.checkFavorites=t=>{let{favorites:e}=this.props.profile;if(Array.isArray(e)){let i=e.map(t=>t._id);return null==i?void 0:i.includes(t)}return!1},this.renderPremiumPriceInfo=()=>{let t=this.props.registration.tariffs;return(0,o.jsxs)("div",{className:ov().TopBlock__subscription_text,children:[(0,_.$g)((0,_.g6)(null,t)),"\xa0⽠в меÑÑÑ c опÑией ",(0,o.jsx)("span",{className:ov().TopBlock__subscription_text_premium,children:"PREMIUM"})]})},this.checkBlockedContentDate=t=>{let{uid:e,items:i}=this.props.movieData,o=t.find(t=>t.item===e);if(o)return o.date;if(null==i?void 0:i.length){let e="";return i.map(i=>{(null==i?void 0:i.items)&&i.items.map(i=>{let o=t.find(t=>t.item===i.uid);o&&(e=o.date)})}),e}return""}}}let oy=(0,s.withRouter)((0,l.Ng)(t=>({movie:t.movie,menu:t.menu,toggle:t.toggle,systemInformation:t.systemInformation,profile:t.profile,registration:t.registration,pushData:t.pushData,parentalControl:t.parentalControl}),t=>({dispatch:t,...(0,os.zH)({initPlayer:m.kI,setDataLayer:m.ak,clickHouseShoot:m.Y3,subscribeForProduct:ol.V8,getPlayerData:O.o2,toggleLoginSubscribePopup:v.Kw,toggleEmailPopup:v.ro,subscribeEmail:ol.jN,subscribeSms:ol.QN,deleteSubscribe:ol.K9,setOnboardingTrailer:F.ps,setAutoTrailer:F.jG,setForcedFavoriteAlias:F.Kr,subscribedProducts:ol.jn,toggleDevicesPopup:v.QQ,toggleDeletedDevicePopup:v.YO,toggleTTKPopup:v.QF,toggleSubscriptionOfferPopup:v.gb,fetchedTariffs:tG.ZI,profileFavorites:F.Jb,toggleVisibleNoAuthFavoritesPopup:v.t0,pushStackAddItem:tt.nD,toggleSwitchToAdultProfile:v.bL,toggleForceOpenSubscriptionOfferPopup:v.br,toggleAnnouncePremierPopup:v.YF},t)}))(ox));var ow=i(93473),oT=i.n(ow),oS=i(12384),oj=i.n(oS);let oC="/static/images/stub.svg",oB={[c._.DESKTOP_WIDE]:{width:386,height:217},[c._.DESKTOP]:{width:386,height:217},[c._.TABLET_WIDE]:{width:318,height:167},[c._.TABLET_WIDE]:{width:318,height:167},[c._.MOBILE]:{width:296,height:167}},oN=t=>{var e;let{alias:i,card:s,index:r,onPosterClick:l,trailerItemClick:n,geoUnavailable:c}=t,d=(0,eZ.A)(),p=(0,eq.A)({img:null===(e=s.packshot)||void 0===e?void 0:e.image_15x,imgStub:oC,width:oB[d]?oB[d].width:oB[0].width,height:oB[d]?oB[d].height:oB[0].height}),[u,h]=(0,a.useState)(!0),m=()=>{h(!1)};return(0,o.jsxs)("div",{className:oj().item,children:[u&&(0,o.jsx)(tO.A,{className:oj().skeleton}),(0,o.jsxs)("div",{className:oj().content,"data-testid":"trailer_card_content_".concat(r+1),children:[(0,o.jsx)("div",{className:oj().poster,onClick:()=>{c||l({title:s.title,trailer_src:s.video_src,rating_age:s.rating_age,restrictions:s.restrictions,uid:s.uid})},children:(0,o.jsxs)("div",{className:oj().posterWrapper,children:[(0,o.jsx)(ti(),{ref:t=>(0,_.$R)(t,!u,m),className:oj().posterImage,loader:_.R2,src:p,blurDataURL:oC,alt:"poster",fill:!0}),!c&&(0,o.jsx)("img",{className:oj().play,src:"/static/images/product/button-play.svg",alt:"play"})]})}),(0,o.jsxs)(tA(),{href:"/watch/".concat(i,"/trailers/").concat(s.start_id),onClick:()=>n(s,r),className:oj().info,prefetch:!1,children:[(0,o.jsx)("h3",{className:oj().title,children:s.title}),(0,o.jsx)("p",{className:oj().description,children:s.description})]})]})]})},oP={clickHouseShoot:m.Y3,initPlayer:m.kI,getPlayerData:O.o2,fetchedProfileRatedContent:F.mq,toggleVisibleNoAuthLikePopup:v.xz,toggleVisiblePopup:v.TX,pushStackAddItem:tt.nD};class oI extends a.Component{componentDidMount(){this.setState({url:"".concat(window.location.href),nojs:!1}),r().events.on("routeChangeComplete",this.setUrl)}componentDidUpdate(){let{ratedContent:t}=this.props.profile,{uid:e}=this.props.movieData;if((null==t?void 0:t.length)&&!this.loadRatedContent){this.loadRatedContent=!0;let i=null==t?void 0:t.find(t=>t.content_id===e);i&&(i.is_liked?this.setState({like:!0,dislike:!1}):this.setState({dislike:!0,like:!1}))}let{authData:i}=this.props.registration;if((null==i?void 0:i.virtual)===!1&&!this.loadAuthData&&this.loadRatedContent){this.loadAuthData=!0;let t=(0,_.Ri)("returnToProductUid"),e=(0,_.Ri)("returnToProductScore");t&&((0,_.Yj)("returnToProductUid"),(0,_.Yj)("returnToProductScore"),this.getLikeOrDislike(e,t))}}componentWillUnmount(){r().events.off("routeChangeComplete",this.setUrl)}render(){let{movieData:t,trailer:e}=this.props,{like:i,dislike:s,url:r,liked:a,nojs:l}=this.state,n=e.description||"";return t?(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"".concat(oT().product__trailer," ").concat(ea()["product-block"]),children:[(0,o.jsx)("h1",{children:"".concat(t.title,": ÑÑейлеÑ")}),(0,o.jsxs)("div",{className:"".concat(oT()["product__trailer-wrapper"]),children:[(0,o.jsxs)("div",{className:"".concat(oT()["product__trailer-left-section"]),children:[(0,o.jsxs)("div",{className:"".concat(oT()["product__trailer-image"]),children:[(0,o.jsx)("img",{src:this.handleImageSource(this.apiUrl+e.packshot.image_15x),alt:"".concat(e.title," ").concat(t.title," ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½"),onError:this.handleErrorImage}),!l&&(0,o.jsx)("img",{src:"/static/images/product/small-play.svg",alt:"",className:oT()["product__trailer-play"],onClick:()=>this.trailerRequestHandler(e.title,e.video_src,t._id,0,t.uid,!0,t.rating_age,t.restrictions,t.playback_o
1ptions,t.alias,null==t?void 0:t.is_preview,null==t?void 0:t.is_disabled)})]}),(0,o.jsx)("div",{className:"".concat(oT()["product__trailer-info"]),children:(0,o.jsx)("div",{className:"".concat(oT()["product__trailer-title"]),children:(0,o.jsx)("span",{children:e.title})})}),n?(0,o.jsx)("div",{className:"".concat(oT()["product__trailer-description"]),dangerouslySetInnerHTML:{__html:n}}):null]}),!l&&(0,o.jsxs)("div",{className:"".concat(oT()["product__trailer-right-section"]),children:[(0,o.jsxs)("div",{className:oT()["product__trailer-like"],children:[(0,o.jsx)("div",{className:"".concat(oT()["product__trailer-up"]," ").concat(s?oT().disabled:""),onClick:()=>this.getLikeOrDislike("like"),children:(0,o.jsx)("img",{src:"/static/images/product/".concat(i?"like-active":"like",".svg "),alt:"like"})}),(0,o.jsx)("div",{className:"".concat(oT()["product__trailer-down"]," ").concat(i?oT().disabled:""),onClick:()=>this.getLikeOrDislike("dislike"),children:(0,o.jsx)("img",{src:"/static/images/product/".concat(s?"dislike-active":"dislike",".svg"),alt:"dislike"})})]}),(0,o.jsxs)("div",{className:"".concat(oT()["product__trailer-share"]),children:["ÐоделиÑÑÑÑ:"," ",(0,o.jsxs)("div",{className:"".concat(oT()["product__trailer-social"]),children:[(0,o.jsx)(eR.rx,{url:r,title:e.title,image:"".concat(this.apiUrl).concat(t.background.image_15x),className:"".concat(oT()["product__trailer-social_ico"]),onShareWindowClose:()=>this.afterShare("share_vk"),children:(0,o.jsx)(eR.Hu,{size:36,round:!0})}),(0,o.jsx)(eR.AC,{url:r,image:"".concat(this.apiUrl).concat(t.background.image_15x),className:"".concat(oT()["product__trailer-social_ico"]),onShareWindowClose:()=>this.afterShare("share_ok"),children:(0,o.jsx)(eR.uH,{size:36,round:!0})})]})]})]})]})]})}):null}constructor(...t){var e;super(...t),e=this,this.state={url:"",like:!1,dislike:!1,liked:!1,nojs:!0},this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.loadRatedContent=!1,this.loadAuthData=!1,this.setUrl=()=>{this.setState({url:"".concat(window.location.href)})},this.trailerRequestHandler=(t,e,i,o,s,r,a,l,n,c,_,d)=>{let p={movieUrl:"/web/watch/".concat(c),movieTitle:t,isTrailer:!0,isPageTrailer:!0,movieId:i,uid:s,trailerSrc:e,playback:n,similar:this.props.similar,announce:_||d,additional_content:r,rating_age:a,containsMeta:!!(null==l?void 0:l.find(t=>"ContainsMeta"===t.id)),containsSmoking:!!(null==l?void 0:l.find(t=>"ContainsSmoking"===t.id))};this.props.getPlayerData(p),this.handleShoot("button","play")},this.handleShoot=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"trailers",{clickHouseData:o}=e.props.systemInformation,{_id:s,uid:r,_cls:a}=e.props.movieData,l={...o,action_id:"click",block_type:"block",block_attributes_id:"trailers",product_id:s,content_id:r,content_type:a,element_type:t,element_attributes_id:i,event_time:new Date().getTime()};e.props.clickHouseShoot(e.apiUrl,e.apiKey,l)},this.handleImageSource=(t,e)=>t?(0,_.bZ)(t,"736x374"):"/static/images/product/trailer-default.svg",this.afterShare=t=>{let{clickHouseData:e}=this.props.systemInformation,i={...e,action_id:"click",block_type:"block",block_attributes_id:"description",product_id:this.props.movieData._id,element_type:"button",element_attributes_id:t,event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,i)},this.getLikeOrDislike=(t,e)=>{let{like:i,dislike:o,liked:s}=this.state;"like"===t&&i||"dislike"===t&&o||s||(this.props.pushStackAddItem({text:"СпаÑибо! УÑÑÑм пÑи подбоÑе ÑекомендаÑий"}),this.setState({liked:!0},()=>{let{clickHouseData:i}=this.props.systemInformation,{_id:o,uid:s}=this.props.movieData,r={...i,action_id:"click",action_result:t,action_attributes_str:o,block_type:"block",block_attributes_id:"description",product_id:o,element_type:"button",element_attributes_id:t,event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,r);let{authData:a}=this.props.registration,{ratedContent:l}=this.props.profile;fetch("".concat(this.apiUrl).concat(n.PI.rateContent).concat(this.apiKey),{credentials:"include",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({profile_id:a.profile_id,content_id:e||s,like:"like"===t})}).then(i=>{if(i.status<400){let i=[...l];if("like"===t)i.push({content_id:e||s,is_liked:!0});else{let t=i.findIndex(t=>t.content_id===e||s);-1!==t&&i.splice(t,1)}this.props.fetchedProfileRatedContent(i),this.setState({dislike:"dislike"===t,like:"like"===t})}else 409===i.status&&i.json().then(e=>{"USER_IS_VIRTUAL"===e.code&&((0,_.TV)("returnToProductScore",t),this.props.toggleVisibleNoAuthLikePopup(!0),this.props.toggleVisiblePopup(!0),this.setState({liked:!1}
1))})})}))},this.handleErrorImage=t=>{t.target.src="/static/images/product/trailer-default.svg"}}}(0,l.Ng)(t=>({registration:t.registration,systemInformation:t.systemInformation,profile:t.profile}),oP)(oI);let oD="/static/images/stub.svg",oA={[c._.DESKTOP_WIDE]:{width:652,height:367},[c._.DESKTOP]:{width:652,height:367},[c._.TABLET]:{width:720,height:405},[c._.TABLET_WIDE]:{width:720,height:405},[c._.MOBILE]:{width:327,height:184}},oE=t=>{var e;let{movieData:i,trailer:s,similar:r}=t,n=(0,l.wA)(),c=(0,X.A)(),d=(0,eZ.A)(),p=(0,eq.A)({img:null===(e=s.packshot)||void 0===e?void 0:e.image_15x,imgStub:oD,width:oA[d].width,height:oA[d].height}),u=(0,Q.A)(),h=(0,Z.A)(),m=(0,l.d4)(t=>t.profile.childProfile),[g,b]=(0,a.useState)(!0),k=null==i?void 0:i.additional_content.filter(t=>t.uid!==s.uid),f=()=>{b(!1)},x=t=>{var e,o;let{title:s,trailer_src:a,rating_age:l,restrictions:c,uid:_}=t,d={movieUrl:"/web/watch/".concat(i.alias),movieTitle:s,isTrailer:!0,isPageTrailer:!0,movieId:i._id,uid:i.uid,trailerSrc:a,announce:i.is_preview||i.is_disabled,playback:i.playback_options,similar:r,additional_content:!0,rating_age:l||i.rating_age,containsMeta:!!(null==c?void 0:c.find(t=>"ContainsMeta"===t.id))||!!(null===(e=i.restrictions)||void 0===e?void 0:e.find(t=>"ContainsMeta"===t.id)),containsSmoking:!!(null==c?void 0:c.find(t=>"ContainsSmoking"===t.id))||!!(null===(o=i.restrictions)||void 0===o?void 0:o.find(t=>"ContainsSmoking"===t.id)),promoData:{cls:"Trailer",uid:_,title:s,promoting_content:{id:i._id,uid:i.uid,cls:i._cls,alias:i.alias}}};n((0,O.o2)(d))},y=async()=>{if(m&&await (0,tm.j)({apiUrl:u,apiKey:h})){n((0,v.bL)({visible:!0}));return}x({title:s.title,trailer_src:s.video_src,rating_age:s.rating_age,restrictions:s.restrictions,uid:s.uid}),c({action_id:"click",block_type:"block",block_attributes_id:"trailers",product_id:i._id,content_id:i.uid,content_type:i._cls,element_type:"product",element_attributes_id:null==i?void 0:i.alias,element_attributes_index:1})},w=t=>{let{title:e,trailer_src:o,index:s,rating_age:r,restrictions:a,uid:l}=t;x({title:e,trailer_src:o,rating_age:r,restrictions:a,uid:l}),c({action_id:"click",block_type:"block",block_attributes_id:"trailers",product_id:i._id,content_id:i.uid,content_type:"Trailer",element_type:"product",element_attributes_id:null==i?void 0:i.alias,element_attributes_text:e,element_attributes_index:s+1})},T=(t,e)=>{c({action_id:"click",block_type:"block",block_attributes_id:"trailers",product_id:null==t?void 0:t.uid,c
1ontent_id:null==t?void 0:t.uid,content_type:"Trailer",element_type:"product",element_attributes_id:null==i?void 0:i.alias,element_attributes_text:null==t?void 0:t.title,element_attributes_index:e+1})};return i?(0,o.jsxs)("div",{className:oT().wrapper,children:[(0,o.jsxs)("section",{className:oT().content,"data-testid":"trailer_content",children:[(0,o.jsxs)("div",{className:oT().info,children:[(0,o.jsx)("h1",{"data-testid":"trailer_title",children:"".concat((null==i?void 0:i._cls)==="Product.Series"?"СеÑиал":""," ").concat(null==i?void 0:i.title,": ").concat(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ТÑейлеÑ";return t.includes(e)?t:"".concat(e," ").concat(t)}(null==s?void 0:s.title))}),(0,o.jsxs)("div",{className:oT().meta,children:[(0,o.jsx)("h3",{className:oT().title,children:s.title}),(0,o.jsx)("p",{className:oT().description,children:s.description})]})]}),(0,o.jsxs)("div",{className:oT().poster,style:{pointerEvents:g&&"none"},onClick:y,children:[g&&(0,o.jsx)(tO.A,{className:oT().skeleton}),(0,o.jsxs)("div",{className:oT().posterWrapper,children:[(0,o.jsx)(ti(),{ref:t=>(0,_.$R)(t,!g,f),className:oT().posterImage,loader:_.R2,src:p,blurDataURL:oD,alt:"poster",fill:!0}),!i.unavailable_by_geo&&(0,o.jsx)("img",{className:oT().play,src:"/static/images/product/button-play.svg",alt:"play"})]})]})]}),(0,o.jsx)("section",{className:oT().list,children:null==k?void 0:k.map((t,e)=>(0,o.jsx)(oN,{alias:i.alias,card:t,index:e,trailerItemClick:T,onPosterClick:t=>w({index:e,...t})},e))})]}):null};var oR=i(27796),oL=i.n(oR);let oM=a.memo(t=>{var e;let{item:i,position:s,noJs:r,movieData:n,onPosterClick:c,onProductPage:d}=t,p=(0,Q.A)(),[u,h]=(0,a.useState)(!1),m=(0,l.d4)(t=>t.systemInformation.renderMobile);return(0,o.jsx)("div",{className:oL()["item-wrap"],children:(0,o.jsxs)("div",{className:oL().item,children:[(0,o.jsxs)("div",{onClick:()=>{if(n.unavailable_by_geo)return;let{title:t,video_src:e,rating_age:o,restrictions:r,uid:a,announcement:l}=i;c({title:t,trailer_src:e,index:s,rating_age:o,restrictions:r,uid:a,announcement:l})},className:oL()["item-img-wrap"],children:[!u&&!r&&(0,o.jsx)(tO.A,{className:oL()["skeleton-card"]}),(0,o.jsx)(tM.A,{className:oL()["item-img-wrap-poster"],src:(t=>t?"".concat(p).concat((0,_.bZ)(t,m?"333x188":"471x266",85)):"/static/images/V2/preview-no-poster-horizontal.webp")(null===(e=i.packshot)||void 0===e?void 0:e.image_15x),width:m?222:314,height:m?125:177,onLoad:()=>h(!0),onError:()=>h(!1)}),!r&&!n.unavailable_by_geo&&(0,o.jsx)("img",{className:oL()["item-img-wrap-play-img"],src:"/static/images/product/button-play.svg",alt:"play"})]}),(0,o.jsx)("div",{className:oL().item__titles,children:(0,o.jsx)(tA(),{prefetch:!1,href:"/watch/".concat(n.alias,"/trailers/").concat(i.start_id),onClick:()=>{},className:oL()["item__titles-title-badge-block"],children:(0,o.jsx)("span",{className:oL()["item__titles-title"],"data-testid":"trailer_slider_item_titles_title_".concat(s+1),children:null==i?void 0:i.title})})}),!d&&(null==i?void 0:i.description)?(0,o.jsx)("div",{className:oL().item__description,children:null==i?void 0:i.description}):null]})})}),oU=t=>{let{sliderList:e,alias:i,isPaginator:s,onPosterClick:r,movieData:n,episode:d,onProductPage:p}=t,u=(0,X.A)(),[h,m]=(0,a.useState)(!1),[v,g]=(0,a.useState)(!0),b=(0,l.d4)(t=>t.systemInformation.documentClientWidth),k=t=>{if(t){if(t>c.U8){let e=(0,_.$J)(56,t);return{paddingRight:e,paddingLeft:e}}return t>c.af?{paddingRight:56,paddingLeft:56}:{paddingRight:24,paddingLeft:24}}},f=a.useMemo(()=>k(b),[b]);return(0,a.useEffect)(()=>{g(!1)},[]),(0,o.jsx)("div",{className:oL()["slider-wrap"],onMouseOver:()=>m(!0),onMouseOut:()=>m(!1),onFocus:()=>m(!0),onBlur:()=>m(!1),children:(0,o.jsx)(tE.A,{wrapperStyles:f,widthCard:{desktop:314,mobile:222},heightCard:{desktop:200,mobile:243},isPaginator:s,active:h,alias:i,items:e&&e,items_total:e&&(null==e?void 0:e.length),arrowClick:t=>{u({element_type:"button",element_attributes_id:t?"arrow_right":"arrow_left",block_attributes_id:"trailers",action_id:"click",screen_type:"product",content_id:d?null==d?void 0:d.uid:n.uid,product_id:n.uid,content_type:n._cls,block_type:"block",event_time:Date.now()})}
1,cardIdent:16,isProduct:!0,children:(0,o.jsx)("div",{className:oL().items_wrap,children:null==e?void 0:e.map((t,e)=>(0,o.jsx)(oM,{item:t,noJs:v,position:e,movieData:n,onProductPage:p,onPosterClick:r},"trailer-".concat(e,"-").concat(t.uid)))})})})};var oH=i(12587),oO=i.n(oH);let oF={initPlayer:m.kI,getPlayerData:O.o2,clickHouseShoot:m.Y3,setAutoTrailer:F.jG};class oW extends a.Component{componentDidMount(){this.setState({browserWidth:window.innerWidth})}render(){let{title:t,alias:e,additional_content:i}=this.props.movieData,{page:s,trailer:r,episode:l,bannerData:n}=this.props;if(!i||!i.length)return null;let c=!s||"seasons"===s||r||l;return(0,o.jsxs)(a.Fragment,{children:[(0,o.jsxs)("div",{className:"".concat(oO().product__trailers),children:[!s||"seasons"===s||r||l?(0,o.jsx)(tA(),{prefetch:!1,href:"/watch/".concat(e,"/trailers"),"data-testid":"trailers_link",children:(0,o.jsx)("h2",{className:ea().product__linked,onClick:()=>this.handleShootTitle("link","trailers",0),children:(0,o.jsx)("span",{children:"ТÑейлеÑÑ"})})}):(0,o.jsx)("h1",{children:"".concat(t,": ÑÑейлеÑÑ")}),(0,o.jsx)(oU,{sliderList:i,alias:"trailers",movieData:this.props.movieData,episode:l,onTitleClick:()=>{},onPosterClick:this.trailerRequestHandler,onProductPage:c})]}),n&&"trailers"===n.position&&(0,o.jsx)(t$.A,{bannerData:n,movieData:this.props.movieData})]})}constructor(...t){var e;super(...t),e=this,this.state={browserWidth:0},this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.handleShoot=(t,e,i)=>{let{clickHouseData:o}=this.props.systemInformation,{_id:s}=this.props.movieData,r={...o,action_id:"click",block_type:"block",block_attributes_id:"trailers",product_id:s,content_id:i,content_type:"Trailer",element_type:"product",element_attributes_text:t,element_attributes_index:e+1,event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,r)},this.handleShootButtonPlay=(t,e)=>{let{clickHouseData:i}=this.props.systemInformation,{_id:o}=this.props.movieData,s={...i,action_id:"click",block_type:"block",block_attributes_id:"trailers",product_id:o,element_type:"button",element_attributes_id:"play",element_attributes_index:t+1,content_id:e,content_type:"Trailer",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,s)},this.handlePlayClick=(t,e,i,o,s,r,a,l,n,c,_,d,p)=>{t.stopPropagation();let u={movieUrl:"/web/watch/".concat(_),movieTitle:e,isTrailer:!0,movieId:o,playback:c,trailerSrc:i,isPageTrailer:!0,similar:this.props.similar,announce:d||p,additional_content:a,rating_age:l,containsMeta:!!(null==n?void 0:n.find(t=>"ContainsMeta"===t.id)),containsSmoking:!!(null==n?void 0:n.find(t=>"ContainsSmoking"===t.id))};this.props.initPlayer({init:!0,type:"Trailer"}),this.props.getPlayerData(u),this.handleShootButtonPlay(s,r),this.props.setAutoTrailer(!1)},this.trailerRequestHandler=t=>{let{title:e,trailer_src:i,index:o,rating_age:s,restrictions:r,uid:a}=t,{movieData:l}=this.props,{_id:n,uid:c,playback_options:_,is_preview:d,is_disabled:p,alias:u,rating_age:h}=this.props.movieData,m={movieUrl:"/web/watch/".concat(u),movieTitle:e,isTrailer:!0,isPageTrailer:!0,movieId:n,uid:c,trailerSrc:i,announce:d||p,playback:_,similar:this.props.similar,additional_content:!0,rating_age:s||h,containsMeta:!!(null==r?void 0:r.find(t=>"ContainsMeta"===t.id)),containsSmoking:!!(null==r?void 0:r.find(t=>"ContainsSmoking"===t.id)),promoData:{cls:"Trailer",uid:a,title:e,promoting_content:{id:l._id,uid:l.uid,cls:l._cls,alias:l.alias}}};this.props.initPlayer({init:!0,type:"Trailer"}),this.props.getPlayerData(m),this.handleShoot(e,o,c)},this.handleErrorImage=t=>{t.target.src="/static/images/product/trailer-default.svg"},this.handleShootTitle=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"trailers",o=arguments.length>2?arguments[2]:void 0,{clickHouseData:s}=e.props.systemInformation,{_id:r,uid:a,_cls:l}=e.props.movieData,n={...s,action_id:"click",block_type:"block",block_attributes_id:"trailers",product_id:a,content_id:a,content_type:l,element_type:t,element_attributes_id:i,element_attributes_text:"ТÑейлеÑÑ",element_attributes_index:parseInt(o+1)||1,event_time:new Date().getTime()};e.props.clickHouseShoot(e.apiUrl,e.apiKey,n)}}}(0,l.Ng)(t=>({registration:t.registration,systemInformation:t.systemInformation,profile:t.profile}),oF)(oW);let oK=t=>{let{movieData:e,similar:i,page:s,trailer:r,episode:a,bannerData:n}=t,c=(0,l.wA)(),_=(0,X.A)(),d=(0,Q.A)(),p=(0,Z.A)(),u=(0,l.d4)(t=>t.profile.childProfile),h=!s||"seasons"===s||r||a,g=async t=>{let{title:o,trailer_src:s,index:r,rating_age:a,restrictions:l,uid:n,announcement:h}=t;if(u&&await (0,tm.j)({apiUrl:d,apiKey:p})){c((0,v.bL)({visible:!0}));return}let g={movieUrl:"/web/watch/".concat(e.alias),movieTitle:o,isTrailer:!0,isPageTrailer:!0,movieId:e._id,uid:e.uid,trailerSrc:s,playback:e.playback_o
1ptions,similar:i,announce:e.is_preview||e.is_disabled,additional_content:!0,rating_age:a||e.rating_age,containsMeta:!!(null==l?void 0:l.find(t=>"ContainsMeta"===t.id)),containsSmoking:!!(null==l?void 0:l.find(t=>"ContainsSmoking"===t.id)),promoData:{cls:"Trailer",uid:n,title:o,promoting_content:{id:e._id,uid:e.uid,cls:e._cls,alias:e.alias}}};e.unavailable_by_geo||(c((0,m.kI)({init:!0,type:"Trailer"})),c((0,O.o2)(g))),_({action_id:"click",block_type:"block",block_attributes_id:"trailers",product_id:e._id,content_id:e.uid,content_type:"Trailer",element_type:"product",element_attributes_id:"play",element_attributes_text:o,element_attributes_index:r+1})};return(0,o.jsxs)(o.Fragment,{children:[h?(0,o.jsxs)("div",{className:"".concat(oO().product__trailers),children:[(0,o.jsx)(tA(),{href:"/watch/".concat(e.alias,"/trailers"),prefetch:!1,"data-testid":"trailers_link",children:(0,o.jsx)("h2",{className:ea().product__linked,onClick:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"trailers",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;_({action_id:"click",block_type:"block",block_attributes_id:"trailers",product_id:e.uid,content_id:e.uid,content_type:e._cls,element_type:t,element_attributes_id:i,element_attributes_text:"ТÑейлеÑÑ",element_attributes_index:parseInt(o+1)||1})},children:(0,o.jsx)("span",{children:"ТÑейлеÑÑ"})})}),(0,o.jsx)(oU,{sliderList:e.additional_content,alias:"trailers",movieData:e,episode:a,onTitleClick:()=>{},onPosterClick:g,onProductPage:h})]}):(0,o.jsxs)("div",{className:oO().wrapper,children:[(0,o.jsx)("h1",{className:oO().wrapper__title,"data-testid":"trailers_title",children:"".concat("Product.Series"===e._cls?"СеÑиал":""," ").concat(e.title,": ТÑейлеÑÑ")}),(0,o.jsx)("div",{className:oO().list,children:e.additional_content.map((t,i)=>(0,o.jsx)(oN,{alias:e.alias,card:t,onPosterClick:t=>g({index:i,...t}),trailerItemClick:()=>{},geoUnavailable:e.unavailable_by_geo,index:i},i))})]}),n&&"trailers"===n.position&&(0,o.jsx)(t$.A,{bannerData:n,movieData:e})]})},oV=H()(()=>Promise.all([i.e(2406),i.e(1437),i.e(242),i.e(2386),i.e(6834),i.e(6517),i.e(7053),i.e(5837)]).then(i.bind(i,25837)),{loadableGenerated:{webpack:()=>[25837]},ssr:!1,loading:()=>null}),oz=H()(()=>Promise.all([i.e(7127),i.e(7255)]).then(i.bind(i,47255)),{loadableGenerated:{webpack:()=>[47255]},ssr:!1,loading:()=>null}),oY={toggleCheckAgePopup:v.UV,fetchedPromoContent:G},oG=["topBlock","description","series","extras","selections","trailers","persons","characters","story","articles"],oJ=["inspektor-gavrilov","tvoe-serdce-budet-razbito","istoriya-ego-sluzhanki","holop","deti-peremen","papiny-dochki-novye","holod","svodish-s-uma","zolotoe-dno","vampiry-sredney-polosy"];class oq extends a.PureComponent{componentDidUpdate(t,e){var i,o,s,r,a,l,n,d,p;let{page:u,movieData:h}=this.props,{background:m,logotype:v,is_preview:g}=this.props.movieData,{authData:b}=this.props.registration,{windowInnerWidth:k}=this.props.systemInformation,{background:f,logotype:x}=t.movieData,{windowInnerWidth:y}=t.systemInformation,{isScrolledPage:w,timePage:T}=this.state,{isScrolledPage:S,timePage:j}=e,C="test_comments_product_page"===(0,_.l3)((null==b?void 0:b.ab)||[],"comments_product_page");if(b&&C&&!b.profile_for_child&&this.commentsFetchedForProductId!==h.uid&&(this.commentsFetchedForProductId=h.uid,this.fetchComments()),b&&b.subscriptions.length||g?(0,_.KV)():(m&&m.image_15x&&m!==f&&!g&&localStorage.setItem("bgUrl",m.image_15x),v&&v.image_15x&&v!==x&&!g&&localStorage.setItem("logoUrl","".concat(this.apiUrl).concat(v.image_15x)),this.saveBadgesToCookies()),k&&y&&k!==y&&this.resizeHandler(),this.intersectionObserver&&(null===(o=window)||void 0===o?void 0:null===(i=o.location)||void 0===i?void 0:i.hash)&&(null===(a=window)||void 0===a?void 0:null===(r=a.history)||void 0===r?void 0:null===(s=r.state)||void 0===s?void 0:s.as)&&(null===(p=window)||void 0===p?void 0:null===(d=p.history)||void 0===d?void 0:null===(n=d.state)||void 0===n?void 0:null===(l=n.as)||void 0===l?void 0:l.split("#")[0])!=="/watch/".concat(null==h?void 0:h.alias)&&(window.history.replaceState(window.history.state,document.title,window.location.pathname+window.location.search),this.unsubscribeIntersectionObserver()),(!u||"seasons"===u||"episode"===u)&&w){this.intersectionObserver=new IntersectionObserver(function(t){t.forEach(t=>{if(t.isIntersecting){var e;this.navBarFunc(null===(e=t.target)||void 0===e?void 0:e.id)}})},{threshold:.95});let t=document.getElementById("description"),e=document.getElementById("series"),i=document.getElementById("extras"),o=document.getElementById("selections"),s=document.getElementById("trailers"),r=
1document.getElementById("persons"),a=document.getElementById("characters"),l=document.getElementById("story"),n=document.getElementById("articles");this.intersectionObserver.navBarFunc=t=>{var e,i;null===(i=this.navBarRef)||void 0===i||null===(e=i.current)||void 0===e||e.changeActiveElem(t)},t&&this.intersectionObserver.observe(t),e&&this.intersectionObserver.observe(e),i&&this.intersectionObserver.observe(i),o&&this.intersectionObserver.observe(o),s&&this.intersectionObserver.observe(s),r&&this.intersectionObserver.observe(r),a&&this.intersectionObserver.observe(a),l&&this.intersectionObserver.observe(l),n&&this.intersectionObserver.observe(n)}w&&T&&(S!==w||j!==T)&&((0,c.RZ)("product_page_scroll"),this.setState({timePage:!1}),clearTimeout(this.timer)),this.calculateLineIdx()}componentWillUnmount(){this.unsubscribeIntersectionObserver(),document.removeEventListener("wheel",this.wheelHandler),window.scrollTo(0,0)}render(){var t,e,i,s,r;let{movieData:a,similar:l,page:n,season:d,type:p,episode:u,seasonNum:h,trailer:m,hero:v,extra:g,kidsProfile:b,articles:k,progress:f,currentProductSubscribe:x,registration:{authData:y,tariffs:w},streamMeta:T}=this.props,{browserWidth:S,comments:j,isCommentsLoading:C,lineElemsIdArray:B,topBlockReportFunc:N,noJs:P}=this.state,{checkAge:I,visibleNoAuthLikePopup:D,loginSubscribePopup:A}=this.props.toggle,{config:E}=this.props.systemInformation,R=null==a?void 0:null===(t=a.items)||void 0===t?void 0:t.length,{onboardingTrailer:L}=this.props.profile,{_cls:M}=this.props.movieData,U=a.cast&&a.cast.length||a.directors&&a.directors.length||a.operators&&a.operators.length||a.producers&&a.producers.length||a.writers&&a.writers.length||a.composers&&a.composers.length,H=J(a),O=!n||"seasons"===n||"episode"===n,F=this.isNewEpisodePage(),W=this.isInternalPage(n),K=(0,_.Mq)(a.items),V=this.getNumbersOfAvailableSeasons(a.items),G=(null==y?void 0:y.virtual)===!1&&y.subscriptions&&y.subscriptions.length,q=(null==w?void 0:w.length)&&c.UM[null===(e=w[0])||void 0===e?void 0:e.currency]||c.UM.RUB,Z=(null==w?void 0:w.length)&&this.getMonthlyPriceFromYear(w)||"249",Q=(!n||"seasons"===n||F)&&(!(null==a?void 0:a.is_preview)||(null==a?void 0:null===(i=a.seo)||void 0===i?void 0:i.short_description)||(null==a?void 0:a.description)),X=(0,ts.JP)({alias:null==a?void 0:a.alias,config:E}),$=(0,ts.MY)(X,ts.Qh.TSBR),tt=(0,ts.MY)(X,ts.Qh.HOLOD),te=(0,ts.MY)(X,ts.Qh.LML),ti=(0,ts.MY)(X,ts.Qh.OLDSKUL),to=!(null==X?void 0:X.hideProductBanners)&&!G,tr=(null==X?void 0:X.showProjectElements)&&O,ta=(null==X?void 0:X.contentBackgroundStart)===ts.iG.SERIES&&O&&R,tl=("extras"===n||O)&&(null==a?void 0:null===(s=a.promo_content)||void 0===s?void 0:s.length),tn=("person"===n||O)&&U&&(null==H?void 0:H.length);return(0,o.jsxs)("div",{className:z()(ea().product,{[ea()["product_tvoe-serdce-budet-razbito"]]:$,[ea().product_holod]:tt}),"data-testid":"product",children:[(0,o.jsx)(oy,{id:"TopBlock",movieData:a,isTrailerRequest:!1,page:n,type:p,season:d,seasonNum:h,episode:u,trailer:m,hero:v,extra:g,bannerData:null,similar:l,kidsProfile:b,progress:f,currentProductSubscribe:x,setTopBlockFunc:t=>{this.setState({topBlockReportFunc:t})},isInternalPageOn:W,isNewEpisodePage:F,numbersOfAvailableSeasons:V,yearSubMonthlyPrice:Z,currentCurrency:q,noJs:P,productCustomization:X}),(null==y?void 0:y.profile_for_child)&&!a.for_kids?null:(0,o.jsxs)("main",{className:z()({[ea().onboarding]:L}),children:[tr?(0,o.jsx)(iK,{}):null,to&&S>1024&&["extra","extras","selections","trailer","trailers","person","articles","characters","hero"].includes(n)&&(0,o.jsx)(tZ,{index:1,movieData:a,yearSubMonthlyPrice:Z,currentCurrency:q}),to&&S<1025&&(0,o.jsx)(tZ,{index:2,movieData:a,yearSubMonthlyPrice:Z,currentCurrency:q}),(!n||"seasons"===n||F)&&S>1024?(0,o.jsx)(tf,{ref:this.navBarRef,page:n,movieData:a,episode:u,hasSimilar:l&&l.length,hasArticles:k&&k.length,similar:l,topBlockReportFunc:N,currentProductSubscribe:x,seasonNum:h,numbersOfAvailableSeasons:V,noJs:P,productCustomization:X,isHolod:tt},null==a?void 0:a.alias):null,!n||"seasons"===n||"episode"===n||F?(0,o.jsx)(il,{episode:u,movieData:a,page:n,season:d,type:p}):null,u&&!F?(0,o.jsx)(eO,{seasonNum:h,movieData:a,page:n,episode:u,similar:l}
1):null,m?(0,o.jsx)(oE,{movieData:a,trailer:m,similar:l}):null,g?(0,o.jsx)(e9,{movieData:a,extra:g,similar:l}):null,this.renderCustomizedContentWrapper({shouldShowBackground:ta,isHolod:tt,children:(0,o.jsxs)(o.Fragment,{children:[R&&O?(0,o.jsx)(Y.Hg,{id:"series",name:"series",children:(0,o.jsx)(i8.A,{movieData:a,page:n,season:null==d?void 0:d.split("-")[1],episode:u,type:p,maxSeason:K,bannerData:null,similar:l,progress:f,intersectionObserverOff:this.unsubscribeIntersectionObserver,isNewEpisodePage:F,productCustomization:X})}):null,to&&S>1024&&"Product.Series"===M&&(!n||"seasons"===n||"episode"===n)&&(0,o.jsx)(tZ,{index:4,movieData:a,yearSubMonthlyPrice:Z,currentCurrency:q}),O&&(C||j.length)?(0,o.jsx)(Y.Hg,{id:"comments",name:"comments",children:(0,o.jsx)(oz,{index:("Product.Series"===M?2:1)+Number(to),movieData:a,comments:j,isLoading:C})}):null,ti?(0,o.jsxs)("div",{className:z()({[ea()["product__customized-content_oldskul"]]:O}),children:[Q?(0,o.jsx)(Y.Hg,{id:"description",name:"description",children:(0,o.jsx)(eE,{movieData:a,type:p,season:d,page:n,bannerData:null,kidsProfile:b,streamMeta:T,episode:u,isNewEpisodePage:F,numbersOfAvailableSeasons:V,productCustomization:X})}):null,tn?(0,o.jsx)("div",{id:"persons",children:(0,o.jsx)(e_,{movieData:a,categoriesList:H,episode:u,page:n,type:p,trailer:m,bannerData:null,productCustomization:X})}):null,tl?(0,o.jsx)(Y.Hg,{id:"extras",children:(0,o.jsx)(e3,{movieData:a,page:n,episode:u,similar:l,lineIdx:(null==B?void 0:B.indexOf("extras"))+1})}):null]}):null,!ti&&Q?(0,o.jsx)(Y.Hg,{id:"description",name:"description",children:(0,o.jsx)(eE,{movieData:a,type:p,season:d,page:n,bannerData:null,kidsProfile:b,streamMeta:T,episode:u,isNewEpisodePage:F,numbersOfAvailableSeasons:V,productCustomization:X})}):null,!ti&&tl?(0,o.jsx)(Y.Hg,{id:"extras",children:(0,o.jsx)(e3,{movieData:a,page:n,episode:u,similar:l,lineIdx:(null==B?void 0:B.indexOf("extras"))+1})}):null,O&&a.cast&&a.cast.length&&te?(0,o.jsx)(iS,{}):null,(!n||F||"seasons"===n||"selections"===n)&&((null==a?void 0:null===(r=a.hashtags)||void 0===r?void 0:r.length)||(null==l?void 0:l.length))?(0,o.jsx)(Y.Hg,{id:"selections",children:(0,o.jsx)(i7,{page:n,episode:u,season:d,selections:a.hashtags,similar:l,movieData:a,lineIdx:(null==B?void 0:B.indexOf("selections"))+1,seasonNum:h,productCustomization:X})}):null,to&&S>1024&&"Product.Movie"===M&&!n&&(0,o.jsx)(tZ,{index:6,movieData:a,yearSubMonthlyPrice:Z,currentCurrency:q}),("trailers"===n||O)&&a.additional_content&&a.additional_content.length&&!a.is_disabled?(0,o.jsx)(Y.Hg,{id:"trailers",children:(0,o.jsx)(oK,{movieData:a,page:n,trailer:m,episode:u,similar:l,bannerData:null})}):null,tn&&!ti?(0,o.jsx)("div",{id:"persons",children:(0,o.jsx)(e_,{movieData:a,categoriesList:H,episode:u,page:n,type:p,trailer:m,bannerData:null,productCustomization:X})}):null,("characters"===n||O)&&a.cast&&a.cast.length&&!te?(0,o.jsx)(iR,{movieData:a,page:n,type:p,bannerData:null}):null,v?(0,o.jsx)(ix,{movieData:a,hero:v}):null,!n&&O&&a&&a.seo&&a.seo&&a.seo.subject?(0,o.jsx)(Y.Hg,{id:"story",name:"story",children:(0,o.jsx)(oo,{movieData:a,data:a.seo.subject,bannerData:null})}):null,O&&a.facts&&a.facts.length?(0,o.jsx)(is,{data:a.facts,movieData:a}):null,!(null==y?void 0:y.profile_for_child)&&k&&k.length&&(!n||"articles"===n||"seasons"===n||F)?(0,o.jsx)(Y.Hg,{id:"articles",children:(0,o.jsx)(tV,{articles:k,type:p,page:n,movieData:a,isNewEpisodePage:F})}):null]})})]}),I?(0,o.jsx)(tC,{alias:a.alias,id:a._id}):null,D?(0,o.jsx)(tI,{}):null,A?(0,o.jsx)(tw,{}):null,(0,o.jsx)(oV,{})]})}constructor(...t){super(...t),this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.badgesSaved=!1,this.intersectionObserver=null,this.timer=null,this.commentsFetchedForProductId=null,this.state={topBlockReportFunc:null,isScrolledPage:null,lineElemsIdArray:null,browserWidth:0,timePage:null,noJs:!0,comments:[],isCommentsLoading:!1},this.navBarRef=a.createRef(),this.componentDidMount=async()=>{this.setState({noJs:!1});let{authData:t}=this.props.registration,{background:e,logotype:i,is_preview:o}=this.props.movieData;t&&t.subscriptions.length||o?(0,_.KV)():(e&&e.image_15x&&!o&&localStorage.setItem("bgUrl",e.image_15x),i&&i.image_15x&&!o&&localStorage.setItem("logoUrl","".concat(this.apiUrl).concat(i.image_15x)),this.saveBadgesToCookies(),(0,_.Yj)("contentUrl"),(0,_.TV)("contentUrl",window.location.pathname)),document.addEventListener("wheel",this.wheelHandler),this.setState({browserWidth:window.innerWidth}),this.startTimer()},this.startTimer=()=>{this.timer=setTimeout(()=>{this.setState({timePage:!0})},1e4)},this.wheelHandler=()=>{var t;(null===(t=this.state)||void 0===t?void 0:t.isScrolledPage)||this.setState({isScrolledPage:!0})},this.fetchComments=async()=>{let{movieData:t}=this.props;if(!oJ.includes(t.alias)){this.setState({comments:[],isCommentsLoading:!1});return}this.setState({comments:[],isCommentsLoading:!0});try{let e=await fetch("".concat(this.apiUrl).concat(n.PI.comments).concat(this.apiKey),{credentials:"include"}),i=await e.json();if(!e.ok){this.setState({comments:[],isCommentsLoading:!1});return}let o=Array.isArray(i)?i.find(e=>(null==e?void 0:e.product_id)===t.uid):null;this.setState({comments:Array.isArray(null==o?void 0:o.items)?o.items:[],isCommentsLoading:!1})}catch(t){this.setState({comments:[],isCommentsLoading:!1})}},this.resizeHandler=()=>{let{innerWidth:t}=window,{browserWidth:e}=this.state;t!==e&&this.setState({browserWidth:t})},this.saveBadgesToCookies=()=>
1{if(!this.badgesSaved){var t;let{movieData:e}=this.props,i=null==e?void 0:null===(t=e.badges)||void 0===t?void 0:t.filter(t=>"logo"===t.type||"start"===t.type||"badge"===t.type&&t.under_logo_position);(0,_.TV)("badges",JSON.stringify(i)),this.badgesSaved=!0}},this.unsubscribeIntersectionObserver=()=>{var t;null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),this.setState({isScrolledPage:!1})},this.isNewEpisodePage=()=>{let{page:t}=this.props;return t&&"episode"===t},this.isInternalPage=t=>t&&"seasons"!==t&&"episode"!==t,this.calculateLineIdx=()=>{let t=[];oG.forEach(e=>{document.getElementById(e)&&t.push(e)}),JSON.stringify(this.state.lineElemsIdArray)!==JSON.stringify(t)&&this.setState({lineElemsIdArray:t})},this.getNumbersOfAvailableSeasons=t=>{if(!t||!(null==t?void 0:t.length))return null;let e=new Set;return t.forEach(t=>{let i=t.is_preview&&0===t.items.length,o=t.items.every(t=>t.announcement);i||o||e.add(t.num)}),e},this.getMonthlyPriceFromYear=t=>{var e;return parseInt((null===(e=t[t.length-1])||void 0===e?void 0:e.price)/12)},this.renderCustomizedContentWrapper=t=>{let{children:e,shouldShowBackground:i,isHolod:s}=t;return i&&s?(0,o.jsx)("div",{className:ea()["product__customized-content_holod"],children:e}):e}}}let oZ=(0,l.Ng)(t=>({profile:t.profile,registration:t.registration,systemInformation:t.systemInformation,toggle:t.toggle,promoContent:t.promoContent}),oY)(oq);var oQ=i(97093),oX=i(73252),o$=i.n(oX),o0=i(87335),o1=i.n(o0);let o2=a.memo(t=>{let{wrappClassName:e,className:i,title:s,description:r,category:l,poster:n,url:d,deviceData:p,shortDescription:u=!1,small:h=!1,onClick:m,index:v,showGrid:g}=t,[b,k]=(0,a.useState)(!1);return(0,o.jsx)("div",{className:e,children:(0,o.jsx)(tA(),{prefetch:!1,href:d,className:z()({[o1().article]:!g,[o1().article_small]:h&&!g,[o1().article_grid]:g,[i]:i}),onClick:m,children:(0,o.jsxs)(o.Fragment,{children:[!b&&(0,o.jsx)(tO.A,{className:z()({[o1().skeleton]:!g,[o1()["skeleton-grid"]]:g})}),(0,o.jsx)(tM.A,{fill:!0,className:o1().article__background,src:(t=>{let e="580x336";switch(p){case"mobile_web":e="383x222";break;case"tablet_web":e="992x575";break;case"desktop_web":e="1360x788";break;default:e="580x336"}return(0,_.bZ)(t,e,"mobile_web"===p?30:20)})(n),sizes:"(max-width: 768px) 100vw",onLoad:()=>k(!0),onError:()=>k(!1)}),(0,o.jsxs)("div",{className:o1()["article-content"],children:[(0,o.jsxs)("div",{className:o1().article__category,children:[(0,o.jsx)("span",{className:o1()["article__category-mark"],style:{backgroundColor:l.color,color:l.text_color}}),(0,o.jsx)("span",{className:o1()["article__category-title"],children:l.title})]}),(0,o.jsx)("div",{className:o1().article__title,children:(0,c.IN)(120,s)}),s.length<=120?(0,o.jsx)("div",{className:o1().article__description,children:u?(0,c.IN)(150,r):(0,c.IN)(240,r)}):null]}),(0,o.jsx)("img",{className:o1()["article-arrow"],src:"/static/images/product/article-arrow.svg",alt:""})]})})})}),o4={clickHouseShoot:m.Y3},o3=(0,l.Ng)(t=>({systemInformation:t.systemInformation,toggle:t.toggle,registration:t.registration,profile:t.profile}),o4)(t=>{let{sliderList:e,lineIdx:i,alias:s,isPaginator:r,onItemClick:n,systemInformation:d,movieData:p,blockAttributesIndex:u,showGrid:h}=t,v=(0,Q.A)(),g=(0,Z.A)(),[b,k]=(0,a.useState)(!1),{documentClientWidth:f,clickHouseData:x}=d,y=(0,l.wA)(),w=f<c.af,T=f<c.af,S=f>c.I9&&f<=c.af,j=!T&&!S,C=(t,e,i)=>{var o;t.stopPropagation();let s={...x,action_id:"click",product_id:null==p?void 0:p._id,content_id:null==e?void 0:e.id,content_type:null!==(o=null==p?void 0:p._cls)&&void 0!==o?o:"",block_type:"collection",block_attributes_id:"journal",block_attributes_index:u,element_type:"journal_post",element_attributes_id:e.alias,element_attributes_text:e.title,element_attributes_index:parseInt(i+1)||1,event_time:new Date().getTime()};y((0,m.Y3)(v,g,s))};return(0,o.jsx)("div",{className:z()({[o$()["slider-wrap"]]:!h,[o$().slider_wrap_grid]:h}),onMouseOver:()=>k(!0),onMouseOut:()=>k(!1),onFocus:()=>k(!0),onBlur:()=>k(!1),children:(0,o.jsx)(tE.A,{wrapperStyles:(()=>{if(f){if(f>c.U8){let t=(0,_.$J)(56,f);return{paddingRight:t,paddingLeft:t}}return f>c.af?{paddingRight:56,paddingLeft:56}:{paddingRight:24,paddingLeft:24}}})(),widthCard:{desktop:540,mobile:326},heightCard:{desktop:382,mobile:214},lineIdx:"lineIdx",active:b&&!h,alias:s,items:e&&e,isPaginator:r&&!h,items_total:e&&(null==e?void 0:e.length),arrowClick:t=>{var e;let i={...x,product_id:null==p?void 0:p._id,content_id:null==p?void 0:p.uid,content_type:null!==(e=null==p?void 0:p._cls
1)&&void 0!==e?e:"",block_type:"collection",block_attributes_id:"journal",block_attributes_index:u,element_type:"button",element_attributes_id:t?"arrow_right":"arrow_left",event_time:new Date().getTime()};y((0,m.Y3)(v,g,i))},cardIdent:w?16:24,isProduct:!0,renderFade:!h,children:(0,o.jsx)("div",{className:z()({[o$().items_wrap]:!h,[o$().items_wrap__grid]:h}),children:null==e?void 0:e.map((t,e)=>(0,o.jsx)(o2,{wrappClassName:o$()["item-wrap"],title:t.title,category:t.category,description:t.short_description,poster:"".concat(v).concat(t.horizontal_poster),url:t.web_url,deviceData:d.deviceData,shortDescription:j||t.length>=2,small:!j&&t.length>=2,onClick:i=>C(i,t,e),index:e,showGrid:h},t.alias))})})})}),o5=t=>{let{articles:e,page:i,movieData:s,isNewEpisodePage:n}=t,[_,d]=(0,a.useState)(!0),p=(0,l.wA)(),u=(0,l.d4)(t=>t.systemInformation),h=u.API_URL||c.H$,v=u.API_KEY||c.Lq,g="СÑаÑÑи о ЧемпионаÑе миÑа",b=!i||"seasons"===i||n,k=b?2:1;(0,a.useEffect)(()=>{d(!1)},[]);let f="articles"===i;return(0,o.jsxs)("div",{className:z()({[o1()["articles-main"]]:!f,[o1().articles_main_r]:f}),children:[b?(0,o.jsx)("h2",{className:o1()["articles-title"],"data-testid":"read_about_title",children:g}):(0,o.jsx)("h1",{className:z()(o1()["articles-header"],{[o1()["articles-header-redesign"]]:f}),"data-testid":"read_about_title",children:g}),(0,o.jsx)(o3,{sliderList:e,alias:"articles",movieData:s,blockAttributesIndex:k,showGrid:f,isPaginator:!0}),(0,o.jsx)("div",{className:o1()["article-button-wrap"],children:(0,o.jsx)(to.$n,{size:to.GO.REGULAR,variant:to.Vt.SECONDARY,title:"ÐолÑÑе ÑÑаÑей в ÐÑÑнале",onClick:t=>{var e;let i={...u.clickHouseData,action_id:"click",product_id:null==s?void 0:s._id,content_id:null==s?void 0:s.uid,content_type:null!==(e=null==s?void 0:s._cls)&&void 0!==e?e:"",block_type:"collection",block_attributes_id:"journal",block_attributes_index:k,element_type:"button",element_attributes_id:"show_more",element_attributes_text:t.target.textContent,event_time:Date.now()};p((0,m.Y3)(h,v,i)),r().push("/journal")},needResponsive:!0})})]})};var o6=i(86389),o7=i.n(o6);let o8=t=>{var e,i,n,c,d,p,u,h,m,g;let{movieData:b,index:k,yearSubMonthlyPrice:f,currentCurrency:x}=t,y=(0,l.wA)(),w=(0,tY.A)(),T=(0,s.useRouter)(),S=(0,X.A)(),j=(0,l.d4)(t=>t.registration.authData),C=(0,l.d4)(t=>t.registration.tariffs),B=(0,l.d4)(t=>t.systemInformation.config),N=(0,l.d4)(t=>t.systemInformation.clickHouseData),P=(null==j?void 0:j.type)==="EX_PAID",I=null==j?void 0:j.profile_for_child,D=(null==j?void 0:j.subscriptions.some(t=>(null==t?void 0:t.acl_type)==="lite"))&&!(null==j?void 0:j.subscriptions.some(t=>(null==t?void 0:t.acl_type)==="premium")),A=(P||D)&&I,E=null===(e=T.query.params)||void 0===e?void 0:e[1],R=null===(i=T.query.params)||void 0===i?void 0:i[0],L=(0,_.pK)(C),M=(0,_.EE)(null==j?void 0:j.trial_is_available,L),U=(0,_.Ri)("channel"),{ref:H,inView:O}=(0,tz.Wx)({threshold:.5});(0,a.useEffect)(()=>{O&&N&&j&&S({action_id:"collection_view",action_result:1,action_attributes_num:k,action_parameter:"link",block_type:"banner",block_attributes_id:"banner_link",block_attributes_index:k,product_id:null==b?void 0:b.uid,element_type:"link",element_attributes_index:1,element_attributes_id:"".concat(window.location.origin,"/auth"),screen_type:"product",screen_attributes_id:"".concat(R).concat(E?"/".concat(E):""),custom_field_str1:"".concat(window.location.origin,"/auth")})},[O,N,j]);let F=j?(t=>t?t<768?"/static/images/product/banner/banner-375.webp":t<1025?"/static/images/product/banner/banner-1024.webp":"/static/images/product/banner/banner-1440.webp":"")(null==w?void 0:w.width):"";return(null==B?void 0:null===(n=B.banner_kp)||void 0===n?void 0:n.title)||(null==B?void 0:null===(c=B.banner_kp)||void 0===c?void 0:c.desc)?(0,o.jsxs)("article",{ref:H,className:o7().banner,onClick:()=>{if(S({action_id:"click",action_parameter:"link",block_type:"banner",block_attributes_id:"banner_link",block_attributes_index:k,product_id:null==b?void 0:b.uid,screen_type:"product",element_type:"link",element_attributes_id:"".concat(window.location.origin,"/auth"),element_attributes_index:1,element_attributes_text:M?"ÐопÑобоваÑÑ ".concat(L," ").concat((0,_.jQ)(["денÑ","днÑ","дней"],L)," беÑплаÑно"):"ÐÑоÑмиÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑкÑ",screen_attributes_id:"".concat(R).concat(E?"/".concat(E):""),custom_field_str1:"".concat(window.location.origin,"/auth")}),null==j?void 0:j.virtual)r().push("/auth");else{if(A){y((0,v.bL)({visible:!0}));return}y((0,tG.bo)())}},children:[F?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:o7().title,dangerouslySetInnerHTML:{__html:(null==B?void 0:null===(u=B.banner_kp)||void 0===u?void 0:null===(p=u.title)||void 0===p?void 0:null===(d=p.replace("{titlePrice}",f))||void 0===d?void 0:d.replace("{titleCurrency}",x))||"ÐÐÐÐÐШÐСЬ ÐРЧУÐÐ-СÐÐ ÐÐÐЫ РХÐТЫ START"}}),(0,o.jsx)("span",{className:o7().description,dangerouslySetInnerHTML:{__html:(null==B?void 0:null===(g=B.banner_kp)||void 0===g?void 0:null===(m=g.desc)||void 0===m?void 0:null===(h=m.replace("{descPrice}",f))||void 0===h?void 0:h.replace("{descCurrency}",x))||"Родной подпиÑке \xabÐоÑледний ÐогаÑÑÑÑ. ÐаÑледие\xbb, \xabÐиÑÑ Ð¶Ð¸Ð·Ð½Ñ\xbb, \xabСлово паÑана\xbb, \xabСодеÑжанки\xbb и еÑе 100+ оÑигиналÑнÑÑ
пÑоекÑов. РеÑе новинки кино, лÑбимÑе мÑлÑÑÑилÑÐ¼Ñ Ð¸ 200+ ТÐ-каналов"}}
1),(0,o.jsx)("div",{className:z()(o7().fee),children:(0,o.jsx)("button",{className:o7().button,children:M?"ÐопÑобоваÑÑ".concat(U?"":" ".concat(L," ").concat((0,_.jQ)(["денÑ","днÑ","дней"],L))," беÑплаÑно"):"ÐÑоÑмиÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑкÑ"})})]}):null,F?(0,o.jsx)(ti(),{loading:"eager",src:F,className:o7().image,loader:_.R2,width:0,height:0,priority:!0,alt:"Banner"}):null]}):null};var o9=i(34319),st=i.n(o9);let se=t=>{let{movieData:e}=t;return(0,o.jsxs)("h1",{className:st().title,children:["Product.Series"===e._cls?"СеÑиал":""," ",null==e?void 0:e.title,": ÐодбоÑки и ÑекомендаÑии"]})};var si=i(44303),so=i.n(si);let ss={clickHouseShoot:m.Y3};class sr extends a.Component{componentDidMount(){let{bannerData:t}=this.props,e=window.innerWidth;this.setState({browserWidth:e}),window.addEventListener("resize",this.resizeHandler),e>1024&&this.setState({urlImg:t.image_desktop}),e<1025&&this.setState({urlImg:t.image_tablet}),e<411&&this.setState({urlImg:t.image_mobile})}render(){let{bannerData:t}=this.props,{urlImg:e}=this.state,i=e?"".concat(this.apiUrl).concat(e):"",s=t&&t.url?t.url:"";return s&&-1===s.indexOf("http")?(0,o.jsx)(tA(),{prefetch:!1,href:"".concat(s),passHref:!0,onClick:this.clickHandler,children:(0,o.jsx)("div",{className:so().product__banner,style:{backgroundImage:"url('".concat(i,"')")}})}):(0,o.jsx)("a",{href:s,onClick:this.clickHandler,children:(0,o.jsx)("div",{className:so().product__banner,style:{backgroundImage:"url('".concat(i,"')")}})})}constructor(...t){super(...t),this.state={urlImg:"",browserWidth:0},this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.componentDidUpdate=()=>{let{browserWidth:t,urlImg:e}=this.state,{bannerData:i}=this.props;t>1024&&e!==i.image_desktop&&this.setState({urlImg:i.image_desktop}),t<768&&t>410&&e!==i.image_tablet&&this.setState({urlImg:i.image_tablet}),t<411&&e!==i.image_mobile&&this.setState({urlImg:i.image_mobile})},this.resizeHandler=()=>{setTimeout(()=>{let t=window.innerWidth,{browserWidth:e}=this.state;t!==e&&this.setState({browserWidth:t})},100)},this.clickHandler=()=>{let{clickHouseData:t}=this.props.systemInformation,{bannerData:e}=this.props,{movieData:i}=this.props,o={...t,action_id:"click",block_type:"banner",block_attributes_id:e.name?e.name:"",product_id:i._id,element_type:"banner",element_attributes_id:e.name?e.name:"",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,o)},this.componentWillUnmount=()=>{window.removeEventListener("resize",this.resizeHandler)}}}let sa=(0,l.Ng)(t=>({systemInformation:t.systemInformation}),ss)(sr);var sl=i(85467),sn=i.n(sl);let sc={clickHouseShoot:m.Y3};class s_ extends a.PureComponent{componentDidMount(){this.setState({isClient:!0,url:"".concat(window.location.href),nojs:!1}),r().events.on("routeChangeComplete",this.setUrl)}componentDidUpdate(t,e){let{visible:i}=this.state,{_id:o}=t.movieData||{},{_id:s}=this.props.movieData;s!==o&&i&&this.setState({visible:!1})}componentWillUnmount(){let{visible:t}=this.state;t&&this.setState({visible:!1}),r().events.off("routeChangeComplete",this.setUrl)}render(){let{movieData:t,season:e,bannerData:i,isNewEpisodePage:s,episode:r}=this.props,{visible:l,nojs:n}=this.state,{documentClientWidth:c}=this.props.systemInformation,_=E({movie:t,season:e,episode:r,isEpisodePage:s});return(0,o.jsxs)(a.Fragment,{children:[(0,o.jsx)("div",{className:"".concat(sn().product__description),children:(0,o.jsx)("div",{className:sn()["product__description-wrapper"],children:(0,o.jsx)("div",{className:sn()["product__description-left"],children:_&&c>1024?(0,o.jsxs)("div",{className:sn()["product__description-wrap"],children:[(0,o.jsx)("h2",{className:sn()["product__description-title"],children:"ÐпиÑание"}),(0,o.jsxs)("div",{ref:this.descriptionTextRef,onScroll:this.showShadowTextTop,className:sn()["product__description__text-wrap"],children:[(0,o.jsx)("div",{className:sn()["product__description-text"],dangerouslySetInnerHTML:{__html:_}}),(0,o.jsx)("div",{className:sn()["product__description-shadow-bottom"]})]})]}):(null==_?void 0:_.length)<=240||l||!this.state.isClient?(0,o.jsxs)(o.Fragment,{children:[_&&(0,o.jsxs)("div",{className:sn()["product__description-wrap"],children:[(0,o.jsx)("h2",{className:sn()["product__description-title"],children:"ÐпиÑание"}),(0,o.jsx)("div",{className:sn()["product__description-text"],dangerouslySetInnerHTML:{__html:_}})]}),_&&_.length>240&&!n&&(0,o.jsxs)("div",{className:sn()["product__description-more"],onClick:this.handleClick,children:[(0,o.jsx)("div",{className:sn()["product__description-more_text"],children:"СвеÑнÑÑÑ"}),(0,o.jsx)("img",{src:"/static/images/product/arrow-down.svg",className:"".concat(sn()["product__description-more_img-rotate"]),alt:"arrow",width:24,height:24})]})]}):(0,o.jsxs)(a.Fragment,{children:[(0,o.jsxs)("div",{className:sn()["product__description-wrap"],children:[(0,o.jsx)("h2",{className:sn()["product__description-title"],children:"ÐпиÑание"}),(0,o.jsx)("div",{className:sn()["product__description-text"],dangerouslySetInnerHTML:{__html:this.takePart(_)}})]}),(0,o.jsxs)("div",{className:sn()["product__description-more"],onClick:this.handleClick,children:[(0,o.jsx)("div",{className:sn()["product__description-more_text"],children:"ÐоказаÑÑ ÐµÑÑ"}),(0,o.jsx)("img",{src:"/static/images/product/arrow-down.svg",alt:"arrow",width:24,height:24})]})]})})})}
1),i&&"description"===i.position&&(0,o.jsx)(sa,{bannerData:i,movieData:this.props.movieData})]})}constructor(...t){super(...t),this.imgPath="/static/images/footer/",this.state={url:"",visible:!1,isClient:!1,visibleTopTextShadow:!1,nojs:!0},this.descriptionTextRef=a.createRef(),this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.loadRatedContent=!1,this.takePart=t=>{let e=t.slice(0,240),i=t.substr(240);return" "!==i[0]&&(e+=i.split(" ")[0]),"".concat(e,"...")},this.setUrl=()=>{this.setState({url:"".concat(window.location.href)})},this.handleClick=()=>{let{clickHouseData:t}=this.props.systemInformation,{visible:e}=this.state;this.setState({visible:!e},()=>{let i={...t,action_id:"click",action_result:e?"hide":"open",block_type:"block",block_attributes_id:"description",product_id:this.props.movieData._id,element_type:"link",element_attributes_text:e?"СвеÑнÑÑÑ":"ÐоказаÑÑ ÐµÑÑ",element_attributes_id:e?"show_less":"show_more",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,i)})},this.showShadowTextTop=t=>{var e;let{visibleTopTextShadow:i}=this.state,o=(null==t?void 0:null===(e=t.target)||void 0===e?void 0:e.scrollTop)!==0;i!==o&&this.setState({visibleTopTextShadow:o})}}}let sd=(0,l.Ng)(t=>({registration:t.registration,systemInformation:t.systemInformation,toggle:t.toggle,profile:t.profile}),sc)(s_);var sp=i(18433),su=i.n(sp),sh=i(88583),sm=i.n(sh);let sv={clickHouseShoot:m.Y3,initPlayer:m.kI,getPlayerData:O.o2,fetchedProfileRatedContent:F.mq,toggleVisibleNoAuthLikePopup:v.xz,toggleVisiblePopup:v.TX,pushStackAddItem:tt.nD};class sg extends a.Component{componentDidMount(){this.setState({url:"".concat(window.location.href)}),r().events.on("routeChangeComplete",this.setUrl)}componentDidUpdate(){let{authData:t}=this.props.registration;if(t&&!this.loadAuth&&(this.loadAuth=!0,(null==t?void 0:t.virtual)===!1)){let t=(0,_.Ri)("returnToProductUid"),e=(0,_.Ri)("returnToProductScore");t&&((0,_.Yj)("returnToProductUid"),(0,_.Yj)("returnToProductScore"),this.getLikeOrDislike(e,t))}let{ratedContent:e}=this.props.profile,{uid:i}=this.props.movieData;if((null==e?void 0:e.length)&&!this.loadRetedContent){this.loadRetedContent=!0;let t=null==e?void 0:e.find(t=>t.content_id===i);t&&(t.is_liked?this.setState({like:!0,dislike:!1}):this.setState({dislike:!0,like:!1}))}}componentWillUnmount(){let{visible:t}=this.state;t&&this.setState({visible:!1}),r().events.off("routeChangeComplete",this.setUrl)}render(){let{movieData:t,episode:e,seasonNum:i}=this.props,{authData:s}=this.props.registration,{visible:r,like:l,dislike:n,url:d,liked:p}=this.state,{currentProfile:u}=this.props.profile,h=Math.ceil(Math.ceil(e.duration/1e3)/60),m=e.announcement?t.items[i-1].description||t.description||"":e.seo_text||e.description||"";return(0,o.jsxs)("div",{className:"".concat(sm().product__episode," ").concat(su()["product-block"]),children:[this.calcH1(t,e,i,s),(0,o.jsxs)("div",{className:"".concat(sm()["product__episode-wrapper"]),...e.free_for_authorized?{"data-testid":"free_for_authorized"}:!e.free_for_authorized&&e.packshot_free.image_15x?{"data-testid":"free"}:{},children:[(0,o.jsxs)("div",{className:"".concat(sm()["product__episode-left-section"]),children:[(0,o.jsxs)("div",{className:"".concat(sm()["product__episode-image"]),children:[u?(null==s?void 0:s.virtual)===!1&&s&&s.subscriptions&&s.subscriptions.length>0||!e.packshot_free.image_15x?e.packshot.image_15x?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("img",{src:this.handleImageSource("".concat(this.apiUrl).concat(e.packshot.image_15x)),alt:"".concat(e.title," ").concat(t.title," ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½"),onError:this.handleErrorImage}
1),(0,o.jsx)("link",{itemProp:"contentUrl",href:this.handleImageSource("".concat(this.apiUrl).concat(e.packshot.image_15x))})]}):(0,o.jsx)("img",{src:"/static/images/product/trailer-default.svg",alt:"Start лого"}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("link",{itemProp:"contentUrl",href:this.handleImageSource("".concat(this.apiUrl).concat(e.packshot.image_15x))}),(0,o.jsx)("img",{src:this.handleImageSource("".concat(this.apiUrl).concat(e.packshot_free.image_15x)),alt:"".concat(e.title," ").concat(t.title," ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½"),onError:this.handleErrorImage})]}):null,!e.announcement&&!e.unavailable_by_geo&&(0,o.jsx)("img",{src:"/static/images/product/small-play.svg",className:sm()["product__episode-play"],onClick:()=>this.initSeasonPlayer(e.num,e.title,e.announcement,e,i),alt:"play"}),e.unavailable_by_geo&&s&&(0,o.jsxs)("div",{className:sm()["product__episode-unavailable"],children:[(0,o.jsx)("img",{src:"/static/images/product/globe.svg"}),(0,o.jsx)("div",{className:sm()["product__episode-unavailable-title"],children:"ÐонÑÐµÐ½Ñ Ð½ÐµÐ´Ð¾ÑÑÑпен в ваÑей ÑÑÑане"}),(0,o.jsx)("div",{className:sm()["product__episode-unavailable-desc"],children:"ÐÑли вклÑÑен VPN, оÑклÑÑиÑе его\xa0и\xa0обновиÑе ÑÑÑаниÑÑ"})]})]}),(0,o.jsxs)("div",{className:"".concat(sm()["product__episode-info"]),children:[(0,o.jsx)("div",{className:"".concat(sm()["product__episode-title"]),children:(0,o.jsx)("span",{children:e.title})}),e.duration?(0,o.jsx)("div",{className:"".concat(sm()["product__episode-duration"]),children:(0,o.jsxs)("span",{children:[" ",(0,o.jsxs)("span",{children:[" ",(0,_._9)(h)]})]})}):null]}),m?m.length<=280||r?(0,o.jsxs)(a.Fragment,{children:[(0,o.jsx)("div",{className:"".concat(sm()["product__episode-description"]),dangerouslySetInnerHTML:{__html:m}}),m.length>280?(0,o.jsxs)("div",{className:sm()["product__episode-more"],onClick:this.handleClick,children:[(0,o.jsx)("div",{className:sm()["product__episode-more_text"],children:"СвеÑнÑÑÑ"}),(0,o.jsx)("img",{src:"/static/images/product/arrow-down.svg",className:"".concat(sm()["product__episode-more_image"]," ").concat(sm().rotate),alt:"arrow"})]}):null]}):(0,o.jsxs)(a.Fragment,{children:[(0,o.jsx)("div",{className:"".concat(sm()["product__episode-description"]),dangerouslySetInnerHTML:{__html:(0,c.IN)(280,m)}}),m.length>280?(0,o.jsxs)("div",{className:sm()["product__episode-more"],onClick:this.handleClick,children:[(0,o.jsx)("div",{className:sm()["product__episode-more_text"],children:"ÐоказаÑÑ ÐµÑÑ"}),(0,o.jsx)("img",{src:"/static/images/product/arrow-down.svg",className:"".concat(sm()["product__episode-more_image"]),alt:"arrow"})]}):null]}):(0,o.jsx)("div",{className:"".concat(sm()["product__episode-description"]),dangerouslySetInnerHTML:{__html:t.quote}})]}),(0,o.jsxs)("div",{className:"".concat(sm()["product__episode-right-section"]),children:[(0,o.jsxs)("div",{className:sm()["product__episode-like"],children:[(0,o.jsx)("div",{className:"".concat(sm()["product__episode-up"]," ").concat(n?sm().disabled:""),onClick:()=>this.getLikeOrDislike("like"),children:(0,o.jsx)("img",{src:"/static/images/product/".concat(l?"like-active":"like",".svg "),alt:"like"})}),(0,o.jsx)("div",{className:"".concat(sm()["product__episode-down"]," ").concat(l?sm().disabled:""),onClick:()=>this.getLikeOrDislike("dislike"),children:(0,o.jsx)("img",{src:"/static/images/product/".concat(n?"dislike-active":"dislike",".svg"),alt:"dislike"})})]}),(0,o.jsxs)("div",{className:"".concat(sm()["product__episode-share"]),children:["ÐоделиÑÑÑÑ:"," ",(0,o.jsxs)("div",{className:"".concat(sm()["product__episode-social"]),children:[(0,o.jsx)(eR.rx,{url:d,title:e.title,image:"".concat(this.apiUrl).concat(t.background.image_15x),className:"".concat(sm()["product__episode-social_ico"]),onShareWindowClose:()=>this.afterShare("share_vk"),children:(0,o.jsx)(eR.Hu,{size:36,round:!0})}),(0,o.jsx)(eR.AC,{url:d,image:"".concat(this.apiUrl).concat(t.background.image_15x),className:"".concat(sm()["product__episode-social_ico"]),onShareWindowClose:()=>this.afterShare("share_ok"),children:(0,o.jsx)(eR.uH,{size:36,round:!0})})]})]})]})]})]})}constructor(...t){super(...t),this.state={url:"",like:!1,dislike:!1,visible:!1,liked:!1}
1,this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.loadAuth=!1,this.loadRetedContent=!1,this.setUrl=()=>{this.setState({url:"".concat(window.location.href)})},this.initSeasonPlayer=(t,e,i,o,s)=>{let{clickHouseData:r}=this.props.systemInformation,{_id:a,alias:l,playback_options:n,rating_age:c}=this.props.movieData,{episode:_}=this.props,d={...r,action_id:"click",block_type:"block",block_attributes_id:"season-".concat(s+1),element_type:"button",element_attributes_id:"play",element_attributes_index:t+1,product_id:a,content_id:o.uid,content_type:o._cls,event_time:new Date().getTime()};if(this.props.clickHouseShoot(this.apiUrl,this.apiKey,d),i)return!1;this.setState({videoTitle:e},()=>{var i,s;this.props.initPlayer({type:"Episode",init:!0,index:t});let r={movieUrl:"/web/watch/".concat(l),movieTitle:e,isTrailer:!1,movieId:a,playback:_&&_.playback_options||n,similar:this.props.similar,uid:o.uid,rating_age:_.rating_age||c,containsMeta:!!(null===(i=o.restrictions)||void 0===i?void 0:i.find(t=>"ContainsMeta"===t.id)),containsSmoking:!!(null===(s=o.restrictions)||void 0===s?void 0:s.find(t=>"ContainsSmoking"===t.id))};this.props.getPlayerData(r)})},this.handleImageSource=(t,e)=>{let{deviceData:i}=this.props.systemInformation;return t&&i?(0,_.bZ)(t,"736x374"):"/static/images/product/trailer-default.svg"},this.handleClick=()=>{let{clickHouseData:t}=this.props.systemInformation,{visible:e}=this.state;this.setState({visible:!e},()=>{let i={...t,action_id:"click",action_result:e?"hide":"open",block_type:"block",block_attributes_id:"description",product_id:this.props.movieData._id,element_type:"link",element_attributes_text:e?"СвеÑнÑÑÑ":"ÐоказаÑÑ ÐµÑÑ",element_attributes_id:e?"show_less":"show_more",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,i)})},this.afterShare=t=>{let{clickHouseData:e}=this.props.systemInformation,i={...e,action_id:"click",block_type:"block",block_attributes_id:"description",product_id:this.props.movieData._id,element_type:"button",element_attributes_id:t,event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,i)},this.getLikeOrDislike=(t,e)=>{let{like:i,dislike:o,liked:s}=this.state;"like"===t&&i||"dislike"===t&&o||s||(this.props.pushStackAddItem({text:"СпаÑибо! УÑÑÑм пÑи подбоÑе ÑекомендаÑий"}),this.setState({liked:!0},()=>{let{clickHouseData:i}=this.props.systemInformation,{_id:o,uid:s}=this.props.movieData,r={...i,action_id:"click",action_result:t,action_attributes_str:o,block_type:"block",block_attributes_id:"description",product_id:o,element_type:"button",element_attributes_id:t,event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,r);let{authData:a}=this.props.registration,{ratedContent:l}=this.props.profile;fetch("".concat(this.apiUrl).concat(n.PI.rateContent).concat(this.apiKey),{credentials:"include",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({profile_id:a.profile_id,content_id:e||s,like:"like"===t})}).then(i=>{if(i.status<400){let i=[...l];if("like"===t)i.push({content_id:e||s,is_liked:!0});else{let t=i.findIndex(t=>t.content_id===e||s);-1!==t&&i.splice(t,1)}this.props.fetchedProfileRatedContent(i),this.setState({dislike:"dislike"===t,like:"like"===t})}else 409===i.status&&i.json().then(e=>{"USER_IS_VIRTUAL"===e.code&&((0,_.TV)("returnToProductScore",t),this.props.toggleVisibleNoAuthLikePopup(!0),this.props.toggleVisiblePopup(!0),this.setState({liked:!1}))})})}))},this.handleErrorImage=t=>{t.target.src="/static/images/product/trailer-default.svg"},this.calcH1=(t,e,i,s)=>(0,o.jsx)("h1",{children:"".concat(t.title,": ").concat(i," Ñезон - ").concat(e.title," ").concat(s&&(null==s?void 0:s.virtual)!==!0?"":"ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½")})}}let sb=(0,l.Ng)(t=>({registration:t.registration,systemInformation:t.systemInformation,profile:t.profile}),sv)(sg);var sk=i(56375),sf=i.n(sk);let sx={clickHouseShoot:m.Y3};class sy extends a.PureComponent{componentDidUpdate(t){if(t.movieData){let{_id:e}=t.movieData,{_id:i}=this.props.movieData,{visible:o}=this.state;i!==e&&o&&this.setState({visible:!o})}}componentWillUnmount(){this.setState({visible:!1})}render(){let{data:t}=this.props,{isSliderActive:e}=this.state,{documentClientWidth:i}=this.props.systemInformation,s=i<c.af,r=Array.isArray(t)?t.filter(t=>"string"==typeof t?t.trim():t):[];return r.length?(0,o.jsxs)("div",{className:"".concat(sf().product__facts),children:[(0,o.jsx)("h2",{children:"ÐнаеÑе ли вÑ, ÑÑо"}
1),(0,o.jsx)("div",{className:sf()["product__facts-slider"],onMouseOver:()=>this.setState({isSliderActive:!0}),onMouseOut:()=>this.setState({isSliderActive:!1}),onFocus:()=>this.setState({isSliderActive:!0}),onBlur:()=>this.setState({isSliderActive:!1}),children:(0,o.jsx)(tE.A,{wrapperStyles:this.sliderWrapStyles(),widthCard:{desktop:540,mobile:326},heightCard:{desktop:245,mobile:365},cardIdent:s?16:24,isPaginator:!1,lineIdx:"facts",active:e,alias:"facts",items:r,items_total:r.length,children:r.map((t,e)=>(0,o.jsxs)("div",{className:"".concat(sf()["product__facts-item"]),children:[(0,o.jsx)("div",{className:sf()["product__facts-item_index"],children:String(e+1).padStart(2,"0")}),(0,o.jsx)("div",{className:sf()["product__facts-item_text"],children:(0,c.IN)(310,t)})]},e))})})]}):null}constructor(...t){super(...t),this.state={visible:!1,isSliderActive:!1},this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.handleMore=()=>{let{visible:t}=this.state;this.setState({visible:!t},()=>{let{clickHouseData:e}=this.props.systemInformation,{_id:i}=this.props.movieData,o={...e,action_id:"click",action_result:t?"hide":"open",block_type:"block",block_attributes_id:"facts",product_id:i,element_type:"link",element_attributes_id:t?"show_less":"show_more",element_attributes_text:t?"СвеÑнÑÑÑ":"ÐоказаÑÑ ÐµÑÑ",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,o)})},this.sliderWrapStyles=()=>{let{documentClientWidth:t}=this.props.systemInformation;if(t){if(t>c.U8){let e=(0,_.$J)(56,t);return{paddingRight:e,paddingLeft:e}}return t>c.af?{paddingRight:56,paddingLeft:56}:{paddingRight:24,paddingLeft:24}}}}}let sw=(0,l.Ng)(t=>({registration:t.registration,systemInformation:t.systemInformation,profile:t.profile}),sx)(sy);var sT=i(37959),sS=i.n(sT);let sj=t=>{let{episode:e,movieData:i,season:s}=t,{authData:r}=(0,l.d4)(t=>t.registration),a=e?"episode":s?"seasons":null,n=(null==e?void 0:e.seasonNum)||(null==s?void 0:s.split("-")[1]),c=A({movie:i,page:a,episode:e,seasonNum:n});return(0,o.jsx)("div",{className:z()(sS().header,{[sS().registered]:(null==r?void 0:r.virtual)===!1&&r.subscriptions&&r.subscriptions.length}),children:(0,o.jsx)("h1",{"data-testid":"hero_title",children:c})})},sC=async t=>{let{authData:e,childProfile:i,apiUrl:o,apiKey:s,toggleSwitchToAdultProfile:a}=t;if(!e||!0===e.virtual){(0,_.Uy)(),r().push("/auth");return}if(i&&await (0,tm.j)({apiUrl:o,apiKey:s})){null==a||a({visible:!0});return}r().push("/channel/match-tv")};var sB=i(16726),sN=i.n(sB);let sP=t=>{let{onButtonClick:e}=t,{documentClientWidth:i}=(0,l.d4)(t=>t.systemInformation);return(0,o.jsxs)("button",{className:z()(sN().button),onClick:e,"aria-label":"action",children:[(0,o.jsx)(ti(),{src:"/static/images/product/nav_bar/play.svg",width:20,height:20,alt:"play",loader:_.R2}),i>c.af&&(0,o.jsx)("span",{className:sN().button__text,children:"СмоÑÑеÑÑ"})]})};var sI=i(15776),sD=i.n(sI);let sA=function(t){let{moreElems:e,movieData:i}=t,s=(0,a.useRef)(null),[r,l]=(0,a.useState)(null),n=(0,X.A)(),c=t=>{var e,i;!["more-button-svg","more-button-path","more-button-wrap"].includes(null==t?void 0:t.target.id)&&((null==s?void 0:null===(i=s.current)||void 0===i?void 0:null===(e=i.classList)||void 0===e?void 0:e.contains(sD().hide))||l(!1))},_=t=>{var e;let o={series:"seasons_and_episodes",articles:"journal_post"},s=null==t?void 0:null===(e=t.hash)||void 0===e?void 0:e.replace("#","");n({action_id:"click",product_id:null==i?void 0:i.uid,content_id:null==i?void 0:i.uid,content_type:null==i?void 0:i._cls,block_type:"block",block_attributes_id:"navbar",element_type:"menu_item",element_attributes_id:(null==o?void 0:o[s])?null==o?void 0:o[s]:s,element_attributes_text:null==t?void 0:t.text}),sO(s)};return(0,a.useEffect)(()=>{let t=t=>c(t);return document.addEventListener("click",t),()=>document.removeEventListener("click",t)},[]),(0,o.jsxs)("div",{id:"more-button-wrap",className:z()(sD()["more-button-wrap"],{[sD()["more-button__active"]]:r}),onClick:()=>{l(t=>!t)},children:["EÑе",(0,o.jsx)("svg",{id:"more-button-svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("g",{id:"ic / 24 / more",children:(0,o.jsx)("path",{id:"more-button-path",fillRule:"evenodd",clipRule:"evenodd",d:"M3 12C3 10.8954 3.89543 10 5 10C6.10457 10 7 10.8954 7 12C7 13.1046 6.10457 14 5 14C3.89543 14 3 13.1046 3 12ZM10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12ZM17 12C17 10.8954 17.8954 10 19 10C20.1046 10 21 10.8954 21 12C21 13.1046 20.1046 14 19 14C17.8954 14 17 13.1046 17 12Z",fill:"white",fillOpacity:"0.6"})})}),(0,o.jsx)("div",{ref:s,className:z()(sD()["more-button__links-block-wrap"],{[sD().hide]:!r}),children:e.map(t=>(0,o.jsx)("a",{href:null==t?void 0:t.hash,onClick:()=>_(t),children:t.text},null==t?void 0:t.hash))})]})};var sE=i(32036),sR=i.n(sE);let sL=t=>{var e;let{children:i,onNavBarButtonClick:s,movieData:r,isVisible:n,showActionButton:c}=t,d=(0,a.useRef)(null),[p,u]=(0,a.useState)([]),{documentClientWidth:h}=(0,l.d4)(t=>t.systemInformation);return(0,a.useEffect)(()=>{let t=Math.round(d.current.getBoundingClientRect().right);for(let e=0;e<d.current.children.length;e++){let i=d.current.children[e];if(Math.round(i.getBoundingClientRect().right)+10>t){let{text:t,hash:e}=i;t&&e&&u(i=>[...i,{text:t,hash:e}]),i.removeAttribute("id"),i.style.display="none"}}},[null==d?void 0:null===(e=d.current)||void 0===e?void 0:e.offsetWidth,p,h]),(0,o.jsx)("div",{className:z()(sR()["navbar-wrap"],{[sR()["nav-bar-visible"]]:n}),children:(0,o.jsxs)("nav",{className:sR().navbar,children:[(0,o.jsx)("div",{ref:d,className:sR()["navbar__links-wrap"],children:i}),(null==p?void 0:p.length)>0&&(0,o.jsx)(sA,{moreElems:p,movieData:r}),c&&(0,o.jsx)(ti(),{className:sR()["navbar__vertical-line"],src:"/static/images/product/nav_bar/vertical-line.svg",loader:_.R2,width:2,height:36,alt:"line"}),c&&(0,o.jsx)(sP,{onButtonClick:s})]})})};var sM=i(28405),sU=i.n(sM);let sH=()=>{let t=document.getElementById("main_header");if(!t)return 0;let e=t.getBoundingClientRect();return e.bottom<=0?0:Math.round(e.height)},sO=t=>{let e=sH();Y.XG.scrollTo("".concat(t),{duration:500,smooth:!0,offset:-e})},sF=t=>{var e,i;let{ref:s,page:r,movieData:n,hasSimilar:_,hasArticles:d,noJs:p}=t,u=n.items&&Array.isArray(n.items)&&n.items.length,h=null,[g,b]=(0,a.useState)("series"),[k,f]=(0,a.useState)(null),[x,w]=(0,a.useState)(null),{profile:T,registration:S,systemInformation:j}=(0,l.d4)(t=>t),{documentClientWidth:C,documentClientHeight:B,player:N}=j,{authData:P}=S,{childProfile:I}=T,D=j.API_URL||c.H$,A=j.API_KEY||c.Lq,E=null==N?void 0:N.init,R=(0,l.wA)(),L=(0,X.A)(),M=(0,$.l)(),U=Math.round(null==M?void 0:null===(e=M[0])||void 0===e?void 0:e.y),H=C<c.af,O=u?y(n):[],F=O.length>0,W=t=>
1{if(!t)return;let e=t.getBoundingClientRect().x,i=t.parentNode.getBoundingClientRect().x,o=t.parentNode.scrollLeft;t.parentNode.scrollTo({left:e+o-i,behavior:"smooth"})},K=t=>{if(x)return;b(t);let e="#".concat(t),i=window.location.pathname+window.location.search;i.includes("/watch")&&window.location.hash!==e&&window.history.replaceState(window.history.state,document.title,i+e)};(0,a.useImperativeHandle)(s,()=>({changeActiveElem:K}));let V=(t,e)=>{var i;w(!0),clearTimeout(h);let o={series:"seasons_and_episodes",articles:"journal_post"};L({action_id:"click",product_id:null==n?void 0:n.uid,content_id:null==n?void 0:n.uid,content_type:null==n?void 0:n._cls,block_type:"block",block_attributes_id:"navbar",element_type:"menu_item",element_attributes_id:(null==o?void 0:o[e])?null==o?void 0:o[e]:e,element_attributes_text:null==t?void 0:null===(i=t.target)||void 0===i?void 0:i.innerText}),H&&(W(null==t?void 0:t.target),b(e)),h=setTimeout(()=>{w(!1),H||b(e)},500),sO(e)},Y=t=>{let[e]=O;L({action_id:"click",product_id:null==n?void 0:n.uid,content_id:e?null==e?void 0:e.uid:null==n?void 0:n.uid,content_type:null==n?void 0:n._cls,block_type:"block",block_attributes_id:"navbar",element_type:"button",element_attributes_id:"watch",element_attributes_text:t})},G=async t=>{var e;let i=null==t?void 0:null===(e=t.target)||void 0===e?void 0:e.innerText;if(F){if(Y(i||"СмоÑÑеÑÑ"),j.dataLayer){let t=j.dataLayer;t.dataLayer.event="productCardClickPlayEvent",R((0,m.ak)(t))}await sC({authData:P,childProfile:I,apiUrl:D,apiKey:A,toggleSwitchToAdultProfile:t=>R((0,v.bL)(t))})}};return(0,a.useEffect)(()=>()=>{clearTimeout(h)},[]),(0,o.jsx)("div",{className:sU()["nav-bar-wrap"],children:(0,o.jsxs)(sL,{page:r,isVisible:(()=>{var t;if(U>0&&U+B<document.body.scrollHeight)return!0;if(""!==window.location.hash&&!E&&(null===(t=document)||void 0===t?void 0:t.readyState)==="complete"){let t=window.location.pathname+window.location.search;window.history.replaceState(window.history.state,document.title,t)}return!1})()||p,movieData:n,setMobileShadowPosition:f,scrollY:U,onNavBarButtonClick:G,showActionButton:F,children:[u&&!n.unavailable_by_geo?(0,o.jsx)("a",{href:"#series",className:z()(sU().link,{[sU().active]:"series"===g,[sU()["shadow-".concat(k)]]:k}),onClick:t=>V(t,"series"),children:"РаÑпиÑание ÑÑанÑлÑÑий"}):null,((null==n?void 0:null===(i=n.seo)||void 0===i?void 0:i.short_description)||(null==n?void 0:n.description))&&(0,o.jsx)("a",{href:"#description",className:z()(sU().link,{[sU().active]:"description"===g,[sU()["shadow-".concat(k)]]:k}),onClick:t=>V(t,"description"),children:"ÐпиÑание"}),_&&"seasons"!==r?(0,o.jsx)("a",{href:"#selections",className:z()(sU().link,{[sU().active]:"selections"===g,[sU()["shadow-".concat(k)]]:k}),onClick:t=>V(t,"selections"),children:"РекомендÑем"}):null,!I&&d?(0,o.jsx)("a",{href:"#articles",className:z()(sU().link,{[sU().active]:"articles"===g,[sU()["shadow-".concat(k)]]:k}),onClick:t=>V(t,"articles"),children:"СÑаÑÑи"}):null]})})};var sW=i(37564),sK=i.n(sW);let sV=a.memo(t=>{var e,i,r,n,d,p,u,h,m,v,g,b,k,f,x,y,w,T,S;let{noJs:j,card:C,index:B,gridCard:N,lineIdx:P,currentHashTag:I,movieData:D,episode:A,seasonNum:E,visibilityRef:R}=t,L=(0,Q.A)(),[M,U]=(0,a.useState)(!1),{documentClientWidth:H}=(0,l.d4)(t=>t.systemInformation),{deviceSize:O,renderMobile:F}=(0,l.d4)(t=>t.systemInformation),W=H<=c.af,K=(0,s.useRouter)(),V=(0,X.A)(),Y=null===(e=K.query.params)||void 0===e?void 0:e[1],G=null===(i=K.query.params)||void 0===i?void 0:i[0],J=(t,e,i,o)=>{t.stopPropagation(),V({block_type:"collection",block_attributes_id:I?"hashtag_"+(null==I?void 0:I.alias):"recommend",block_attributes_index:P,element_type:"link",element_attributes_id:i.alias,element_attributes_text:i.title,element_attributes_index:parseInt(e+1)||1,product_id:null==i?void 0:i.uid,content_id:(null==o?void 0:o.uid)||(null==i?void 0:i.uid)||D&&(null==D?void 0:D.uid),content_type:null==i?void 0:i._cls,action_id:"click",event_time:Date.now()})},q=(t,e,i,o)=>{t.stopPropagation();let s=null==D?void 0:D.items[E-1];
1V({action_id:"click",screen_type:"product",screen_attributes_id:"/".concat(G).concat(Y?"/".concat(Y):""),product_id:(null==s?void 0:s.uid)||(null==D?void 0:D.uid),content_id:(null==o?void 0:o.uid)||(null==s?void 0:s.uid)||(null==D?void 0:D.uid),content_type:(null==o?void 0:o._cls)||(null==s?void 0:s._cls)||(null==D?void 0:D._cls),block_type:"collection",block_attributes_id:I?"hashtag_"+(null==I?void 0:I.alias):"recommend",block_attributes_index:P,element_type:"product",element_attributes_id:i.alias,element_attributes_text:i.title,element_attributes_index:parseInt(e+1)||1})},Z=null===(r=C.badges)||void 0===r?void 0:r.filter(t=>"badge"===t.type&&!t.under_logo_position),$=(null==C?void 0:C.alias)?"/watch/".concat(null==C?void 0:C.alias):"/",tt=a.useMemo(()=>{var t,e,i,o,s,r;return F?(null==C?void 0:null===(i=C.vertical)||void 0===i?void 0:i.image_15x)?"".concat(L).concat((0,_.bZ)(null===(o=C.vertical)||void 0===o?void 0:o.image_15x,"143x204",85)):"/static/images/V2/preview-no-poster-vertical.webp":W?(null==C?void 0:null===(s=C.vertical)||void 0===s?void 0:s.image_15x)?"".concat(L).concat((0,_.bZ)(null===(r=C.vertical)||void 0===r?void 0:r.image_15x)):
1"/static/images/V2/preview-no-poster-vertical.webp":(null==C?void 0:null===(t=C.horizontal)||void 0===t?void 0:t.image_15x)
1?"".concat(L).concat((0,_.bZ)(null==C?void 0:null===(e=C.horizontal)||void 0===e?void 0:e.image_15x,"471x266",85)):"/static/images/V2/preview-no-poster-horizontal.webp"},[W,I]);return(0,o.jsx)("div",{ref:R,className:z()({[sK()["item-wrap"]]:!N,[sK()["item-wrap-grid"]]:N}),children:(0,o.jsxs)("div",{className:z()({[sK()["selection-item"]]:!N,[sK()["selection-item-grid"]]:N}),children:[(0,o.jsx)(tA(),{prefetch:!1,href:$,onClick:t=>q(t,B,C,A),children:(0,o.jsxs)("div",{className:z()({[sK()["selection-item-img-wrap"]]:!N,[sK()["selection-item-grid-img-wrap"]]:N}),children:[!M&&!j&&(0,o.jsx)(tO.A,{className:z()(sK()["selection-skeleton-card"],{[sK()["selection-skeleton-card-grid"]]:N})}),(0,o.jsx)(tM.A,{className:sK()["selection-item-img-wrap-poster"],src:tt,width:F?95:314,height:F?136:177,onLoad:()=>U(!0),onError:()=>U(!1)}),(null==C?void 0:C.rating_start)&&!(null==C?void 0:C.is_preview)&&(0,o.jsx)("div",{className:"".concat((null==C?void 0:C.rating_start)>=7?sK()["selection-item-img-wrap-rating-high"]:""," ").concat(sK()["selection-item-img-wrap-rating"]," "),children:(0,_.bH)(null==C?void 0:C.rating_start)})]})}),(0,o.jsx)(tA(),{prefetch:!1,href:$,className:sK()["selection-item__link"],onClick:t=>J(t,B,C,A),children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:sK()["selection-item__titles"],children:(0,o.jsx)("div",{className:sK()["selection-item__titles-title-badge-block"],children:(0,o.jsx)("span",{className:"".concat(sK()["selection-item__titles-selection-title"]),children:null==C?void 0:C.title})})}),(0,o.jsx)("div",{className:sK()["selection-item__subtitle-wrap"],children:!(null==Z?void 0:Z.length)&&(null==C?void 0:null===(n=C.genres)||void 0===n?void 0:n.length)>0&&C.genres.map((t,e)=>(0,o.jsx)("span",{className:sK()["selection-item__subtitle"],children:0!==e?", ".concat(t.title):t.title},e))}),(null==Z?void 0:Z.length)?(0,o.jsxs)("div",{className:sK()["selection-item__titles__selection__badge"],children:["double"===Z[0].structure?(0,o.jsx)(iq.L$,{className:sK()["selection-item__titles__selection__badge__double"],size:null===(d=Z[0])||void 0===d?void 0:d.size,text:null===(p=Z[0])||void 0===p?void 0:p.text,textRight:null===(u=Z[0])||void 0===u?void 0:u.text_right,textColor:null===(h=Z[0])||void 0===h?void 0:h.text_color,textColorRight:null===(m=Z[0])||void 0===m?void 0:m.text_color_right,bgColor:null===(v=Z[0])||void 0===v?void 0:v.background_color,bgColorRight:null===(g=Z[0])||void 0===g?void 0:g.background_color_right}):(null===(b=Z[0])||void 0===b?void 0:b.structure)==="single"?(0,o.jsx)(iq.Ex,{className:sK()["selection-item__titles__selection__badge__single"],text:null===(k=Z[0])||void 0===k?void 0:k.text,textColor:null===(f=Z[0])||void 0===f?void 0:f.text_color,bgColor:null===(x=Z[0])||void 0===x?void 0:x.background_color}):null,"single"===Z[0].structure&&(null===(y=Z[1])||void 0===y?void 0:y.structure)==="single"&&"desktop_web"===O?(0,o.jsx)(iq.Ex,{className:sK()["selection-item__titles__selection__badge__single"],text:null===(w=Z[1])||void 0===w?void 0:w.text,textColor:null===(T=Z[1])||void 0===T?void 0:T.text_color,bgColor:null===(S=Z[1])||void 0===S?void 0:S.background_color}):null]}):null]})})]})})});var sz=i(72413),sY=i.n(sz);let sG=(0,l.Ng)(t=>({systemInformation:t.systemInformation,toggle:t.toggle,registration:t.registration,profile:t.profile}),{})(t=>{var e,i;let{sliderList:r,lineIdx:l,alias:n,isPaginator:d,registration:p,profile:u,systemInformation:h,movieData:m,onArrowClick:v,currentHashTag:g,showGrid:b,episode:k,season:f,seasonNum:x}=t,[y,w]=(0,a.useState)(!0),[T,S]=(0,a.useState)(!1),{documentClientWidth:j}=h,C=(0,s.useRouter)(),B=(0,X.A)(),N=null===(e=C.query.params)||void 0===e?void 0:e[1],P=null===(i=C.query.params)||void 0===i?void 0:i[0],I=n||"hashtag_".concat(null==g?void 0:g.alias),D=(0,eW.$)(t=>{var e;let i=x?null==m?void 0:null===(e=m.items)||void 0===e?void 0:e[x-1]:null;B({action_id:"collection_view",action_result:t.map(t=>t.position),action_attributes_num:l,action_attributes_str:t.map(t=>t.contentId),screen_type:"product",screen_attributes_id:"/".concat(P).concat(N?"/".concat(N):""),product_id:(null==i?void 0:i.uid)||(null==m?void 0:m.uid),content_id:(null==k?void 0:k.uid)||(null==i?void 0:i.uid)||(null==m?void 0:m.uid),content_type:(null==k?void 0:k._cls)||(null==i?void 0:i._cls)||(null==m?void 0:m._cls),block_type:"collection",block_attributes_id:I,block_attributes_index:l})});return(0,a.useEffect)(()=>{w(!1)}
1,[]),(0,o.jsx)("div",{className:z()({[sY()["slider-wrap"]]:!b,[sY().slider__wrap_grid]:b}),onMouseOver:()=>S(!0),onMouseOut:()=>S(!1),onFocus:()=>S(!0),onBlur:()=>S(!1),children:(0,o.jsx)(tE.A,{wrapperStyles:(()=>{if(j){if(j>c.U8){let t=(0,_.$J)(56,j);return{paddingRight:t,paddingLeft:t}}return j>c.af?{paddingRight:56,paddingLeft:56}:{paddingRight:24,paddingLeft:24}}})(),widthCard:{desktop:314,mobile:222},heightCard:{desktop:200,mobile:243},isPaginator:d&&!b,lineIdx:l,active:T&&!b,alias:null==g?void 0:g.alias,productId:34,items:r&&r,items_total:r&&(null==r?void 0:r.length),arrowClick:v,cardIdent:16,isProduct:!0,renderFade:!b,children:(0,o.jsx)("div",{className:z()({[sY().items_wrap]:!b,[sY().items_wrap__grid]:b}),children:null==r?void 0:r.map((t,e)=>{let i=t.uid||t.id;return(0,o.jsx)(tz.pL,{threshold:1,triggerOnce:!1,onChange:t=>{D({id:"".concat(I,":").concat(i),contentId:i,position:e+1},t)},children:i=>{let{ref:s}=i;return(0,o.jsx)(sV,{visibilityRef:s,noJs:y,card:t,index:e,lineIdx:l,gridCard:b,currentHashTag:g,movieData:m,episode:k,seasonNum:x})}},"selections-".concat(i,"-").concat(e))})})})})});var sJ=i(65983),sq=i.n(sJ);let sZ={clickHouseShoot:m.Y3,initPlayer:m.kI,getPlayerData:O.o2,setAutoTrailer:F.jG},sQ=()=>(0,o.jsxs)("div",{className:sq().selections__empty_selections,children:[(0,o.jsx)("img",{src:"/static/images/stack.svg",alt:"empty"}),(0,o.jsx)("div",{children:"ÐоÑ
оже, Ð´Ð»Ñ Ð²Ð°Ñ Ð½ÐµÑ Ð¿ÐµÑÑоналÑнÑÑ
ÑекомендаÑий в подбоÑке. Ðо в дÑÑгиÑ
Ð²Ñ Ð½Ð°Ð²ÐµÑнÑка найдеÑе ÑÑо-Ñо по дÑÑе."})]});class sX extends a.Component{render(){let{similar:t,movieData:e,page:i,lineIdx:s,episode:r,season:a,seasonNum:l}=this.props;return(0,o.jsxs)("div",{className:z()(sq().selections,sq().selections_redesign_exp),children:["selections"===i?(0,o.jsx)("h1",{className:sq().selections__title_redesign,"data-testid":"selections_title",children:"РекомендÑем"}):(0,o.jsx)("h2",{className:sq().selections__title,"data-testid":"selections_title",children:(0,o.jsx)("span",{children:"РекомендÑем"})}),(null==t?void 0:t.length)||null===t?(0,o.jsx)(sG,{showGrid:"selections"===i,sliderList:t,lineIdx:s,alias:"recommend",onArrowClick:this.handleArrowClick,isPaginator:"selections"===i,episode:r,movieData:e,season:a,seasonNum:l}):(0,o.jsx)(sQ,{})]})}constructor(...t){super(...t),this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.handleArrowClick=(t,e)=>{let{clickHouseData:i}=this.props.systemInformation,o={...i,element_type:"button",element_attributes_id:t?"arrow_right":"arrow_left",block_attributes_id:"recommend",action_id:"click",product_id:this.props.movieData._id,content_id:this.props.movieData.uid,content_type:this.props.movieData._cls,block_type:"collection",event_time:Date.now()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,o)},this.initPlayerHandler=(t,e,i)=>{this.props.initPlayer({init:!0,type:i,index:t})},this.playerLoader=t=>{let e={movieUrl:"/web/watch/".concat(t.alias),movieTitle:t.title,isTrailer:t.is_preview?t.trailer_src:null,movieId:t.movieId,trailerSrc:t.trailer_src,announce:t.is_preview,position:t.position,playback:t.playback_options,similar:t.similar,uid:t.uid,rating_age:t.rating_age};this.props.getPlayerData(e)}}}let s$=(0,l.Ng)(t=>({registration:t.registration,systemInformation:t.systemInformation,profile:t.profile}),sZ)(sX);var s0=i(13057),s1=i(76923),s2=i.n(s1);let s4={clickHouseShoot:m.Y3};class s3 extends a.Component{componentDidMount(){var t,e;this.getVisibleElements(),this.setState({noJs:!1,wrapWidth:null===(e=this.wrap)||void 0===e?void 0:null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect().width})}componentDidUpdate(t){var e,i,o;let s=this.wrap.current,{wrapWidth:r}=this.state,a=null==s?void 0:s.getBoundingClientRect().width,l=a!==r;((null===(e=t.movieData)||void 0===e?void 0:e._id)!==(null===(i=this.props.movieData)||void 0===i?void 0:i._id)||l)&&(l&&this.setState({wrapWidth:a}),(null===(o=this.props.movieData)||void 0===o?void 0:o._id)&&this.setState({translateX:0,visibleIndex:0,widthOfVisible:[],arrayOfHidden:[]},()=>{s.scroll({left:0,behavior:"smooth"}),this.getVisibleElements()}))}render(){var t,e,i,s,r,a;let{current:l,noTitle:n,categoriesList:c,inPlayer:_,movieData:d,series:p,inPlayerPopup:u,sidesShadow:h,alias:m,renderContent:v}=this.props,{arrayOfVisible:g,noJs:b}=this.state,{deviceSize:k,userBrowser:f}=this.props.systemInformation,x="series"===m;return(0,o.jsxs)("div",{className:z()(s2().categories__categories,{[s2().categories__nt]:n,[s2().categories__player]:_,[s2().c
1ategories__player_popup]:u}),onMouseOver:()=>this.setState({mouseOver:!0}),onMouseOut:()=>this.setState({mouseOver:!1}),children:[(0,o.jsx)("div",{className:z()(s2().categories__a,s2().categories__dl,{[s2().categories__shadowVisible_left]:h}),onClick:()=>this.handleArrowClick("left"),style:{visibility:(null===(e=this.wrap)||void 0===e?void 0:null===(t=e.current)||void 0===t?void 0:t.scrollLeft)!==0?"visible":"hidden"},children:(0,o.jsx)("img",{src:"/static/images/tv/left.svg"})}),v?v({className:z()({[s2().categories__wrap]:!_&&!u,[s2()["categories__player-wrap"]]:_,[s2().categories__player_popup_wrap]:u}),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:g,deviceSize:k,userBrowser:f,current:l}):(0,o.jsx)("div",{className:z()({[s2().categories__wrap]:!_&&!u,[s2()["categories__player-wrap"]]:_,[s2().categories__player_popup_wrap]:u}),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((t,e)=>(0,o.jsx)("div",{className:"".concat(s2().categories__cWrap," ").concat("desktop_web"!==k||g.includes(e)?"":s2().categories__aWrap," ").concat((null==f?void 0:f.browserName)==="Safari"?s2().categories__safari:""),children:b&&x?(0,o.jsx)(tA(),{prefetch:!1,href:"/watch/".concat(d.alias,"/season-").concat(t.num),className:"".concat(s2().categories__category," ").concat((null==l?void 0:l.alias)===t.alias?s2().categories__active:""),onClick:"desktop_web"!==k||g.includes(e)?()=>this.props.onClickCategory(t,e):null,children:t.title}):(0,o.jsx)("div",{className:"".concat(s2().categories__category," ").concat((null==l?void 0:l.alias)===t.alias?s2().categories__active:""),onClick:"desktop_web"!==k||g.includes(e)?()=>this.props.onClickCategory(t,e):null,children:t.title})},e)):null}),(0,o.jsx)("div",{className:z()(s2().categories__a,s2().categories__dr,{[s2().categories__shadowVisible_rigth]:h}),onClick:()=>this.handleArrowClick("right"),style:{visibility:parseInt(null===(s=this.wrap)||void 0===s?void 0:null===(i=s.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,o.jsx)("img",{src:"/static/images/tv/right.svg",alt:"right"})})]})}constructor(...t){super(...t),this.apiUrl=this.props.systemInformation.API_URL||c.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=a.createRef(),this.scrollTimeout=null,this.getVisibleElements=()=>{var t,e;let i=this.wrap.current,o=[...i.childNodes],s=o.map(t=>t.getBoundingClientRect().width),r=s.reduce((t,e)=>t+=e,0),a=parseInt(null===(t=window)||void 0===t?void 0:t.getComputedStyle(i,null).paddingRight)+parseInt(null===(e=window)||void 0===e?void 0:e.getComputedStyle(i,null).paddingLeft);r=parseInt(r+a);let l=[];o.forEach((t,e)=>{!(1*t.getBoundingClientRect().right>(null==i?void 0:i.getBoundingClientRect().right))&&t.getBoundingClientRect().left>0&&l.push(e)});let n=0,c=[];s.map((t,e)=>{n+t<(null==i?void 0:i.getBoundingClientRect().width)-a?n+=t:(c.length&&(n+=c[c.length-1]),c.push(n),n=t)}),this.setState({widthOfVisible:c,arrayOfHidden:[],categoriesLineWidth:r,arrayOfVisible:l})},this.handleArrowClick=t=>{let{visibleIndex:e,widthOfVisible:i}=this.state,o=this.wrap.current,{onArrowClick:s}=this.props;if("right"===t){if(e>=i.length)return;this.setState({visibleIndex:e+1,translateX:i[e]},()=>{this.wrap.current.scroll({left:this.state.translateX,behavior:"smooth"})})}else e>=0&&this.setState({visibleIndex:e-1,translateX:i[e-2]||0},()=>{o.scroll({left:this.state.translateX,behavior:"smooth"})});s&&s(t),this.lockScroll=!1},this.handleScroll=()=>{clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(this.getVisibleElements,0)},this.handleWheel=()=>{let t=0;this.state.widthOfVisible.some(e=>{e<this.wrap.current.scrollLeft&&t++}),this.setState({visibleIndex:t,translateX:t>=0?this.state.widthOfVisible[t]:0})},this.handleDragStart=t=>{var e;t.preventDefault();let i=t.clientX,o=i<56,s=(null===(e=window)||void 0===e?void 0:e.innerWidth)-i<56;o||s||this.setState({isDragging:!0,dragStartPosX:i})},this.handleDragEnd=()=>{this.setState({isDragging:!1})},this.handleDrag=t=>{let{isDragging:e,dragStartPosX:i}=this.state;if(!e)return;t.preventDefault();let o=i-t.clientX;Math.abs(o)>28&&(o>0?this.handleArrowClick("right"):this.handleArrowClick("left"),this.setState({isDragging:!1}))}}}let s5=(0,l.Ng)(t=>({systemInformation:t.systemInformation,registration:t.registration}),s4)(s3);var s6=i(47828);let s7=t=>{let e=new Date(t),i=e.getDate(),o=c.wp[(0,s6.A)(e)];return"".concat(i," ").concat(o)},s8=t=>{let{img:e,imgStub:i,apiUrl:o,size:s,quality:r}=t;return e?"".concat(o).concat((0,_.bZ)(e,s,r)):i};var s9=i(29805),rt=i.n(s9);let re="/static/images/horizontal_poster.svg",ri={SEASON:"SEASON",TRAILER:"TRAILER"},ro=t=>{let{type:e,linkUrl:i,isNoJs:s,onClick:r,children:a}=t;return s||e===ri.SEASON?(0,o.jsx)(tA(),{href:i,onClick:r,prefetch:!1,scroll:!1,className:z()(rt().wrapper,{[rt().seasonWrapper]:e===ri.SEASON,[rt().trailerWrapper]:e===ri.TRAILER}),children:a}):(0,o.jsx)("div",{className:z()(rt().wrapper,rt().trailerWrapper),onClick:r,children:a})},rs={Season:t=>{let{image:e,releaseDate:i,seasonNumber:s,linkUrl:r,onClick:a}=t,l=(0,Q.A)();return(0,o.jsxs)(ro,{type:ri.SEASON,linkUrl:r,onClick:a,children:[(0,o.jsx)(ti(),{className:rt().img,src:s8({img:e,imgStub:re,apiUrl:l,size:"160x90",quality:1}),loader:_.R2,alt:"Ñезон",fill:!0,priority:!0,sizes:"(max-width: 1024px) 100vw"}),(0,o.jsx)("div",{className:rt().seasonTitle,children:i?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:rt().text,children:s7(i)}),(0,o.jsxs)("span",{className:z()(rt().text,rt().text_shaded),children:[s," Сезон"]})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:z()(rt().text,rt().text_shaded),children:"СкоÑо"}),(0,o.jsxs)("span",{className:rt().text,children:[s," Сезон"]})]})})]})},Trailer:t=>{let{image:e,linkUrl:i,isNoJs:s,onClick:r}=t,a=(0,Q.A)();return(0,o.jsxs)(ro,{type:ri.TRAILER,linkUrl:i,isNoJs:s,onClick:r,children:[(0,o.jsx)("div",{className:rt().trailerPoster,children:(0,o.jsx)(ti(),{className:rt().img,src:s8({img:e,imgStub:re,apiUrl:a}),loader:_.R2,alt:"ÑÑейлеÑ",fill:!0,sizes:"(max-width: 1024px) 100vw"})}),(0,o.jsxs)("div",{className:rt().trailerContent,children:[(0,o.jsxs)("div",{className:rt().trailerTitle,children:[(0,o.jsx)("span",{className:z()(rt().text),children:"СмоÑÑиÑе"}),(0,o.jsx)("span",{className:z()(rt().text,rt().text_shaded),children:"ТÑейлеÑ"})]}),(0,o.jsxs)("button",{className:rt().trailerButton,children:[(0,o.jsx)("img",{className:rt().trailerButton__icon,src:"/static/images/product/kino.svg",alt:"trailer"}),"СмоÑÑеÑÑ"]})]})]})}};var rr=i(33257),ra=i.n(rr);let rl=t=>{var e;let{movieData:i,season:s,isLast:r}=t,n=(0,l.wA)(),c=(0,X.A)(),_=(0,Q.A)(),d=(0,Z.A)(),p=(0,l.d4)(t=>t.profile.childProfile),[u,h]=(0,a.useState)(!0),g=r&&(null===(e=i.additional_content)||void 0===e?void 0:e.findLast(t=>t.announcement)),b=async()=>
1{if(p&&await (0,tm.j)({apiUrl:_,apiKey:d})){n((0,v.bL)({visible:!0}));return}let t={movieUrl:"/web/watch/".concat(i.alias),movieTitle:g.title,movieId:i._id,uid:i.uid,rating_age:g.rating_age||i.rating_age,trailerSrc:g.video_src,playback:i.playback_options,announce:null==g?void 0:g.announcement,isTrailer:!0,noNext:!0,promoData:{cls:"Trailer",uid:g.uid,title:g.title,promoting_content:{id:i._id,uid:i.uid,cls:i._cls,alias:i.alias}}};n((0,m.kI)({init:!0,type:"Trailer"})),n((0,O.o2)(t)),c({action_id:"click",product_id:i.uid,content_id:i.uid,content_type:i._cls,block_type:"season",block_attributes_id:"season-".concat(s.num),element_type:"button",element_attributes_id:"play_trailer",element_attributes_text:"СмоÑÑеÑÑ",element_attributes_index:2})};return(0,a.useEffect)(()=>{h(!1)},[]),(0,o.jsx)("div",{className:ra().wrapper,children:(0,o.jsxs)("div",{className:ra().list,children:[(0,o.jsx)(rs.Season,{image:i.background.image_15x,releaseDate:s.start_release_date,seasonNumber:s.num,linkUrl:"/watch/".concat(i.alias,"/season-").concat(s.num),onClick:t=>t.preventDefault()}),g&&(0,o.jsx)(rs.Trailer,{image:g.packshot.image_15x||s.background.image_15x,linkUrl:"/watch/".concat(i.alias,"/trailers/").concat(g.start_id),isNoJs:u,onClick:b})]})})};var rn=i(38357),rc=i.n(rn);let r_=t=>{let{watchedText:e,itemDurationText:i}=t;return(0,o.jsxs)("div",{className:"".concat(rc().watched),children:[(0,o.jsxs)("div",{className:rc()["watched-line"],children:[(0,o.jsx)("div",{className:rc()["red-line"]}),(0,o.jsx)("div",{className:rc()["white-line"]})]}),(0,o.jsx)("div",{className:rc()["watched-title"],children:e})]})},rd=t=>{let{current:e,item:i,itemDurationText:s,itemProgress:r}=t;return(null==r?void 0:r.progress)&&(null==r?void 0:r.progress)<=95?(0,o.jsxs)("div",{className:"".concat(rc().watched),children:[(0,o.jsxs)("div",{className:rc()["watched-line"],children:[(0,o.jsx)("div",{className:rc()["red-line"],style:{width:"".concat(r.progress<10?10:r.progress,"%")}}),(0,o.jsx)("div",{className:rc()["white-line"],style:{width:"".concat(100-r.progress,"%")}})]}),(0,o.jsx)("div",{className:rc()["watched-progress-title"],children:e?"ÐÑ ÑмоÑÑиÑе":((t,e)=>{let i=Math.round((t-t*e/100)/1e3/60);return"ÐÑÑалоÑÑ ".concat(i," мин")})(r.duration,r.progress)})]}):(null==i?void 0:i.duration)&&!(null==i?void 0:i.announcement)?(0,o.jsx)("span",{className:z()(rc().duration,{[rc().series__watched]:(null==r?void 0:r.progress)&&(null==r?void 0:r.progress)>95}),children:s}):null};var rp=i(2352),ru=i(12107);let rh=t=>{let e={};if(t){let i=(0,rp.A)(new Date("".concat(t)),"d MMMM",{locale:ru.A}),o=(0,rp.A)(new Date("".concat(t)),"EEEE",{locale:ru.A});e.title=i,e.subtitle=o}else e.title="СкоÑо";return e};var rm=i(92505),rv=i.n(rm);let rg=t=>{var e;let{index:i,selectedSeasonIndex:s,currentEpisode:r,card:n,alias:d,onTitleClick:p,onPosterClick:u,onPlayIconClick:h,seriesBackground:m}=t,v=(0,Q.A)(),g=(0,l.d4)(t=>t.registration.authData),b=(0,l.d4)(t=>t.profile.progress),k=(0,l.d4)(t=>t.systemInformation.windowInnerWidth),[f,x]=(0,a.useState)(),y=null==b?void 0:null===(e=b.items)||void 0===e?void 0:e.find(t=>t.content_id===n.uid),w=r&&n._id===r._id,T=Math.ceil(((null==n?void 0:n.duration)?Math.ceil(n.duration/1e3):0)/60),S=(null==n?void 0:n.announcement)||(null==n?void 0:n.unavailable_by_geo),j=null==n?void 0:n.unavailable_by_geo;return(0,a.useEffect)(()=>{!n.announcement||n.packshot&&n.packshot.image_15x||x(rh(n.start_release_date))},[n]),(0,o.jsxs)("div",{className:rv().item,children:[(0,o.jsxs)("div",{className:z()({[rv()["item-img-wrap"]]:!0,[rv()["item-img-wrap-announcement"]]:(null==n?void 0:n.announcement)||(null==n?void 0:n.unavailable_by_geo),[rv()["item-img-wrap-announcement-with-overlay"]]:(null==n?void 0:n.announcement)&&(!n.packshot||!n.packshot.image_15x)}),onClick:()=>{S||u(i,n.title,n.announcement,n,s,r&&n._id===r._id,s)},children:[(0,o.jsx)(ti(),{className:rv()["item-img-wrap-poster"],loader:_.R2,src:(()=>{var t,e;let i=k/c.U8,o="".concat(i>1?Math.floor(471*i):471,"x").concat(i>1?Math.floor(266*i):266);return(null===(t=n.packshot)||void 0===t?void 0:t.image_15x)||n.announcement&&(!n.announcement||m)?!n.announcement||n.packshot&&n.packshot.image_15x?"".concat(v).concat((0,_.bZ)(null===(e=n.packshot)||void 0===e?void 0:e.image_15x,o)):"".concat(v).concat((0,_.bZ)("".concat(m,"&blur=30"),o,85)):"/static/images/V2/preview-no-poster-horizontal.webp"})(),alt:"poster",loading:"eager",fill:!0}),(null==n?void 0:n.announcement)&&f?(0,o.jsxs)("div",{className:rv()["item-img-wrap-text"],children:[f.title&&(0,o.jsx)("div",{className:rv()["item-img-wrap-text-title"],dangerouslySetInnerHTML:{__html:f.title}}
1),f.subtitle&&(0,o.jsx)("div",{className:rv()["item-img-wrap-text-subtitle"],dangerouslySetInnerHTML:{__html:f.subtitle}})]}):null,!S&&(0,o.jsx)("img",{className:rv()["item-img-wrap-play-img"],src:"/static/images/product/button-play.svg",alt:"play",onClick:t=>h(t,i,n.title,n.announcement,n,s,s)}),(null==y?void 0:y.progress)>95&&(0,o.jsx)(r_,{watchedText:"ÐÑоÑмоÑÑено",itemDurationText:(0,_._9)(T)}),(0,o.jsx)(rd,{item:y,itemProgress:y,current:w,itemDurationText:(0,_._9)(T)}),(null==y?void 0:y.progress)||null==n||!n.duration||(null==n?void 0:n.announcement)||(null==g?void 0:g.virtual)!==!0?null:(0,o.jsx)("span",{className:rv()["item-img-wrap-time"],children:(0,_._9)(T)})]}),(0,o.jsxs)("div",{className:rv().item__link,onClick:()=>{j||p(n,s)},children:[(0,o.jsx)("div",{className:rv().item__titles,children:(0,o.jsx)("div",{className:rv()["item__titles-title-badge-block"],children:(0,o.jsx)("div",{className:rv()["item__titles-title-wrap"],children:(0,o.jsx)("span",{className:rv()["item__titles-title"],children:null==n?void 0:n.title})})})}),!(null==n?void 0:n.announcement)&&(0,o.jsx)("div",{className:rv().item__description,children:n.description})]})]})};var rb=i(44795),rk=i.n(rb);let rf=a.memo(t=>{var e;let{item:i,page:s,position:r,noJs:n,selectedSeasonIndex:c,currentEpisode:d,progress:p,movieData:u,onPosterClick:h,onPlayIconClick:m,onTitleClickHandle:v}=t,g=(0,Q.A)(),b=(0,l.d4)(t=>t.systemInformation.renderMobile),[k,f]=(0,a.useState)(!1),[x,y]=(0,a.useState)(),w=Math.ceil(Math.ceil((null==i?void 0:i.duration)/1e3)/60),T=(0,a.useMemo)(()=>{var t;return null==p?void 0:null===(t=p.items)||void 0===t?void 0:t.find(t=>t.content_id===i.uid)},[p,i.uid]),S=d&&i._id===d._id,j=(null==i?void 0:i.announcement)||(null==i?void 0:i.unavailable_by_geo),C=null==i?void 0:i.unavailable_by_geo,B=()=>{C||v(i,c,n,r)};return(0,a.useEffect)(()=>{!i.announcement||i.packshot&&i.packshot.image_15x||y(rh(i.start_release_date))},[i]),(0,o.jsx)("div",{className:z()(rk()["item-wrap"],{[rk().current]:S}),children:(0,o.jsxs)("div",{className:rk().item,children:[(0,o.jsxs)("div",{className:z()(rk()["item-img-wrap"],{[rk()["item-img-wrap-announcement"]]:(null==i?void 0:i.announcement)||(null==i?void 0:i.unavailable_by_geo),[rk()["item-img-wrap-announcement-with-overlay"]]:(null==i?void 0:i.announcement)&&(!i.packshot||!i.packshot.image_15x)}),onClick:()=>{if(!j)h(r,i.title,i.announcement,i,c,S,c)},children:[!k&&!n&&(0,o.jsx)(tO.A,{className:rk()["skeleton-card"]}),(0,o.jsx)(tM.A,{className:rk()["item-img-wrap-poster"],src:(t=>{var e;let o="desktop_web"!==b?"333x188":"471x266";if(!t&&(!i.announcement||i.announcement&&!(null===(e=u.background)||void 0===e?void 0:e.image_15x)))return"/static/images/V2/preview-no-poster-horizontal.webp";if(i.announcement&&(!i.packshot||!i.packshot.image_15x)){let t="".concat(u.background.image_15x,"&blur=30");return"".concat(g).concat((0,_.bZ)(t,o,85))}return"".concat(g).concat((0,_.bZ)(t,o,85))})(null===(e=i.packshot)||void 0===e?void 0:e.image_15x),width:"desktop_web"!==b?222:314,height:"desktop_web"!==b?125:177,onLoad:()=>f(!0),onError:()=>f(!1)}),(null==i?void 0:i.announcement)&&x?(0,o.jsxs)("div",{className:rk()["item-img-wrap-text"],children:[x.title&&(0,o.jsx)("div",{className:rk()["item-img-wrap-text-title"],dangerouslySetInnerHTML:{__html:x.title}}),x.subtitle&&(0,o.jsx)("div",{className:rk()["item-img-wrap-text-subtitle"],dangerouslySetInnerHTML:{__html:x.subtitle}})]}):null,!n&&!j&&(0,o.jsx)("img",{onClick:t=>{m(t,r,i.title,i.announcement,i,c,c)},className:rk()["item-img-wrap-play-img"],src:"/static/images/product/button-play.svg",alt:"play"}),(null==T?void 0:T.progress)>95&&(0,o.jsx)(r_,{watchedText:"ÐÑоÑмоÑÑено",itemDurationText:(0,_._9)(w)}),(0,o.jsx)(rd,{item:i,itemProgress:T,current:S,itemDurationText:(0,_._9)(w)}),(null==T?void 0:T.progress)||null==i||!i.duration||(null==i?void 0:i.announcement)||"desktop_web"!==b?null:(0,o.jsx)("span",{className:rk()["item-img-wrap-time"],children:(0,_._9)(w)})]}),n&&!C?(0,o.jsxs)(tA(),{prefetch:!1,href:"/watch/".concat(null==u?void 0:u.alias,"/").concat(i.start_id),"data-testid":"episode_title_".concat(r),className:rk().item__link,onClick:B,children:[(0,o.jsx)("div",{className:rk().item__titles,children:(0,o.jsx)("div",{className:rk()["item__titles-title-badge-block"],children:(0,o.jsx)("div",{className:rk()["item__titles-title-wrap"],children:(0,o.jsx)("span",{className:rk()["item__titles-title"],children:null==i?void 0:i.title})})})}),!(null==i?void 0:i.announcement)&&(0,o.jsx)("div",{className:rk().item__description,children:null==i?void 0:i.description})]}):(0,o.jsxs)("div",{className:rk().item__link,onClick:B,"data-testid":"episode_title_".concat(r),children:[(0,o.jsx)("div",{className:rk().item__titles,children:(0,o.jsx)("div",{className:rk()["item__titles-title-badge-block"],children:(0,o.jsx)("div",{className:rk()["item__titles-title-wrap"],children:(0,o.jsx)("span",{className:rk()["item__titles-title"],children:null==i?void 0:i.title})})})}),!(null==i?void 0:i.announcement)&&(0,o.jsx)("div",{className:z()(rk().item__description,{[rk()["item__description-all"]]:"seasons"===s||"episode"===s}),children:null==i?void 0:i.description})]})]})})}),rx=t=>{let{sliderList:e,alias:i,isPaginator:s,onPosterClick:r,onPlayIconClick:n,onTitleClick:d,selectedSeasonIndex:p,selectedEpisodeIndex:u,currentEpisode:h,playerProp:m,onArrowClick:v,movieData:g,page:b,handleSeasonSelected:k,clickSeasonSelected:f}=t,x=(0,l.d4)(t=>t.profile),y=(0,l.d4)(t=>t.systemInformation.documentClientWidth),[w,T]=(0,a.useState)(!1),[S,j]=(0,a.useState)(null),[C,B]=(0,a.useState)(!0),{progress:N}=x,P=(t,e,i,o)=>{j(parseInt(o)),d(t,e,i)};(0,a.useEffect)(()=>{B(!1)},[]),(0,a.useEffect)(()=>{m||j(u)},[u,p]);let I=(0,a.useMemo)(()=>
1{if(y){if(y>c.U8){let t=(0,_.$J)(56,y);return{paddingRight:t,paddingLeft:t}}if(m&&y>c.U8){let t=(0,_.$J)(40,y);return{paddingRight:t,paddingLeft:t}}if(y>c.U8){let t=(0,_.$J)(56,y);return{paddingRight:t,paddingLeft:t}}return y>c.af?{paddingRight:56,paddingLeft:56}:{paddingRight:24,paddingLeft:24}}},[y]);return(0,o.jsx)("div",{className:rk()["slider-wrap"],onMouseOver:()=>T(!0),onMouseOut:()=>T(!1),onFocus:()=>T(!0),onBlur:()=>T(!1),children:(0,o.jsx)(tE.A,{wrapperStyles:I,widthCard:{desktop:314,mobile:222},heightCard:{desktop:200,mobile:243},isPaginator:s,active:w,alias:i,items_total:null==e?void 0:e.length,arrowClick:t=>{t?v("arrow_right"):v("arrow_left")},cardIdent:16,isProduct:!0,isProductSelections:m,items:e,selectedEpisode:S,handleSeasonSelected:k,clickSeasonSelected:f,children:(0,o.jsx)("div",{className:z()(rk().items_wrap,{[rk().inPlayer]:m}),children:null==e?void 0:e.map((t,e)=>(0,o.jsx)(rf,{page:b,item:t,position:e,movieData:g,noJs:C,selectedSeasonIndex:p,currentEpisode:h,progress:N,onPosterClick:r,onPlayIconClick:n,onTitleClickHandle:P},t._id))})})})};var ry=i(68583),rw=i.n(ry);class rT extends a.PureComponent{componentDidUpdate(t,e){var i,o,s,a;let{query:l}=r(),n=null===(i=l.params)||void 0===i?void 0:i[1],{movieData:c,page:d,playerProp:p,maxSeason:u,currentEpisode:h,season:m}=this.props,{movieData:v,maxSeason:g,page:b,currentEpisode:k,season:f}=t,{selectedSeasonIndex:x,progressSeasonNum:y,progressEpisodeIndex:w}=this.state,{selectedSeasonIndex:T}=e,{authData:S}=this.props.registration,{lastProgress:j,progress:C,lastProgressId:B}=this.props.profile,{lastProgress:N,progress:P}=t.profile,{windowInnerWidth:I}=this.props.systemInformation,{windowInnerWidth:D}=t.systemInformation;I&&D&&I!==D&&this.resizeHandler();let A=n&&-1!==n.indexOf("season-")&&parseInt(n.split("-")[1]);if(!m&&(null==c?void 0:null===(o=c.items)||void 0===o?void 0:o.length)&&h&&(null==k?void 0:k.uid)!==(null==h?void 0:h.uid)){let t=this.findCurrentEpisodeSeason();t&&this.setState({currentSeason:t.num,selectedSeasonIndex:t.num})}if(c&&c._id!==v._id){this.loadProfile=!1;let t=this.getFirstAvailableSeasonNumber();this.setState({selectedSeasonIndex:p?u:t})}if(!A&&u!==g||!d&&d!==b){let t=this.getFirstAvailableSeasonNumber();this.setState({selectedSeasonIndex:p?u:t})}if(m&&m!==f&&m!=x&&this.setState({selectedSeasonIndex:m}),p&&this.setState({selectedSeasonIndex:x>u?u:x}),c&&c.items&&c.items.length&&!this.loadMovie&&(this.loadMovie=!0),S&&c&&!this.loadProfile&&(this.loadProfile=!0,(null==S?void 0:S.virtual)?this.setState({selectedEpisodeIndex:0}):(this.fetchProfileProgress(c.uid,!0),this.fetchProfileProgress(c.uid,!1))),B&&j&&C&&(j.content_id!==(null==N?void 0:N.content_id)||C!==P)){this.loadProgress=!1;let t=null===(s=c.items)||void 0===s?void 0:s.find(t=>null==t?void 0:t.items.find(t=>t.uid===(null==j?void 0:j.content_id))),e=(null==t?void 0:t.items)||[],i=e.findIndex(t=>t.uid===(null==j?void 0:j.content_id)),o=(null==C?void 0:C.items)||[],r=o.length?o[0]:{},l=o.length?o[o.length-1]:{},n=null===(a=c.items)||void 0===a?void 0:a.find(t=>t.items.find(t=>t.uid===r.content_id)),d=((null==n?void 0:n.items)||[]).findIndex(t=>t.uid===(null==j?void 0:j.content_id)),p=(null==n?void 0:n.num)||1,u=d>-1?d:0;if(j){if(0!==j.progress&&i>-1||0===j.progress&&r.content_id!==j.content_id)p=null==t?void 0:t.num,u=i;else{let i=e.findIndex(t=>t.announcement),o=(0,_.UY)(null==c?void 0:c.items)[0];l.progress>0&&(i>-1?(p=null==t?void 0:t.num,u=i):(null==o?void 0:o.num)&&(p=null==o?void 0:o.num,u=i))}}this.setState({progressSeasonNum:p,progressEpisodeIndex:u})}!y||m||this.loadProgress||(this.loadProgress=!0,this.setState({selectedSeasonIndex:y,selectedEpisodeIndex:w})),x!==T&&y&&(x===y?this.setState({selectedEpisodeIndex:w}):this.setState({selectedEpisodeIndex:0}))}render(){var t;let{currentEpisode:e,page:i,movieData:s,bannerData:r,playerProp:a,isNewEpisodePage:l}=this.props,{currentSeason:n,selectedSeasonIndex:c,selectedEpisodeIndex:d,noJs:p,isAllSeriesActive:u,isDesktop:h}=this.state,m=this.preparedSeasonsFunc(a?(0,_.DT)(null==s?void 0:s.items):null==s?void 0:s.items),v=p&&n||c,g=null===(t=s.items)||void 0===t?void 0:t.find(t=>(null==t?void 0:t.num)==v),b=(null==g?void 0:g.items)||[],k=(null==g?void 0:g.is_preview)&&!(null==b?void 0:b.length),f=(0,_.Ls)((0,_.UY)(null==s?void 0:s.items)),x=h&&!k,y=(t,e,i)=>{t.preventDefault(),t.stopPropagation(),this.handleCategoryClick(e,i)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{ref:this.seriesRef,className:rw().product__series,children:(0,o.jsxs)("div",{className:rw()["product__series-inner"],children:[(0,o.jsxs)("div",{className:a?rw()["product__seasons-player"]:rw().product__seasons,children:[!a&&(0,o.jsxs)("div",{className:rw().product__header,children:[(0,o.jsx)("h2",{className:rw()["product__header-title"],children:"РаÑпиÑание ÑÑанÑлÑÑий"}),x?(0,o.jsx)(s0.A,{className:{button:z()(rw()["product__header-button"],{[rw()["product__header-button--active"]]:u}),title:rw()["product__header-button-title"],icon:z()(rw()["product__header-button-icon"],{[rw()["product__header-button-icon--down"]]:u})},collapsedText:"ÐÑе ÑеÑии",expandedText:"СвеÑнÑÑÑ",arrowSrc:"/static/images/arrow-medium-d
1own.svg",isExpand:u,onClick:this.handleAllSeriesButtonClick(!1)}):null]}),(0,o.jsx)(s5,{alias:a?"player_".concat(null==s?void 0:s.alias):"series",movieData:s,categoriesList:m,current:null==m?void 0:m.find(t=>(null==t?void 0:t.num)==v),onClickCategory:this.handleCategoryClick,inPlayer:a,productPage:!0,renderContent:t=>{var e;let{className:i,...r}=t;return(0,o.jsx)(tQ.t,{type:"link",variant:"secondary",tabSize:"large",tabs:m,tabId:"alias",className:z()(i,rw().tabs),renderContent:t=>t.title,activeTabId:null==m?void 0:null===(e=m.find(t=>(null==t?void 0:t.num)==v))||void 0===e?void 0:e.alias,onClickTab:y,getTabProps:t=>({route:"/watch/".concat(s.alias,"/season-").concat(t.num),scroll:!1}),...r})}})]}),x&&u?(0,o.jsxs)("div",{className:rw()["product__series-all"],children:[(0,o.jsx)("div",{className:rw()["product__series-wrap"],children:null==b?void 0:b.map((t,i)=>{var r;return(0,o.jsx)(rg,{index:i,alias:s.alias,card:t,selectedSeasonIndex:c,currentEpisode:e,onPosterClick:this.handleWorldCupEpisodePosterClick,onPlayIconClick:this.handleWorldCupEpisodePlayIconClick,onTitleClick:this.seriesTitleClick,seriesBackground:null==s?void 0:null===(r=s.background)||void 0===r?void 0:r.image_15x},i)})}),(0,o.jsx)(s0.A,{className:{button:z()(rw()["product__header-button"],{[rw()["product__header-button--active"]]:u}),title:rw()["product__header-button-title"],icon:z()(rw()["product__header-button-icon"],{[rw()["product__header-button-icon--down"]]:u})},collapsedText:"ÐÑе ÑеÑии",expandedText:"СвеÑнÑÑÑ",arrowSrc:"/static/images/arrow-medium-down.svg",isExpand:u,onClick:this.handleAllSeriesButtonClick(!0)})]}):k&&!a?(0,o.jsx)(rl,{movieData:s,season:g,isLast:f==v}):(0,o.jsx)(rx,{lineIdx:1,page:i,alias:a?"player_series":"series",sliderList:b,movieData:s,playerProp:a,selectedSeasonIndex:c,selectedEpisodeIndex:d,currentEpisode:e,currentSeason:n||c,isNewEpisodePage:l,onPosterClick:this.handleWorldCupEpisodePosterClick,onPlayIconClick:this.handleWorldCupEpisodePlayIconClick,onTitleClick:this.seriesTitleClick,onArrowClick:this.handleArrowShoot,handleSeasonSelected:this.handleSeasonSelected,clickSeasonSelected:this.state.clickSeasonSelected})]})}),r&&"series"===r.position&&(0,o.jsx)(sa,{bannerData:r,movieData:s})]})}constructor(...t){var e;super(...t),e=this,this.state={selectedSeasonIndex:this.props.playerProp&&this.props.maxSeason||1,selectedEpisodeIndex:null,progressSeasonNum:null,progressEpisodeIndex:null,currentSeason:this.props.season,mlk_msisdn:(0,_.Ri)("mlk_msisdn"),mlk_app:(0,_.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}}]},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},this.seriesRef=a.createRef(),this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.loadMovie=!1,this.loadProfile=!1,this.loadProgress=!1,this.componentDidMount=()=>{var t;let{query:e}=r(),{maxSeason:i,playerProp:o}=this.props,s=window.innerWidth,a=null===(t=e.params)||void 0===t?void 0:t[1],l=a&&-1!==a.indexOf("season-")&&parseInt(a.split("-")[1]),n=this.getFirstAvailableSeasonNumber();this.setState({browserWidth:s,isDesktop:s>c.xW.TABLET,currentSeason:l,selectedSeasonIndex:l||(o?i:n),noJs:!1})},this.resizeHandler=()=>{let{innerWidth:t}=window,{browserWidth:e}=this.state;t!==e&&this.setState({browserWidth:t,isDesktop:t>c.xW.TABLET})},this.findCurrentEpisodeSeason=()=>{var t;let{movieData:e,currentEpisode:i}=this.props;if((null==e?void 0:null===(t=e.items)||void 0===t?void 0:t.length)&&i)return e.items.find(t=>t.items.some(t=>t.uid===i.uid))},this.getFirstAvailableSeasonNumber=()=>{let{movieData:t,playerProp:e}=this.props,i=e?(0,_.DT)(null==t?void 0:t.items):null==t?void 0:t.items,o=1;if(i){var s;o=null===(s=(null==i?void 0:i.sort((t,e)=>t.num>e.num?1:e.num>t.num?-1:0))[0])||void 0===s?void 0:s.num}return o},this.handleArrowShoot=t=>{let{season:e,playerProp:i,shootBase:o}=this.props,{clickHouseData:s}=this.props.systemInformation,{currentSeason:a,selectedSeasonIndex:l}=this.state,{_id:n}=this.props.movieData,c={...s,...o,action_id:"click",block_type:"season",block_attributes_id:e||r().query&&r().query.season||"season-".concat(l)||0,element_type:"button",element_attributes_id:t,product_id:n,event_time:new Date().getTime()};i?c.screen_type="player":c.screen_type,this.props.clickHouseShoot(this.apiUrl,this.apiKey,c)},this.seasonCategoryClickHandler=(t,e)=>{let{_id:i}=this.props.movieData,{selectedSeasonIndex:o}=this.state,{playerProp:s,shootBase:r}=this.props;this.setState({selectedSeasonIndex:t.num,currentSeason:t.num},()=>{let{clickHouseData:o}=this.props.systemInformation,a={...o,...r,action_id:"click",block_type:"block",block_attributes_id:"seasons",product_id:i,element_type:"menu_item",element_attributes_id:"season-".concat(t.num),element_attributes_text:t.title,element_attributes_index:e+1,event_time:new Date().getTime()};s?a.screen_type="player":a.screen_type,this.props.clickHouseShoot(this.apiUrl,this.apiKey,a)})},this.seriesTitleClick=(t,e,i)=>{let{playerProp:o,intersectionObserverOff:s}=this.props,{clickHouseData:a,config:l}=this.props.systemInformation,{_id:n,alias:c}=this.props.movieData;if(this.checkForBlock(l,t))return;let _={...a,action_id:"click",block_type:"season",block_attributes_id:"season-".concat(e),element_type:"product",element_attributes_id:"episode-".concat(t.num),element_attributes_index:e+1,element_attributes_text:t.title,product_id:n,content_id:t.uid,c
1ontent_type:t._cls,event_time:new Date().getTime()};if(o?_.screen_type="player":_.screen_type,this.props.clickHouseShoot(this.apiUrl,this.apiKey,_),!i){let e="/watch/".concat(c,"/").concat(t.start_id);s&&s(),r().push(e,void 0,{scroll:!1})}},this.handleWorldCupEpisodeClick=async t=>{let{index:e,item:i,selectedSeasonIndex:o,elementType:s,elementAttributesId:r,elementAttributesText:a}=t;if(!i||i.announcement||i.unavailable_by_geo)return;let{playerProp:l,shootBase:n}=this.props,{authData:c}=this.props.registration,{childProfile:_}=this.props.profile,{clickHouseData:d}=this.props.systemInformation,{_id:p}=this.props.movieData,u={...d,...n,action_id:"click",block_type:"season",block_attributes_id:"season-".concat(o),element_type:s,element_attributes_id:r,element_attributes_index:e+1,element_attributes_text:a,product_id:p,content_id:i.uid,content_type:i._cls,event_time:new Date().getTime()};l?u.screen_type="player":u.screen_type,this.props.clickHouseShoot(this.apiUrl,this.apiKey,u),await sC({authData:c,childProfile:_,apiUrl:this.apiUrl,apiKey:this.apiKey,toggleSwitchToAdultProfile:this.props.toggleSwitchToAdultProfile})},this.handleWorldCupEpisodePosterClick=(t,e,i,o,s)=>{this.handleWorldCupEpisodeClick({index:t,item:o,selectedSeasonIndex:s,elementType:"product",elementAttributesId:"episode-".concat(null==o?void 0:o.num),elementAttributesText:e})},this.handleWorldCupEpisodePlayIconClick=(t,e,i,o,s,r)=>{t.stopPropagation(),this.handleWorldCupEpisodeClick({index:e,item:s,selectedSeasonIndex:r,elementType:"button",elementAttributesId:"play",elementAttributesText:i})},this.fetchStreamOptions=async t=>{let{startDeviceId:e}=this.props.systemInformation,{authData:i,tariffs:o}=this.props.registration,{playerProp:s}=this.props,a="".concat(this.apiUrl).concat(t).concat(this.apiKey,"&device_id=").concat(e,"&auth_token=").concat(i.authentication_token),l=await fetch(a,{method:"GET",credentials:"include"}),c=await l.json();if(l.status<400)return c;if(400===l.status&&("USER_USE_ANONYMIZER"===c.message||"FORBIDEN_IP"===c.message)){this.props.pushStackAddItem({text:"<span>Ðе забÑдÑÑе вÑклÑÑиÑÑ VPN</span> ЧÑÐ¾Ð±Ñ Ð²ÐµÑÑ ÐºÐ¾Ð½ÑÐµÐ½Ñ START ÑÑал доÑÑÑпен",withWarning:!0,withTitle:!0,withoutAutoClosing:!0});return}if(403===l.status)switch(c.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(n.PI.authRefresh).concat(this.apiKey),{credentials:"include",method:"POST"}).then(t=>{if(t.status>400){if(401===l.status){let{authData:t}=this.props.registration;t.partner&&"ttk"===t.partner.name?this.props.toggleTTKPopup(!0):(null==t?void 0:t.virtual)===!1?(0,oa.b)({authData:this.props.registration.authData,tariffs:o,playerMovie:this.props.movie.playerMovie,dispatch:this.props.dispatch,onSuccess:()=>{this.paymentRedirect(o)},onVirtualUserCallback:()=>{s&&this.props.playerReset(),r().push("/auth"),s&&this.props.closePlayer(!0)}}):(s&&this.props.playerReset(),r().push("/auth")),s&&this.props.closePlayer(!0)}else this.props.pushStackAddItem({text:"<span>ЧÑо-Ñо поÑло не Ñак</span> СкоÑо вÑе поÑиним. ÐопÑобÑйÑе позже",withError:!0,withTitle:!0})}})},this.paymentRedirect=t=>{var e,i,o;let{authData:s}=this.props.registration,{playerProp:a}=this.props,{mlk_app:l}=this.state;if((l||(null==s?void 0:null===(e=s.mf_info)||void 0===e?void 0:e.mf_pop_up)&&(null==s?void 0:null===(o=s.mf_info)||void 0===o?void 0:null===(i=o.mf_pop_up)||void 0===i?void 0:i.indexOf("_web"))===-1)&&(null==s?void 0:s.mf_info.is_mf))"to_block"!==s.mf_info.mf_pop_up?(a&&this.props.playerReset(),r().push("/megafon_connect")):(this.props.pushStackAddItem({text:"<span>Ðа ÑÑеÑÑ ÐегаФона не доÑÑаÑоÑно ÑÑедÑÑв</span> ÐополниÑе Ð±Ð°Ð»Ð°Ð½Ñ Ð¸ возвÑаÑайÑеÑÑ",withError:!0,withTitle:!0}),a&&this.props.closePlayer(!0));else{let e=null;try{e=ga.getAll()[0].get("clientId")}catch(t){}let i=(0,n.fQ)("".concat(this.apiUrl).concat(t[0].url).concat(this.apiKey).concat(e?"&ga_id=".concat(e):""));(0,n.BA)({url:i,toPaymentTariffs:!0,callback:()=>{a&&this.props.closePlayer(!0)},errorCallback:()=>{this.props.pushStackAddItem({text:"<span>
1ЧÑо-Ñо поÑло не Ñак</span> СкоÑо вÑе поÑиним. ÐопÑобÑйÑе позже",withError:!0,withTitle:!0})}})}},this.handleClickPlay=async(t,e,i,o,s,a,l)=>{let n;t.stopPropagation();let{config:c}=this.props.systemInformation;if(this.checkForBlock(c,s))return;let{playerProp:d}=this.props,{clickHouseData:p}=this.props.systemInformation,{authData:u,tariffs:h}=this.props.registration,m=this.props.profile.pendingSubscription,v=this.props.profile.childProfile,{_id:g,alias:b,rating_age:k}=this.props.movieData,f=(null==s?void 0:s.is_free)||(null==s?void 0:s.free_for_authorized),x={...p,action_id:"click",block_type:"season",block_attributes_id:"season-".concat(a),element_type:"button",element_attributes_id:"play",element_attributes_index:e+1,product_id:g,content_id:s.uid,content_type:s._cls,event_time:new Date().getTime()};if(d?x.screen_type="player":x.screen_type,this.props.clickHouseShoot(this.apiUrl,this.apiKey,x),v&&await (0,tm.j)({apiUrl:this.apiUrl,apiKey:this.apiKey})){this.props.toggleSwitchToAdultProfile({visible:!0});return}if(o||s.unavailable_by_geo)return!1;if((null==u?void 0:u.virtual)&&(null==u?void 0:u.current_country_code)==="RU"&&s&&"Episode"===s._cls&&s.free_for_authorized&&(0,_.Uy)(),s.playback_o
1ptions&&!s.playback_options.includes(".m3u8")&&!s.is_preview){var y,w,T,S,j,C,B;if(n=await this.fetchStreamOptions(s.playback_options),(0,_.Eo)(null==n?void 0:n.upgrade_options)){(0,_.vB)({contentUpgradeOptions:null==n?void 0:n.upgrade_options,saveBackRoute:!0});return}if(!(null==n?void 0:null===(y=n.playlists)||void 0===y?void 0:y.length)&&!(null==n?void 0:n.devices)){let{show:t,type:e}=(0,th.g5)(u,m);u.partner&&"ttk"===u.partner.name?this.props.toggleTTKPopup(!0):(null==u?void 0:null===(w=u.externals)||void 0===w?void 0:w.length)&&!(null==u?void 0:null===(T=u.subscriptions)||void 0===T?void 0:T.length)?this.paymentRedirect((null==n?void 0:null===(B=n.upgrade_options)||void 0===B?void 0:B.length)?n.upgrade_options:h):t&&!f?(0,_.G6)((null==u?void 0:u.ab)||[],"Benefits_screen_customization","Test_Benefits_screen_customization")&&localStorage.getItem("bgUrl")?this.props.toggleSubscriptionOfferPopup({visible:!0,type:e,isContentPage:!0}):this.props.toggleSubscriptionOfferPopup({visible:!0,type:e}):(null==u?void 0:u.virtual)===!1&&(null==n?void 0:null===(S=n.upgrade_options)||void 0===S?void 0:S.length)?this.paymentRedirect(n.upgrade_options):(null==u?void 0:null===(j=u.subscriptions)||void 0===j?void 0:j.length)||(null==n?void 0:null===(C=n.upgrade_options)||void 0===C?void 0:C.length)?(null==u?void 0:u.virtual)===!0&&(d&&this.props.playerReset(),f&&((0,_.TV)("fromProductPageWithFreeContent",!0),(0,_.Uy)()),r().push("/auth")):(0,oa.b)({authData:this.props.registration.authData,tariffs:h,playerMovie:this.props.movie.playerMovie,dispatch:this.props.dispatch,onSuccess:()=>{this.paymentRedirect(h)},onVirtualUserCallback:()=>{d&&this.props.playerReset(),r().push("/auth"),d&&this.props.closePlayer(!0)}}),d&&this.props.closePlayer(!0);return}}(0,or.j)({ratingAge:k,dispatch:this.props.dispatch,childProfile:this.props.childProfile,parentalControl:this.props.parentalControl,successCallback:()=>{this.setState({videoTitle:i,selectedItem:s},()=>{var t,i,o,r;this.props.initPlayer({type:"Season",init:!0,index:e});let a={movieUrl:"/web/watch/".concat(b),movieTitle:s.title,isTrailer:!1,movieId:s._id,playback:s.playback_options,similar:this.props.similar,uid:s.uid,rating_age:s.rating_age||k,containsMeta:!!(null===(t=s.restrictions)||void 0===t?void 0:t.find(t=>"ContainsMeta"===t.id))||!!(null===(i=l.restrictions)||void 0===i?void 0:i.find(t=>"ContainsMeta"===t.id)),containsSmoking:!!(null===(o=s.restrictions)||void 0===o?void 0:o.find(t=>"ContainsSmoking"===t.id))||!!(null===(r=l.restrictions)||void 0===r?void 0:r.find(t=>"ContainsSmoking"===t.id)),isSeries:!0,playerSource:n};this.props.isFairplay?this.props.closePlayer(!0,!1,a):this.props.getPlayerData(a)}),this.props.setAutoTrailer(!1)}})},this.initSeasonPlayer=async(t,e,i,o,s,a,l)=>{let n;let{config:c}=this.props.systemInformation;if(this.checkForBlock(c,o))return;let{playerProp:d}=this.props,{clickHouseData:p}=this.props.systemInformation,{authData:u,tariffs:h,subscriptionType:m}
1=this.props.registration,v=this.props.profile.pendingSubscription,g=this.props.profile.childProfile,{_id:b,alias:k,rating_age:f}=this.props.movieData,x=(null==o?void 0:o.is_free)||(null==o?void 0:o.free_for_authorized),y={...p,action_id:"click",block_type:"season",block_attributes_id:"season-".concat(s),element_type:"product",element_attributes_id:"episode-".concat(o.num),element_attributes_index:t+1,element_attributes_text:o.title,product_id:b,content_id:o.uid,content_type:o._cls,event_time:new Date().getTime()};if(d?y.screen_type="player":y.screen_type,this.props.clickHouseShoot(this.apiUrl,this.apiKey,y),g&&await (0,tm.j)({apiUrl:this.apiUrl,apiKey:this.apiKey})){this.props.toggleSwitchToAdultProfile({visible:!0});return}if(i||o.unavailable_by_geo)return!1;if((null==u?void 0:u.virtual)&&(null==u?void 0:u.current_country_code)==="RU"&&o&&"Episode"===o._cls&&o.free_for_authorized&&(0,_.Uy)(),o.playback_options&&!o.playback_options.includes(".m3u8")&&!o.is_preview){var w,T,S,j,C,B,N;n=await this.fetchStreamOptions(o.playback_o
1ptions);let t=(0,_.G6)((null==u?void 0:u.ab)||[],"Benefits_screen_customization","Test_Benefits_screen_customization")&&!!localStorage.getItem("bgUrl");if(!(0,_.xM)(null==o?void 0:o.subscriptions,m)){(0,_.vB)({contentUpgradeOptions:null==n?void 0:n.upgrade_options,saveBackRoute:!0});return}if(!(null==n?void 0:null===(w=n.playlists)||void 0===w?void 0:w.length)&&!(null==n?void 0:n.devices)){let{show:e,type:i}=(0,th.g5)(u,v);u.partner&&"ttk"===u.partner.name?this.props.toggleTTKPopup(!0):(null==u?void 0:null===(T=u.externals)||void 0===T?void 0:T.length)&&!(null==u?void 0:null===(S=u.subscriptions)||void 0===S?void 0:S.length)?this.paymentRedirect((null==n?void 0:null===(N=n.upgrade_options)||void 0===N?void 0:N.length)?n.upgrade_options:h):e&&!x?t?this.props.toggleSubscriptionOfferPopup({visible:!0,type:i,isContentPage:!0}):this.props.toggleSubscriptionOfferPopup({visible:!0,type:i}):(null==u?void 0:u.virtual)===!1&&(null==n?void 0:null===(j=n.upgrade_options)||void 0===j?void 0:j.length)?this.paymentRedirect(n.upgrade_options):(null==u?void 0:null===(C=u.subscriptions)||void 0===C?void 0:C.length)||(null==n?void 0:null===(B=n.upgrade_options)||void 0===B?void 0:B.length)?(null==u?void 0:u.virtual)===!0&&(d&&this.props.playerReset(),x&&((0,_.TV)("fromProductPageWithFreeContent",!0),(0,_.Uy)()),r().push("/auth")):(0,oa.b)({authData:this.props.registration.authData,tariffs:h,playerMovie:this.props.movie.playerMovie,dispatch:this.props.dispatch,onSuccess:()=>{this.paymentRedirect(h)},onVirtualUserCallback:()=>{d&&this.props.playerReset(),r().push("/auth"),d&&this.props.closePlayer(!0)}}),d&&this.props.closePlayer(!0);return}}(0,or.j)({ratingAge:f,dispatch:this.props.dispatch,childProfile:this.props.profile.childProfile,parentalControl:this.props.parentalControl,successCallback:()=>{var i;this.setState({videoTitle:e,selectedItem:o},()=>{var e,i,s,r;this.props.initPlayer({type:"Season",init:!0,index:t});let c={movieUrl:"/web/watch/".concat(k),movieTitle:o.title,isTrailer:!1,movieId:o._id,playback:o.playback_o
1ptions,currentEpisode:a,uid:o.uid,rating_age:o.rating_age||f,containsMeta:!!(null===(e=o.restrictions)||void 0===e?void 0:e.find(t=>"ContainsMeta"===t.id))||!!(null===(i=l.restrictions)||void 0===i?void 0:i.find(t=>"ContainsMeta"===t.id)),isSeries:!0,containsSmoking:!!(null===(s=o.restrictions)||void 0===s?void 0:s.find(t=>"ContainsSmoking"===t.id))||!!(null===(r=l.restrictions)||void 0===r?void 0:r.find(t=>"ContainsSmoking"===t.id)),playerSource:n};this.props.isFairplay?this.props.closePlayer(!0,!1,c):this.props.getPlayerData(c)}),a&&(null===(i=this.props)||void 0===i?void 0:i.onClickCurrentEpisode)&&this.props.onClickCurrentEpisode()}})},this.preparedSeasonsFunc=t=>{if(t)return(null==t?void 0:t.sort((t,e)=>t.num>e.num?1:e.num>t.num?-1:0)).map(t=>({title:(null==t?void 0:t.subtitle)||(null==t?void 0:t.title)||"".concat(null==t?void 0:t.num," Ñезон"),alias:(null==t?void 0:t.alias)||"season-".concat(t.num),num:t.num}))},this.handleCategoryClick=(t,e)=>{let{movieData:i,page:o,intersectionObserverOff:s}=this.props,{selectedSeasonIndex:a}=this.state,l=t.num===a,n="/watch/".concat(i.alias,"/season-").concat(t.num);l&&"seasons"===o||(s&&s(),r().push(n,void 0,{scroll:!1}),this.seasonCategoryClickHandler(t,e),this.handleSeasonSelected(!0))},this.handleSeasonSelected=t=>{this.setState({clickSeasonSelected:t})}
1,this.getSelectedSeasonUid=()=>{var t;let{selectedSeasonIndex:e}=this.state,{items:i}=this.props.movieData;return null===(t=i[e-1])||void 0===t?void 0:t.uid},this.handleAllSeriesButtonClick=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return i=>{let{currentSeason:o,selectedSeasonIndex:s}=e.state,{_cls:r,alias:a,uid:l}=e.props.movieData,{clickHouseData:n}=e.props.systemInformation,c={...n,action_id:"click",block_type:"season",block_attributes_id:"season-".concat(s),product_id:l,content_id:e.getSelectedSeasonUid(),content_type:r,element_type:"button",element_attributes_id:i?"all_episodes":"show_less",element_attributes_text:i?"ÐÑе ÑеÑии":"СвеÑнÑÑÑ",event_time:new Date().getTime()};e.props.clickHouseShoot(e.apiUrl,e.apiKey,c),e.setState({isAllSeriesActive:i},()=>{if(!i&&t){let t=document.getElementById("main_header").offsetHeight;window.scrollTo({top:e.seriesRef.current.offsetTop-t})}})}},this.fetchProfileProgress=function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{authData:o}=e.props.registration;o&&(null==o?void 0:o.virtual)===!1&&fetch("".concat(e.apiUrl).concat(n.PI.profileProgress).concat(o.profile_id,"/").concat(t).concat(e.apiKey,"&last=").concat(i),{credentials:"include",method:"GET"}).then(t=>{t.status<400&&t.json().then(t=>{var o,s,r;i?e.props.fetchedProfileLastProgress((null==t?void 0:null===(r=t.data)||void 0===r?void 0:null===(s=r.items)||void 0===s?void 0:s[0])||null):e.props.fetchedProfileProgress(null==t?void 0:t.data),e.props.fetchedProfileProgressId(null==t?void 0:null===(o=t.data)||void 0===o?void 0:o.product_id)})})},this.checkForBlock=(t,e)=>{var i,o;let{authData:s}=this.props.registration;if((null==t?void 0:null===(i=t.blocked_content_tv)||void 0===i?void 0:i.length)&&(null==s?void 0:null===(o=s.subscriptions)||void 0===o?void 0:o.length)){let i=null==t?void 0:t.blocked_content_tv.find(t=>t.item===e._id);if(i)return this.props.toggleBlockedContentPopup({visible:!0,id:i.item,date:i.date}),!0}return!1}}}let rS=(0,l.Ng)(t=>({registration:t.registration,systemInformation:t.systemInformation,profile:t.profile,player:t.player,movie:t.movie,parentalControl:t.parentalControl}),t=>({dispatch:t,...(0,os.zH)({initPlayer:m.kI,clickHouseShoot:m.Y3,getPlayerData:O.o2,setAutoTrailer:F.jG,toggleDevicesPopup:v.QQ,toggleDeletedDevicePopup:v.YO,toggleTTKPopup:v.QF,toggleSubscriptionOfferPopup:v.gb,fetchedTariffs:tG.ZI,fetchedProfileProgress:F.ay,fetchedProfileLastProgress:F.eY,fetchedProfileProgressId:F.Zw,pushStackAddItem:tt.nD,toggleSwitchToAdultProfile:v.bL,toggleBlockedContentPopup:v.uH},t)}))(rT);var rj=i(25091);i(15945);let rC={genres:2,countries:2},rB={HORIZONTAL:"/static/images/V2/playlist/default_playlist_placeholder_horizontal.svg",VERTICAL:"/static/images/V2/playlist/default_playlist_placeholder_vertical.svg"};var rN=i(6161),rP=i.n(rN);let rI={toggleVisibleNoAuthFavoritesPopup:v.t0,profileFavorites:F.Jb,toggleAnnouncePremierPopup:v.YF},rD=(0,l.Ng)(t=>({systemInformation:t.systemInformation,registration:t.registration,toggle:t.toggle,profile:t.profile}),rI)(function(t){let{is_preview:e,movieData:i,nojs:s,systemInformation:c,registration:_,profile:d,profileFavorites:p}=t,u=(0,Q.A)(),h=(0,Z.A)(),g=(0,l.wA)(),b=(0,X.A)(),{locale:k,documentClientWidth:f}=c,{authData:x}=_,[y,w]=(0,a.useState)(!0),T=async(t,e)=>{let i="".concat(u).concat(n.PI.favorites).concat(x.profile_id).concat(h);try{(await fetch(i,{credentials:"include",method:e?"DELETE":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_id:t})})).status<400&&p(x.profile_id,u,h,k)}catch(t){console.error(t)}},S=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;b({action_id:t,screen_type:"/"===r().pathname?"main":"product",screen_attributes_id:r().asPath.replace("/watch/","")||"main",block_type:"popup",block_attributes_id:e,..."click"===t&&{element_type:"button",element_attributes_id:"cross"}})},j=t=>{let o=sessionStorage.getItem("announcePremierPopupShown");t?(g((0,tt.nD)({text:"<span>УбÑали из Ñаздела \xabÐоÑ\xbb</span>",onCrossClickCallback:()=>S("click","notification_success_remove_from_favorites"),withProgressBar:!0,closeIn:2e3,variant:"addedToFavorites"})),S("popupview","notification_success_remove_from_favorites")):!o&&e?g((0,v.YF)(!0,null==i?void 0:i.uid)):(g((0,tt.nD)({text:"<span>Ðобавили в \xabÐоÑ\xbb</span>",onCrossClickCallback:()=>S("click","notification_success_add_to_favorites"),withProgressBar:!0,closeIn:2e3,variant:"addedToFavorites"})),S("popupview","notification_success_add_to_favorites"))},C=t=>{let{clickHouseData:e}=c,{_id:o,_cls:s,uid:r,background:a,logotype:l,badges:n}=i,{authData:d}=_;if((null==d?void 0:d.virtual)===!1){let i={...e,action_id:"click",action_result:t?"remove":"add",block_type:"block",block_attributes_id:"top",content_id:r,product_id:r,action_attributes_str:r,content_type:s,element_type:"button",element_attributes_id:t?"delete_favorites":"add_favorites",event_time:new Date().getTime()};g((0,m.Y3)(u,h,i)),T(r,t),j(t)}else g((0,v.t0)({visible:!0,uid:r,background:a.image_15x,logotype:l.image_15x,badges:n}))},B=t=>{if(Array.isArray(null==d?void 0:d.favorites)){let e=null==d?void 0:d.favorites.map(t=>t._id);return null==e?void 0:e.includes(t)}return!1};return(0,a.useEffect)(()=>{"loaded"===d.favoritesStatus&&w(!1)},[d]),!s&y?(0,o.jsx)("div",{className:rP()["TopBlock__small-buttons"],children:(0,o.jsx)(rj.A,{})}):e?f>1024&&(0,o.jsx)("div",{className:rP()["TopBlock__favorites-big"],onClick:()=>{C(B(i._id))},"data-testid":"topblock_favorites",children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("img",{src:"/static/images/icons/favorite".concat(B(i._id)?"_active":"",".svg"),alt:"favorites"}),(0,o.jsx)("span",{children:"ÐÑÐ´Ñ ÑмоÑÑеÑÑ"})]})}):(0,o.jsx)("div",{className:rP()["TopBlock__small-buttons"],onClick:()=>{C(B(i._id))},"data-testid":"topblock_favorites",children:(0,o.jsx)("img",{src:"/static/images/icons/favorite".concat(B(i._id)?"_active":"",".svg"),alt:"favorites"})})}),rA={toggleVisibleNoAuthFavoritesPopup:v.t0,profileFavorites:F.Jb},rE=(0,s.withRouter)((0,l.Ng)(t=>({systemInformation:t.systemInformation,registration:t.registration,toggle:t.toggle,profile:t.profile,movie:t.movie}),rA)(t=>{let{systemInformation:e,movie:i,toRightShareBlock:s,router:r}=t,[l,n]=(0,a.useState)(!1),[c,_]=(0,a.useState)(!1),d=(0,X.A)(),p=(0,a.useRef)(null),u=(0,a.useRef)(null),h=(0,a.useRef)(null),{host:m}=e,{movie:v}=i,g=t=>{n(t=>!t),k(t)},b=t=>{(null==t?void 0:t.target)!==(null==h?void 0:h.current)&&(null==t?void 0:t.target)!==(null==u?void 0:u.current)&&(null==p?void 0:p.current)&&n(!1)},k=t=>{var e,o,s;let{query:a}=r,l=null===(e=a.params)||void 0===e?void 0:e[0],n=null===(o=a.params)||void 0===o?void 0:o[1],c=null===(s=a.params)||void 0===s?void 0:s[2];
1d({action_id:"click",screen_type:"product",screen_attributes_id:"/".concat(l).concat(n?"/".concat(n):"").concat(c?"/".concat(c):""),product_id:i.movie.uid,content_id:(()=>{var t,e;if(!i.movie.items)return i.movie.uid;if(isNaN(n)){let e=null==n?void 0:n.split("-")[1],o=null===(t=i.movie)||void 0===t?void 0:t.items[e-1];return(null==o?void 0:o.uid)||null}{let t=null;return null===(e=i.movie)||void 0===e||e.items.map(e=>{var i;let o=(null===(i=e.items)||void 0===i?void 0:i.length)&&(null==e?void 0:e.items.find(t=>t.start_id==n));o&&(t=(null==o?void 0:o.uid)||null)}),t}})(),content_type:i.movie._cls,block_type:"block",block_attributes_id:"top",element_type:"button",element_attributes_id:t})};return(0,a.useEffect)(()=>(_("".concat(window.location.origin).concat(window.location.pathname)),document.addEventListener("click",t=>b(t)),document.removeEventListener("click",()=>b())),[]),(0,o.jsxs)("div",{style:{position:"relative"},className:rP()["share-button-wrap"],children:[(0,o.jsx)("div",{ref:u,className:rP()["TopBlock__small-buttons"],onClick:()=>g("share"),children:(0,o.jsx)("img",{ref:h,src:"/static/images/product/share.svg",alt:"share"})}),l&&(0,o.jsxs)("div",{ref:p,className:z()({[rP()["TopBlock__share-block"]]:!0,[rP()["TopBlock__share-block-right"]]:s}),children:[(0,o.jsxs)(eR.rx,{onClick:()=>k("share_vk"),url:c||m,className:rP()["TopBlock__share-block__btn"],children:[(0,o.jsx)("img",{src:"/static/images/product/vk.svg",alt:"vk"}),(0,o.jsx)("span",{children:"ÐÐонÑакÑе"}),(0,o.jsx)("div",{cn:rP()["TopBlock__share-block__btn__line"]})]}),(0,o.jsxs)(eR.VI,{onClick:()=>k("share_tg"),url:c||m,className:rP()["TopBlock__share-block__btn"],children:[(0,o.jsx)("img",{src:"/static/images/product/telegram.svg",alt:"tg"}),(0,o.jsx)("span",{children:"Telegram"}),(0,o.jsx)("div",{cn:rP()["TopBlock__share-block__btn__line"]})]}),(0,o.jsxs)(eR.AC,{onClick:()=>k("share_ok"),url:c||m,className:rP()["TopBlock__share-block__btn"],children:[(0,o.jsx)("img",{src:"/static/images/product/ok.svg",alt:"ok"}),(0,o.jsx)("span",{children:"ÐдноклаÑÑники"})]})]})]})})),rR=t=>{let{text:e}=t;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ti(),{loader:_.R2,src:"/static/images/movie/play.svg",width:16,height:18,alt:"play"}),(0,o.jsx)("span",{children:e})]})},rL=t=>{let{className:e,playButtonText:i,trailerButtonText:s,showPlayIcon:r=!0,hidePlayButton:l=!1,hideTrailerButton:n=!1,movieData:c,hasShowProgressButton:_,isLoading:d,nojs:p,buttonsLoadedFunc:u,onTrailerClick:h,onPlayClick:m,onPlayClickFreeContent:v,forFreeContentBtn:g,btnTextFreeContentFlow:b}=t,k=(0,tY.A)(),f=g&&(null==k?void 0:k.width)>1024,[x,y]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{(void 0===_||null!==_)&&u&&u()},[_]),(0,a.useEffect)(()=>{let t=!!i;r&&!r||t&&!i?y(!1):y(!0)},[r,i]),(0,o.jsxs)("div",{className:z()(rP()["TopBlock__buttons-wrap"],{[rP()["TopBlock__buttons-wrap-column"]]:f}),children:[(null==k?void 0:k.width)>1024&&(d||!x?(0,o.jsx)("div",{className:z()(rP()["TopBlock__button-spinner"],e),children:(0,o.jsx)(rj.A,{className:rP().spinner})}):(0,o.jsx)("div",{className:z()(rP()["TopBlock__button-play"],{[rP().invisible]:l},{[rP().fullWidth]:f},e),onClick:m,"data-testid":"topblock_play",children:x&&(0,o.jsx)(rR,{text:i})})),(0,o.jsxs)("div",{className:rP()["TopBlock__buttons-wrap-right"],children:[f&&(0,o.jsxs)("div",{className:rP()["TopBlock__play-trailer"],onClick:v,children:[(0,o.jsx)("img",{src:"/static/images/product/play_outlined.svg",alt:"play"}),(0,o.jsx)("span",{children:b})]}),!n&&(0,o.jsxs)("div",{className:z()(rP()["TopBlock__play-trailer"],{[rP()["TopBlock__play-trailer-sm"]]:f}),onClick:h,"data-testid":"topblock_trailer",children:[(0,o.jsx)("img",{src:"/static/images/product/kino.svg",alt:"kino"}),!f&&(0,o.jsx)("span",{children:s})]}),(0,o.jsx)(rD,{isMobileBig:n,movieData:c,nojs:p}),(null==k?void 0:k.width)>767&&(0,o.jsx)(rE,{})]})]})};class rM extends a.Component{componentDidMount(){let{subscribeForProduct:t}=this.props.pushData;t&&r().events.on("routeChangeComplete",()=>{this.props.subscribeForProduct(!1)}),r().events.on("beforeHistoryChange",()=>{this.setState({subscribeAnimate:!1})}),this.setState({browserWidth:window.innerWidth}),this.props.setTopBlockFunc(this.reportAppearance)}componentDidUpdate(t,e,i){var o,s,r,a,l,n,d,p;let{authData:u}=this.props.registration,{authData:h}=t.registration,{hash:m}=window.location,{childProfile:v,lastProgress:g,lastProgressId:b,autoTrailer:k,pendingSubscriptionLoadingStatus:f,favoritesStatus:x}=this.props.profile,{alias:y}=this.props.movieData,{asPath:w}=this.props.router,{asPath:T}=t.router,{_id:S}=this.props.movieData,{_id:j,alias:C}=t.movieData,{forcedFavoriteAlias:B}=this.props.profile,{forcedFavoriteAlias:N}=t.profile,{isAuthAndProfileDataLoading:P}=this.state,{windowInnerWidth:I}=t.systemInformation,{windowInnerWidth:D,config:A}=this.props.systemInformation;if(w==="/watch/".concat(y)||w.includes("season"),u&&(S!==j||!this.loadBanner)&&(this.loadBanner=!0,this.getBanner()),u&&!(null==u?void 0:u.virtual)&&(0,_.Ri)("fromProductPageWithFreeContent")&&!this.checkFreeContentFlow&&(this.checkFreeContentFlow=!0,(0,_.Yj)("fromProductPageWithFreeContent"),(0,or.j)({ratingAge:this.props.movieData.rating_age,childProfile:v,parentalControl:this.props.parentalControl,dispatch:this.props.dispatch,successCallback:async()=>{}})),(S!==j||w!==T&&(w!=="/watch/".concat(y)||!w.includes("season"))&&this.autoTrailer)&&(this.autoTrailer=!1,this.autoTrailerShown=!1,this.setState({isOnboarding:!1,isContentVisible:!0,isMetaShifted:!0,isMuted:!0,launch:!0}),this.props.setAutoTrailer(!0)),k||this.autoTrailerShown||(this.autoTrailerShown=!0,this.handleTrailerEnded()),D&&I&&D!==I&&this.resizeHandler(),!this.loadAuthData&&u&&((null==u?void 0:u.virtual)===!1&&f===c.Gd.LOADED||(null==u?void 0:u.virtual)===!0)&&"loaded"===x&&(this.loadAuthData=!0,this.setState({isAuthAndProfileDataLoading:!1})),this.loadAuthData&&B&&B===y&&(!this.checkedForcedFavorites||C!==y||B!==N)&&(this.checkedForcedFavorites=!0,this.favoritesClickHandler(!1,!0)),u&&(null==u?void 0:u.virtual)&&"#playproduct"===m&&(0,_.TV)("returnToProduct",window.location.pathname),!u||(null==u?void 0:u.profile_for_child)||"#playproduct"!==m||this.loadProduct||(this.loadProduct=!0,this.handleWorldCupPlayClick()),!u||(null==u?void 0:u.profile_for_child)||"#playtrailer"!==m||this.loadTrailer||(this.loadTrailer=!0,this.trailerClickHandler()),this.props.movieData&&g&&b&&!this.showButtonChecked&&!P){let{_cls:t,items:e,uid:i}=this.props.movieData,o=(null==e?void 0:e.length)&&(null===(d=e[0])||void 0===d?void 0:d.items.length)?null===(p=e[0])||void 0===p?void 0:p.items[0]:{};this.showButtonChecked=!0,b===i?"Product.Series"===t?g?g.content_id!==o.uid||g.content_id===o.uid&&g.position>0?this.setState({showProgressButton:!0,playButtonText:this.playButtonTextMake("СмоÑÑеÑÑ",!0)}):this.setState({showProgressButton:!1,playButtonText:this.playButtonTextMake("СмоÑÑеÑÑ",!1)}):this.setState({showProgressButton:!1}):g?g.position>0?this.setState({showProgressButton:!0,playButtonText:this.playButtonTextMake("СмоÑÑеÑÑ",!0)}):this.setState({showProgressButton:!1,playButtonText:this.playButtonTextMake("СмоÑÑеÑÑ",!1)}):this.setState({showProgressButton:!1}):this.setState({showProgressButton:!1})}if(this.showButtonChecked&&g&&t.profile.lastProgress&&(g.content_id!==t.profile.lastProgress.content_id||g.position!==t.profile.lastProgress.position)&&(this.showButtonChecked=!1),this.showButtonChecked&&(null===(o=this.props.movieData)||void 0===o?void 0:o._id)!==(null===(s=t.movieData)||void 0===s?void 0:s._id)&&(this.showButtonChecked=!1),this.showButtonChecked&&g&&b&&t.profile.lastProgressId&&b!==t.profile.lastProgressId&&(this.showButtonChecked=!1),!this.state.isChild&&(null==u?void 0:u.profile_for_child)&&this.setState({isChild:!0}),u&&(null===(a=window)||void 0===a?void 0:null===(r=a.history)||void 0===r?void 0:r.length)>1&&!this.isReturnable&&(this.isReturnable=!0,this.setState({canReturn:!0})),u&&!this.loadTopBlockFeeHeight){this.loadTopBlockFeeHeight=!0;let t=D<=c.af&&this.topBlockFeeRef.current?this.topBlockFeeRef.current.getBoundingClientRect().height:0;document.documentElement.style.setProperty("--topblock-fee-height","".concat(t,"px"))}(null==u?void 0:null===(l=u.subscriptions)||void 0===l?void 0:l.length)&&(null==A?void 0:null===(n=A.blocked_content_tv)||void 0===n?void 0:n.length)&&!this.visibleBlockContentText&&(this.visibleBlockContentText=!0,this.setState({visibleBlockContentText:this.checkBlockedContentDate(null==A?void 0:A.blocked_content_tv)}))}componentWillUnmount(){let{authData:t}=this.props.registration,e=(0,_.G6)((null==t?void 0:t.ab)||[],"Benefits_screen_customization","Test_Benefits_screen_customization");this.autoTrailer=!1,this.autoTrailerShown=!1,this.isReturnable=!1,this.props.setOnboardingTrailer(!1),[this.contentVisibleTimeout,this.contentHideTimeout,this.onboardingVisibleTimeout,this.onboardingHideTimeout].map(t=>clearTimeout(t)),this.props.setAutoTrailer(!0),document.documentElement.style.removeProperty("--topblock-fee-height"),e&&localStorage.removeItem("bgUrl"),this.props.toggleForceOpenSubscriptionOfferPopup(!1)}previewClickHandler(t){if(this.state.loading&&this.state.subscribeAnimate)return;let{page:e}=this.props,{clickHouseData:i}=this.props.systemInformation,{authData:o}=this.props.registration,{_id:s,uid:r}=this.props.movieData,a={...i,screen_attributes_ab_tag:o&&o.tags?o.tags:"",action_id:"click",element_type:"button",element_attributes_id:"notify",element_attributes_text:"СообÑиÑÑ Ð¾ поÑвлении",product_id:s,content_id:r,event_time:new Date().getTime(),event_version:"1.0",block_type:"block",block_attributes_id:e?"collapsed_top":"top"};this.props.clickHouseShoot(this.apiUrl,this.apiKey,a),this.reportAppearance(t)}render(){var t,e;let{title:i,alias:s,background:r,vertical:l,logotype:n,is_preview:d,is_disabled:p,genres:u,_cls:h,quote:m,items:v,rating_age:g,duration:b,for_kids:k,badges:f,unavailable_by_geo:x,origin_countries:w}=this.props.movieData,{page:S,bannerData:j,isNewEpisodePage:C,isInternalPageOn:B,movieData:N,noJs:P}=this.props,{childProfile:I,currentProfile:D,profileList:A}=this.props.profile,{cookieAgreement:E,config:R,deviceData:L,renderMobile:M}=this.props.systemInformation,{authData:U}=this.props.registration,{posterBannerData:H,browserWidth:O,subscribeAnimate:F,isOnboarding:W,canReturn:K,mlk_app:V,isAuthAndProfileDataLoading:Y,visibleBlockContentText:G}=this.state,{asPath:J}=this.props.router,q=Math.ceil(b/6e4),Z=U&&!V,Q=(null==f?void 0:f.filter(t=>"logo"===t.type))||null,X=(null==f?void 0:f.find(t=>"start"===t.type))||null,$=null==f?void 0:f.filter(t=>"badge"===t.type&&"single"===t.structure&&t.under_logo_position),tt=null==f?void 0:f.filter(t=>"badge"===t.type&&"double"===t.structure&&t.under_logo_position),te=U&&(null==U?void 0:U.virtual)!==!0?"":" ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½",to=(null==U?void 0:U.virtual)===!1&&U.subscriptions&&U.subscriptions.length,ts=y(N).length>
10,tr=ts&&!d&&!p,ta=tr&&!P,tl=[{link:"".concat(D&&D.child?"":"Product.Movie"===h?"/movies":"/series"),title:"".concat("Movie"===h.replace("Product.","")?"ФилÑмÑ":"СеÑиалÑ"," онлайн"),name:h&&h.length>0?"".concat("Movie"===h.replace("Product.","")?"ФилÑмÑ":"СеÑиалÑ"):"ÐаÑегоÑÐ¸Ñ Ð½Ðµ Ñказана"},{link:u&&u.length>0?I&&!["РазвиÑие","РазвлеÑениÑ","ÐÑзÑка"].includes(u[0].title)?"":this.getLinkForGenres(u[0]):"/genres",title:"".concat("Movie"===h.replace("Product.","")?"ФилÑмÑ":"СеÑиалÑ"," ").concat(u&&u.length>0?u[0].title:"ÐÐ°Ð½Ñ Ð½Ðµ Ñказан"," онлайн"),name:u&&u.length>0?u[0].title:"ÐÐ°Ð½Ñ Ð½Ðµ Ñказан"},{link:S?"/watch/".concat(s):null,title:"".concat(i).concat(S?"":T(U)),name:"".concat(i).concat(S?"":T(U))}];tl=S?tl.concat(this.breadcrumbsPage()):tl;let tn=(null==r?void 0:r.image_15x)?this.handleBackgroundSource("".concat(this.apiUrl).concat(null==r?void 0:r.image_15x)):rB.HORIZONTAL,tc=(null==l?void 0:l.image_15x)&&(M||"mobile_web"===L)?this.handleVerticalSource("".concat(this.apiUrl).concat(null==l?void 0:l.image_15x)):rB.VERTICAL,t_=(null==r?void 0:r.image_15x)&&(M||"mobile_web"===L)?this.handleBackgroundBlurSource("".concat(this.apiUrl).concat(null==r?void 0:r.image_1x)):rB.HORIZONTAL,td=O?O>767:!M,tp=J?null===(t=J.slice(6))||void 0===t?void 0:t.slice(1):"",tu=!B&&(0,oc.T)({poster:H,windowInnerWidth:O,profileList:A}),th=O<=1024&&tu&&(!S||"seasons"===S||C);return(0,o.jsxs)(a.Fragment,{children:[j&&"topblock-top"===j.position&&(0,o.jsx)(sa,{bannerData:j,movieData:this.props.movieData}),(0,o.jsxs)("div",{className:z()({[rP().TopBlock_wrapper_redesign]:!S||"seasons"===S||C,[rP().small]:S&&"seasons"!==S&&!C&&!B,[rP()["TopBlock-wrapper-small_redesign"]]:S&&"seasons"!==S&&!C&&B,[rP()["geo-small"]]:S&&"seasons"!==S&&!C&&x}),children:[(!S||"seasons"===S||C)&&!!O&&O<768&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:z()(rP().TopBlock__share),children:(0,o.jsx)(rE,{})}),K&&(0,o.jsx)("div",{className:z()(rP().TopBlock__back),onClick:()=>this.handleReturn(),children:(0,o.jsx)(ti(),{loader:_.R2,src:"/static/images/product/back.svg",alt:"back",width:24,height:24})})]}),(0,o.jsxs)("div",{className:z()(rP().TopBlock,{[rP().small]:S&&"seasons"!==S&&!C,[rP()["geo-small"]]:S&&"seasons"!==S&&!B&&x}),children:[(0,o.jsxs)(o.Fragment,{children:[(!S||"seasons"===S||C)&&ta&&!x&&!(D&&D.child&&!k)&&(0,o.jsx)("div",{className:rP().TopBlock__play,children:(0,o.jsx)("img",{src:"/static/images/product/button-play.svg",onClick:this.handleWorldCupPlayClick,alt:"play"})}),B?null:r&&r.image_15x&&(!S||"seasons"===S||"episode"===S)&&td?(0,o.jsx)("div",{className:z()(rP().TopBlock__background),children:(0,o.jsx)(ti(),{priority:!0,fetchPriority:"high",src:tn,loader:_.R2,width:M?430:1169,height:M?242:676,alt:"".concat(i,"_bg")},tn)}):d?null:(0,o.jsxs)("div",{className:z()(rP().TopBlock__background,rP().TopBlock__background__no_poster),style:{backgroundImage:"url('/static/images/product/no-background.webp')"},children:[(0,o.jsx)("div",{className:rP().TopBlock__shadow}),(0,o.jsx)("div",{className:rP()["TopBlock__shadow-bottom"]})]})]}),B?(0,o.jsxs)("div",{className:rP().TopBlock__redesign_exp,children:[(0,o.jsx)(tA(),{prefetch:!1,href:"/watch/".concat(s),children:(0,o.jsxs)("button",{className:rP().TopBlock__redesign_exp__backButton,"aria-label":"exp__backButton",children:[(0,o.jsx)("img",{src:"/static/images/product/arrow-medium-button.svg",alt:"arrow"}),(0,o.jsx)("span",{children:"Product.Series"===h?"Ð ÑеÑиалÑ":"Ð ÑилÑмÑ"})]})}),(0,o.jsx)("div",{className:rP().TopBlock__redesign_exp__breadcrumbsWrap,children:(0,o.jsx)(on.A,{breadcrumbs:tl,breadcrumbsClass:"breadcrumbs_movie__internal_redisign"})}),(0,o.jsx)("span",{className:rP().TopBlock__redesign_exp__rating,children:this.getAgeRating()})]}):(0,o.jsx)(on.A,{breadcrumbs:tl,breadcrumbsClass:"breadcrumbs_movie"}),S&&"seasons"!==S&&!C&&!B&&(0,o.jsx)("div",{className:rP()["TopBlock__rating-age"],children:this.getAgeRating()}),!B&&(0,o.jsxs)("div",{className:z()(rP()["left-wrapper"],{[rP().onboarding]:W,[rP().registered]:to,[rP().bottom]:S&&"seasons"!==S&&!C}),onMouseOver:t=>this.setContentVisible(t,!0),onMouseOut:t=>this.setContentVisible(t,!1),onFocus:t=>this.setContentVisible(t,!0),onBlur:t=>this.setContentVisible(t,!1),children:[O<768&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ti(),{priority:!0,src:t_,className:rP().TopBlock__blur,loader:_.R2,width:384,height:242,alt:"".concat(i,"_blur")}),(0,o.jsx)(ti(),{loading:"eager",src:tc,className:rP().TopBlock__poster,loader:_.R2,width:360,height:516,alt:"".concat(i,"_bg")},tc)]}),(0,o.jsxs)("div",{className:z()(rP().TopBlock__description),children:[(null==Q?void 0:Q.length)>
10&&!(S&&"seasons"!==S&&!C&&this.showFirstBadgeHandle(d,n))?Q.map(t=>(0,o.jsx)("div",{className:rP().TopBlock__logotype_badge,children:(0,o.jsx)(ti(),{loader:_.R2,src:"".concat(this.apiUrl).concat((0,_.bZ)(t.image_1x)),alt:"badge",width:88,height:18})},t.id)):null,n&&n.image_15x&&(!S||"seasons"===S||C)&&O>767?(0,o.jsx)("div",{className:rP().TopBlock__logotype_wrapper,children:(0,o.jsx)(ti(),{loader:_.R2,className:rP().TopBlock__logotype,src:"".concat(this.apiUrl).concat(n.image_15x.replace("quality(70)","format(webp)")),alt:"logo",width:256,height:124},n.image_15x)}):!d||(null==n?void 0:n.image_15x)||S&&"seasons"!==S&&!C?O&&O<768?(0,o.jsx)("p",{className:rP().TopBlock__title,children:i}):null:(0,o.jsxs)("h1",{className:rP().TopBlock__noLogotype_title,children:[i,te]}),(X||(null==$?void 0:$.length)||(null==tt?void 0:tt.length))&&!(S&&"seasons"!==S&&!C)?(0,o.jsxs)("div",{className:z()(rP().TopBlock__start_badge,{[rP().TopBlock__start_badge__left]:!(null==n?void 0:n.image_15x)}),children:[X?(0,o.jsx)(ti(),{loader:_.R2,src:"".concat(this.apiUrl).concat((0,_.bZ)(X.image_1x)),alt:"badgeStart",width:M?52:78,height:M?16:24}):null,(null==$?void 0:$.length)?$.map(t=>(0,o.jsx)(iq.Ex,{className:rP().TopBlock__start_badge_single,text:t.text,textColor:t.text_color,bgColor:t.background_color},t.id)):null,(null==tt?void 0:tt.length)>0&&(!(null==$?void 0:$.length)||$.length>0&&"desktop_web"===L)?tt.map(t=>(0,o.jsx)(iq.L$,{className:rP().TopBlock__start_badge_double,text:t.text,textRight:t.text_right,textColor:t.text_color,textColorRight:t.text_color_right,bgColor:t.background_color,bgColorRight:t.background_color_right},t.id)):null]}):null,(!S||"seasons"===S||C)&&m&&m.length>0&&(0,o.jsx)("div",{ref:this.descriptionRef,className:z()(rP().TopBlock__info,rP()["not-show-mobile"]),children:(0,o.jsxs)("span",{children:[" ",(0,c.IN)(140,m)," "]})})]}),(!S||"seasons"===S||C)&&(0,o.jsx)("div",{ref:this.descriptionShortRef,className:rP()["TopBlock__info-short"],children:(0,o.jsxs)("span",{children:[this.getSeasonsYear()?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:rP()["TopBlock__info-short-value"],content:"".concat(this.getSeasonsYear()),children:(0,o.jsx)(tA(),{prefetch:!1,href:"".concat(this.getLinkForYear()),onClick:()=>{var t;return this.badgeClickHandler(null!==(t=this.getSeasonsYear())&&void 0!==t?t:"")},children:null!==(e=this.getSeasonsYear())&&void 0!==e?e:""})}),(0,o.jsx)(ti(),{loader:_.R2,className:rP()["TopBlock__info-short-circle"],src:"/static/images/product/circle.svg",alt:"circle",width:3,height:4})]}):null,(0,o.jsx)("span",{className:rP()["TopBlock__info-short-value"],children:"Product.Movie"===h?0===b?null:(0,o.jsxs)(o.Fragment,{children:[q," мин",(0,o.jsx)(ti(),{loader:_.R2,className:rP()["TopBlock__info-short-circle"],src:"/static/images/product/circle.svg",alt:"circle",width:3,height:4})]}):null}),(0,o.jsx)("span",{className:rP()["TopBlock__info-short-value"],children:g&&null!==g?"".concat(g):"0+"}),(null==u?void 0:u.length)||(null==w?void 0:w.length)?(0,o.jsxs)("div",{className:rP()["TopBlock__info-short-break"],children:[0!==O&&O<768&&(0,o.jsx)(ti(),{loader:_.R2,className:rP()["TopBlock__info-short-circle"],src:"/static/images/product/circle.svg",alt:"circle",width:3,height:4}),(null==u?void 0:u.length)?(0,o.jsxs)(o.Fragment,{children:[u.slice(0,rC.genres).map((t,e,i)=>(0,o.jsxs)("span",{className:rP()["TopBlock__info-short-value"],children:[(0,o.jsx)(tA(),{prefetch:!1,href:"".concat(this.getLinkForGenres(t)),onClick:()=>this.badgeClickHandler(t.title),children:t.title}),i.length-1===e?"":(0,o.jsx)(o.Fragment,{children:",\xa0"})]},e)),(null==w?void 0:w.length)?(0,o.jsx)(ti(),{loader:_.R2,className:rP()["TopBlock__info-short-circle"],src:"/static/images/product/circle.svg",alt:"circle",width:3,height:4}):null]}):null,(null==w?void 0:w.length)?w.slice(0,rC.countries).map((t,e,i)=>(0,o.jsxs)("span",{className:rP()["TopBlock__info-short-value"],children:[(0,o.jsx)(tA(),{prefetch:!1,href:this.getLinkForCountry(t),onClick:()=>this.badgeClickHandler(t.title),children:t.title}),i.length-1===e?"":(0,o.jsx)(o.Fragment,{children:",\xa0"})]},e)):null]}):null]})}),x?(0,o.jsxs)("div",{className:rP().TopBlock__unavailable_by_geo,children:[(0,o.jsx)(of.A,{className:rP().TopBlock__geo_image}),(0,o.jsxs)("div",{className:rP().TopBlock__geo_text,children:[(0,o.jsx)("p",{className:rP().TopBlock__geo_text__title,children:"ÐонÑÐµÐ½Ñ Ð½ÐµÐ´Ð¾ÑÑÑпен в\xa0ваÑей ÑÑÑане"}),(0,o.jsx)("p",{className:rP().TopBlock__geo_text__subtitle,children:"ÐÑли\xa0вклÑÑÑн VPN, оÑклÑÑиÑе его"})]})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:rP().TopBlock__buttons,children:!Y&&(0,o.jsx)(o.Fragment,{children:!P&&(ta?(0,o.jsx)(rL,{playButtonText:"СмоÑÑеÑÑ",trailerButtonText:"ТÑейлеÑ",hideTrailerButton:!0,movieData:this.props.movieData,buttonsLoadedFunc:()=>this.setState({topBlockButtonsLoaded:!0}),isLoading:Y,onPlayClick:this.handleWorldCupPlayClick,onTrailerClick:this.trailerClickHandler}):(0,o.jsxs)("div",{className:z()(rP()["TopBlock__preview-content"],{}),children:[(0,o.jsx)(rD,{is_preview:!1,isMobileBig:!0,movieData:this.props.movieData}),O>767&&(0,o.jsx)(rE,{toRightShareBlock:!0})]}))})}),G&&O>c.xW.TABLET_WIDE?(0,o.jsxs)("div",{className:rP().blocked_content,children:["ÐÐ¾Ð²Ð°Ñ ÑеÑÐ¸Ñ Ñже доÑÑÑпна в пÑиложении START\xa0на\xa0ТÐ. Ðа ÑайÑе Ñ ",this.checkBlockedContentDate(null==R?void 0:R.blocked_content_tv)]}):null,(0,o.jsx)("noscript",{children:ts?(0,o.jsx)("div",{className:"".concat(rP().TopBlock__buttons),children:(0,o.jsx)(rL,{playButtonText:"СмоÑÑеÑÑ",trailerButtonText:"ТÑейлеÑ",showPlayIcon:!0,hideTrailerButton:!0,movieData:this.props.movieData,buttonsLoadedFunc:()=>this.setState({topBlockButtonsLoaded:!0}),onPlayClick:this.handleWorldCupPlayClick,onTrailerClick:this.trailerClickHandler,noJs:!0})}):null})]})]}),O<=1024&&(tr||G)&&(0,o.jsx)("div",{ref:this.topBlockFeeRef,className:z()(rP().fee,{[rP().registered]:to,[rP().cookie]:Z&&!E,[rP().webapp]:!0}),children:(0,o.jsxs)(o.Fragment,{children:[tr?(0,o.jsxs)("div",{className:"".concat(rP()["TopBlock__button-preview"]),children:[!P&&(Y?(0,o.jsx)("div",{className:z()(rP()["TopBlock__button-preview-text"],rP()["TopBlock__button-spinner"]),children:(0,o.jsx)(rj.A,{className:rP().spinner})}):(0,o.jsxs)("div",{className:rP()["TopBlock__button-preview-text"],onClick:this.handleWorldCupPlayClick,children:[(0,o.jsx)("img",{src:"/static/images/movie/play.svg",alt:"play"}),"СмоÑÑеÑÑ"]})),(0,o.jsx)("noscript",{children:ts?(0,o.jsx)("div",{className:rP()["TopBlock__button-preview-text"],children:"СмоÑÑеÑÑ"}):null})]}):null,G?(0,o.jsxs)("div",{className:rP().blocked_content,children:["ÐÐ¾Ð²Ð°Ñ ÑеÑÐ¸Ñ Ñже доÑÑÑпна в пÑиложении",O<c.xW.TABLET?(0,o.jsx)("br",{}):"\xa0","START\xa0на\xa0ТÐ. Ðа ÑайÑе Ñ"," ",this.checkBlockedContentDate(null==R?void 0:R.blocked_content_tv)]}):null]})}),B?null:r&&r.image_15x&&(!S||"seasons"===S||"episode"===S)?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:z()(rP().TopBlock__shadow_full)}),(0,o.jsx)("div",{className:z()(rP().TopBlock__shadow_redesign)}),(0,o.jsx)("div",{className:rP()["TopBlock__shadow-bottom"]})]}):d?null:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:rP().TopBlock__shadow}),(0,o.jsx)("div",{className:rP()["TopBlock__shadow-bottom"]})]})]}),(!S||"seasons"===S||C)&&m&&m.length>0&&!!O&&O<768&&(0,o.jsxs)("article",{className:rP().TopBlock__quote,children:[(0,o.jsx)(ti(),{loader:_.R2,className:rP()["TopBlock__quote-icon"],src:"/static/images/product/mark.svg",alt:"mark",width:24,height:24}),(0,o.jsxs)("span",{children:[" ",(0,c.IN)(140,m)," "]}),(0,o.jsx)(ti(),{loader:_.R2,className:"".concat(rP()["TopBlock__quote-icon"]," ").concat(rP()["TopBlock__quote-icon-right"]),src:"/static/images/product/mark.svg",alt:"mark",width:24,height:24})]})]}),"mobile_web"===L&&th?(0,o.jsx)("div",{style:{marginTop:"20px"}}):"tablet_web"===L&&th?(0,o.jsx)("div",{style:{marginTop:"40px"}}):"desktop_web"===L&&(S||"seasons"===S||"episode"===S)&&(0,o.jsx)("div",{style:{marginTop:"32px"}}),tu&&(0,o.jsx)(oc.A,{poster:H,blockIdx:2,containerClass:rP().TopBlock__banner,screenType:"product",screenAttributesId:tp})]})}constructor(...t){var e;super(...t),e=this,this.state={browserWidth:0,showProgressButton:null,currentProductSubscribe:null,noSubscribe:null,subscribeAnimate:!1,loading:!1,isContentVisible:!0,isMuted:!0,isTrailerShown:!1,isMetaShifted:!0,isOnboarding:!1,launch:!0,isChild:!1,showSkeleton:!0,topBlockButtonsLoaded:null,mlk_msisdn:(0,_.Ri)("mlk_msisdn"),mlk_app:(0,_.Ri)("mlk_app"),posterBannerData:[],canReturn:!1,isAuthAndProfileDataLoading:!0,playButtonText:null,visibleBlockContentText:!1},this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.loadProduct=!1,this.loadTrailer=!1,this.loadAuthData=!1,this.onboardingVisibleTimeout=null,this.onboardingHideTimeout=null,this.contentVisibleTimeout=null,this.contentHideTimeout=null,this.autoTrailer=!1,this.autoTrailerShown=!0,this.loadBanner=!1,this.isReturnable=!1,this.loadTopBlockFeeHeight=!1,this.checkedForcedFavorites=!1,this.checkFreeContentFlow=!1,this.visibleBlockContentText=!1,this.descriptionShortRef
1=a.createRef(),this.descriptionRef=a.createRef(),this.topBlockFeeRef=a.createRef(),this.resizeHandler=()=>{let{innerWidth:t}=window,{browserWidth:e}=this.state;t!==e&&this.setState({browserWidth:t})},this.getBanner=async()=>{var t,e;let{_id:i,uid:o}=this.props.movieData,s=this.props.locale||(null===(e=this.props)||void 0===e?void 0:null===(t=e.systemInformation)||void 0===t?void 0:t.locale)||"ru",{authData:r}=this.props.registration,a="".concat(this.apiUrl).concat(n.PI.postersProduct.replace("<product_id>",o)).concat(this.apiKey,"&for_kids=").concat(null==r?void 0:r.profile_for_child).concat("&locale=".concat(s)).concat("&content_lang=".concat(s),"&device_type=web"),l=await fetch(a,{credentials:"include"});if(l.ok){let t=await l.json();this.setState({posterBannerData:null==t?void 0:t.items[0]})}},this.fetchStreamOptions=async t=>{let{startDeviceId:e}=this.props.systemInformation,{authData:i}=this.props.registration,o="".concat(this.apiUrl).concat(t).concat(this.apiKey,"&device_id=").concat(e,"&auth_token=").concat(i.authentication_token),s=await fetch(o,{method:"GET",credentials:"include"}),a=await s.json();if(s.status<400)return a;if(403===s.status){switch(a.code){case"DEVICE_COUNT_EXCEEDED":return this.props.toggleDevicesPopup(!0),{devices:!0};case"DEVICE_NOT_REGISTERED":this.props.toggleDeletedDevicePopup(!0)}return}fetch("".concat(this.apiUrl).concat(n.PI.authRefresh).concat(this.apiKey),{credentials:"include",method:"POST"}).then(t=>{if(t.status>400){if(401===s.status){let{authData:t}=this.props.registration;t.partner&&"ttk"===t.partner.name?this.props.toggleTTKPopup(!0):(null==t?void 0:t.virtual)===!1?(0,oa.b)({authData:t,tariffs:this.props.registration.tariffs,playerMovie:this.props.movie.playerMovie,dispatch:this.props.dispatch,onSuccess:()=>{this.paymentRedirect(this.props.registration.tariffs)}}):r().push("/auth")}else this.props.pushStackAddItem({text:"<span>ЧÑо-Ñо поÑло не Ñак</span> СкоÑо вÑе поÑиним. ÐопÑобÑйÑе позже",withError:!0,withTitle:!0})}})},this.paymentRedirect=t=>{var e,i,o;let{authData:s}=this.props.registration,{mlk_app:a}=this.state;if((a||(null==s?void 0:null===(e=s.mf_info)||void 0===e?void 0:e.mf_pop_up)&&(null==s?void 0:null===(o=s.mf_info)||void 0===o?void 0:null===(i=o.mf_pop_up)||void 0===i?void 0:i.indexOf("_web"))===-1)&&(null==s?void 0:s.mf_info.is_mf))"to_block"!==s.mf_info.mf_pop_up?r().push("/megafon_connect"):this.props.pushStackAddItem({text:"<span>Ðа ÑÑеÑÑ ÐегаФона не доÑÑаÑоÑно ÑÑедÑÑв</span> ÐополниÑе Ð±Ð°Ð»Ð°Ð½Ñ Ð¸ возвÑаÑайÑеÑÑ",withError:!0,withTitle:!0});else{let e=null;try{e=ga.getAll()[0].get("clientId")}catch(t){}let i=(0,n.fQ)("".concat(this.apiUrl).concat(t.filter(t=>0===t.weight&&t.allow_trial)[0].url).concat(this.apiKey).concat(e?"&ga_id=".concat(e):""));(0,n.BA)({url:i,toPaymentTariffs:!0,callback:()=>{},errorCallback:()=>{this.props.pushStackAddItem({text:"<span>ЧÑо-Ñо поÑло не Ñак</span> СкоÑо вÑе поÑиним. ÐопÑобÑйÑе позже",withError:!0,withTitle:!0})}})}},this.initializePlayer=async()=>{var t,e,i,o,s,a,l,n,c,d,p;let u,h;let{page:m,movieData:v,similar:g,seasonNum:b}=this.props,{childProfile:k,lastProgress:f}=this.props.profile,{authData:x,tariffs:y,subscriptionType:w}=this.props.registration,{clickHouseData:T}=this.props.systemInformation,{devicePopup:S}=this.props.toggle,{hash:j,pathname:C}=window.location,B="Product.Series"===v._cls,N=(0,_.pK)(y),P=(0,_.EE)(null==x?void 0:x.trial_is_available,N),I=!(0,_.xM)(null==v?void 0:v.subscriptions,w),D="".concat(N," ").concat((0,_.jQ)(["денÑ","днÑ","дней"],N));if((0,_.Yj)("isFreeContentFlow"),null==v?void 0:v.unavailable_by_geo){r().replace(C);return}if(B){if(b&&!f)u=null===(s=v.items)||void 0===s?void 0:null===(o=s[b-1])||void 0===o?void 0:null===(i=o.items)||void 0===i?void 0:i[0];else{let t=v.items.flatMap(t=>t.items);u=f?t.find(t=>f.content_id===t.uid):t[0]}}let A=P?"to_try_free":"buy",E=P?"СмоÑÑеÑÑ Ð±ÐµÑплаÑно":"ÐÑоÑмиÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑкÑ";(null==x?void 0:x.virtual)===!0?(A=P?"to_try_free":"buy",E=P?"ÐопÑобоваÑÑ ".concat(D," беÑплаÑно"):"ÐÑоÑмиÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑкÑ"):I?(A="watch_premium",E="СмоÑÑеÑÑ"):(null===(t=x.subscriptions)||void 0===t?void 0:t.length)&&(A=this.getWatched()?"continue_watching":"watch",E="СмоÑÑеÑÑ");let R={...T,screen_attributes_ab_tag:x&&x.tags?x.tags:"",action_id:"click",event_time:new Date().getTime(),event_version:"1.0",block_type:"block",block_attributes_id:m?"collapsed_top":"top",element_type:"button",element_attributes_id:A,element_attributes_text:E,product_id:v._id,c
1ontent_id:u?null==u?void 0:u.uid:v.uid,content_type:v._cls};if(this.props.systemInformation.dataLayer){let t=this.props.systemInformation.dataLayer;t.dataLayer.event="productCardClickPlayEvent",this.props.setDataLayer(t)}if(this.props.clickHouseShoot(this.apiUrl,this.apiKey,R),k&&await (0,tm.j)({apiUrl:this.apiUrl,apiKey:this.apiKey})){this.props.toggleSwitchToAdultProfile({visible:!0});return}let L=u?null==u?void 0:u.playback_options:v.playback_options,M=u?null==u?void 0:u.is_preview:v.is_preview,U=u?null==u?void 0:u.subscriptions:v.subscriptions;if(!L||L.includes(".m3u8")||M)(0,oa.b)({authData:x,tariffs:y,playerMovie:this.props.movie.playerMovie,dispatch:this.props.dispatch,onSuccess:()=>{this.paymentRedirect(y)}});else{if(h=await this.fetchStreamOptions(L),!(0,_.xM)(U,w)){(0,_.vB)({contentUpgradeOptions:null==h?void 0:h.upgrade_options,saveBackRoute:!0});return}if(!(null==h?void 0:null===(a=h.playlists)||void 0===a?void 0:a.length)&&!S){x.partner&&"ttk"===x.partner.name?this.props.toggleTTKPopup(!0):h.devices||(null==x||null===(l=x.externals)||void 0===l||!l.length||(null==x?void 0:null===(n=x.subscriptions)||void 0===n?void 0:n.length))&&((null==x?void 0:x.virtual)!==!1||null==h||null===(c=h.upgrade_options)||void 0===c||!c.length)&&((null==x?void 0:null===(d=x.subscriptions)||void 0===d?void 0:d.length)||(null==h?void 0:null===(p=h.upgrade_options)||void 0===p?void 0:p.length))&&((null==x?void 0:x.virtual)!==!1||x.trial_is_available)&&((null==x?void 0:x.virtual)!==!1||!k)?(null==x?void 0:x.virtual)===!0&&r().push("/auth"):(0,oa.b)({authData:x,tariffs:y,playerMovie:this.props.movie.playerMovie,dispatch:this.props.dispatch,onSuccess:()=>{this.paymentRedirect(y)}});return}}(null==x?void 0:null===(e=x.subscriptions)||void 0===e?void 0:e.length)?(0,or.j)({ratingAge:v.rating_age,childProfile:k,parentalControl:this.props.parentalControl,dispatch:this.props.dispatch,successCallback:()=>{this.setState({isTrailerRequest:!1},()=>{this.props.initPlayer({init:!0,type:"Movie"});let t={movieUrl:"/web/watch/".concat(v.alias),movieTitle:v.title,isTrailer:!1,movieId:v._id,playback:L,similar:g,uid:u?null==u?void 0:u.uid:v.uid,rating_age:v.rating_age,isSeries:B,playerSource:h};this.props.getPlayerData(t)})}}):(0,oa.b)({authData:x,tariffs:y,playerMovie:this.props.movie.playerMovie,dispatch:this.props.dispatch,onSuccess:()=>{this.paymentRedirect(y)}}),("#playproduct"===j||"#playtrailer"===j)&&C&&r().replace(C),this.handleTrailerEnded()},this.handleWorldCupPlayClick=async()=>{let{page:t,movieData:e}=this.props,{authData:i}=this.props.registration,{childProfile:o}=this.props.profile,{clickHouseData:s}=this.props.systemInformation,[r]=y(e);if(!r)return;let a={...s,screen_attributes_ab_tag:i&&i.tags?i.tags:"",action_id:"click",event_time:new Date().getTime(),event_version:"1.0",block_type:"block",block_attributes_id:t?"collapsed_top":"top",element_type:"button",element_attributes_id:"watch",element_attributes_text:"СмоÑÑеÑÑ",product_id:e._id,content_id:r.uid,content_type:e._cls};if(this.props.systemInformation.dataLayer){let t=this.props.systemInformation.dataLayer;t.dataLayer.event="productCardClickPlayEvent",this.props.setDataLayer(t)}this.props.clickHouseShoot(this.apiUrl,this.apiKey,a),await sC({authData:i,childProfile:o,apiUrl:this.apiUrl,apiKey:this.apiKey,toggleSwitchToAdultProfile:this.props.toggleSwitchToAdultProfile})},this.handleClickSubscribe=()=>{let t;let{movieData:e,seasonNum:i}=this.props,{authData:o,tariffs:s}=this.props.registration,{lastProgress:a}=this.props.profile,{clickHouseData:l}=this.props.systemInformation,n=(null==o?void 0:o.type)==="EX_PAID",c=null==o?void 0:o.profile_for_child,d=(null==o?void 0:o.subscriptions.some(t=>(null==t?void 0:t.acl_type)==="lite"))&&!(null==o?void 0:o.subscriptions.some(t=>(null==t?void 0:t.acl_type)==="premium")),p="Product.Series"===e._cls,u=(0,_.pK)(s),h=(0,_.EE)(null==o?void 0:o.trial_is_available,u);if((n||d)&&c){this.props.toggleSwitchToAdultProfile({visible:!0});return}if(p){if(i&&!a){var m,v,g;t=null===(g=e.items)||void 0===g?void 0:null===(v=g[i-1])||void 0===v?void 0:null===(m=v.items)||void 0===m?void 0:m[0]}else{let i=e.items.flatMap(t=>t.items);t=a?i.find(t=>a.content_id===t.uid):i[0]}}let b={...l,action_id:"click",action_attributes_num:1,event_time:new Date().getTime(),event_version:"1.0",block_type:"block",block_attributes_id:"top",block_attributes_index:1,element_type:"button",element_attributes_id:h?"try_free":"buy",element_attributes_text:h?"ÐопÑобоваÑÑ ".concat(u," ").concat((0,_.jQ)(["денÑ","днÑ","дней"],u)," беÑплаÑно"):"ÐÑоÑмиÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑкÑ",product_id:e._id,c
1ontent_id:t?null==t?void 0:t.uid:e.uid,content_type:e._cls};this.props.clickHouseShoot(this.apiUrl,this.apiKey,b),(null==o?void 0:o.virtual)&&r().push("/auth")},this.initializePlayerLogo=async t=>{var e,i,o,s,a,l,n,c,d,p,u,h,m,v,g,b,k;let f,x;let{movieData:y,seasonNum:w}=this.props,{clickHouseData:T}=this.props.systemInformation,{authData:S,tariffs:j,subscriptionType:C}=this.props.registration,{_cls:B,uid:N,_id:P,alias:I,title:D,playback_options:A,rating_age:E,items:R}=this.props.movieData,{childProfile:L,lastProgress:M,pendingSubscription:U}=this.props.profile,{forceOpenSubscriptionOfferPopup:H}=this.props.toggle,O=(null==S?void 0:S.type)==="EX_PAID",F=null==S?void 0:S.profile_for_child,W=(null==S?void 0:S.subscriptions.some(t=>(null==t?void 0:t.acl_type)==="lite"))&&!(null==S?void 0:S.subscriptions.some(t=>(null==t?void 0:t.acl_type)==="premium")),K={...T,screen_attributes_ab_tag:S&&S.tags?S.tags:"",action_id:"click",event_time:new Date().getTime(),event_version:"1.0",block_type:"block",block_attributes_id:"top",element_type:"button",element_attributes_id:t?"watch_first_episode":"play",element_attributes_text:t?"Product.Movie"===B?"СмоÑÑеÑÑ ÑилÑм":"СмоÑÑеÑÑ 1-Ñ ÑеÑиÑ":null,product_id:P,content_id:N,content_type:B};if((0,_.Yj)("isFreeContentFlow"),this.props.systemInformation.dataLayer){let t=this.props.systemInformation.dataLayer;t.dataLayer.event="productCardClickPlayEvent",this.props.setDataLayer(t)}if(this.props.clickHouseShoot(this.apiUrl,this.apiKey,K),(O||W)&&F){this.props.toggleSwitchToAdultProfile({visible:!0});return}if("Product.Series"===B){if(w&&!M)f=null==R?void 0:null===(o=R[w-1])||void 0===o?void 0:null===(i=o.items)||void 0===i?void 0:i[0];else{let t=R.flatMap(t=>t.items);f=M?t.find(t=>M.content_id===t.uid):t[0]}t&&(0,_.TV)("isFreeContentFlow",encodeURIComponent(null==y?void 0:null===(s=y.background)||void 0===s?void 0:s.image_15x))}let V=f?null==f?void 0:f.is_preview:this.props.movieData.is_preview,z=f?null==f?void 0:f.subscriptions:null===(e=this.props.movieData)||void 0===e?void 0:e.subscriptions,{show:Y,type:G}=(0,th.g5)(S,U);if(A&&!A.includes(".m3u8")&&!V){let e=(0,_.xM)(z,C);if(x=await this.fetchStreamOptions(A),!e&&!t){(0,_.vB)({contentUpgradeOptions:null==x?void 0:x.upgrade_options,saveBackRoute:!0});return}if(!(null==x?void 0:null===(a=x.playlists)||void 0===a?void 0:a.length)&&!(null==x?void 0:x.devices)){S.partner&&"ttk"===S.partner.name?this.props.toggleTTKPopup(!0):(null==S?void 0:null===(l=S.externals)||void 0===l?void 0:l.length)&&!(null==S?void 0:null===(n=S.subscriptions)||void 0===n?void 0:n.length)?this.paymentRedirect((null==x?void 0:null===(b=x.upgrade_options)||void 0===b?void 0:b.length)?x.upgrade_options:j):Y&&!t?this.props.toggleSubscriptionOfferPopup({visible:!0,type:G}):(null==S?void 0:S.virtual)===!1&&(null==x?void 0:null===(c=x.upgrade_options)||void 0===c?void 0:c.length)?this.paymentRedirect(x.upgrade_options):(null==S?void 0:null===(d=S.subscriptions)||void 0===d?void 0:d.length)||(null==x?void 0:null===(p=x.upgrade_options)||void 0===p?void 0:p.length)?(null==S?void 0:S.virtual)===!0&&r().push("/auth"):(0,oa.b)({authData:S,tariffs:j,playerMovie:this.props.movie.playerMovie,dispatch:this.props.dispatch,onSuccess:()=>{this.paymentRedirect(j)}}),S.partner&&"ttk"===S.partner.name?this.props.toggleTTKPopup(!0):(null==S?void 0:null===(u=S.externals)||void 0===u?void 0:u.length)&&!(null==S?void 0:null===(h=S.subscriptions)||void 0===h?void 0:h.length)?this.paymentRedirect((null==x?void 0:null===(k=x.upgrade_options)||void 0===k?void 0:k.length)?x.upgrade_options:j):Y&&!t?this.props.toggleSubscriptionOfferPopup({visible:!0,type:G}):(null==S?void 0:S.virtual)===!1&&(null==x?void 0:null===(m=x.upgrade_options)||void 0===m?void 0:m.length)?this.paymentRedirect(x.upgrade_options):(null==S?void 0:null===(v=S.subscriptions)||void 0===v?void 0:v.length)||(null==x?void 0:null===(g=x.upgrade_options)||void 0===g?void 0:g.length)?(null==S?void 0:S.virtual)===!0&&(t&&((0,_.TV)("fromProductPageWithFreeContent",!0),(0,_.Uy)()),r().push("/auth")):(0,oa.b)({authData:S,tariffs:j,playerMovie:this.props.movie.playerMovie,dispatch:this.props.dispatch,onSuccess:()=>{this.paymentRedirect(j)}});return}}(0,or.j)({ratingAge:y.rating_age,childProfile:L,parentalControl:this.props.parentalControl,dispatch:this.props.dispatch,successCallback:async()=>{this.setState({isTrailerRequest:!1},()=>{this.props.initPlayer({init:!0,type:"Movie"});let t={isTrailer:!1,movieId:P,movieTitle:D,movieUrl:"/web/watch/".concat(I
1),playback:A,similar:this.props.similar,uid:N,rating_age:E,playerSource:x};this.props.getPlayerData(t)}),this.handleTrailerEnded()}}),t&&this.props.toggleForceOpenSubscriptionOfferPopup(!1)},this.handleBackgroundSource=t=>{if(!t)return;let{browserWidth:e}=this.state,{page:i,isNewEpisodePage:o}=this.props,{renderMobile:s}=this.props.systemInformation,r=e||(s?375:1920),a="";return a=!i||"seasons"===i||o?s||r<768?"1290x726":r<1025?"1020x606":r<1280?"1754x990":"1754x1014":s||r<768?"480x314":r<1025?"831x329":"1154x456",(0,_.bZ)(t,a)},this.handleVerticalSource=t=>{if(t)return(0,_.bZ)(t,"360x516")},this.handleBackgroundBlurSource=t=>{if(t)return(0,_.bZ)(t,"384x241&quality=1")},this.handleLogotype=t=>{let{deviceData:e}=this.props.systemInformation;if(t&&e)return"".concat(this.apiUrl).concat((0,_.bZ)(t))},this.handleBadges=t=>{let{deviceData:e}=this.props.systemInformation;if(t&&e)return"".concat(this.apiUrl).concat(t)},this.getLengthSeasons=(t,e)=>0===e.size&&t.length>=1||1===e.size?"1\xa0Ñезон":e.size>1&&e.size<5?"".concat(e.size,"\xa0Ñезона"):e.size>
14?"".concat(e.size,"\xa0Ñезонов"):void 0,this.getSeasonsYear=()=>{let{_cls:t,year:e,items:i}=this.props.movieData,o=[];if("Product.Movie"===t)return e?e.toString():"";if(0===i.length)return"";for(let t of i)"Product.Season"===t._cls&&o.push(t.year);return(1===i.length&&i[0].year?i[0].year:i.length>1&&o.every(t=>t===o[0])?i[0].year:i.length>1&&(i[0].year||i[i.length-1].year)?"".concat(i[0].year&&i[i.length-1].year?"".concat(i[0].year,"-").concat(i[i.length-1].year):"".concat(i[0].year?i[0].year:i[i.length-1].year)):"").toString()||""},this.getWatched=()=>{let{profileHistory:t}=this.props.profile,{_cls:e,_id:i,items:o}=this.props.movieData,s=[];if(t&&(null==t?void 0:t.length)&&(s=t.filter(t=>t.progress>0&&t.progress<95)),"Product.Movie"===e)return s.filter(t=>i===t.product_id).length>0;if("Product.Series"===e){let t=[];return o.map(e=>e.items.map(e=>t.push(e.uid))),s.filter(e=>t.includes(e.content_uid)).length>0}},this.backHandler=(t,e)=>{let{clickHouseData:i}=this.props.systemInformation,{authData:o}=this.props.registration,{alias:s,_id:r}=this.props.movieData,a={...i,screen_attributes_ab_tag:o&&o.tags?o.tags:"",action_id:"click",element_type:"button"===t?"button":"link",element_attributes_id:"button"===t?"back":s,element_attributes_text:"button"===t?"Ðазад":e,product_id:r,event_time:new Date().getTime(),event_version:"1.0",block_type:"block",block_attributes_id:"collapsed_top"};this.props.clickHouseShoot(this.apiUrl,this.apiKey,a)},this.reportAppearance=t=>{let{authData:e}=this.props.registration,{uid:i}=this.props.movieData;(null==e?void 0:e.virtual)?this.props.toggleLoginSubscribePopup(!0):(this.setState({loading:!0}),fetch("".concat(this.apiUrl).concat(n.PI.profileNotify,"/").concat(e.profile_id,"/").concat(i).concat(this.apiKey),{credentials:"include",method:"POST"}).then(t=>{t.status<400&&t.json().then(t=>{t.success,this.setState({loading:!1,subscribeAnimate:!0})})}).finally(()=>{this.setState({loading:!1})}),t&&t.length>0&&(this.props.deleteSubscribe(),t.map(t=>{fetch("".concat(this.apiUrl).concat(n.PI[t.type]).concat(this.apiKey),{credentials:"include",method:"POST"}).then(e=>{if(e.status<400)switch(t.type){case"subscribeEmail":this.props.subscribeEmail(!0);break;case"subscribeSMS":this.props.subscribeSms(!0)}})})))},this.trailerClickHandler=async()=>{let{clickHouseData:t}=this.props.systemInformation,{authData:e}=this.props.registration,i=this.props.profile.childProfile,{page:o,movieData:s,similar:a}=this.props,{hash:l,pathname:n}=window.location;if(s.unavailable_by_geo){r().push(n);return}let c={...t,screen_attributes_ab_tag:e&&e.tags?e.tags:"",action_id:"click",event_time:new Date().getTime(),event_version:"1.0",block_type:"block",block_attributes_id:o?"collapsed_top":"top",element_type:"button",element_attributes_id:"play_trailer",element_attributes_text:"СмоÑÑеÑÑ ÑÑейлеÑ",product_id:s._id,content_id:s.uid,content_type:s._cls};if(this.props.clickHouseShoot(this.apiUrl,this.apiKey,c),i&&await (0,tm.j)({apiUrl:this.apiUrl,apiKey:this.apiKey})){this.props.toggleSwitchToAdultProfile({visible:!0});return}this.props.initPlayer({init:!0,type:"Trailer"});let _={movieUrl:"/web/watch/".concat(s.alias),movieTitle:s.title,movieId:s._id,trailerSrc:s.trailer_src,playback:s.playback_options,isTrailer:!0,announce:s.is_preview||s.is_disabled,position:s.position,similar:a,uid:s.uid,rating_age:s.rating_age,isTrailerHash:"#playtrailer"===l,promoData:{cls:"Trailer",promoting_content:{id:s._id,uid:s.uid,cls:s._cls,alias:s.alias}}};this.props.getPlayerData(_),("#playproduct"===l||"#playtrailer"===l)&&n&&r().replace(n),this.handleTrailerEnded()},this.getAgeRating=()=>{let{rating_age:t,is_preview:e}=this.props.movieData;return t&&null!==t?"".concat(t.replace("+",""),"+"):!t&&e?"18+":"0+"},this.breadcrumbsPage=()=>{let{page:t,season:e,seasonNum:i,episode:o}=this.props,s=e&&e.split("-")[1],{alias:r}=this.props.movieData,{authData:a}=this.props.registration,l=T(a),n={collections:"РекомендаÑии",articles:"СÑаÑÑи"};if("seasons"===t){let t=x(this.props.movieData,s);return[{title:"".concat(t).concat(l),name:"".concat(t).concat(l)}]}if("episode"===t){let t=x(this.props.movieData,i),e="".concat(o.title).concat(l);return[{title:t,name:t,link:"/watch/".concat(r,"/season-").concat(i)},{title:e,name:e}]}return"selections"===t?[{title:"ÐодбоÑки",name:"ÐодбоÑки"}]:n[t]?[{title:"".concat(n[t]),name:"".concat(n[t])}]:[]},this.getLinkForGenres=t=>{let{_cls:e}=this.props.movieData,{kidsProfile:i}=this.props;return i?"/animation":"/".concat("Product.Movie"===e?"movies":"series","/").concat(t.slug)},this.getLinkForCountry=t=>{var e;let{_cls:i}=this.props.movieData,{kidsProfile:o}=this.props;if(o)return"/animation";let s=(null==t?void 0:t.code)?"/".concat(null===(e=t.code)||void 0===e?void 0:e.toLowerCase()):"";return"/".concat("Product.Movie"===i?"movies":"series").concat(s)},this.getLinkForYear=()=>{let{kidsProfile:t}=this.props;if(t)return"/animation";let{_cls:e}=this.props.movieData,i=this.getSeasonsYear();if(i&&i.includes("-")){let t=Number(this.getSeasonsYear().split("-")[0]);return"/".concat("Product.Movie"===e?"movies":"series","/").concat(this.getYearOrPeriod(t))}return"/".concat("Product.Movie"===e?"movies":"series","/").concat(this.getYearOrPeriod(Number(i)))},this.getYearOrPeriod=t=>{switch(!0){case t>2009:return"".concat(t);case t>=2e3&&t<=2009:return"2000-2009";case t>=1990&&t<=1999:return"1990-1999";case t>=1980&&t<=1989:return"1980-1989";case t>=1970&&t<=1979:return"1970-1979";default:return""}},this.setContentVisible=(t,e)=>{t.stopPropagation(),this.state.isTrailerShown||this.setState({isMetaShifted:e})},this.handleTrailerEnded=()=>{this.setState({isMuted:!0,isContentVisible:!0,isMetaShifted:!0,isTrailerShown:!0,launch:!1})},this.badgeClickHandler=t=>{let{clickHouseData:e}=this.props.systemInformation,{uid:i,_id:o,_cls:s}=this.props.movieData,{router:r}
1=this.props,a={...e,action_id:"click",screen_type:"product",element_type:"link",element_attributes_id:t,product_id:o,content_id:i,content_type:s,block_type:"block",block_attributes_id:"top",screen_attributes_id:r.asPath.replace("/watch/","")||"",event_version:"1.0",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,a)},this.showFirstBadgeHandle=(t,e)=>!!t&&!!e&&!!e.image_15x,this.showSkeletonHandle=()=>{let{showProgressButton:t,topBlockButtonsLoaded:e}=this.state,{unavailable_by_geo:i,is_preview:o,is_disabled:s}=this.props.movieData,{authData:r}=this.props.registration;return null==r||!r.phone||null==r||!r.email||(i?null!==t:!!o||!!s||null!==t&&e)},this.playButtonTextMake=(t,e,i)=>{let{isNewEpisodePage:o,seasonNum:s,episode:r,numbersOfAvailableSeasons:a}=this.props;return e||a&&!a.has(s)?t:s&&!r?"".concat(t):o&&!i?"".concat(t," ").concat(s," Ñезон ").concat(null==r?void 0:r.num," ÑеÑиÑ"):t},this.getLabelText=t=>{let{authData:e}=this.props.registration,{is_preview:i,is_disabled:s}=this.props.movieData,{numbersOfAvailableSeasons:r}=this.props,{tariffs:a}=this.props.registration;return(null==e?void 0:e.virtual)===!1&&e.subscriptions&&e.subscriptions.length&&!t||i||s||r&&0===r.size?null:(null==e?void 0:e.virtual)===!1&&e.subscriptions&&e.subscriptions.length&&t?(0,o.jsxs)("label",{className:rP().label,children:[(0,_.$g)((0,_.g6)(null,a)),"\xa0⽠в меÑÑÑ c опÑией ",(0,o.jsx)("span",{className:rP().TopBlock__subscription_text_premium,children:"PREMIUM"})]}):(null==e?void 0:e.virtual)!==!1||(null==e?void 0:e.trial_is_available)?(0,o.jsx)("label",{className:rP().label,children:"Ðалее Ð¾Ñ ".concat(this.props.yearSubMonthlyPrice," ").concat(this.props.currentCurrency," за меÑÑÑ")}):(0,o.jsx)("label",{className:rP().label,children:"Ð¾Ñ ".concat(this.props.yearSubMonthlyPrice," ").concat(this.props.currentCurrency," за меÑÑÑ")})},this.handleReturn=()=>{var t,e;(null===(e=window)||void 0===e?void 0:null===(t=e.history)||void 0===t?void 0:t.length)&&r().back()},this.handleFavorites=async(t,e)=>{let{authData:i}=this.props.registration,{locale:o}=this.props.systemInformation,s="".concat(this.apiUrl).concat(n.PI.favorites).concat(i.profile_id).concat(this.apiKey);try{(await fetch(s,{credentials:"include",method:e?"DELETE":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_id:t})})).status<400&&this.props.profileFavorites(i.profile_id,this.apiUrl,this.apiKey,o)}catch(t){console.error(t)}},this.pushStackEvent=(t,e)=>{let{clickHouseData:i}=this.props.systemInformation,o={...i,action_id:t,screen_type:"product",screen_attributes_id:"product",block_type:"popup",block_attributes_id:e,..."click"===t&&{element_type:"button",element_attributes_id:"cross"}};this.props.clickHouseShoot(this.apiUrl,this.apiKey,o)},this.announcePremier=t=>{let e=sessionStorage.getItem("announcePremierPopupShown");if(t)this.props.pushStackAddItem({text:"<span>УбÑали из Ñаздела \xabÐоÑ\xbb</span>",onCrossClickCallback:()=>this.pushStackEvent("click","notification_success_remove_from_favorites"),withProgressBar:!0,closeIn:2e3,variant:"addedToFavorites"}),this.pushStackEvent("popupview","notification_success_remove_from_favorites");else{var i,o;!e&&(null===(i=this.props.movieData)||void 0===i?void 0:i.is_preview)?this.props.toggleAnnouncePremierPopup(!0,null===(o=this.props.movieData)||void 0===o?void 0:o.uid):(this.props.pushStackAddItem({text:"<span>Ðобавили в \xabÐоÑ\xbb</span>",onCrossClickCallback:()=>this.pushStackEvent("click","notification_success_add_to_favorites"),withProgressBar:!0,closeIn:2e3,variant:"addedToFavorites"}),this.pushStackEvent("popupview","notification_success_add_to_favorites"))}},this.favoritesClickHandler=function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{clickHouseData:o}=e.props.systemInformation,{_id:s,_cls:r,uid:a,background:l,logotype:n,badges:c}=e.props.movieData,{authData:_}=e.props.registration,{forcedFavoriteAlias:d}=e.props.profile;if(null==_?void 0:_.virtual)e.props.toggleVisibleNoAuthFavoritesPopup({visible:!0,uid:a,background:l.image_15x,logotype:n.image_15x,badges:c});else{d&&e.props.setForcedFavoriteAlias();let l={...o,action_id:"click",action_result:t?"remove":"add",action_attributes_str:a,element_type:"button",element_attributes_id:t?"delete_favorites":"add_favorites",event_time:new Date().getTime(),...!i&&{block_type:"block",block_attributes_id:"top",content_id:s,content_type:r,product_id:s},...i&&{screen_type:"product",screen_attributes_id:"product"}};e.props.clickHouseShoot(e.apiUrl,e.apiKey,l),e.handleFavorites(a,t),e.announcePremier(t)}},this.checkFavorites=t=>{let{favorites:e}=this.props.profile;if(Array.isArray(e)){let i=e.map(t=>t._id);return null==i?void 0:i.includes(t)}return!1},this.renderPremiumPriceInfo=()=>{let t=this.props.registration.tariffs;return(0,o.jsxs)("div",{className:rP().TopBlock__subscription_text,children:[(0,_.$g)((0,_.g6)(null,t)),"\xa0⽠в меÑÑÑ c опÑией ",(0,o.jsx)("span",{className:rP().TopBlock__subscription_text_premium,children:"PREMIUM"})]})},this.checkBlockedContentDate=t=>{let{uid:e,items:i}=this.props.movieData,o=t.find(t=>t.item===e);if(o)return o.date;if(null==i?void 0:i.length){let e="";return i.map(i=>{(null==i?void 0:i.items)&&i.items.map(i=>{let o=t.find(t=>t.item===i.uid);o&&(e=o.date)})}),e}return""}}}let rU=(0,s.withRouter)((0,l.Ng)(t=>({movie:t.movie,menu:t.menu,toggle:t.toggle,systemInformation:t.systemInformation,profile:t.profile,registration:t.registration,pushData:t.pushData,parentalControl:t.parentalControl}),t=>({dispatch:t,...(0,os.zH)({initPlayer:m.kI,setDataLayer:m.ak,clickHouseShoot:m.Y3,subscribeForProduct:ol.V8,getPlayerData:O.o2,toggleLoginSubscribePopup:v.Kw,toggleEmailPopup:v.ro,subscribeEmail:ol.jN,subscribeSms:ol.QN,deleteSubscribe:ol.K9,setOnboardingTrailer:F.ps,setAutoTrailer:F.jG,setForcedFavoriteAlias:F.Kr,subscribedProducts:ol.jn,toggleDevicesPopup:v.QQ,toggleDeletedDevicePopup:v.YO,toggleTTKPopup:v.QF,toggleSubscriptionOfferPopup:v.gb,fetchedTariffs:tG.ZI,profileFavorites:F.Jb,toggleVisibleNoAuthFavoritesPopup:v.t0,pushStackAddItem:tt.nD,toggleSwitchToAdultProfile:v.bL,toggleForceOpenSubscriptionOfferPopup:v.br,toggleAnnouncePremierPopup:v.YF},t)}))(rM)),rH=H()(()=>Promise.all([i.e(2406),i.e(1437),i.e(242),i.e(2386),i.e(6834),i.e(6517),i.e(7053),i.e(5837)]).then(i.bind(i,25837)),{loadableGenerated:{webpack:()=>[25837]},ssr:!1,loading:()=>null}),rO={toggleCheckAgePopup:v.UV,fetchedPromoContent:G},rF=["topBlock","description","series","selections","articles"];class rW extends a.PureComponent{componentDidUpdate(t,e){var i,o,s,r,a,l,n,d,p;let{page:u,movieData:h}=this.props,{background:m,logotype:v,is_preview:g}=this.props.movieData,{authData:b}=this.props.registration,{background:k,logotype:f}=t.movieData,{isScrolledPage:x,timePage:y}=this.state,{isScrolledPage:w,timePage:T}=e,{windowInnerWidth:S}=t.systemInformation,{windowInnerWidth:j}=this.props.systemInformation;if(b&&b.subscriptions.length||g?(0,_.KV)():(m&&m.image_15x&&m!==k&&!g&&localStorage.setItem("bgUrl",m.image_15x),v&&v.image_15x&&v!==f&&!g&&localStorage.setItem("logoUrl","".concat(this.apiUrl).concat(v.image_15x)),this.saveBadgesToCookies()),j&&S&&j!==S&&this.resizeHandler(),this.intersectionObserver&&(null===(o=window)||void 0===o?void 0:null===(i=o.location)||void 0===i?void 0:i.hash)&&(null===(a=window)||void 0===a?void 0:null===(r=a.history)||void 0===r?void 0:null===(s=r.state)||void 0===s?void 0:s.as)&&(null===(p=window)||void 0===p?void 0:null===(d=p.history)||void 0===d?void 0:null===(n=d.state)||void 0===n?void 0:null===(l=n.as)||void 0===l?void 0:l.split("#")[0])!=="/watch/".concat(null==h?void 0:h.alias)&&(window.history.replaceState(window.history.state,document.title,window.location.pathname+window.location.search),this.unsubscribeIntersectionObserver()),(!u||"seasons"===u||"episode"===u)&&x){this.intersectionObserver=new IntersectionObserver(function(t){t.forEach(t=>{if(t.isIntersecting){var e;this.navBarFunc(null===(e=t.target)||void 0===e?void 0:e.id)}})},{threshold:.95});let t=document.getElementById("description"),e=document.getElementById("series"),i=document.getElementById("selections"),o=document.getElementById("articles");this.intersectionObserver.navBarFunc=t=>{var e,i;null===(i=this.navBarRef)||void 0===i||null===(e=i.current)||void 0===e||e.changeActiveElem(t)}
1,t&&this.intersectionObserver.observe(t),e&&this.intersectionObserver.observe(e),i&&this.intersectionObserver.observe(i),o&&this.intersectionObserver.observe(o)}x&&y&&(w!==x||T!==y)&&((0,c.RZ)("product_page_scroll"),this.setState({timePage:!1}),clearTimeout(this.timer)),this.calculateLineIdx()}componentWillUnmount(){this.unsubscribeIntersectionObserver(),r().events.off("routeChangeComplete",this.scrollToHash),document.removeEventListener("wheel",this.wheelHandler)}render(){var t,e;let{movieData:i,similar:s,page:r,season:a,type:l,episode:n,seasonNum:d,trailer:p,hero:u,extra:h,kidsProfile:m,articles:v,progress:g,currentProductSubscribe:b,registration:{authData:k,tariffs:f},streamMeta:x}=this.props,{browserWidth:y,lineElemsIdArray:w,topBlockReportFunc:T,noJs:S}=this.state,{checkAge:j,visibleNoAuthLikePopup:C,loginSubscribePopup:B}=this.props.toggle,N=null==i?void 0:null===(t=i.items)||void 0===t?void 0:t.length,{onboardingTrailer:P}=this.props.profile,{_cls:I}=this.props.movieData,D=!r||"seasons"===r||"episode"===r,A=this.isNewEpisodePage(),R=this.isInternalPage(r),L=E({movie:i,season:a,episode:n,isEpisodePage:A}),M=(0,_.Mq)(i.items),U=this.getNumbersOfAvailableSeasons(i.items),H=(null==k?void 0:k.virtual)===!1&&k.subscriptions&&k.subscriptions.length,O=(null==f?void 0:f.length)&&c.UM[null===(e=f[0])||void 0===e?void 0:e.currency]||c.UM.RUB,F=(null==f?void 0:f.length)&&this.getMonthlyPriceFromYear(f)||"249";return(0,o.jsxs)("div",{className:"".concat(su().product),"data-testid":"product",children:[(0,o.jsx)(rU,{id:"TopBlock",movieData:i,isTrailerRequest:!1,page:r,type:l,season:a,seasonNum:d,episode:n,trailer:p,hero:u,extra:h,bannerData:null,similar:s,kidsProfile:m,progress:g,currentProductSubscribe:b,setTopBlockFunc:t=>{this.setState({topBlockReportFunc:t})},isInternalPageOn:R,isNewEpisodePage:A,numbersOfAvailableSeasons:U,yearSubMonthlyPrice:F,currentCurrency:O,noJs:S}),(null==k?void 0:k.profile_for_child)&&!i.for_kids?null:(0,o.jsxs)("main",{className:z()({[su().onboarding]:P}),children:[!H&&y>1024&&["selections","articles"].includes(r)&&(0,o.jsx)(o8,{index:1,movieData:i,yearSubMonthlyPrice:F,currentCurrency:O}),!H&&y<1025&&(0,o.jsx)(o8,{index:2,movieData:i,yearSubMonthlyPrice:F,currentCurrency:O}),(!r||"seasons"===r||A)&&y>1024?(0,o.jsx)(sF,{ref:this.navBarRef,page:r,movieData:i,episode:n,hasSimilar:s&&s.length,hasArticles:v&&v.length,similar:s,topBlockReportFunc:T,currentProductSubscribe:b,seasonNum:d,numbersOfAvailableSeasons:U,noJs:S},null==i?void 0:i.alias):null,!r||"seasons"===r||"episode"===r||A?(0,o.jsx)(sj,{episode:n,movieData:i,page:r,season:a,type:l}):null,n&&!A?(0,o.jsx)(sb,{seasonNum:d,movieData:i,page:r,episode:n,similar:s}):null,N&&D?(0,o.jsx)(Y.Hg,{id:"series",name:"series",children:(0,o.jsx)(rS,{movieData:i,page:r,season:null==a?void 0:a.split("-")[1],episode:n,type:l,maxSeason:M,bannerData:null,similar:s,progress:g,intersectionObserverOff:this.unsubscribeIntersectionObserver,isNewEpisodePage:A})}):null,!H&&y>1024&&"Product.Series"===I&&(!r||"seasons"===r||"episode"===r)&&(0,o.jsx)(o8,{index:4,movieData:i,yearSubMonthlyPrice:F,currentCurrency:O}),(!r||"seasons"===r||A)&&L?(0,o.jsx)(Y.Hg,{id:"description",name:"description",children:(0,o.jsx)(sd,{movieData:i,type:l,season:a,page:r,bannerData:null,kidsProfile:m,streamMeta:x,episode:n,isNewEpisodePage:A,numbersOfAvailableSeasons:U})}):null,(!r||A||"seasons"===r||"selections"===r)&&(null==s?void 0:s.length)?(0,o.jsx)(Y.Hg,{id:"selections",children:(0,o.jsx)(s$,{page:r,episode:n,season:a,similar:s,movieData:i,lineIdx:(null==w?void 0:w.indexOf("selections"))+1,seasonNum:d})}):null,!H&&y>1024&&"Product.Movie"===I&&!r&&(0,o.jsx)(o8,{index:6,movieData:i,yearSubMonthlyPrice:F,currentCurrency:O}),D&&i.facts&&i.facts.length?(0,o.jsx)(sw,{data:i.facts,movieData:i}):null,!(null==k?void 0:k.profile_for_child)&&v&&v.length&&(!r||"articles"===r||"seasons"===r||A)?(0,o.jsx)(Y.Hg,{id:"articles",children:(0,o.jsx)(o5,{articles:v,type:l,page:r,movieData:i,isNewEpisodePage:A})}):null,"collections"===r&&(0,o.jsx)(se,{movieData:i})]}),j?(0,o.jsx)(tC,{alias:i.alias,id:i._id}):null,C?(0,o.jsx)(tI,{}):null,B?(0,o.jsx)(tw,{}):null,(0,o.jsx)(rH,{})]})}constructor(...t){super(...t),this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.badgesSaved=!1,this.intersectionObserver=null,this.timer=null,this.state={topBlockReportFunc:null,isScrolledPage:null,lineElemsIdArray:null,browserWidth:0,timePage:null,noJs:!0},this.navBarRef=a.createRef(),this.componentDidMount=async()=>{this.setState({noJs:!1}),window.scrollTo(0,0),this.scrollToHash(),r().events.on("routeChangeComplete",this.scrollToHash);let{authData:t}=this.props.registration,{background:e,logotype:i,is_preview:o}=this.props.movieData;t&&t.subscriptions.length||o?(0,_.KV)():(e&&e.image_15x&&!o&&localStorage.setItem("bgUrl",e.image_15x),i&&i.image_15x&&!o&&localStorage.setItem("logoUrl","".concat(this.apiUrl).concat(i.image_15x)),this.saveBadgesToCookies(),(0,_.Yj)("contentUrl"),(0,_.TV)("contentUrl",window.location.pathname)),document.addEventListener("wheel",this.wheelHandler),this.setState({browserWidth:window.innerWidth}),this.startTimer()},this.startTimer=()=>{this.timer=setTimeout(()=>{this.setState({timePage:!0})},1e4)},this.wheelHandler=()=>{var t;(null===(t=this.state)||void 0===t?void 0:t.isScrolledPage)||this.setState({isScrolledPage:!0})},this.resizeHandler=()=>{let{innerWidth:t}=window,{browserWidth:e}=this.state;t!==e&&this.setState({browserWidth:t})},this.saveBadgesToCookies=()=>
1{if(!this.badgesSaved){var t;let{movieData:e}=this.props,i=null==e?void 0:null===(t=e.badges)||void 0===t?void 0:t.filter(t=>"logo"===t.type||"start"===t.type||"badge"===t.type&&t.under_logo_position);(0,_.TV)("badges",JSON.stringify(i)),this.badgesSaved=!0}},this.scrollToHash=()=>{r().asPath.includes("#")&&setTimeout(()=>{let t=r().asPath.split("#")[1];Y.XG.scrollTo("".concat(t),{duration:500,smooth:!0,offset:-250})},750)},this.unsubscribeIntersectionObserver=()=>{var t;null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),this.setState({isScrolledPage:!1})},this.isNewEpisodePage=()=>{let{page:t}=this.props;return t&&"episode"===t},this.isInternalPage=t=>t&&"seasons"!==t&&"episode"!==t,this.calculateLineIdx=()=>{let t=[];rF.forEach(e=>{document.getElementById(e)&&t.push(e)}),JSON.stringify(this.state.lineElemsIdArray)!==JSON.stringify(t)&&this.setState({lineElemsIdArray:t})},this.getNumbersOfAvailableSeasons=t=>{if(!t||!(null==t?void 0:t.length))return null;let e=new Set;return t.forEach(t=>{let i=t.is_preview&&0===t.items.length,o=t.items.every(t=>t.announcement);i||o||e.add(t.num)}),e},this.getMonthlyPriceFromYear=t=>{var e;return parseInt((null===(e=t[t.length-1])||void 0===e?void 0:e.price)/12)}}}let rK=(0,l.Ng)(t=>({profile:t.profile,registration:t.registration,systemInformation:t.systemInformation,toggle:t.toggle,promoContent:t.promoContent}),rO)(rW),rV=t=>{var e,i,o;let{items:s=[],year:r}=t,a=null==s?void 0:null===(e=s.at(0))||void 0===e?void 0:e.year,l=null==s?void 0:null===(i=s.at(-1))||void 0===i?void 0:i.year;if(a&&l&&a!==l)return"(".concat(a," â ").concat(l,")");let n=null!==(o=null!=a?a:l)&&void 0!==o?o:r;return n?String(n):""},rz=t=>{var e;let i=(null==t?void 0:null===(e=t.title)||void 0===e?void 0:e.trim())||"";return i?i.startsWith("\xab")&&i.endsWith("\xbb")?i:"\xab".concat(i,"\xbb"):""},rY=t=>{let{movie:e,page:i,hero:o,episode:s,seasonNum:r,trailer:a,extra:l}=t,{_cls:n,title:c,year:_,genres:d,items:p}=e,u=n.split(".")[1],h=rV({items:p,year:_}),m=d&&d.length&&d[0].title?d[0].title.toLowerCase():"";switch(i){case"seasons":{let t=null==p?void 0:p.find(t=>t.num==r),e=(null==t?void 0:t.year)?" ".concat(t.year):"";return"".concat(c," ").concat(r," Ñезон ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½ беÑплаÑно в Ñ
оÑоÑем каÑеÑÑве | ÐÑе ÑеÑии").concat(e)}case"episode":return"".concat(c," ").concat(r," Ñезон ").concat(s.number," ÑеÑÐ¸Ñ ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½");case"trailers":return"ÐÑе ÑÑейлеÑÑ ".concat(c);case"trailer":return"".concat(c,": ").concat((null==a?void 0:a.title)||"");case"extras":return"Ðа кадÑом ".concat(c,": видео Ñо ÑÑÑмок, ÑоÑо, инÑеÑвÑÑ");case"extra":return"ÐополниÑелÑное видео ".concat(c,": ").concat(rz(l));case"characters":return"Product.Series"===n?"ÐеÑои ".concat(c,": акÑеÑÑ Ð¸ Ñоли, главнÑе геÑои и дÑÑгие пеÑÑонажи"):"".concat(c,": акÑеÑÑ Ð¸ Ñоли, главнÑе геÑои и дÑÑгие пеÑÑонажи");case"hero":if(o){let t=o.name?" â ÑÐ¾Ð»Ñ Ð¸Ð³ÑÐ°ÐµÑ Ð°ÐºÑÐµÑ ".concat(o.name):"";return"".concat(o.character.name," из ").concat(c).concat(t," | ÐÑе о пеÑÑонаже")}break;case"articles":return"СÑаÑÑи и новоÑÑи ".concat(c);case"person":return"СÑемоÑÐ½Ð°Ñ Ð³ÑÑппа ".concat(c);case"selections":{let t="Product.Series"===n?"СеÑÐ¸Ð°Ð»Ñ Ð¸ ÑилÑÐ¼Ñ Ð¿Ð¾Ñ
ожие на":"ФилÑÐ¼Ñ Ð¿Ð¾Ñ
ожие на";return"".concat(t," ").concat(c).concat(m?" (".concat(m,")"):"")}}return"Series"!==u?"".concat(c," ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½ беÑплаÑно в Ñ
оÑоÑем каÑеÑÑве | ФилÑм").concat(h?" ".concat(h):""):"".concat(c," ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½ | СеÑиал").concat(h?" ".concat(h):"")},rG={fetchedProfileProgress:F.ay,fetchedProfileLastProgress:F.eY,fetchedProfileProgressId:F.Zw,setForcedFavoriteAlias:F.Kr,getPlayerData:O.o2,initPlayer:m.kI};H()(()=>Promise.all([i.e(1709),i.e(2364)]).then(i.bind(i,2364)),{loadableGenerated:{webpack:()=>[2364]},ssr:!1,loading:()=>null});class rJ extends a.PureComponent{componentDidMount(){var t,e,i;let o=null===(t=this.props.router.query.params)||void 0===t?void 0:t[1],{movie:s}=this.props.movie,r=new URL(window.location.href),a=r.searchParams.get("autoplay"),l=r.searchParams.get("ap");if("true"===a||"true"===l){this.props.initPlayer({init:!0,type:"Movie"});let t={movieUrl:"/web/watch/".concat(s.alias),movieTitle:s.title,isTrailer:!1,movieId:s._id,playback:s.playback_o
1ptions,uid:s.uid,rating_age:s.rating_age};this.props.getPlayerData(t)}if(r.searchParams.get("apt")){this.props.initPlayer({init:!0,type:"Trailer"});let t={movieUrl:"/web/watch/".concat(s.alias),movieTitle:s.title,movieId:s._id,trailerSrc:s.trailer_src,playback:s.playback_options,isTrailer:!0,isPageTrailer:!0,announce:s.is_preview||s.is_disabled,position:s.position,uid:s.uid,rating_age:s.rating_age,isTrailerHash:!1,trailerPlayFromUrl:!0,promoData:{cls:"Trailer",promoting_content:{id:s._id,uid:s.uid,cls:s._cls,alias:s.alias}}};this.props.getPlayerData(t)}if(o){let t="";if(o.includes("season")){let i=o.split("-")[1];t=null===(e=s.items)||void 0===e?void 0:e.find(t=>t.num==i).uid}else isNaN(o)||null===(i=s.items)||void 0===i||i.map(e=>{let i=e.items.find(t=>t.start_id==o);i&&(t=i.uid)});this.setState({contentId:t})}else this.setState({contentId:null==s?void 0:s.uid})}componentDidUpdate(t){let{authData:e}=this.props.registration,{movie:i}=this.props.movie,{childProfile:o}=this.props.profile,{movie:s}=t.movie,{authData:r}=t.registration,{query:a,asPath:l}=this.props.router,{asPath:n}=t.router;if(i&&e&&"boolean"==typeof o&&(s&&i.uid!==s.uid&&(this.loadArticles=!1),s&&i.uid!==s.uid&&!this.loadArticles&&(this.loadArticles=!0,o||this.fetchArticles(i.uid))),!e||!i||(null==e?void 0:e.virtual)||this.loadProfile||(this.loadProfile=!0,this.fetchProfileProgress(i,!0),"Product.Series"===i._cls&&this.fetchProfileProgress(i,!1)),e&&i&&!(null==e?void 0:e.virtual)&&(s&&i.uid!==s.uid||r&&e.profile_id!==r.profile_id||!this.checkSubscription)&&(this.checkSubscription=!0,this.fetchProductSubscription(null==e?void 0:e.profile_id,i.uid)),e&&i&&((s&&i.uid!==s.uid||!this.loadSimilar)&&(this.loadSimilar=!0,this.fetchV2Similar()),(s&&i.uid!==s.uid||!this.checkedFavoritesQuery)&&(this.checkedFavoritesQuery=!0,new URL(window.location.href).searchParams.get("add_favorites")&&this.props.setForcedFavoriteAlias(i.alias))),i&&a&&l!==n){if("true"===a.autoplay||"true"===a.ap){this.props.initPlayer({init:!0,type:"Movie"});let t={movieUrl:"/web/watch/".concat(i.alias),movieTitle:i.title,isTrailer:!1,movieId:i._id,playback:i.playback_options,uid:i.uid,rating_age:i.rating_age};this.props.getPlayerData(t)}if("true"===a.apt){this.props.initPlayer({init:!0,type:"Trailer"});let t={movieUrl:"/web/watch/".concat(i.alias),movieTitle:i.title,movieId:i._id,trailerSrc:i.trailer_src,playback:i.playback_options,isTrailer:!0,isPageTrailer:!0,announce:i.is_preview||i.is_disabled,position:i.position,uid:i.uid,rating_age:i.rating_age,isTrailerHash:!1,trailerPlayFromUrl:!0,promoData:{cls:"Trailer",promoting_content:{id:i._id,uid:i.uid,cls:i._cls,alias:i.alias}}};this.props.getPlayerData(t)}}}componentWillUnmount(){this.props.fetchedProfileProgress(),this.props.fetchedProfileLastProgress(),this.props.fetchedProfileProgressId()}render(){let{authData:t}=this.props.registration,{originalUrl:e,page:i,season:s,episode:r,seasonNum:l,trailer:n,hero:d,extra:p,kidsProfile:u,apiUrl:h,pageNotFound:m,router:v,articles:g,streamMeta:b}=this.props,{host:f}=this.props.systemInformation,{similar:x,articles:y,currentProductSubscribe:w}=this.state,{favorites:T,progress:S}=this.props.profile,{movie:j}=this.props.movie,{renderNotFound:C}=this.props.toggle,B=j&&(0,c.FP)(j._cls,j.for_kids,j.title,j.alias),N=[];if(m)return(0,o.jsx)(oQ.A,{});if(T&&T.length>0&&Array.isArray(T)&&T.map(t=>{N.push(t._id)}),j&&(!(i&&-1===c.NV.indexOf(i))||r||n||d||p)){var P,A,E,R,L,M,U,H,O;let c=(0,W.Y)(j,h,f,v,y,i,l,e),m=k(j.uid),T=m?I({movie:j,page:i,episode:r,seasonNum:l}):this.handleVideoTitle(t),N=m?D({movie:j,page:i,episode:r,seasonNum:l}):this.handleVideoDescription(j,i,r,n,d,p,l,t),F=j.title;m?F=T:"episode"===i?F="".concat(null===(L=j.items)||void 0===L?void 0:null===(R=L.find(t=>t.num===r.seasonNum))||void 0===R?void 0:R.title,": ").concat(r.title):"seasons"===i?F=null===(U=j.items)||void 0===U?void 0:null===(M=U.find(t=>t.num==(null==s?void 0:s.split("-")[1])))||void 0===M?void 0:M.title:"trailer"===i&&(F="".concat(j.title,": ").concat(n.title));let V="episode"===i?(null===(P=r.packshot)||void 0===P?void 0:P.image_15x)?"".concat(h).concat((0,_.bZ)(r.packshot.image_15x,"1200x630")):"https://start.ru/static/images/sh
1aring.webp":(null===(A=j.horizontal)||void 0===A?void 0:A.image_15x)?"".concat(h).concat((0,_.bZ)(j.horizontal.image_15x,"1200x630")):"https://start.ru/static/images/sharing.webp",z=[{property:"og:title",content:F},{property:"og:description",content:m?N:j.description},{property:"vk:image",content:V},{property:"og:image",content:V},{property:"og:image:width",content:"1200"},{property:"og:image:height",content:"630"},{property:"og:type",content:"".concat("episode"===i?"video.episode":"trailer"===i?"video.other":"Product.Movie"===j._cls?"video.movie":"video.tv_show")},{property:"og:url",content:"https://start.ru".concat(e||"/watch/".concat(j.alias))}],Y=[{name:"twitter:image",content:V},{name:"twitter:card",content:"summary_large_image"}];return i||(z.push({property:"video:duration",content:"".concat("Product.Movie"===j._cls?j.duration:"episode"===i?r.duration:null===(O=j.items[0])||void 0===O?void 0:null===(H=O.items[0])||void 0===H?void 0:H.duration)}),z.push({property:"video:release_date",content:Math.round(j.release_date/1e3)})),!m&&(null===(E=j.hashtags)||void 0===E?void 0:E.length)&&j.hashtags.map(t=>{z.push({property:"video:tag",content:t.title})}),(0,o.jsxs)(a.Fragment,{children:[(0,o.jsx)(K.A,{title:T,description:N,renderNotFound:C,json:c,host:f,movie:j,page:i,type:B,episode:r,season:s,trailer:n,hero:d,extra:p,seasonNum:l,og:z,twitter:Y,breadCrumbs:m?this.getWorldCupBreadCrumbs(j,i,r,l,t):null}),(0,o.jsx)(m?rK:oZ,{movieData:j,similar:x,articles:(null==y?void 0:y.length)?y:null==g?void 0:g.articles,page:i,type:B,season:s,episode:r,seasonNum:l,trailer:n,hero:d,extra:p,kidsProfile:u,progress:S,currentProductSubscribe:w,streamMeta:b},null==j?void 0:j.alias)]})}return(0,o.jsx)(oQ.A,{})}constructor(...t){var e;super(...t),e=this,this.state={similar:null,articles:[],lastSeries:null,currentProductSubscribe:null,contentId:null},this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.loadSimilar=!1,this.loadArticles=!1,this.loadProfile=!1,this.checkSubscription=!1,this.checkedFavoritesQuery=!1,this.fetchDefaultSimilar=()=>{let{authData:t}=this.props.registration,{movie:e}=this.props.movie;fetch("".concat(this.apiUrl).concat(e.similar).concat(this.apiKey,"&for_kids=").concat(null==t?void 0:t.profile_for_child).concat("&locale=ru").concat("&content_lang=ru"),{credentials:"include",method:"GET"}).then(t=>{t.status<400&&t.json().then(t=>{let e=[];(null==t?void 0:t.length)&&(e=t),this.setState({similarData:e})})})},this.fetchV2Similar=()=>{let{movie:t}=this.props.movie,{authData:e}=this.props.registration;fetch("".concat(this.apiUrl).concat(n.PI.similar).concat(t.alias).concat(this.apiKey,"&for_kids=").concat(null==e?void 0:e.profile_for_child).concat("&locale=ru").concat("&content_lang=ru","&profile_id=").concat(null==e?void 0:e.profile_id),{credentials:"include",method:"GET"}).then(t=>{t.status<400?t.json().then(t=>{t.length&&t.length>3?this.setState({similar:t}):this.fetchDefaultSimilar()}):this.fetchDefaultSimilar()})},this.fetchProductSubscription=(t,e)=>{fetch("".concat(this.apiUrl).concat(n.PI.profileNotify,"/").concat(t,"/").concat(this.apiKey),{credentials:"include",method:"GET"}).then(t=>{t.status<400&&t.json().then(t=>{var i,o;this.setState({currentProductSubscribe:(null===(o=t.data.items)||void 0===o?void 0:null===(i=o.filter(t=>t===e))||void 0===i?void 0:i.length)>0})})})},this.fetchArticles=t=>{let e=new URL("".concat(this.apiUrl).concat(n.PI.productArticles).concat(t));return e.searchParams.set("locale","ru"),e.searchParams.set("content_lang","ru"),"localhost"===window.location.hostname&&e.searchParams.set("nocache",1),fetch(e,{credentials:"include"}).then(t=>(t.ok||this.setState({articles:[]}),t.json())).then(t=>{let{articles:e}=t;return this.setState({articles:e})}).catch(t=>{})},this.fetchProfileProgress=function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{authData:o}=e.props.registration;o&&(null==o?void 0:o.virtual)===!1&&fetch("".concat(e.apiUrl).concat(n.PI.profileProgress).concat(o.profile_id,"/").concat(t.uid).concat(e.apiKey,"&last=").concat(i),{credentials:"include",method:"GET"}).then(t=>{t.status<400&&t.json().then(t=>{var o,s,r;i?e.props.fetchedProfileLastProgress((null==t?void 0:null===(r=t.data)||void 0===r?void 0:null===(s=r.items)||void 0===s?void 0:s[0])||null):e.props.fetchedProfileProgress(null==t?void 0:t.data),e.props.fetchedProfileProgressId(null==t?void 0:null===(o=t.data)||void 0===o?void 0:o.product_id)})})},this.getVideoYear=t=>{let{items:e,year:i}=t;return(null==e?void 0:e.length)>1?e[0].year&&e[e.length-1].year?"".concat(e[0].year,"-").concat(e[e.length-1].year):e[e.length-1].year||e[0].year||"":i||""},this.handleRegisteredVideoDescription=(t,e,i,o,s,r)=>{let a;let{_cls:l,title:n,alias:_,seo:d,title_original:p,genres:u}=t,h=(0,c.T2)(l,n,_,"description"),m=(0,c.T2)(l,n,_,"default"),v=(0,c.T2)(l,n,_,"title"),g=u&&u.length&&u[0].title?u[0].title.toLowerCase():"";switch(e){case"trailers":return"СмоÑÑиÑе ÑÑейлеÑÑ ".concat(v," ").concat(n,": ").concat(g,", ÑÑжеÑ, опиÑание, геÑои в онлайн-киноÑеаÑÑе Start.ru");case"trailer":return"ТÑÐµÐ¹Ð»ÐµÑ ".concat(n," ").concat(h," - ").concat(o.title||""," - онлайн-киноÑеаÑÑ Start.ru.");case"seasons":return a=d.subject&&d.subject.split("<p>")[1]?d.subject.split("<p>")[1].replace(/<\/p>/g,""):"","СмоÑÑиÑе ".concat(m," ").concat(n," ").concat(r," Ñезон онлайн: ").concat(g,", ÑÑжеÑ, опиÑание, геÑои, ÑодеÑжание, инÑеÑеÑнÑе ÑакÑÑ Ð² наÑем онлайн-киноÑеаÑÑе Start.ru.").concat(a||"");case"episode":return a=i.seo_text?i.seo_text.split("<p>")[1]?i.seo_text.split("<p>")[1].replace(/<\/p>/g,""):i.seo_text:i.description,"СмоÑÑеÑÑ ".concat(m," ").concat(n," ").concat(r," Ñезон ").concat(i.number," ÑеÑÐ¸Ñ - ").concat(i.title," онлайн на ÑайÑе Start.ru.").concat(a||"");case"person":return"".concat(n,": акÑеÑÑ Ð¸ ÑÑемоÑÐ½Ð°Ñ Ð³ÑÑппа ").concat(v," на Start.ru");case"characters":return"".concat(n,": главнÑе геÑои ").
1concat(v,", ÑпиÑок геÑоев и акÑÑÑов на Start.ru");case"hero":return"".concat(s.character.name," â геÑой ").concat(v," ").concat(n,". ÐзнакомÑÑеÑÑ Ñ Ð¿Ð¾Ð´ÑобнÑм опиÑанием пеÑÑонажа на ÑайÑе онлайн киноÑеаÑÑа START.");case"articles":return"ЧиÑаÑÑ Ð¿Ð¾Ð´Ð±Ð¾ÑÐºÑ ÑÑаÑей о ".concat(h," ").concat(n," в жÑÑнале онлайн-киноÑеаÑÑа Start.ru. Также новоÑÑи кино, обзоÑÑ ÑилÑмов и ÑеÑиалов и многое дÑÑгое на ÑÑÑаниÑаÑ
наÑего блога");default:if(d.subject&&d.subject.split("<p>")[1])return a=d.subject.split("<p>")[1].replace(/<\/p>/g,""),"".concat(a," СмоÑÑиÑе ").concat(m," ").concat(n," (").concat(p||M()().transform(n),")");return"СмоÑÑиÑе ".concat(m," ").concat(n," (").concat(p||M()().transform(n),") онлайн").concat("Product.Series"===l?" вÑе ÑеÑии подÑÑд":""," в Ñ
оÑоÑем HD каÑеÑÑве")}},this.handleVideoDescription=(t,e,i,o,s,r,a,l)=>{if((null==l?void 0:l.virtual)===!1)return this.handleRegisteredVideoDescription(t,e,i,o,s,a);let{_cls:n,title:c,seo:_,genres:d,items:p,year:u,description:h}=t,m=d&&d.length&&d[0].title?"".concat(d[0].title.toLowerCase()):"",v=this.getVideoYear({items:p,year:u}),g=t=>(t&&t.split("<p>")[1]?t.split("<p>")[1].replace(/<\/p>/g,""):t||"").replace(/<[^>]*>/g,"").trim();switch(e){case"trailers":return"ÐÑе ÑÑейлеÑÑ Ðº ".concat("Product.Series"===n?"ÑеÑиалÑ":"ÑилÑмÑ"," ").concat(c).concat("Product.Movie"===n&&u?" (".concat(u,")"):""," â ÑмоÑÑиÑе в онлайн-киноÑеаÑÑе START");case"trailer":{let t=(null==o?void 0:o.title)||"";return"Product.Series"===n?"".concat(t," к ÑеÑÐ¸Ð°Ð»Ñ ").concat(c," â в онлайн-киноÑеаÑÑе START"):"СмоÑÑиÑе ".concat(t," к ÑилÑÐ¼Ñ ").concat(c).concat("Product.Movie"===n&&u?" (".concat(u,")"):""," â в онлайн-киноÑеаÑÑе START")}case"extras":return"ÐополниÑелÑнÑе видео к ".concat("Product.Series"===n?"ÑеÑиалÑ":"ÑилÑмÑ"," ").concat(c).concat("Product.Movie"===n&&u?" (".concat(u,")"):"",": кадÑÑ Ñо ÑÑÑмок, ÑоÑо, инÑеÑвÑÑ Ñ Ð°ÐºÑÑÑами на START");case"extra":return"ÐополниÑелÑное видео к ".concat("Product.Series"===n?"ÑеÑиалÑ":"ÑилÑмÑ"," ").concat(c).concat("Product.Movie"===n&&u?" (".concat(u,")"):"",": ").concat(rz(r)," â ÑмоÑÑиÑе в онлайн-киноÑеаÑÑе START");case"seasons":{let t=null==p?void 0:p.find(t=>t.num==a),e=(null==t?void 0:t.year)?" (".concat(t.year,")"):"",i=g(null==t?void 0:t.seo_text)||g(null==t?void 0:t.description)||g(null==_?void 0:_.short_description)||g(h);return"СмоÑÑиÑе беÑплаÑно ".concat(a," Ñезон ÑеÑиала ").concat(c).concat(e," â вÑе ÑеÑии онлайн в Ñ
оÑоÑем каÑеÑÑве на START").concat(i?": ".concat(i):"")}case"episode":{let t=g(null==i?void 0:i.seo_text)||g(null==i?void 0:i.description);return"СмоÑÑиÑе беÑплаÑно ".concat(i.number," ÑеÑÐ¸Ñ ").concat(a," Ñезона ÑеÑиала ").concat(c," â ÑмоÑÑиÑе онлайн в Ñ
оÑоÑем каÑеÑÑве на START").concat(t?": ".concat(t):"")}case"selections":{let t=v?" (".concat(v,")"):"",e="Product.Series"===n?"СеÑÐ¸Ð°Ð»Ñ Ð¸ ÑилÑÐ¼Ñ Ð¿Ð¾Ñ
ожие на ".concat(c).concat(t):"ФилÑÐ¼Ñ Ð¿Ð¾Ñ
ожие на ".concat(c).concat(t);return"".concat(e).concat(m?", Ð¶Ð°Ð½Ñ ".concat(m):""," â ÑмоÑÑиÑе в онлайн-киноÑеаÑÑе START в Ñ
оÑоÑем каÑеÑÑве")}case"person":return"ÐолнÑй ÑоÑÑав ÑÑÑмоÑной гÑÑÐ¿Ð¿Ñ ".concat("Product.Series"===n?"ÑеÑиала":"ÑилÑма"," ").concat(c).concat(v?" (".concat(v,")"):"");case"characters":return"ÐеÑÑонажи ".concat("Product.Series"===n?"ÑеÑиала":"ÑилÑма"," ").concat(c,": опиÑÐ°Ð½Ð¸Ñ Ð¸ иÑÑоÑии геÑоев, акÑÑÑÑ Ð¸ÑполнивÑие Ñоли");case"hero":{let t=(null==s?void 0:s.name)?" â ÑÐ¾Ð»Ñ Ð¸Ð³ÑÐ°ÐµÑ Ð°ÐºÑÐµÑ ".concat(s.name):"";return"ÐÑÑоÑÐ¸Ñ Ð¸ Ñ
аÑакÑеÑиÑÑика геÑÐ¾Ñ ".concat(s.character.name," из ").concat("Product.Movie"===n?"ÑилÑма ":"").concat(c," на START").concat(t)}case"articles":return"СÑаÑÑи и новоÑÑи ".concat("Product.Series"===n?"ÑеÑиала":"ÑилÑма"," ").concat(c," на START");default:{let t=g(null==_?void 0:_.subject)||g(null==_?void 0:_.short_description)||g(h);if("Product.Series"===n)return"СмоÑÑиÑе беÑплаÑно ÑеÑиал ".concat(c).concat(v?" (".concat(v,")"):""," в онлайн-киноÑеаÑÑе START â вÑе ÑÐµÐ·Ð¾Ð½Ñ Ð¸ ÑеÑии в Ñ
оÑоÑем каÑеÑÑве").concat(t?": ".concat(t):"");return"СмоÑÑиÑе беÑплаÑно ÑилÑм ".concat(c).concat(v?" (".concat(v,")"):""," в онлайн-киноÑеаÑÑе START в Ñ
оÑоÑем каÑеÑÑве").concat(t?": ".concat(t):"")}}},this.handleRegisteredVideoTitle=()=>{let{page:t,hero:e,episode:i,seasonNum:o,trailer:s}=this.props,{_cls:r,title:a,year:l,genres:n,for_kids:_,alias:d,items:p}
1=this.props.movie.movie,u=(0,c.FP)(r,_,a,d),h=r.split(".")[1],m=this.getVideoYear({items:p,year:l}),v=n&&n.length&&n[0].title?n[0].title.toLowerCase():"",g="";switch(t){case"seasons":g="".concat(a," ").concat(o," Ñезон â¹ ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½ вÑе ÑеÑии подÑÑд в Ñ
оÑоÑем каÑеÑÑве HD");break;case"episode":g="".concat(a,": ").concat(o," Ñезон â¹ ").concat(i.title," â¹ ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½ вÑе ÑеÑии подÑÑд в Ñ
оÑоÑем каÑеÑÑве HD");break;case"trailers":g="".concat(a,": ТÑейлеÑÑ Ðº ").concat(u,"Ñ Ð½Ð° Start.ru");break;case"trailer":g="".concat(a," â¹ ").concat(0===s.title.replace(/^ТÑейлеÑ/,"").length?"ТÑейлеÑ":s.title," ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½");break;case"characters":g="ÐеÑои ".concat("пÑогÑамма"==u.toLowerCase()?"пÑогÑаммÑ":"".concat(u.toLowerCase(),"а")," â ").concat(a,". ÐеÑои, пеÑÑонажи, акÑеÑÑ Ð¸ иÑ
Ñоли в ").concat("пÑогÑамма"==u.toLowerCase()?"пÑогÑаммаÑ
":"".concat(u.toLowerCase(),"аÑ
")," на Start.ru");break;case"hero":e&&(g="".concat(e.character.name," ").concat(e.name?"(".concat(e.name,")"):"",": геÑой и пеÑÑонаж ").concat("ÐÑкабÑ"===a?"ÐÑогÑаммÑ":(0,c.FP)(r,_,a,d)).concat("ÐÑкабÑ"===a?"":"a"," ").concat(a," на Start.ru"));break;case"articles":g="".concat(a,": СÑаÑÑи о ").concat(u,"е");break;case"person":g="".concat(a,": ÐкÑеÑÑ Ð¸ СÑемоÑÐ½Ð°Ñ ÐÑÑппа ").concat(u,"а");break;case"selections":g="".concat(a,": ÐодбоÑки и РекомендаÑии к ").concat(u,"Ñ")}return g||("Series"!==h?"".concat(a," â¹ ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½ в Ñ
оÑоÑем каÑеÑÑве").concat(v?", ".concat(v):"").concat(m?", ".concat(m):""):"".concat(a," ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½ вÑе ÑеÑии подÑÑд").concat(v?", ".concat(v):""))},this.handleVideoTitle=t=>{if((null==t?void 0:t.virtual)===!1)return this.handleRegisteredVideoTitle();let{movie:e}=this.props.movie,{page:i,hero:o,episode:s,seasonNum:r,trailer:a,extra:l}=this.props;return rY({movie:e,page:i,hero:o,episode:s,seasonNum:r,trailer:a,extra:l})},this.getWorldCupGenreLink=(t,e)=>{if(!(null==e?void 0:e.slug))return"/genres";let i=e.slug.replace("cartoon","kids");return"/".concat("Product.Movie"===t._cls?"movies":"series","/").concat(i)},this.getWorldCupBreadCrumbs=(t,e,i,o,s)=>{let[r]=(null==t?void 0:t.genres)||[],a=T(s),l=x(t,o),n=[{link:"/series",title:"СеÑÐ¸Ð°Ð»Ñ Ð¾Ð½Ð»Ð°Ð¹Ð½",name:"СеÑиалÑ"},{link:this.getWorldCupGenreLink(t,r),title:"СеÑÐ¸Ð°Ð»Ñ ".concat((null==r?void 0:r.title)||"ÐÐ°Ð½Ñ Ð½Ðµ Ñказан"," онлайн"),name:(null==r?void 0:r.title)||"ÐÐ°Ð½Ñ Ð½Ðµ Ñказан"},{link:e?"/watch/".concat(t.alias):null,title:"".concat(t.title).concat(e?"":a),name:"".concat(t.title).concat(e?"":a)}];return"seasons"===e&&n.push({title:"".concat(l).concat(a),name:"".concat(l).concat(a)}),"episode"===e&&n.push({title:l,name:l,link:"/watch/".concat(t.alias,"/season-").concat(o)},{title:"".concat(i.title).concat(a),name:"".concat(i.title).concat(a)}),n}}}let rq=(0,s.withRouter)((0,l.Ng)(t=>({profile:t.profile,movie:t.movie,systemInformation:t.systemInformation,registration:t.registration,toggle:t.toggle}),rG)(rJ)),rZ={setSourceData:m.iF,fetchedMovieData:h.KN,toggleNotFound:v.GJ,toggleIsCdpCompatibleWasOpen:v.LX};class rQ extends a.Component{static async getInitialProps(t){var e,i,o,s,r,a,l,d,p,m,g,f,x,y,w,T;let S,j,C,B;let N=["trailers","person","characters","articles","selections","extras"],{originalUrl:P}=t.req||{},{params:I}=t.query,D=null==I?void 0:I[0],A=null==I?void 0:I[1],E=null==I?void 0:I[2],{asPath:L}=t,M="",U="",H={},O=!1,F="",W="",K=!1,V=(null===(i=t.reduxStore.getState())||void 0===i?void 0:null===(e=i.systemInformation)||void 0===e?void 0:e.API_URL)||c.H$,z=(null===(s=t.reduxStore.getState())||void 0===s?void 0:null===(o=s.systemInformation)||void 0===o?void 0:o.API_KEY)||c.Lq,Y=t.req&&t.req.headers&&t.req.headers["geoip-country-code"]?"&geoip_cc=".concat(t.req.headers["geoip-country-code"]):"",G=t.req&&t.req.cookies&&"True"==t.req.cookies.FOR_KIDS||"True"===(0,_.Ri)("FOR_KIDS")?"&for_kids=true":"&for_kids=false",J=(null===(a=t.reduxStore.getState())||void 0===a?void 0:null===(r=a.systemInformation)||void 0===r?void 0:r.locale)||(null==t?void 0:null===(l=t.query)||void 0===l?void 0:l.locale)||"ru",q="&locale=".concat(J),Z="&content_lang=".concat(J),Q="&for_kids=true"===G,X="".concat(V).concat(n.PI.watchUrl,"/").concat(encodeURI(D)).concat(z).concat(Y).concat(q).concat(Z);if(await (0,_.Gf)(V,z,D,t,"product",!0),-1!==L.indexOf("watch")){let e=await fetch(X,{credentials:"include",method:"GET"});if(e.status<400){if((M=await e.json())&&(null==M?void 0:M.uid)===D)return t&&t.res&&(t.res.statusCode=404),t.reduxStore.dispatch((0,v.GJ)(!0)),t.reduxStore.dispatch((0,h.KN)(null)),{apiUrl:V};if((null==M?void 0:M.for_kids)===!1&&u(t))return t.res?(t.res.writeHead(302,{Location:"/kids"}),t.res.end(),{redirected:!0}):{isAdultOnly:!0};if(t.reduxStore.dispatch((0,h.KN)(M)),!Q){let t="".concat(V).concat(n.PI.productArticles).concat(M.uid).concat(z).concat(q).concat(Z),e=await fetch(t,{credentials:"include",method:"GET"});e.status<400&&(U=await e.json())}let i="".concat(V).concat(n.PI.streamMeta,"/").concat(encodeURI(D)).concat(z).concat(Y).concat(q).concat(Z),o=await fetch(i,{credentials:"include",method:"GET"});o.status<400&&(H=await o.json())}else{if((null==t?void 0:t.res)&&404===e.status)return t.res.statusCode=404,t.reduxStore.dispatch((0,v.GJ)(!0)),t.reduxStore.dispatch((0,h.KN)(null)),M=await e.json(),R.Cp(M),{notFound:!1,apiUrl:V,watchAlias:D,geoip_cc:Y,for_kids:G,current_locale:q,current_content_lang:Z};let i=await e.json();R.Cp(i)}}if(E&&!((t,e,i)=>{switch(t){case"trailers":if(i.additional_content.find(t=>t.start_id==e))return!0;break;case"characters":if(i.cast.find(t=>t.character.start_id==e))return!0;break;case"extras":if(i.promo_content.find(t=>t.start_id==e))return!0;break;default:return!1}})(A,E,M))return t&&t.res&&(t.res.statusCode=404),t.reduxStore.dispatch((0,v.GJ)(!0)),{apiUrl:V,pageNotFound:K=!0};if(t&&t.req&&t.req.url&&-1!==t.req.url.indexOf("in_favorite")&&(O=!0),!M)return t&&t.res&&(t.res.statusCode=404),t.reduxStore.dispatch((0,v.GJ)(!0)),{apiUrl:V};if(k(M.uid)&&b.includes(A))return t&&t.res&&(t.res.statusCode=404),t.reduxStore.dispatch((0,v.GJ)(!0)),t.reduxStore.dispatch((0,h.KN)(null)),{apiUrl:V,pageNotFound:K=!0};if(M&&A&&-1===N.indexOf(A)&&-1===A.indexOf("season-")){if(isNaN(A))t&&t.res&&(t.res.statusCode=404),t.reduxStore.dispatch((0,v.GJ)(!0));else if(null==M?void 0:null===(T=M.items)||void 0===T?void 0:T.length){let e=!1;M.items.map(t=>{var i;(null==t?void 0:null===(i=t.items)||void 0===i?void 0:i.find(t=>t.start_id==A))&&(e=!0)}),e||(t&&t.res&&(t.res.statusCode=404),t.reduxStore.dispatch((0,v.GJ)(!0)))}else t&&t.res&&(t.res.statusCode=404),t.reduxStore.dispatch((0,v.GJ)(!0))}if("seasons"===A)return t&&t.res&&(t.res.statusCode=404),t.reduxStore.dispatch((0,v.GJ)(!0)),{apiUrl:V};if(M&&A&&-1!==A.indexOf("season-")){if(isNaN(parseInt(A.split("-")[1]))||!/^season-\d+$/.test(A)||(B=parseInt(A.split("-")[1]))&&M.items&&!M.items.filter(t=>t.number==B)[0]||0===B)return t&&t.res&&(t.res.statusCode=404),t.reduxStore.dispatch((0,v.GJ)(!0)),{apiUrl:V};F=A,A="seasons"}if(M&&M.items&&A&&!isNaN(Number(A))){let e=Number(A),i=await M.items.find(t=>t.items.some(t=>t.start_id===e));if(!i)return t&&t.res&&(t.res.statusCode=404),t.reduxStore.dispatch((0,v.GJ)(!0)),{apiUrl:V};A="episode",B=i.num,(W=await i.items.find(t=>t.start_id===e)).seasonNum=i.num}if(M&&"trailers"===A&&E){if(A="trailer",isNaN(E))return t&&t.res&&(t.res.statusCode=404),t.reduxStore.dispatch((0,v.GJ)(!0)),{apiUrl:V};let e=Number(E),i=await M.additional_content.find(t=>t.start_id===e);if(!i)return t&&t.res&&(t.res.statusCode=404),t.reduxStore.dispatch((0,v.GJ)(!0)),{apiUrl:V};S=i}if(M&&"characters"===A&&E){if(A="hero",isNaN(E))return t&&t.res&&(t.res.statusCode=404),t.reduxStore.dispatch((0,v.GJ)(!0)),{apiUrl:V};let e=Number(E),i=await M.cast.find(t=>t.character.start_id===e);
1if(!i||!(i.character.name&&i.character.photo&&i.character.biography))return t&&t.res&&(t.res.statusCode=404),t.reduxStore.dispatch((0,v.GJ)(!0)),{apiUrl:V};j=i}if(M&&"extras"===A&&E){if(A="extra",isNaN(E))return t&&t.res&&(t.res.statusCode=404),t.reduxStore.dispatch((0,v.GJ)(!0)),{apiUrl:V};let e=Number(E),i=M.promo_content.find(t=>t.start_id==e);if(!i)return t&&t.res&&(t.res.statusCode=404),t.reduxStore.dispatch((0,v.GJ)(!0)),{apiUrl:V};C=i}if(E&&-1!==N.indexOf(E))return t&&t.res&&(t.res.statusCode=404),t.reduxStore.dispatch((0,v.GJ)(!0)),{apiUrl:V};let $=(null==M?void 0:M.cast)&&(null==M?void 0:null===(d=M.cast)||void 0===d?void 0:d.length)||(null==M?void 0:M.directors)&&(null==M?void 0:null===(p=M.directors)||void 0===p?void 0:p.length)||(null==M?void 0:M.operators)&&(null==M?void 0:null===(m=M.operators)||void 0===m?void 0:m.length)||(null==M?void 0:M.producers)&&(null==M?void 0:null===(g=M.producers)||void 0===g?void 0:g.length)||(null==M?void 0:M.writers)&&(null==M?void 0:null===(f=M.writers)||void 0===f?void 0:f.length)||(null==M?void 0:M.composers)&&(null==M?void 0:null===(x=M.composers)||void 0===x?void 0:x.length);return("selections"!==A||E||(null==M?void 0:null===(y=M.hashtags)||void 0===y?void 0:y.length)||M.similar.length)&&("trailers"!==A||E||M.additional_content.length&&!M.is_disabled)&&("person"!==A||E||$)&&("articles"!==A||E||(null==U?void 0:null===(w=U.articles)||void 0===w?void 0:w.length))&&("extras"!==A||E||M.promo_content.length)?{data:M,originalUrl:P,inFavorite:O,geoip_cc:Y,requestLink:X,page:A,season:F,episode:W,seasonNum:B,trailer:S,hero:j,extra:C,kidsProfile:Q,isAdultOnly:(null==M?void 0:M.for_kids)===!1,apiUrl:V,locale:J,articles:U,pageNotFound:K,streamMeta:H}:(t&&t.res&&(t.res.statusCode=404),t.reduxStore.dispatch((0,v.GJ)(!0)),{apiUrl:V})}componentDidMount(){this.isAdultOnlyForChild(this.props)&&r().replace("/kids")}componentDidUpdate(t){!this.isAdultOnlyForChild(t)&&this.isAdultOnlyForChild(this.props)&&r().replace("/kids")}componentWillUnmount(){this.props.toggleIsCdpCompatibleWasOpen(!1)}render(){let{originalUrl:t,inFavorite:e,page:i,season:s,episode:r,seasonNum:a,trailer:l,hero:n,extra:c,kidsProfile:_,apiUrl:d,articles:p,pageNotFound:u,streamMeta:h,redirected:m}=this.props;return m||this.isAdultOnlyForChild(this.props)?null:(0,o.jsx)(rq,{originalUrl:t,inFavorite:e,page:i,season:s,episode:r,seasonNum:a,trailer:l,hero:n,extra:c,kidsProfile:_,apiUrl:d,articles:p,pageNotFound:u,streamMeta:h})}constructor(...t){super(...t),this.isAdultOnlyForChild=t=>{let{childProfile:e,isAdultOnly:i}=t;return!!(e&&i)}}}let rX=(0,s.withRouter)((0,l.Ng)(t=>({movie:t.movie,systemInformation:t.systemInformation,registration:t.registration,childProfile:d(t)}),rZ)(rQ))},25091:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var o=i(74848),s=i(96540),r=i(41919),a=i.n(r);class l extends s.Component{render(){let{red:t}=this.props;return(0,o.jsxs)("div",{className:a()["spinner-wrapper"],children:[t?(0,o.jsx)("svg",{className:"".concat(a()["spinner-forloading"]," ").concat(a()["spinner-big"]),width:"160",height:"160",viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M133.332 79.9994C133.332 109.454 109.454 133.332 79.9993 133.332C50.5445 133.332 26.6667 109.454 26.6667 79.9994C26.6667 50.5446 50.5445 26.6667 79.9993 26.6667",stroke:"#FF0019",strokeWidth:"8",strokeLinecap:"round"})}):(0,o.jsx)("svg",{className:a()["spinner-forloading"],xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",children:(0,o.jsx)("path",{fill:"none",fillRule:"evenodd",stroke:"#F2F2F2",strokeLinecap:"round",strokeWidth:"2",d:"M25 13c0-6.627-5.373-12-12-12S1 6.373 1 13",opacity:".4"})}),t?null:(0,o.jsx)("svg",{className:a()["spinner-row"],xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",children:(0,o.jsx)("path",{fill:"none",fillRule:"evenodd",stroke:"#F2F2F2",strokeLinecap:"round",strokeWidth:"2",d:"M25 13c0-6.627-5.373-12-12-12"})})]})}}},37913:t=>{t.exports={"storybook-root":"Articles_storybook-root__3fvVx",articles_main_r:"Articles_articles_main_r___GaOV","articles-main":"Articles_articles-main__P3qGL","articles-header-redesign":"Articles_articles-header-redesign__yNvo4",skeleton:"Articles_skeleton__rSLf2",linked:"Articles_linked__PQQBf","skeleton-grid":"Articles_skeleton-grid__k2FIP",article_grid:"Articles_article_grid__KhgRk",article__background:"Articles_article__background__UndeO",article__title:"Articles_article__title__lNETy",article__description:"Articles_article__description__AJ13Y",article:"Articles_article__hSUFX","article-content":"Articles_article-content__Dsj5J","article-arrow":"Articles_article-arrow__aAnq8",article__category:"Articles_article__category__TaorS","article__category-title":"Articles_article__category-title__KVvdS","article__category-mark":"Articles_article__category-mark__ib2o5","article-button-wrap":"Articles_article-button-wrap__HJUWN","article-button":"Articles_article-button__0TjCx"}},72110:t=>{t.exports={"storybook-root":"ArticlesSlider_storybook-root__27JEi",slider_wrap_grid:"ArticlesSlider_slider_wrap_grid__wQlsx","slider-wrap":"ArticlesSlider_slider-wrap__kebBW",items_wrap:"ArticlesSlider_items_wrap__AZ3qW",items_wrap__grid:"ArticlesSlider_items_wrap__grid__396c4","item-wrap":"ArticlesSlider_item-wrap__02nld",skeleton:"ArticlesSlider_skeleton__btzO1",slider__arrow:"ArticlesSlider_slider__arrow__B_HHS",slider__arrow__prev:"ArticlesSlider_slider__arrow__prev__M_hfz",slider__fade:"ArticlesSlider_slider__fade__vyJ_D",slider__fade__prev:"ArticlesSlider_slider__fade__prev__C67NB",slider__fade__next:"ArticlesSlider_slider__fade__next__UKj7H",slider__fade__child:"ArticlesSlider_slider__fade__child__yxUl6",slider__fade__vis:"ArticlesSlider_slider__fade__vis__LUUw8",visible:"ArticlesSlider_visible__2Qp16"}},32991:t=>{t.exports={"storybook-root":"Banner_storybook-root__UkU_b",banner:"Banner_banner__estAB",title:"Banner_title__WR_RL",description:"Banner_description__pj4sW",fee:"Banner_fee__b8n3_",button:"Banner_button__AkfBU",label:"Banner_label__z07V3",image:"Banner_image__objDg"}},93931:t=>{t.exports={"storybook-root":"Benefits_storybook-root__oafYg",benefits:"Benefits_benefits__CzyBL",bottom:"Benefits_bottom__vAnL9",advantages__list:"Benefits_advantages__list__uNnPV",advantages__item:"Benefits_advantages__item__h5tTz",advantages__item__title:"Benefits_advantages__item__title__anY7_",advantages__item__text:"Benefits_advantages__item__text__3VNwX",advantages__item__image:"Benefits_advantages__item__image__DZxNe",advantages__item__description:"Benefits_advantages__item__description__YP4Vb",benefits__wrapper:"Benefits_benefits__wrapper__oGEv_",title:"Benefits_title__fGvbK",title__price:"Benefits_title__price__4wqIR",horizontal__devider__gradient:"Benefits_horizontal__devider__gradient__5ysj3",advanteges__list:"Benefits_advanteges__list__J4ozM",devider__gradient:"Benefits_devider__gradient__GP608",title__wrapper:"Benefits_title__wrapper__zlMQy",title__image:"Benefits_title__image__dPQ2F",advanteges__item__image:"Benefits_advanteges__item__image__nOTYm",ttile:"Benefits_ttile__vesPF",advanteges__item:"Benefits_advanteges__item__lmmdO"}},16729:t=>{t.exports={"storybook-root":"Cast_storybook-root__BSIvH",product__cast:"Cast_product__cast__lJzrK",product__cast_tsbr:"Cast_product__cast_tsbr__fb3iq","product__cast-tabs-tsbr":"Cast_product__cast-tabs-tsbr__UbeRr","product__cast-tab-tsbr":"Cast_product__cast-tab-tsbr__TwAxH","product__cast-tabs-holod":"Cast_product__cast-tabs-holod__5hlo7","product__cast-tab-holod":"Cast_product__cast-tab-holod__4zZ6Q","product__cast-tabs-oldskul":"Cast_product__cast-tabs-oldskul__jN15t","product__cast-tab-oldskul":"Cast_product__cast-tab-oldskul__S0vyb","product__cast__category-slider-wrap":"Cast_product__cast__category-slider-wrap__ZMh_Q","product__cast-item-wrapper":"Cast_product__cast-item-wrapper__9Dgac","product__cast-title":"Cast_product__cast-title__Yp1be","product__cast-items":"Cast_product__cast-items__WUYUy","product__cast-role-wrapper":"Cast_product__cast-role-wrapper__mrfV4","product__cast-item":"Cast_product__cast-item__JzID4","product__cast-item-photo":"Cast_product__cast-item-photo__Gg4
1Sm","product__cast-item-default-photo":"Cast_product__cast-item-default-photo__DrDeN","product__cast-item-title":"Cast_product__cast-item-title__ck7BP",unpage:"Cast_unpage__U9J5_","product__cast-item-col-1":"Cast_product__cast-item-col-1__ZWXXg","product__cast-item-col-1-col-1":"Cast_product__cast-item-col-1-col-1__nnLHb","product__cast-unpage-block":"Cast_product__cast-unpage-block__WZbas","product__cast-unpage-block-role-wrapper":"Cast_product__cast-unpage-block-role-wrapper__XoTbq","product-block":"Cast_product-block__ySoGA","product__cast-item-mobile-col-1":"Cast_product__cast-item-mobile-col-1__L2wkI","product__cast-item-mobile-col-2":"Cast_product__cast-item-mobile-col-2__PjMcU","product__cast-item-mobile-col-3":"Cast_product__cast-item-mobile-col-3__BxKoU"}},58861:t=>{t.exports={"storybook-root":"CastInternalPage_storybook-root__GWFNq",internal_cast_wrap:"CastInternalPage_internal_cast_wrap__ZyHlN"}},80278:t=>{t.exports={"storybook-root":"CastCard_storybook-root__43_hE",skeleton__wrap:"CastCard_skeleton__wrap__yKV_d",skeleton__1:"CastCard_skeleton__1__o7EvD",skeleton__2:"CastCard_skeleton__2__l2inT",skeleton_grid__wrap:"CastCard_skeleton_grid__wrap__MRsbj",skeleton_grid__1_wrap:"CastCard_skeleton_grid__1_wrap__4Z8Ex",skeleton_grid__1:"CastCard_skeleton_grid__1__NONdt",skeleton_grid__2:"CastCard_skeleton_grid__2__ARqvk",item_wrap_grid:"CastCard_item_wrap_grid__q1Cm6",item_grid:"CastCard_item_grid__pMTgP",item_grid__img_wrap:"CastCard_item_grid__img_wrap__pW3Zc",item_grid__photo:"CastCard_item_grid__photo__Gyr6H",item_grid__no_photo:"CastCard_item_grid__no_photo__qgqz2",item_grid__fio:"CastCard_item_grid__fio__pQaUa",item_grid__fio__name:"CastCard_item_grid__fio__name__yEcq5",item_grid__fio__lastname:"CastCard_item_grid__fio__lastname__6OlMK",item_wrap:"CastCard_item_wrap__WWVDq",item:"CastCard_item__jfVn4",item__photo:"CastCard_item__photo__60vZ_",item__no_photo:"CastCard_item__no_photo__ow7_i",item__fio:"CastCard_item__fio__Z35Hc",item__fio__name:"CastCard_item__fio__name__Xu1L5",item__fio__lastname:"CastCard_item__fio__lastname__9FYaw"}},62971:t=>{t.exports={"storybook-root":"CastSlider_storybook-root__sRoeK","slider-wrap":"CastSlider_slider-wrap__1VH5j",items_wrap:"CastSlider_items_wrap__yz7M8",items_wrap__grid:"CastSlider_items_wrap__grid__eV_X5"}},38773:t=>{t.exports={"storybook-root":"Description_storybook-root__fZc9g",product__description:"Description_product__description__Pi8NC",product_holod:"Description_product_holod__ElN6J","product__description-shadow-bottom":"Description_product__description-shadow-bottom__2rAyH","product__description-wrapper":"Description_product__description-wrapper__uF11e","product__description-wrapper__skeleton-block-1":"Description_product__description-wrapper__skeleton-block-1__QHECj","product__description-wrapper__skeleton-1":"Description_product__description-wrapper__skeleton-1__wIMhT","product__description-wrapper__skeleton-block-2":"Description_product__description-wrapper__skeleton-block-2__yh1v0","product__description-wrapper__skeleton-2":"Description_product__description-wrapper__skeleton-2__9oKk5","product__description-wrapper__skeleton-block-3":"Description_product__description-wrapper__skeleton-block-3__9EzAC","product__description-title":"Description_product__description-title__7MY0b","product__description-rating":"Description_product__description-rating__juptI","product__description-rating-block-wrap":"Description_product__description-rating-block-wrap__h7iBo","product__description-rating-block":"Description_product__description-rating-block__bTktK","product__description-rating__low-rating":"Description_product__description-rating__low-rating__LrBLk","product__description-rating-text":"Description_product__description-rating-text__IT7JA","product__description-rating-text-title":"Description_product__description-rating-text-title__hXt8V","product__description-rating-text-title-2":"Description_product__description-rating-text-title-2__1tQj3","product__description-start":"Description_product__description-start__LSG8N","product__description-start_rating":"Description_product__description-start_rating__325SV","product__description-rating-buttons":"Description_product__description-rating-buttons__nlam8","product__description-rating-buttons__button_title":"Description_product__description-rating-buttons__button_title__vxpkF","product__description-social":"Description_product__description-social__KoXe_","product__description-social_ico":"Description_product__description-social_ico__TNgAp","product__description-social_ico-tg":"Description_product__description-social_ico-tg__MhDzV","product__description__text-wrap":"Description_product__description__text-wrap__MaW_B","product__description-text":"Description_product__description-text__Vm54B","product__description-shadow-top":"Description_product__description-shadow-top__5L0zB","product__description-shadow-invisible":"Description_product__description-shadow-invisible__8QeJX",product:"Description_product__K11Sd",product_oldskul:"Description_product_oldskul__OclMJ","product__description-wrapper__skeleton-3":"Description_product__description-wrapper__skeleton-3__NGi__","product__description-wrapper__skeleton-4":"Description_product__description-wrapper__skeleton-4__JZ8dK","product__description-more":"Description_product__description-more__j40yf","product__description-more_img-rotate":"Description_product__description-more_img-rotate__UToHh"}},31650:t=>{t.exports={"storybook-root":"DescriptionMeta_storybook-root__mTXW_",wrapper:"DescriptionMeta_wrapper__EXAOM","wrapper-skeleton":"DescriptionMeta_wrapper-skeleton__vFzP7",product_holod:"DescriptionMeta_product_holod__PX7ng","field__title-elem":"DescriptionMeta_field__title-elem__wXrOz","field__title-bg":"DescriptionMeta_field__title-bg__R3Iab","field__value-elem":"DescriptionMeta_field__value-elem__htvrr","field__value-bg":"DescriptionMeta_field__value-bg__NuRKb",product_oldskul:"DescriptionMeta_product_oldskul__7WMSF",content:"DescriptionMeta_content__V6elG",content__col:"DescriptionMeta_content__col__GoP_Q",field:"DescriptionMeta_field__0nSUy",field__title:"DescriptionMeta_field__title__HC8ku","field__title-skeleton":"DescriptionMeta_field__title-skeleton__wFWiG",field__value:"DescriptionMeta_field__value__aIPAl","field__value-skeleton":"DescriptionMeta_field__value-skeleton__kxUCA",field__divider:"DescriptionMeta_field__divider__9WUk8",more:"DescriptionMeta_more__wZh9_",more__text:"DescriptionMeta_more__text__z8foE","more-rotated":"DescriptionMeta_more-rotated__eme7V",more__skeleton:"DescriptionMeta_more__skeleton__X4M0H",more__skeletonArrow:"DescriptionMeta_more__skeletonArrow__sGHts"}},97662:t=>{t.exports={"storybook-root":"RatingBlock_storybook-root__oqmJw",kind_main:"RatingBlock_kind_main__rNDud",kind_topBlock:"RatingBlock_kind_topBlock__o0_wV",kind_tileBlock:"RatingBlock_kind_tileBlock__Lm445",kind_title:"RatingBlock_kind_title__qT8xJ",kind_description:"RatingBlock_kind_description__chVRR",kind_rating:"RatingBlock_kind_rating__b3sYB",kind_buttons:"RatingBlock_kind_buttons__BpVqf",kind_likeButton:"RatingBlock_kind_likeButton__hkjhe",kind_buttons_title:"RatingBlock_kind_buttons_title__ws0pM",kind_dislikeButton:"RatingBlock_kind_dislikeButton__nBjyz"}},9338:t=>{t.exports={"storybook-root":"RatingBlockHolod_storybook-root__Q5tMq",rating:"RatingBlockHolod_rating__8bw8h",rating__wrap:"RatingBlockHolod_rating__wrap__ie2GS",rating__state:"RatingBlockHolod_rating__state__Ztuh_",rating__buttons:"RatingBlockHolod_rating__buttons__GQUeH",rating__button_title:"RatingBlockHolod_rating__button_title__5IERa"}},74888:t=>{t.exports={"storybook-root":"RatingBlockOldskul_storybook-root__8Ynuw",rating:"RatingBlockOldskul_rating__TSJwl",rating__wrap:"RatingBlockOldskul_rating__wrap__C_cGX",rating__image:"RatingBlockOldskul_rating__image__Ekhyl",rating__content:"RatingBlockOldskul_rating__content__s2ipo",rating__block:"RatingBlockOldskul_rating__block__gjZbU",rating__value:"RatingBlockOldskul_rating__value__iY1ZN",rating__text:"RatingBlockOldskul_rating__text___bxvW",rating__title:"RatingBlockOldskul_rating__title__bGELk",rating__subtitle:"RatingBlockOldskul_rating__subtitle__ylX1e",rating__buttons:"RatingBlockOldskul_rating__buttons__Desbw",rating__button_title:"RatingBlockOldskul_rating__button_title__Dv8nr"}},17737:t=>{t.exports={"storybook-root":"RatingBlockTsbr_storybook-root__i9pnu",rating:"RatingBlockTsbr_rating___xOcI",rating__wrap:"RatingBlockTsbr_rating__wrap__026Zg",rating__meter:"RatingBlockTsbr_rating__meter__pWWH0",rating__meterBase:"RatingBlockTsbr_rating__meterBase__EzQML",rating__meterArrow:"RatingBlockTsbr_rating__meterArrow__c6xxk",rating__block:"RatingBlockTsbr_rating__block__gn_eH",rating__content:"RatingBlockTsbr_rating__content__6E9tb",rating__value:"RatingBlockTsbr_rating__value__7PYhS",rating__text:"RatingBlockTsbr_rating__text__EXnVb",rating__title:"RatingBlockTsbr_rating__title__MK872",rating__subtitle:"RatingBlockTsbr_rating__subtitle__5UklA",rating__buttons:"RatingBlockTsbr_rating__buttons__lYxlY",rating__button_title:"RatingBlockTsbr_rating__button_title__Oq18a"}},10729:t=>{t.exports={"storybook-root":"Episode_storybook-root__luu8Y","product__episode-wrapper":"Episode_product__episode-wrapper__yWNHN","product__episode-left-section":"Episode_product__episode-left-section__GdoqL","product__episode-image":"Episode_product__episode-image__TNj4D","product__episode-play":"Episode_product__episode-play__xDdRH","product__episode-info":"Episode_product__episode-info__SIaNf","product__episode-title":"Episode_product__episode-title__PGIsV","product__episode-duration":"Episode_product__episode-duration__78G37","product__episode-description":"Episode_product__episode-description__r6sY6","product__episode-more":"Episode_product__episode-more__WXCpT","product__episode-more_text":"Episode_product__episode-more_text__8NnVm","product__episode-more_image":"Episode_product__episode-more_image__tZlrH",rotate:"Episode_rotate__wgEZq","product__episode-right-section":"Episode_product__episode-right-section__ShRcm","product__episode-share":"Episode_product__episode-share__FIEl3","product__episode-social":"Episode_product__episode-social__lcgDK","product__episode-social_ico":"Episode_product__episode-social_ico__6DARX","product__episode-like":"Episode_product__episode-like__ahp8N","product__episode-unavailable":"Episode_product__episode-unavailable__Hmy7C","product__episode-unavailable-title":"Episode_product__episode-unavailable-title__tSZfQ","product__episode-unavailable-desc":"Episode_product__episode-unavailable-desc__JfdE5",product__episode:"Episode_product__episode__53bHa",child:"Episode_child__4dDzf","product__episode-up":"Episode_product__episode-up__InkYe","product__episode-down":"Episode_product__episode-down__EoP3x"}},5425:t=>{t.exports={"storybook-root":"Extra_storybook-root__Kk5Hy","product__trailer-wrapper":"Extra_product__trailer-wrapper__M_iv_","product__trailer-left-section":"Extra_product__trailer-left-section__ph3FD","product__trailer-image":"Extra_product__trailer-image__DX75M","product__trailer-play":"Extra_product__trailer-play__cDA4c","product__trailer-info":"Extra_product__trailer-info__4hH9a","product__trailer-title":"Extra_product__trailer-title__k4hS4","product__trailer-duration":"Extra_product__trailer-duration__mjASJ","product__trailer-description":"Extra_product__trailer-description__uqe0V","product__trailer-right-section":"Extra_product__trailer-right-section__CERJd","product__trailer-share":"Extra_product__trailer-share__WONfX","product__trailer-social":"Extra_product__trailer-social__0Ylel","product__trailer-social_ico":"Extra_product__trailer-social_ico__BwMAh","product__trailer-like":"Extra_product__trailer-like__qryNU",product__trailer:"Extra_product__trailer__0NJQr","product__trailer-more_text":"Extra_product__trailer-more_text__grIlG","product__trailer-up":"Extra_product__trailer-up__B6bKX","product__trailer-down":"Extra_product__trailer-down__htoAC",wrapper:"Extra_wrapper__CaF8d",content:"Extra_content__1mh_q",info:"Extra_info__R9RhC",meta:"Extra_meta__8zxgc",title:"Extra_title__nJ_cv",description:"Extra_description__l8TNb",poster:"Extra_poster__0lOKG",posterWrapper:"Extra_posterWrapper__rnok7",play:"Extra_play__LJNpW",posterImage:"Extra_posterImage__bYOCa",list:"Extra_list__OKrd_",skeleton:"Extra_skeleton__bYt_D"}},26601:t=>{t.exports={"storybook-root":"Extras_storybook-root__D0qXO",productC
1ontainer:"Extras_productContainer__L3Vs0",expandButton:"Extras_expandButton__SeqGm",header:"Extras_header__71MMA",productTitle:"Extras_productTitle__b1sOr",container:"Extras_container__JhXqm",title:"Extras_title__F16p7",list:"Extras_list__uCWqt"}},2509:t=>{t.exports={"storybook-root":"ExtrasCard_storybook-root__UQhLx",item:"ExtrasCard_item__7r6Hq",content:"ExtrasCard_content__0J9hP",poster:"ExtrasCard_poster__uy8Yz",posterWrapper:"ExtrasCard_posterWrapper__dV8Dt",play:"ExtrasCard_play__Pud20",posterImage:"ExtrasCard_posterImage__VPySO",info:"ExtrasCard_info__uVADy",title:"ExtrasCard_title__pRYf9",description:"ExtrasCard_description___X4qF",skeleton:"ExtrasCard_skeleton__NuxEm"}},16571:t=>{t.exports={"storybook-root":"ExtrasSlider_storybook-root__0HQyV",wrapper:"ExtrasSlider_wrapper___FAQw",items_wrap:"ExtrasSlider_items_wrap__sxyYq"}},2771:t=>{t.exports={"storybook-root":"ExtrasSliderCard_storybook-root___Ptu2",skeleton:"ExtrasSliderCard_skeleton__q_RyR",items_wrap:"ExtrasSliderCard_items_wrap__ep1QO",wrapper:"ExtrasSliderCard_wrapper__3Jfpd",card:"ExtrasSliderCard_card__MvVZn",poster:"ExtrasSliderCard_poster__T3lxH",poster__image:"ExtrasSliderCard_poster__image__vD8l7",poster__play:"ExtrasSliderCard_poster__play__6wKDz",text:"ExtrasSliderCard_text__Xfkhv",title:"ExtrasSliderCard_title__k3w_a",de
1scription:"ExtrasSliderCard_description__8dvp1"}},89577:t=>{t.exports={"storybook-root":"Facts_storybook-root__pb6Ky",product__facts:"Facts_product__facts__OeePB","product__facts-item":"Facts_product__facts-item__5sN7_","product__facts-item_index":"Facts_product__facts-item_index__Hl4bd","product__facts-item_text":"Facts_product__facts-item_text__ijEwq"}},10393:t=>{t.exports={"storybook-root":"Header_storybook-root__tms9N",header:"Header_header__Utsw_",registered:"Header_registered__BRwo6",empty:"Header_empty__S6ckh"}},77507:t=>{t.exports={"storybook-root":"Hero_storybook-root__3tiex","product__hero-wrapper":"Hero_product__hero-wrapper__LVZgK","product__hero-photo":"Hero_product__hero-photo__0XNGa","product__hero-info":"Hero_product__hero-info__3iJHo","product__hero-name":"Hero_product__hero-name__5QExO","product__hero-actor":"Hero_product__hero-actor__EoJ_g","product__hero-description":"Hero_product__hero-description__w7OHH","product__hero-more":"Hero_product__hero-more__7V1wG","product__hero-more_text":"Hero_product__hero-more_text__QpsAp","product__hero-more_image":"Hero_product__hero-more_image__K547F",rotate:"Hero_rotate__AOXiW",wrapper:"Hero_wrapper__CjlC_",content:"Hero_content__3ysyc",info:"Hero_info__J4yQG",meta:"Hero_meta__tj9Zc",actor:"Hero_actor__fC4sp",actorLink:"Hero_actorLink__8500f",description:"Hero_description__6b6jA",poster:"Hero_poster__F9God",posterWrapper:"Hero_posterWrapper__T3vmt",posterImage:"Hero_posterImage__yUQXC",list:"Hero_list___Uf0Q",skeleton:"Hero_skeleton__sM8lB"}},45078:t=>{t.exports={"storybook-root":"HeroCard_storybook-root__g1ang",item:"HeroCard_item__irvO_",content:"HeroCard_content__qc2Sc",poster:"HeroCard_poster__aQ4m8",posterWrapper:"HeroCard_posterWrapper__ZuzQA",posterImage:"HeroCard_posterImage__xBgN1",info:"HeroCard_info__HOFZ3",name:"HeroCard_name__50RUl",actor:"HeroCard_actor__QLoau",actorLink:"HeroCard_actorLink__Z1N1o",description:"HeroCard_description__vnKM_",skeleton:"HeroCard_skeleton___moE1"}},45852:t=>{t.exports={"storybook-root":"HeroCustom_storybook-root__Xls5T",hero_custom:"HeroCustom_hero_custom__fR_n9",title:"HeroCustom_title__5r_Sn",list:"HeroCustom_list__GOkzH",item:"HeroCustom_item__fNkIi",content:"HeroCustom_content__zveU_",name:"HeroCustom_name__Bk5D8",info:"HeroCustom_info__URSU9",infoRow:"HeroCustom_infoRow__dzdar",value:"HeroCustom_value__KwxYM",range:"HeroCustom_range__z5nvv",job:"HeroCustom_job__XWMp3",about:"HeroCustom_about__uKCIV",actions:"HeroCustom_actions__7_Ykw",profileBtn:"HeroCustom_profileBtn__XQRQa",messageBtn:"HeroCustom_messageBtn__iktGw",shareBtn:"HeroCustom_shareBtn__a_cxy",likeBtn:"HeroCustom_likeBtn__qEt1j"}},62443:t=>{t.exports={"storybook-root":"Heroes_storybook-root__VZlWC","heroes-wrap":"Heroes_heroes-wrap__7Qivn","product__heroes-wrapper":"Heroes_product__heroes-wrapper__fHFJO",product__heroes__header:"Heroes_product__heroes__header__BVJua",product__header:"Heroes_product__header__cXLki","product__heroes-wrap":"Heroes_product__heroes-wrap__SGNhK","product__heroes-item":"Heroes_product__heroes-item__Jp7fM","product__heroes-item_wrap":"Heroes_product__heroes-item_wrap__P7KFw","product__heroes-item_name":"Heroes_product__heroes-item_name__S9z7o","product__heroes-item_actor":"Heroes_product__heroes-item_actor__BK5uf","product__heroes-item_desription":"Heroes_product__heroes-item_desription__4Euw9",product__showMore:"Heroes_product__showMore__8MO5p",rotate:"Heroes_rotate__J67GD",wrapper:"Heroes_wrapper__Lr5Jr",list:"Heroes_list__y0jlg"}},12124:t=>{t.exports={"storybook-root":"HeroesSlider_storybook-root__RUUCn","slider-wrap":"HeroesSlider_slider-wrap__S68J_",skeleton:"HeroesSlider_skeleton__R_fuj",items_wrap:"HeroesSlider_items_wrap__Nt8Yf","item-wrap":"HeroesSlider_item-wrap__T9KXz",item:"HeroesSlider_item__2AlCE","item-photo":"HeroesSlider_item-photo__Y98zC",text:"HeroesSlider_text__lgf99",text__title:"HeroesSlider_text__title__nCFXR",text__subtitle:"HeroesSlider_text__subtitle__bEHcD",text__description:"HeroesSlider_text__description__q9hUo"}},7327:t=>{t.exports={"storybook-root":"NavBar_storybook-root__bASjt",link:"NavBar_link__hhB1k",active:"NavBar_active__joqEq","shadow-right":"NavBar_shadow-right__cL3t7","shadow-left":"NavBar_shadow-left__CvvoN","shadow-all":"NavBar_shadow-all__i5C9V"}},16344:t=>{t.exports={"storybook-root":"NavBarButton_storybook-root__T6i_1",button:"NavBarButton_button__xVGk7",button_tsbr:"NavBarButton_button_tsbr__ElPw7",button_holod:"NavBarButton_button_holod__lYfii","subscribed-product":"NavBarButton_subscribed-product__l1YlC","report-message":"NavBarButton_report-message__R_wN_","report-message-active":"NavBarButton_report-message-active__VfHyV","close-button":"NavBarButton_close-button__55W47"}},50422:t=>{t.exports={"storybook-root":"NavBarDesktop_storybook-root__iCxOG","navbar-wrap":"NavBarDesktop_navbar-wrap___svh_","nav-bar-visible":"NavBarDesktop_nav-bar-visible__SeqNL",navbar:"NavBarDesktop_navbar__OCboY","navbar__links-wrap":"NavBarDesktop_navbar__links-wrap__KD_9q",navbar_holod:"NavBarDesktop_navbar_holod__UAhCs","navbar__vertical-line":"NavBarDesktop_navbar__vertical-line__F_YK8"}},78762:t=>{t.exports={"storybook-root":"NavBarMoreButton_storybook-root__oC7rb","more-button-wrap":"NavBarMoreButton_more-button-wrap__fyaSa","more-button__links-block-wrap":"NavBarMoreButton_more-button__links-block-wrap__ciCIy","more-button__active":"NavBarMoreButton_more-button__active__iB_Bt",hide:"NavBarMoreButton_hide___mDm8"}},16301:t=>{t.exports={"storybook-root":"ProjectElements_storybook-root__K7C6S",projectElements:"ProjectElements_projectElements___ams9",projectElements__title:"ProjectElements_projectElements__title__otj5_",projectElements__button:"ProjectElements_projectElements__button__ydSCk",projectElements__image:"ProjectElements_projectElements__image__kYF1z"}},69625:t=>{t.exports={"storybook-root":"Selections_storybook-root__zKpU_",selections:"Selections_selections__TVox7",selections__title_redesign:"Selections_selections__title_redesign__iJg27",selections__title:"Selections_selections__title__oNyjj",selections__wrapper:"Selections_selections__wrapper__B3rDj",main:"Selections_main__KoCLt",selections__card:"Selections_selections__card__E1k7d",selections__footer:"Selections_selections__footer__6kGAB",selections__header:"Selections_selections__header__VH1H2",selections__head:"Selections_selections__head__U2a0j",selections__description:"Selections_selections__description__SlMDn",selections__emptyPadding:"Selections_selections__emptyPadding__6MjHR",selections__selections:"Selections_selections__selections__RIoTw",selections__nt:"Selections_selections__nt__aSUS0",selections__a:"Selections_selections__a__ZUlZU",selections__dl:"Selections_selections__dl___G6Bw",selections__dr:"Selections_selections__dr___WOFw",selections__wrap:"Selections_selections__wrap__Dg_nL",selections__safari:"Selections_selections__safari__Mc04y",selections__cWrap:"Selections_selections__cWrap__ORQ47",selections__aWrap:"Selections_selections__aWrap__j_m_2",selections__category:"Selections_selections__category__wWflV",selections__active:"Selections_selections__active__VQjBO",selections__category_child:"Selections_selections__category_child__w5aay","selections__tabs-tsbr":"Selections_selections__tabs-tsbr__V4LfE","selections__tab-tsbr":"Selections_selections__tab-tsbr__ZfpLy","selections__tabs-holod":"Selections_selections__tabs-holod__LRw3W","selections__tab-holod":"Selections_selections__tab-holod___TwYz","selections__tabs-oldskul":"Selections_selections__tabs-oldskul__FrU8S","selections__tab-oldskul":"Selections_selections__tab-oldskul__Ejjsx",selections__data:"Selections_selections__data__8x9Qk",selections__d:"Selections_selections__d__
16XSNw",selections__empty_selections:"Selections_selections__empty_selections__LWeA_",selections_redesign_exp:"Selections_selections_redesign_exp__NabKc"}},34110:t=>{t.exports={"storybook-root":"SelectionsCard_storybook-root__oxrYo","selection-skeleton-card":"SelectionsCard_selection-skeleton-card__4sRBp",items_wrap:"SelectionsCard_items_wrap__stdBw","item-wrap":"SelectionsCard_item-wrap__XuZbz","selection-item-grid":"SelectionsCard_selection-item-grid__CuJaN","selection-item-grid-img-wrap":"SelectionsCard_selection-item-grid-img-wrap__dGI1X","item-wrap-grid":"SelectionsCard_item-wrap-grid__zeXwP","selection-item":"SelectionsCard_selection-item__BsByM","selection-item__titles-selection-title":"SelectionsCard_selection-item__titles-selection-title__eOero","selection-item__subtitle":"SelectionsCard_selection-item__subtitle__JIYbA","selection-item-img-wrap":"SelectionsCard_selection-item-img-wrap__2Us6Q","selection-item-img-wrap-poster":"SelectionsCard_selection-item-img-wrap-poster__zeiR4","selection-item-img-wrap-rating":"SelectionsCard_selection-item-img-wrap-rating__I5iAi","selection-item-img-wrap-rating-high":"SelectionsCard_selection-item-img-wrap-rating-high__BNcpP","selection-item__link":"SelectionsCard_selection-item__link__DfgPp","selection-item__titles":"SelectionsCard_selection-item__titles__Ke8ZE","selection-item__titles-title-badge-block":"SelectionsCard_selection-item__titles-title-badge-block__joW77","selection-item__titles-badge":"SelectionsCard_selection-item__titles-badge__JrqPk","selection-item__titles__selection__badge":"SelectionsCard_selection-item__titles__selection__badge__bK_2o","selection-item__description":"SelectionsCard_selection-item__description__AH1JN","selection-item__titles__selection__badge__double":"SelectionsCard_selection-item__titles__selection__badge__double__Bjsef","selection-item__titles__selection__badge__single":"SelectionsCard_selection-item__titles__selection__badge__single__tQ1JJ","selection-item__titles-title":"SelectionsCard_selection-item__titles-title__PIc1w","selection-skeleton-card-grid":"SelectionsCard_selection-skeleton-card-grid__OC1el","selection-item__subtitle-wrap":"SelectionsCard_selection-item__subtitle-wrap__s2b7Z"}},75043:t=>{t.exports={"storybook-root":"SelectionsSlider_storybook-root__O_dII","slider-wrap":"SelectionsSlider_slider-wrap__6_Si3",slider__wrap_grid:"SelectionsSlider_slider__wrap_grid__6C53d",items_wrap:"SelectionsSlider_items_wrap__e4Ktv",items_wrap__grid:"SelectionsSlider_items_wrap__grid__PcqhK"}},23321:t=>{t.exports={"storybook-root":"Subject_storybook-root__dyc0x",product__subject:"Subject_product__subject__tYKGJ","product__subject-content":"Subject_product__subject-content__aNtiv","product__subject-more":"Subject_product__subject-more__Z2yOt","product__subject-more_text":"Subject_product__subject-more_text___tSP3","product__subject-more_image":"Subject_product__subject-more_image__L5pSz",rotate:"Subject_rotate__RSxU1"}},65027:t=>{t.exports={"storybook-root":"TopBlock_storybook-root__xjiXA",TopBlock:"TopBlock_TopBlock__XxkEX","TopBlock_tvoe-serdce-budet-razbito":"TopBlock_TopBlock_tvoe-serdce-budet-razbito__jNTlZ","TopBlock__play-trailer":"TopBlock_TopBlock__play-trailer__4XiY0","TopBlock__small-buttons":"TopBlock_TopBlock__small-buttons__lJckH","TopBlock__favorites-big":"TopBlock_TopBlock__favorites-big__RMX81","TopBlock__button-play":"TopBlock_TopBlock__button-play__J9GL9","TopBlock__play-trailer-full":"TopBlock_TopBlock__play-trailer-full__W6oGe",TopBlock_holod:"TopBlock_TopBlock_holod__ji2sz","TopBlock__button-preview":"TopBlock_TopBlock__button-preview__U9H6X","left-wrapper":"TopBlock_left-wrapper__qdj49",TopBlock__shadow:"TopBlock_TopBlock__shadow__ZvCxm",TopBlock__shadow_redesign:"TopBlock_TopBlock__shadow_redesign__2e8x0",TopBlock__shadow_full:"TopBlock_TopBlock__shadow_full__bzOyn","TopBlock__shadow-bottom":"TopBlock_TopBlock__shadow-bottom__CPa3v",TopBlock_wrapper_holod:"TopBlock_TopBlock_wrapper_holod__HAphE",TopBlock_wrapper_redesign:"TopBlock_TopBlock_wrapper_redesign__OeriW",TopBlock__redesign_exp:"TopBlock_TopBlock__redesign_exp__ZjYnS",TopBlock__redesign_exp__backButton:"TopBlock_TopBlock__redesign_exp__backButton__Gimdb",TopBlock__redesign_exp__breadcrumbsWrap:"TopBlock_TopBlock__redesign_exp__breadcrumbsWrap__iPhFG",TopBlock__redesign_exp__rating:"TopBlock_TopBlock__redesign_exp__rating__Ve0gW","TopBlock-wrapper":"TopBlock_TopBlock-wrapper__PZ5yr",small:"TopBlock_small__EwRzX","TopBlock-wrapper-small_redesign":"TopBlock_TopBlock-wrapper-small_redesign__e3lB3","geo-small":"TopBlock_geo-small__QolQI",onboarding:"TopBlock_onboarding__wga79",registered:"TopBlock_registered__1P_8i",bottom:"TopBlock_bottom__9JDTO",TopBlock__blur:"TopBlock_TopBlock__blur__IsnZY",TopBlock__poster:"TopBlock_TopBlock__poster__FSEj_",TopBlock__agreement:"TopBlock_TopBlock__agreement__MoGat","TopBlock__agreement-internal-page":"TopBlock_TopBlock__agreement-internal-page__8BCt_",TopBlock__background:"TopBlock_TopBlock__background__1C8CF",TopBlock__trailer:"TopBlock_TopBlock__trailer__OYv43",controls:"TopBlock_controls__9LR15",controls__tooltip:"TopBlock_controls__tooltip__Tb5iv",controls__inner:"TopBlock_controls__inner__oai3h",controls__button:"TopBlock_controls__button__efWGZ",tooltip:"TopBlock_tooltip__IcZH2",tooltip__triangle:"TopBlock_tooltip__triangle__j2Bby",TopBlock__play:"TopBlock_TopBlock__play__Jxz_k",TopBlock__logotype:"TopBlock_TopBlock__logotype__zygBp",TopBlock__logotype_wrapper:"TopBlock_TopBlock__logotype_wrapper__qVZ1g",TopBlock__noLogotype_title:"TopBlock_TopBlock__noLogotype_title__xaPIw",TopBlock__logotype_badge:"TopBlock_TopBlock__logotype_badge__6u5rU",TopBlock__start_badge:"TopBlock_TopBlock__start_badge__yChzo",TopBlock__start_badge__left:"TopBlock_TopBlock__start_badge__left__q3kZm",TopBlock__start_badge_single:"TopBlock_TopBlock__start_badge_single__v0tZs",TopBlock__start_badge_double:"TopBlock_TopBlock__start_badge_double__HDIkn",TopBlock__description:"TopBlock_TopBlock__description__EfXT2",TopBlock__info:"TopBlock_TopBlock__info__A7U4q","TopBlock__info-short":"TopBlock_TopBlock__info-short__aEvjO","TopBlock__info-short-rating":"TopBlock_TopBlock__info-short-rating__V8mEj","TopBlock__info-short-circle":"TopBlock_TopBlock__info-short-circle__vumTu","TopBlock__info-short-value":"TopBlock_TopBlock__info-short-value__RvN2J","TopBlock__info-short-break":"TopBlock_TopBlock__info-short-break__apNex","TopBlock__info-short-nonbreak":"TopBlock_TopBlock__info-short-nonbreak___3H4C",TopBlock__buttons:"TopBlock_TopBlock__buttons__AjoCU",h:"TopBlock_h__4NUfR",TopBlock__subscription_text:"TopBlock_TopBlock__subscription_text__i4bj_",TopBlock__subscription_text_premium:"TopBlock_TopBlock__subscription_text_premium__8gqEH",TopBlock__unavailable_by_geo:"TopBlock_TopBlock__unavailable_by_geo__jTnFj",TopBlock__geo_image:"TopBlock_TopBlock__geo_image__lmVf7",TopBlock__geo_text:"TopBlock_TopBlock__geo_text__RvU60",TopBlock__geo_text__title:"TopBlock_TopBlock__geo_text__title__I8hQv",TopBlock__geo_text__subtitle:"TopBlock_TopBlock__geo_text__subtitle__PUdy4","TopBlock__buttons-wrap":"TopBlock_TopBlock__buttons-wrap__KjQdS","TopBlock__buttons-wrap-right":"TopBlock_TopBlock__buttons-wrap-right__82x8b","TopBlock__buttons-wrap-column":"TopBlock_TopBlock__buttons-wrap-column__Itqsb","TopBlock__play-trailer-sm":"TopBlock_TopBlock__play-trailer-sm__LU36E",invisible:"TopBlock_invisible__tBlcD",fee:"TopBlock_fee__oRct_","TopBlock__share-block":"TopBlock_TopBlock__share-block__WiJmj","TopBlock__share-block__btn":"TopBlock_TopBlock__share-block__btn__yuLbb","TopBlock__share-block-right":"TopBlock_TopBlock__share-block-right__MQ06W","TopBlock__preview-content":"TopBlock_TopBlock__preview-content__fw6pt","TopBlock__preview-content-wrapper":"TopBlock_TopBlock__preview-content-wrapper__ipZxF","TopBlock__preview-content-wrapper-hide":"TopBlock_TopBlock__preview-content-wrapper-hide__QI62u","TopBlock__preview-content-animate":"TopBlock_TopBlock__preview-content-animate__w3RE8","TopBlock__preview-content-no-trailer-wrapper":"TopBlock_TopBlock__preview-content-no-trailer-wrapper__28AJA","TopBlock__preview-content-no-trailer-animate":"TopBlock_TopBlock__preview-content-no-trailer-animate__OpojM","TopBlock__button-preview-animate":"TopBlock_TopBlock__button-preview-animate__3poGn","TopBlock__button-preview-text":"TopBlock_TopBlock__button-preview-text__6yca9","TopBlock__button-preview-text_tsbr":"TopBlock_TopBlock__button-preview-text_tsbr__mkB_s","TopBlock__button-preview-text_holod":"TopBlock_TopBlock__button-preview-text_holod__RmZmn","TopBlock__button-preview-text-secondary":"TopBlock_TopBlock__button-preview-text-secondary__4hsH2","TopBlock__button-preview-text-secondary-wrapper":"TopBlock_TopBlock__button-preview-text-secondary-wrapper__Y_b3B","TopBlock__button-report":"TopBlock_TopBlock__button-report__SIFWB","TopBlock__adult-content":"TopBlock_TopBlock__adult-content__CqdoI","TopBlock__button-spinner":"TopBlock_TopBlock__button-spinner__Rn5_e",fullWidth:"TopBlock_fullWidth__p1a_O","TopBlock__rating-age":"TopBlock_TopBlock__rating-age__Iyz2t",TopBlock__back:"TopBlock_TopBlock__back__BjSiT","TopBlock__back-button":"TopBlock_TopBlock__back-button__7vASB","TopBlock__back-button-text":"TopBlock_TopBlock__back-button-text__BVF9n","TopBlock__back-title":"TopBlock_TopBlock__back-title__TLORr",TopBlock__banner:"TopBlock_TopBlock__banner__xbjEW",blocked_content:"TopBlock_blocked_content__gdvJ_","TopBlock__play-new":"TopBlock_TopBlock__play-new__ypB9k",cookie:"TopBlock_cookie__7vlrG",webapp:"TopBlock_webapp__vq5E4",reverse:"TopBlock_reverse__b3TXf",label:"TopBlock_label__MSFXG",TopBlock__title:"TopBlock_TopBlock__title__gF9tK","TopBlock__button-preview-full":"TopBlock_TopBlock__button-preview-full__yJw4H","TopBlock__button-preview-img-on":"TopBlock_TopBlock__button-preview-img-on__RYWLA",TopBlock__share:"TopBlock_TopBlock__share__GASzM",TopBlock__quote:"TopBlock_TopBlock__quote__VqtjY","TopBlock__quote-mark":"TopBlock_TopBlock__quote-mark__rfln4","TopBlock__quote-icon":"TopBlock_TopBlock__quote-icon__J4Ddl","TopBlock__quote-icon-right":"TopBlock_TopBlock__quote-icon-right__Ia3kT","not-show-mobile":"TopBlock_not-show-mobile__T3ue9",TopBlock__background__no_poster:"TopBlock_TopBlock__background__no_poster__o3T9v",background:"TopBlock_background__Vtz_s"}},93473:t=>{t.exports={"storybook-root":"Trailer_storybook-root__bKXTK","product__trailer-wrapper":"Trailer_product__trailer-wrapper__6o3pR","product__trailer-left-section":"Trailer_product__trailer-left-section__DcbaZ","product__trailer-image":"Trailer_product__trailer-image__IJ4zu","product__trailer-play":"Trailer_product__trailer-play__8yEGf","product__trailer-info":"Trailer_product__trailer-info__6luGK","product__trailer-title":"Trailer_product__trailer-title__AaTPg","product__trailer-duration":"Trailer_product__trailer-duration__KH8rh","product__trailer-description":"Trailer_product__trailer-description__rabB_","product__trailer-right-section":"Trailer_product__trailer-right-section__TlySG","product__trailer-share":"Trailer_product__trailer-share__0Rahh","product__trailer-social":"Trailer_product__trailer-social__yscdQ","product__trailer-social_ico":"Trailer_product__trailer-social_ico__EmuRi","product__trailer-like":"Trailer_product__trailer-like__28DXm",product__trailer:"Trailer_product__trailer__8jnBl","product__trailer-more_text":"Trailer_product__trailer-more_text__cVNbX","product__trailer-up":"Trailer_product__trailer-up__T7X9D","product__trailer-down":"Trailer_product__trailer-down__0Pu3u",wrapper:"Trailer_wrapper__Wmppe",content:"Trailer_content__rg3qi",info:"Trailer_info__w4bMX",meta:"Trailer_meta__CFp8h",title:"Trailer_title__ll_3C",description:"Trailer_description__zcLQa",poster:"Trailer_poster__P2vvO",posterWrapper:"Trailer_posterWrapper__y1QUM",play:"Trailer_play__EwuNA",posterImage:"Trailer_posterImage__Nubvo",list:"Trailer_list__ZVsOZ",skeleton:"Trailer_skeleton__HPKaH"}},12384:t=>{t.exports={"storybook-root":"TrailerCard_storybook-root__QUI1L",item:"TrailerCard_item__dz1f1",content:"TrailerCard_content__kyJ6T",poster:"TrailerCard_poster__9FpGu",posterWrapper:"TrailerCard_posterWrapper__8l_13",play:"TrailerCard_play__pmwZW",posterImage:"TrailerCard_posterImage__RkbND",info:"TrailerCard_info__kbJD6",title:"TrailerCard_title__i_kE0",description:"TrailerCard_description__S4Nbg",skeleton:"TrailerCard_skeleton__TazLJ"}},27796:t=>{t.exports={"storybook-root":"TrailerSlider_storybook-root__7lssI","slider-wrap":"TrailerSlider_slider-wrap__rgFMX","skeleton-card":"TrailerSlider_skeleton-card__KfQC_",items_wrap:"TrailerSlider_items_wrap__1Nu8j","item-wrap":"TrailerSlider_item-wrap__Vh7Nf",item:"TrailerSlider_item__mqfCn",watched:"TrailerSlider_watched__gV24g","watched-line":"TrailerSlider_watched-line__dDP6b","red-line":"TrailerSlider_red-line__h8bLU","wat
1ched-title":"TrailerSlider_watched-title__yJetp","watched-progress-title":"TrailerSlider_watched-progress-title__Djk2H","item-img-wrap":"TrailerSlider_item-img-wrap__OlRqz","item-img-wrap-poster":"TrailerSlider_item-img-wrap-poster__Dcwbb","item-img-wrap-play-img":"TrailerSlider_item-img-wrap-play-img__jK4xt","item-img-wrap-rating":"TrailerSlider_item-img-wrap-rating__hqrDP","item-img-wrap-rating-high":"TrailerSlider_item-img-wrap-rating-high__PuIS0",item__titles:"TrailerSlider_item__titles__X_U1R","item__titles-title-badge-block":"TrailerSlider_item__titles-title-badge-block__8Lq_f","item__titles-title":"TrailerSlider_item__titles-title__0C2El","item__titles-badge":"TrailerSlider_item__titles-badge__ZrAGB",item__description:"TrailerSlider_item__description__V1GNk",item__subtitle:"TrailerSlider_item__subtitle___EZL7"}},12587:t=>{t.exports={"storybook-root":"Trailers_storybook-root__Qu4La",product__trailers:"Trailers_product__trailers__Yx9qe","product__trailers-item-wrapper":"Trailers_product__trailers-item-wrapper__mobu_","product__trailers-image":"Trailers_product__trailers-image__qebc6","product__trailers-image_play":"Trailers_product__trailers-image_play__9KRUn","product__trailers-item":"Trailers_product__trailers-item__WkYkl","product__trailers-item-title":"Trailers_product__trailers-item-title__aaMWf","product__trailers-item-description":"Trailers_product__trailers-item-description___BMyF",wrapper:"Trailers_wrapper__i6R3h",wrapper__title:"Trailers_wrapper__title__rtH0N",list:"Trailers_list__L6lh7"}},19023:t=>{t.exports={"storybook-root":"LoginPopup_storybook-root__uuqJ5",modal:"LoginPopup_modal__axifj",modal__content:"LoginPopup_modal__content__r3P4F",modal__close:"LoginPopup_modal__close__kRrPf",modal__title:"LoginPopup_modal__title__AiCn0",modal__info:"LoginPopup_modal__info__thWgt",modal__btn:"LoginPopup_modal__btn__JHelW",modal__btn_reg:"LoginPopup_modal__btn_reg__PxE65",modal__reg_wrapper:"LoginPopup_modal__reg_wrapper__7vwDO"}},86117:t=>{t.exports={"storybook-root":"popups_storybook-root__sZsya",popup:"popups_popup__jtPgi",popup__wrapper:"popups_popup__wrapper__UFi2p","popup-form__wrapper":"popups_popup-form__wrapper__M0Cq1",popup__close:"popups_popup__close__uLF_x",popup__title:"popups_popup__title__OUnqr",popup__text:"popups_popup__text___vaHW","popup__text-left":"popups_popup__text-left__beCQA",popup__buttons:"popups_popup__buttons__EFX0h","popup__buttons-wrapper":"popups_popup__buttons-wrapper__nqnGb","popup__button-single":"popups_popup__button-single__Y_062",popup__button:"popups_popup__button__h4n_5","popup-form__submit":"popups_popup-form__submit__mH3cx","popup__button-submit":"popups_popup__button-submit__oBGlz",disabled:"popups_disabled__hjM3S",spinner:"popups_spinner__AXQ1_","popup__button-info":"popups_popup__button-info__IFxp9","popup__button-cancel":"popups_popup__button-cancel__DOTTC","popup__button-disable":"popups_popup__button-disable__GgwMb","popup__content-mail":"popups_popup__content-mail__zXaK5","popup__content-phone":"popups_popup__content-phone__uZQJS","popup__content-vk":"popups_popup__content-vk__Lni5S","popup__content-circle":"popups_popup__content-circle__sXmAX","popup__content-telegram":"popups_popup__content-telegram__zz3jk",popup__need_email:"popups_popup__need_email__zVixq",popup__content:"popups_popup__content__peLCI",popup__image:"popups_popup__image__tAJZX","popup-devices__wrapper":"popups_popup-devices__wrapper__Pd_j5","popup-devices__close":"popups_popup-devices__close__BmJI2","popup-devices__title":"popups_popup-devices__title__B1an0","popup-devices__text":"popups_popup-devices__text__RPWfz","popup-devices__content":"popups_popup-devices__content__rKt1V","popup-devices__button":"popups_popup-devices__button__KrUMi",delete_popup_devices:"popups_delete_popup_devices__pUx2d",delete_popup_devices__wrapper:"popups_delete_popup_devices__wrapper__Vae3G",delete_popup_devices__title:"popups_delete_popup_devices__title__PSMUj",delete_popup_devices__text:"popups_delete_popup_devices__text__QUTHz",delete_popup_devices__close:"popups_delete_popup_devices__close__VgH1B",forceApp:"popups_forceApp__EHFJR",forceApp__wrapper:"popups_forceApp__wrapper__8BbQa",forceApp__close:"popups_forceApp__close__5853Q",forceApp__stores:"popups_forceApp__stores__FLfvj",forceApp__phone:"popups_forceApp__phone__25Htj",forceApp__content:"popups_forceApp__content__eTtg9",forceApp__content__title:"popups_forceApp__content__title__PrJFL",forceApp__content__button:"popups_forceApp__content__button__VTVhm",forceApp__content__button__secondary:"popups_forceApp__content__button__secondary__OqJGO",nalp:"popups_nalp__rYw1H",nalp__wrapper:"popups_nalp__wrapper__dyHzJ",nalp__title:"popups_nalp__title__UnGZY",nalp__text:"popups_nalp__text__zRmXi",nalp__submit:"popups_nalp__submit__GV5hQ",nalp__buttons:"popups_nalp__buttons__OCkMp",nalp__content:"popups_nalp__content__0wPG0",nalp__close:"popups_nalp__close__inQ5t",parentalControl:"popups_parentalControl__EXl91",parentalControl__wrapper:"popups_parentalControl__wrapper__Fy4B4",parentalControl__title:"popups_parentalControl__title__1ZZeI",parentalControl__noWrap:"popups_parentalControl__noWrap___MVZn",parentalControl__description:"popups_parentalControl__description__z_Wmr",parentalControl__button:"popups_parentalControl__button__mzB17",parentalControl__no:"popups_parentalControl__no__DDS7a",parentalControl__yes:"popups_parentalControl__yes__v_Dx3",parentalControl__tip:"popups_parentalControl__tip___U5qK",parentalControl__pin:"popups_parentalControl__pin__mtrzb",parentalControl__inputs:"popups_parentalControl__inputs__ZiJPl",parentalControl__input
1:"popups_parentalControl__input__yitaE",parentalControl__errorWrap:"popups_parentalControl__errorWrap__6km0h",parentalControl__error:"popups_parentalControl__error__OYRG_",parentalControl__forgot:"popups_parentalControl__forgot__oYFbt",parentalControl__delitePin:"popups_parentalControl__delitePin__PyYrd",parentalControl__noPin:"popups_parentalControl__noPin__ibGDM",parentalControl__cross:"popups_parentalControl__cross__dUHhZ",parentalControl__menu:"popups_parentalControl__menu__HI_x6",parentalControl__mItem:"popups_parentalControl__mItem__vcuSP",mActive:"popups_mActive__m3YJZ",parentalControl__cText:"popups_parentalControl__cText__87jF3",close:"popups_close__Qh9vm",close__wrapper:"popups_close__wrapper__YZGF8",close__title:"popups_close__title__MNJIx",close__descr:"popups_close__descr__Vys7_",close__button:"popups_close__button__IIS6v",forceApp__fade:"popups_forceApp__fade__bklW9",forceApp__light:"popups_forceApp__light__JEc0M",forceApp__logo:"popups_forceApp__logo__zCZJZ",forceApp__content__container:"popups_forceApp__content__container____C0h",forceApp__content__advantage:"popups_forceApp__content__advantage__dfhxo","popup-form__element":"popups_popup-form__element__kYYNi",password_hint:"popups_password_hint__Tde5d","popup-form__element-title":"popups_popup-form__element-title__SmLn_","popup-form__input":"popups_popup-form__input__GSOWk","popup-form__error-message":"popups_popup-form__error-message__9dwjb","popup-form__suggestion":"popups_popup-form__suggestion__EsTtt","popup-form__message":"popups_popup-form__message__DQGH9","popup-form__forgot":"popups_popup-form__forgot__UpwIR","popup-form__failed":"popups_popup-form__failed__zrQDf","popup-form__error":"popups_popup-form__error__ZhNtX","popup-form__register":"popups_popup-form__register__Fexh_","popup-profile__wrapper":"popups_popup-profile__wrapper__hu6SZ","popup-profile__content":"popups_popup-profile__content__tMEOD","popup-profile__content-left":"popups_popup-profile__content-left__Eg9_R","popup-profile__delete":"popups_popup-profile__delete__HN6mW","popup-profile__content-right":"popups_popup-profile__content-right___uv0t","popup-profile__avatar":"popups_popup-profile__avatar__K_j_8","popup-profile__delete-avatar":"popups_popup-profile__delete-avatar__IpQDE","popup-profile__none":"popups_popup-profile__none__aCnFJ","popup-profile__avatar-list":"popups_popup-profile__avatar-list__IiMkX","popup-profile__avatar-list-triangle":"popups_popup-profile__avatar-list-triangle__okdmk","popup-profile__avatar-cansel":"popups_popup-profile__avatar-cansel__ZuOFO","popup-profile__gender":"popups_popup-profile__gender__x54o8",profile_gender_changed_svg:"popups_profile_gender_changed_svg__bmKBf",profile_gender_set_svg:"popups_profile_gender_set_svg__MpJRq","popup-profile__gender-item":"popups_popup-profile__gender-item__x8Mfd","popup-profile__gender-changed":"popups_popup-profile__gender-changed__TxB5L","popup-profile__gender-set":"popups_popup-profile__gender-set__dSLls","popup-profile__gender-disabled":"popups_popup-profile__gender-disabled__h82G_","popup-profile__birthday":"popups_popup-profile__birthday__VXLCV","popup-profile__birthday-disabled":"popups_popup-profile__birthday-disabled__r9YC9","popup-profile__birthday-input":"popups_popup-profile__birthday-input__f7Bp2","popup-profile__birthday-error":"popups_popup-profile__birthday-error___AQ_B","popup-profile__attention-title":"popups_popup-profile__attention-title__pW95T","popup-profile__attention":"popups_popup-profile__attention__ohQ5P","social-text__content":"popups_social-text__content__HCiZF","social-text__button":"popups_social-text__button__3tS2v",ttk:"popups_ttk__DzsZp","desktop-view":"popups_desktop-view__ZKGTD","mobile-view":"popups_mobile-view__j6Lj1",ttk__content:"popups_ttk__content__DopMy",ttk__close:"popups_ttk__close__WsZSJ",ttk__image:"popups_ttk__image__Vfj_9",ttk__text:"popups_ttk__text__XE_kR",ttk__title:"popups_ttk__title__G9mJP",ttk__description:"popups_ttk__description__PHTK1","check-age":"popups_check-age__7CNeE","check-age__conent":"popups_check-age__conent__BtNJE","check-age__img":"popups_check-age__img__Gl4Hd","check-age__header":"popups_check-age__header__jnBHu","check-age__text":"popups_check-age__text__3sKIp","check-age__buttons-wrapper":"popups_check-age__buttons-wrapper__WQvKg","check-age__button-agree":"popups_check-age__button-agree__7tM5O","check-age__button-disargee":"popups_check-age__button-disargee___MyAm","account-popup":"popups_account-popup__J2kDx"}},87335:t=>{t.exports={"storybook-root":"Articles_storybook-root__0ukyO",articles_main_r:"Articles_articles_main_r__AfqJ3","articles-main":"Articles_articles-main__bI_G_","articles-title":"Articles_articles-title__pyTSs","articles-header-redesign":"Articles_articles-header-redesign__0qe__",skeleton:"Articles_skeleton__kW3a0",linked:"Articles_linked__HyC2S","skeleton-grid":"Articles_skeleton-grid__yXwJf",article_grid:"Articles_article_grid__cukO1",article__background:"Articles_article__background__fT2t2",article__title:"Articles_article__title__33lp1",article__description:"Articles_article__description__l6IcS",article:"Articles_article__z_Nr4","article-content":"Articles_article-content__p3LPb","article-arrow":"Articles_article-arrow__eAp4V",article__category:"Articles_article__category__kcaDp","article__category-title":"Articles_article__category-title__zAtg8","article__category-mark":"Articles_article__category-mark__XtKkV","article-button-wrap":"Articles_article-button-wrap__R89Ju","article-button":"Articles_article-button__VAFxX"}},73252:t=>{t.exports={"storybook-root":"ArticlesSlider_storybook-root__Ys_5N",slider_wrap_grid:"ArticlesSlider_slider_wrap_grid__O5o7l","slider-wrap":"ArticlesSlider_slider-wrap__1sqv_",items_wrap:"ArticlesSlider_items_wrap__BmpUi",items_wrap__grid:"ArticlesSlider_items_wrap__grid__JrmbP","item-wrap":"ArticlesSlider_item-wrap__Hs_IO",skeleton:"ArticlesSlider_skeleton__8hKmM",slider__arrow:"ArticlesSlider_slider__arrow__kra_7",slider__arrow__prev:"ArticlesSlider_slider__arrow__prev__WgTfE",slider__fade:"ArticlesSlider_slider__fade__C9mL4",slider__fade__prev:"ArticlesSlider_slider__fade__prev__434kx",slider__fade__next:"ArticlesSlider_slider__fade__next__YXZEe",slider__fade__child:"ArticlesSlider_slider__fade__child__eMH_M",slider__fade__vis:"ArticlesSlider_slider__fade__vis__9_L31",visible:"ArticlesSlider_visible__8Xj_h"}},86389:t=>{t.exports={"storybook-root":"Banner_storybook-root__aTzqc",banner:"Banner_banner__F6taR",title:"Banner_title__RVCMg",description:"Banner_description__HV2qz",fee:"Banner_fee__ZNqlQ",button:"Banner_button__HfLMu",label:"Banner_label__OIWLh",image:"Banner_image__fk_59"}},15945:t=>{t.exports={"storybook-root":"Benefits_storybook-root__3n_ED",benefits:"Benefits_benefits___UzLk",advantages__list:"Benefits_advantages__list__PTcHV",advantages__item:"Benefits_advantages__item__pKeR9",advantages__item__title:"Benefits_advantages__item__title__ygLM_",advantages__item__text:"Benefits_advantages__item__text__ff9xs",advantages__item__image:"Benefits_advantages__item__image__nPLhg",advantages__item__description:"Benefits_advantages__item__description__1P_xn",benefits__wrapper:"Benefits_benefits__wrapper__tZx5y",title:"Benefits_title__0TMm4",title__price:"Benefits_title__price__ZiXXz",horizontal__devider__gradient:"Benefits_horizontal__devider__gradient__SIjH3",advanteges__list:"Benefits_advanteges__list__56yHw",devider__gradient:"Benefits_devider__gradient__NXxHl",title__wrapper:"Benefits_title__wrapper__Kllom",title__image:"Benefits_title__image__iZLMh",advanteges__item__image:"Benefits_advanteges__item__image__TPtio",ttile:"Benefits_ttile__t5Nj_",advanteges__item:"Benefits_advanteges__item__H_bmV"}},76923:t=>{t.exports={"storybook-root":"CategorySlider_storybook-root__5L_qh",categories__wrapper:"CategorySlider_categories__wrapper__PVWYE",main:"CategorySlider_main__Yqhua",categories__card:"CategorySlider_categories__card__KXWod",categories__footer:"CategorySlider_categories__footer__kBWQ5",categories__header:"CategorySlider_categories__header__l3Vc3",categories__head:"CategorySlider_categories__head__044mp",categories__description:"CategorySlider_categories__description__YxpQv",categories__emptyPadding:"CategorySlider_categories__emptyPadding__Q_skk",categories__player:"CategorySlider_categories__player__pccDj",categories__player_popup:"CategorySlider_categories__player_popup__Fj1O0",categories__productPage:"CategorySlider_categories__productPage__o9ugK",categories__categories:"CategorySlider_categories__categories__NaEol",categories__nt:"CategorySlider_categories__nt__Vq2r4",categories__a:"CategorySlider_categories__a__soze_",categories__dl:"CategorySlider_categories__dl__qwmCI",categories__dr:"CategorySlider_categories__dr__8gfjL",categories__shadowVisible_rigth:"CategorySlider_categories__shadowVisible_rigth__soXrB",categories__shadowVisible_left:"CategorySlider_categories__shadowVisible_left__6u3Nl",categories__wrap:"CategorySlider_categories__wrap__YnaQ_","categories__player-wrap":"CategorySlider_categories__player-wrap__6bMhM",categories__player_popup_wrap:"CategorySlider_categories__player_popup_wrap__I1oRL",categories__safari:"CategorySlider_categories__safari__6davD",categories__cWrap:"CategorySlider_categories__cWrap__y72kz",categories__aWrap:"CategorySlider_categories__aWrap__YgJsD",categories__category:"CategorySlider_categories__category__Dsa7i",categories__active:"CategorySlider_categories__active__sVK4G",categories__category_child:"CategorySlider_categories__category_child__4MkSI",categories__data:"CategorySlider_categories__data__gefEh",categories__title:"CategorySlider_categories__title__0yIIJ",categories__d:"CategorySlider_categories__d___HYfD",categories__empty_categories:"CategorySlider_categories__empty_categories__r8__0",categories:"CategorySlider_categories__vuBSx"}},34319:t=>{t.exports={"storybook-root":"Collections_storybook-root__ZYphF",title:"Collections_title__k_KiR"}},44303:t=>{t.exports={product__banner:"ContentBanner_product__banner__bOp11"}},85467:t=>{t.exports={"storybook-root":"Description_storybook-root__RAVxb",product__description:"Description_product__description__PSmfE","product__description-wrapper":"Description_product__description-wrapper__WrSLL","product__description-wrapper__skeleton-block-1":"Description_product__description-wrapper__skeleton-block-1__GLJTO","product__description-wrapper__skeleton-1":"Description_product__description-wrapper__skeleton-1__H2Mdt","product__description-wrapper__skeleton-block-2":"Description_product__description-wrapper__skeleton-block-2__3KI4g","product__description-wrapper__skeleton-2":"Description_product__description-wrapper__skeleton-2__jZ7dJ","product__description-wrapper__skeleton-block-3":"Description_product__description-wrapper__skeleton-block-3__fHLfn","product__description-title":"Description_product__description-title__NnLjQ","product__description-rating":"Description_product__description-rating__n7To8","product__description-rating-block-wrap":"Description_product__description-rating-block-wrap__0HykV","product__description-rating-block":"Description_product__description-rating-block__q2_X2","product__description-rating__low-rating":"Description_product__description-rating__low-rating__ug5J5","product__description-rating-text":"Description_product__description-rating-text__6tJQ9","product__description-rating-text-title":"Description_product__description-rating-text-title__rKZN2","product__description-rating-text-title-2":"Description_product__description-rating-text-title-2__5DF8f","product__description-start":"Description_product__description-start__IAbPE","product__description-start_rating":"Description_product__description-start_rating__QKxTI","product__description-rating-buttons":"Description_product__description-rating-buttons__Wcf_6","product__description-social":"Description_product__description-social__lZo5l","product__description-social_ico":"Description_product__description-social_ico__c_hx1","product__description-social_ico-tg":"Description_product__description-social_ico-tg__lFOf3","product__description__text-wrap":"Description_product__description__text-wrap__h5KzN","product__description-text":"Description_product__description-text__Ad6LU","product__description-shadow-top":"Description_product__description-shadow-top__Yjp71","product__description-shadow-invisible":"Description_product__description-shadow-invisible__0wn5M",product:"Description_product__ocuQH","product__description-shadow-bottom":"Description_product__description-shadow-bottom__cGbIv","product__description-wrapper__skeleton-3":"Description_product__description-wrapper__skeleton-3__Aikfu","product__description-wrapper__skeleton-4":"Description_product__description-wrapper__skeleton-4__t8n9O","product__description-more":"Description_product__description-more__EzMkU","product__description-more_img-rotate":"Description_product__description-more_img-rotate__bM9CL"}},88583:t=>{t.exports={"storybook-root":"Episode_storybook-root__NH6w4","product__episode-wrapper":"Episode_product__episode-wrapper__8fAaW","product__episode-left-section":"Episode_product__episode-left-section__3oJEo","product__episode-image":"Episode_product__episode-image__ZIKp5","product__episode-play":"Episode_product__episode-play__vOg3y","product__episode-info":"Episode_product__episode-info__oDjet","product__episode-title":"Episode_product__episode-title__X8WPH","product__episode-duration":"Episode_product__episode-duration__Ka
1aKJ","product__episode-description":"Episode_product__episode-description__T2HJW","product__episode-more":"Episode_product__episode-more___nfoc","product__episode-more_text":"Episode_product__episode-more_text__sVcRF","product__episode-more_image":"Episode_product__episode-more_image__4VMT7",rotate:"Episode_rotate__pFdN_","product__episode-right-section":"Episode_product__episode-right-section__npuzk","product__episode-share":"Episode_product__episode-share__YT_Jy","product__episode-social":"Episode_product__episode-social__qE6xW","product__episode-social_ico":"Episode_product__episode-social_ico__RVQYV","product__episode-like":"Episode_product__episode-like__LoKKD","product__episode-unavailable":"Episode_product__episode-unavailable__EyMrB","product__episode-unavailable-title":"Episode_product__episode-unavailable-title__17k57","product__episode-unavailable-desc":"Episode_product__episode-unavailable-desc__mddok",product__episode:"Episode_product__episode__QcvM5",child:"Episode_child__4ceFY","product__episode-up":"Episode_product__episode-up__8_Q_B","product__episode-down":"Episode_product__episode-down__zhRxo"}},56375:t=>{t.exports={"storybook-root":"Facts_storybook-root__jgSv0",product__facts:"Facts_product__facts__T4d5q","product__facts-item":"Facts_product__facts-item__Vuh2N","product__facts-item_index":"Facts_product__facts-item_index__9F_G_","product__facts-item_text":"Facts_product__facts-item_text__EbQri"}},37959:t=>{t.exports={"storybook-root":"Header_storybook-root__3vdkV",header:"Header_header__1zaLn",registered:"Header_registered__Y5BcX",empty:"Header_empty__4vKqD"}},28405:t=>{t.exports={"storybook-root":"NavBar_storybook-root__yp76L",link:"NavBar_link__KcS14",active:"NavBar_active__E8Ojt","shadow-right":"NavBar_shadow-right__8swtF","shadow-left":"NavBar_shadow-left__mpguV","shadow-all":"NavBar_shadow-all__TBtE0"}},16726:t=>{t.exports={"storybook-root":"NavBarButton_storybook-root__NiRJe",button:"NavBarButton_button__QLUKd",button__text:"NavBarButton_button__text___Di67","subscribed-product":"NavBarButton_subscribed-product__hYjOG","report-message":"NavBarButton_report-message__nsnVl","report-message-active":"NavBarButton_report-message-active__T9VX2","close-button":"NavBarButton_close-button__65df2"}},32036:t=>{t.exports={"storybook-root":"NavBarDesktop_storybook-root__YncKU","navbar-wrap":"NavBarDesktop_navbar-wrap__cTsZ6","nav-bar-visible":"NavBarDesktop_nav-bar-visible__HO2Bc",navbar:"NavBarDesktop_navbar__IGOW_","navbar__links-wrap":"NavBarDesktop_navbar__links-wrap__jyo10","navbar__vertical-line":"NavBarDesktop_navbar__vertical-line__pEQ_h"}},15776:t=>{t.exports={"storybook-root":"NavBarMoreButton_storybook-root__w_F4X","more-button-wrap":"NavBarMoreButton_more-button-wrap__7SlhL","more-button__links-block-wrap":"NavBarMoreButton_more-button__links-block-wrap__o36fA","more-button__active":"NavBarMoreButton_more-button__active__7F4rF",hide:"NavBarMoreButton_hide__CHMVl"}},18433:t=>{t.exports={"storybook-root":"NewProduct_storybook-root__yFNvy",product:"NewProduct_product__2x91z",onboarding:"NewProduct_onboarding__KhjtS","product-block":"NewProduct_product-block__rhxGc",unpage:"NewProduct_unpage__6bu__","product-block__content-wrapper":"NewProduct_product-block__content-wrapper__aB8wj","product-button":"NewProduct_product-button__XuVHx",product__linked:"NewProduct_product__linked__5jn2a",playerHead:"NewProduct_playerHead__uONOR",player:"NewProduct_player__c7mss"}},65983:t=>{t.exports={"storybook-root":"Selections_storybook-root__DeXCX",selections:"Selections_selections__Qp_Gp",selections__title_redesign:"Selections_selections__title_redesign__IK_Is",selections__title:"Selections_selections__title__yMhPx",selections__wrapper:"Selections_selections__wrapper__JmI5_",main:"Selections_main__zxmGP",selections__card:"Selections_selections__card__WcV8j",selections__footer:"Selections_selections__footer__tHLzr",selections__header:"Selections_selections__header__3xgLv",selections__head:"Selections_selections__head__DMAnu",selections__description:"Selections_selections__description__Yo0QO",selections__emptyPadding:"Selections_selections__emptyPadding__SORi4",selections__selections:"Selections_selections__selections__BnmkJ",selections__nt:"Selections_selections__nt__QJrZA",selections__a:"Selections_selections__a__Pp7ls",selections__dl:"Selections_selections__dl__GqYbe",selections__dr:"Selections_selections__dr__kEZgr",selections__wrap:"Selections_selections__wrap__5_VvT",selections__safari:"Selections_selections__safari__2VGsG",selections__cWrap:"Selections_selections__cWrap___vEXQ",selections__aWrap:"Selections_selections__aWrap__W1H_G",selections__category:"Selections_selections__category__ZBfyX",selections__active:"Selections_selections__active__2YcW2",selections__category_child:"Selections_selections__category_child__mljMT",selections__data:"Selections_selections__data__jQQB5",selections__d:"Selections_selections__d__sWeFy",selections__empty_selections:"Selections_selections__empty_selections__rgKtd",selections_redesign_exp:"Selections_selections_redesign_exp__QR1Va"}},37564:t=>{t.exports={"storybook-root":"SelectionsCard_storybook-root___lB_l","selection-skeleton-card":"SelectionsCard_selection-skeleton-card__dxX1J",items_wrap:"SelectionsCard_items_wrap__7DRm9","item-wrap":"SelectionsCard_item-wrap__SK3hy","selection-item-grid":"SelectionsCard_selection-item-grid__G0ggV","selection-item-grid-img-wrap":"SelectionsCard_selection-item-grid-img-wrap__xUc_s","item-wrap-grid":"SelectionsCard_item-wrap-grid__YVbWa","selection-item":"SelectionsCard_selection-item__XRggX","selection-item-img-wrap":"SelectionsCard_selection-item-img-wrap__9subb","selection-item-img-wrap-poster":"SelectionsCard_selection-item-img-wrap-poster__KEflW","selection-item-img-wrap-rating":"SelectionsCard_selection-item-img-wrap-rating__SWHyv","selection-item-img-wrap-rating-high":"SelectionsCard_selection-item-img-wrap-rating-high__RaAu7","selection-item__link":"SelectionsCard_selection-item__link__LSj14","selection-item__subtitle":"SelectionsCard_selection-item__subtitle__pxwTg","selection-item__titles":"SelectionsCard_selection-item__titles__vkgGg","selection-item__titles-title-badge-block":"SelectionsCard_selection-item__titles-title-badge-block__qfvSK","selection-item__titles-selection-title":"SelectionsCard_selection-item__titles-selection-title__AvOz4","selection-item__titles-badge":"SelectionsCard_selection-item__titles-badge__BOLIE","selection-item__titles__selection__badge":"SelectionsCard_selection-item__titles__selection__badge__eSKtQ","selection-item__description":"SelectionsCard_selection-item__description__Q2aXU","selection-item__titles__selection__badge__double":"SelectionsCard_selection-item__titles__selection__badge__double__9HRoX","selection-item__titles__selection__badge__single":"SelectionsCard_selection-item__titles__selection__badge__single__lEbJH","selection-item__titles-title":"SelectionsCard_selection-item__titles-title__FefRL","selection-skeleton-card-grid":"SelectionsCard_selection-skeleton-card-grid__kWJxB","selection-item__subtitle-wrap":"SelectionsCard_selection-item__subtitle-wrap__QMXvx"}},72413:t=>{t.exports={"storybook-root":"SelectionsSlider_storybook-root__BqPSz","slider-wrap":"SelectionsSlider_slider-wrap__svGgl",slider__wrap_grid:"SelectionsSlider_slider__wrap_grid__DTowG",items_wrap:"SelectionsSlider_items_wrap__BuI8L",
1items_wrap__grid:"SelectionsSlider_items_wrap__grid__8RZJG"}},33257:t=>{t.exports={"storybook-root":"Announcement_storybook-root__Z9qnt",wrapper:"Announcement_wrapper__7Rh6d",list:"Announcement_list__UcKyS"}},29805:t=>{t.exports={"storybook-root":"AnnouncementCard_storybook-root__CVXrZ",wrapper:"AnnouncementCard_wrapper__Mu4xF",img:"AnnouncementCard_img__BPI_k",text:"AnnouncementCard_text___Zr4K",text_shaded:"AnnouncementCard_text_shaded__aIyRE",seasonWrapper:"AnnouncementCard_seasonWrapper__p5sVD",seasonTitle:"AnnouncementCard_seasonTitle__YGEDM",trailerWrapper:"AnnouncementCard_trailerWrapper__Cclxy",trailerPoster:"AnnouncementCard_trailerPoster__iINyM",trailerContent:"AnnouncementCard_trailerContent__R1DL9",trailerTitle:"AnnouncementCard_trailerTitle__BUqLR",trailerButton:"AnnouncementCard_trailerButton__slY_M",trailerButton__icon:"AnnouncementCard_trailerButton__icon__W6a6i"}},68583:t=>{t.exports={"storybook-root":"Series_storybook-root__7_9Wa",slider:"Series_slider__t6iYf","product__slider-wrap":"Series_product__slider-wrap__3oMH8",product__header:"Series_product__header__neC9I","product__header-button":"Series_product__header-button__IaST9","product__header-button-icon":"Series_product__header-button-icon__FtbtI","product__header-button-title":"Series_product__header-button-title__UgE_s","product__header-button--active":"Series_product__header-button--active__m2Jpc","product__header-button-icon--down":"Series_product__header-button-icon--down__rATyO",product__series:"Series_product__series__jXH32","product__series-inner":"Series_product__series-inner__zQFDM",product__seasons:"Series_product__seasons__egKIN","product__seasons-player":"Series_product__seasons-player__KpOrl","product__series-all":"Series_product__series-all__4W_nf","product__series-wrap":"Series_product__series-wrap__U0aaT","product__seasons-item":"Series_product__seasons-item__zfUD_",active:"Series_active__4ewyd",playerActive:"Series_playerActive__3ULBs",product__items:"Series_product__items__vZozX","product__items-image":"Series_product__items-image__fUCem","product__items-image-img":"Series_product__items-image-img__WrBio","product__items-image_play":"Series_product__items-image_play__qpWU5","product__items-image_play-announcement":"Series_product__items-image_play-announcement__29FAX","product__items-content":"Series_product__items-content__KgQJ_","product__items-default":"Series_product__items-default__761Uo","product__items-description":"Series_product__items-description__vGIV3","product__items-title-wrapper":"Series_product__items-title-wrapper__6DmUh","product__items-title":"Series_product__items-title__3u3kL",playerTitle:"Series_playerTitle__Z11BE","product__items-title_text":"Series_product__items-title_text__3aUqQ","product__items-duration":"Series_product__items-duration__IvUsf","product__items-button-wrapper":"Series_product__items-button-wrapper__QP_Nx",all:"Series_all__4HSzA","product__items-show-more":"Series_product__items-show-more__wNt2K","product__items-show-more-image":"Series_product__items-show-more-image__7yCMA",down:"Series_down__kA_Wk","product__items-show-all-wrapper":"Series_product__items-show-all-wrapper__UWjJO","product__items-image-player":"Series_product__items-image-player__Rv0Rr","product__items-content-player":"Series_product__items-content-player__6OI61",watched:"Series_watched__H_8L3","watched-line":"Series_watched-line__jMnbQ","red-line":"Series_red-line__m_Vs3","white-line":"Series_white-line___Fyy2","watched-title":"Series_watched-title__h59Ot","product__items-title-badge":"Series_product__items-title-badge__WQ_z9"}},92505:t=>{t.exports={"storybook-root":"SeriesCard_storybook-root__ZOPyh",item:"SeriesCard_item__og_lU",watched:"SeriesCard_watched__e_GWU","watched-line":"SeriesCard_watched-line__Yid7C","red-line":"SeriesCard_red-line__Os_4k","watched-title":"SeriesCard_watched-title__yO8yr","watched-progress-title":"SeriesCard_watched-progress-title__V7jXC","item-img-wrap":"SeriesCard_item-img-wrap__aNwuN","item-img-wrap-poster":"SeriesCard_item-img-wrap-poster__DowXH","item-img-wrap-play-img":"SeriesCard_item-img-wrap-play-img__PqIg3","item-img-wrap-text":"SeriesCard_item-img-wrap-text__VV6aI","item-img-wrap-text-title":"SeriesCard_item-img-wrap-text-title__g8vmy","item-img-wrap-text-subtitle":"SeriesCard_item-img-wrap-text-subtitle__jaq8D","item-img-wrap-time":"SeriesCard_item-img-wrap-time__SNa5o","item-img-wrap-announcement":"SeriesCard_item-img-wrap-announcement__sh_PU","item-img-wrap-announcement-poster":"SeriesCard_item-img-wrap-announcement-poster___bM6W","item-img-wrap-announcement-with-overlay":"SeriesCard_item-img-wrap-announcement-with-overlay__05ZJ9",item__link:"SeriesCard_item__link__Z0EL_",item__description:"SeriesCard_item__description__yu0pH",item__titles:"SeriesCard_item__titles__4XOE7","item__titles-title-badge-block":"SeriesCard_item__titles-title-badge-block__ZW0q8","
1item__titles-title-wrap":"SeriesCard_item__titles-title-wrap__80egE","item__titles-title":"SeriesCard_item__titles-title__7Jf76",item__premium_badge:"SeriesCard_item__premium_badge__wXpPc"}},44795:t=>{t.exports={"storybook-root":"SeriesSlider_storybook-root__zDsH1","slider-wrap":"SeriesSlider_slider-wrap__LHz82","skeleton-card":"SeriesSlider_skeleton-card__Sy8cm",items_wrap:"SeriesSlider_items_wrap__PwukB","item-wrap":"SeriesSlider_item-wrap__465DF",item:"SeriesSlider_item___xsbR",watched:"SeriesSlider_watched__DFoUc","watched-line":"SeriesSlider_watched-line__GDJXy","red-line":"SeriesSlider_red-line__ZUX8Z","watched-title":"SeriesSlider_watched-title__Cep6s","watched-progress-title":"SeriesSlider_watched-progress-title__iOijG","item-img-wrap":"SeriesSlider_item-img-wrap__HRQ7F","item-img-wrap-poster":"SeriesSlider_item-img-wrap-poster__Tto7b","item-img-wrap-play-img":"SeriesSlider_item-img-wrap-play-img__AFI91","item-img-wrap-time":"SeriesSlider_item-img-wrap-time__2iX6s","item-img-wrap-rating":"SeriesSlider_item-img-wrap-rating___qho_","item-img-wrap-rating-high":"SeriesSlider_item-img-wrap-rating-high__OrosI","item-img-wrap-text":"SeriesSlider_item-img-wrap-text__2DIef","item-img-wrap-text-title":"SeriesSlider_item-img-wrap-text-title__rwOJ9","item-img-wrap-text-subtitle":"SeriesSlider_item-img-wrap-text-subtitle__LUpP4","item-img-wrap-announcement":"SeriesSlider_item-img-wrap-announcement__Tlnb8","item-img-wrap-announcement-poster":"SeriesSlider_item-img-wrap-announcement-poster__JcKWQ","item-img-wrap-announcement-with-overlay":"SeriesSlider_item-img-wrap-announcement-with-overlay__2aT8w",item__link:"SeriesSlider_item__link__LwwLi",item__description:"SeriesSlider_item__description__nLw41",item__titles:"SeriesSlider_item__titles__FrNcx","item__titles-title-badge-block":"SeriesSlider_item__titles-title-badge-block__88XMl","item__titles-title-wrap":"SeriesSlider_item__titles-title-wrap__3snus","item__titles-title":"SeriesSlider_item__titles-title__J5aeS","item__titles-time":"SeriesSlider_item__titles-time__Exrh4",item__premium_badge:"SeriesSlider_item__premium_badge__7rqxB","item__description-all":"SeriesSlider_item__description-all__Lod1u",item__subtitle:"SeriesSlider_item__subtitle__Dodyh",inPlayer:"SeriesSlider_inPlayer__dQCBC",current:"SeriesSlider_current__Y1O2P",item__time:"SeriesSlider_item__time__QWAGu"}},6161:t=>{t.exports={"storybook-root":"TopBlock_storybook-root__bXlhR",TopBlock:"TopBlock_TopBlock__ybuab",TopBlock__redesign_exp:"TopBlock_TopBlock__redesign_exp__ACnbU",TopBlock__redesign_exp__backButton:"TopBlock_TopBlock__redesign_exp__backButton__Ps0V2",TopBlock__redesign_exp__breadcrumbsWrap:"TopBlock_TopBlock__redesign_exp__breadcrumbsWrap__fbZ_H",TopBlock__redesign_exp__rating:"TopBlock_TopBlock__redesign_exp__rating__pt07B","TopBlock-wrapper":"TopBlock_TopBlock-wrapper__iq2YY",TopBlock_wrapper_redesign:"TopBlock_TopBlock_wrapper_redesign__9zhw0",small:"TopBlock_small__4jtlg","TopBlock-wrapper-small_redesign":"TopBlock_TopBlock-wrapper-small_redesign__5Fvy1","geo-small":"TopBlock_geo-small__OPAWb","left-wrapper":"TopBlock_left-wrapper__fNrSS",onboarding:"TopBlock_onboarding__1LYo8",registered:"TopBlock_registered__x5Y5Z",bottom:"TopBlock_bottom__M0nbw",TopBlock__blur:"TopBlock_TopBlock__blur__78Zc_",TopBlock__poster:"TopBlock_TopBlock__poster__dC1mV",TopBlock__agreement:"TopBlock_TopBlock__agreement__cWs6R","TopBlock__agreement-internal-page":"TopBlock_TopBlock__agreement-internal-page__XulK3",TopBlock__background:"TopBlock_TopBlock__background__ofs3G",TopBlock__trailer:"TopBlock_TopBlock__trailer__Ft8mZ",controls:"TopBlock_controls__dd0g_",controls__tooltip:"TopBlock_controls__tooltip__R36X7",controls__inner:"TopBlock_controls__inner__F0u7E",controls__button:"TopBlock_controls__button__7RqO1",tooltip:"TopBlock_tooltip__RHrZr",tooltip__triangle:"TopBlock_tooltip__triangle__6901_",TopBlock__shadow:"TopBlock_TopBlock__shadow__zRB8P",TopBlock__shadow_redesign:"TopBlock_TopBlock__shadow_redesign__YsbD5","TopBlock__shadow-bottom":"TopBlock_TopBlock__shadow-bottom__CZwcV",TopBlock__shadow_full:"TopBlock_TopBlock__shadow_full__DM39C",TopBlock__play:"TopBlock_TopBlock__play__3ZeJW",TopBlock__logotype:"TopBlock_TopBlock__logotype__Bxh_B",TopBlock__logotype_wrapper:"TopBlock_TopBlock__logotype_wrapper__39s89",TopBlock__noLogotype_title:"TopBlock_TopBlock__noLogotype_title__mC_Ou",TopBlock__logotype_badge:"TopBlock_TopBlock__logotype_badge__KlGtq",TopBlock__start_badge:"TopBlock_TopBlock__start_badge__AO2Hy",TopBlock__start_badge__left:"TopBlock_TopBlock__start_badge__left__3M9jQ",TopBlock__start_badge_single:"TopBlock_TopBlock__start_badge_single__4Yic_",TopBlock__start_badge_double:"TopBlock_TopBlock__start_badge_double__Z4GCL",TopBlock__description:"TopBlock_TopBlock__description__zjNzx",TopBlock__info:"TopBlock_TopBlock__info__DoARd","TopBlock__info-short":"TopBlock_TopBlock__info-short__ME3Wy","TopBlock__info-short-rating":"TopBlock_TopBlock__info-short-rating__O89a_","TopBlock__info-short-circle":"TopBlock_TopBlock__info-short-circle__gaVwm","TopBlock__info-short-value":"TopBlock_TopBlock__info-short-value__0p2Rm","TopBlock__info-short-break":"TopBlock_TopBlock__info-short-break__y6Pvj","TopBlock__info-short-nonbreak":"TopBlock_TopBlock__info-short-nonbreak__1_910",TopBlock__buttons:"TopBlock_TopBlock__buttons__ZOIZy",h:"TopBlock_h__uuvKd",TopBlock__subscription_text:"TopBlock_TopBlock__subscription_text__X_y3R",TopBlock__subscription_text_premium:"TopBlock_TopBlock__subscription_text_premium__xWJph",TopBlock__unavailable_by_geo:"TopBlock_TopBlock__unavailable_by_geo__4JY0V",TopBlock__geo_image:"TopBlock_TopBlock__geo_image__lNu4v",TopBlock__geo_text:"TopBlock_TopBlock__geo_text__LoKrG",TopBlock__geo_text__title:"TopBlock_TopBlock__geo_text__title__e1Hgi",TopBlock__geo_text__subtitle:"TopBlock_TopBlock__geo_text__subtitle__mr_0A","TopBlock__buttons-wrap":"TopBlock_TopBlock__buttons-wrap__JEvpW","TopBlock__buttons-wrap-right":"TopBlock_TopBlock__buttons-wrap-right__0ri47","TopBlock__buttons-wrap-column":"TopBlock_TopBlock__buttons-wrap-column__l_SAP","TopBlock__play-trailer":"TopBlock_TopBlock__play-trailer__SIZfU",invisible:"TopBlock_invisible__aluHQ","TopBlock__play-trailer-sm":"TopBlock_TopBlock__play-trailer-sm__VijPU","TopBlock__play-trailer-full":"TopBlock_TopBlock__play-trailer-full__yHEJd","TopBlock__small-buttons":"TopBlock_TopBlock__small-buttons__vYK1J","TopBlock__favorites-big":"TopBlock_TopBlock__favorites-big__91UKM",fee:"TopBlock_fee__lTL9J","TopBlock__share-block":"TopBlock_TopBlock__share-block__Jarnn","TopBlock__share-block__btn":"TopBlock_TopBlock__share-block__btn__vzUr3","TopBlock__share-block-right":"TopBlock_TopBlock__share-block-right__KyFHx","TopBlock__preview-content":"TopBlock_TopBlock__preview-content__jUUFH","TopBlock__preview-content-wrapper":"TopBlock_TopBlock__preview-content-wrapper__6Bvu_","TopBlock__preview-content-wrapper-hide":"TopBlock_TopBlock__preview-content-wrapper-hide__LpkLP","TopBlock__preview-content-animate":"TopBlock_TopBlock__preview-content-animate__LsWLK","TopBlock__preview-content-no-trailer-wrapper":"TopBlock_TopBlock__preview-content-no-trailer-wrapper__W8UBk","TopBlock__preview-content-no-trailer-animate":"TopBlock_TopBlock__preview-content-no-trailer-animate__mo5Cr","TopBlock__button-preview":"TopBlock_TopBlock__button-preview__eAdAV","TopBlock__button-preview-animate":"TopBlock_TopBlock__button-preview-animate__g8S5u","TopBlock__button-preview-text-secondary":"TopBlock_TopBlock__button-preview-text-secondary__kP_51","TopBlock__button-preview-text-secondary-wrapper":"TopBlock_TopBlock__button-preview-text-secondary-wrapper__89Sxi","TopBlock__button-report":"TopBlock_TopBlock__button-report__uvWec","TopBlock__adult-content":"TopBlock_TopBlock__adult-content__Emka6","TopBlock__button-spinner":"TopBlock_TopBlock__button-spinner__xJEF_",spinner:"TopBlock_spinner__DhTIL","TopBlock__button-play":"TopBlock_TopBlock__button-play__0ctRz",fullWidth:"TopBlock_fullWidth__SAjqU","TopBlock__rating-age":"TopBlock_TopBlock__rating-age__impCI",TopBlock__back:"TopBlock_TopBlock__back__WnKhY","TopBlock__back-button":"TopBlock_TopBlock__back-button__F43hE","TopBlock__back-button-text":"TopBlock_TopBlock__back-button-text__12GS2","TopBlock__back-title":"TopBlock_TopBlock__back-title__dYA_A",TopBlock__banner:"TopBlock_TopBlock__banner__2ll22",blocked_content:"TopBlock_blocked_content__HC_aZ","TopBlock__play-new":"TopBlock_TopBlock__play-new__f_Z9t","TopBlock__button-preview-text":"TopBlock_TopBlock__button-preview-text__gznzL",cookie:"TopBlock_cookie___m24g",webapp:"TopBlock_webapp__n31wg",reverse:"TopBlock_reverse__9CmjF",label:"TopBlock_label__cCeo1",TopBlock__title:"TopBlock_TopBlock__title__rSgpH","TopBlock__button-preview-full":"TopBlock_TopBlock__button-preview-full__hqU_a","TopBlock__button-preview-img-on":"TopBlock_TopBlock__button-preview-img-on__1MF9d",TopBlock__share:"TopBlock_TopBlock__share__B7jzo",TopBlock__quote:"TopBlock_TopBlock__quote__IM6Kg","TopBlock__quote-mark":"TopBlock_TopBlock__quote-mark__az2lq","TopBlock__quote-icon":"TopBlock_TopBlock__quote-icon__tKfDg","TopBlock__quote-icon-right":"TopBlock_TopBlock__quote-icon-right__AuDAH","not-show-mobile":"TopBlock_not-show-mobile__vdhB_",TopBlock__background__no_poster:"TopBlock_TopBlock__background__no_poster__1Ldua",background:"TopBlock_background__Jt032",TopBlock__geo_child_text:"TopBlock_TopBlock__geo_child_text__wO_m_"}},38357:t=>{t.exports={"storybook-root":"WatchMarkups_storybook-root__QFElG",watched:"WatchMarkups_watched__3f_aW","
1watched-line":"WatchMarkups_watched-line__iN98d","red-line":"WatchMarkups_red-line__tFde0","watched-title":"WatchMarkups_watched-title__XJZ8J","watched-time":"WatchMarkups_watched-time__gpJIk","watched-progress-title":"WatchMarkups_watched-progress-title__SwMY4",duration:"WatchMarkups_duration__aZ38L",series__watched:"WatchMarkups_series__watched__j94JW"}},41919:t=>{t.exports={"storybook-root":"Spinner_storybook-root__TZMVJ","spinner-forloading":"Spinner_spinner-forloading__wYOoL","spinner-big":"Spinner_spinner-big__ay9tu","spinner-row":"Spinner_spinner-row__xbdeD","spinner-wrapper":"Spinner_spinner-wrapper__Emkhb"}}},t=>{var e=e=>t(t.s=e);t.O(0,[1046,7947,6848,5299,73,9007,3575,4693,8373,636,6593,8792],()=>e(25770)),_N_E=t.O()}]);
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.