import{calc as r}from"./calc.js";import{cssVar as s}from"./css-var.js";import{walkObject as a}from"../../../../utils/dist/esm/walk-object.js";function e(){return(e=Object.assign||function(r){for(var s=1;s<arguments.length;s++){var a=arguments[s];for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&(r[e]=a[e])}return r}).apply(this,arguments)}function c(r,s){var e={cssMap:{},cssVars:{}};return a(r,((r,a)=>{var c,[t]=a,i=null!=(c=n[t])?c:n.defaultHandler,{cssVars:o,cssMap:l}=i(a,r,s);Object.assign(e.cssVars,o),Object.assign(e.cssMap,l)})),e}var n={space:(a,c,t)=>{var i=n.defaultHandler(a,c,t),[o,...l]=a,v=o+".-"+l.join("."),f=a.join("-"),{variable:p,reference:u}=s(f,void 0,t.cssVarPrefix),j=r.negate(c),d=r.negate(u);return{cssVars:i.cssVars,cssMap:e({},i.cssMap,{[v]:{value:""+j,var:""+p,varRef:d}})}},defaultHandler:(r,a,e)=>{var c=r.join("."),n=r.join("-"),{variable:t,reference:i}=s(n,void 0,e.cssVarPrefix);return{cssVars:{[t]:a},cssMap:{[c]:{value:a,var:t,varRef:i}}}}};export{c as createThemeVars};
//# sourceMappingURL=create-theme-vars.js.map
