PageSourceSearch

https://www.caffevita.com/cdn/shop/t/114/assets/video-DfjRGbvO.js

js caffevita.com collected 2026-10-02 06:06:22 UTC 2,044 bytes, 1 lines download raw bytes

1import{n as o,e as s,i as d}from"./fluorescent-dom.es-Cu7dY8l0.js";import{r as u}from"./index-8UqU5rlX.js";import{l as g,a as x}from"./load-vimeo-api-BcPJx7z4.js";import{d as _}from"./delay-offset-DYAL33nW.js";import{i as b}from"./intersection-watcher-D3vtB7Co.js";import{s as I}from"./shouldAnimate-BMbjctYf.js";import"./media-queries-CokWIw5y.js";const w={textContent:".video__text-container > *"},P=t=>{_(t,[w.textContent],3);const e=b(t);return{destroy(){e==null||e.destroy()}}},a={video:".video__video",videoExternal:"[data-video-external-target]",image:".video__image",overlay:".video__overlay",text:".video__text-container-wrapper",playTrigger:".video__text-container-wrapper"},c={visible:"visible"};u("video",{onLoad(){this.events=[];const t=o(a.playTrigger,this.container),e=o(a.video,this.container),n=o(a.videoExternal,this.container),v=o(a.image,this.container),p=o(a.overlay,this.container),y=o(a.text,this.container);if(n){const{videoProvider:m,videoId:l,loop:h}=n.dataset;switch(m){case"youtube":x().then(()=>{const i=new window.YT.Player(n,{videoId:l,playerVars:{autohide:0,cc_load_policy:0,controls:1,iv_load_policy:3,modestbranding:1,playsinline:1,rel:0,loop:h,playlist:l},events:{onReady:()=>{i.getIframe().tabIndex="-1",this.events.push(s(t,"click",()=>{i.playVideo()}))},onStateChange:f=>{f.data==YT.PlayerState.PLAYING&&(i.getIframe().tabIndex="0",r())}}})});break;case"vimeo":g().then(()=>{const i=new window.Vimeo.Player(n,{id:l,controls:!0,keyboard:!1});i.element.tabIndex="-1",h==="true"&&i.setLoop(1),this.events.push(s(t,"click",()=>{i.play(),i.element.tabIndex="0",r()}))});break}}t&&e&&this.events.push(s(t,"click",()=>{e.play()})),e&&this.events.push(s(e,"playing",()=>{e.setAttribute("controls",""),r()}));function r(){d(p,c.visible),d(y,c.visible),v&&d(v,c.visible)}I(this.container)&&(this.animateVideo=P(this.container))},onUnload(){var t;this.playButtons&&this.playButtons.forEach(e=>e.unload()),this.events.forEach(e=>e()),this.videoHandler&&this.videoHandler(),(t=this.animateVideo)==null||t.destroy()}});

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.