"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/vite-plugin.ts
var vite_plugin_exports = {};
__export(vite_plugin_exports, {
  VpAutoImports: () => VpAutoImports,
  VpComponentsResolver: () => VpComponentsResolver
});
module.exports = __toCommonJS(vite_plugin_exports);
var VpAutoImports = {
  "el-admin-components": ["useForm", "useMenu", "useAudioPlayer", "useDrag"]
};
var VpComponentsResolver = [
  {
    type: "component",
    resolve: (componentName) => {
      if (componentName.startsWith("Vp"))
        return { name: componentName, from: "el-admin-components" };
    }
  },
  {
    type: "directive",
    resolve: (name) => {
      const directives = {
        Copy: { importName: "VpDirectiveCopy" },
        Debounce: { importName: "VpDirectiveDebounce" },
        Draggable: { importName: "VpDirectiveDraggable" },
        Flash: { importName: "VpDirectiveFlash" },
        LongPress: { importName: "VpDirectiveLongPress" },
        ScrollText: { importName: "VpDirectiveScrollText" },
        Throttle: { importName: "VpDirectiveThrottle" },
        WaterMarker: { importName: "VpDirectiveWaterMarker" }
      };
      if (!directives[name])
        return;
      return {
        name: directives[name].importName,
        from: "el-admin-components"
      };
    }
  }
];
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  VpAutoImports,
  VpComponentsResolver
});
