Liferay.Loader.define("knowledge-base-web@5.0.60/article/js/PortletConfiguration",["module","exports","require"],(function(e,t,n){window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({eventName:e,namespace:t,selectKBObjectURL:n}){if(document.getElementById("".concat(t,"fm"))){const c=document.getElementById("".concat(t,"selectKBArticleButton")),o=()=>{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",o),{dispose(){c.removeEventListener("click",o)}}}}}));
//# sourceMappingURL=PortletConfiguration.js.map