Liferay.Loader.define("knowledge-base-web@5.0.98/article/js/PortletConfiguration",["module","exports","require"],(function(e,t,n){window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function PortletConfiguration({eventName:e,namespace:t,selectKBObjectURL:n}){if(document.getElementById("".concat(t,"fm"))){const c=document.getElementById("".concat(t,"selectKBArticleButton")),selectKBArticleButtonClick=()=>{Liferay.Util.openSelectionModal({onSelect:e=>{if(e){const n=JSON.parse(e.value);document.getElementById("".concat(t,"resourcePrimKey")).value=n.classPK;document.getElementById("".concat(t,"configurationKBObject")).value=n.title}},selectEventName:e,title:Liferay.Language.get("select-article"),url:n})};return c.addEventListener("click",selectKBArticleButtonClick),{dispose(){c.removeEventListener("click",selectKBArticleButtonClick)}}}}}));
//# sourceMappingURL=PortletConfiguration.js.map