Liferay.Loader.define("knowledge-base-web@5.0.60/admin/js/components/NavigationPanel",["module","exports","require","@frontend-taglib-clay$clayui/core","@frontend-taglib-clay$clayui/icon","liferay!frontend-js-react-web$classnames","frontend-js-web","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","./ActionsDropdown"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({items:t,selectedItemId:a}){const d=(e,t)=>{e.defaultPrevented||(e.stopPropagation(),e.preventDefault(),(0,i.navigate)(t.href))};return o.default.createElement(n.TreeView,{defaultItems:t,defaultSelectedKeys:new Set([a]),nestedKey:"children",showExpanderOnHover:!1},(t=>o.default.createElement(n.TreeView.Item,{actions:(0,c.default)({actions:t.actions}),onClick:e=>{d(e,t)}},o.default.createElement(n.TreeView.ItemStack,{className:(0,l.default)({"knowledge-base-navigation-item-active":t.id===a})},o.default.createElement(r.default,{symbol:e[t.type]}),t.name),o.default.createElement(n.TreeView.Group,{items:t.children},(t=>o.default.createElement(n.TreeView.Item,{actions:(0,c.default)({actions:t.actions}),onClick:e=>{d(e,t)}},o.default.createElement(r.default,{symbol:e[t.type]}),t.name))))))};var n=a("@frontend-taglib-clay$clayui/core"),r=s(a("@frontend-taglib-clay$clayui/icon")),l=s(a("liferay!frontend-js-react-web$classnames")),i=a("frontend-js-web"),d=s(a("liferay!frontend-js-react-web$prop-types")),o=s(a("liferay!frontend-js-react-web$react")),c=s(a("./ActionsDropdown"));function s(e){return e&&e.__esModule?e:{default:e}}const e={article:"document-text",folder:"folder"};const f={href:d.default.string.isRequired,id:d.default.string.isRequired,name:d.default.string.isRequired,type:d.default.oneOf(Object.keys(e)).isRequired};f.children=d.default.arrayOf(d.default.shape(f))}}));
//# sourceMappingURL=NavigationPanel.js.map