PageSourceSearch

https://diasporal.com/cdn/shop/t/5/assets/pause-play-video.js?v=57984945819420713441765882531

js diasporal.com collected 2026-10-10 01:20:59 UTC 4,634 bytes, 2 lines download raw bytes

1(function(){"use strict";function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread()}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}function _iterableToArray(iter){if(typeof Symbol!="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter)}function _unsupportedIterableToArray(o,minLen){if(o){if(typeof o=="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function syncVideoButtonState(e,s,t){e.paused?(s.classList.remove("hidden"),t.classList.add("hidden")):(s.classList.add("hidden"),t.classList.remove("hidden"))}function handleControlInteraction(e){e&&(e.preventDefault(),e.stopPropagation())}function toggleVideo(e,s,t){e.paused?(s.classList.add("hidden"),t.classList.remove("hidden"),e.play()):(s.classList.remove("hidden"),t.classList.add("hidden"),e.pause())}function assignControls(e){var s=e.querySelector(".start_scrolling")||e.parentElement.querySelector(".start_scrolling")||e.closest(".content-over-media").querySelector(".start_scrolling"),t=e.querySelector(".pause_scrolling")||e.parentElement.querySelector(".pause_scrolling")||e.closest(".content-over-media").querySelector(".pause_scrolling"),o=e.querySelector("video");if(s&&t&&o){var l=function(){return syncVideoButtonState(o,s,t)},i=function(e2){handleControlInteraction(e2),toggleVideo(o,s,t)};s.addEventListener("click",i),t.addEventListener("click",i),o.addEventListener("play",l),o.addEventListener("pause",l),l()}}function toggleSlideshowVideos(e,s,t){var o=s.closest("slideshow-carousel").querySelector(".slideshow__slide.is-selected"),l=o?o.querySelector("video"):null;l&&(l.paused?(l.play(),s.classList.add("hidden"),t.classList.remove("hidden")):(l.pause(),s.classList.remove("hidden"),t.classList.add("hidden")))}function updateButtonsVisibility(e,s){var t=e.querySelector(".slideshow__slide.is-selected"),o=e.querySelector(".slideshow__controls .start_scrolling"),l=e.querySelector(".slideshow__controls .pause_scrolling"),i=e.querySelectorAll(".slideshow__slide video"),n=t?t.querySelector("video"):null;i.forEach((function(e2){e2!==n&&e2.pause()})),t&&t.getAttribute("data-slide-type")==="video"&&n?(s.classList.remove("hidden"),o&&l&&(n.paused?(o.classList.remove("hidden"),l.classList.add("hidden")):(o.classList.add("hidden"),l.classList.remove("hidden")))):s.classList.add("hidden")}function observeSlideChanges(e,s){var t=new MutationObserver((function(t2){t2.forEach((function(t3){t3.type==="attributes"&&t3.attributeName==="class"&&t3.target.classList.contains("slideshow__slide")&&updateButtonsVisibility(e,s)}))}));e.querySelectorAll(".slideshow__slide").forEach((function(e2){t.observe(e2,{attributes:!0,attributeFilter:["class"]})})),e.addEventListener("slideshow:change",(function(){updateButtonsVisibility(e,s)}))}function assignSlideshowControls(e){var s=e.querySelector(".slideshow__controls .start_scrolling"),t=e.querySelector(".slideshow__controls .pause_scrolling"),o=e.querySelectorAll(".slideshow__slide video"),l=e.querySelector(".slideshow__controls .scrolling_text_btns");l&&(updateButtonsVisibility(e,l),observeSlideChanges(e,l),s&&t&&o.length>0&&(s.addEventListener("click",(function(e2){handleControlInteraction(e2),toggleSlideshowVideos(o,s,t)})),t.addEventListener("click",(function(e2){handleControlInteraction(e2),toggleSlideshowVideos(o,s,t)}))))}document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelectorAll("video-media[autoplay]"),s=document.querySelectorAll(".slideshow__slide video-media:not(.slideshow__controls)");
1[].concat(_toConsumableArray(e),_toConsumableArray(s)).forEach((function(e2){var s2=e2.closest("slideshow-carousel");s2&&s2.querySelector(".slideshow__controls .start_scrolling")||assignControls(e2)})),document.querySelectorAll('slideshow-carousel[id^="slideshow-"]').forEach((function(e2){assignSlideshowControls(e2)}))}))})();
2//# sourceMappingURL=/cdn/shop/t/5/assets/pause-play-video.js.map?v=57984945819420713441765882531

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.