{"ast":null,"code":"import unitlessNumbers from \"../../modules/unitlessNumbers\";\nimport normalizeColor from \"../../modules/normalizeColor\";\nvar colorProps = {\n  backgroundColor: true,\n  borderColor: true,\n  borderTopColor: true,\n  borderRightColor: true,\n  borderBottomColor: true,\n  borderLeftColor: true,\n  color: true,\n  shadowColor: true,\n  textDecorationColor: true,\n  textShadowColor: true\n};\nexport default function normalizeValueWithProperty(value, property) {\n  var returnValue = value;\n\n  if ((property == null || !unitlessNumbers[property]) && typeof value === 'number') {\n    returnValue = value + \"px\";\n  } else if (property != null && colorProps[property]) {\n    returnValue = normalizeColor(value);\n  }\n\n  return returnValue;\n}","map":{"version":3,"sources":["/Users/nishan/Desktop/oss/responsive-breakpoints/example/node_modules/react-native-web/dist/exports/StyleSheet/normalizeValueWithProperty.js"],"names":["unitlessNumbers","normalizeColor","colorProps","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","color","shadowColor","textDecorationColor","textShadowColor","normalizeValueWithProperty","value","property","returnValue"],"mappings":"AAQA,OAAOA,eAAP;AACA,OAAOC,cAAP;AACA,IAAIC,UAAU,GAAG;AACfC,EAAAA,eAAe,EAAE,IADF;AAEfC,EAAAA,WAAW,EAAE,IAFE;AAGfC,EAAAA,cAAc,EAAE,IAHD;AAIfC,EAAAA,gBAAgB,EAAE,IAJH;AAKfC,EAAAA,iBAAiB,EAAE,IALJ;AAMfC,EAAAA,eAAe,EAAE,IANF;AAOfC,EAAAA,KAAK,EAAE,IAPQ;AAQfC,EAAAA,WAAW,EAAE,IARE;AASfC,EAAAA,mBAAmB,EAAE,IATN;AAUfC,EAAAA,eAAe,EAAE;AAVF,CAAjB;AAYA,eAAe,SAASC,0BAAT,CAAoCC,KAApC,EAA2CC,QAA3C,EAAqD;AAClE,MAAIC,WAAW,GAAGF,KAAlB;;AAEA,MAAI,CAACC,QAAQ,IAAI,IAAZ,IAAoB,CAACf,eAAe,CAACe,QAAD,CAArC,KAAoD,OAAOD,KAAP,KAAiB,QAAzE,EAAmF;AACjFE,IAAAA,WAAW,GAAGF,KAAK,GAAG,IAAtB;AACD,GAFD,MAEO,IAAIC,QAAQ,IAAI,IAAZ,IAAoBb,UAAU,CAACa,QAAD,CAAlC,EAA8C;AACnDC,IAAAA,WAAW,GAAGf,cAAc,CAACa,KAAD,CAA5B;AACD;;AAED,SAAOE,WAAP;AACD","sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nimport unitlessNumbers from '../../modules/unitlessNumbers';\nimport normalizeColor from '../../modules/normalizeColor';\nvar colorProps = {\n  backgroundColor: true,\n  borderColor: true,\n  borderTopColor: true,\n  borderRightColor: true,\n  borderBottomColor: true,\n  borderLeftColor: true,\n  color: true,\n  shadowColor: true,\n  textDecorationColor: true,\n  textShadowColor: true\n};\nexport default function normalizeValueWithProperty(value, property) {\n  var returnValue = value;\n\n  if ((property == null || !unitlessNumbers[property]) && typeof value === 'number') {\n    returnValue = value + \"px\";\n  } else if (property != null && colorProps[property]) {\n    returnValue = normalizeColor(value);\n  }\n\n  return returnValue;\n}"]},"metadata":{},"sourceType":"module"}