PageSourceSearch

https://transtelex.ro/_nuxt/Bv80AwwK.js

js transtelex.ro collected 2026-09-25 05:03:24 UTC 1,847 bytes, 1 lines download raw bytes

1import{_ as i,aC as d,o as u,c as o,a as n,n as l,aD as h}from"./C-qN4PQR.js";const m={props:{url:{type:String,default:null,required:!0},autoplay:{type:Number,required:!1,default:d.NO},embedId:{type:String,default:null}},data(){return{player:null}},setup(){return{uuid:h()}},async mounted(){this.player=await this.$youTubePlayer.addYouTubeVideo(this.domElementId,this.videoId,this.autoplay),this.player.addEventListener("onReady",e=>{this.$emit("onVideoDataArrived",e.target)}),this.player.addEventListener("onStateChange",e=>{e.data===1&&(this.$bus.$emit("pause-youtube-video",{pauseEmbedIds:"*",senderEmbedId:this.embedId}),this.$emit("onPlay",e.data)),e.data===2&&this.$emit("onPause",e.data)}),this.$bus.$on("pause-youtube-video",this.handlePauseVideoMessage)},computed:{domElementId(){return"yt-"+this.videoId+"-"+this.uuid},startTimeQueryParam(){const e=new URL(this.url).searchParams;return e.get("t")?"?start="+e.get("t").replace("s",""):""},videoId(){if(!this.url)return"";const e=/^.*(?:(?:youtu\.be\/|v\/|vi\/|u\/\w\/|embed\/|shorts\/|live\/)|(?:(?:watch)?\?v(?:i)?=|\&v(?:i)?=))([^#\&\?]*).*/,t=this.url.match(e);return t?t[1]:""},isPortrait(){return this.url&&this.url.includes("/shorts/")},iframeSrc(){return`https://www.youtube.com/embed/${this.videoId}${this.startTimeQueryParam}`}},beforeUnmount(){this.$bus.$off("pause-youtube-video",this.handlePauseVideoMessage)},methods:{handlePauseVideoMessage({pauseEmbedIds:e,senderEmbedId:t}){const a=e==="*"&&this.embedId!==t,r=Array.isArray(e)&&e.includes(this.embedId);this.player&&(a||r)&&this.player.pauseVideo()}}},c={class:"youtube-embed"},p=["id"];function y(e,t,a,r,b,s){return u(),o("div",c,[n("div",{id:s.domElementId,class:l({portrait:s.isPortrait,landscape:!s.isPortrait})},null,10,p)])}const f=Object.assign(i(m,[["render",y]]),{__name:"YoutubeEmbed"});export{f 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.