PageSourceSearch

https://www.mirantis.com/blog/_nuxt/Bv02_Gsa.js

js mirantis.com collected 2026-09-24 08:41:16 UTC 4,366 bytes, 9 lines download raw bytes

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]="e87d7801-57c2-4194-a86c-8d50eb8fefb5",e._sentryDebugIdIdentifier="sentry-dbid-e87d7801-57c2-4194-a86c-8d50eb8fefb5")}catch(f){}import{b2 as e,aE as t,aZ as a,bt as l,aG as r,aL as i,aH as u,aT as o}from"./C0qW7vjy.js";import"./CYIcaAOv.js";var s=function(e,t={},a){const{props:r,domProps:i,on:u,attrs:o,...s}=t,n={...s,...r,...i,...function(e){return e?Object.entries(e).reduce(((e,[t,a])=>(t=`on${t=t.charAt(0).toUpperCase()+t.slice(1)}`,{...e,[t]:a})),{}):null}(u),...o};return l(e,n,a)};function n(e,t){var a;if(null===e)throw new Error("iframe element not instantiated.");null==(a=e.contentWindow)||a.postMessage(`{"event":"command","func":"${t}","args":""}`,"*")}function d(e){return s("link",{attrs:{rel:"preconnect",href:e}})}var p=e({props:{announce:{type:String,required:!1,default:"Watch"},id:{type:String,required:!0},title:{type:String,required:!0},activatedClass:{type:String,required:!1,default:"lyt-activated"},adNetwork:{type:Boolean,required:!1,default:!0},iframeClass:{type:String,required:!1,default:""},cookie:{type:Boolean,required:!1,default:!1},params:{type:String,required:!1,default:""},playerClass:{type:String,required:!1,default:"lty-playbtn"},playlist:{type:Boolean,required:!1,default:!1},playlistCoverId:{type:String,required:!1,default:""},poster:{type:String,required:!1,default:"hqdefault"},wrapperClass:{type:String,required:!1,default:"yt-lite"},muted:{type:Boolean,required:!1,default:!1},thumbnail:{type:String,required:!1},webp:{type:Boolean,required:!1,default:!1},rel:{type:String,required:!1,default:"preload"},aspectHeight:{type:Number,required:!1,default:9},aspectWidth:{type:Number,required:!1,default:16}},emits:["iframeAdded"],setup(e,{emit:l,expose:r}){const i=t(!1),u=t(!1),o=t(null),p=a((()=>encodeURIComponent(e.id))),c=a((()=>`&${e.params}`||"")),y=a((()=>e.muted?"&mute=1":"")),f=a((()=>e.webp?"webp":"jpg")),m=a((()=>e.webp?"vi_webp":"vi")),b=a((()=>"string"==typeof e.playlistCoverId?encodeURIComponent(e.playlistCoverId):null)),v=a((()=>e.thumbnail||(e.playlist?`https://i.ytimg.com/${m.value}/${b.value}/${e.poster}.${f.value}`:`https://i.ytimg.com/${m.value}/${p.value}/${e.poster}.${f.value}`))),g=a((()=>e.cookie?"https://www.youtube.com":"https://www.youtube-nocookie.com")),w=a((()=>e.playlist?`${g.value}/embed/videoseries?autoplay=1&enablejsapi=1&list=${p.value}${y.value}${c.value}`:`${g.value}/embed/${p.value}?autoplay=1&enablejsapi=1&state=1${y.value}${c.value}`));function h(){u.value||(u.value=!0,l("iframeAdded"))}function $(){i.value||(i.value=!0)}r({getPlayerInstance:()=>o.value,stopVideo(){n(o.value,"stopVideo")},pauseVideo(){n(o.value,"pauseVideo")},playVideo(){n(o.value,"playVideo")},warmConnections:$,addIframe:h});return()=>[s("link",{attrs:{rel:e.rel,href:v.value,as:"image"}}),i.value?d(g.value):null,i.value?d("https://www.google.com"):null,e.adNetwork?d("https://static.doubleclick.net"):null,e.adNetwork?d("https://googleads.g.doubleclick.net"):null,s("article",{on:{pointerover:$,click:h},class:`${e.wrapperClass} ${u.value?e.activatedClass:""}`,attrs:{"data-title":e.title},style:{backgroundImage:`url(${v.value})`,"--aspect-ratio":e.aspectHeight/e.aspectWidth*100+"%"}},[s("button",{class:e.playerClass,attrs:{type:"button","aria-label":`${e.announce} ${e.title}`}}),u.value?s("iframe",{ref:o,class:e.iframeClass,attrs:{title:e.title,width:560,height:315,frameborder:0,allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:!0,src:w.value}}):null])]}});
2/*!
3 * Original code by Ibrahim Cesar
4 * MIT Licensed, Copyright 2022 Ibrahim Cesar, see https://github.com/ibrahimcesar/react-lite-youtube-embed/blob/main/LICENSE for details
5 *
6 * Credits to the team:
7 * https://github.com/ibrahimcesar/react-lite-youtube-embed/blob/main/src/lib/index.tsx
8 */
9const c={class:"youtube-embed"},y={__name:"Youtube",props:{blok:{type:Object,required:!0}},setup(e){const t=e,l=a((()=>t.blok.start_time?t.blok.start_time:0));return(t,a)=>(i(),r("div",c,[u(o(p),{id:e.blok.video_id,title:"Embedded Youtube Video",style:{"max-width":"none"},params:"start="+o(l)},null,8,["id","params"])]))}};export{y 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.