{"version":3,"file":"npm.jss-plugin-camel-case.js","mappings":"8PASA,SAASA,YAAYC,OACnB,IAAIC,UAAY,GAEhB,IAAK,IAAIC,QAAQF,MAAO,CAEtBC,UADiC,IAAvBC,KAAKC,QAAQ,MAAcD,MAAO,uDAAUA,OACrCF,MAAME,MAOzB,OAJIF,MAAMI,YACJC,MAAMC,QAAQN,MAAMI,WAAYH,UAAUG,UAAYJ,MAAMI,UAAUG,IAAIR,aAAkBE,UAAUG,UAAYL,YAAYC,MAAMI,YAGnIH,UA0CT,sBAjCA,SAASO,YA2BP,MAAO,CACLC,eA3BF,SAASA,eAAeT,OACtB,GAAIK,MAAMC,QAAQN,OAAQ,CAExB,IAAK,IAAIU,MAAQ,EAAGA,MAAQV,MAAMW,OAAQD,QACxCV,MAAMU,OAASX,YAAYC,MAAMU,QAGnC,OAAOV,MAGT,OAAOD,YAAYC,QAkBnBY,cAfF,SAASA,cAAcC,MAAOX,KAAMY,MAClC,GAA2B,IAAvBZ,KAAKC,QAAQ,MACf,OAAOU,MAGT,IAAIE,gBAAiB,uDAAUb,MAE/B,OAAIA,OAASa,eAAuBF,OACpCC,KAAKZ,KAAKa,eAAgBF,OAEnB","sources":["webpack://giveeasy.cloud/./node_modules/jss-plugin-camel-case/dist/jss-plugin-camel-case.esm.js"],"sourcesContent":["import hyphenate from 'hyphenate-style-name';\n\n/**\n * Convert camel cased property names to dash separated.\n *\n * @param {Object} style\n * @return {Object}\n */\n\nfunction convertCase(style) {\n var converted = {};\n\n for (var prop in style) {\n var key = prop.indexOf('--') === 0 ? prop : hyphenate(prop);\n converted[key] = style[prop];\n }\n\n if (style.fallbacks) {\n if (Array.isArray(style.fallbacks)) converted.fallbacks = style.fallbacks.map(convertCase);else converted.fallbacks = convertCase(style.fallbacks);\n }\n\n return converted;\n}\n/**\n * Allow camel cased property names by converting them back to dasherized.\n *\n * @param {Rule} rule\n */\n\n\nfunction camelCase() {\n function onProcessStyle(style) {\n if (Array.isArray(style)) {\n // Handle rules like @font-face, which can have multiple styles in an array\n for (var index = 0; index < style.length; index++) {\n style[index] = convertCase(style[index]);\n }\n\n return style;\n }\n\n return convertCase(style);\n }\n\n function onChangeValue(value, prop, rule) {\n if (prop.indexOf('--') === 0) {\n return value;\n }\n\n var hyphenatedProp = hyphenate(prop); // There was no camel case in place\n\n if (prop === hyphenatedProp) return value;\n rule.prop(hyphenatedProp, value); // Core will ignore that property value we set the proper one above.\n\n return null;\n }\n\n return {\n onProcessStyle: onProcessStyle,\n onChangeValue: onChangeValue\n };\n}\n\nexport default camelCase;\n"],"names":["convertCase","style","converted","prop","indexOf","fallbacks","Array","isArray","map","camelCase","onProcessStyle","index","length","onChangeValue","value","rule","hyphenatedProp"],"sourceRoot":""}