PageSourceSearch

https://vapps-res.media.io/mediaai/_nuxt/index-DeXEwCms.js

js media.io collected 2026-10-01 10:22:29 UTC 3,066 bytes, 1 lines download raw bytes

1import{r as h,w as x,o as E,x as I,d as L,y,z as b,N as O}from"./chunk-vue-TRwxe8i9.js";import{_ as w}from"./CkuPa5Yr.js";function D(d={}){const{scrolledClass:t="",blurDistance:l=240,maxBlur:f=20,fadeDistance:n=500,isImage:g=!1}=d,a=h(null),m=h(null),B=h(g);let c=null,r=null,o=0;const i=()=>{const e=a.value;if(!e)return;const s=document.querySelector(".mi-avg__header-banner");e.style.top=`${s instanceof HTMLElement?s.offsetHeight:0}px`},p=()=>{const e=a.value,s=m.value;if(!e||!s)return;const v=Math.max(0,-s.getBoundingClientRect().top);if(v<=0){e.style.filter="",e.style.opacity="";return}e.style.filter=`blur(${(Math.min(1,v/l)*f).toFixed(2)}px)`,e.style.opacity=(1-Math.min(1,v/n)).toFixed(3)},_=()=>{o||(o=requestAnimationFrame(()=>{o=0,p()}))};function u(){a.value?.play().catch(()=>{}),k()}function R(){document.addEventListener("touchstart",u,{once:!0,passive:!0}),document.addEventListener("click",u,{once:!0})}function k(){document.removeEventListener("touchstart",u),document.removeEventListener("click",u)}return x(a,e=>{!e||B.value||(e.muted=!0,e.play().catch(R),i(),p())},{flush:"post"}),x(m,e=>{r?.disconnect(),r=null,!(!e||!t||typeof IntersectionObserver>"u")&&(r=new IntersectionObserver(([s])=>{document.documentElement.classList.toggle(t,!s?.isIntersecting)}),r.observe(e))},{flush:"post"}),E(()=>{if(i(),requestAnimationFrame(i),window.addEventListener("resize",i),typeof ResizeObserver<"u"){const e=document.querySelector(".mi-avg__header-shell");e&&(c=new ResizeObserver(i),c.observe(e))}p(),document.addEventListener("scroll",_,{passive:!0,capture:!0})}),I(()=>{window.removeEventListener("resize",i),document.removeEventListener("scroll",_,{capture:!0}),k(),o&&cancelAnimationFrame(o),o=0,c?.disconnect(),c=null,r?.disconnect(),r=null,t&&document.documentElement.classList.remove(t)}),{videoRef:a,sentinelRef:m}}const F=["src"],H=["src","poster"],z=L({__name:"index",props:{src:{},poster:{default:""},height:{default:650},phoneHeight:{default:320},scrolledClass:{default:""},blurDistance:{default:240},maxBlur:{default:20},fadeDistance:{default:500},isImage:{type:Boolean,default:!1}},setup(d){const t=d,{videoRef:l,sentinelRef:f}=D({scrolledClass:t.scrolledClass,blurDistance:t.blurDistance,maxBlur:t.maxBlur,fadeDistance:t.fadeDistance,isImage:t.isImage});return(n,g)=>(b(),y("div",{ref_key:"sentinelRef",ref:f,class:"hero-bg-video__sentinel",style:O({"--hero-bg-video-h":`${n.height}px`,"--hero-bg-video-phone-h":`${n.phoneHeight}px`}),"aria-hidden":"true"},[n.isImage?(b(),y("img",{key:0,ref_key:"videoRef",ref:l,class:"hero-bg-video",src:n.src,"aria-hidden":"true"},null,8,F)):(b(),y("video",{key:1,ref_key:"videoRef",ref:l,class:"hero-bg-video",src:n.src,poster:n.poster,autoplay:"",loop:"",muted:"",playsinline:"","webkit-playsinline":"","x5-playsinline":"true","x5-video-player-type":"h5","x5-video-player-fullscreen":"false",disablePictureInPicture:"",disableRemotePlayback:"",preload:"auto",tabindex:"-1"},null,8,H))],4))}}),M=Object.assign(w(z,[["__scopeId","data-v-1cae0dd6"]]),{__name:"HeroBackgroundVideo"});export{M as H};

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.