Liferay.Loader.define("frontend-js-web@5.0.31/liferay/util/run_scripts_in_element.es",["module","exports","require"],(function(e,t,n){window;{function o(e,t,n,r){const c=e[t],i=()=>{t<e.length-1?o(e,t+1,n,r):n&&setTimeout(n)};c&&(c.type&&"text/javascript"!==c.type?i():(c.remove(),c.src?function(e,t,n){const o=document.createElement("script");o.src=e;const r=function(){o.remove(),t()};o.addEventListener("load",r,{once:!0}),o.addEventListener("error",r,{once:!0}),n?n(o):document.head.appendChild(o)}(c.src,i,r):function(e,t,n){const o=document.createElement("script");o.text=e,n?n(o):document.head.appendChild(o),o.remove(),t()}(c.text,i,r)))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){const r=e.querySelectorAll("script");if(!r.length&&t)return void setTimeout(t);o(r,0,t,n)}}}));
//# sourceMappingURL=run_scripts_in_element.es.js.map