import { renderSVG as i } from "./utils/render.es.js";
import { scrapeMotionValuesFromProps as n } from "./utils/scrape-motion-values.es.js";
import { makeUseVisualState as s } from "../../motion/utils/use-visual-state.es.js";
import { createSvgRenderState as m } from "./utils/create-render-state.es.js";
import { buildSVGAttrs as l } from "./utils/build-attrs.es.js";
var g = {
  useVisualState: s({
    scrapeMotionValuesFromProps: n,
    createRenderState: m,
    onMount: function(o, e, r) {
      var t = r.renderState, a = r.latestValues;
      try {
        t.dimensions = typeof e.getBBox == "function" ? e.getBBox() : e.getBoundingClientRect();
      } catch {
        t.dimensions = {
          x: 0,
          y: 0,
          width: 0,
          height: 0
        };
      }
      l(t, a, { enableHardwareAcceleration: !1 }, o.transformTemplate), i(e, t);
    }
  })
};
export {
  g as svgMotionConfig
};
//# sourceMappingURL=config-motion.es.js.map
