{"ast":null,"code":"import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"behavior\", \"contentContainerStyle\", \"keyboardVerticalOffset\"];\nimport * as React from 'react';\nimport View from \"../View\";\nvar KeyboardAvoidingView = function (_React$Component) {\n  _inherits(KeyboardAvoidingView, _React$Component);\n  var _super = _createSuper(KeyboardAvoidingView);\n  function KeyboardAvoidingView() {\n    var _this;\n    _classCallCheck(this, KeyboardAvoidingView);\n    _this = _super.apply(this, arguments);\n    _this.frame = null;\n    _this.onLayout = function (event) {\n      _this.frame = event.nativeEvent.layout;\n    };\n    return _this;\n  }\n  _createClass(KeyboardAvoidingView, [{\n    key: \"relativeKeyboardHeight\",\n    value: function relativeKeyboardHeight(keyboardFrame) {\n      var frame = this.frame;\n      if (!frame || !keyboardFrame) {\n        return 0;\n      }\n      var keyboardY = keyboardFrame.screenY - (this.props.keyboardVerticalOffset || 0);\n      return Math.max(frame.y + frame.height - keyboardY, 0);\n    }\n  }, {\n    key: \"onKeyboardChange\",\n    value: function onKeyboardChange(event) {}\n  }, {\n    key: \"render\",\n    value: 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, _excluded);\n      return React.createElement(View, _extends({\n        onLayout: this.onLayout\n      }, rest));\n    }\n  }]);\n  return KeyboardAvoidingView;\n}(React.Component);\nexport default KeyboardAvoidingView;","map":{"version":3,"names":["_extends","_objectWithoutPropertiesLoose","_excluded","React","View","KeyboardAvoidingView","_React$Component","_inherits","_super","_createSuper","_this","_classCallCheck","apply","arguments","frame","onLayout","event","nativeEvent","layout","_createClass","key","value","relativeKeyboardHeight","keyboardFrame","keyboardY","screenY","props","keyboardVerticalOffset","Math","max","y","height","onKeyboardChange","render","_this$props","behavior","contentContainerStyle","rest","createElement","Component"],"sources":["/Users/Daniel.Antelo/Workspaces/expo-template-reactrouter-nativebase/node_modules/react-native-web/dist/exports/KeyboardAvoidingView/index.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"behavior\", \"contentContainerStyle\", \"keyboardVerticalOffset\"];\n/**\n * Copyright (c) Nicolas Gallagher.\n * Copyright (c) Meta Platforms, Inc. and 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 */\n\nimport * as React from 'react';\nimport View from '../View';\nclass KeyboardAvoidingView extends React.Component {\n  constructor() {\n    super(...arguments);\n    this.frame = null;\n    this.onLayout = event => {\n      this.frame = event.nativeEvent.layout;\n    };\n  }\n  relativeKeyboardHeight(keyboardFrame) {\n    var frame = this.frame;\n    if (!frame || !keyboardFrame) {\n      return 0;\n    }\n    var keyboardY = keyboardFrame.screenY - (this.props.keyboardVerticalOffset || 0);\n    return Math.max(frame.y + frame.height - keyboardY, 0);\n  }\n  onKeyboardChange(event) {}\n  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, _excluded);\n    return /*#__PURE__*/React.createElement(View, _extends({\n      onLayout: this.onLayout\n    }, rest));\n  }\n}\nexport default KeyboardAvoidingView;"],"mappings":";;;;;;;AAAA,OAAOA,QAAQ,MAAM,gCAAgC;AACrD,OAAOC,6BAA6B,MAAM,qDAAqD;AAC/F,IAAIC,SAAS,GAAG,CAAC,UAAU,EAAE,uBAAuB,EAAE,wBAAwB,CAAC;AAW/E,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,IAAI;AAAgB,IACrBC,oBAAoB,aAAAC,gBAAA;EAAAC,SAAA,CAAAF,oBAAA,EAAAC,gBAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,oBAAA;EACxB,SAAAA,qBAAA,EAAc;IAAA,IAAAK,KAAA;IAAAC,eAAA,OAAAN,oBAAA;IACZK,KAAA,GAAAF,MAAA,CAAAI,KAAA,OAASC,SAAS;IAClBH,KAAA,CAAKI,KAAK,GAAG,IAAI;IACjBJ,KAAA,CAAKK,QAAQ,GAAG,UAAAC,KAAK,EAAI;MACvBN,KAAA,CAAKI,KAAK,GAAGE,KAAK,CAACC,WAAW,CAACC,MAAM;IACvC,CAAC;IAAC,OAAAR,KAAA;EACJ;EAACS,YAAA,CAAAd,oBAAA;IAAAe,GAAA;IAAAC,KAAA,EACD,SAAAC,uBAAuBC,aAAa,EAAE;MACpC,IAAIT,KAAK,GAAG,IAAI,CAACA,KAAK;MACtB,IAAI,CAACA,KAAK,IAAI,CAACS,aAAa,EAAE;QAC5B,OAAO,CAAC;MACV;MACA,IAAIC,SAAS,GAAGD,aAAa,CAACE,OAAO,IAAI,IAAI,CAACC,KAAK,CAACC,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