import n from"../../tiny-warning/dist/tiny-warning.esm.js";import{createRule as e}from"../../jss/dist/jss.esm.js";var r=Date.now(),t="fnValues"+r,o="fnStyle"+ ++r;export default function(){return{onCreateRule:function(n,r,t){if("function"!=typeof r)return null;var i=e(n,{},t);return i[o]=r,i},onProcessStyle:function(n,e){if(t in e||o in e)return n;var r={};for(var i in n){var f=n[i];"function"==typeof f&&(delete n[i],r[i]=f)}return e[t]=r,n},onUpdate:function(e,r,i,f){var s=r,u=s[o];if(u&&(s.style=u(e)||{},"development"===process.env.NODE_ENV))for(var a in s.style)if("function"==typeof s.style[a]){"production"!==process.env.NODE_ENV&&n(!1,"[JSS] Function values inside function rules are not supported.");break}var p=s[t];if(p)for(var l in p)s.prop(l,p[l](e),f)}}}
//# sourceMappingURL=jss-plugin-rule-value-function.esm.js.map
