PageSourceSearch

https://guacamelee2.com/_nuxt/ChYnEpJJ.js

js guacamelee2.com collected 2026-10-02 17:31:24 UTC 2,996 bytes, 1 lines download raw bytes

1import{y as o,f as c,s as x,a9 as C,ao as F,h as L,o as R,w as f,b as B,a1 as T}from"#entry";import{V as P,f as D,i as v,c as Q,a as $,g as E,P as N}from"./BXGCnMgf.js";import"./DlAUqK2U.js";const z={__name:"LazyYoutube",props:{src:{type:String,required:!0},aspectRatio:{type:String,default:"16:9",validator:function(l){return/^\d+:\d+$/u.test(l)},required:!1},showTitle:{type:Boolean,default:!0,required:!1},maxWidth:{type:String,default:"560px",required:!1},autoplay:{type:Boolean,default:!1,required:!1},thumbnailQuality:{type:String,default:"standard",required:!1},iframeClass:{type:String,default:"ly-iframe",required:!1},customTitle:{type:String,default:"",required:!1},customThumbnail:{type:String,default:"",required:!1},oembedFetch:{type:Boolean,default:!0,required:!1},iframePolicy:{type:String,default:"",required:!1}},setup(l,{expose:w}){const a=l,r=o(!1),s=o(!1),e=o(null),d=o(null),n=o(!0),i=o(!1),m=o(),p=c(()=>E(a.src)),q=c(()=>Q(a.aspectRatio)),h=c(()=>a.customTitle?a.customTitle:d.value!==null?d.value.title:a.customTitle),S=({el:t,ctx:u})=>{m.value=u.vnode.el},y=()=>{e.value!==null&&(e.value.remove(),e.value=null,r.value=!1,s.value=!1)},g=(t=!1,u="youtube")=>{e.value=$(p.value,a.src,h.value,a.iframeClass,a.iframePolicy,u),e.value.addEventListener("load",()=>{n.value===!1&&(s.value||(s.value=!0)),t&&(u==="youtube"?e.value.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):e.value.contentWindow.postMessage('{"method":"play"}',"*"))}),m.value.appendChild(e.value),e.value.focus()},I=()=>{r.value=!0,n.value===!1&&!s.value&&i.value&&r.value&&e.value===null&&g()},W=()=>{v&&e.value!==null&&e.value.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")},b=()=>{v&&(e.value===null?g(a.autoplay):e.value.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"))},M=()=>{v&&e.value!==null&&e.value.contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}',"*")},V=()=>{a.oembedFetch?D(a.src).then(function(t){return t.json()}).then(t=>{d.value=t,i.value=!0}).catch(()=>{d.value=null,i.value=!1}).finally(()=>{n.value=!1,a.autoplay&&b()}):(i.value=!0,n.value=!1)},k=()=>{y(),r.value=!1,s.value=!1,e.value=null,d.value=null,n.value=!0,i.value=!1};return x(()=>{V()}),C(F(()=>a.src),async(t,u)=>{t!==u&&(k(),V())}),w({pauseVideo:W,playVideo:b,stopVideo:M,resetView:y}),(t,u)=>(R(),L(P,{aspectRatioValue:q.value,maxWidth:l.maxWidth,onVnodeMounted:S},{default:f(()=>[B(N,{isVideoFound:i.value,fetchingInfo:n.value,defaultThumbnailQuality:l.thumbnailQuality,customThumbnail:l.customThumbnail,videoTitle:h.value,videoID:p.value,showTitle:l.showTitle,clicked:r.value,onceLoaded:s.value,onClick:I},{button:f(()=>[T(t.$slots,"button")]),loader:f(()=>[T(t.$slots,"loader")]),_:3},8,["isVideoFound","fetchingInfo","defaultThumbnailQuality","customThumbnail","videoTitle","videoID","showTitle","clicked","onceLoaded"])]),_:3},8,["aspectRatioValue","maxWidth"]))}};export{z 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.