var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
import { d as dialogCssUrl } from "../chunks/chunk._dialogs.js?v=6.1.1";
import { l as loadStyleSheet } from "../chunks/chunk.dcf-utility.js?v=6.1.1";
const searchCssUrl = "/wdn/templates_6.1/css/components-js/_search.css?v=6.1.1";
let UNLSearch = null, searchInstance = null;
const querySelector = ".dcf-search", 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 ? searchInstance : (isInitialized = !0, document.querySelector(querySelector) === null ? null : (UNLSearch = (await import("../components/component.search.js?v=6.1.1")).default, await loadStyleSheet(dialogCssUrl), await loadStyleSheet(searchCssUrl), searchInstance = new UNLSearch(options), document.dispatchEvent(new CustomEvent("UNLPluginInitialized", {
    detail: {
      pluginType,
      pluginComponent: UNLSearch,
      classInstance: searchInstance,
      styleSheetsLoaded: [
        dialogCssUrl,
        searchCssUrl
      ]
    }
  })), searchInstance));
}
__name(initialize, "initialize");
export {
  getIsInitialized,
  getPluginLoadAfterWatch,
  getPluginType,
  getQuerySelector,
  initialize,
  isOnPage
};
//# sourceMappingURL=plugin.search.js.map
