Liferay.Loader.define("frontend-js-web@5.0.31/liferay/util/focus_form_field",["module","exports","require","./get_element","./in_browser_view"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(e=(0,f.default)(e),(0,r.default)(e)){const t=function(e){const t=[];for(;e.parentElement;)e.parentElement.getAttribute("disabled")&&t.push(e.parentElement),e=e.parentElement;return t}(e),n=!e.getAttribute("disabled")&&e.offsetWidth>0&&e.offsetHeight>0&&!t.length,f=e.closest("form");if(!f||n)e.focus();else if(f){const t=f.dataset.fmNamespace+"formReady",n=r=>{f.getAttribute("name")===r.formName&&(e.focus(),Liferay.detach(t,n))};Liferay.on(t,n)}}};var f=o(n("./get_element")),r=o(n("./in_browser_view"));function o(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=focus_form_field.js.map