Liferay.Loader.define("@liferay/comment-taglib@4.0.29/discussion/js/components/ReplyPopover",["module","exports","require","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/layout","@frontend-taglib-clay$clayui/popover","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../hooks/useOnClickOutside","./UserIcon","../../css/main.scss"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=c(r("@frontend-taglib-clay$clayui/icon")),n=c(r("@frontend-taglib-clay$clayui/layout")),l=c(r("@frontend-taglib-clay$clayui/popover")),o=(c(r("liferay!frontend-js-react-web$prop-types")),function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=a?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(r,n,l):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"))),i=c(r("../hooks/useOnClickOutside")),s=c(r("./UserIcon"));function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){return e&&e.__esModule?e:{default:e}}r("../../css/main.scss");var f=function({ariaLabel:e,contentHTML:t,href:r="#",portraitURL:u,time:c,userId:f,username:d}){const[p,y]=(0,o.useState)(!1);return(0,i.default)([".lfr-discussion-reply-popover",".lfr-discussion-parent-link"],(()=>y(!1))),o.default.createElement(l.default,{alignPosition:Liferay.Browser.isMobile()?"top-left":"top",className:"lfr-discussion-reply-popover",header:o.default.createElement(n.default.ContentRow,{noGutters:"x",padded:!0},o.default.createElement(n.default.ContentCol,null,o.default.createElement(s.default,{fullName:d,portraitURL:u,userId:f})),o.default.createElement(n.default.ContentCol,{expand:!0},o.default.createElement("div",{className:"username"},d),o.default.createElement("div",{className:"font-weight-normal text-secondary"},c))),onShowChange:y,show:p,trigger:o.default.createElement("a",{"aria-label":e,className:"lfr-discussion-parent-link",href:r,onClick:e=>{e.preventDefault(),y((e=>!e))}},o.default.createElement(a.default,{className:"inline-item inline-item-before",small:"true",symbol:"redo"}),d)},o.default.createElement("div",{dangerouslySetInnerHTML:{__html:t}}))};t.default=f}}));
//# sourceMappingURL=ReplyPopover.js.map