"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../store/index.js");require("react");var t=require("../../utils/genericFunctions/eventDispatch.js");require("../../node_modules/tslib/tslib.es6.js"),exports.backToPreviousView=function(){var s=e.store.getState().island,i=s.view,r=s.previousView;t.eventDispatch("phone-island-call-".concat(i,"-closed"),{}),e.store.dispatch.island.setIslandView("".concat(r||"call"))},exports.xPosition=function(e,t,s){var i=s.offsetWidth/2-t.offsetWidth/2;return e>0&&e>i?i:e<0&&e<-i?-i:e},exports.yPosition=function(e,t,s){var i=s.offsetHeight/2-t.offsetHeight/2;return e>0&&e>i?i:e<0&&e<-i?-i:e};
//# sourceMappingURL=island.js.map
