1import{_ as h}from"./BGBPiSX5.js";import{h as n,e as c,o as a,p,W as y,d as f,l as i,m as v,n as s,t as g,_ as k}from"./D1BBo57i.js";const w=["data-autoplay","loop","muted","playsinline","controls","data-poster","height","width"],B=["src","type"],S={__name:"BaseVideo",props:{lazySrc:{type:String,default:()=>{}},fit:{type:String,default:"cover",validator:e=>["cover","contain"].includes(e)},width:{type:Number,default:null},height:{type:Number,default:null},autoplay:{type:Boolean,default:!1},showControls:{type:Boolean,default:!0},poster:{type:String,required:!1,default:null}},setup(e){const l=e,t=n(()=>{if(l.lazySrc)switch(l.lazySrc.split(".").pop()){case"webm":return"video/webm";case"mp4":default:return"video/mp4"}return"video/mp4"});return(o,d)=>(a(),c("video",y(o.$attrs,{class:["BaseVideo lazyload",e.fit],"data-autoplay":e.autoplay?"":null,loop:e.autoplay,muted:e.autoplay,playsinline:e.autoplay?"":null,controls:e.showControls,"data-poster":e.poster,preload:"none",height:e.height,width:e.width}),[p("source",{src:e.lazySrc,type:t.value},null,8,B)],16,w))}},_={key:2,class:"CmsBlockVideo__caption"},b=f({__name:"CmsBlockVideo",props:{blok:{type:Object,required:!0}},setup(e){const l=e,t=n(()=>l.blok.video?.[0]||null);return(o,d)=>{const r=h,u=S,m=k;return a(),i(m,{class:"CmsBlockVideo siteWidth paddingBlockSmall",tag:"figure"},{default:v(()=>[t.value.embeddedAsset?.iframeSrc?(a(),i(r,{key:0,lazySrc:t.value.embeddedAsset?.iframeSrc,width:t.value.embeddedAsset?.width,height:t.value.embeddedAsset?.height,title:t.value.alt||t.value.title||t.value.embeddedAsset?.title,"data-cookieconsent":"necessary",class:"CmsBlockVideo__video"},null,8,["lazySrc","width","height","title"])):t.value?.url?(a(),i(u,{key:1,fit:"contain",alt:t.value.alt||t.value.title,previewSrc:t.value.preview,width:t.value.width,height:t.value.height,lazySrc:t.value.url,class:"CmsBlockVideo__video"},null,8,["alt","previewSrc","width","height","lazySrc"])):s("",!0),e.blok.caption?(a(),c("figcaption",_,g(e.blok.caption),1)):s("",!0)]),_:1})}}}),z=Object.assign(b,{__name:"CmsBlockVideo"});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.