"use strict";exports.__esModule=!0,exports.default=goBack;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 n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function goBack(){return _invoker.default.invoke("h5PageBack",{_apiName:"goBack"})}_invoker.default.registerAPI("h5PageBack",{mobile:function(e,r){var t=r.resolve,n=r.reject,a=r.context,o=r.containerType,i=r.platformType;if(o){i===_invoker.PLATFORM_TYPE_ENUM.ANDROID?a&&a((function(e){_invoker.default.handleBridgeResponse(e,t,n)}),(function(e){_invoker.default.handleBridgeResponse(e,t,n)}),"biz.navigation","goBack",e):i===_invoker.PLATFORM_TYPE_ENUM.IOS&&a.callHandler("biz.navigation.goBack",Object.assign({},e),(function(e){t(e)}))}else a&&a.call("h5PageBack",{_apiName:"goBack"},(function(){t()}))}}),goBack.version={android:"1.3.0",ios:"1.3.9"},module.exports=exports.default,module.exports.default=exports.default;