Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/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({fragmentEntryLink:e}){const{comments:t=[],fragmentEntryLinkId:n,name:u}=e,p=(0,m.useSelectItem)(),y=(0,d.useDispatch)(),g=(0,d.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(c.default,null,o.default.createElement(a.default,{borderless:!0,className:"mr-3 p-0 text-dark",displayType:"secondary",onClick:()=>p(null),small:!0},o.default.createElement(l.default,{symbol:"angle-left"})),o.default.createElement("span",null,u)),o.default.createElement(i.default,null),o.default.createElement(s.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,r.default)({fragmentEntryLinkComment:e,fragmentEntryLinkId:n}))})}))))};var a=u(n("@frontend-taglib-clay$clayui/button")),l=u(n("@frontend-taglib-clay$clayui/icon")),o=(u(n("liferay!frontend-js-react-web$prop-types")),u(n("liferay!frontend-js-react-web$react"))),r=u(n("../../../app/actions/editFragmentEntryLinkComment")),m=n("../../../app/contexts/ControlsContext"),d=n("../../../app/contexts/StoreContext"),c=u(n("../../../common/components/SidebarPanelHeader")),s=u(n("./AddCommentForm")),f=u(n("./FragmentComment")),i=u(n("./ResolvedCommentsToggle"));function u(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=FragmentComments.js.map