PageSourceSearch

https://www.italvideo.it/build/assets/HeroBlock-vRBGdh7o.js

js italvideo.it collected 2026-10-08 09:46:12 UTC 3,697 bytes, 1 lines download raw bytes

1import{S as p,P as w,r as y}from"./player.es-DCTWoJuU.js";import{g as m}from"./index-BvSoWoVY.js";import{S as H}from"./ScrollTrigger-CItBpdEV.js";import{d as x,r as s,e as C,B as V,a as t,b as i,n as h,k as b,h as E,u as P,o as a}from"./inertia-C4NloYwc.js";/* empty css               *//* empty css            */import"./_commonjsHelpers-CmZmv3Qo.js";const z={class:"hero-block"},B={class:"w-full overflow-hidden -z-10"},S={class:"hero-block-container relative"},j={ref:"mediaContainer",class:"absolute inset-0 z-0 w-full h-full"},T=["src","alt"],M={key:1,class:"max-h-screen overflow-hidden"},N=["alt"],D=["src"],L={key:2},U=["src"],I={key:1,class:"w-full h-full"},O={class:"relative z-10 max-w-screen max-h-screen aspect-video"},W={key:0,class:"container mx-auto flex items-center justify-center animate h-full"},$=["innerHTML"],X=x({__name:"HeroBlock",props:{block:{}},setup(_){m.registerPlugin(H),m.registerPlugin(p);const c=s(null),d=s(null),u=s(null),f=s(null),r=s(!0);let n=null;const v=()=>{r.value=!1},e=_,g=o=>`/storage/${o}`,k=()=>{let o=window.innerHeight-80;if(e.block.data.type==="embed_video"){if(!c.value)return;o=c.value?.clientHeight>window.innerHeight?window.innerHeight:c.value?.clientHeight||o}else if(e.block.data.type==="local_video"){if(!d.value)return;o=d.value?.clientHeight>window.innerHeight?window.innerHeight:d.value?.clientHeight||o}else{if(!u.value)return;o=u.value?.clientHeight>window.innerHeight?window.innerHeight:u.value?.clientHeight||o}console.log("Offset:",o),m.to(window,{scrollTo:{y:o-80},duration:.6,ease:"power3.out"})},l=()=>{switch(e.block.data.type){case"image":return{background:e.block.data.background_image?g(e.block.data.background_image):void 0,isVideo:!1,isEmbed:!1};case"local_video":return{background:e.block.data.background_video?g(e.block.data.background_video):void 0,isVideo:!0,isEmbed:!1};case"embed_video":return{background:e.block.data.embed_url||void 0,isVideo:!0,isEmbed:!0};default:return{background:void 0,isVideo:!1,isEmbed:!1}}};return C(()=>{e.block.data.type==="embed_video"&&f.value&&(n=new w(f.value),n.on("play",v),n.on("timeupdate",o=>{o.seconds>.05&&v()}))}),V(()=>{n&&(n.unload(),n=null)}),(o,q)=>(a(),t("section",z,[i("div",B,[i("div",S,[i("div",j,[l().isVideo?l().isEmbed&&l().isVideo?(a(),t("div",M,[i("div",{ref_key:"iframeContainer",ref:c,class:"relative overflow-hidden max-w-[full] h-[calc(56.25vw+10px)]"},[r.value?(a(),t("div",{key:0,class:h(["absolute inset-0 z-10 transition-all duration-500 flex justify-center items-center animation-ping",{"opacity-0 pointer-events-none":!r.value}])},[i("img",{src:"/images/logo-loader.gif",alt:e.block.data.title??"Video poster",class:"w-1/3 h-auto object-cover"},null,8,N)],2)):b("",!0),i("iframe",{ref_key:"iframeElement",ref:f,src:l().background,frameborder:"0",class:h(["h-full w-full border-0 transition-opacity duration-500",{"opacity-100":!r.value,"opacity-0":r.value}]),allow:"autoplay; fullscreen; picture-in-picture",allowfullscreen:""},null,10,D)],512)])):(a(),t("div",L,[l().background?(a(),t("video",{key:0,ref_key:"videoContainer",ref:d,src:l().background,autoplay:"",muted:"",loop:"",class:"w-full h-full object-cover"},null,8,U)):(a(),t("div",I))])):(a(),t("img",{key:0,ref_key:"imageContainer",ref:u,src:l().background,alt:e.block.data.title??"Hero Image",class:"w-full h-full object-cover"},null,8,T))],512),E(P(y),{class:"absolute hidden bottom-4 z-20 left-1/2 transform -translate-x-1/2 text-white w-12 h-12 animate-bounce cursor-pointer lg:block",onClick:k}),i("div",O,[e.block.data.title?(a(),t("div",W,[i("div",{innerHTML:e.block.data.title,class:"font-bold slide-title relative animate-top"},null,8,$)])):b("",!0)])])])]))}});export{X 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.