1var __defProp = Object.defineProperty; 2var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 }); 3import { l as loadStyleSheet } from "../chunks/chunk.dcf-utility.js?v=6.1.6"; 4const autoplayVideosCssUrl = "/wdn/templates_6.1/css/components-js/_autoplay-videos.css?v=6.1.6"; 5let UNLAutoplayVideoToggle = null; 6const querySelector = ".dcf-autoplay-video:not(.dcf-autoplay-video-initialized)", pluginType = "multi", pluginLoadAfterWatch = !1; 7let isInitialized = !1, initializationPromise = null; 8function getQuerySelector() { 9 return querySelector; 10} 11__name(getQuerySelector, "getQuerySelector"); 12function getPluginType() { 13 return pluginType; 14} 15__name(getPluginType, "getPluginType"); 16function getPluginLoadAfterWatch() { 17 return pluginLoadAfterWatch; 18} 19__name(getPluginLoadAfterWatch, "getPluginLoadAfterWatch"); 20function getIsInitialized() { 21 return isInitialized; 22} 23__name(getIsInitialized, "getIsInitialized"); 24async function initialize() { 25 return isInitialized ? UNLAutoplayVideoToggle : (initializationPromise !== null || (initializationPromise = (async () => (UNLAutoplayVideoToggle = (await import("../components/component.auto
25play-video.js?v=6.1.6")).default, await loadStyleSheet(autoplayVideosCssUrl), isInitialized = !0, document.dispatchEvent(new CustomEvent("UNLPluginInitialized", { 26 detail: { 27 pluginType, 28 pluginComponent: UNLAutoplayVideoToggle, 29 styleSheetsLoaded: [ 30 autoplayVideosCssUrl 31 ] 32 } 33 })), UNLAutoplayVideoToggle))()), initializationPromise); 34} 35__name(initialize, "initialize"); 36async function loadElement(element, options) { 37 isInitialized || await initialize(); 38 const loadedElement = new UNLAutoplayVideoToggle(element, options); 39 return document.dispatchEvent(new CustomEvent("UNLPluginLoadedElement", { 40 detail: { 41 loadedElement 42 } 43 })), loadedElement; 44} 45__name(loadElement, "loadElement"); 46async function loadElements(elements, options) { 47 return await Promise.all( 48 Array.from(elements).map((element) => loadElement(element, options)) 49 ); 50} 51__name(loadElements, "loadElements"); 52async function loadElementsOnPage(options) { 53 const allAutoplayVideoContainers = document.querySelectorAll(querySelector); 54 return await loadElements(allAutoplayVideoContainers, options); 55} 56__name(loadElementsOnPage, "loadElementsOnPage"); 57export { 58 getIsInitialized, 59 getPluginLoadAfterWatch, 60 getPluginType, 61 getQuerySelector, 62 initialize, 63 loadElement, 64 loadElements, 65 loadElementsOnPage 66}; 67//# sourceMappingURL=plugin.autoplay-video.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.