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 datatablesCssUrl = "/wdn/templates_6.1/css/components-js/_datatables.css?v=6.1.1";
let isInitialized = !1;
const pluginType = "other";
function getIsInitialized() {
  return isInitialized;
}
__name(getIsInitialized, "getIsInitialized");
function getPluginType() {
  return pluginType;
}
__name(getPluginType, "getPluginType");
async function initialize(options = {}) {
  if ("jQuery" in options)
    return await loadStyleSheet(datatablesCssUrl), await fakeDefine(options.jQuery), options.jQuery;
  if (isInitialized)
    return window.jQuery;
  isInitialized = !0, await loadStyleSheet(datatablesCssUrl);
  const { default: jQuery } = await import("../lib/jquery.js?v=6.1.1");
  return await fakeDefine(jQuery), jQuery;
}
__name(initialize, "initialize");
async function fakeDefine(jQuery) {
  const oldDefine = window.define;
  window.define = (deps, factory) => {
    typeof factory == "function" && factory(jQuery);
  }, window.define.amd = !0, await import("../lib/datatables.js?v=6.1.1"), window.define = oldDefine;
}
__name(fakeDefine, "fakeDefine");
export {
  getIsInitialized,
  getPluginType,
  initialize
};
//# sourceMappingURL=plugin.datatables.js.map
