{"version":3,"file":"static/js/npm.jss-plugin-vendor-prefixer.4eccadd8.js","mappings":"qJAwDA,QAjDA,WAQE,SAASA,EAAYC,GACnB,IAAK,IAAIC,KAAQD,EAAO,CACtB,IAAIE,EAAQF,EAAMC,GAElB,GAAa,cAATA,GAAwBE,MAAMC,QAAQF,GACxCF,EAAMC,GAAQC,EAAMG,IAAIN,OAD1B,CAKA,IAAIO,GAAa,EACbC,GAAgB,QAAkBN,GAClCM,GAAiBA,IAAkBN,IAAMK,GAAa,GAC1D,IAAIE,GAAc,EACdC,GAAmB,QAAeF,GAAe,QAAWL,IAC5DO,GAAoBA,IAAqBP,IAAOM,GAAc,IAE9DF,GAAcE,KACZF,UAAmBN,EAAMC,GAC7BD,EAAMO,GAAiBN,GAAQQ,GAAoBP,EAXrD,CAaF,CAEA,OAAOF,CACT,CAWA,MAAO,CACLU,cA1CF,SAAuBC,GACrB,GAAkB,cAAdA,EAAKC,KAAsB,CAC7B,IAAIC,EAASF,EACbE,EAAOC,IAAK,QAAmBD,EAAOC,GACxC,CACF,EAsCEC,eAXF,SAAwBf,EAAOW,GAC7B,MAAkB,UAAdA,EAAKC,KAAyBZ,EAC3BD,EAAYC,EACrB,EASEgB,cAPF,SAAuBd,EAAOD,GAC5B,OAAO,QAAeA,GAAM,QAAWC,KAAWA,CACpD,EAOF,C","sources":["webpack://drbinaryweb/./node_modules/jss-plugin-vendor-prefixer/dist/jss-plugin-vendor-prefixer.esm.js"],"sourcesContent":["import { supportedKeyframes, supportedValue, supportedProperty } from 'css-vendor';\nimport { toCssValue } from 'jss';\n\n/**\n * Add vendor prefix to a property name when needed.\n */\n\nfunction jssVendorPrefixer() {\n function onProcessRule(rule) {\n if (rule.type === 'keyframes') {\n var atRule = rule;\n atRule.at = supportedKeyframes(atRule.at);\n }\n }\n\n function prefixStyle(style) {\n for (var prop in style) {\n var value = style[prop];\n\n if (prop === 'fallbacks' && Array.isArray(value)) {\n style[prop] = value.map(prefixStyle);\n continue;\n }\n\n var changeProp = false;\n var supportedProp = supportedProperty(prop);\n if (supportedProp && supportedProp !== prop) changeProp = true;\n var changeValue = false;\n var supportedValue$1 = supportedValue(supportedProp, toCssValue(value));\n if (supportedValue$1 && supportedValue$1 !== value) changeValue = true;\n\n if (changeProp || changeValue) {\n if (changeProp) delete style[prop];\n style[supportedProp || prop] = supportedValue$1 || value;\n }\n }\n\n return style;\n }\n\n function onProcessStyle(style, rule) {\n if (rule.type !== 'style') return style;\n return prefixStyle(style);\n }\n\n function onChangeValue(value, prop) {\n return supportedValue(prop, toCssValue(value)) || value;\n }\n\n return {\n onProcessRule: onProcessRule,\n onProcessStyle: onProcessStyle,\n onChangeValue: onChangeValue\n };\n}\n\nexport default jssVendorPrefixer;\n"],"names":["prefixStyle","style","prop","value","Array","isArray","map","changeProp","supportedProp","changeValue","supportedValue$1","onProcessRule","rule","type","atRule","at","onProcessStyle","onChangeValue"],"sourceRoot":""}