"use strict";exports.__esModule=!0,exports.default=disableWebviewBounce;var _invoker=_interopRequireWildcard(require("./invoker"));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=n?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(i,o,u):i[o]=e[o]}return i.default=e,t&&t.set(e,i),i}function disableWebviewBounce(){return _invoker.default.invoke("disableWebviewBounce",{_apiName:"disableWebviewBounce"})}_invoker.default.registerAPI("disableWebviewBounce",{mobile:function(e,r){var t=r.resolve,i=r.reject,n=r.context,o=r.containerType,u=r.platformType;if(o){u===_invoker.PLATFORM_TYPE_ENUM.ANDROID?n&&n((function(){t()}),(function(){i()}),"ui.webViewBounce","disable",{}):u===_invoker.PLATFORM_TYPE_ENUM.IOS&&n.callHandler("ui.webViewBounce.disable",Object.assign({},{}),(function(e){t(e)}))}else n&&n.call("bounce",{enable:!1},(function(e){t(e)}))}}),disableWebviewBounce.version={ios:"1.3.0"},module.exports=exports.default,module.exports.default=exports.default;