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