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