PageSourceSearch

https://myfahlo.com/cdn/shop/t/219/assets/build-product-social-videos-CNBOzpXz.js

js myfahlo.com collected 2026-09-24 09:23:43 UTC 2,885 bytes, 2 lines download raw bytes

1import{E as b}from"./build-embla-carousel.esm-CMPFBS9o.js";const x=768,A=4,D=()=>{const a=document.querySelectorAll(".product-social-videos__video-container"),f=document.querySelector(".product-social-videos__videos"),u=document.querySelector(".product-social-videos__control.--next"),l=document.querySelector(".product-social-videos__control.--prev");let n;const _={loop:!0,slidesToScroll:1,resize:!0,align:"start",skipSnaps:!0,draggable:!0,breakpoints:{"(max-width: 768px)":{align:"center"}}};function h(){return window.innerWidth>x}function E(){return h()&&a.length<=A}function L(){!f||n||(n=b(f,_))}function q(){n&&(n.destroy(),n=null)}function m(e){u&&(u.hidden=!e),l&&(l.hidden=!e)}function y(){E()?(q(),m(!1)):(L(),m(!0))}if(f){u&&u.addEventListener("click",g),l&&l.addEventListener("click",w),y();let e;window.addEventListener("resize",()=>{clearTimeout(e),e=setTimeout(y,150)})}function g(){n?.scrollNext()}function w(){n?.scrollPrev()}function T(e){const o=e.currentTarget.querySelector("video");o&&o.play()}function k(e){const o=e.currentTarget.querySelector("video");o&&o.pause()}function d(e,o){e&&e.classList.toggle("hidden",!o)}function S(e,o){if(!e)return;const s=e.play();if(s&&typeof s.then=="function"){s.then(()=>{d(o,!1)}).catch(()=>{d(o,!0)});return}d(o,!1)}function C(e){const o=e.currentTarget.querySelector("video"),s=document.getElementById("product-social-video-modal-template");if(s){const v=s.content.cloneNode(!0),t=v.querySelector("video"),p=t?.querySelector("source"),r=v.querySelector(".product-social-videos__modal");p&&(p.src=o.currentSrc||o.src,t.poster=o.poster),document.body.appendChild(v),document.body.style.overflow="hidden",(r?.querySelector(".product-social-videos__modal-close")).addEventListener("click",()=>{r&&(r.remove(),document.body.style.overflow="")});const i=r?.querySelector(".product-social-videos__modal-mute");i.addEventListener("click",()=>{t.muted?(t.muted=!1,i.setAttribute("aria-label","Mute video"),i.querySelector(".product-social-videos__modal-mute-icon").classList.add("hidden"),i.querySelector(".product-social-videos__modal-unmute-icon").classList.remove("hidden")):(t.muted=!0,i.setAttribute("aria-label","Unmute video"),i.querySelector(".product-social-videos__modal-mute-icon").classList.remove("hidden"),i.querySelector(".product-social-videos__modal-unmute-icon").classList.add("hidden"))});const c=r?.querySelector(".product-social-videos__modal-play");c?.addEventListener("click",()=>{S(t,c)}),t?.addEventListener("play",()=>{d(c,!1)}),t?.addEventListener("pause",()=>{t.ended||d(c,!0)}),p&&(t.load(),S(t,c))}}function P(){a&&a.forEach(e=>{window.innerWidth>768&&!("ontouchstart"in window)&&(e.addEventListener("mouseenter",T),e.addEventListener("mouseleave",k)),e.addEventListener("click",C)})}P()};export{D as default};
2//# sourceMappingURL=/cdn/shop/t/219/assets/build-product-social-videos-CNBOzpXz.js.map

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.