import { createMotionComponent as e } from "../../motion/index.es.js";
import { warnOnce as a } from "../../../../../../../motion-utils@12.36.0/node_modules/motion-utils/dist/es/warn-once.es.js";
function u(r, c) {
  if (typeof Proxy > "u")
    return e;
  const o = /* @__PURE__ */ new Map(), i = (n, t) => e(n, t, r, c), f = (n, t) => (process.env.NODE_ENV !== "production" && a(!1, "motion() is deprecated. Use motion.create() instead."), i(n, t));
  return new Proxy(f, {
    /**
     * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.
     * The prop name is passed through as `key` and we can use that to generate a `motion`
     * DOM component with that name.
     */
    get: (n, t) => t === "create" ? i : (o.has(t) || o.set(t, e(t, void 0, r, c)), o.get(t))
  });
}
export {
  u as createMotionProxy
};
//# sourceMappingURL=create-proxy.es.js.map
