(self.webpackChunk_vtex_sales_app=self.webpackChunk_vtex_sales_app||[]).push([[615],{228:function(e,t,n){"use strict";n.r(t),n.d(t,{CustomScriptLoader:function(){return d}});var s=n(2784),r=n(17609),o=n(71947),a=n(59215),c=n(3953),i=n(87690);function u(e,t){void 0===t&&(t=0);var n=document.createElement("script");n.type="text/javascript",n.src=e,n.addEventListener("error",(function(){return function(e,t){t>0?u(e,t-1):((0,c.Hp)("failed-loading-critical-assets",{context:"Internal",asset:"custom-scripts"}),(0,o.v)().dispatch((0,a.Z9)({message:"Não foi possível carregar algumas funcionalidades desta loja",onRetry:function(){return window.location.reload()}})))}(e,t)}),!1),n.addEventListener("load",(function(){return function(e){i.qP("load.instore-custom",{src:e})}(e)}),!1);var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(n,s)}var l=n(32457),d=function(){return(0,s.useEffect)((function(){window.inStoreIsLoaded=!0,u("/files/checkout-instore-custom.js",4),(0,l.qP)("load.instore")}),[]),s.createElement(r.q,null,s.createElement("link",{href:"/files/checkout-instore-custom.css",rel:"stylesheet",type:"text/css"}))}}}]);
//# sourceMappingURL=CustomScriptLoader-57d7fb72332bca0c2a7e.js.map