PageSourceSearch

https://static2.ntv.ru/assets/js/air-all-BCivzk-g.js

js ntv.ru collected 2026-09-24 15:34:27 UTC 4,795 bytes, 1 lines download raw bytes

1import{_ as _sfc_main$4}from"./stream-player.type_style-8g06NoaP.js";import{d as defineComponent,aU as use,O as onMounted,o as openBlock,v as createBlock,Z as resolveDynamicComponent,a as unref,p as _sfc_main$2,l as normalizeClass,f as withCtx,g as createBaseVNode,e as createVNode,aR as _sfc_main$3,h as createCommentVNode,q as hUi,s as createTextVNode,t as toDisplayString,az as normalizeStyle,y as ref,j as computed,aS as getProgress,D as fetchData,J as useAdaptive,u as useRouter,a8 as useCommonMeta,c as createElementBlock,aV as MULTI_STREAM,F as Fragment,k as renderList,m as mergeProps}from"../main-Osi-qHrI.js";import{C as ChannelLogo}from"./channel-logo.type_style-6ygpVDEd.js";import{b as getCurrentPrograms}from"./vitrina-rs6mmbkA.js";const _hoisted_1$1={class:"air-channel__img-wrapp"},_hoisted_2$1={class:"air-channel__img"},_sfc_main$1=defineComponent({__name:"ChannelCard",props:{channel:{},program:{}},setup(e){const a=e,t=ref(null),n=ref(!1),r=use(),o=computed(()=>"hit"===a.channel.code),l=computed(()=>{var e,t;return a.program?getProgress(r.current,null==(e=a.program)?void 0:e.date_start,null==(t=a.program)?void 0:t.date_stop):0}),s=computed(()=>{var e;return null==(e=a.program)?void 0:e.title}),c=computed(()=>{var e,a,r;const o=(null==(e=t.value)?void 0:e.clientWidth)||0,l=(null==(r=null==(a=t.value)?void 0:a.parentElement)?void 0:r.clientWidth)||0;return n.value&&o>l?{transitionDuration:"".concat(2*(o-l)/200,"s")}:{}});return onMounted(()=>{n.value=!0}),(a,n)=>{const r=_sfc_main$3,i=hUi;return openBlock(),createBlock(resolveDynamicComponent(unref(o)?"div":unref(_sfc_main$2)),{link:unref(o)?null:{name:"air-live",params:{channel:e.channel.code}},class:normalizeClass(["air-channel",{"hov-b":"hit"!==e.channel.code}])},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$1,[createBaseVNode("div",_hoisted_2$1,[createVNode(unref(ChannelLogo),{width:40,height:25,channel:e.channel.code,title:e.channel.title,active:!0,class:"air-channel__logo"},null,8,["channel","title"])]),e.program&&e.program.date_start&&e.program.date_stop?(openBlock(),createBlock(r,{key:0,percent:unref(l),rounded:!1,class:"air-channel__progress"},null,8,["percent"])):createCommentVNode("",!0)]),unref(s)?(openBlock(),createBlock(i,{key:0,ref_key:"titleNode",ref:t,type:"card",size:"xs",class:"air-channel__hidden-title"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(s)),1)]),_:1},512)):createCommentVNode("",!0),unref(s)?(openBlock(),createBlock(i,{key:1,type:"card",size:"xs",class:"air-channel__title",style:normalizeStyle(unref(c))},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(s)),1)]),_:1},8,["style"])):createCommentVNode("",!0)]),_:1},8,["link","class"])}}}),_hoisted_1={key:0,class:"air-all"},_hoisted_2={class:"air-all__player"},_hoisted_3={class:"air-all__cards"},_hoisted_4={key:0,class:"air-all__cards-inner"},_sfc_main=defineComponent({__name:"AirAll",setup(e){const{data:a}=getCurrentPrograms(1e4),{data:t}=(e=>{const{data:a}=fetchData(["air/thematic"],void 0,{refetchInterval:e});return{data:a}})(1e4),n=ref(!1),r=useAdaptive(),o=useRouter(),l={showControls:!1,autoplay:!0,muted:!0,showAgeLimit:!1,showTitle:!1,enableStatistic:!1,enableResumeWatch:!1,enableShare:!1,enableRelated:!1},s={isLive:!0,noad:!0,id:"all",src:MULTI_STREAM},c=()=>{const e=r.getBPName();n.value="mobile"===e||"tablet"===e||"desktop"===e,unref(n)&&o.replace("/air/ntv")};return r.onBPChange(()=>c()),onMounted(()=>c()),useCommonMeta({title:"Прямой эфир НТВ и трансляции всех российских телеканалов",description:"Ежедневно, круглосуточно и бесплатно: смотрите прямой эфир НТВ и всех российских телеканалов",pfx:!0}),(e,r)=>{var o,c;return unref(n)?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_1,[createBaseVNode("div",_hoisted_2,[createVNode(unref(_sfc_main$4),{id:"air-player
1-all",src:unref(MULTI_STREAM),options:s,config:l},null,8,["src"])]),createBaseVNode("div",_hoisted_3,[(null==(o=unref(t))?void 0:o.length)&&(null==(c=unref(a))?void 0:c.length)?(openBlock(),createElementBlock("div",_hoisted_4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(t),e=>(openBlock(),createBlock(unref(_sfc_main$1),mergeProps({key:e.channel.code},{ref_for:!0},e,{class:"air-all__card air-all__card--".concat(e.channel.code)}),null,16,["class"]))),128)),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(a),(e,a)=>{var t;return openBlock(),createBlock(unref(_sfc_main$1),mergeProps({key:a},{ref_for:!0},e,{class:"air-all__card air-all__card--".concat(null==(t=null==e?void 0:e.channel)?void 0:t.code)}),null,16,["class"])}),128))])):createCommentVNode("",!0)])]))}}});export{_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.