import { sortTransformProps as u } from "./transform.es.js";
var p = {
  x: "translateX",
  y: "translateY",
  z: "translateZ",
  transformPerspective: "perspective"
};
function Z(n, o, e, t) {
  var i = n.transform, a = n.transformKeys, s = o.enableHardwareAcceleration, m = s === void 0 ? !0 : s, l = o.allowTransformNone, d = l === void 0 ? !0 : l, r = "";
  a.sort(u);
  for (var v = !1, g = a.length, f = 0; f < g; f++) {
    var c = a[f];
    r += "".concat(p[c] || c, "(").concat(i[c], ") "), c === "z" && (v = !0);
  }
  return !v && m ? r += "translateZ(0)" : r = r.trim(), t ? r = t(i, e ? "" : r) : d && e && (r = "none"), r;
}
function b(n) {
  var o = n.originX, e = o === void 0 ? "50%" : o, t = n.originY, i = t === void 0 ? "50%" : t, a = n.originZ, s = a === void 0 ? 0 : a;
  return "".concat(e, " ").concat(i, " ").concat(s);
}
export {
  Z as buildTransform,
  b as buildTransformOrigin
};
//# sourceMappingURL=build-transform.es.js.map
