"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const isForcedMotionValue = require("./dist-es-motion-utils-is-forced-motion-value.cjs");
const isMotionValue = require("./dist-es-value-utils-is-motion-value.cjs");
function scrapeMotionValuesFromProps(props, prevProps, visualElement) {
  var _a;
  const { style } = props;
  const newValues = {};
  for (const key in style) {
    if (isMotionValue.isMotionValue(style[key]) || prevProps.style && isMotionValue.isMotionValue(prevProps.style[key]) || isForcedMotionValue.isForcedMotionValue(key, props) || ((_a = visualElement === null || visualElement === void 0 ? void 0 : visualElement.getValue(key)) === null || _a === void 0 ? void 0 : _a.liveStyle) !== void 0) {
      newValues[key] = style[key];
    }
  }
  return newValues;
}
exports.scrapeMotionValuesFromProps = scrapeMotionValuesFromProps;
//# sourceMappingURL=dist-es-render-html-utils-scrape-motion-values.cjs.map
