PageSourceSearch

https://boblillypromo.com/wp-content/plugins/the-modifications/bui…/video-popup.js?ver=f7dff765d7797a65a844

js boblillypromo.com collected 2026-10-05 20:52:21 UTC 6,984 bytes, 1 lines download raw bytes

1var e={642(e,t,o){o.a(e,async(e,t)=>{try{var r=o(705),i=o(86),a=o(914),s=o(540),n=o(244),l=e([n]);n=(l.then?(await l)():l)[0];const d=document.getElementById("wp-script-module-data-@the-modifications/video-popup"),p=JSON.parse(d.textContent);(0,n.liveElement)(`a[href^="https://"]:not([href^="${p.site}"]),a[href^="${p.site}"][href$=".mp4"],a[href^="${p.site}"][href$=".webm"]`,e=>{const t=e,o=t.dataset.embedUrl;if(!o)return;const n=new Proxy({iframe:null,link:null,dialog:null,wrapper:null,isOpen:!1,isFirstWatch:!0,videoUrl:o},{set:(e,o,r)=>(e[o]!==r&&(e[o]=r,"isOpen"===o&&e.link&&(e.isOpen?((0,a.h)(e),t.setAttribute("aria-expanded","true")):((0,s.V)(e),t.setAttribute("aria-expanded","false")))),!0)});t.addEventListener("pointerenter",async()=>{await(0,r.h)(),await(0,i.v)(n)}),t.addEventListener("click",async e=>{e.preventDefault(),await(0,r.h)(),await(0,i.v)(n),n.link=t,n.isOpen=!0}),t.hasAttribute("role")||t.setAttribute("role","button"),t.hasAttribute("aria-label")||t.setAttribute("aria-label","Watch video"),t.hasAttribute("aria-haspopup")||t.setAttribute("aria-haspopup","dialog"),t.hasAttribute("aria-expanded")||t.setAttribute("aria-expanded","false"),t.classList.contains("is-video-popup")||t.classList.add("is-video-popup")}),t()}catch(e){t(e)}})},540(e,t,o){function r(e){e.dialog.classList.remove("video-popup_open"),Promise.all([...e.dialog.getAnimations(),...e.dialog?.firstElementChild?.getAnimations()||[]].map(e=>e.finished)).then(()=>{document.documentElement.style.overflow="",document.documentElement.style.scrollbarGutter&&(document.documentElement.style.scrollbarGutter="",e.dialog.style.scrollbarGutter=""),e.dialog.classList.add("video-popup_close"),e.iframe?(e.iframe.setAttribute("src","about:blank"),e.dialog.close(),e.iframe.setAttribute("src",e.videoUrl)):e.video&&(e.video.pause(),e.dialog.close())})}o.d(t,{V:()=>r})},86(e,t,o){let r;o.d(t,{v:()=>a});let i=!1;async function a(e){if(e.dialog)return;const t=document.createElement("button");t.classList.add("video-popup__close-btn"),t.setAttribute("type","button"),t.innerHTML='\n\t\t<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" aria-hidden="true" class="video-popup__close-icon" viewBox="0 0 18 18">\n\t\t\t<path d="M.93 18a.926.926 0 0 1-.654-1.581L16.422.27a.926.926 0 1 1 1.31 1.31L1.584 17.728A.929.929 0 0 1 .929 18Z"/>\n\t\t\t<path d="M17.078 18a.919.919 0 0 1-.654-.272L.275 1.581a.926.926 0 0 1 1.31-1.31L17.732 16.42A.926.926 0 0 1 17.078 18Z"/>\n\t\t</svg>\n\t<span class="video-popup__popup__close-text screen-reader-text">Close</span>',t.addEventListener("click",()=>{e.isOpen=!1});const a=document.createElement("div");if(a.classList.add("video-popup__wrapper"),a.prepend(t),e.videoUrl.endsWith(".mp4")||e.videoUrl.endsWith(".webm")){const t=document.createElement("video");t.classList.add("video-popup__iframe"),t.setAttribute("controls",""),t.setAttribute("preload","none"),e.video=t,a.append(t)}else{const t=document.createElement("iframe");t.classList.add("video-popup__iframe"),t.setAttribute("src",e.videoUrl),t.setAttribute("allowfullscreen",""),e.iframe=t,a.append(t)}const s=document.createElement("dialog");await async function(e){return void 0===window.HTMLDialogElement&&(i||(r=(await o.e(574).then(()=>o(574))).default,i=!0),r.registerDialog(e)),!0}(s),s.classList.add("video-popup"),s.classList.add("video-popup_close"),s.setAttribute("aria-label","Video Popup"),s.append(a),s.addEventListener("close",t=>{e.isOpen&&(t.preventDefault(),t.stopImmediatePropagation(),e.isOpen=!1)}),s.addEventListener("click",t=>{const o=t.target;s!==o&&s.contains(o)||(e.isOpen=!1)}),new MutationObserver(t=>{for(const o of t)"open"===o.attributeName&&e.dialog.open&&(e.isOpen=!0)}).observe(s,{attributes:!0}),e.dialog=s,e.wrapper=a,document.body.appendChild(s)}},705(e,t,o){o.d(t,{h:()=>i});let r=!1;async function i(){return r||(r=o.e(172).then(()=>o(172))),r}},914(e,t,o){function r(e){e.dialog.showModal(),e.dialog.classList.toggle("video-popup_close",!1),e.dialog.focus(),document.documentElement.style.overflow="hidden",window.innerHeight<document.documentElement.scrollHeight&&(document.documentElement.style.scrollbarGutter="stable",e.dialog.style.scrollbarGutter="stable"),Promise.all([...e.dialog.getAnimations(),...e.dialog?.firstElementChild?.getAnimations()||[]].map(e=>e.finished)).then(()=>
1{e.dialog.classList.toggle("video-popup_open",!0),e.video&&(e.video.hasAttribute("src")||e.video.setAttribute("src",e.videoUrl),e.video.play().then())})}o.d(t,{h:()=>r})},244(e){e.exports=import("@the-shared/live-element")}};const t={};function o(r){const i=t[r];if(void 0!==i)return i.exports;const a=t[r]={id:r,exports:{}};return e[r](a,a.exports,o),a.exports}o.m=e,(()=>{const e=Symbol("webpack queues"),t=Symbol("webpack exports"),r=Symbol("webpack error"),i=e=>{e?.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))};o.a=(o,a,s)=>{let n;s&&((n=[]).d=-1);const l=new Set,d=o.exports;let p,c,u;const m=new Promise((e,t)=>{u=t,c=e});m[t]=d,m[e]=e=>(n&&e(n),l.forEach(e),m.catch(e=>{})),o.exports=m,a(o=>{let a;p=(o=>o.map(o=>{if(null!==o&&"object"==typeof o){if(o[e])return o;if(o.then){const a=[];a.d=0,o.then(e=>{s[t]=e,i(a)},e=>{s[r]=e,i(a)});const s={};return s[e]=e=>e(a),s}}const a={};return a[e]=e=>{},a[t]=o,a}))(o);const s=()=>p.map(e=>{if(e[r])throw e[r];return e[t]}),d=new Promise(t=>{a=()=>t(s),a.r=0;const o=e=>e!==n&&!l.has(e)&&(l.add(e),e&&!e.d&&(a.r++,e.push(a)));p.forEach(t=>t[e](o))});return a.r?d:s()},e=>(e?u(m[r]=e):c(d),i(n))),n?.d<0&&(n.d=0)}})(),o.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.cw=e=>{var t;return()=>{if(e){var o=e;e=0,t={exports:{}},o.call(t.exports,t,t.exports)}return t.exports}},o.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var i=t[r++],a=t[r++],s=0===a?{enumerable:!0,value:t[r++]}:{enumerable:!0,get:a};o.o(e,i)||Object.defineProperty(e,i,s)}else for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((t,r)=>(o.f[r](e,t),t),[])),o.miniCssF=e=>{},o.o=(e,t)=>Object.hasOwn(e,t),o.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;if("string"==typeof import.meta.url&&(e=import.meta.url),!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),o.p=e})(),(()=>{const e={172:()=>import("./172.js?ver=413c58f577a60de68c7d"),574:()=>import("./574.js?ver=b5009732f8a049a01ba0")},t={193:0},r=e=>{let{__webpack_esm_ids__:r,__webpack_esm_modules__:i,__webpack_esm_runtime__:a}=e;var s,n,l=0;for(s in i)o.o(i,s)&&(o.m[s]=i[s]);for(a&&a(o);l<r.length;l++)n=r[l],o.o(t,n)&&t[n]&&t[n][0](),t[n]=0};o.f.j=(i,a)=>{let s=o.o(t,i)?t[i]:void 0;if(0!==s)if(s)a.push(s[1]);else{let o=e[i]().then(r,e=>{throw 0!==t[i]&&(t[i]=void 0),e});o=Promise.race([o,new Promise(e=>s=t[i]=[e])]),a.push(s[1]=o)}}})(),o.nc=void 0;let r=o(642);r=await r;

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.