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