{"ast":null,"code":"function _extends() {\n  _extends = Object.assign || function (target) {\n    for (var i = 1; i < arguments.length; i++) {\n      var source = arguments[i];\n\n      for (var key in source) {\n        if (Object.prototype.hasOwnProperty.call(source, key)) {\n          target[key] = source[key];\n        }\n      }\n    }\n\n    return target;\n  };\n\n  return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n  if (source == null) return {};\n  var target = {};\n  var sourceKeys = Object.keys(source);\n  var key, i;\n\n  for (i = 0; i < sourceKeys.length; i++) {\n    key = sourceKeys[i];\n    if (excluded.indexOf(key) >= 0) continue;\n    target[key] = source[key];\n  }\n\n  return target;\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n  subClass.prototype = Object.create(superClass.prototype);\n  subClass.prototype.constructor = subClass;\n\n  _setPrototypeOf(subClass, superClass);\n}\n\nfunction _setPrototypeOf(o, p) {\n  _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n    o.__proto__ = p;\n    return o;\n  };\n\n  return _setPrototypeOf(o, p);\n}\n\nimport * as React from 'react';\nimport View from \"../View\";\n\nvar KeyboardAvoidingView = function (_React$Component) {\n  _inheritsLoose(KeyboardAvoidingView, _React$Component);\n\n  function KeyboardAvoidingView() {\n    var _this;\n\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n\n    _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n    _this.frame = null;\n\n    _this.onLayout = function (event) {\n      _this.frame = event.nativeEvent.layout;\n    };\n\n    return _this;\n  }\n\n  var _proto = KeyboardAvoidingView.prototype;\n\n  _proto.relativeKeyboardHeight = function relativeKeyboardHeight(keyboardFrame) {\n    var frame = this.frame;\n\n    if (!frame || !keyboardFrame) {\n      return 0;\n    }\n\n    var keyboardY = keyboardFrame.screenY - (this.props.keyboardVerticalOffset || 0);\n    return Math.max(frame.y + frame.height - keyboardY, 0);\n  };\n\n  _proto.onKeyboardChange = function onKeyboardChange(event) {};\n\n  _proto.render = function render() {\n    var _this$props = this.props,\n        behavior = _this$props.behavior,\n        contentContainerStyle = _this$props.contentContainerStyle,\n        keyboardVerticalOffset = _this$props.keyboardVerticalOffset,\n        rest = _objectWithoutPropertiesLoose(_this$props, [\"behavior\", \"contentContainerStyle\", \"keyboardVerticalOffset\"]);\n\n    return React.createElement(View, _extends({\n      onLayout: this.onLayout\n    }, rest));\n  };\n\n  return KeyboardAvoidingView;\n}(React.Component);\n\nexport default KeyboardAvoidingView;","map":{"version":3,"sources":["/Users/rohitsingh/Documents/projects/new-nativebase-setup/NativeBase/example/node_modules/react-native-web/dist/exports/KeyboardAvoidingView/index.js"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","_inheritsLoose","subClass","superClass","create","constructor","_setPrototypeOf","o","p","setPrototypeOf","__proto__","React","View","KeyboardAvoidingView","_React$Component","_this","_len","args","Array","_key","concat","frame","onLayout","event","nativeEvent","layout","_proto","relativeKeyboardHeight","keyboardFrame","keyboardY","screenY","props","keyboardVerticalOffset","Math","max","y","height","onKeyboardChange","render","_this$props","behavior","contentContainerStyle","rest","createElement","Component"],"mappings":"AAAA,SAASA,QAAT,GAAoB;AAAEA,EAAAA,QAAQ,GAAGC,MAAM,CAACC,MAAP,IAAiB,UAAUC,MAAV,EAAkB;AAAE,SAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGC,SAAS,CAACC,MAA9B,EAAsCF,CAAC,EAAvC,EAA2C;AAAE,UAAIG,MAAM,GAAGF,SAAS,CAACD,CAAD,CAAtB;;AAA2B,WAAK,IAAII,GAAT,IAAgBD,MAAhB,EAAwB;AAAE,YAAIN,MAAM,CAACQ,SAAP,CAAiBC,cAAjB,CAAgCC,IAAhC,CAAqCJ,MAArC,EAA6CC,GAA7C,CAAJ,EAAuD;AAAEL,UAAAA,MAAM,CAACK,GAAD,C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AACE,OAAd,IAAyB,KAAKC,KAAL,CAAWC,sBAAX,IAAqC,CAA9D,CAAhB;AACA,WAAOC,IAAI,CAACC,GAAL,CAASb,KAAK,CAACc,CAAN,GAAUd,KAAK,CAACe,MAAhB,GAAyBP,SAAlC,EAA6C,CAA7C,CAAP;AACD,GATD;;AAWAH,EAAAA,MAAM,CAACW,gBAAP,GAA0B,SAASA,gBAAT,CAA0Bd,KAA1B,EAAiC,CAAE,CAA7D;;AAEAG,EAAAA,MAAM,CAACY,MAAP,GAAgB,SAASA,MAAT,GAAkB;AAChC,QAAIC,WAAW,GAAG,KAAKR,KAAvB;AAAA,QACIS,QAAQ,GAAGD,WAAW,CAACC,QAD3B;AAAA,QAEIC,qBAAqB,GAAGF,WAAW,CAACE,qBAFxC;AAAA,QAGIT,sBAAsB,GAAGO,WAAW,CAACP,sBAHzC;AAAA,QAIIU,IAAI,GAAG9C,6BAA6B,CAAC2C,WAAD,EAAc,CAAC,UAAD,EAAa,uBAAb,EAAsC,wBAAtC,CAAd,CAJxC;;AAMA,WAAoB5B,KAAK,CAACgC,aAAN,CAAoB/B,IAApB,EAA0B7B,QAAQ,CAAC;AACrDuC,MAAAA,QAAQ,EAAE,KAAKA;AADsC,KAAD,EAEnDoB,IAFmD,CAAlC,CAApB;AAGD,GAVD;;AAYA,SAAO7B,oBAAP;AACD,CAhDuC,CAgDtCF,KAAK,CAACiC,SAhDgC,CAAxC;;AAkDA,eAAe/B,oBAAf","sourcesContent":["function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n/**\n * Copyright (c) Nicolas Gallagher.\n * Copyright (c) Facebook, Inc. and its affiliates.\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 * as React from 'react';\nimport View from '../View';\n\nvar KeyboardAvoidingView = /*#__PURE__*/function (_React$Component) {\n  _inheritsLoose(KeyboardAvoidingView, _React$Component);\n\n  function KeyboardAvoidingView() {\n    var _this;\n\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n\n    _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n    _this.frame = null;\n\n    _this.onLayout = function (event) {\n      _this.frame = event.nativeEvent.layout;\n    };\n\n    return _this;\n  }\n\n  var _proto = KeyboardAvoidingView.prototype;\n\n  _proto.relativeKeyboardHeight = function relativeKeyboardHeight(keyboardFrame) {\n    var frame = this.frame;\n\n    if (!frame || !keyboardFrame) {\n      return 0;\n    }\n\n    var keyboardY = keyboardFrame.screenY - (this.props.keyboardVerticalOffset || 0);\n    return Math.max(frame.y + frame.height - keyboardY, 0);\n  };\n\n  _proto.onKeyboardChange = function onKeyboardChange(event) {};\n\n  _proto.render = function render() {\n    var _this$props = this.props,\n        behavior = _this$props.behavior,\n        contentContainerStyle = _this$props.contentContainerStyle,\n        keyboardVerticalOffset = _this$props.keyboardVerticalOffset,\n        rest = _objectWithoutPropertiesLoose(_this$props, [\"behavior\", \"contentContainerStyle\", \"keyboardVerticalOffset\"]);\n\n    return /*#__PURE__*/React.createElement(View, _extends({\n      onLayout: this.onLayout\n    }, rest));\n  };\n\n  return KeyboardAvoidingView;\n}(React.Component);\n\nexport default KeyboardAvoidingView;"]},"metadata":{},"sourceType":"module"}