PageSourceSearch

https://nucleron.ru/assets/C66SPluM.js

js nucleron.ru collected 2026-10-08 12:09:59 UTC 2,702 bytes, 1 lines download raw bytes

1var T=Object.defineProperty;var n=(e,r)=>T(e,"name",{value:r,configurable:!0});import{D as g,P as m}from"./DoRGS25C.js";import{O as E,f as x,e as I,l as P,D as R}from"./CPdRvorI.js";import{_ as D,Y as N,r as l,e as V,aP as $,G as A,m as B,J as w,o as u,aa as y,Z as C,$ as p,K as h,c as O,a as S,H as Y}from"./DClodLpf.js";const L=n(async(e,r)=>{if(typeof e!="string"&&typeof e!="number")throw new TypeError("The video ID must be a string or a number");const s=`${r.app}/api/external/v1/get-rutube-preview?videoId=${e}`,o=await fetch(s,{method:"GET"});if(!o.ok)throw new Error(`Error: ${o.status}`);return await o.json()},"fetchRuTubeVideoThumbnail"),j=["id"],z=["src"],J={key:0,class:"b-video__preview"},M={__name:"b-video-rutube",props:{block:{type:Object,required:!0},blockIndex:{type:Number,required:!0}},setup(e){const r=e,{hosts:d}=N(E),s=l(null),o=l(""),c=l(!1),i=l(!1),b=V(()=>x(r.block.url)||""),k=n(async a=>{i.value=!0;try{const t=await L(a,d);return!t||!t.previewUrl?(console.warn("RuTube API вернул пустой ответ для ID:",a),""):`${t==null?void 0:t.previewUrl}`}catch(t){return console.error("Ошибка получения превью RuTube:",t),""}finally{i.value=!1}},"getRuTubeThumbnail"),_=n(async()=>{await Y(),f(),setTimeout(()=>{c.value=!0},100)},"showPlayer"),f=n(()=>{s.value&&s.value.contentWindow.postMessage(JSON.stringify({type:m.PLAY,data:{}}),"*")},"handlePlayVideo"),v=n(a=>
1{if(a.origin.includes("rutube.ru")&&s.value)try{JSON.parse(a.data).type===m.READY&&c.value&&f()}catch(t){t instanceof SyntaxError||console.error("Ошибка обработки сообщения:",t)}},"handleMessage");return $(async()=>{const a=b.value;a&&(o.value=r.block.cover||await k(a))}),A(()=>{window.addEventListener("message",v)}),B(()=>{window.removeEventListener("message",v)}),(a,t)=>(u(),w("article",{id:"block-"+e.block.id,class:"b-video"},[y(R,{title:e.block.title,subtitle:e.block.subTitle,backed:e.block.backed,"content-color":e.block.contentColor,index:e.blockIndex},{default:C(()=>[p("div",{class:"b-video__wrapper",onClick:_},[p("iframe",{ref_key:"ruTubePlayer",ref:s,class:"b-video__iframe",src:`https://rutube.ru/play/embed/${b.value}`,frameBorder:"0",allow:"clipboard-write; autoplay; fullscreen",webkitAllowFullScreen:"",mozallowfullscreen:"",allowFullScreen:""},null,8,z),!c.value&&!i.value?(u(),w("div",J,[o.value?(u(),O(I,{key:0,path:o.value,loading:"lazy",class:"b-video__image"},null,8,["path"])):h("",!0),y(g,{class:"b-video__button","aria-label":S(P).t("video.start")},null,8,["aria-label"])])):h("",!0)])]),_:1},8,["title","subtitle","backed","content-color","index"])],8,j))}},K=D(M,[["__scopeId","data-v-6d10ab02"]]);export{K 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.