Liferay.Loader.define("journal-web@5.0.114/js/SelectFolderButton",["module","exports","require","frontend-js-web"],(function(e,t,n){window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function _default({inputName:e,namespace:t,selectFolderURL:n}){const handleSelectFolderButtonClick=()=>(0,o.openSelectionModal)({height:"70vh",iframeBodyCssClass:"",onSelect:n=>{if(n){const l={idString:e,idValue:n.folderId,nameString:"folderName",nameValue:n.folderName};(0,o.selectFolder)(l,t)}},selectEventName:"".concat(t,"selectFolder"),size:"md",title:Liferay.Language.get("select-folder"),url:n}),l=document.getElementById("".concat(t,"selectFolderButton"));if(l)return l.addEventListener("click",handleSelectFolderButtonClick),{dispose(){l.removeEventListener("click",handleSelectFolderButtonClick)}}};var o=n("frontend-js-web")}));
//# sourceMappingURL=SelectFolderButton.js.map