1import _ from"./qmTrrmMb.js";import{a as k,P as B}from"./DeU0mUsd.js";import{u as I}from"./CiBOKfqS.js";import{t as b,a5 as l,W as w,m as s,j as n,ae as t,F as P,k as V,K as z,l as p,O as C,ac as A,am as S,Z as a,i as O}from"./Bgys0MBZ.js";import"./C_vwnKpi.js";const T={class:"lg:px-48"},j={class:"relative xl:mx-auto xl:max-w-screen-xl"},R=["src"],E={key:1,class:"z-50 block pt-16 text-center text-18 uppercase md:absolute md:left-1/2 md:top-[70%] md:-translate-x-1/2"},F=["src","autoplay"],N=b({__name:"BaseVideo",props:{videoSrc:{},isAutoplayed:{type:Boolean},placeholderText:{},placeholderImage:{},playButtonColor:{}},setup(e){const o=e,{isImageValid:y,externalImageProps:x}=I(),r=l(null),c=l(!1),d=l(!1),i=l(!!o.placeholderImage?.length),f=O(()=>o.playButtonColor==="red"?k:B),u=()=>{o.placeholderImage?.length&&(i.value=!1),d.value=!0,r.value?.play()},v=()=>{o.isAutoplayed&&S(r.value,m=>{m[0]?.isIntersecting&&!c.value&&(u(),c.value=!0)},{threshold:1})};return w(()=>v()),(m,h)=>{const g=_;return a(),s("section",T,[n("div",j,[!e.isAutoplayed&&t(i)?(a(),s(P,{key:0},[t(y)(e.placeholderImage?.[0])?(a(),V(g,z({key:0},t(x)(e.placeholderImage?.[0]),{class:"relative z-10 mx-auto aspect-video w-full object-cover",loading:"eager",sizes:"xs:100vw sm:100vw md:100vw lg:100vw xl:100vw 2xl:80vw"}),null,16)):p("",!0),n("div",{class:C(["absolute left-1/2 z-20 flex -translate-x-1/2 flex-col items-center md:left-1/2 md:top-1/2 md:-translate-x-1/2 md:-translate-y-1/2",[e.placeholderText?"top-[45%] -translate-y-[45%]":"top-1/2 -translate-y-1/2"]])},[n("button",{onClick:u},[n("img",{src:t(f),alt:"Play button",width:"81",height:"80",loading:"lazy"},null,8,R)])],2),e.placeholderText?(a(),s("p",E,A(e.placeholderText),1)):p("",!0)],64)):(a(),s("video",{key:1,ref_key:"videoRef",ref:r,class:"block aspect-video w-full",controls:"",src:e.videoSrc,autoplay:t(d)},null,8,F))])])}}}),q=Object.assign(N,{__name:"BaseVideo"});export{q 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.