{"ast":null,"code":"\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.default = scrollTop;\n\nvar _isWindow = _interopRequireDefault(require(\"./isWindow\"));\n\nfunction scrollTop(node, val) {\n  var win = (0, _isWindow.default)(node);\n  if (val === undefined) return win ? 'pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft : node.scrollLeft;\n  if (win) win.scrollTo(val, 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop);else node.scrollLeft = val;\n}\n\nmodule.exports = exports[\"default\"];","map":{"version":3,"sources":["/Users/rohitsingh/Documents/projects/new-nativebase-setup/NativeBase/node_modules/@react-native-aria/overlays/node_modules/@react-aria/overlays/node_modules/dom-helpers/query/scrollLeft.js"],"names":["_interopRequireDefault","require","exports","__esModule","default","scrollTop","_isWindow","node","val","win","undefined","pageXOffset","document","documentElement","scrollLeft","scrollTo","pageYOffset","module"],"mappings":"AAAA;;AAEA,IAAIA,sBAAsB,GAAGC,OAAO,CAAC,8CAAD,CAApC;;AAEAC,OAAO,CAACC,UAAR,GAAqB,IAArB;AACAD,OAAO,CAACE,OAAR,GAAkBC,SAAlB;;AAEA,IAAIC,SAAS,GAAGN,sBAAsB,CAACC,OAAO,cAAR,CAAtC;;AAEA,SAASI,SAAT,CAAmBE,IAAnB,EAAyBC,GAAzB,EAA8B;AAC5B,MAAIC,GAAG,GAAG,CAAC,GAAGH,SAAS,CAACF,OAAd,EAAuBG,IAAvB,CAAV;AACA,MAAIC,GAAG,KAAKE,SAAZ,EAAuB,OAAOD,GAAG,GAAG,iBAAiBA,GAAjB,GAAuBA,GAAG,CAACE,WAA3B,GAAyCF,GAAG,CAACG,QAAJ,CAAaC,eAAb,CAA6BC,UAAzE,GAAsFP,IAAI,CAACO,UAArG;AACvB,MAAIL,GAAJ,EAASA,GAAG,CAACM,QAAJ,CAAaP,GAAb,EAAkB,iBAAiBC,GAAjB,GAAuBA,GAAG,CAACO,WAA3B,GAAyCP,GAAG,CAACG,QAAJ,CAAaC,eAAb,CAA6BR,SAAxF,EAAT,KAAiHE,IAAI,CAACO,UAAL,GAAkBN,GAAlB;AAClH;;AAEDS,MAAM,CAACf,OAAP,GAAiBA,OAAO,CAAC,SAAD,CAAxB","sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.default = scrollTop;\n\nvar _isWindow = _interopRequireDefault(require(\"./isWindow\"));\n\nfunction scrollTop(node, val) {\n  var win = (0, _isWindow.default)(node);\n  if (val === undefined) return win ? 'pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft : node.scrollLeft;\n  if (win) win.scrollTo(val, 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop);else node.scrollLeft = val;\n}\n\nmodule.exports = exports[\"default\"];"]},"metadata":{},"sourceType":"script"}