PageSourceSearch

https://www.vaco.com/wp-content/cache/min/1/wp-content/plugins/b3r…/video/block-frontend.js?ver=1790179771

js vaco.com collected 2026-10-03 19:02:51 UTC 2,853 bytes, 1 lines download raw bytes

1(()=>{"use strict";const e=JSON.parse('{"DEFAULT_CSS_CLASS":{"VIDEO":"e-vid"}}'),{feWp:t}=window,{applyFilters:a}=t.hooks,s=e.DEFAULT_CSS_CLASS.VIDEO,i=document.querySelectorAll(`.${s}`),l=document.querySelectorAll(`.${s}--thumbnail`),r=e=>{const t=e.querySelector("video"),a=parseFloat(t.dataset.previewStart),s=parseFloat(t.dataset.previewEnd);t.addEventListener("loadedmetadata",(()=>{const e=1e3*t.duration;0!==a||0!==s?a>=0&&s>a&&s<=e&&(t.currentTime=a/1e3,t.addEventListener("timeupdate",(function(){t.currentTime>=s/1e3&&(t.currentTime=a/1e3)})),t.play()):t.pause()}))},c=e=>{const t=e.querySelector(".btn-playback--play"),a=e.querySelector(".btn-playback--pause");if(!t||!a)return;const s=e.querySelector("video"),i=s?.autoplay,l=s?.muted,r=()=>{t.classList.add("hide"),a.classList.remove("hide")},c=()=>{a.classList.add("hide"),t.classList.remove("hide")};s?.addEventListener("play",r),s?.addEventListener("pause",c),i&&l?r():c(),t.addEventListener("click",(()=>{s.play(),r()})),a.addEventListener("click",(()=>{s.pause(),c()}))},n=e=>{const t=e.target.closest("div");t.querySelectorAll(".btn-playback--play, .e-vid__poster-image").forEach((e=>{e.classList.add("hide")})),t.querySelectorAll(".btn-playback--pause").forEach((e=>{e.classList.remove("hide")})),t.querySelectorAll("iframe").forEach((e=>{(e=>{const t=e.getAttribute("src");let a=null;if(t.includes("vimeo")?a=JSON.stringify({method:"play",value:!0}):t.includes("youtube")?a=JSON.stringify({event:"command",func:"playVideo"}):t.includes("wistia")&&(a=JSON.stringify({method:"play",value:!0})),t.includes("mute"))a&&e.contentWindow.postMessage(a,"*");else{const a=`${t.includes("?")?t.split("?")[0]:t}?enablejsapi=1&mute=0&autoplay=1&modestbranding=1&rel=0`;e.setAttribute("src",a)}})(e)}))},o=e=>{const t=e.target.closest("div");t.querySelectorAll(".btn-playback--play").forEach((e=>{e.classList.remove("hide")})),t.querySelectorAll(".btn-playback--pause").forEach((e=>{e.classList.add("hide")})),t.querySelectorAll("iframe").forEach((e=>{(e=>{const t=e.getAttribute("src");let a;t.includes("vimeo")?a=JSON.stringify({method:"pause",value:!0}):t.includes("youtube")?a=JSON.stringify({event:"command",func:"pauseVideo"}):t.includes("wistia")&&(a=JSON.stringify({method:"pause",value:!0})),a&&e.contentWindow.postMessage(a,"*")})(e)}))},d=a("b3rg_video_filters",(()=>{document.addEventListener("DOMContentLoaded",(()=>{l.forEach(r),i.forEach(c),document.querySelectorAll(`.${s}--iframe`).forEach((e=>{e.addEventListener("click",(function(e){e.target.classList.contains("btn-playback--play")?n(e):e.target.classList.contains("btn-playback--pause")&&o(e)}))})),document.querySelectorAll(`.${s}--iframe`).forEach(((e,t)=>{e.id=`embed-${t}`,e.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"}))}))}));"function"==typeof d&&d()})()

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.