1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6a47390a-6c4f-44b4-8ae1-f4c0a0477a42",e._sentryDebugIdIdentifier="sentry-dbid-6a47390a-6c4f-44b4-8ae1-f4c0a0477a42")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5911],{99445:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/video/[...slug]",function(){return s(5629)}])},4480:(e,t,s)=>{"use strict";s.d(t,{A:()=>v});var a=s(74848);s(96540);var r=s(40490),l=s.n(r),n=s(63582),i=s(22463),o=s(6645),d=s(70014),c=s(32485),u=s.n(c),_=s(31067),m=s(51791),p=s(54740);let v=e=>{let{adParams:t}=e,s=(0,i.SO)(),{less_then_desktop:r}=(0,p.Y)(),{iframeRef:c,iframeSrc:v,removeIframe:h,timeToClose:y,readyToClose:g,iframeIsVisible:f}=(0,o.A)({adParams:t,desktopUrl:"".concat((0,d.u)(),"/banners/fixed_bottom_banner_desktop.html"),mobileUrl:"".concat((0,d.u)(),"/banners/fixed_bottom_banner_mobile.html"),timeToClose:10});return r||!v?null:(0,a.jsxs)("div",{className:u()(l().root,{[l().hideIframe]:!f}),style:{height:"108px",width:"".concat(Math.min(1080,s),"px")},"data-sentry-component":"BottomFixedIframe","data-sentry-source-file":"index.tsx",children:[void 0!==y&&(0,a.jsxs)("div",{onClick:()=>{g&&(h(),(0,m.Df)("ad_banner_close_click"))},className:u()(l().closeBanner,{[l().active]:g}),children:[!g&&(0,a.jsx)(_.f3,{text:"ÐакÑÑÑÑ ÑеÑез ".concat(y)}),g&&(0,a.jsx)(_.f3,{text:"ÐакÑÑÑÑ"})]}),(0,a.jsx)("iframe",{src:v,title:"bottom_ifrm",className:l().adFixedBanner,ref:c,style:{width:"".concat(Math.min(1080,s),"px")}}),(0,a.jsx)(n.A,{className:l().note,text:"Реклама","data-sentry-element":"Regular12","data-sentry-source-file":"index.tsx"})]})}},55973:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var a=s(74848);s(96540);var r=s(31067),l=s(6645),n=s(70014),i=s(15115),o=s.n(i),d=s(32485),c=s.n(d);let u=e=>{let{adParams:t}=e,{iframeRef:s,iframeSrc:i,iframeIsVisible:d}=(0,l.A)({adParams:t,desktopUrl:"".concat((0,n.u)(),"/banners/fullscreen_desktop_mobile.html"),mobileUrl:"".concat((0,n.u)(),"/banners/fullscreen_desktop_mobile.html")});return i?(0,a.jsx)(r.Q$,{scrollFreezeDisable:!0,open:!0,"data-sentry-element":"ModalPortal","data-sentry-component":"FullPageIframe","data-sentry-source-file":"index.tsx",children:(0,a.jsx)("div",{className:c()(o().root,{[o().hidden]:!d}),children:(0,a.jsx)("iframe",{src:i,title:"full_page_ifrm",className:o().banner,ref:s})})}):null}},89321:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var a=s(74848),r=s(96540),l=s(69019),n=s.n(l),i=s(6645),o=s(70014),d=s(32485),c=s.n(d);let u=e=>{let{adParams:t,desktopUrl:s,mobileUrl:l,initialHeight:d,initialMargin:u}=e,_=(0,r.useMemo)(()=>d||300,[d]),m=(0,r.useMemo)(()=>u||40,[u]),{iframeRef:p,iframeSrc:v,iframeIsVisible:h}=(0,i.A)({adParams:t,desktopUrl:s||"".concat((0,o.u)(),"/banners/under_loading_button_banner_desktop.html"),mobileUrl:l||"".concat((0,o.u)(),"/banners/under_loading_button_banner_mobile.html")});return v?(0,a.jsx)("div",{className:c()(n().root,{[n().showed]:h}),style:{"--root-height":"".concat(_,"px"),"--root-margin":"".concat(m,"px"),height:"".concat(_,"px"),margin:"".concat(m,"px auto")},"data-sentry-component":"LayoutIframe","data-sentry-source-file":"index.tsx",children:(0,a.jsx)("iframe",{src:v,title:"layout_ifrm",className:n().banner,ref:p})}):null}},55870:(e,t,s)=>{"use strict";s.d(t,{A:()=>h});var a=s(74848),r=s(96540),l=s(32485),n=s.n(l),i=s(85692),o=s(72499),d=s(22463),c=s(24702),u=s.n(c),_=s(79790),m=s(35812),p=s(20181),v=s.n(p);let h=e=>{let{items:t=[],events:s,className:l,slideLoader:c,threshold:p=0,rootMargin:h="1400px 1400px 1400px 1400px",mode:y="light",paddingRight:g=0,arrowLeft:f,arrowRight:x,arrowRightClassName:A,arrowLeftClassName:w,scrollContainerId:b,onScrollContainerRender:j,scrollToActive:k,initialSlide:C}=e,N=(0,r.useRef)(null),I=(0,r.useRef)(null),S=(0,r.useRef)(!1),E=(0,r.useRef)(null),L=(0,r.useRef)(null),T=(0,r.useRef)(0),D=(0,r.useRef)(0),M=(0,r.useRef)(!1),R=(0,d.SO)(),[V,B]=(0,r.useState)(!1),[P,F]=(0,r.useState)(0),[W,O]=(0,r.useState)(!1),G=(0,m.X)(I),H=(0,r.useRef)(!1),U=(0,r.useRef)(null),{regularItems:X,extraItems:z}=(0,r.useMemo)(()=>{var e;let s=null!==(e=null==t?void 0:t.filter(e=>!e.hide))&&void 0!==e?e:[];return{regularItems:s.filter(e=>!e.extra),extraItems:s.filter(e=>e.extra)}},[t]),q=(0,r.useMemo)(()=>[...X,...z],[X,z]),K=(0,r.useCallback)(()=>
1{if(I.current&&N.current){var e;let t=null===(e=I.current.getElementsByClassName("active"))||void 0===e?void 0:e[0];if(t){let e=N.current.getBoundingClientRect(),s=t.getBoundingClientRect(),a=I.current.scrollLeft,r=s.x-e.x+a-(e.width/2-s.width/2);I.current.scroll({left:r,behavior:"smooth"})}}},[]);(0,r.useEffect)(()=>{B(!0),k&&K()},[K,k]),(0,r.useEffect)(()=>{if(!C||M.current||!V||!I.current)return;let e=I.current.getElementsByClassName("slider-uniq-item")[0];if(!e)return;let t=C*e.offsetWidth;I.current.scrollLeft=t,D.current=t,M.current=!0},[C,V]),(0,r.useEffect)(()=>{let e=et.current;return()=>{e.cancel(),E.current&&clearTimeout(E.current),L.current&&clearTimeout(L.current),U.current&&clearTimeout(U.current)}},[]);let Y=(0,r.useCallback)((e,t)=>{var s;if(!e||!t)return null;let a=null===(s=I.current)||void 0===s?void 0:s.getElementsByClassName("slider-uniq-item")[0],r=I.current,l=(null==a?void 0:a.offsetWidth)||0,n=t%l;return r&&r.scrollWidth-r.offsetWidth===t?r.scrollWidth-r.offsetWidth:e-t>0?t<=l?0:n>l-l/3?t-n+l:t-n:t<l?l:n<l/3?t-n:t-n+l},[]),J=(0,r.useCallback)(()=>{U.current&&clearTimeout(U.current),H.current=!0,U.current=setTimeout(()=>{H.current=!1},400)},[]),Q=(0,r.useCallback)(()=>{let e=Y(T.current,D.current);e&&(0,o.j)(I.current,e,300)},[Y]);(0,r.useEffect)(()=>{Q()},[Q,R]);let Z=(0,r.useCallback)(()=>{let e=I.current;if(!e){O(!1);return}let t=e.scrollWidth-e.clientWidth>1;O(t),t||(0!==e.scrollLeft&&(e.scrollLeft=0),T.current=0,D.current=0,F(0))},[]);(0,r.useEffect)(()=>{Z()},[q,g,G,Z,R]);let $=(0,r.useCallback)(()=>{(null==s?void 0:s.useSlideClick)&&s.useSlideClick()},[s]),ee=(0,r.useRef)(null);ee.current=()=>{(null==s?void 0:s.useScroll)&&!H.current&&s.useScroll()};let et=(0,r.useRef)(v()(()=>{var e;return null===(e=ee.current)||void 0===e?void 0:e.call(ee)},300)),es=(0,r.useCallback)(e=>{et.current();let t=e.currentTarget.scrollLeft;F(t),S.current||(S.current=!0,T.current=t),E.current&&clearTimeout(E.current),E.current=setTimeout(()=>{S.current=!1,D.current=t,F(t)},100)},[]),ea=(0,r.useCallback)(()=>{var e;if((null===(e=N.current)||void 0===e?void 0:e.offsetWidth)&&I.current){let e=D.current,t=I.current.getElementsByClassName("slider-uniq-item")[0],s=(e||0)+(null==t?void 0:t.offsetWidth);(0,o.j)(I.current,s,300,()=>{I.current&&(D.current=I.current.scrollLeft)})}},[]),er=(0,r.useCallback)(()=>{var e;if((null===(e=N.current)||void 0===e?void 0:e.offsetWidth)&&I.current){let e=I.current.scrollLeft,t=I.current.getElementsByClassName("slider-uniq-item")[0],s=e-(null==t?void 0:t.offsetWidth);(0,o.j)(I.current,s,300)}},[]),el=(0,r.useCallback)(()=>{(null==s?void 0:s.buttonsClick)&&s.buttonsClick(),J(),er()},[J,s,er]),en=(0,r.useCallback)(()=>{(null==s?void 0:s.buttonsClick)&&s.buttonsClick(),J(),ea()},[J,s,ea]),ei=(0,r.useCallback)(()=>{I.current&&(D.current=I.current.scrollLeft);let e=Y(T.current,D.current);null!==e&&((0,o.j)(I.current,e,300),F(e))},[Y]),eo=(0,r.useCallback)(()=>{var e;L.current&&clearTimeout(L.current),void 0!==(null===(e=I.current)||void 0===e?void 0:e.scrollLeft)&&(T.current=I.current.scrollLeft)},[]),ed=(0,r.useCallback)(()=>{var e;void 0===(null===(e=I.current)||void 0===e?void 0:e.scrollLeft)||S.current?L.current=setTimeout(()=>{ed()},100):(D.current=I.current.scrollLeft,ei())},[ei]),ec=(0,r.useCallback)(e=>{var t;e.stopPropagation(),void 0!==(null===(t=I.current)||void 0===t?void 0:t.scrollLeft)&&(D.current=I.current.scrollLeft,ei())},[ei]),eu=void 0===c?(0,a.jsx)("div",{style:{padding:"0 10px"},children:(0,a.jsx)(_.A,{isLoading:!0})}):c,e_=!I.current||I.current.scrollWidth-I.current.offsetWidth===P;return(0,a.jsxs)("div",{style:{opacity:V?1:0},className:n()(u().galleryWrap,l,{[u()[y]]:y}),ref:N,onMouseLeave:ei,onMouseUp:ec,"data-sentry-component":"SimpleSlider","data-sentry-source-file":"index.tsx",children:[G&&W&&f&&(0,a.jsx)("div",{onClick:el,className:n()(w,{disabled:0===P}),children:f}),(0,a.jsx)(i.pL,{rootMargin:"1400px 1400px 1400px 1400px","data-sentry-element":"InView","data-sentry-source-file":"index.tsx",children:e=>{let{inView:t,ref:s}=e;return(0,a.jsx)("div",{ref:s,className:u().galleryScrollContainer,children:(0,a.jsxs)("div",{onTouchEnd:ed,onTouchStart:eo,className:u().gallery,ref:I,onScroll:es,children:[(0,a.jsx)("div",{className:u().scrollCommonWrap,id:b,ref:j,children:X.map((e,s)=>(0,a.jsx)(i.pL,{root:I.current,rootMargin:h,threshold:p,children:r=>{let{inView:l,ref:i}=r;return(0,a.jsx)("div",{suppressHydrationWarning:!0,className:n()(u().galleryItem,"slider-uniq-item"),onClick:$,children:(0,a.jsx)("div",{ref:i,className:u().galleryItemContent,children:"loader"!==e.id&&e.element?e.element(l,t,s):eu})})}},e.key||e.id))}),z.map((e,s)=>(0,a.jsx)(i.pL,{root:I.current,rootMargin:h,threshold:p,children:r=>{let{inView:l,ref:i}=r;return(0,a.jsx)("div",{suppressHydrationWarning:!0,className:n()(u().galleryItem,"slider-uniq-item"),children:(0,a.jsx)("div",{ref:i,className:u().galleryItemContent,children:"loader"!==e.id&&e.element?e.element(l,t,s):eu})})}},e.key||e.id)),(0,a.jsx)("div",{className:u().lastItem,style:{width:"".concat(g,"px")}})]})})}}),G&&W&&x&&(0,a.jsx)("div",{onClick:en,className:n()(A,{disabled:e_}),children:x})]})}},5629:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSG:()=>t$,default:()=>t0});var a=s(74848),r=s(96540),l=s(6965),n=s(46038),i=s(93559),o=s(92177),d=s(31181),c=s(76871),u=s(38109),_=s(86715);let m=["1165","1361","1075","1081","1087","1078","1072","1154","1370","1372","1096","1161","1093","1096","1078","1998","1997","1996","1131"],p=[{ref:1096,impression:{url:"https://mc.yandex.ru/watch/53152375?page-url=tvigle_1096_75",type:"yandex"}},{ref:1361,impression:{url:"https://mc.yandex.ru/watch/53152375?page-url=tvigle_1361_75",type:"yandex"}},{ref:1093,impression:{url:"https://mc.yandex.ru/watch/53152375?page-url=tvigle_1093_75",type:"yandex"}},{ref:1078,impression:{url:"https://mc.yandex.ru/watch/53152375?page-url=tvigle_1078_75",type:"yandex"}},{ref:1087,impression:{url:"https://mc.yandex.ru/watch/53152375?page-url=tvigle_1087_75",type:"yandex"}},{ref:1075,impression:{url:"https://mc.yandex.ru/watch/53152375?page-url=tvigle_1087_75",type:"yandex"}},{ref:1134,impression:{url:"https://mc.yandex.ru/watch/53152375?page-url=tvigle_1134_50",type:"yandex"}},{ref:1131,impression:{url:"https://mc.yandex.ru/watch/53152375?page-url=tvigle_1131_50",type:"yandex"}},{ref:1111,impression:{url:"https://mc.yandex.ru/watch/53152375?page-url=tvigle_1111_50",type:"yandex"}},{ref:1108,impression:{url:"https://mc.yandex.ru/watch/53152375?page-url=tvigle_1108_50",type:"yandex"}},{ref:1102,impression:{url:"https://mc.yandex.ru/watch/53152375?page-url=tvigle_1102_50",type:"yandex"}},{ref:1099,impression:{url:"https://mc.yandex.ru/watch/53152375?page-url=tvigle_1099_50",type:"yandex"}},{ref:1097,impression:{url:"https://mc.yandex.ru/watch/53152375?page-url=tvigle_1097_50",type:"yandex"}},{ref:1090,impression:{url:"https://mc.yandex.ru/watch/53152375?page-url=tvigle_1090_50",type:"yandex"}},{ref:1084,impression:{url:"https://mc.yandex.ru/watch/53152375?page-url=tvigle_1084_50",type:"yandex"}},{ref:1020,impression:{url:"https://mc.yandex.ru/watch/53152375?page-url=tvigle_1020_50",type:"yandex"}},{ref:1081,impression:{url:"https://mc.yandex.ru/watch/53152375?page-url=tvigle_1081_75",type:"yandex"}},{ref:8110,impression:{url:"https://mc.yandex.ru/watch/71523883?page-url=tvigle_8110_75",type:"yandex"}},{ref:8111,impression:{url:"https://mc.yandex.ru/watch/71523883?page-url=tvigle_8111_50",type:"yandex"}}],v={wink:"wink",start:"start"};var h=s(85882);let y=e=>{var t,s,a,l,n,i,m,p,y,g,f,x,A;let w,{fallback:b={}}=e,{query:j}=(0,_.useRouter)(),{user:k}=(0,u.A)(),C=null==j?void 0:j.slug,{data:N}=(0,o.Ay)(h.A.filters.key,h.A.filters.fetcher,{fallback:b,revalidateOnMount:!1}),{data:I,isLoading:S}=(0,o.Ay)((null==C?void 0:C[0])?[d.A.productInfo.key,null==C?void 0:C[0]]:null,d.A.productInfo.fetcher,{fallback:b,revalidateOnMount:!1}),E=(null==C?void 0:C[0])&&(null==C?void 0:C[1])&&(null==I?void 0:null===(t=I.groups)||void 0===t?void 0:t.find(e=>e.slug===(null==C?void 0:C[1])))||!(null==C?void 0:C[1])&&!(null==C?void 0:C[2])&&(null==I?void 0:null===(s=I.groups)||void 0===s?void 0:s[0])||null,{data:L}=(0,o.Ay)((null==I?void 0:I.id)&&(null==E?void 0:E.id)?[d.A.productGroupVideos.key,0,I.id,null==E?void 0:E.id]:null,d.A.productGroupVideos.fetcher,{fallback:b,revalidateOnMount:!1}),{data:T}=(0,o.Ay)((null==I?void 0:I.id)&&!(null==E?void 0:E.id)?[d.A.productVideos.key,0,I.id]:null,d.A.productVideos.fetcher,{fallback:b,revalidateOnMount:!1});(null==I?void 0:null===(a=I.groups)||void 0===a?void 0:a.length)?(null==C?void 0:C[2])?w=L?null==L?void 0:null===(y=L.results)||void 0===y?void 0:null===(p=y.find(e=>{var t;return null==e?void 0:null===(t=e.full_slug)||void 0===t?void 0:t.includes(null==C?void 0:C[2])}))||void 0===p?void 0:p.id:C[2]:(null==E?void 0:E.id)&&(w=null==L?void 0:null===(f=L.results)||void 0===f?void 0:null===(g=f[0])||void 0===g?void 0:g.id):(null==I?void 0:I.videos_count)&&(null==I?void 0:I.videos_count)>1&&(null==C?void 0:C[1])?w=T?null==T?void 0:null===(A=T.results)||void 0===A?void 0:null===(x=A.find(e=>{var t;return null==e?void 0:null===(t=e.full_slug)||void 0===t?void 0:t.includes(null==C?void 0:C[1])}))||void 0===x?void 0:x.id:C[1]:(null==C?void 0:C[1])||(w=null==I?void 0:I.first_video_id);let{data:D,isLoading:M,mutate:R}=(0,o.Ay)((null==C?void 0:C[0])&&w?[d.A.productVideoInfo.key,null==C?void 0:C[0],w,null==k?void 0:null===(n=k.data)||void 0===n?void 0:null===(l=n.account)||void 0===l?void 0:l.pk]:null,d.A.productVideoInfo.fetcher,{fallback:b,revalidateOnMount:!0}),{data:V,isLoading:B,mutate:P}=(0,o.Ay)((null==D?void 0:D.content_id)&&D.content_provider!==v.wink&&D.content_provider!==v.start?[d.A.productPermissions.key,null==D?void 0:D.content_id]:null,d.A.productPermissions.fetcher,{fallback:b,revalidateOnMount:!0}),F=(0,r.useCallback)(()=>{R(),P()},[P,R]),W=null==I?void 0:null===(m=I.categories)||void 0===m?void 0:null===(i=m[0])||void 0===i?void 0:i.parent_slug,{data:O}=(0,o.Ay)((null==C?void 0:C[0])&&w&&W?[c.A.categoryMeta.key,W]:null,c.A.categoryMeta.fetcher,{fallback:b,revalidateOnMount:!1}),{data:G}
1=(0,o.Ay)((null==I?void 0:I.id)?[d.A.productCollection.key,null==I?void 0:I.id]:null,d.A.productCollection.fetcher,{fallback:b,revalidateOnMount:!0}),H=(0,r.useMemo)(()=>{let e="";if(O&&(e="/catalog/".concat(null==O?void 0:O.slug,"/")),I){var t,s;e="/catalog/".concat(null==O?void 0:O.slug,"/").concat(null==I?void 0:null===(s=I.categories)||void 0===s?void 0:null===(t=s[0])||void 0===t?void 0:t.slug,"/")}return e},[O,I]),U=(0,r.useMemo)(()=>{let e=[];if(O&&e.push({label:null==O?void 0:O.name,href:"/catalog/".concat(null==O?void 0:O.slug,"/"),force:!0}),I){var t,s,a,r;e.push({label:null==I?void 0:null===(s=I.categories)||void 0===s?void 0:null===(t=s[0])||void 0===t?void 0:t.name,href:"/catalog/".concat(null==O?void 0:O.slug,"/").concat(null==I?void 0:null===(r=I.categories)||void 0===r?void 0:null===(a=r[0])||void 0===a?void 0:a.slug,"/"),force:!0}),e.push({label:null==I?void 0:I.name,href:"/video/".concat(null==I?void 0:I.slug,"/"),force:!0})}return(null==C?void 0:C[1])&&(E?e.push({label:E.name,href:"/video/".concat(null==I?void 0:I.slug,"/").concat(null==E?void 0:E.slug,"/"),force:!0}):D&&e.push({label:D.name,href:"/video/".concat(null==I?void 0:I.slug,"/").concat(D.slug,"/"),force:!0})),(null==C?void 0:C[2])&&D&&E&&e.push({label:D.name,href:"/video/".concat(null==I?void 0:I.slug,"/").concat(null==E?void 0:E.slug,"/").concat(D.slug,"/"),force:!0}),e},[O,I,E,C,D]),{data:X,mutate:z}=(0,o.Ay)((null==I?void 0:I.id)&&k?[d.A.productFavourite.key,I.id]:null,d.A.productFavourite.fetcher,{fallback:b}),{data:q}=(0,o.Ay)((null==I?void 0:I.id)?[d.A.productArticles.key,I.id]:null,d.A.productArticles.fetcher,{fallback:b}),{data:K}=(0,o.Ay)((null==I?void 0:I.id)?[d.A.productRecommendation.key,I.id]:null,d.A.productRecommendation.fetcher,{fallback:b,revalidateOnMount:!1});return{slugs:C,productGroupInfo:E,videoInfo:D,product:I,breadCrumbsList:U,videoInfoIsLoading:M,productIsLoading:S,permissions:V,permissionsIsLoading:B,updateVideoInfo:F,productGroupVideos:L,productVideos:T,productFavourite:X,mutateFavourite:z,productRecommendation:K,parentInfo:O,crumbLinkStart:H,filtersList:N,productArticles:q,productCollection:G}};var g=s(92256),f=s(73274),x=s.n(f),A=s(55069),w=s.n(A),b=s(44592),j=s(48603),k=s(21946),C=s(32485),N=s.n(C),I=s(46624),S=s(40212),E=s.n(S);let L=e=>{let{text:t,className:s}=e;return(0,a.jsx)(I.A,{text:t,className:N()(E().root,s),"data-sentry-element":"Default","data-sentry-component":"Bold28","data-sentry-source-file":"index.tsx"})};var T=s(51791);let D=e=>{let{value:t,className:s,openWindow:l}=e,n=(0,r.useMemo)(()=>(0,k.o)(t),[t]),i=(0,r.useMemo)(()=>0===n?"ok":n<4?"bad":n>=7?"good":"normal",[n]),o=(0,r.useCallback)(()=>{null==l||l(),(0,T.Df)("product_rating_tomato")},[l]);return(0,a.jsxs)("div",{onClick:o,className:N()(w().root,s),"data-sentry-component":"Rating","data-sentry-source-file":"index.tsx",children:[(0,a.jsx)("div",{className:w().icon,children:(0,a.jsx)(j.A,{name:"rating/".concat(i),"data-sentry-element":"Icon","data-sentry-source-file":"index.tsx"})}),0!==n&&(0,a.jsx)("p",{className:N()(w().ratingValue,w()[i]),children:(0,k.W)(t,1)}),0===n&&(0,a.jsx)(L,{className:w().zeroRating,text:"ÐÑенок еÑÑ Ð½ÐµÑ"}),(0,a.jsx)("div",{className:w().buttonWrap,children:(0,a.jsx)(b.A,{className:w().button,buttonType:b.V.BORDER,"data-sentry-element":"Button","data-sentry-source-file":"index.tsx",children:"ÐÑениÑÑ"})})]})};var M=s(79890),R=s(63582),V=s(14993),B=s(29965),P=s.n(B),F=s(42359),W=s(40961),O=s(61149);let G=new O.A;class H extends r.PureComponent{componentDidMount(){let{open:e}=this.props;e&&this.setState({mounted:!0}),document.addEventListener("keydown",this.escFunction,!1)}componentDidUpdate(e,t){let{open:s}=this.props,{open:a}=e,{mounted:r}=this.state,{mounted:l}=t;!s||a||r||this.setState({mounted:!0}),r&&!l&&s||r&&s&&!a?this.open():!s&&a&&this.close()}componentWillUnmount(){let{open:e,onClose:t}=this.props;e&&this.close(),t&&t(),document.removeEventListener("keydown",this.escFunction,!1)}render(){let{children:e}=this.props,{mounted:t}=this.state;return t&&"undefined"!=typeof document?W.createPortal(e,document.getElementById("portals")):null}constructor(...e){super(...e),this.state={mounted:!1},this.escFunction=e=>{let{onClose:t}=this.props;e.key&&"Escape"===e.key&&t&&t()},this.open=()=>{this.props.scrollFreezeDisable||G.freeze()},this.close=()=>{this.props.scrollFreezeDisable||G.unfreeze(),this.setState({mounted:!1})}}}var U=s(22463);let X={src:"/_next/static/media/fresh.824d1323.gif",height:650,width:1005,blurWidth:0,blurHeight:0},z={src:"/_next/static/media/fresh_vert.e81be7a2.gif",height:681,width:450,blurWidth:0,blurHeight:0},q={src:"/_next/static/media/rotten.775eb61b.gif",height:650,width:1005,blurWidth:0,blurHeight:0},K={src:"/_next/static/media/rotten_vert.f55bd393.gif",height:681,width:450,blurWidth:0,blurHeight:0},Y={src:"/_next/static/media/fresh.7986f4ba.png"},J={src:"/_next/static/media/rotten.546c79ad.png"};var Q=s(43373);let Z=e=>{let{productSlug:t,rating:s,onClose:l}
1=e,[n,i]=(0,r.useState)(0),[o,c]=(0,U.lW)(),[u,_]=(0,r.useState)(null),[m,p]=(0,r.useState)(!1),[v,h]=(0,r.useState)(""),[y,g]=(0,r.useState)(!1),[f,x]=(0,r.useState)(!1);(0,r.useEffect)(()=>{i(Math.random())},[]);let A=(0,r.useMemo)(()=>o<c-c/3?["".concat(z.src,"?d=").concat(n),"".concat(K.src,"?d=").concat(n)]:["".concat(X.src,"?d=").concat(n),"".concat(q.src,"?d=").concat(n)],[n,c,o]),k=(0,r.useCallback)(e=>async()=>{if(!m){if(setTimeout(()=>{_(null),l()},2e3),h(e),p(!0),o<c-c/3){let t="fresh"===e?z:K;_({src:"".concat(t.src,"?d=").concat(n),width:450,height:681})}else{let t="fresh"===e?X:q;_({src:"".concat(t.src,"?d=").concat(n),width:1005,height:450})}d.A.productVote.fetcher("fresh"===e?"like":"dislike",t),"fresh"===e?(0,T.Df)("product_rating_tomato_plus"):(0,T.Df)("product_rating_tomato_minus")}},[n,c,m,l,t,o]);return(0,r.useEffect)(()=>{new Image().src=X.src,new Image().src=X.src,new Image().src=q.src,new Image().src=K.src},[]),(0,a.jsx)(H,{open:!0,"data-sentry-element":"ModalPortal","data-sentry-component":"RatingWindow","data-sentry-source-file":"window.tsx",children:(0,a.jsxs)("div",{className:N()(w().window,{[w().loaded]:f&&y}),children:[(!f||!y)&&(0,a.jsx)("div",{className:w().loader,children:(0,a.jsx)(Q.a,{presetSize:"large"})}),A.map(e=>(0,a.jsx)("link",{rel:"preload",as:"image",href:e},e)),(0,a.jsx)("div",{className:w().close,onClick:l,children:(0,a.jsx)(j.A,{name:"ic_16_cross","data-sentry-element":"Icon","data-sentry-source-file":"window.tsx"})}),(0,a.jsxs)("div",{className:w().optionWrap,children:[(0,a.jsx)("div",{className:N()(w().voteNum,w().likeVoteNum,{[w().play]:"fresh"===v}),children:"+1"}),(0,a.jsx)("div",{className:N()(w().voteNum,w().dislikeVoteNum,{[w().play]:"rotten"===v}),children:"-1"}),u&&(0,a.jsx)("img",{className:w().freshGif,src:u.src,alt:"reaction",width:u.width,height:u.height}),(0,a.jsxs)("div",{style:{opacity:m?0:1},className:w().option,onClick:k("rotten"),children:[(0,a.jsx)(P(),{onLoad:()=>g(!0),className:w().optionImage,src:J.src,alt:"rotten",width:230,height:226,"data-sentry-element":"NextImage","data-sentry-source-file":"window.tsx"}),(0,a.jsx)(b.A,{className:w().optionButton,buttonType:b.V.SECONDARY,rounded:!0,"data-sentry-element":"Button","data-sentry-source-file":"window.tsx",children:"ТÑÑ
лÑк"})]}),(0,a.jsx)("div",{style:{opacity:m?0:1},className:w().ratingValueContainer,children:(0,a.jsx)(F.A,{className:w().ratingWindowValue,text:s?parseFloat(String(s)).toFixed(1):"0.0",size:[64,64,32],weight:F.L.BOLD,"data-sentry-element":"Typo","data-sentry-source-file":"window.tsx"})}),(0,a.jsxs)("div",{style:{opacity:m?0:1},className:w().option,onClick:k("fresh"),children:[(0,a.jsx)(P(),{onLoad:()=>x(!0),className:w().optionImage,src:Y.src,alt:"rotten",width:230,height:226,"data-sentry-element":"NextImage","data-sentry-source-file":"window.tsx"}),(0,a.jsx)(b.A,{className:w().optionButton,buttonType:b.V.SECONDARY,rounded:!0,"data-sentry-element":"Button","data-sentry-source-file":"window.tsx",children:"ÐаÑибок"})]})]})]})})};var $=s(99757);let ee=()=>{let e=(0,r.useRef)(),t=(0,r.useRef)(),s=(0,r.useRef)(null),a=(0,r.useCallback)(e=>{let t;if(e&&e.data&&("string"==typeof e.data?e.data.match(/^\s*\{.*\}\s*$/g)&&(t=JSON.parse(e.data)):t=e.data,t&&t.event&&"adShown"===t.event)){let t=e.currentTarget.Tvigle.playlist.current_item["0"].id;(0,g.c)("CTC EVENT: adShown fired, video id = "+t),(0,$.Ay)("https://s.tvigle.ru/pixel/?pixel_id=3&event=advert_impression&video_id="+t)}},[]),l=(0,r.useCallback)(e=>{if(e&&e.data){let s="https://s.tvigle.ru/pixel/?pixel_id=4&video_id="+t.current.id;"mgg_ask_ad"==e.data&&$.Ay.get(s+"&event=advert_request"),"mgg_imp_ad"==e.data&&$.Ay.get(s+"&event=advert_impression"),"mgg_start_ad"==e.data&&$.Ay.get(s+"&event=advert_start"),"mgg_start_content"==e.data&&$.Ay.get(s+"&event=video_start")}},[]),n=(0,r.useCallback)(e=>{if(e&&e.data){var t;(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.event)==="ended"&&s.current&&s.current()}},[]),i=(0,r.useCallback)(t=>{"ctc"===e.current?a(t):"megogo"===e.current?l(t):"moretv"===e.current&&n(t)},[a,l,n]);return{render:(0,r.useCallback)((a,r,l)=>{s.current=l,window.removeEventListener("message",i),t.current=r;let n=r.foreign_iframe,o="";
1e.current=r.provider,n&&a&&(n.split(" ").forEach(e=>{(e.startsWith("width")||e.startsWith("height"))&&(e=e.split("=")[0]+'="100%"'),o+=" "+e}),a.innerHTML=o.replace("allow='encrypted-media'","allow='encrypted-media *;'"),tvigle.createPlayers(),window.addEventListener("message",i))},[i])}};var et=s(18987);let es=()=>{let{ref:e,mutedAd:t,autostart:s}=(0,n.GF)(),a=(0,r.useCallback)(()=>Math.floor(10*Math.random()+1),[]),l=(0,r.useCallback)(()=>-1!=["1155","1150","1360","100502","1075"].indexOf(et.A.get("ref")||""),[]),i=(0,r.useCallback)(r=>{let n='<object class="TviglePlayer"><param name="bgcolor" value="#000000"/><param name="width" value="100%"><param name="height" value="100%"><param name="id" value="'+r.id+'"><param name="useAPI" value="true"><param name="autoChangeVideo" value="false"><param name="playerId" value="314"><param name="shareable" value="false"><param name="parentDomain" value="'+location.origin+location.pathname+'"><param name="ref" value="'+e+'"><param name="ar_duo1" value="'+a()+'">';return l()&&(n+='<param name="disabled_streaming" value="true">'),void 0!==m&&-1!=m.indexOf(e)&&(n+='<param name="postAd" value="pause">'),"a1cc242fccfb6148a5866fc3604f15f6fc8f57afa624f89518d7f52fd3d25431"==et.A.get("dads")&&(n+='<param name="user_type" value="admin">'),e&&(!s||"false"!==s)?n+='<param name="autoStart" value="true">':n+='<param name="autoStart" value="false">',"true"===t&&(n+='<param name="mutedAd" value="true">'),n+='<param name="navButtons" value="true"><param name="partnerId" value="24"><param name="requiredReqParams" value="'+r.payment+'"><param name="videoReqParams.auth_token" value="'+r.start_auth_user_token+'"><param name="forceFlashObject" value="true"><param name="fullBrowserAllowed" value="true"><param name="wmode" value="opaque"><param name="eventHandler" value="Player.eventHandler"><param name="templateLoadHandler" value="Player.onLoaded"><param name="templateReadyHandler" value="Player.onReady"><param name="adsPremission" value="'+r.disable_ads_permission+'"><param name="saveTime" value="true"><param name="avaliableQuality" value="'+r.quality+'"><param name="tariff_id" value="'+r.tariff_id+'"><param name="tariff_type" value="'+r.tariff_type+'">',r.is_started&&r.permission_id&&(n+='<param name="is_started" value="'+r.is_started+'"><param name="permission_id" value="'+r.permission_id+'">'),n},[a,s,l,t,e]);return{render:(0,r.useCallback)((e,t)=>{e&&(e.innerHTML=i(t),tvigle.createPlayers())},[i])}},ea=s(77836).env.API_URI||"/api";class er{constructor(e,t,s){this.playerObject=e,this.playerData=t,this.user=s,this.saveApiProgressTime=5e3,this.savedTimestamp=0,this.ref=null,this.progress=0,this.duration=0,this.localOffsets={},this.getHandler=e=>this[e],this.playPlayer=()=>{this.getPlayer().play()},this.pausePlayer=()=>{this.getPlayer().pause()},this.next=e=>{this.getPlayer().next(e)},this.setNextVideo=e=>{this.getPlayer().setNextVideo(e)},this.setPrevVideo=e=>{this.getPlayer().setPrevVideo(e)},this.addNextVideo=e=>{this.getPlayer().addNextVideo(e)},this.addPrevVideo=e=>{this.getPlayer().addPrevVideo(e)},this.prev=e=>{this.getPlayer().prev(e)},this.setQuality=e=>{this.getPlayer().setQuality(e)},this.seek=e=>{this.getPlayer().seek(e)},this.getState=()=>{this.getPlayer().getState(e=>e)},this.reload=()=>{this.getPlayer().reload()},this.loadVideoById=(e,t,s,a,r)=>{this.getPlayer().loadVideoById(e,t,s,a,r)},this.getCurrentVideo=()=>{this.getPlayer().getCurrentVideo(function(){})},this.getPlayer=()=>this.getPlayerObject().getModule(tvigle.api.modules.APIModules.VIDEO_PLAYER),this.getPlayerObject=()=>this.playerObject,this.getDuration=()=>(this.player.getDuration(e=>{this.duration=e}
1),this.duration),this.getSavedProgress=()=>1e3*this.playerData.offset||0,this.saveProgress=(e,t)=>{if(e&&0!==e){if(this.user){if(t-this.savedTimestamp<=this.saveApiProgressTime||0===e||null===e)return;this.savedTimestamp=t;let s={async:!0,crossDomain:!0,url:location.protocol+"".concat(ea,"/video/")+this.playerData.vid+"/hr/",method:"POST",headers:{Authorization:"Token "+this.playerData.user_token,"Content-Type":"application/json","Cache-Control":"no-cache"},dataType:"json",data:JSON.stringify({offset:e})};(0,$.Ay)(s).then(e=>{(0,g.c)(e)}).catch(e=>{(0,g.c)(e)})}try{let t="tvgl-vid-".concat(this.playerData.vid,"-").concat(this.playerData.oid);localStorage.setItem("tvgl-vid-ofst",JSON.stringify({...this.localOffsets,[t]:e}))}catch(e){(0,g.c)("local storage doesnt support")}}},this.createElement=function(e){let t=null;return document.createElementNS?t=document.createElementNS("http://www.w3.org/1999/xhtml",e):t=document.createElement(e),t},this.shootCustomStat=(e,t)=>{let s=e.url;if(s=s.replace(/\[ref\]/g,t),"yandex"==e.type)fetch(s,{mode:"no-cors"});else if("image"==e.type){let e=this.createElement("img");e.setAttribute("src",s),e.setAttribute("class","pixel"),document.body.appendChild(e)}},this.start=()=>{let e;(0,g.c)("!! start !!"),this.savedTimestamp=new Date().getTime(),this.user?(0,g.c)("! is auth"):(0,g.c)("! not auth"),(e=this.getSavedProgress())&&e>=15e3&&this.player.seek(e/1e3-1);try{let e;if(this.user&&this.playerData.offset)e=this.playerData.offset;else{let t="tvgl-vid-".concat(this.playerData.vid,"-").concat(this.playerData.oid);e=this.localOffsets[t]}e&&this.player.seek(e)}catch(e){(0,g.c)(e),(0,g.c)("localstorage doesnt work")}if((0,T.H5)("START_VIDEO"),(0,T.H5)("START_VIDEO_PL"),this.playerData.disable_ads_permission){let e={video_id:this.playerData.id,user:this.playerData.user_token};(0,T.H5)("SVV0",e)}},this.ended=()=>{},this.play_next_video=()=>{},this.play_prev_video=()=>{},this.continuous_play=()=>{},this.on_api_ready=()=>{},this.onPlayedThirdQuarter=()=>{if(this.playerData.disable_ads_permission){let e={video_id:this.playerData.id,user:this.playerData.user_token};(0,T.H5)("SVV75",e)}},this.advert_section_empty=()=>{"0"!=this.ref&&(console.info("advert_section_empty"),(0,T.YB)("SECTIONEMPTY",{}))},this.on_progress=e=>{this.progress=e,this.saveProgress(Math.floor(e/1e3),new Date().getTime())},this.play=()=>{(0,g.c)("!! play !!")},this.pause=()=>{this.saveProgress(this.getSavedProgress(),new Date().getTime())},this.metadata_received=()=>{},this.advert_section_ended=()=>{"0"!=this.ref&&(console.info("advert_section_ended"),(0,T.YB)("SECTIONENDED",{})),"1996"==this.ref&&console.info("ADV: advert_section_ended")},this.advert_playing=()=>{"1996"==this.ref&&console.info("ADV: advert_playing")},this.advert_click_request=()=>{"1996"==this.ref&&console.info("ADV: advert_click_request")},this.advert_requested=(e,t,s,a,r)=>{(0,g.c)("Advert requested. ad_id = "+e+", adv_name = "+t+", section_id = "+r),"1996"==this.ref&&console.info("ADV: advert_requested")},this.advert_received=(e,t,s,a,r)=>{(0,g.c)("Advert received. ad_id = "+e+", adv_name = "+t+", section_id = "+r),"1996"==this.ref&&console.info("ADV: advert_received")},this.advert_start=(e,t,s,a,r)=>{(0,g.c)("Advert start. ad_id = "+e+", adv_name = "+t+", section_id = "+r),["IMHO1","IMHO2","IMHO3","Imho_mobile","Imho_mobile2","Imho_mobile3"].includes(t)&&((0,T.H5)("IMHO_IMPRESSION",{section_id:r}),(0,T.H5)("IMHO_ADVERT",{})),(0,T.H5)("ALL_REKLAMA",{}),"1996"==this.ref&&console.info("ADV: advert_start")},this.advert_click=()=>{"1996"==this.ref&&console.info("ADV: advert_click")},this.advert_ended=()=>{(0,g.c)("!! advert_ended !!"),(0,T.H5)("ADVERT_COMPLETE",{}),"1996"==this.ref&&console.info("ADV: advert_ended")},this.advert_impression=()=>{if(void 0!==p)for(let e=0;e<p.length;e++)p[e].ref==Number(this.ref)&&this.shootCustomStat(p[e].impression,String(p[e].ref));"1996"==this.ref&&console.info("ADV: advert_impression")},this.advert_first_quartile=()=>{"1996"==this.ref&&console.info("ADV: advert_first_quartile")},this.advert_midpoint=()=>{"1996"==this.ref&&console.info("ADV: advert_midpoint")},this.advert_third_quartile=()=>{"1996"==this.ref&&console.info("ADV: advert_third_quartile")},this.advert_close=()=>{"1996"==this.ref&&console.info("ADV: advert_close")},this.advert_pause=()=>{"1996"==this.ref&&console.info("ADV: advert_pause")},this.advert_accept_invitation=()=>{"1996"==this.ref&&console.info("ADV: advert_accept_invitation")},this.tracker_load_error=()=>{(0,T.H5)("tracker_error",{})},this.tracker_load_timeout=()=>{(0,T.H5)("tracker_timeout",{})},this.fullbrowser_on=e=>{(0,g.c)(e?"isFullBrowser":"!isFullBrowser")},this.pl_move=()=>{(0,g.c)("pl_move")},this.current_video_change=()=>{(0,g.c)("current_video_change")},this.ref=(0,n.cX)()||null,this.player=null==e?void 0:e.getModule("videoPlayer");try{this.localOffsets=JSON.parse(localStorage.getItem("tvgl-vid-ofst")||"{}")}catch(e){(0,g.c)("local storage doesnt work")}}}var el=s(46763),en=s(76424),ei=s(91655);let eo=e=>{let{videoInfo:t,productInfo:s,videos:a,productGroupInfo:l,userSettings:n}=e,{incrementErrorCount:i}=(0,ei.g)(),o=(0,r.useRef)(null),d=(0,r.useRef)(null),{user:c}=(0,u.A)(),{render:_}=ee(),{render:m}=es(),{push:p}=(0,en.useRouter)(),h=(0,r.useCallback)(()=>{let e=null==a?void 0:a.findIndex(e=>e.id===t.id),r=s.groups.findIndex(e=>e.id===(null==l?void 0:l.id)),n=void 0!==e&&(null==a?void 0:a[e+1]);if(!n){let e=void 0!==r&&s.groups[r+1];if(e)return["/video",s.slug,e.slug,"/"].join("/")}return n?n.full_slug:null},[null==l?void 0:l.id,s.groups,s.slug,t.id,a]),y=(0,r.useCallback)(()=>{let e=h();e&&p(e,{})},[h,p]),f=(0,r.useCallback)(async()=>{var e;let a={id:t.is_soon?"5760986":t.content_id,provider:t.content_provider,foreign_iframe:"cloud"!=t.content_provider&&t.iframe_video?t.iframe_video:null,thumbnail:null==t?void 0:t.thumbnail,disabled_player:t.is_paid&&!t.is_soon,ct:17,vid:t.id,oid:s.id,user_token:null==c?void 0:null===(e=c.data)||void 0===e?void 0:e.token,is_soon:t.is_soon,is_soon_text:t.is_soon_text};
1if(c){let e=(null==n?void 0:n.permission)||{};if(a.offset=null==n?void 0:n.offset,"paid"==e.type)return{...a,payment:e.signature,disabled_player:!1,quality:e.quality,tariff_id:e.tariff_id,is_started:e.is_started,permission_id:e.permission_id,tariff_type:e.tariff_type,start_auth_user_token:e.start_auth_user_token};if("ad_free"==e.type)return{...a,disable_ads_permission:e.signature}}return a},[s.id,c,null==n?void 0:n.offset,null==n?void 0:n.permission,t.content_id,t.content_provider,t.id,t.iframe_video,t.is_paid,t.is_soon,t.is_soon_text,null==t?void 0:t.thumbnail]),x=(0,r.useCallback)(e=>{window.Player={onLoaded:t=>{let s=tvigle.api.getPlayer(t);o.current=s,(0,g.c)("LOADED!!!"),d.current=new er(s,e,c),console.info("onLoaded")},onReady:function(){console.info("Player ready");let e=(0,el.E)("clickerId");if(e){let t=new Image;t.src="https://di6stero.com/cv/349/808/1?clickid="+e+"&price=0¤cy=USD",document.body.appendChild(t)}},onError:function(){},eventHandler:e=>{let t=e.name,s=e.args;if(d){var a;let e=null==d?void 0:null===(a=d.current)||void 0===a?void 0:a.getHandler(t);if((0,g.c)(t),"start"===t&&(0,T.Df)("player_video_watch_start"),"advert_start"===t&&(0,T.Df)("player_ad_watch"),"error"===t&&i("player"),"ended"===t){(0,T.Df)("player_video_watch_full");let e=h();e&&p(e,{})}"onPlayedThirdQuarter"===t&&(0,T.Df)("player_video_watch_third_quartile"),"function"==typeof e?e.apply(o,s):window.console&&(0,g.c)("Function named "+t+"("+s.length+" params) is not defined.")}}}},[h,i,p,c]);return{renderPlayer:(0,r.useCallback)(async e=>{let t=await f();x(t),"cloud"!==t.provider&&t.provider!==v.start?_(e,t,y):m(e,t)},[f,x,y,_,m])}};var ed=s(30497),ec=s.n(ed);let eu=e=>{let{meta:t}=e;return(0,a.jsx)("div",{className:ec().root,"data-sentry-component":"VideoPlaceholder","data-sentry-source-file":"index.tsx",children:(0,a.jsx)("div",{className:ec().message,children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j.A,{className:ec().messageIcon,name:t.iconName,"data-sentry-element":"Icon","data-sentry-source-file":"index.tsx"}),(0,a.jsx)(F.A,{className:ec().messageText,htmlElement:"p",size:[28,28,20],weight:F.L.BOLD,text:t.text,"data-sentry-element":"Typo","data-sentry-source-file":"index.tsx"}),t.description&&(0,a.jsx)(M.A,{text:t.description}),t.buttons&&(0,a.jsx)("div",{className:ec().buttons,children:t.buttons})]})})})},e_=e=>{let{videoInfo:t,permissions:s,product:l}=e,[n,i]=(0,r.useState)(!1),[o,d]=(0,r.useState)(!1);(0,r.useEffect)(()=>{i(!1),d(!1)},[t.id]);let c=(0,r.useCallback)(()=>{et.A.set("age_restrict","passed"),i(!0)},[]),u=(0,r.useCallback)(()=>{d(!0)},[]);return{meta:(0,r.useMemo)(()=>t.is_soon?{iconName:"ill_80_clock",text:"СкоÑо на Tvigle",description:null}:s&&s.isGeoBlocked?{iconName:"ill_80_loaction_error",text:"Ðидео недоÑÑÑпно в ваÑем Ñегионе",description:"ÐÑовеÑÑÑе наÑÑÑойки VPN"}:"18+"!==l.age_restrictions&&"18+"!==t.age_restrictions||n||o?o?{iconName:"ill_80_18_plus",text:"Ðз-за возÑаÑÑнÑÑ
огÑаниÑений, видео вам недоÑÑÑпно",description:null}:null:{iconName:"ill_80_18_plus",text:"Ðам Ñже иÑполнилоÑÑ 18 леÑ?",description:null,buttons:[(0,a.jsx)(b.A,{className:x().permissionsButton,onClick:c,rounded:!0,buttonType:b.V.SECONDARY,children:"Ðа"},1),(0,a.jsx)(b.A,{className:x().permissionsButton,onClick:u,rounded:!0,buttonType:b.V.SECONDARY,children:"HeÑ"},2)]},[n,o,c,u,s,l.age_restrictions,t.age_restrictions,t.is_soon])}};var em=s(47730),ep=s.n(em);let ev=(e,t)=>
1{let s=Math.abs(e)%100,a=s%10;return s>10&&s<20?t[2]:a>1&&a<5?t[1]:1===a?t[0]:t[2]},eh=(e,t,s)=>s?ev(e,t):"".concat(e," ").concat(ev(e,t));var ey=s(36355),eg=s(28133),ef=s.n(eg),ex=s(55624),eA=s(55336);let ew=e=>{var t,s,l;let{videoInfo:n,updateVideoInfo:i}=e,{user:o}=(0,u.A)(),[d,c]=(0,r.useState)(!1),_=(0,r.useCallback)(e=>e?e.expires?"".concat(parseInt(e.amount)," ÑÑб. за ").concat(eh(e.expires,["денÑ","днÑ","дней"])):"".concat(parseInt(e.amount)," ÑÑблей"):null,[]),m=(0,r.useCallback)(()=>{c(!0)},[]),p=(0,r.useCallback)(()=>{c(!1)},[]),v=(0,r.useCallback)(()=>{i()},[i]);return n.can_play?null:(0,a.jsxs)("div",{className:ep().root,"data-sentry-component":"VideoPayment","data-sentry-source-file":"index.tsx",children:[(0,a.jsx)(ef(),{id:"cloudpayments",src:"https://widget.cloudpayments.ru/bundles/cloudpayments/","data-sentry-element":"Script","data-sentry-source-file":"index.tsx"}),(0,a.jsx)(ef(),{id:"cloudpayments",src:"https://widget.cloudpayments.ru/bundles/cloudpayments/","data-sentry-element":"Script","data-sentry-source-file":"index.tsx"}),(0,a.jsx)(ef(),{id:"payselection",src:"https://widget.payselection.com/lib/pay-widget.js","data-sentry-element":"Script","data-sentry-source-file":"index.tsx"}),(0,a.jsxs)("div",{className:ep().message,children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(F.A,{className:ep().messageText,htmlElement:"p",size:[28,28,20],weight:F.L.BOLD,text:n.name,"data-sentry-element":"Typo","data-sentry-source-file":"index.tsx"}),(0,a.jsxs)(b.A,{onClick:m,className:ep().button,rounded:!0,"data-sentry-element":"Button","data-sentry-source-file":"index.tsx",children:[(0,a.jsx)(j.A,{name:"ic_24_lock","data-sentry-element":"Icon","data-sentry-source-file":"index.tsx"}),(0,a.jsx)(ey.A,{text:_(null==n?void 0:null===(t=n.tariffs)||void 0===t?void 0:t[0])||"кÑпиÑÑ","data-sentry-element":"Medium14","data-sentry-source-file":"index.tsx"})]}),(0,a.jsx)(M.A,{text:"Ð Ñакже многие дÑÑгие ÑилÑÐ¼Ñ Ð¸ ÑеÑÐ¸Ð°Ð»Ñ Ð¿Ð¾ подпиÑке","data-sentry-element":"Regular16","data-sentry-source-file":"index.tsx"})]}),d&&(0,a.jsx)(eA.A,{onClose:p,children:(0,a.jsx)(ex.A,{onSuccess:v,tariffs:n.tariffs,accountId:null==o?void 0:null===(l=o.data)||void 0===l?void 0:null===(s=l.account)||void 0===s?void 0:s.pk,onClose:p})})]})]})};var eb=s(90281),ej=s(55870),ek=s(18985),eC=s.n(ek),eN=s(68725),eI=s.n(eN);let eS=e=>{var t,s;let{productVideos:l,groupVideos:n,isSeasonsButtonShown:i,onSeasonsButtonClick:o,product:d,videoId:c}=e,u=l||n,_=(0,r.useCallback)(()=>{(0,T.Df)("product_player_video_carousel_click")},[]),m=(0,r.useCallback)(()=>{(0,T.Df)("product_player_video_carousel_scroll")},[]),p=(0,r.useCallback)(()=>{null==o||o(),(0,T.Df)("product_seasons_button_click")},[o]),v=(0,r.useMemo)(()=>u?u.map(e=>({id:e.id,element:(t,s,r)=>(0,a.jsxs)(eI(),{href:e.full_slug,className:N()(eC().video,{[eC().active]:c===e.id,active:c===e.id}),prefetch:!1,children:[(0,a.jsx)(eb.A,{className:eC().videoImage,alt:e.name,size:{h:140,w:245},src:e.thumbnail,placeholderType:"slider"}),(0,a.jsx)(ey.A,{className:eC().videoNum,text:r+1}),(0,a.jsx)(j.A,{className:eC().playIcon,name:"play-btn"})]})})):[],[c,u]);return(0,a.jsx)("div",{className:eC().root,"data-sentry-component":"GroupVideos","data-sentry-source-file":"index.tsx",children:(0,a.jsxs)("div",{className:eC().wrap,children:[(0,a.jsx)(ej.A,{arrowLeft:(0,a.jsx)(j.A,{name:"ic_24_arrow_right"}),arrowRight:(0,a.jsx)(j.A,{name:"ic_24_arrow_right"}),arrowLeftClassName:N()(eC().arrow,eC().arrowLeft),arrowRightClassName:N()(eC().arrow,eC().arrowRight),scrollToActive:!0,paddingRight:n?200:0,mode:"dark",items:v,events:{useSlideClick:_,useScroll:m},"data-sentry-element":"SimpleSlider","data-sentry-source-file":"index.tsx"}),i&&n&&(0,a.jsxs)("div",{className:eC().seasonsButton,onClick:p,children:[(0,a.jsxs)("div",{className:eC().seasonsButtonInfo,children:[(null==d?void 0:null===(t=d.groups)||void 0===t?void 0:t.length)>0&&(0,a.jsx)(R.A,{text:eh(null==d?void 0:null===(s=d.groups)||void 0===s?void 0:s.length,["Ñезон","Ñезона","Ñезонов"])}),(null==d?void 0:d.videos_count)>0&&(0,a.jsx)(R.A,{text:eh(null==d?void 0:d.videos_count,["ÑеÑиÑ","ÑеÑии","ÑеÑий"])})]}),(0,a.jsx)(j.A,{className:eC().seasonsIcon,name:"arrow_big"})]})]})})},eE={src:"/_next/static/media/cover.a2b489f3.png",height:200,width:354,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAAA1BMVEXZ2dmK1ydDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAADElEQVR4nGNgIAEAAAAtAAHF18CGAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:5};var eL=s(58745),eT=s(57019);let eD={playPermissions:{key:"playPermission",fetcher:async e=>{let[,t]=e;return(await (0,$.Ay)({method:"get",url:eT.F.playPermissions(t),withCredentials:!0})).data}},version:{key:"version",fetcher:async()=>{try{return(await (0,$.Ay)({method:"get",url:eT.F.version,withCredentials:!0})).data}catch(e){return(0,g.c)("Failed to fetch version:",e),null}},fetcherSsr:async e=>{try{return(await (0,eL.A)({method:"get",url:eT.F.version,headers:e})).data}catch(e){return console.log("Failed to fetch version on SSR:",e),null}}}};var eM=s(75226),eR=s(54740);let eV=e=>e?e.startsWith("//")?"https:".concat(e):e:void 0,eB=e=>{var t,s;let{videoInfo:l,product:n,onSeasonsButtonClick:i,openWindow:d,closeWindow:c,isWindowOpen:_,permissions:m,updateVideoInfo:p,groupVideos:h,productVideos:y,productGroupInfo:f,refParam
1:A}=e,{user:w,isSubscriptionExist:b}=(0,u.A)(),{mutate:k}=(0,V.iX)(),C=(0,r.useMemo)(()=>{var e,t;return null==m?void 0:null===(t=m.playlist)||void 0===t?void 0:null===(e=t.items)||void 0===e?void 0:e[0]},[null==m?void 0:null===(t=m.playlist)||void 0===t?void 0:t.items]),{less_then_desktop:N}=(0,eR.Y)(),[I]=(0,U.lW)(),[S,E]=(0,r.useState)(!1),[L,B]=(0,r.useState)(!0),F=(0,en.useSearchParams)(),W=(0,r.useMemo)(()=>S||A&&"0"!==A,[S,A]),O=/^stage[23]?/.test(window.location.hostname)?window.location.host:"",G=(null==F?void 0:F.get("api_domain"))||O||((null==l?void 0:l.content_provider)===v.start?"prod":""),H=null==G?void 0:null===(s=G.match(/stage[23]?/))||void 0===s?void 0:s[0],{data:X}=(0,o.Ay)(eD.version.key,eD.version.fetcher,{fallbackData:null}),z=(0,r.useMemo)(()=>{var e;window.globalSettings={},window.name="tvigle_player";let t=(null==l?void 0:l.content_provider)===v.start?"tvigle.ru":"cloud.tvigle.ru",s=(null==X?void 0:null===(e=X["player-js-api"])||void 0===e?void 0:e["commit-sha"])||new Date().getTime();return((0,g.c)("playerCommitSha",s),H)?(window.globalSettings.PLAYERS_API_DOMAIN=H+"."+t,window.globalSettings.PLAYERS_CDN_DOMAIN=H+"."+t,"//".concat(H,".cloud.tvigle.ru/static/player/player_builder.min.js?v=").concat(s)):(window.globalSettings.PLAYERS_API_DOMAIN=t,window.globalSettings.PLAYERS_CDN_DOMAIN=t,window.globalSettings.PLAYERS_PROXY_DOMAIN="","//cloud.tvigle.ru/static/player/player_builder.min.js?v=".concat(s))},[H,null==l?void 0:l.content_provider,X]),{data:q,mutate:K}=(0,o.Ay)(w?[eD.playPermissions.key,l.id]:null,eD.playPermissions.fetcher),Y=(0,r.useCallback)(()=>{p(),K()},[K,p]),{meta:J}=e_({videoInfo:l,permissions:C,product:n}),{renderPlayer:$}=eo({productInfo:n,videoInfo:l,videos:y||h,productGroupInfo:f,userSettings:q}),ee=(0,r.useMemo)(()=>(null==n?void 0:n.videos_count)>1,[null==n?void 0:n.videos_count]),et=(0,r.useCallback)(()=>{k(eM.uy,"disable-ads",!1),(0,T.Df)("product_disable_ads_click")},[k]),es=(0,r.useMemo)(()=>{var e;return l.is_paid&&(null==q?void 0:null===(e=q.permission)||void 0===e?void 0:e.type)==="paid"||!l.is_paid},[null==q?void 0:q.permission,l.is_paid]),ea=(0,r.useMemo)(()=>!b&&!l.is_paid,[b,l.is_paid]),er=(0,r.useCallback)(()=>{B(!1)},[]),el=(0,r.useCallback)(()=>{E(!0)},[]),ei=(0,r.useMemo)(()=>!es&&!l.is_soon&&!(null==C?void 0:C.isGeoBlocked),[es,null==C?void 0:C.isGeoBlocked,l.is_soon]),ed=(0,r.useMemo)(()=>eV(l.thumbnail),[l.thumbnail]);return(0,a.jsxs)("div",{className:x().root,"data-sentry-component":"VideoItem","data-sentry-source-file":"index.tsx",children:[W&&(0,a.jsx)(ef(),{strategy:"afterInteractive",src:z,onLoad:er}),_&&(0,a.jsx)(Z,{onClose:c,productSlug:n.slug,rating:n.tvigle_rating}),(0,a.jsxs)("div",{className:x().video,children:[ei&&(0,a.jsx)(ew,{updateVideoInfo:Y,videoInfo:l}),J&&(es||l.is_soon||(null==C?void 0:C.isGeoBlocked))&&(0,a.jsx)(eu,{meta:J}),!J&&es&&!L&&W&&(0,a.jsx)("div",{className:x().playerContainer,ref:$}),ed&&(0,a.jsx)(P(),{className:x().thumbnail,alt:l.name,width:I-30,height:(I-30)*.67,src:ed,priority:!0}),(0,a.jsx)(P(),{priority:!0,className:x().coverImage,alt:"cover-image",src:eE,"data-sentry-element":"NextImage","data-sentry-source-file":"index.tsx"}),L&&W&&(0,a.jsx)(Q.a,{presetSize:"large",className:x().loader}),!W&&(0,a.jsx)("div",{className:x().playButton,onClick:el,children:(0,a.jsx)(j.A,{name:"play-btn"})})]}),(0,a.jsxs)("div",{className:x().wrap,children:[(N||ea)&&(0,a.jsxs)("div",{className:x().controls,children:[ea&&!ei&&(0,a.jsxs)("div",{className:x().removeAd,onClick:et,children:[(0,a.jsx)(j.A,{wrapClassName:x().icon,name:"ic_36_hand"}),(0,a.jsx)(M.A,{text:"ÐÑклÑÑиÑÑ ÑекламÑ"}),(0,a.jsx)(R.A,{className:x().price,text:"Ð¾Ñ 39 ÑÑб / 1 денÑ"})]}),(0,a.jsx)(D,{openWindow:d,className:x().rating,value:n.tvigle_rating})]}),(y&&y.length>1||h&&h.length>1)&&(0,a.jsx)(eS,{onSeasonsButtonClick:i,product:n,isSeasonsButtonShown:ee,groupVideos:h,productVideos:y,videoId:l.id})]})]})};var eP=s(74116),eF=s(55653),eW=s(54342),eO=s(51046),eG=s(40508),eH=s.n(eG),eU=s(20647),eX=s(70067),ez=s(31067),eq=s(52388),eK=s.n(eq);let eY=e=>{let{product:t,videoInfo:s,crumbLinkStart:l,meta:n,filtersList:i}=e,o=(0,r.useCallback)(()=>{(0,T.Df)("product_tags_click")},[]),d=(0,r.useCallback)(e=>{let t="string"==typeof e?parseInt(e,10):e;if(!isNaN(t)&&(null==i?void 0:i.release_year)){if(t<1980)return"Y80";for(let e of i.release_year){let s=e.key;if(s.includes("-")){let[a,r]=s.split("-").map(e=>parseInt(e.trim(),10));if(t>=a&&t<=r)return e.key}else if(t===parseInt(s,10))return e.key}}},[null==i?void 0:i.release_year]),c=(0,r.useMemo)(()=>{let e=(null==s?void 0:s.release_year)||(null==t?void 0:t.release_year),r=e?d(e):void 0;return e?r?(0,a.jsx)("a",{href:"".concat(l,"?filters=").concat((0,eX.C)({release_year:r})),onClick:o,children:(0,a.jsx)(ez.gW,{text:e})},"release_year"):(0,a.jsx)(ez.gW,{text:e}):null},[l,d,o,null==t?void 0:t.release_year,null==s?void 0:s.release_year]),u=(0,r.useMemo)(()=>(null==n?void 0:n.age_restrictions)?(0,a.jsx)(ez.gW,{text:n.age_restrictions}):null,[n.age_restrictions]),_=(0,r.useMemo)(()=>{var e;return null==s?void 0:null===(e=s.genres)||void 0===e?void 0:e.map(e=>{var t;let r=null==s?void 0:null===(t=s.category_genre_links)||void 0===t?void 0:t.find(t=>t.genres.includes(e));return r?(0,a.jsx)("a",{onClick:o,href:"/catalog/".concat(r.category_parent_slug,"/").concat(r.category_slug,"/"),children:(0,a.jsx)(ez.gW,{text:e})},e):(0,a.jsx)(ez.gW,{text:e},e)})},[null==s?void 0:s.genres,null==s?void 0:s.category_genre_links,o]),m=(0,r.useMemo)(()=>{var e;return null==s?void 0:null===(e=s.countries)||void 0===e?void 0:e.map(e=>{var t;let s=null==i?void 0:null===(t=i.country)||void 0===t?void 0:t.find(t=>t.label===e);return s?(0,a.jsx)("a",{href:"".concat(l,"?filters=").concat((0,eX.C)({country:String(s.key)}
1)),onClick:o,children:(0,a.jsx)(ez.gW,{text:e})},e):(0,a.jsx)(ez.gW,{text:e},e)})},[null==s?void 0:s.countries,null==i?void 0:i.country,l,o]);return(0,a.jsxs)("div",{className:eK().breadCrumbs,"data-sentry-component":"BreadCrumbs","data-sentry-source-file":"index.tsx",children:[(0,a.jsx)("div",{className:eK().group,children:_}),(0,a.jsx)("div",{className:eK().group,children:m}),(0,a.jsx)("div",{className:eK().group,children:c}),(0,a.jsx)("div",{className:eK().group,children:u})]})};var eJ=s(62115),eQ=s(93580);let eZ=e=>{let{product:t,description:s,name:l,openWindow:n,isInFavourite:i,mutateFavourite:o,videoInfo:c,crumbLinkStart:_,meta:m,filtersList:p}=e,{user:v}=(0,u.A)(),[h,y]=(0,r.useState)(!1),g=(0,r.useCallback)(()=>{y(!h)},[h]),f=(0,r.useCallback)(()=>{(0,T.Df)("product_description_expand_click")},[]),x=(0,r.useCallback)(async()=>{if((0,T.Df)("product_favorite_add"),v)try{i?(await d.A.productFavourite.removeFromFavourite(String(t.id)),o({is_favorite:!1})):(await d.A.productFavourite.addToFavourite(String(t.id)),o({is_favorite:!0}))}catch(e){console.error("ÐÑоизоÑла оÑибка")}else g()},[i,o,t.id,g,v]),A=(0,r.useMemo)(()=>{if(h&&!v)return(0,a.jsx)(eJ.qz,{onClose:g})},[h,g,v]),w=(0,r.useMemo)(()=>{var e,t;return(null==c?void 0:null===(e=c.quality)||void 0===e?void 0:e.length)?null==c?void 0:null===(t=c.quality)||void 0===t?void 0:t.join(", "):null},[null==c?void 0:c.quality]),b=(0,r.useCallback)(()=>{(0,T.Df)("product_like_click")},[]),k=window.location.href,C=(0,r.useCallback)(async()=>{b();try{var e;if("undefined"!=typeof navigator&&(null===(e=navigator.clipboard)||void 0===e?void 0:e.writeText))await navigator.clipboard.writeText(k);else if("undefined"!=typeof document){let e=document.createElement("textarea");e.value=k,e.setAttribute("readonly",""),e.style.position="fixed",e.style.left="-9999px",e.style.top="0",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}(0,eQ._)({message:"СÑÑлка ÑкопиÑована",closable:!1,timeout:3e3})}catch(e){(0,eQ._)({message:"Ðе ÑдалоÑÑ ÑкопиÑоваÑÑ ÑÑÑлкÑ",type:eQ.W.ERROR,closable:!1,timeout:3e3})}},[b,k]),I=(0,r.useCallback)(e=>{let t=Math.floor(e/6e4),s=Math.floor(t/60),a=t%60;return s>0?"".concat(s,"Ñ ").concat(a,"мин"):"".concat(a,"мин")},[]),S=(0,r.useMemo)(()=>(null==c?void 0:c.duration)?I(c.duration):null,[I,c.duration]);return(0,a.jsxs)("div",{className:eH().root,"data-sentry-component":"Info","data-sentry-source-file":"index.tsx",children:[A,(0,a.jsxs)("div",{className:eH().info,children:[(0,a.jsxs)("div",{className:eH().main,children:[(0,a.jsxs)("div",{className:eH().addToFavorite,onClick:x,children:[(0,a.jsx)(j.A,{name:"add_to_favorite","data-sentry-element":"Icon","data-sentry-source-file":"index.tsx"}),(0,a.jsx)(j.A,{className:N()(eH().inFavorite,{[eH().active]:i}),name:"in_favorite","data-sentry-element":"Icon","data-sentry-source-file":"index.tsx"})]}),(0,a.jsxs)("div",{className:eH().meta,children:[(0,a.jsx)(F.A,{className:eH().infoTitle,htmlElement:"h1",size:[48,48,20],weight:F.L.BOLD,text:l||"","data-sentry-element":"Typo","data-sentry-source-file":"index.tsx"}),(S||w)&&(0,a.jsxs)("div",{className:eH().extra,children:[S&&(0,a.jsxs)("div",{className:N()(eH().extraItem,eH().extraDuration),children:[(0,a.jsx)("div",{className:eH().extraIcon,children:(0,a.jsx)(j.A,{name:"ic_16_sand_hourglass"})}),(0,a.jsx)(ez.gW,{text:S})]}),w&&(0,a.jsxs)("div",{className:eH().extraItem,children:[(0,a.jsx)("div",{className:eH().extraIcon,children:(0,a.jsx)(j.A,{name:"ic_16_tv_screen"})}),(0,a.jsx)(ez.gW,{text:w})]})]}),(0,a.jsx)(eY,{filtersList:p,meta:m,crumbLinkStart:_,product:t,videoInfo:c,"data-sentry-element":"Breadcrumbs","data-sentry-source-file":"index.tsx"})]})]}),s&&(0,a.jsx)(eU.A,{html:s.replace(/<\/p>/gi,"\n").replace(/<p>/gi,"").replace(/<\/p>/gi,"").replace(/<p\/>/gi,""),auto:!0,viewedLinesCount:4,onToggle:f}),(0,a.jsxs)("div",{className:eH().shareButtons,children:[(0,a.jsx)(eO.rx,{onClick:b,url:k,"aria-label":"ÐоделиÑÑÑÑ ÐконÑакÑе","data-sentry-element":"VKShareButton","data-sentry-source-file":"index.tsx",children:(0,a.jsx)("div",{className:eH().shareButton,style:{backgroundColor:"rgba(77, 118, 164, 1)"},children:(0,a.jsx)(j.A,{name:"social/cn_24_vk","data-sentry-element":"Icon","data-sentry-source-file":"index.tsx"})})}),(0,a.jsx)(eO.AC,{onClick:b,url:k,"aria-label":"ÐоделиÑÑÑÑ Ð² ÐдноклаÑÑникаÑ
","data-sentry-element":"OKShareButton","data-sentry-source-file":"index.tsx",children:(0,a.jsx)("div",{className:eH().shareButton,style:{backgroundColor:"rgba(255, 119, 1, 1)"},children:(0,a.jsx)(j.A,{name:"social/cn_24_odnoklasniki","data-sentry-element":"Icon","data-sentry-source-file":"index.tsx"})})}),(0,a.jsx)("button",{type:"button",className:eH().shareLinkButton,onClick:C,"aria-label":"СкопиÑоваÑÑ ÑÑÑлкÑ",title:"СкопиÑоваÑÑ ÑÑÑлкÑ",children:(0,a.jsx)("div",{className:eH().shareButton,children:(0,a.jsx)(j.A,{name:"ic_24_copy","data-sentry-element":"Icon","data-sentry-source-file":"index.tsx"})})})]})]}),(0,a.jsx)("div",{className:eH().ratingWrap,children:(0,a.jsx)(D,{openWindow:n,value:t.tvigle_rating,"data-sentry-element":"Rating","data-sentry-source-file":"index.tsx"})})]})};var e$=s(69451),e0=s.n(e$),e1=s(82741),e4=s.n(e1),e5=s(35812);let e2=e=>{let{children:t}=e,s=(0,r.useRef)(null),l=(0,r.useRef)(null),n=(0,e5.X)(s),i=(0,e5.X)(l),o=(0,U.SO)(),d=(0,r.useMemo)(()=>(null==n?void 0:n.width)&&(null==i?void 0:i.width)&&(null==n?void 0:n.width)<(null==i?void 0:i.width)&&o>1023,[null==i?void 0:i.width,null==n?void 0:n.width,o]);return(0,a.jsx)("div",{ref:s,className:N()(e4().root,{[e4().active]:d}),"data-sentry-component":"VisibleText","data-sentry-source-file":"index.tsx",children:(0,a.jsx)("span",{className:e4().contentWrap,ref:l,style:{"--activeShift":(null==i?void 0:i.width)&&(null==n?void 0:n.width)?"-".concat((null==i?void 0:i.width)-(null==n?void 0:n.width),"px"):{}},children:r.cloneElement(t,{className:e4().content})})})},e3=e=>{let{personInfo:t,isLoading:s,className:l}=e,n=(0,r.useCallback)(()=>{(0,T.Df)("product_person_click")},[]),i=(0,r.useMemo)(()=>t?(0,a.jsx)("a",{href:"/person/".concat(t.slug,"/"),className:N()(e0().root,l),onClick:n,children:(0,a.jsxs)("div",{className:e0().main,children:[(0,a.jsxs)("div",{className:e0().poster,children:[(0,a.jsx)(P(),{className:e0().posterImage,width:112,height:112,src:"/person_preview.png",alt:"cover-preview"}),(0,a.jsx)(eb.A,{className:N()(e0().posterImage,e0().posterCover),size:{w:400,h:400},src:t.thumbnail,alt:t.name,placeholderType:"person",resizeType:"crop"})]}),(0,a.jsxs)("div",{className:e0().info,children:[(0,a.jsx)(e2,{children:(0,a.jsx)(ey.A,{className:e0().infoTitle,text:t.name})}),t.hero&&(0,a.jsx)("div",{className:e0().role,children:(0,a.jsx)(R.A,{text:t.hero})})]})]})}):null,[l,n,t]);return s?(0,a.jsx)("div",{className:N()(e0().root,l),children:(0,a.jsx)("div",{className:e0().main,children:(0,a.jsx)("div",{className:N()(e0().poster,{[e0().isLoading]:s}),children:(0,a.jsx)(P(),{className:e0().posterImage,width:112,height:112,src:"/person_preview.png",alt:"cover-preview"})})})}):t?i:null};var e6=s(84872),e8=s.n(e6),e9=s(31324),e7=s.n(e9),te=s(9165);let tt=e=>{let{personInfo:t}=e,s=(0,r.useCallback)(()=>{(0,T.Df)("product_person_click")},[]);return(0,a.jsxs)("div",{className:e8().staffItem,onClick:s,"data-sentry-component":"StaffItem","data-sentry-source-file":"staffItem.tsx",children:[t.slug&&(0,a.jsx)(eI(),{prefetch:!1,className:e8().staffLink,href:"/person/".concat(t.slug,"/"),children:(0,a.jsx)(e2,{children:(0,a.jsx)(ey.A,{className:e8().staffName,text:null==t?void 0:t.name})})}),!t.slug&&(0,a.jsx)(e2,{children:(0,a.jsx)(ey.A,{text:null==t?void 0:t.name})})]})},ts=e=>{let{videoInfo:t}=e,s=(0,r.useMemo)(()=>(null==t?void 0:t.persons_new)&&(null==t?void 0:t.persons_new.length)?e7()(t.persons_new,"role"):null,[t.persons_new]),{actor:l,...n}=s||{},i=(0,r.useMemo)(()=>l?l.sort(e=>e.is_headliner?-1:1).map(e=>({id:e.id,element:()=>(0,a.jsx)("div",{className:e8().person,children:(0,a.jsx)(e3,{personInfo:e})})})):[],[l]),o=(0,r.useMemo)(()=>n?Object.keys(n).map(e=>{let t=n[e];return(0,a.jsxs)("div",{children:[(0,a.jsx)(te.A,{className:e8().staffItemTitle,text:t[0].role_name}),(0,a.jsx)("div",{className:e8().staffList,children:t.map((e,t)=>(0,a.jsxs)("div",{className:e8().staffItemWrap,children:[0!==t&&(0,a.jsx)(ey.A,{className:e8().dot,text:"â¢"}),(0,a.jsx)(tt,{personInfo:e})]},e.id))})]},e)}):null,[n]);return s?(0,a.jsxs)("div",{className:e8().root,"data-sentry-component":"Staff","data-sentry-source-file":"index.tsx",children:[(0,a.jsx)(F.A,{className:e8().title,htmlElement:"h2",size:[32,32,20],weight:F.L.BOLD,text:"ÐкÑÑÑÑ Ð¸ ÑоздаÑели","data-sentry-element":"Typo","data-sentry-source-file":"index.tsx"}),0!==i.length&&(0,a.jsx)("div",{className:e8().sliderWrap,children:(0,a.jsx)(ej.A,{items:i,arrowLeft:(0,a.jsx)(j.A,{name:"ic_24_arrow_right"}),arrowRight:(0,a.jsx)(j.A,{name:"ic_24_arrow_right"}),arrowLeftClassName:N()(e8().arrow,e8().arrowLeft),arrowRightClassName:N()(e8().arrow,e8().arrowRight)})}),(0,a.jsx)("div",{className:e8().staffListWrap,children:o})]}):null};var ta=s(96808),tr=s.n(ta),tl=s(94139),tn=s.n(tl);let ti=e=>{let{product:t,onChange:s,activeGroupId:r}=e;return(0,a.jsx)("div",{className:tn().root,"data-sentry-component":"SeasonsTabs","data-sentry-source-file":"index.tsx",children:(0,a.jsx)("ul",{className:tn().tabs,children:t.groups.map(e=>(0,a.jsx)("li",{onClick:s(e),className:N()(tn().tab,{[tn().active]:e.id===r}),children:(0,a.jsx)(R.A,{text:e.season_name||e.name})},e.id))})})};var to=s(23041),td=s(81420),tc=s.n(td),tu=s(40988);let t_=new O.A,tm=e=>{let{product:t,productGroupInfo:s,videoInfo:l,onClose:n,fallback:i}=e,[c,u]=(0,r.useState)(null==s?void 0:s.id),_=(0,r.useRef)(null),m=(0,to.Ay)(c?d.A.productGroupVideos.getKey(null==t?void 0:t.id,c):()=>null,d.A.productGroupVideos.fetcher,{fallbackData:[i[(0,o.WI)([d.A.productGroupVideos.key,0,null==t?void 0:t.id,c])]],errorRetryCount:1}),p=(0,to.Ay)(c?()=>null:d.A.productVideos.getKey(null==t?void 0:t.id),d.A.productVideos.fetcher,{fallbackData:[i[(0,o.WI)([d.A.productVideos.key,0,null==t?void 0:t.id])]],errorRetryCount:1}),v=(0,r.useMemo)(()=>c?m:p,[c,m,p]),h=(0,r.useMemo)(()=>t.groups.find(e=>e.id===c),[c,t.groups]),y=(0,r.useCallback)(()=>{null==n||n(),(0,T.Df)("product_seasons_tab_video_click")},[n]);(0,r.useEffect)(()=>(t_.freeze(),()=>{t_.unfreeze()}),[]);let g=(0,r.useMemo)(()=>{var e;let t=[];return null==v||null===(e=v.data)||void 0===e||e.forEach((e,s)=>{var r;return null==e?void 0:null===(r=e.results)||void 0===r?void 0:r.forEach((e,r)=>{t.push((0,a.jsxs)(eI(),{prefetch:!1,shallow:!0,onClick:y,href:e.full_slug,className:N()(tr().seasonItem,{[tr().active]:l.id===e.id}),children:[(0,a.jsx)(eb.A,{alt:e.name,className:tr().seasonThumb,placeholderType:"slider",src:e.thumbnail,size:{w:712,h:324}}),(0,a.jsx)(tu.A,{className:tr().seasonItemNumber,text:100*s+r+1})]},e.id))})}),t}
1,[y,l.id,null==v?void 0:v.data]),f=(0,r.useMemo)(()=>{var e;return null!=v&&!!v.data&&!!(null==v?void 0:null===(e=v.data[(null==v?void 0:v.data.length)-1])||void 0===e?void 0:e.next)},[null==v?void 0:v.data]),x=(0,r.useCallback)(()=>{v.isValidating||v.isLoading||v.setSize(v.size+1)},[v]),A=(0,r.useCallback)(e=>()=>{u(e.id),(0,T.Df)("product_seasons_tab_click")},[]),w=(0,r.useCallback)(()=>{null==n||n(),(0,T.Df)("product_seasons_tab_close_click")},[n]);return(0,a.jsx)("div",{className:tr().root,"data-sentry-component":"Seasons","data-sentry-source-file":"index.tsx",children:(0,a.jsxs)("div",{className:tr().body,children:[(0,a.jsxs)("div",{className:tr().header,children:[(0,a.jsx)(F.A,{htmlElement:"h1",size:[48,48,20],weight:F.L.BOLD,text:t.name||"",className:tr().title,"data-sentry-element":"Typo","data-sentry-source-file":"index.tsx"}),(0,a.jsx)(j.A,{onClick:w,wrapClassName:tr().icon,name:"ic_24_cross","data-sentry-element":"Icon","data-sentry-source-file":"index.tsx"})]}),c&&(0,a.jsx)(ti,{activeGroupId:c,product:t,onChange:A}),(0,a.jsxs)("div",{ref:_,className:tr().listWrap,children:[(0,a.jsxs)(tc(),{pageStart:0,threshold:1500,loadMore:x,hasMore:f,useWindow:!1,getScrollParent:()=>_.current,loader:(0,a.jsx)("div",{className:tr().loader,children:(0,a.jsx)(Q.a,{})},0),"data-sentry-element":"InfiniteScroll","data-sentry-source-file":"index.tsx",children:[(0,a.jsx)(F.A,{htmlElement:"h1",size:[32,32,20],weight:F.L.BOLD,text:(null==h?void 0:h.name)||"",className:tr().groupTitle,"data-sentry-element":"Typo","data-sentry-source-file":"index.tsx"}),(0,a.jsx)("div",{className:tr().list,children:g})]}),v.isLoading&&(0,a.jsx)("div",{className:tr().listLoader,children:(0,a.jsx)(Q.a,{})},0)]})]})})};var tp=s(2526),tv=s.n(tp),th=s(79790);let ty=e=>{var t;let{recommendation:s}=e,l=(0,r.useCallback)(()=>{(0,T.Df)("product_recommendation_click")},[]),n=(0,r.useMemo)(()=>{var e;return null==s?void 0:null===(e=s.results)||void 0===e?void 0:e.map(e=>({id:e.name,element:()=>{var t;return(0,a.jsx)("div",{className:tv().cardWrap,children:(0,a.jsx)(th.A,{onCardClick:l,cardItem:{...e.link,tvigle_rating:String(null==e?void 0:null===(t=e.link)||void 0===t?void 0:t.tvigle_rating),name:e.name,thumbnail:e.thumbnail,description:e.text}},e.name)})}}))},[l,null==s?void 0:s.results]);return(null==s?void 0:null===(t=s.results)||void 0===t?void 0:t.length)?(0,a.jsxs)("div",{className:tv().root,"data-sentry-component":"ProductRecommendation","data-sentry-source-file":"index.tsx",children:[(0,a.jsx)(F.A,{className:tv().title,htmlElement:"h2",size:[32,32,20],weight:F.L.BOLD,text:"СмоÑÑиÑе Ñакже","data-noindex":!0,"data-sentry-element":"Typo","data-sentry-source-file":"index.tsx"}),(0,a.jsx)("div",{className:tv().content,children:(0,a.jsx)(ej.A,{items:n,arrowLeft:(0,a.jsx)(j.A,{name:"ic_24_arrow_right"}),arrowRight:(0,a.jsx)(j.A,{name:"ic_24_arrow_right"}),arrowLeftClassName:N()(tv().arrow,tv().arrowLeft),arrowRightClassName:N()(tv().arrow,tv().arrowRight),"data-sentry-element":"SimpleSlider","data-sentry-source-file":"index.tsx"})})]}):null};var tg=s(85922),tf=s(13981);let tx=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return e?("string"==typeof e?parseFloat(e):e).toFixed(t):parseInt("0").toFixed(t)},tA=e=>{var t;let{videoInfo:s,product:l,meta:n,productVideos:i,groupVideos:o,slugs:d}=e,c=(0,r.useMemo)(()=>(null==s?void 0:s.persons_new)&&(null==s?void 0:s.persons_new.length)?e7()(s.persons_new,"role"):null,[s.persons_new]),u=(0,r.useMemo)(()=>c?Object.keys(c).reduce((e,t)=>{let s=c[t].map(e=>({"@type":"Person",name:null==e?void 0:e.name,image:null==e?void 0:e.thumbnail,url:"https://www.tvigle.ru/person/".concat(e.slug)}));return{...e,[t]:s}},{}):[],[c]),_=(0,r.useMemo)(()=>{var e,t;return{"@context":"https://schema.org","@type":o||(null==i?void 0:null===(e=i.results)||void 0===e?void 0:e.length)>1?"TVSeries":"Movie",url:"https://www.tvigle.ru/video/".concat(d.join("/"),"/"),image:l.thumbnail,name:null==n?void 0:n.name,genre:null==n?void 0:null===(t=n.genres)||void 0===t?void 0:t.join(","),contentRating:null==n?void 0:n.age_restrictions,isFamilyFriendly:(null==n?void 0:n.age_restrictions)!=="18+"?"true":"false",description:null==n?void 0:n.description,dateCreated:String(l.release_year),aggregateRating:{"@type":"AggregateRating",ratingValue:tx(null==l?void 0:l.tvigle_rating,2),ratingCount:(null==l?void 0:l.kinopoisk_vote)+(null==l?void 0:l.imdb_vote),bestRating:"10",worstRating:"0"},thumbnailUrl:null==n?void 0:n.thumbnail,...u}},[o,null==n?void 0:n.age_restrictions,null==n?void 0:n.description,null==n?void 0:n.genres,null==n?void 0:n.name,null==n?void 0:n.thumbnail,null==l?void 0:l.imdb_vote,null==l?void 0:l.kinopoisk_vote,l.release_year,l.thumbnail,null==l?void 0:l.tvigle_rating,
1null==i?void 0:null===(t=i.results)||void 0===t?void 0:t.length,d,u]);return(0,a.jsx)("script",{id:"ld+json+videomovie",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(_)},"data-sentry-component":"LdMovie","data-sentry-source-file":"movie.tsx"})};var tw=s(91514),tb=s(89321),tj=s(4480),tk=s(6633),tC=s(96406),tN=s.n(tC),tI=s(55973),tS=s(62099),tE=s.n(tS);let tL={src:"/_next/static/media/cover.a2b489f3.png",height:200,width:354,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAAA1BMVEXZ2dmK1ydDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAADElEQVR4nGNgIAEAAAAtAAHF18CGAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:5};var tT=s(52769);let tD=()=>{let e=window;for(let s of[e.WinkEmbedSDK,e.winkembed,e.WinkEmbed,e.winkEmbed]){var t;if(null==s?void 0:null===(t=s.api)||void 0===t?void 0:t.insertFrame)return s.api;if(null==s?void 0:s.insertFrame)return s}return null},tM={INIT:"init",PLAYBACK_START:"playback_start",ADS_BLOCK_START:"ads_block_start",AD_REQUEST:"ad_request",AD_PLAYBACK:"ad_playback",AD_END:"ad_end",AD_SKIP:"ad_skip",AD_ERROR:"ad_error",ADS_BLOCK_END:"ads_block_end",PLAYBACK_END:"playback_end"},tR={init:"winkInit",playback_start:"winkStartContent",ads_block_start:"winkAdsBlockStarted",ad_request:"winkRequest",ad_playback:"winkStart",ad_end:"winkComplete",ad_skip:"winkSkip",ad_error:"winkError",ads_block_end:"winkAdsBlockEnd",playback_end:"winkEndContent"};var tV=function(e){return e[e.loading=0]="loading",e[e.soon=1]="soon",e[e.ready=2]="ready",e}({});let tB=e=>{let{videoId:t,videos:s,setWinkVideoId:a}=e,[l,n]=(0,r.useState)(2),i=(0,r.useRef)(null),{isSubscriptionExist:o}=(0,u.A)(),d=(0,r.useCallback)(e=>{n(e)},[]),c=(0,r.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new URLSearchParams({p1:"dfbrt",p2:"frfe",p5:"bdlhns",pr:String(Math.floor(0xffffffff*Math.random())+1),puid2:"",puid3:"",puid4:"",puid5:"",puid6:o?"1":"0",puid14:"",...e});return"".concat("https://ads.adfox.ru/9749560/event","?").concat(t.toString())},[o]),_=(0,r.useCallback)(e=>{e===tM.AD_PLAYBACK&&(tT.A.get(c({pm:"b"})),tT.A.get(c({pm:"d"}))),e===tM.AD_SKIP&&(tT.A.get(c({pm:"r"})),tT.A.get(c({pm:"s"}))),e===tM.AD_REQUEST&&tT.A.get(c({pm:"c"})),e===tM.AD_END&&tT.A.get(c({pm:"h"})),e===tM.ADS_BLOCK_END&&(tT.A.get(c({pm:"o"})),tT.A.get(c({pm:"p"}))),e===tM.AD_ERROR&&tT.A.get(c({pm:"u"}))},[c]),m=(0,r.useCallback)((e,t)=>{tM.INIT&&(i.current&&clearTimeout(i.current),d(2));let r=null==s?void 0:s.find(e=>e.content_id===t.content_id);
1r&&r.content_id!==(null==r?void 0:r.id)&&(a(r.id),window.history.replaceState({},"",r.full_slug)),(0,T.H5)(tR[e]),_(e),(0,g.c)(e,t,"winkEvent")},[d,_,a,s]),p=(0,r.useCallback)(e=>{if(t&&e){let s=tD();if(!s){console.error("Wink Embed SDK is not loaded"),d(1),(0,T.H5)("wink_load_error");return}i.current&&clearTimeout(i.current),d(0),s.insertFrame(e,{trackId:t,partnerId:"P1",frameOptions:{width:"100%",height:"100%"}}),i.current=setTimeout(()=>{d(1),(0,T.H5)("wink_load_error")},2e4)}},[d,t]),v=(0,r.useCallback)(e=>{if(e.origin.includes("https://wink.ru")){let t;(0,g.c)(e);try{t=JSON.parse(e.data)}catch(s){t=e.data}Object.values(tM).forEach(e=>{e===t.event&&m(t.event,null==t?void 0:t.payload)})}},[m]);return(0,r.useEffect)(()=>(window.addEventListener("message",v),()=>{window.removeEventListener("message",v)}),[v]),{renderWinkPlayer:p,playerRenderState:l}},tP=e=>{let{videoInfo:t,product:s,openWindow:l,closeWindow:n,isWindowOpen:i,refParam:o,onSeasonsButtonClick:d,groupVideos:c,productVideos:u,productGroupInfo:_}=e,[m]=(0,U.lW)(),[p,v]=(0,r.useState)(!1),[h,y]=(0,r.useState)(null),g=(0,r.useMemo)(()=>h||t.id,[t.id,h]),f=(0,r.useCallback)(e=>{y(e)},[]),{renderWinkPlayer:x,playerRenderState:A}=tB({videoId:null==t?void 0:t.content_id,productInfo:s,videoInfo:t,videos:u||c,productGroupInfo:_,setWinkVideoId:f}),w=(0,r.useMemo)(()=>p||o&&"0"!==o,[p,o]),b=(0,r.useCallback)(()=>{v(!0)},[]),k=(0,r.useMemo)(()=>(null==s?void 0:s.videos_count)>1,[null==s?void 0:s.videos_count]),C=(0,r.useMemo)(()=>eV(t.thumbnail),[t.thumbnail]);return(0,a.jsxs)("div",{className:tE().root,"data-sentry-component":"WinkVideoItem","data-sentry-source-file":"index.tsx",children:[i&&(0,a.jsx)(Z,{onClose:n,productSlug:s.slug,rating:s.tvigle_rating}),(0,a.jsxs)("div",{className:tE().video,children:[A===tV.soon&&(0,a.jsx)(eu,{meta:{iconName:"ill_80_clock",text:"СкоÑо на Tvigle",description:null}}),w&&(0,a.jsx)("div",{style:{opacity:A===tV.ready?1:0},className:tE().playerContainer,ref:x}),C&&(0,a.jsx)(P(),{className:tE().thumbnail,alt:t.name,width:m-30,height:(m-30)*.67,src:C,priority:!0}),(0,a.jsx)(P(),{priority:!0,className:tE().coverImage,alt:"cover-image",src:tL,"data-sentry-element":"NextImage","data-sentry-source-file":"index.tsx"}),(w||A===tV.loading)&&(0,a.jsx)(Q.a,{presetSize:"large",className:tE().loader}),!w&&A!==tV.loading&&(0,a.jsx)("div",{className:tE().playButton,onClick:b,children:(0,a.jsx)(j.A,{name:"play-btn"})})]}),(0,a.jsxs)("div",{className:tE().wrap,children:[(0,a.jsx)("div",{className:tE().controls,children:(0,a.jsx)(D,{openWindow:l,className:tE().rating,value:s.tvigle_rating,"data-sentry-element":"Rating","data-sentry-source-file":"index.tsx"})}),(u&&u.length>1||c&&c.length>1)&&(0,a.jsx)(eS,{onSeasonsButtonClick:d,product:s,isSeasonsButtonShown:k,groupVideos:c,productVideos:u,videoId:g})]})]})};var tF=s(70014),tW=s(1755),tO=s(3734),tG=s.n(tO),tH=s(87440),tU=s(30284);let tX=e=>{let{articles:t}=e,s=e=>{let{id:t,slug:s,tags:a}=e,r=a&&a[0]&&a[0].slug?a[0].slug:"article",l="".concat(t,"-").concat(s);return"/cinema/".concat(r,"/").concat(l)},l=(0,r.useCallback)(e=>{var t,s,a,r;let l=null==e?void 0:null===(s=e.tags)||void 0===s?void 0:null===(t=s[0])||void 0===t?void 0:t.slug,n=null==e?void 0:null===(r=e.tags)||void 0===r?void 0:null===(a=r[0])||void 0===a?void 0:a.id;return l&&n?"/cinema/tag/".concat(n,"-").concat(l,"/"):"/cinema/"},[]),n=(0,r.useCallback)(e=>{let t={O:"article_image",S:"articlePosterX1",M:"articlePosterX2",L:"articlePosterX3"},s=Object.fromEntries(Object.values(t).map(e=>[e,""]));(e.assets||[]).forEach(e=>{Object.values(t).includes(e.asset_type_slug)&&(s[e.asset_type_slug]=e.image)});let a=(s[t.M]||s[t.L]||s[t.S]||s[t.O]||"").replace("{SIZE}","1280x720");return{src:"https://www.tvigle.ru/cinema/".concat(a)}},[]);if(!t||0===t.length)return null;let i=l(t[0]),o=e=>{let t=(e.tags||[]).slice(0,2);return 0===t.length?null:(0,a.jsx)("div",{className:tG().tagList,"data-sentry-component":"renderTags","data-sentry-source-file":"index.tsx",children:t.map(e=>(0,a.jsx)("span",{className:tG().tagLight,children:e.name},e.id))})},d=e=>(0,a.jsxs)("a",{href:s(e),className:tG().smallCard,"data-sentry-component":"renderArticle","data-sentry-source-file":"index.tsx",children:[(0,a.jsx)(eb.A,{className:tG().smallImg,alt:e.title,placeholderType:"thumb",size:{w:1280,h:720},...n(e),forCinema:!0,"data-sentry-element":"Image","data-sentry-source-file":"index.tsx"}),(0,a.jsxs)("div",{className:tG().smallInfo,children:[(0,a.jsx)(F.A,{className:tG().smallTitle,htmlElement:"p",size:[20,20,16],weight:F.L.MEDIUM,text:e.title,"data-sentry-element":"Typo","data-sentry-source-file":"index.tsx"}),(0,a.jsx)(F.A,{className:tG().smallDescription,htmlElement:"p",size:[14,14,12],weight:F.L.REGULAR,text:e.description,"data-sentry-element":"Typo","data-sentry-source-file":"index.tsx"}),o(e)]})]},e.id);return(0,a.jsxs)("div",{className:tG().root,"data-sentry-component":"ProductArticles","data-sentry-source-file":"index.tsx",children:[(0,a.jsxs)("div",{className:tG().header,children:[(0,a.jsx)(F.A,{className:tG().title,htmlElement:"h2",size:[32],weight:F.L.BOLD,text:"ЧиÑаÑÑ Ð¼Ð°ÑеÑиалÑ","data-noindex":!0,"data-sentry-element":"Typo","data-sentry-source-file":"index.tsx"}),(0,a.jsx)(tH.A,{className:tG().moreLink,href:i,"data-sentry-element":"AppLink","data-sentry-source-file":"index.tsx",children:(0,a.jsx)(ey.A,{text:"ÐÑÑ ÑÑаÑÑи","data-sentry-element":"Medium14","data-sentry-source-file":"index.tsx"})})]}),(0,a.jsx)("div",{className:tG().articles,children:t.length<3?(0,a.jsx)("div",{className:tG().staticArticles,style:1===t.length?{gridTemplateColumns:"1fr"}:void 0,children:t.map(d)}):(0,a.jsx)(tU.A,{slideWidth:480,slideGap:8,responsive:[{breakpoint:1200,settings:{slidesToShow:1,slideWidth:340}}],items:t.map(e=>({id:e.id,element:()=>d(e)}))})})]})};var tz=s(96061),tq=s.n(tz);let tK=e=>
1{let{productCollection:t,product:s}=e,l=(0,r.useMemo)(()=>"series"===s.kind?"СеÑиал вÑ
Ð¾Ð´Ð¸Ñ Ð² подбоÑки":"film"===s.kind?"ФилÑм вÑ
Ð¾Ð´Ð¸Ñ Ð² подбоÑки":"video"===s.kind?"Ðидео вÑ
Ð¾Ð´Ð¸Ñ Ð² подбоÑки":"trailer"===s.kind?"ТÑÐµÐ¹Ð»ÐµÑ Ð²Ñ
Ð¾Ð´Ð¸Ñ Ð² подбоÑки":"cartoon"===s.kind?"ÐÑлÑÑÑилÑм вÑ
Ð¾Ð´Ð¸Ñ Ð² подбоÑки":"music"===s.kind?"Ðидео вÑ
Ð¾Ð´Ð¸Ñ Ð² подбоÑки":"видео вÑ
Ð¾Ð´Ð¸Ñ Ð² подбоÑки",[s.kind]),n=(0,r.useMemo)(()=>t.product_collections.map(e=>({id:1,element:()=>(0,a.jsx)("div",{className:tq().cardWrap,children:(0,a.jsx)(eI(),{prefetch:!1,scroll:!0,shallow:!0,href:"/collection/".concat(e.slug,"/"),className:tq().card,rel:"noopener","data-noindex":!0,children:(0,a.jsx)(eb.A,{className:tq().cover,alt:e.name,placeholderType:"card",src:e.poster,size:{w:1280,h:720}})},e.name)})})),[t.product_collections]);return(null==t?void 0:t.product_collections.length)?(0,a.jsxs)("div",{className:tq().root,"data-sentry-component":"ProductCollection","data-sentry-source-file":"index.tsx",children:[(0,a.jsx)(F.A,{className:tq().title,htmlElement:"h2",size:[32,32,20],weight:F.L.BOLD,text:l,"data-noindex":!0,"data-sentry-element":"Typo","data-sentry-source-file":"index.tsx"}),(0,a.jsx)("div",{className:tq().content,children:(0,a.jsx)(ej.A,{items:n,arrowLeft:(0,a.jsx)(j.A,{name:"ic_24_arrow_right"}),arrowRight:(0,a.jsx)(j.A,{name:"ic_24_arrow_right"}),arrowLeftClassName:N()(tq().arrow,tq().arrowLeft),arrowRightClassName:N()(tq().arrow,tq().arrowRight),"data-sentry-element":"SimpleSlider","data-sentry-source-file":"index.tsx"})})]}):null};var tY=s(4213),tJ=s(29737),tQ=s(16720);let tZ=e=>{let{fallback:t={}}=e,{isSubscriptionExist:s,readyToShowAd:o}=(0,u.A)(),{query:d}=(0,_.useRouter)(),c=(0,i.A)(),[m,p]=(0,r.useState)(!1),[h,g]=(0,r.useState)(!1),f=(0,r.useRef)(null),x=(0,r.useMemo)(()=>["/video",...(null==d?void 0:d.slug)||[],""].join("/"),[null==d?void 0:d.slug]);(0,tQ.Z)("video:".concat(x));let{slugs:A,videoInfo:w,productGroupInfo:b,product:k,breadCrumbsList:C,permissions:N,updateVideoInfo:I,productGroupVideos:S,productVideos:E,productFavourite:L,mutateFavourite:V,productRecommendation:B,parentInfo:P,crumbLinkStart:F,filtersList:W,productArticles:O,productCollection:G}=y({fallback:t}),H=(0,r.useCallback)(()=>{g(!0)},[]),U=(0,r.useCallback)(()=>{g(!1)},[]),X=(0,r.useCallback)(()=>{p(!1)},[]),z=(0,r.useCallback)(()=>{p(!0)},[]),q=(0,n.to)();(0,r.useEffect)(()=>(f.current=setTimeout(()=>{(0,T.Df)("player_page_stay_10min")},6e5),()=>{f.current&&clearTimeout(f.current)}),[]);let K=(0,r.useMemo)(()=>{if(c&&(null==w?void 0:w.content_id)&&(null==k?void 0:k.age_restrictions)){var e,t;return{p1:"dkcvm",p2:"hiur",puid2:1,puid3:(null==P?void 0:P.id)||"",puid4:(null==k?void 0:null===(t=k.categories)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.id)||"",puid5:(0,n.cX)(),puid6:s?"1":"0",puid8:(null==w?void 0:w.content_id)||"",puid14:(null==k?void 0:k.age_restrictions)||""}}return null},[c,s,null==P?void 0:P.id,null==k?void 0:k.age_restrictions,null==k?void 0:k.categories,null==w?void 0:w.content_id]),{adShift:Y,isAdInitialized:J}=(0,eF.A)({adFoxParams:K,disableAd:!o}),Q=(0,r.useMemo)(()=>(0,eP.H)(C.map(e=>({title:e.label,url:e.href}))),[C]),Z=(0,r.useMemo)(()=>b&&(null==A?void 0:A[1])&&!(null==A?void 0:A[2])?b:(null==A?void 0:A[2])||(null==A?void 0:A[1])?w:k,[k,b,A,w]),$=(0,r.useMemo)(()=>!w||!k,[k,w]),ee=(0,r.useCallback)(()=>{(0,T.Df)("product_breadcrumbs_click")},[]),et=(0,r.useMemo)(()=>{if((null==w?void 0:w.content_provider)==="cloud"&&(null==w?void 0:w.content_id))return"https://cloud.tvigle.ru/video/".concat(w.content_id,"/?playerId=314&partnerId=24&ref=50000")},[null==w?void 0:w.content_provider,null==w?void 0:w.content_id]),es=(0,r.useMemo)(()=>"18+"===((null==w?void 0:w.age_restrictions)||(null==k?void 0:k.age_restrictions)),[null==k?void 0:k.age_restrictions,null==w?void 0:w.age_restrictions]),ea=(0,r.useMemo)(()=>{if("number"==typeof(null==w?void 0:w.duration))return Math.round(w.duration)},[null==w?void 0:w.duration]),er=(0,r.useMemo)(()=>{var e,t,s;let a=null==N?void 0:null===(s=N.playlist)||void 0===s?void 0:null===(t=s.items)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.created_at;if(!a)return;let r=new Date(a);return Number.isNaN(r.getTime())?void 0:r.toISOString()},[N]),el=(0,r.useMemo)(()=>"video/mp4",[]),en=(0,r.useMemo)(()=>O&&O.results?O.results:[],[O]),ei=(0,r.useMemo)(()=>(0,tJ.C7)({metaTitle:null==Z?void 0:Z.meta_title,h1:null==Z?void 0:Z.name,pageType:(0,tJ.mE)(null==k?void 0:k.kind)}),[null==Z?void 0:Z.meta_title,null==Z?void 0:Z.name,null==k?void 0:k.kind]);return(0,a.jsx)(l.g,{value:{fallback:t},"data-sentry-element":"SWRConfig","data-sentry-component":"VideoPage","data-sentry-source-file":"index.tsx",children:(0,a.jsxs)(tf.A,{bodyClasName:tN().body,adBlock:!0,adShift:Y,isAdInitialized:J,"data-sentry-element":"Page","data-sentry-source-file":"index.tsx",children:[Q&&(0,a.jsx)("script",{id:"ld+json+bc+layout",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(Q)}}),(0,a.jsx)(tw.A,{title:ei,description:null==Z?void 0:Z.meta_description,url:"https://www.tvigle.ru".concat(x),imageSrc:null==k?void 0:k.thumbnail,videoSrc:et,videoType:el,duration:ea,adult:es,uploadDate:er,keywords:null==Z?void 0:Z.meta_keywords,"data-sentry-element":"OgTags","data-sentry-source-file":"index.tsx"}),w&&k&&(0,a.jsx)(tA,{meta:Z,videoInfo:w,product:k,groupVideos:S,productVideos:E,slugs:A}),$&&(0,a.jsx)(tg.A,{}),!$&&(0,a.jsxs)("div",{className:tN().page,"data-scroll-restore-anchor":x,"data-scroll-restore-pending":o&&K&&!J||void 0,children:[w&&w.content_provider!==v.wink&&k&&c&&(0,a.jsx)(eB,{isWindowOpen:h,closeWindow:U,openWindow:H,onSeasonsButtonClick:z,videoInfo:w,product:k,permissions:N,updateVideoInfo:I,groupVideos:null==S?void 0:S.results,productVideos:null==E?void 0:E.results,productGroupInfo:b,refParam
1:q||"0"}),w&&w.content_provider===v.wink&&k&&c&&(0,a.jsx)(tP,{isWindowOpen:h,closeWindow:U,openWindow:H,onSeasonsButtonClick:z,videoInfo:w,product:k,permissions:N,updateVideoInfo:I,groupVideos:null==S?void 0:S.results,productVideos:null==E?void 0:E.results,productGroupInfo:b,refParam:q||"0"},w.id),(!w||!k||!c)&&(0,a.jsxs)("div",{children:[(0,a.jsx)(tk.A,{type:tk.S.VIDEO}),(0,a.jsxs)("div",{className:tN().controls,children:[(0,a.jsxs)("div",{className:tN().removeAd,children:[(0,a.jsx)(j.A,{wrapClassName:tN().icon,name:"ic_36_hand"}),(0,a.jsx)(M.A,{text:"ÐÑклÑÑиÑÑ ÑекламÑ"}),(0,a.jsx)(R.A,{className:tN().price,text:"Ð¾Ñ 39 ÑÑб / 1 денÑ"})]}),(0,a.jsx)(D,{className:tN().rating,value:10})]})]}),(0,a.jsx)(eW.A,{withLastLink:!0,className:tN().breadCrumbs,breadcrumbs:C.slice(0,-1),onClick:ee}),k&&w&&(0,a.jsx)(eZ,{isInFavourite:null==L?void 0:L.is_favorite,openWindow:H,product:k,description:w.content_provider===v.wink?k.description:null==Z?void 0:Z.description,name:w.content_provider===v.wink?k.name:null==Z?void 0:Z.name,mutateFavourite:V,meta:Z,crumbLinkStart:F,videoInfo:w,filtersList:W}),B&&(0,a.jsx)(ty,{recommendation:B}),!$&&c&&o&&K&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(tb.A,{desktopUrl:"".concat((0,tF.u)(),"/banners/video_btw_blocks_banner_desktop.html"),mobileUrl:"".concat((0,tF.u)(),"/banners/video_btw_blocks_banner_mobile.html"),adParams:K,initialHeight:100})}),G&&k&&(0,a.jsx)(tK,{productCollection:G,product:k}),w&&(0,a.jsx)(ts,{videoInfo:w}),!$&&c&&o&&K&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(tI.A,{adParams:K}),(0,a.jsx)(tj.A,{adParams:K}),(0,a.jsx)(tW.A,{adParams:K})]}),O&&O.results&&(0,a.jsx)(tX,{articles:en}),m&&k&&w&&(0,a.jsx)(tm,{onClose:X,videoInfo:w,productGroupInfo:b,product:k,fallback:t}),(0,a.jsx)(tY.A,{})]})]})})};var t$=!0;let t0=e=>{let{fallback:t={}}=e;return(0,a.jsx)(tZ,{fallback:t,"data-sentry-element":"VideoPage","data-sentry-component":"Video","data-sentry-source-file":"index.tsx"})}},91514:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var a=s(74848);s(96540);var r=s(13368),l=s.n(r);let n=e=>{let{title:t,imageSrc:s,videoSrc:r,url:n,description:i,keywords:o,uploadDate:d,adult:c,duration:u,videoType:_}=e,m=n?(e=>e.endsWith("/")?e:"".concat(e,"/"))(n):void 0;return(0,a.jsxs)(l(),{"data-sentry-element":"Head","data-sentry-component":"OgTags","data-sentry-source-file":"ogTags.tsx",children:[(0,a.jsx)("meta",{property:"og:type",content:"website","data-sentry-element":"meta","data-sentry-source-file":"ogTags.tsx"}),(0,a.jsx)("meta",{property:"og:site_name",content:"Tvigle","data-sentry-element":"meta","data-sentry-source-file":"ogTags.tsx"}),(0,a.jsx)("meta",{property:"og:locale",content:"ru_RU","data-sentry-element":"meta","data-sentry-source-file":"ogTags.tsx"}),n&&(0,a.jsx)("meta",{property:"og:url",content:n}),t&&(0,a.jsx)("meta",{property:"og:title",content:t}),i&&(0,a.jsx)("meta",{property:"og:description",content:i}),s&&(0,a.jsx)("meta",{property:"og:image",content:s}),r&&(0,a.jsx)("meta",{property:"og:video",content:r}),_&&(0,a.jsx)("meta",{property:"og:video:type",content:_}),"number"==typeof u&&!Number.isNaN(u)&&(0,a.jsx)("meta",{property:"video:duration",content:String(Math.round(u))}),"boolean"==typeof c&&(0,a.jsx)("meta",{property:"ya:ovs:adult",content:c?"true":"false"}),d&&(0,a.jsx)("meta",{property:"ya:ovs:upload_date",content:d}),(0,a.jsx)("meta",{property:"twitter:card",content:"summary_large_image","data-sentry-element":"meta","data-sentry-source-file":"ogTags.tsx"}),n&&(0,a.jsx)("meta",{property:"twitter:url",content:n}),t&&(0,a.jsx)("meta",{property:"twitter:title",content:t}),i&&(0,a.jsx)("meta",{property:"twitter:description",content:i}),s&&(0,a.jsx)("meta",{property:"twitter:image",content:s}),t&&(0,a.jsx)("title",{children:t}),i&&(0,a.jsx)("meta",{name:"description",content:i}),o&&(0,a.jsx)("meta",{name:"keywords",content:o}),m&&(0,a.jsx)("link",{rel:"canonical",href:m})]})}},20647:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var a=s(74848),r=s(96540),l=s(32485),n=s.n(l),i=s(40988),o=s(88361),d=s.n(o);let c=e=>{let{html:t,className:s,text:l,onToggle:o,auto:c,autoTextLength:u=500,viewedLinesCount:_=2}=e,[m,p]=(0,r.useState)(!0),v=(0,r.useMemo)(()=>
1{if(c){var e;let s=null===(e=t||l)||void 0===e?void 0:e.length;return s&&s<u}},[c,u,t,l]),h=(0,r.useCallback)(()=>{o&&o(!m),p(!m)},[m,o]);return(0,a.jsxs)("div",{className:s,"data-sentry-component":"Collapsed","data-sentry-source-file":"index.tsx",children:[(0,a.jsx)(i.A,{text:l,className:n()(d().root,{[d().collapsed]:m&&!v}),html:t,style:{WebkitLineClamp:null==_?void 0:_.toString()},"data-sentry-element":"Regular14","data-sentry-source-file":"index.tsx"}),!v&&(0,a.jsx)(i.A,{onClick:h,className:d().collapsedControl,text:m?"РазвеÑнÑÑÑ â":"СвеÑнÑÑÑ â"})]})}},6633:(e,t,s)=>{"use strict";s.d(t,{S:()=>y,A:()=>g});var a=s(74848),r=s(96540),l=s(29965),n=s.n(l),i=s(32485),o=s.n(i);let d={src:"/_next/static/media/recommend_cover.77b32424.png",height:4,width:7,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAAA1BMVEX///+nxBvIAAAACXBIWXMAAAsTAAALEwEAmpwYAAAADElEQVR4nGNgIAEAAAAtAAHF18CGAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:5},c={src:"/_next/static/media/recent_cover.a820ee8e.png",height:12,width:16,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAA1BMVEX///+nxBvIAAAACXBIWXMAAAsTAAALEwEAmpwYAAAADElEQVR4nGNgIAcAAAA2AAG2dLktAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6},u={src:"/_next/static/media/product_cover.6d45e025.png",height:10,width:7,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAICAMAAADtGH4KAAAAA1BMVEX///+nxBvIAAAACXBIWXMAAAsTAAALEwEAmpwYAAAADElEQVR4nGNgIA8AAAA4AAGPBdpAAAAAAElFTkSuQmCC",blurWidth:6,blurHeight:8},_={src:"/_next/static/media/slider_cover.bf773251.png",height:12,width:35,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAAA1BMVEX///+nxBvIAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAC0lEQVR4nGNgwAkAABsAAco8Sg0AAAAASUVORK5CYII=",blurWidth:8,blurHeight:3},m={src:"/_next/static/media/square_cover.b0231b0f.png",height:1,width:1,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAA1BMVEXZ2dmK1ydDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAADElEQVR4nGNgoA4AAABIAAEuuDx+AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},p={src:"/_next/static/media/video_cover.07b9683d.png",height:16,width:24,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAAA1BMVEXZ2dmK1ydDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAADElEQVR4nGNgIAEAAAAtAAHF18CGAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:5};var v=s(61444),h=s.n(v),y=function(e){return e.SQUARE="square",e.FREE="free",e.RECOMMEND="recommend",e.RECENT="recent",e.SLIDER="slider",e.PRODUCT="product",e.VIDEO="video",e}({});let g=e=>{let{type:t="free",count:s=1,className:l}=e,i=(0,r.useMemo)(()=>{switch(t){case"recent":return c;
1case"recommend":return d;case"slider":return _;case"product":return u;case"square":return m;case"video":return p;default:return null}},[t]),v=(0,r.useMemo)(()=>(0,a.jsx)("div",{className:o()(h().item,l),children:i&&(0,a.jsx)(n(),{className:h().itemCover,src:i,alt:t})}),[l,i,t]);return(0,a.jsx)(a.Fragment,{children:r.Children.toArray(Array(s).fill("").map(()=>v))})}},86634:(e,t,s)=>{"use strict";s.d(t,{KE:()=>i,Pd:()=>r,VG:()=>d,XA:()=>l,a7:()=>n,ro:()=>o});let a=["id","slug","name","poster","meta_title","meta_description","thumbnail","release_year","genres","age_restrictions","countries","kinopoisk_rating","is_paid","imdb_rating","tvigle_rating","poster_text"],r=["id","product",...a.map(e=>"product__".concat(e))].join(","),l=a.join(","),n="id,name,thumbnail,group_id,content_id,full_slug",i="id,slug,name,thumbnail,description,poster,priority,meta_title,meta_description",o=["id","name","slug","description","menu_name","meta_keywords","meta_title","meta_description","products","thumbnail","name",...a.map(e=>"product__".concat(e)),"next"].join(","),d="id,meta_title,meta_keywords,seo_name,meta_description,name,description,slug,parent_slug,header"},85882:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var a=s(99757),r=s(57019),l=s(58745);let n={categories:{key:"filterCategories",fetcher:e=>{let[,t]=e;return a.Ay.get(r.F.filterCategories(t)).then(e=>e.data)},fetcherSsr:(e,t)=>l.A.get(r.F.filterCategories(t),e).then(e=>e.data)},filters:{key:"filtersList",fetcher:()=>a.Ay.get(r.F.filtersList).then(e=>e.data),fetcherSsr:e=>l.A.get(r.F.filtersList,e).then(e=>e.data)}}},76871:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var a=s(99757),r=s(57019);let l=s(86634).VG,n=async(e,t,s,n)=>{if(!e)return null;let i=await a.Ay.get(r.F.categoryMeta(e,t),{...s,params:{fields:l,...n}}).then(e=>e.data);if(i.parent_slug){let e=await a.Ay.get(r.F.categoryMeta(i.parent_slug),{...s,params:{fields:l,...n}}).then(e=>e.data);return{...i,parent:e}}return i},i=async(e,t,s,a)=>{if(!e)return null;let n=await fetch(r.F.categoryMeta(e,t)+"?"+new URLSearchParams({fields:l}),{...s,next:{tags:a?[a]:[]}}).then(async e=>await e.json());if(n.parent_slug){let e=await fetch(r.F.categoryMeta(n.parent_slug)+"?"+new URLSearchParams({fields:l}),{...s,next:{tags:a?[a]:[]}}).then(async e=>await e.json());return{...n,parent:e}}return n},o={categoryMeta:{key:"categoryMeta",fetcher:e=>{let[,t,s]=e;return n(t,s)},fetcherSsr:(e,t,s,a)=>i(t,s,e,a)}}},31181:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var a=s(99757),r=s(57019),l=s(58745),n=s(86634),i=s(61199);let o={productVote:{fetcher:(e,t)=>{let s="like"===e?r.F.productLike:r.F.productDislike;return a.Ay.post(s(t)).then(e=>e.data)}},productInfo:{key:"productInfo",fetcher:e=>{let[,t]=e;return a.Ay.get(r.F.product(t)).then(e=>e.data)},fetcherSsr:(e,t,s)=>fetch(r.F.product(e),{...t,next:{tags:[s],revalidate:60}}).then(async e=>await e.json())},productRecommendation:{key:"productRecommendation",fetcher:e=>{let[,t]=e;return a.Ay.get(r.F.productRecommendation(t)).then(e=>e.data).catch(()=>null)},fetcherSsr:(e,t,s)=>fetch(r.F.productRecommendation(e),{...t,next:{tags:[s],revalidate:60}}).then(async e=>await e.json()).catch(()=>null)},productFavourite:{key:"productFavorite",fetcher:e=>{let[,t]=e;return a.Ay.get(r.F.getIsProductFavorite(t)).then(e=>e.data)},addToFavourite:e=>a.Ay.post(r.F.getIsProductFavorite(e)).then(e=>e.data),removeFromFavourite:e=>a.Ay.delete(r.F.getIsProductFavorite(e)).then(e=>e.data),fetcherSsr:(e,t)=>l.A.get(r.F.getIsProductFavorite(e),{...t}).then(e=>e.data)},productGroups:{key:"productGroups",fetcher:e=>a.Ay.get(r.F.product(e)).then(e=>e.data),fetcherSsr:(e,t)=>fetch(r.F.productGroupsList(e),{...t,next:{revalidate:60}}).then(async e=>await e.json())},productPermissions:{key:"productPermissions",fetcher:e=>{let[,t]=e;return a.Ay.get(r.F.productPermissions(t)).then(e=>e.data)},fetcherSsr:(e,t,s)=>fetch(r.F.productPermissions(e),{...t,next:{tags:[s],revalidate:60}}).then(async e=>await e.json())},productGroupInfo:{key:"productGroupInfo",fetcher:e=>{let[,t,s]=e;return a.Ay.get(r.F.productGroupItem(t,s)).then(e=>e.data)},fetcherSsr:(e,t,s)=>fetch(r.F.productGroupItem(e,t),{...s,next:{revalidate:60}}).then(async e=>await e.json())},productVideoInfo:{key:"productVideoInfo",fetcher:e=>{let[,t,s]=e;return a.Ay.get(r.F.productVideoInfo(t,s)).then(e=>e.data)},fetcherSsr:(e,t,s,a)=>fetch(r.F.productVideoInfo(e,t),{...s,next:{tags:[a],revalidate:60}}).then(async e=>await e.json())}
1,productCollection:{key:"productCollection",fetcher:e=>{let[,t]=e;return a.Ay.get(r.F.productCollection(t)).then(e=>e.data)},fetcherSsr:(e,t)=>fetch(r.F.productCollection(e),{...t}).then(async e=>await e.json()).catch(e=>(console.log(e),i.Cp(e),null))},productGroupVideos:{key:"productGroupVideos",fetcher:e=>{let[,t,s,l]=e;return a.Ay.get(r.F.productGroupVideos(s),{params:{fields:n.a7,offset:1e3*t,limit:1e3,group_id:l}}).then(e=>e.data)},fetcherSsr:(e,t,s,a)=>fetch(r.F.productGroupVideos(String(t))+"?"+new URLSearchParams({fields:n.a7,offset:"0",limit:String(1e3),group_id:String(s)}),{...e,next:{tags:[a],revalidate:60}}).then(async e=>await e.json()),getKey:(e,t)=>(s,a)=>{var r;return!a||(null==a?void 0:null===(r=a.results)||void 0===r?void 0:r.length)?["productGroupVideos",s,e,t]:null}},productVideos:{key:"productVideos",fetcher:e=>{let[,t,s]=e;return a.Ay.get(r.F.productVideos(s),{params:{fields:n.a7,offset:1e3*t,limit:1e3}}).then(e=>e.data)},fetcherSsr:(e,t,s)=>fetch(r.F.productVideos(t)+"?"+new URLSearchParams({fields:n.a7,offset:"0",limit:String(1e3)}),{...e,next:{tags:[s],revalidate:60}}).then(async e=>await e.json()),getKey:e=>(t,s)=>{var a;return!s||(null==s?void 0:null===(a=s.results)||void 0===a?void 0:a.length)?["productVideos",t,e]:null}},productArticles:{key:"productArticles",fetcher:e=>{let[,t]=e;return a.Ay.get(r.F.productArticles(t)).then(e=>e.data)},fetcherSsr:(e,t)=>fetch(r.F.productArticles(e),{...t}).then(async e=>await e.json())}}},70067:(e,t,s)=>{"use strict";s.d(t,{C:()=>n,i:()=>l});let a={c:"category",o:"o",r:"release_year",n:"country",p:"is_paid"},r=Object.keys(a).reduce((e,t)=>({...e,[a[t]]:t}),{}),l=e=>e?atob(e).split("*").reduce((e,t)=>{let s=t.slice(0,1),r=t.slice(1);return{...e,[a[s]]:r}},{}):{},n=e=>{var t;return e&&(null===(t=Object.values(e))||void 0===t?void 0:t.filter(e=>e).length)!==0?btoa(Object.keys(e).reduce((t,s)=>r[s]&&e[s]?[...t,"".concat(r[s]).concat(e[s])]:t,[]).join("*")):null}},6645:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var a=s(96540),r=s(54740),l=s(38109);let n=e=>{if("string"!=typeof e)return e;try{return JSON.parse(e)}catch(t){return e}},i=e=>{let{adParams:t,desktopUrl:s,mobileUrl:i,timeToClose:o}=e,{less_then_desktop:d}=(0,r.Y)(),[c,u]=(0,a.useState)(!1),[_,m]=(0,a.useState)(),p=(0,a.useRef)(null),[v,h]=(0,a.useState)(),[y,g]=(0,a.useState)(!1),[f,x]=(0,a.useState)(!0),[A,w]=(0,a.useState)(!1),{isSubscriptionExist:b,readyToShowAd:j}=(0,l.A)(),k=(0,a.useCallback)(e=>{h(e),e>0?setTimeout(()=>{k(e-1)},1e3):g(!0)},[]),C=(0,a.useCallback)(()=>Object.entries({...t,puid6:b?1:0}).reduce((e,t)=>{let[s,a]=t;return null!=a&&""!==a?[...e,"".concat(s,"=").concat(a)]:e},[]).join("&"),[t,b]),N=(0,a.useMemo)(()=>{let e=d?i:s,t=C(),a="deviceType=".concat(d?"mobile":"desktop").concat(t?"&".concat(t):"");return"".concat(e,"?").concat(a)},[s,C,d,i]),I=(0,a.useCallback)(e=>"FullPageAdError"===e||"FullPageAdOnClose"===e||"AdvertSectionEmpty"===e||"AdvertSectionEnded"===e||"AdError"===e,[]),S=(0,a.useCallback)(e=>"adLoadedCallback"===e||"FullPageAdLoadedCallback"===e,[]),E=(0,a.useCallback)(()=>{m(void 0)},[]),L=(0,a.useCallback)(e=>{var t;if(e.source===(null==p?void 0:null===(t=p.current)||void 0===t?void 0:t.contentWindow)){if(b)return;let t=n(e.data);S(null==t?void 0:t.type)&&(m(N),u(!0),x(!1),w(!0),o&&k(o)),I(null==t?void 0:t.type)&&(u(!1),w(!0))}},[I,S,b,N,k,o]);return(0,a.useEffect)(()=>{if(j){if(b){m(void 0),u(!1),x(!1),w(!0);return}w(!1),m(N)}},[b,j,N]),(0,a.useEffect)(()=>(window.addEventListener("message",L),()=>{window.removeEventListener("message",L)}),[L]),{iframeSrc:_,iframeRef:p,startCountDown:k,removeIframe:E,timeToClose:v,readyToClose:y,iframeIsVisible:c,isIframeLoading:f,isIframeInitialized:A}}},35812:(e,t,s)=>{"use strict";s.d(t,{X:()=>l});var a=s(4026),r=s(96540);let l=e=>{let[t,s]=r.useState();return r.useEffect(()=>{(null==e?void 0:e.current)&&s(e.current.getBoundingClientRect())},[e]),(0,a.A)(e,e=>s(e.contentRect)),t}},29737:(e,t,s)=>{"use strict";s.d(t,{C7:()=>l,Mn:()=>i,mE:()=>n});let a=e=>(e||"").trim(),r="Tvigle â онлайн-киноÑеаÑÑ",l=e=>{let{metaTitle:t,h1:s,pageType:l="other"}=e,n=a(t);if(n)return n;let i=a(s);return i?"movie"===l?"".concat(i," (ÑилÑм) ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½"):"series"===l?"".concat(i," (ÑеÑиал) ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½"):"cartoon"===l?"".concat(i," (мÑлÑÑÑилÑм) ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½"):"tvChannel"===l?"".concat(i," онлайн ÑÑанÑлÑÑиÑ"):"product"===l||"catalog"===l||"collection"===l?"".concat(i," ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½"):r:r},n=e=>{let t=a(e).toLowerCase();return"film"===t?"movie":"series"===t||"serial"===t?"series":"cartoon"===t?"cartoon":t?"product":"other"},i=e=>{let t=a(e).toLowerCase();
1return"filmy"===t?"movie":"serialy"===t?"series":"multfilmy"===t?"cartoon":t?"catalog":"other"}},40490:e=>{e.exports={root:"styles_root__ImDX9",hideIframe:"styles_hideIframe__p_2Xc",adFixedBanner:"styles_adFixedBanner__xrTgB",closeBanner:"styles_closeBanner__n8M8_",active:"styles_active__OMkA0",note:"styles_note__6zT0U"}},15115:e=>{e.exports={root:"styles_root__Ia8ZG",hidden:"styles_hidden__FC4Jy",banner:"styles_banner__CJlil",closeBanner:"styles_closeBanner__IAu76",active:"styles_active__K45IH"}},69019:e=>{e.exports={root:"styles_root__Gno2c",showed:"styles_showed__BzmBu",banner:"styles_banner__466JJ",closeBanner:"styles_closeBanner__atGgP",active:"styles_active__ZGmTG",note:"styles_note__qAI28"}},24702:e=>{e.exports={galleryWrap:"styles_galleryWrap__3En3b",scrollCommonWrap:"styles_scrollCommonWrap__mgZoe",gallery:"styles_gallery__wnMd6",galleryItem:"styles_galleryItem__AFOd4",galleryMainImage:"styles_galleryMainImage__1qN51",galleryItemContent:"styles_galleryItemContent__tbIjR",galleryScrollContainer:"styles_galleryScrollContainer__Mj_jd",arrow:"styles_arrow__SeiO0",arrowLeft:"styles_arrowLeft__Pc21T",arrowRight:"styles_arrowRight__S__f8",lastItem:"styles_lastItem__ah9ku"}},52388:e=>{e.exports={breadCrumbs:"styles_breadCrumbs__9KJdw",group:"styles_group__6Bp4K"}},18985:e=>{e.exports={root:"styles_root__h3nA2",wrap:"styles_wrap__rXLqg",video:"styles_video__otxmL",active:"styles_active__w3TO5",playIcon:"styles_playIcon__TrpVe",videoImage:"styles_videoImage__yJi1k",videoNum:"styles_videoNum__4rfSk",seasonsButton:"styles_seasonsButton__wN3lj",seasonsIcon:"styles_seasonsIcon__CmDCO",seasonsButtonInfo:"styles_seasonsButtonInfo__67RUJ",arrowLeft:"styles_arrowLeft__x0hca",arrowRight:"styles_arrowRight__MIGnd",arrow:"styles_arrow__P4oyJ"}},40508:e=>{e.exports={root:"styles_root__50L_m",info:"styles_info__SS9qj",meta:"styles_meta__KIuzj",main:"styles_main__aks9y",addToFavorite:"styles_addToFavorite__0_dpx",infoTitle:"styles_infoTitle__Y__N8",ratingWrap:"styles_ratingWrap__Y98er",inFavorite:"styles_inFavorite__RkoUl",active:"styles_active__LI7aX",shareButtons:"styles_shareButtons__s5A0h",shareButton:"styles_shareButton__ddktL",shareLinkButton:"styles_shareLinkButton__OAs4L",extra:"styles_extra__7yHf7",extraItem:"styles_extraItem__aN7KO",extraDuration:"styles_extraDuration__FAkR5",extraIcon:"styles_extraIcon__zJIcs"}},69451:e=>{e.exports={root:"styles_root__siBH4",info:"styles_info__9vCkp",main:"styles_main__xdp6U",poster:"styles_poster__en_9z",isLoading:"styles_isLoading__fc456","shine-loading":"styles_shine-loading__GjH84",posterImage:"styles_posterImage__WbZoJ",posterCover:"styles_posterCover___WL_Z",infoTitle:"styles_infoTitle__Ure6z"}},3734:e=>{e.exports={root:"styles_root__C_WnG",header:"styles_header__mb_eq",title:"styles_title__4XXdg",moreLink:"styles_moreLink__De8r8",articles:"styles_articles___dr9v",staticArticles:"styles_staticArticles__oW5T7",tagList:"styles_tagList__BWuHo",tagLight:"styles_tagLight__mmpRt",smallCard:"styles_smallCard__CIdA4",smallImg:"styles_smallImg__hd3j1",smallInfo:"styles_smallInfo__PjZNv",smallTitle:"styles_smallTitle__eBOHg",smallDescription:"styles_smallDescription__0nBlf"}},96061:e=>{e.exports={root:"styles_root__wsXqX",cardWrap:"styles_cardWrap__OC_R4",content:"styles_content__gp9tl",cover:"styles_cover__wTMLa",title:"styles_title__h7AgM",arrow:"styles_arrow__Pt4_b",arrowLeft:"styles_arrowLeft__3uz6C",arrowRight:"styles_arrowRight__cDDQj"}},2526:e=>{e.exports={root:"styles_root__ec7i1",cardWrap:"styles_cardWrap__qiuPv",content:"styles_content__jnX1i",cover:"styles_cover__eRApc",title:"styles_title__PID59",arrow:"styles_arrow__h6M78",arrowLeft:"styles_arrowLeft__oH_VM",arrowRight:"styles_arrowRight__M2eXv"}},55069:e=>{e.exports={loader:"styles_loader__XhPbr",root:"styles_root__Z7gwC",icon:"styles_icon__VHIGU",button:"styles_button__GuZMB",buttonWrap:"styles_buttonWrap__wHdBt",ratingValue:"styles_ratingValue__N25mD",bad:"styles_bad__wPtB1",good:"styles_good___fYqr",window:"styles_window__a9r1r",loaded:"styles_loaded__6C9JC",optionWrap:"styles_optionWrap__FvVLa",option:"styles_option__cB2Pz",optionImage:"styles_optionImage__TItXm",optionButton:"styles_optionButton__oVZ1b",ratingValueContainer:"styles_ratingValueContainer__OpLHn",ratingWindowValue:"styles_ratingWindowValue__MCwLF",ratingExist:"styles_ratingExist__aTwOj",freshGif:"styles_freshGif__g2_f6",voteNum:"styles_voteNum__dgehu",play:"styles_play__ZgV99",voteFly:"styles_voteFly__hXCwk",likeVoteNum:"styles_likeVoteNum__px8KZ",dislikeVoteNum:"styles_dislikeVoteNum__mRmMk",close:"styles_close__oFHyy",zeroRating:"styles_zeroRating__dm1ST"}},96808:e=>{e.exports={root:"styles_root__o4_cI",body:"styles_body__mFfPf",header:"styles_header__6VPdq",title:"styles_title__jMt5a",icon:"styles_icon__u8glF",listWrap:"styles_listWrap__GZ5wg",list:"styles_list__x_cw7",groupTitle:"styles_groupTitle__iaxM3",seasonItem:"styles_seasonItem__jSLbF",active:"styles_active__h63uS",seasonThumb:"styles_seasonThumb__tEcB6",seasonItemNumber:"styles_seasonItemNumber__NR_8g",listLoader:"styles_listLoader___rs7c"}},94139:e=>{e.exports={root:"styles_root__RYofl",tabs:"styles_tabs__JvlJ_",tab:"styles_tab__0f_lq",active:"styles_active__LOtkc"}},84872:e=>{e.exports={root:"styles_root__msRb4",sliderWrap:"styles_sliderWrap__27rtz",person:"styles_person__KDq5X",title:"styles_title__os1oL",sliderContainer:"styles_sliderContainer__zSEuE",staffItemTitle:"styles_staffItemTitle__ETLRM",staffListWrap:"styles_staffListWrap__H9JxF",staffList:"styles_staffList___9c35",dot:"styles_dot__1Bkf0",staffItemWrap:"styles_staffItemWrap__p9Zr3",staffItem:"styles_staffItem__NZyFU",staffName:"styles_staffName__8JF1g",staffLink:"styles_staffLink__Xv5KL",arrow:"styles_arrow__Ylbqk",arrowLeft:"styles_arrowLeft__zrWUR",arrowRight:"styles_arrowRight__40opR"}},73274:e=>{e.exports={root:"styles_root__1YmTb",rating:"styles_rating__CivLI",coverImage:"styles_coverImage___GgVz",thumbnail:"styles_thumbnail__bKvKS",video:"styles_video__MRVgn",icon:"styles_icon__zUPWN",price:"styles_price__eyCyD",removeAd:"styles_removeAd__bu_YB",controls:"styles_controls__ivIS0",wrap:"styles_wrap__pD2vb",playerContainer:"styles_playerContainer___QtPe",permissionsButton:"styles_permissionsButton__8M9dH",loader:"styles_loader__DdcYc",playButton:"styles_playButton__KLNVM"}},47730:e=>{e.exports={root:"styles_root__gIWt2",message:"styles_message__4JwOs",messageText:"styles_messageText__3nAJI",button:"styles_button__PYTbd",auth:"styles_auth__drzMH",tariffsTitle:"styles_tariffsTitle__B1VJp",tariffs:"styles_tariffs__jpEhT",tariff:"styles_tariff__jCzyD",tariffInfo:"styles_tariffInfo__ar0Rx",buttonWrap:"styles_buttonWrap__Z5A2i",tariffButton:"styles_tariffButton__fbESF",closeButton:"styles_closeButton__2AxNe",tariffDescription:"styles_tariffDescription__3yNI7"}},30497:e=>{e.exports={root:"styles_root__nlvye",message:"styles_message__L1Ueb",messageIcon:"styles_messageIcon__8zlk7",messageText:"styles_messageText__aBrTT",buttons:"styles_buttons__pEX2u"}},96406:e=>{e.exports={breadCrumbs:"styles_breadCrumbs__GtB1J",loader:"styles_loader__qrffV",removeAd:"styles_removeAd__xx35a",controls:"styles_controls___v5Sh"}},62099:e=>{e.exports={root:"styles_root__YjPdO",rating:"styles_rating___8fJ2",coverImage:"styles_coverImage__jxtG3",thumbnail:"styles_thumbnail__rSRKg",video:"styles_video__1f803",icon:"styles_icon__6HPPV",price:"styles_price__gv9_0",removeAd:"styles_removeAd__am9UW",controls:"styles_controls__lKCIr",wrap:"styles_wrap__q6DcB",playerContainer:"styles_playerContainer__JhVN2",permissionsButton:"styles_permissionsButton__D3rhb",loader:"styles_loader__yOpMi",playButton:"styles_playButton__j8xfI"}},88361:e=>{e.exports={root:"styles_root__RxBaw",collapsed:"styles_collapsed__eQWHD",collapsedControl:"styles_collapsedControl__VOvlC"}},61444:e=>{e.exports={item:"styles_item__HYOcl",placeholderShimmer:"styles_placeholderShimmer__hSVKE",itemCover:"styles_itemCover__89SSg"}},82741:e=>{e.exports={root:"styles_root__ZsTVS",active:"styles_active__NkETb",contentWrap:"styles_contentWrap__0FhaP",content:"styles_content__4wtoZ"}},40212:e=>{e.exports={root:"styles_root__wuUhA"}}},e=>{var t=t=>e(e.s=t);e.O(0,[1833,3620,8559,3571,1106,9944,6424,8525,1046,9501,7122,2801,284,4023,636,6593,8792],()=>t(99445)),_N_E=e.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.