Liferay.Loader.define("frontend-js-web@5.0.45/liferay/layout_exporter.es",["module","exports","require"],(function(e,t,a){window;Object.defineProperty(t,"__esModule",{value:!0}),t.hideLayoutPane=function(e){var t=(e=e||{}).obj,a=e.pane;t&&t.checked&&(a=document.querySelector(a))&&a.classList.add("hide")},t.getLayoutIcons=function(){return{minus:themeDisplay.getPathThemeImages()+"/arrows/01_minus.png",plus:themeDisplay.getPathThemeImages()+"/arrows/01_plus.png"}},t.proposeLayout=function(e){var t=(e=e||{}).namespace,a=e.reviewers,r='<div><form action="'+e.url+'" method="post">';if(a.length>0){r+='<textarea name="'+t+'description" style="height: 100px; width: 284px;"></textarea><br /><br />'+Liferay.Language.get("reviewer")+' <select name="'+t+'reviewUserId">';for(var i=0;i<a.length;i++)r+='<option value="'+a[i].userId+'">'+a[i].fullName+"</option>";r+='</select><br /><br /><input type="submit" value="'+Liferay.Language.get("proceed")+'" />'}else r+=Liferay.Language.get("no-reviewers-were-found")+"<br />"+Liferay.Language.get("please-contact-the-administrator-to-assign-reviewers")+"<br /><br />";r+="</form></div>",Liferay.Util.openWindow({dialog:{destroyOnHide:!0},title:r})},t.publishToLive=function(e){e=e||{},Liferay.Util.openWindow({dialog:{constrain:!0,modal:!0,on:{visibleChange(e){e.newVal||this.destroy()}}},title:e.title,uri:e.url})},t.showLayoutPane=function(e){var t=(e=e||{}).obj,a=e.pane;t&&t.checked&&(a=document.querySelector(a))&&a.classList.remove("hide")},t.toggleLayoutDetails=function(e){e=e||{};var t=document.querySelector(e.detail),a=document.querySelector(e.toggle);if(t&&a){var r=themeDisplay.getPathThemeImages()+"/arrows/01_plus.png";t.classList.contains("hide")?(t.classList.remove("hide"),r=themeDisplay.getPathThemeImages()+"/arrows/01_minus.png"):t.classList.add("hide"),a.setAttribute("src",r)}}}));
//# sourceMappingURL=layout_exporter.es.js.map