var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
import { l as loadStyleSheet } from "../chunks/chunk.dcf-utility.js?v=6.1.1";
const idmCssUrl = "/wdn/templates_6.1/css/components-js/_idm.css?v=6.1.1";
let UNLIdm = null, idmInstance = null;
const querySelector = ".unl-idm", pluginType = "single", pluginLoadAfterWatch = !1;
let isInitialized = !1;
function getQuerySelector() {
  return querySelector;
}
__name(getQuerySelector, "getQuerySelector");
function getPluginType() {
  return pluginType;
}
__name(getPluginType, "getPluginType");
function getPluginLoadAfterWatch() {
  return pluginLoadAfterWatch;
}
__name(getPluginLoadAfterWatch, "getPluginLoadAfterWatch");
function getIsInitialized() {
  return isInitialized;
}
__name(getIsInitialized, "getIsInitialized");
function isOnPage() {
  return document.querySelector(querySelector) !== null;
}
__name(isOnPage, "isOnPage");
async function initialize(options = {}) {
  return isInitialized ? idmInstance : (isInitialized = !0, document.querySelector(querySelector) === null ? null : (UNLIdm = (await import("../components/component.idm.js?v=6.1.1")).default, await loadStyleSheet(idmCssUrl), idmInstance = new UNLIdm(options), document.dispatchEvent(new CustomEvent("UNLPluginInitialized", {
    detail: {
      pluginType,
      pluginComponent: UNLIdm,
      classInstance: idmInstance,
      styleSheetsLoaded: [
        idmCssUrl
      ]
    }
  })), idmInstance));
}
__name(initialize, "initialize");
export {
  getIsInitialized,
  getPluginLoadAfterWatch,
  getPluginType,
  getQuerySelector,
  initialize,
  isOnPage
};
//# sourceMappingURL=plugin.idm.js.map
