{"ast":null,"code":"export default function isSelectionValid() {\n  var selection = window.getSelection();\n  var string = selection.toString();\n  var anchorNode = selection.anchorNode;\n  var focusNode = selection.focusNode;\n  var isTextNode = anchorNode && anchorNode.nodeType === window.Node.TEXT_NODE || focusNode && focusNode.nodeType === window.Node.TEXT_NODE;\n  return string.length >= 1 && string !== '\\n' && isTextNode;\n}","map":{"version":3,"sources":["/Users/nishan/Desktop/oss/responsive-breakpoints/example/node_modules/react-native-web/dist/modules/isSelectionValid/index.js"],"names":["isSelectionValid","selection","window","getSelection","string","toString","anchorNode","focusNode","isTextNode","nodeType","Node","TEXT_NODE","length"],"mappings":"AAQA,eAAe,SAASA,gBAAT,GAA4B;AACzC,MAAIC,SAAS,GAAGC,MAAM,CAACC,YAAP,EAAhB;AACA,MAAIC,MAAM,GAAGH,SAAS,CAACI,QAAV,EAAb;AACA,MAAIC,UAAU,GAAGL,SAAS,CAACK,UAA3B;AACA,MAAIC,SAAS,GAAGN,SAAS,CAACM,SAA1B;AACA,MAAIC,UAAU,GAAGF,UAAU,IAAIA,UAAU,CAACG,QAAX,KAAwBP,MAAM,CAACQ,IAAP,CAAYC,SAAlD,IAA+DJ,SAAS,IAAIA,SAAS,CAACE,QAAV,KAAuBP,MAAM,CAACQ,IAAP,CAAYC,SAAhI;AACA,SAAOP,MAAM,CAACQ,MAAP,IAAiB,CAAjB,IAAsBR,MAAM,KAAK,IAAjC,IAAyCI,UAAhD;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 */\nexport default function isSelectionValid() {\n  var selection = window.getSelection();\n  var string = selection.toString();\n  var anchorNode = selection.anchorNode;\n  var focusNode = selection.focusNode;\n  var isTextNode = anchorNode && anchorNode.nodeType === window.Node.TEXT_NODE || focusNode && focusNode.nodeType === window.Node.TEXT_NODE;\n  return string.length >= 1 && string !== '\\n' && isTextNode;\n}"]},"metadata":{},"sourceType":"module"}