{"ast":null,"code":"import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';\nexport default function createCSSStyleSheet(id) {\n  if (canUseDOM) {\n    var element = document.getElementById(id);\n\n    if (element != null) {\n      return element.sheet;\n    } else {\n      var _element = document.createElement('style');\n\n      _element.setAttribute('id', id);\n\n      var head = document.head;\n\n      if (head) {\n        head.insertBefore(_element, head.firstChild);\n      }\n\n      return _element.sheet;\n    }\n  } else {\n    return null;\n  }\n}","map":{"version":3,"sources":["/Users/nishan/Desktop/oss/responsive-breakpoints/example/node_modules/react-native-web/dist/exports/StyleSheet/createCSSStyleSheet.js"],"names":["canUseDOM","createCSSStyleSheet","id","element","document","getElementById","sheet","_element","createElement","setAttribute","head","insertBefore","firstChild"],"mappings":"AAQA,SAASA,SAAT,QAA0B,+BAA1B;AAEA,eAAe,SAASC,mBAAT,CAA6BC,EAA7B,EAAiC;AAC9C,MAAIF,SAAJ,EAAe;AACb,QAAIG,OAAO,GAAGC,QAAQ,CAACC,cAAT,CAAwBH,EAAxB,CAAd;;AAEA,QAAIC,OAAO,IAAI,IAAf,EAAqB;AAEnB,aAAOA,OAAO,CAACG,KAAf;AACD,KAHD,MAGO;AACL,UAAIC,QAAQ,GAAGH,QAAQ,CAACI,aAAT,CAAuB,OAAvB,CAAf;;AAEAD,MAAAA,QAAQ,CAACE,YAAT,CAAsB,IAAtB,EAA4BP,EAA5B;;AAEA,UAAIQ,IAAI,GAAGN,QAAQ,CAACM,IAApB;;AAEA,UAAIA,IAAJ,EAAU;AACRA,QAAAA,IAAI,CAACC,YAAL,CAAkBJ,QAAlB,EAA4BG,IAAI,CAACE,UAAjC;AACD;;AAED,aAAOL,QAAQ,CAACD,KAAhB;AACD;AACF,GAnBD,MAmBO;AACL,WAAO,IAAP;AACD;AACF","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 { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; // $FlowFixMe: HTMLStyleElement is incorrectly typed - https://github.com/facebook/flow/issues/2696\n\nexport default function createCSSStyleSheet(id) {\n  if (canUseDOM) {\n    var element = document.getElementById(id);\n\n    if (element != null) {\n      // $FlowFixMe: HTMLElement is incorrectly typed\n      return element.sheet;\n    } else {\n      var _element = document.createElement('style');\n\n      _element.setAttribute('id', id);\n\n      var head = document.head;\n\n      if (head) {\n        head.insertBefore(_element, head.firstChild);\n      }\n\n      return _element.sheet;\n    }\n  } else {\n    return null;\n  }\n}"]},"metadata":{},"sourceType":"module"}