Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.179/page_editor/plugins/comments/components/CommentsSidebar",["module","exports","require","frontend-js-components-web","liferay!frontend-js-react-web$react","../../../app/config/constants/highlightedCommentIdKey","../../../app/config/constants/layoutDataItemTypes","../../../app/contexts/ControlsContext","../../../app/contexts/StoreContext","./FragmentComments","./FragmentEntryLinksWithComments"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function CommentsSidebar(){const e=(0,s.useActiveItemId)(),[t]=(0,o.useSessionState)(r.HIGHLIGHTED_COMMENT_ID_KEY),n=(0,l.useSelectorCallback)((t=>{const getActiveFragmentEntryLink=e=>{const n=t.layoutData.items[e];if(n){if(n.type===i.LAYOUT_DATA_ITEM_TYPES.fragment)return t.fragmentEntryLinks[n.config.fragmentEntryLinkId]||null;if(n.parentId)return getActiveFragmentEntryLink(n.parentId)}return null};return getActiveFragmentEntryLink(e)}),[e,t]);return a.default.createElement("div",{className:"d-flex flex-column",onMouseDown:e=>e.nativeEvent.stopImmediatePropagation()},n?a.default.createElement(u.default,{fragmentEntryLink:n}):a.default.createElement(m.default,null))};var o=n("frontend-js-components-web"),a=_interopRequireDefault(n("liferay!frontend-js-react-web$react")),r=n("../../../app/config/constants/highlightedCommentIdKey"),i=n("../../../app/config/constants/layoutDataItemTypes"),s=n("../../../app/contexts/ControlsContext"),l=n("../../../app/contexts/StoreContext"),u=_interopRequireDefault(n("./FragmentComments")),m=_interopRequireDefault(n("./FragmentEntryLinksWithComments"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=CommentsSidebar.js.map