Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.169/page_editor/plugins/comments/components/FragmentComments",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/icon","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../../app/actions/editFragmentEntryLinkComment","../../../app/contexts/ControlsContext","../../../app/contexts/StoreContext","../../../common/components/SidebarPanelHeader","./AddCommentForm","./FragmentComment","./ResolvedCommentsToggle"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function FragmentComments({fragmentEntryLink:e}){const{comments:t=[],fragmentEntryLinkId:n,name:s}=e,p=(0,m.useSelectItem)(),y=(0,i.useDispatch)(),g=(0,i.useSelector)((e=>e.showResolvedComments))?t:t.filter((({resolved:e})=>!e));return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:"flex-shrink-0"},o.default.createElement(u.default,{iconLeft:o.default.createElement(a.default,{"aria-label":Liferay.Language.get("back"),borderless:!0,className:"mr-3 p-0",displayType:"secondary",onClick:()=>p(null),size:"sm"},o.default.createElement(r.default,{symbol:"angle-left"}))},s),o.default.createElement(c.default,null),o.default.createElement(d.default,{fragmentEntryLinkId:n})),o.default.createElement("div",{className:"overflow-auto"},g.map(((e,t)=>{const a=g[g.length-1-t];return o.default.createElement(f.default,{comment:a,fragmentEntryLinkId:n,key:a.commentId,onEdit:e=>y((0,l.default)({fragmentEntryLinkComment:e,fragmentEntryLinkId:n}))})}))))};var a=_interopRequireDefault(n("@frontend-taglib-clay$clayui/button")),r=_interopRequireDefault(n("@frontend-taglib-clay$clayui/icon")),o=(_interopRequireDefault(n("liferay!frontend-js-react-web$prop-types")),_interopRequireDefault(n("liferay!frontend-js-react-web$react"))),l=_interopRequireDefault(n("../../../app/actions/editFragmentEntryLinkComment")),m=n("../../../app/contexts/ControlsContext"),i=n("../../../app/contexts/StoreContext"),u=_interopRequireDefault(n("../../../common/components/SidebarPanelHeader")),d=_interopRequireDefault(n("./AddCommentForm")),f=_interopRequireDefault(n("./FragmentComment")),c=_interopRequireDefault(n("./ResolvedCommentsToggle"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=FragmentComments.js.map