"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("../../../value/types/utils/get-as-type.mjs.js"),r=require("../../../value/types/maps/number.mjs.js"),e=require("../../utils/keys-transform.mjs.js"),i=require("../../../animation/utils/is-css-variable.mjs.js"),t=require("./build-transform.mjs.js");exports.buildHTMLStyles=function(n,a,o){const{style:m,vars:u,transformOrigin:l}=n;let f=!1,j=!1;for(const t in a){const n=a[t];if(e.transformProps.has(t))f=!0;else if(i.isCSSVariableName(t))u[t]=n;else{const e=s.getValueAsType(n,r.numberValueTypes[t]);t.startsWith("origin")?(j=!0,l[t]=e):m[t]=e}}if(a.transform||(f||o?m.transform=t.buildTransform(a,n.transform,o):m.transform&&(m.transform="none")),j){const{originX:s="50%",originY:r="50%",originZ:e=0}=l;m.transformOrigin=`${s} ${r} ${e}`}};
//# sourceMappingURL=build-styles.mjs.js.map
