Liferay.Loader.define("@liferay/notification-web@1.0.35/js/components/FDSPropsTransformer/NotificationQueueEntryToDataRenderer",["module","exports","require","@frontend-taglib-clay$clayui/popover","liferay!frontend-js-react-web$react"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationQueueEntryToDataRenderer=function NotificationQueueEntryToDataRenderer({value:e}){const[t,r]=(0,a.useState)(!1);return a.default.createElement(n.default,{"data-testid":"clayPopover",disableScroll:!0,header:Liferay.Language.get("to"),onShowChange:r,show:t,style:{width:256},trigger:a.default.createElement("span",{className:"ddm-tooltip",onMouseOut:()=>r(!1),onMouseOver:()=>r(!0)},e.length>25?e.slice(0,25).trim()+"...":e)},getToTooltipText(e))};var n=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(r("@frontend-taglib-clay$clayui/popover")),a=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={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=n?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}const getToTooltipText=e=>{const t=e.split(","),r=t.length>1?t.pop():null;return t.length>1?"".concat(t.join(",")," ").concat(Liferay.Language.get("and").toLocaleLowerCase()," ").concat(r,"."):e}}}));
//# sourceMappingURL=NotificationQueueEntryToDataRenderer.js.map