import { isForcedMotionValue } from "../../../motion/utils/is-forced-motion-value.js";
import { isMotionValue } from "../../../../../../motion-dom/dist/es/value/utils/is-motion-value.js";
function scrapeMotionValuesFromProps(props, prevProps, visualElement) {
  const { style } = props;
  const newValues = {};
  for (const key in style) {
    if (isMotionValue(style[key]) || prevProps.style && isMotionValue(prevProps.style[key]) || isForcedMotionValue(key, props) || visualElement?.getValue(key)?.liveStyle !== void 0) {
      newValues[key] = style[key];
    }
  }
  return newValues;
}
export {
  scrapeMotionValuesFromProps
};
//# sourceMappingURL=scrape-motion-values.js.map
