import { isKeyframesTarget as s } from "../../animation/utils/is-keyframes-target.es.js";
import { resolveVariant as f } from "./resolve-dynamic-variants.es.js";
import { motionValue as l } from "../../../../../../../motion-dom@12.23.23/node_modules/motion-dom/dist/es/value/index.es.js";
function u(t, o, e) {
  t.hasValue(o) ? t.getValue(o).set(e) : t.addValue(o, l(e));
}
function V(t) {
  return s(t) ? t[t.length - 1] || 0 : t;
}
function p(t, o) {
  const e = f(t, o);
  let { transitionEnd: a = {}, transition: c = {}, ...r } = e || {};
  r = { ...r, ...a };
  for (const n in r) {
    const i = V(r[n]);
    u(t, n, i);
  }
}
export {
  p as setTarget
};
//# sourceMappingURL=setters.es.js.map
