1import{_ as _sfc_main$r}from"./two-column.type_style-BsqrOu5y.js";import{d as defineComponent,ac as useHead,ae as setImg,$ as renderSlot,j as computed,ag as clear,bX as APP_DESK_DEFAULT,ab as CDN,aI as SHARE,ad as CANONICAL_PREFIX,a6 as fetchClientData,I as useRoute,J as useAdaptive,o as openBlock,c as createElementBlock,v as createBlock,p as _sfc_main$a,a as unref,f as withCtx,e as createVNode,T as _sfc_main$b,s as createTextVNode,a7 as _sfc_main$c,l as normalizeClass,_ as _sfc_main$d,h as createCommentVNode,g as createBaseVNode,bd as getElTopPosition,bT as getHeaderHeight,aO as fetchApiNtvClientData,O as onMounted,w as watch,y as ref,n as nextTick,bh as getCookie,Z as resolveDynamicComponent,m as mergeProps,t as toDisplayString,q as hUi,aE as getDMMYYYY,a2 as _sfc_main$h,a3 as _sfc_main$i,bw as watchEffect,i as isRef,ap as _sfc_main$k,aW as CDN_VIDEO,U as Transition,F as Fragment,k as renderList,az as normalizeStyle,a0 as SLIDER_BP,u as useRouter,D as fetchData,M as toRefs,aJ as provide,a1 as onBeforeUnmount,aH as resolve
1Component,r as reactive,at as NO_SCROLL}from"../main-sKWLCJQt.js";import{b as TYPES_TO_META,a as TYPES}from"./peredacha-B7U0zJyn.js";import{b as getTW}from"./content-D0RZxhTt.js";import{u as useSdaEntity}from"./use-sda-entity-F32uS2C6.js";import{_ as _sfc_main$p}from"./ad-full-width.type_style-DIP9oHUx.js";import{_ as _sfc_main$e}from"./favorite-btn.type_style-CIxCAaSR.js";import{_ as _sfc_main$f}from"./stream-player.type_style-CRRTqF1y.js";import{_ as _sfc_main$g}from"./img-card.vue_vue_type_script_setup_true_lang-Bc2urnVG.js";import{_ as _sfc_main$j}from"./modal-trailer.type_style-CsqD5SWK.js";import{_ as _sfc_main$l,a as _sfc_main$n}from"./peredacha-similar.type_style-B9weJia4.js";import{_ as _sfc_main$o}from"./recommendations.type_style-DEPSXgBH.js";import{_ as _sfc_main$q}from"./right-col.vue_vue_type_script_setup_true_lang-v7t3oNs_.js";import{_ as _sfc_main$m}from"./stories.type_style-BfxVEv1c.js";import{g as getProgram,a as getCatchupProgramClient,p as preloadPage}from"./api-CJ8peVw1.js";import{P as PROVIDE_PROGRAM_KEY,a as PROVIDE_HIDE_COL}from"./provide-BCqyNSed.js";import"./use-sda-slots-Dw4NdwlD.js";import"./use-favorite-y49wt3ng.js";import"./favorite-CQ9Ys_1G.js";import"./vod-player.vue_vue_type_script_setup_true_lang-B-aTC2lx.js";import"./index-ByG8rrQv.js";import"./uexp-DUIb1Jdb.js";/* empty css */import"./base-card.type_style-Bh4BtgUP.js";import"./views.vue_vue_type_script_setup_true_lang-BMJHNZIu.js";/* empty css */import"./ad-side-bar.type_style-BqNPug0h.js";import"./position-9wr9tuCt.js";import"./stat-l7giab6B.js";import"./use-preload-server-Di9Y96X6.js";const airTitle={Super:"Â«Ð¢Ñ ÑÑпеÑ!». ÐÑе ÑезонÑ. ÐепÑеÑÑвнÑй поÑок. СмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½",Pes:"«ÐÑÑ». ÐÑе ÑеÑии в Ñежиме нон-ÑÑоп. СмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½",sledstvie:"«СледÑÑвие велиâ¦Â» Ñ Ðеонидом ÐаневÑкий. ÐÑе ÑилÑÐ¼Ñ ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½",Skoraja_pomosh:"СкоÑÐ°Ñ Ð¿Ð¾Ð¼Ð¾ÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½. ÐÑе ÑÐµÐ·Ð¾Ð½Ñ Ð¸ вÑе ÑеÑии подÑÑд",svoya_igra:"Ð¡Ð²Ð¾Ñ Ð¸Ð³Ñа ÑмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½ LIVE",Perviy_otdel:"ÐеÑвÑй оÑдел онлайн. ÐÑе ÑÐµÐ·Ð¾Ð½Ñ Ð¸ вÑе ÑеÑии подÑÑд ",Nevskiy:"ÐевÑкий онлайн. ÐÑе ÑÐµÐ·Ð¾Ð½Ñ Ð¸ вÑе ÑеÑии подÑÑд ",Shef:"ШеÑ. ÐÑе ÑÐµÐ·Ð¾Ð½Ñ Ð¸ вÑе ÑеÑии подÑÑд. СмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½","5_minut_tishiny":"5 минÑÑ ÑиÑинÑ. ÐÑе ÑеÑии подÑÑд. СмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½",Balabol:"Ðалабол. ÐÑе ÑеÑии подÑÑд. СмоÑÑеÑÑ Ð¾Ð½Ð»Ð°Ð¹Ð½ "},airDesk={Super:"СамÑй добÑÑй live-канал на ÑвеÑе, коÑоÑÑй можно ÑмоÑÑеÑÑ Ð±ÐµÑконеÑно! ÐÑе ÑÑаÑÑники вÑеÑ
Ñезонов, иÑ
вÑÑÑÑплениÑ, зеленÑе кнопки и добÑÑе Ñлова жÑÑи â Â«Ð¢Ñ ÑÑпеÑ» в Ñежиме нон-ÑÑоп. СмоÑÑиÑе онлайн на ÐТÐ",Pes:"ÐÑлÑÑовÑй деÑекÑив Ñ ÐикиÑой ÐанÑиловÑм. ÐÑе ÑеÑии подÑÑд â беÑплаÑно и непÑеÑÑвно. СмоÑÑиÑе онлайн на ÐТÐ.",sledstvie:"ÐегендаÑнÑй Ðеонид ÐаневÑкий и вÑе ÑилÑÐ¼Ñ Ð¸Ð· Ñикла «СледÑÑвие велиâ¦Â». СмоÑÑиÑе онлайн непÑеÑÑвнÑй поÑок по кÑлÑÑÐ¾Ð²Ð¾Ð¼Ñ Ð¿ÑоекÑÑ ÐТÐ.",Skoraja_pomosh:"«СкоÑÑÑ» вÑзÑвали? СмоÑÑиÑе вÑе ÑеÑии попÑлÑÑной медиÑинÑкой дÑÐ°Ð¼Ñ Ñ ÐоÑей ÐÑÑенко в Ñежиме нон-ÑÑоп.",svoya_igra:"ÐклÑÑайÑе live-канал «Своей игÑÑ» и оÑвеÑайÑе на вопÑоÑÑ Ð²Ð¼ÐµÑÑе Ñ Ð¾Ð¿ÑÑнÑми ÑÑÑдиÑами и новÑми игÑоками. ÐÑпÑÑки ÑазнÑÑ
Ð»ÐµÑ Ð² беÑконеÑном ÑÑÑиме попÑлÑÑной викÑоÑÐ¸Ð½Ñ ÐТÐ.",Perviy_otdel:"ÐопÑлÑÑнÑй деÑекÑив ÐТРв Ñежиме нон-ÑÑоп: вÑе ÑÐµÐ·Ð¾Ð½Ñ Ð¸ вÑе ÑеÑии «ÐеÑвого оÑдела» â ÑмоÑÑиÑе беÑконеÑнÑй ÑÑÐ¸Ñ Ð½Ð° ÑайÑе ÐТÐ.",Nevskiy:"ÐбÑолÑÑнÑй Ñ
Ð¸Ñ ÐТРв Ñежиме нон-ÑÑоп: вÑе ÑÐµÐ·Ð¾Ð½Ñ Ð¸ вÑе ÑеÑии деÑекÑива «ÐевÑкий» â ÑмоÑÑиÑе беÑконеÑнÑй ÑÑÐ¸Ñ Ð½Ð° ÑайÑе ÐТÐ.",Shef:"Ðа его боÑÑбой Ñ ÐºÑиминалом можно ÑледиÑÑ Ð±ÐµÑконеÑно. С пеÑвÑÑ
ÑеÑий до нового Ñезона â ÑмоÑÑиÑе онлайн беÑконеÑнÑй ÑÑÐ¸Ñ ÑеÑиала «ШеÑ».","5_minut_tishiny":"ÐаÑ
ваÑÑваÑÑий пÑиклÑÑенÑеÑкий ÑеÑиал о ÑиÑкованной ÑабоÑе легендаÑной ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ ÑпаÑаÑелей под ÑÑководÑÑвом СеÑÐ³ÐµÑ ÐиÑеева. РглавнÑÑ
ÑолÑÑ
â ÐгоÑÑ ÐиÑанов, Роман ÐÑÑÑÑн, Ðлег ÐндÑеев.",Balabol:"ЧÑвÑÑво ÑмоÑа â его Ñамое ÑÑÑекÑивное оÑÑжие! СмоÑÑиÑе в Ñежиме нон-ÑÑоп на ÑайÑе ÐТРâ вÑе ÑÐµÐ·Ð¾Ð½Ñ Ð¸ вÑе ÑеÑии иÑоÐ
1½Ð¸ÑеÑкого деÑекÑива о пÑиклÑÑениÑÑ
и злоклÑÑениÑÑ
неÑнÑваÑÑего Сани Ðалабина."},airImg={Super:"/home/promo/24740/ti_super_llive.jpg",Pes:"/home/promo/24740/pes_llive.jpg",sledstvie:"/home/promo/24740/sledstvie_veli_llive.jpg",Skoraja_pomosh:"/home/promo/24740/skoraya_pom_llive.jpg",svoya_igra:"/home/promo/24740/svoya_igra_llive.jpg",Perviy_otdel:"/home/promo/24740/perv_otdel_llive.jpg",Nevskiy:"/home/promo/24740/nevski_llive.jpg",Shef:"/home/promo/24740/shef_llive.jpg","5_minut_tishiny":"/home/promo/24740/5minut_live.jpg",Balabol:"/home/promo/24740/balabol_vse.jpg"},__default__$1=defineComponent({inheritAttrs:!1}),_sfc_main$9=defineComponent({...__default__$1,__name:"MetaPeredachaItem",props:{noAd:{type:Boolean},menu:{},redirectTo:{},hasStream:{type:Boolean},id:{},name:{},type:{},shortcat:{},img:{},share:{},annotation:{},out:{},rest:{},rubric:{},background_video:{},last:{},video:{},last_issue_menu_id:{},isMain:{type:Boolean},air:{type:Boolean}},setup(e){const t=e,a=computed(()=>r.value&&airTitle[t.shortcat]?airTitle[t.shortcat]:"".concat(clear(t.name)," / ").concat(TYPES_TO_META[t.type]," ÐТÐ")),o=computed(()=>r.value&&airDesk[t.shortcat]?airDesk[t.shortcat]:clear(t.annotation||APP_DESK_DEFAULT)),r=computed(()=>t.isMain&&t.hasStream&&t.air),n=computed(()=>r.value?"".concat(CANONICAL_PREFIX,"/").concat(t.type,"/").concat(t.shortcat,"?air"):void 0),i=computed(()=>n.value?{rel:"canonical",href:n}:null),s=computed(()=>n.value?{property:"og:url",content:n}:null),c=computed(()=>{if(r.value&&airImg[t.shortcat])return"".concat(CDN).concat(airImg[t.shortcat]);const e=t.share||t.img||SHARE;return e.startsWith("http")?e:"".concat(CDN).concat(e)});return useHead({title:a,meta:[{name:"title",content:a},{name:"description",content:o},{property:"og:title",content:a},{property:"og:description",content:o},...setImg(c,640,360),...getTW(),{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:a},{name:"twitter:description",content:o},{name:"twitter:image",content:c},{property:"al:android:package",content:"ru.ntv.client"},{property:"al:android:app_name",content:"ÐТÐ: новоÑÑи, видео, пеÑедаÑи"},{property:"al:ios:app_store_id",content:"720725187"},{property:"al:ios:app_name",content:"Телеканал ÐТÐ: новоÑÑи, видео, пеÑедаÑи, ÑеÑÐ¸Ð°Ð»Ñ Ð¸ киноÑилÑмÑ"},{property:"al:ios:url",content:"ntv://peredacha/".concat(t.shortcat)},{property:"al:android:url",content:"ntv://peredacha/".concat(t.shortcat)},{name:"apple-itunes-app",content:"app-id=720725187, app-argument=ntv://peredacha/".concat(t.shortcat)},s],link:[i,...t.isMain?"Uroki_russkogo"===t.shortcat?[{rel:"alternate",title:"ÐаÑ
Ð°Ñ ÐÑилепин. УÑоки ÑÑÑÑкого",type:"application/rss+xml",href:"https://podcast.ntv.ru/prilepin.php"}]:"sledstvie"===t.shortcat?[{rel:"alternate",title:"СледÑÑвие велиâ¦",type:"application/rss+xml",href:"https://podcast.ntv.ru/sledstvie.rss"}]:[]:[]]}),(e,t)=>renderSlot(e.$slots,"default")}}),_hoisted_1$5={class:"peredacha-btns"},_sfc_main$8=defineComponent({__name:"PeredachaHeadBtn",props:{id:{},menuId:{},shortcat:{},type:{},favPosition:{},canAir:{type:Boolean},airOn:{type:Boolean}},emits:["air-click"],setup(e,{emit:t}){const a=e,o=t,r={serial:"series",peredacha:"tvshow",kino:"movie"},n=useRoute(),i=useAdaptive(),s=computed(()=>a.canAir&&a.airOn),c=computed(()=>!a.menuId),{data:l}=(e=>{const{data:t}=fetchClientData(["peredacha/item/air"],{},{enabled:e,refetchInterval:12e4});return{data:t}})(c),d=computed(()=>"mobile"===i.getBPName()||"tablet"===i.getBPName()),u=computed(()=>{var e;let t="bottom-right";return unref(d)&&(t="".concat(a.favPosition,"-").concat(a.menuId||c.value&&(null==(e=l.value)?void 0:e.shortcat)===a.shortcat?"center":"right")),t}),p=e=>{e.preventDefault();const t=e.currentTarget;if(null==t?void 0:t.classList.contains("exact")){const e=document.querySelector("#peredacha-nav");e&&window.scrollTo({top:getElTopPosition(e)-getHeaderHeight(!0),behavior:"smooth"})}};function _(){o("air-click")}return(t,o)=>{var i,d,m;const h=_sfc_main$b,f=_sfc_main$a,v=_sfc_main$d,y=_sfc_main$c;return openBlock(),createElementBlock("div",_hoisted_1$5,[e.menuId?(openBlock(),createBlock(f,{key:0,link:"/".concat(e.type,"/").concat(e.shortcat,"/issues/").concat(e.menuId),"scroll-to":"#peredacha-nav",disabled:(null==(i=e.menuId)?void 0:i.toString())===(null==(m=null==(d=unref(n))?void 0:d.params)?void 0:m.menuId),onClick:p},{default:withCtx(()=>[createVNode(h,null,{default:withCtx(()=>[...o[0]||(o[0]=[createTextVNode("СмоÑÑеÑÑ",-1)])]),_:1})]),_:1},8,["link","disabled"])):unref(l)&&unref(c)?(openBlock(),createBlock(y,{key:1},{default:withCtx(()=>[unref(l).shortcat===e.shortcat?(openBlock(),createBlock(f,{key:0,link:"/air/ntv"},{default:withCtx(()=>[createVNode(h,{class:normalizeClass("peredacha-btns__btn peredacha-btns__btn--".concat(e.shortcat))},{default:withCtx(()=>[createVNode(v,{name:"air",class:"peredacha-btns__icon",width:"20",height:"20"}),o[1]||(o[1]=createTextVNode(" СмоÑÑеÑÑ ",-1))]),_:1},8,["class"])]),_:1})):createCommentVNode("",!0)]),_:1})):createCommentVNode("",!0),createVNode(unref(_sfc_main$e),{id:a.id,type:r[a.type],position:unref(u),class:"peredacha-btns__fav"},null,8,["id","type","position"]),e.canAir?(openBlock(),createBlock(h,{key:2,class:normalizeClass(["peredacha-btns__btn peredacha-btns__btn--air",{on:unref(s)}]),title:unref(s)?"ÐÑклÑÑиÑÑ Ð¿Ð¾Ñок":"СмоÑÑеÑÑ Ð¿Ð¾Ñок",onClick:_},{default:withCtx(()=>[createVNode(v,{name:"air",width:"20",height:"20"}),o[2]||(o[2]=createBaseVNode("span",null,"LIVE",-1))]),_:1},8,["class","title"])):createCommentVNode("",!0)])}}}),_hoisted_1$4={class:"peredacha-player"},_sfc_main$7=defineComponent({__name:"PeredachaHeadPlayer",props:{slug:{},id:{}},setup(e){const t=e,a=ref(null),o=ref(null),r=ref(!1),n=computed(()=>t.slug),i=computed(()=>{var e;return null==(e=p.value)?void 0:e.includes(".mp4")}
1),s=ref(!1),c=computed(()=>!(s.value&&"1"!==o.value)),{data:l}=((e,t)=>{const a=computed(()=>"".concat("/on_air","/").concat(e.value));return fetchApiNtvClientData({key:["on_air",e],config:{path:a,refetchInterval:15e3,enabled:t}})})(n,c),{data:d}=fetchClientData(["peredacha/item/stream",u=n],{shortcat:u});var u;const p=computed(()=>{var e,t;if(!s.value)return null==(e=d.value)?void 0:e.streamPath.replace("rewind-240","rewind-3600");if("1"===o.value)return null==(t=d.value)?void 0:t.streamPath.replace("rewind-240","rewind-3600");if("2"===o.value){const e=getCookie("_ym_uid",!0);return"https://stitch.teletarget.ru/ntvfast/index.m3u8"+(e?"?ifa=".concat(e):"")}}),_=computed(()=>{const e=airImg[t.slug]||SHARE,a={isLive:!i.value,src:p.value||"",id:"live-".concat(t.slug),noad:i.value||s.value&&"2"===o.value,embed:!0,type:"base",heartbeat:"content=live&oid=".concat(t.id),ads:{p1:"dmlug",p2:"fpxr"},poster:"".concat((null==e?void 0:e.startsWith("http"))?"":CDN).concat(e)};return"svoya_igra"===t.slug&&(a.ads={p1:"dkdmf",p2:"fpxr"}),s.value&&"1"===o.value&&(a.ads={p1:"dmnrk",p2:"fpxr"}),a}),m=computed(()=>({showControls:!i.value,autoplay:!0,enableStatistic:!i.value,showTitle:!i.value,showAgeLimit:!i.value,enableRelated:!1,adParams:{...s.value&&"1"!==o.value?{}:{midrollStartFrom:6,midrollTime:15,midrollDuration:60},noPreroll:!0},enableCustomScreen:!0,enableChromecast:!0,trackingThreshold:4e3}));function h(){r.value=!1,s.value="Perviy_otdel"===t.slug,s.value&&(o.value="2"),f(),nextTick(()=>{r.value=!0})}function f(){var e;s.value&&"1"!==o.value?a.value=null:a.value=(null==(e=l.value)?void 0:e.on_air)||null}return onMounted(()=>{h()}),watch(n,h),watch(l,()=>{f()}),(e,t)=>(openBlock(),createElementBlock("div",_hoisted_1$4,[unref(r)&&unref(p)?(openBlock(),createBlock(unref(_sfc_main$f),{key:0,id:"air-program",src:unref(p),options:unref(_),config:unref(m),class:"peredacha-player__player","program-name":unref(a)},null,8,["src","options","config","program-name"])):createCommentVNode("",!0)]))}}),_sfc_main$6=defineComponent({__name:"CutawayVideoCard",props:{date:{},id:{},title:{},img:{},thumbnail_template:{},snippet:{},rest:{},link:{},timelines:{}},setup(e){const t={width:"220px",height:"124px"};return(a,o)=>{const r=_sfc_main$g,n=hUi;return openBlock(),createBlock(resolveDynamicComponent(e.link?unref(_sfc_main$a):"div"),{class:"cutaway-card",link:e.link},{default:withCtx(()=>[createVNode(r,mergeProps({img:e.img,ratio:"16-9",snippet:e.snippet},t,{class:"cutaway-card__img","with-video":!0}),null,16,["img","snippet"]),createVNode(n,{class:"cutaway-card__name hov-w",type:"card",size:"xxs",inner:!0},{default:withCtx(()=>[createTextVNode(toDisplayString(e.title),1)]),_:1}),e.date?(openBlock(),createBlock(n,{key:0,class:"cutaway-card__date",type:"caption",size:"xs"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(getDMMYYYY)(e.date)),1)]),_:1})):createCommentVNode("",!0)]),_:1},8,["link"])}}}),TYPES_NEXT={serial:"Ð ÑледÑÑÑей ÑеÑии",peredacha:"Ð ÑледÑÑÑем вÑпÑÑке",kino:"Ð ÑледÑÑÑей ÑеÑии"},TYPES_NEW={serial:"ÐÐ¾Ð²Ð°Ñ ÑеÑиÑ",peredacha:"ÐовÑй вÑпÑÑк",kino:"ÐÐ¾Ð²Ð°Ñ ÑеÑиÑ"},_sfc_main$5=defineComponent({__name:"PeredachaHeadSlider",props:{last:{},video:{},type:{}},emits:["showVideos"],setup(e,{emit:t}){const a=t,o=e=>a("showVideos",e);return(t,a)=>{const r=hUi,n=_sfc_main$i,i=_sfc_main$h;return openBlock(),createBlock(i,{ref:"slider",class:"peredacha-head-videos",options:{spaceBetween:20,slidesPerView:"auto"}},{default:withCtx(()=>{var t,i;return[e.last?(openBlock(),createBlock(n,{key:0,class:"peredacha-head-videos__slide"},{default:withCtx(()=>[createVNode(r,{type:"caption",size:"xs",class:"peredacha-head-videos__note"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(TYPES_NEW)[e.type]),1)]),_:1}),createVNode(unref(_sfc_main$6),mergeProps(e.last,{class:"peredacha-head-videos__item"}),null,16)]),_:1})):createCommentVNode("",!0),(null==(t=e.video)?void 0:t.announces)?(openBlock(),createBlock(n,{key:1,class:"peredacha-head-videos__slide"},{default:withCtx(()=>[createVNode(r,{type:"caption",size:"xs",class:"peredacha-head-videos__note"},{default:withCtx(()=>
1[createTextVNode(toDisplayString(unref(TYPES_NEXT)[e.type]),1)]),_:1}),createVNode(unref(_sfc_main$6),mergeProps(e.video.announces[0],{class:"peredacha-head-videos__item",onClick:a[0]||(a[0]=e=>o("announces"))}),null,16)]),_:1})):createCommentVNode("",!0),(null==(i=e.video)?void 0:i.trailers)?(openBlock(),createBlock(n,{key:2,class:"peredacha-head-videos__slide"},{default:withCtx(()=>[createVNode(unref(_sfc_main$6),mergeProps(e.video.trailers[0],{title:"ТÑейлеÑ",class:"peredacha-head-videos__item peredacha-head-videos__item--trailer",onClick:a[1]||(a[1]=e=>o("trailers"))}),null,16)]),_:1})):createCommentVNode("",!0)]}),_:1},8,["options"])}}}),_sfc_main$4=defineComponent({__name:"PeredachaHeadVideoModal",props:{show:{type:Boolean},videos:{},type:{}},emits:["update:show"],setup(e,{emit:t}){const a=e,o=t,r=computed({get:()=>a.show,set:e=>o("update:show",e)}),n=computed(()=>a.videos.map((e,t)=>({keyTab:e.id.toString(),title:"".concat("trailers"===a.type?"ТÑÐµÐ¹Ð»ÐµÑ â":"ÐÐ½Ð¾Ð½Ñ â").concat(t+1)}))),i=ref(""),s=computed(()=>a.videos.find(e=>e.id.toString()===unref(i)));return watchEffect(()=>{var e;unref(r)&&(i.value=(null==(e=unref(n)[0])?void 0:e.keyTab)||"")}),(e,t)=>{const a=_sfc_main$k;return openBlock(),createBlock(unref(_sfc_main$j),{show:unref(r),"onUpdate:show":t[1]||(t[1]=e=>isRef(r)?r.value=e:null),video:unref(s)},{header:withCtx(()=>[createVNode(a,{modelValue:unref(i),"onUpdate:modelValue":t[0]||(t[0]=e=>isRef(i)?i.value=e:null),type:"greenbtn","need-slider":"","slider-options":{spaceBetween:20,slidesPerView:"auto"},headers:unref(n),class:"peredacha-video-modal__tabs"},null,8,["modelValue","headers"])]),_:1},8,["show","video"])}}}),_hoisted_1$3={class:"peredacha-head"},_hoisted_2$1=["src"],_hoisted_3$1={class:"peredacha-head__col"},_hoisted_4={class:"peredacha-head__air"},_hoisted_5={class:"peredacha-head__info-block"},_hoisted_6={class:"peredacha-head__parent"},_hoisted_7={key:0},_sfc_main$3=defineComponent({__name:"PeredachaHead",props:{noAd:{type:Boolean},menu:{},redirectTo:{},hasStream:{type:Boolean},id:{},name:{},type:{},shortcat:{},img:{},share:{},annotation:{},out:{},rest:{},rubric:{},background_video:{},last:{},video:{},last_issue_menu_id:{},airOn:{type:Boolean}},emits:["update:airOn"],setup(e,{emit:t}){const a=e,o=t,r=ref(!1),n=ref({type:null,videos:[]}),i=computed(()=>a.airOn&&a.hasStream);function s(e){var t;const o=null==(t=a.video)?void 0:t[e];(null==o?void 0:o.length)&&(r.value=!0,n.value={type:e,videos:o})}function c(){o("update:airOn",!a.airOn)}return(t,o)=>{const l=_sfc_main$a,d=hUi,u=_sfc_main$c;return openBlock(),createElementBlock("div",_hoisted_1$3,[createBaseVNode("div",{class:"peredacha-head__inner",style:normalizeStyle({backgroundImage:"url(".concat(unref(CDN)).concat(e.img,")")})},[e.background_video&&!unref(i)?(openBlock(),createElementBlock("video",{key:0,src:"".concat(unref(CDN_VIDEO)).concat(e.background_video),class:"peredacha-head__bg",autoplay:"",muted:"",loop:"",playsinline:"",crossorigin:"anonymous"},null,8,_hoisted_2$1)):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["peredacha-head__shadow",{air:unref(i)}])},null,2),createBaseVNode("div",{class:normalizeClass(["peredacha-head__info",{air:unref(i)}])},[createBaseVNode("div",_hoisted_3$1,[createBaseVNode("div",_hoisted_4,[createVNode(Transition,{name:"fade-out-left"},{default:withCtx(()=>[a.hasStream&&unref(i)?(openBlock(),createBlock(unref(_sfc_main$7),{key:0,id:a.id,slug:a.shortcat,class:"peredacha-head__player"},null,8,["id","slug"])):createCommentVNode("",!0)]),_:1})]),createBaseVNode("div",_hoisted_5,[createBaseVNode("div",_hoisted_6,[createVNode(d,{type:"caption",size:"xs",class:"peredacha-head__rubric hov-pr"},{default:withCtx(()=>[createVNode(l,{link:"kino"===e.type?"/serial/#kino":"/".concat(e.type)},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(TYPES)[e.type]),1)]),_:1},8,["link"])]),_:1}),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.rubric,t=>(openBlock(),createBlock(d,{key:t.id,class:normalizeClass(["peredacha-head__rubric",{"hov-pr":"kino"!==e.type}]),type:"caption",size:"xs"},{default:withCtx(()=>["kino"===e.type?(openBlock(),createElementBlock("span",_hoisted_7,toDisplayString(t.name),1)):(openBlock(),createBlock(l,{key:1,link:"/".concat(e.type,"#").concat(t.shortcat)},{default:withCtx(()=>[createTextVNode(toDisplayString(t.name),1)]),_:2},1032,["link"]))]),_:2},1032,["class"]))),128))]),createVNode(d,{class:"peredacha-head__title",type:"heading",size:"l",tag:"h1",rest:e.rest,inner:!0},{default:withCtx(()=>[createTextVNode(toDisplayString(e.name),1)]),_:1},8,["rest"]),e.out?(openBlock(),createBlock(d,{key:0,class:"peredacha-head__about",type:"caption",size:"l",inner:!0},{default:withCtx(()=>[createTextVNode(toDisplayString(e.out),1)]),_:1})):createCommentVNode("",!0),createVNode(d,{class:"peredacha-head__desc",inner:!0},{default:withCtx(()=>[createTextVNode(toDisplayString(e.annotation),1)]),_:1}),createVNode(unref(_sfc_main$8),{id:e.id,class:"peredacha-head__btns","menu-id":e.last_issue_menu_id,type:e.type,shortcat:e.shortcat,"fav-position":e.last||e.video?"bottom":"top","can-air":a.hasStream,"air-on":e.airOn,onAirClick:c},null,8,["id","menu-id","type","shortcat","fav-position","can-air","air-on"])])]),e.last||e.video?(openBlock(),createBlock(unref(_sfc_main$5),{key:0,class:"peredacha-head__slider",last:e.last,video:e.video,type:e.type,onShowVideos:s},null,8,["last","video","type"])):createCommentVNode("",!0)],2)],4),e.video?(openBlock(),createBlock(u,{key:0},{default:withCtx(()=>[createVNode(unref(_sfc_main$4),mergeProps({show:unref(r),"onUpdate:show":o[0]||(o[0]=e=>isRef(r)?r.value=e:null)},unref(n)),null,16,["show"])]),_:1})):createCommentVNode("",!0)])}}}),TOP={about:"РпеÑедаÑе",issues:"ÐÑпÑÑки",team:"ÐоллекÑив",sujets:"СÑжеÑÑ",videogal:"Ðидео",feedback:"ÐбÑаÑÐ½Ð°Ñ ÑвÑзÑ",news:"ÐовоÑÑи",season:"Сезон"},topSliderOptions=(e,t)=>({slidesPerView:"auto",spaceBetween:30,initialSlide:t>0&&t<e/2?t-1:t}),submenuSliderOptions=(e,t,a)=>{var o,r;return{slidesPerView:"auto",spaceBetween:20,initialSlide:a>0&&a<t/2?a-1:a,navigation:{nextEl:(null==(o=unref(e))?void 0:o.querySelector("[data-sli
1der-next]"))||null,prevEl:(null==(r=unref(e))?void 0:r.querySelector("[data-slider-prev]"))||null,disabledClass:"disabled"},breakpoints:{[SLIDER_BP.tablet]:{spaceBetween:20},0:{spaceBetween:10}}}},_hoisted_1$2={id:"peredacha-nav",class:"peredacha-nav"},_hoisted_2={"data-slider-prev":""},_hoisted_3={"data-slider-next":""},_sfc_main$2=defineComponent({__name:"PeredachaNavigation",props:{type:{},shortcat:{},menu:{},catchup:{},isCatchupFetched:{type:Boolean}},setup(e){const t=e,a=useRoute(),o=useRouter(),r=ref(null),n=ref(null),i=()=>{var e,o,r;if("catchup"===a.meta.type)return"catchup";if(!(null==(o=null==(e=t.menu)?void 0:e[0])?void 0:o.id))return a.meta.type||"hidden";const n=null==(r=t.menu)?void 0:r.find(({items:e})=>s(e)>-1);return(null==n?void 0:n.id)||"hidden"},s=e=>e.findIndex(e=>{var t,o;return e.id.toString()===(null==(o=null==(t=null==a?void 0:a.params)?void 0:t.menuId)?void 0:o.toString())}),c=ref(i()),l=computed(()=>{var e,a;const o=(null==(e=t.menu)?void 0:e.map(({type:e,items:a,id:o,name:r})=>{const n=1===a.length?a[0].name:((e,t)=>"issues"===e&&"peredacha"!==t?"СезонÑ":"about"===e&&"serial"===t?"Ð ÑеÑиале":"about"===e&&"kino"===t?"Ð ÑилÑме":TOP[e])(e,t.type);return{title:r||n,keyTab:o||e,link:"links"===a[0].type&&a[0].link?a[0].link:"/".concat(t.type,"/").concat(t.shortcat,"/").concat(a[0].type,"/").concat(a[0].id)}}))||[];return t.isCatchupFetched&&(null==(a=t.catchup)?void 0:a.length)&&o.push({title:"Ðедавно в ÑÑиÑе",keyTab:"catchup",link:"/".concat(t.type,"/").concat(t.shortcat,"/catchup")}),o}),d=computed(()=>{var e,a;if("catchup"===c.value)return[];let o=(null==(e=t.menu)?void 0:e.findIndex(({id:e,type:t})=>(e||t)===c.value))||0;return o=-1===o?0:o,(null==(a=t.menu)?void 0:a[o].items.length)>1?t.menu[o].items:[]}),u=ref(null);watch(d,()=>nextTick(()=>{var e;return null==(e=unref(u))?void 0:e.update()})),watch(c,e=>{const t=l.value.findIndex(t=>t.keyTab===e);-1!==t&&nextTick(()=>{var e;const a=null==(e=n.value)?void 0:e.getSlider();null==a||a.update(),null==a||a.slideTo(t)})});const p=computed(()=>{var e;return!!(null==(e=a.name)?void 0:e.toString().includes("main"))}),_=()=>{var e;p.value&&t.isCatchupFetched&&((null==(e=t.catchup)?void 0:e.length)?c.value="catchup":(c.value=l.value[0].keyTab,o.replace({path:"/".concat(t.type,"/").concat(t.shortcat)})))},m=()=>{var e;"catchup"===a.meta.type&&t.isCatchupFetched&&((null==(e=t.catchup)?void 0:e.length)||o.replace("/".concat(t.type,"/").concat(t.shortcat)))};return onMounted(()=>{_(),m()}),watch(l,()=>_()),watch(()=>t.isCatchupFetched,()=>{_(),m()}),watch(a,()=>{if(_(),m(),!p.value){const e=i();c.value!==e&&(c.value=e)}}),(t,a)=>{var o;const i=_sfc_main$k,_=_sfc_main$d,m=hUi,h=_sfc_main$a,f=_sfc_main$i,v=_sfc_main$h;return openBlock(),createElementBlock("div",_hoisted_1$2,[createVNode(i,{ref_key:"tabsRef",ref:n,modelValue:unref(c),"onUpdate:modelValue":a[0]||(a[0]=e=>isRef(c)?c.value=e:null),headers:unref(l),"slider-options":unref(topSliderOptions)(unref(l).length,unref(l).findIndex(e=>unref(c)===e.keyTab)||0),class:"peredacha-nav__top",type:"link","is-link":"","need-slider":"","scroll-to":"#peredacha-nav"},null,8,["modelValue","headers","slider-options"]),(null==(o=unref(d))?void 0:o.length)?(openBlock(),createElementBlock("div",{key:0,ref_key:"root",ref:r,class:"peredacha-nav__bottom"},[createBaseVNode("div",_hoisted_2,[createVNode(_,{name:"arrow-link",width:"15",height:"10"})]),createBaseVNode("div",_hoisted_3,[createVNode(_,{name:"arrow-link",width:"15",height:"10"})]),createVNode(v,{ref_key:"slider",ref:u,options:unref(submenuSliderOptions)(unref(r),unref(d).length,s(unref(d))),class:"peredacha-nav__sub"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(d),(t,a)=>(openBlock(),createBlock(f,{key:t.id,class:"peredacha-nav__sub-slide"},{default:withCtx(()=>[createVNode(h,{link:"/".concat(e.type,"/").concat(e.shortcat,"/").concat(t.type,"/").concat(t.id),class:normalizeClass(["peredacha-nav__sub-link",{active:unref(p)&&0===a}]),"scroll-to":".peredacha-nav"},{default:withCtx(()=>[createVNode(m,{type:"control",size:"m"},{default:withCtx(()=>[createTextVNode(toDisplayString(t.name),1)]),_:2},1024)]),_:2},1032,["link","class"])]),_:2},1024))),128))]),_:1},8,["options"])],512)):createCommentVNode("",!0)])}}}),_hoisted_1$1={key:0,class:"peredacha-related"},_sfc_main$1=defineComponent({__name:"PeredachaRelated",props:{rubrics:{},shortcat:{},type:{}},setup(e){const t=e,{shortcat:a}=toRefs(t),o={slidesPerView:"auto",spaceBetween:20,breakpoints:{[SLIDER_BP.wide]:{slidesPerView:4,spaceBetween:40},[SLIDER_BP.desktop]:{slidesPerView:4,spaceBetween:20},[SLIDER_BP.tablet]:{slidesPerView:3,spaceBetween:20}}},r=ref(null),n=computed(()=>
1"kino"!==t.type?"ÐÑÑгие ".concat("serial"===t.type?"ÑеÑиалÑ":"пеÑедаÑи"," из ").concat(t.rubrics&&t.rubrics.length>1?"ÑÑбÑик":"ÑÑбÑики"):"ÐÑÑгое из Ñаздела"),i=computed(()=>"kino"===t.type?"ÐÑе кино":"serial"===t.type?"ÐÑе ÑеÑиалÑ":"ÐÑе пеÑедаÑи"),s=computed(()=>"kino"===t.type?"/serial#kino":"/".concat(t.type)),{data:c}=(e=>fetchData(["peredacha/related",e],{shortcat:e}))(a);return watch(c,()=>{nextTick(()=>{var e;null==(e=null==r?void 0:r.value)||e.update()})}),(t,a)=>{var l;const d=_sfc_main$a,u=hUi,p=_sfc_main$i,_=_sfc_main$h,m=_sfc_main$b;return(null==(l=unref(c))?void 0:l.length)?(openBlock(),createElementBlock("div",_hoisted_1$1,[createVNode(u,{type:"subheading",size:"l",class:"peredacha-related__title"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(n))+" ",1),"kino"===e.type?(openBlock(),createBlock(d,{key:0,class:"peredacha-related__rubric hov-pr",link:"/serial#kino"},{default:withCtx(()=>[...a[0]||(a[0]=[createTextVNode(" кино ",-1)])]),_:1})):e.rubrics?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(e.rubrics,(t,a)=>(openBlock(),createBlock(d,{key:t.id,class:"peredacha-related__rubric hov-pr",link:"/".concat(e.type,"#").concat(t.shortcat)},{default:withCtx(()=>[createTextVNode(toDisplayString(t.name)+toDisplayString(a===e.rubrics.length-1?"":", "),1)]),_:2},1032,["link"]))),128)):createCommentVNode("",!0)]),_:1}),createVNode(_,{ref_key:"slider",ref:r,options:o,class:"peredacha-related__slider"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(c),t=>(openBlock(),createBlock(p,{key:t.id,class:"peredacha-related__slide"},{default:withCtx(()=>[createVNode(unref(_sfc_main$l),mergeProps({ref_for:!0},t,{type:e.type}),null,16,["type"])]),_:2},1024))),128))]),_:1},512),createVNode(d,{link:unref(s),class:"peredacha-related__link-all"},{default:withCtx(()=>[createVNode(m,null,{default:withCtx(()=>[createTextVNode(toDisplayString(unref(i)),1)]),_:1})]),_:1},8,["link"])])):createCommentVNode("",!0)}}});function setProgramInfo(e){var t;if(e){window.NTV=window.NTV||{};const{name:t,type:a}=e;window.NTV.program={name:t,type:a}}else(null==(t=window.NTV)?void 0:t.program)&&(window.NTV.program=null)}const _hoisted_1={key:0,class:"peredacha-item"},__default__=defineComponent({methods:{preloadPage:preloadPage}}),_sfc_main=defineComponent({...__default__,__name:"PeredachaItem",setup(e){const t=useRoute(),a=useRouter(),o=ref(!1),r=reactive({fmId:null,fmType:null,programName:null,programType:"peredacha",shortcat:null});function n(e){var t;if(e.value&&(null==(t=e.value.menu)?void 0:t.length)){const t=e.value.menu[0].items[0];let a=t.type;"theme_news"===a&&(a="theme-news"),r.fmType=a,r.fmId=t.id,r.programName=e.value.name,r.programType=e.value.type,r.shortcat=e.value.shortcat}}const i=computed(()=>t.params.name.toString()),s=computed(()=>{var e;return!!(null==(e=t.name)?void 0:e.toString().includes("main"))}),c=ref(!0),{data:l}=getProgram(i,n),{data:d,isFetched:u}=getCatchupProgramClient(i);provide(PROVIDE_PROGRAM_KEY,{...toRefs(r),catchupItems:d}),provide(PROVIDE_HIDE_COL,o);const{showAd:p}=useSdaEntity(l),_=computed(()=>"segodnya_msk"===i.value?"msk":"common");return n(l),watch(l,()=>{n(l),setProgramInfo(l.value)}),watch(c,()=>{if("air"in t.query&&!c.value){window.history.state[NO_SCROLL]=!0;const e={};Object.keys(t.query).forEach(a=>{"air"!==a&&(e.item=t.query[a])}),a.replace({path:t.path,query:e})}}),onMounted(()=>{setProgramInfo(l.value)}),onBeforeUnmount(()=>{setProgramInfo()}),(e,t)=>{var a;const r=resolveComponent("RouterView"),n=_sfc_main$c,m=_sfc_main$r;return(null==(a=unref(l))?void 0:a.redirectTo)?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_1,[unref(l)?(openBlock(),createBlock(unref(_sfc_main$9),mergeProps({key:0},unref(l),{"is-main":unref(s),air:unref(c)}),null,16,["is-main","air"])):createCommentVNode("",!0),unref(l)?(openBlock(),createBlock(unref(_sfc_main$3),mergeProps({key:1},unref(l),{"air-on":unref(c),"onUpdate:airOn":t[0]||(t[0]=e=>isRef(c)?c.value=e:null)}),null,16,["air-on"])):createCommentVNode("",!0),unref(l)?(openBlock(),createBlock(unref(_sfc_main$2),{key:2,class:"peredacha-item__nav",menu:unref(l).menu,type:unref(l).type,shortcat:unref(l).shortcat,catchup:unref(d),isCatchupFetched:unref(u)},null,8,["menu","type","shortcat","catchup","isCatchupFetched"])):createCommentVNode("",!0),createVNode(m,{"hide-right-col":unref(o),class:"peredacha-item__body"},{content:withCtx(()=>[createVNode(r,null,{default:withCtx(({Component:e})=>[(openBlock(),createBlock(resolveDynamicComponent(e)))]),_:1})]),rightCol:withCtx(()=>[unref(o)?createCommentVNode("",!0):(openBlock(),createBlock(unref(_sfc_main$q),{key:0,offset:3400,"show-ad":unref(p)},null,8,["show-ad"]))]),footer:withCtx(()=>{var e,t,a,o;return[createVNode(unref(_sfc_main$m),{"program-slug":unref(i),title:"ÐнакомÑÑеÑÑ, новÑй Ñезон!",class:"peredacha-item__stories"},null,8,["program-slug"]),"peredacha"!==(null==(e=unref(l))?void 0:e.type)&&(null==(t=unref(l))?void 0:t.shortcat)?(openBlock(),createBlock(n,{key:0},{default:withCtx(()=>[createVNode(unref(_sfc_main$n),{type:unref(l).type,shortcat:unref(l).shortcat,class:"peredacha-item__similar"},null,8,["type","shortcat"])]),_:1})):createCommentVNode("",!0),(null==(a=unref(l))?void 0:a.rubric)||"kino"===(null==(o=unref(l))?void 0:o.type)?(openBlock(),createBlock(n,{key:1},{default:withCtx(()=>[createVNode(unref(_sfc_main$1),{rubrics:unref(l).rubric,shortcat:unref(l).shortcat,type:unref(l).type,class:"peredacha-item__related"},null,8,["rubrics","shortcat","type"])]),_:1})):createCommentVNode("",!0),createVNode(unref(_sfc_main$o),{type:unref(_),class:"peredacha-item__rec"},null,8,["type"]),unref(p)?(openBlock(),createBlock(unref(_sfc_main$p),{key:2})):createCommentVNode("",!0)]}),_:1},8,["hide-right-col"])]))}}});
1export{_sfc_main as default};
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.