(self.webpackChunk_vtex_sales_app=self.webpackChunk_vtex_sales_app||[]).push([[260],{65019:function(e,n,t){"use strict";t.r(n),t.d(n,{OrderPlacedScreen:function(){return a}});var u=t(2784),r=t(50657),c=t(5493),o=t(91689),i=t(42982),a=function(){var e,n=(0,i.useHistory)(),t=!(null===(e=n.location.state)||void 0===e||!e.redirectToHome),a=function(){return t?((0,r.PO)(),n.push("/")):n.goBack()};return(0,u.useEffect)((function(){if(t){var e=n.listen((function(e,n){"POP"===n&&a()}));return function(){setTimeout((function(){return e()}),1)}}return function(){}}),[t]),u.createElement(c.e$,null,u.createElement(o.BackButton,{onClick:function(e){e.preventDefault(),a()}}))}}}]);
//# sourceMappingURL=OrderPlacedScreen-39f37cfa3ac178049d5f.js.map