1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9004],{69004:function(e,s,a){"use strict";a.r(s);var t=a(85893);a(67294);var n=a(93967),i=a.n(n),r=a(48130),l=a(19817),d=a(44536),c=a.n(d),o=a(4164),p=a.n(o);s.default=e=>{var s,a,n;let{content:d,onMessageOpen:o,userPhoto:_,messages:g,switchNewMessage:m,hideMessagesList:u,setSingleChat:v,isLoggedIn:h=!1}=e,x=(e,s)=>{let a;try{a=(0,r.default)((0,l.default)(e),s)}catch(e){a=""}return a},L=()=>{u(),m(!0)},N=e=>{(null==e?void 0:e.isRead)===!1&&o(e),v(e)};return(0,t.jsxs)("div",{className:i()(p().wrapper),children:[(0,t.jsxs)("div",{className:i()(p().titleWrapper),children:[(0,t.jsx)("div",{className:i()(p().title),dangerouslySetInnerHTML:{__html:d.listTitle}}),(0,t.jsx)("div",{className:i()(p().btnWrapper),children:h&&(0,t.jsxs)("a",{className:i()(c().redBtn,c().redBtnFullW),onClick:()=>L(),rel:"noreferrer",style:{cursor:"pointer"},children:[(0,t.jsx)("img",{className:i()(p().btnImage),src:"/img/paper-plane.png"}),(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:"New message"}})]})})]}),h&&(0,t.jsxs)("div",{className:i()(p().noteWrapper),style:{background:null==d?void 0:null===(s=d.note)||void 0===s?void 0:s.bgColor},children:[(0,t.jsx)("img",{className:i()(p().icon),src:null==d?void 0:null===(a=d.note)||void 0===a?void 0:a.icon}),(0,t.jsx)("div",{className:i()(p().text),dangerouslySetInnerHTML:{__html:null==d?void 0:null===(n=d.note)||void 0===n?void 0:n.text}})]}),(0,t.jsx)("div",{className:i()(p().chatWrapper),children:null==g?void 0:g.map((e,s)=>{var a,n;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:i()(p().singleChatWrapper),children:[(0,t.jsxs)("div",{className:i()(p().iconWrapper),children:[(0,t.jsx)("img",{alt:"icon",className:i()(p().icon),onClick:()=>N(e),src:e.isUserStarted&&_?_:e.icon?e.icon:"/img/upchoose.png"}),(null==e?void 0:e.isRead)===!1&&(0,t.jsx)("span",{className:i()(p().outerSpan),children:(0,t.jsx)("span",{className:i()(p().innerSpan)})})]}),(0,t.jsxs)("div",{className:p().textWrapper,onClick:()=>N(e),children:[(0,t.jsx)("div",{className:p().title,children:e.title}),(0,t.jsx)("div",{className:p().content,dangerouslySetInnerHTML:{__html:e.message.length>150?(null===(a=e.message)||void 0===a?void 0:a.substring(0,150))+"...":null===(n=e.message)||void 0===n?void 0:n.substring(0,150)}}),(0,t.jsx)("div",{className:p().date,children:x(e.createdAt?e.createdAt:null==e?void 0:e.updatedAt,"MMMM d, yyyy h:mm a")})]})]}),s<(null==g?void 0:g.length)-1&&(0,t.jsx)("div",{className:i()(p().horizontalLine)})]})})})]})}},4164:function(e){e.exports={titleWrapper:"MessagesList_titleWrapper__33vQd",title:"MessagesList_title__OknQ_",btnWrapper:"MessagesList_btnWrapper__5XD6l",btnImage:"MessagesList_btnImage__wiIHk",noteWrapper:"MessagesList_noteWrapper__ziEmu",icon:"MessagesList_icon__HTntr",text:"MessagesList_text__eglEL",chatWrapper:"MessagesList_chatWrapper__inEZa",horizontalLine:"MessagesList_horizontalLine__LNear",singleChatWrapper:"MessagesList_singleChatWrapper__Afhx1",iconWrapper:"MessagesList_iconWrapper__KTWLb",outerSpan:"MessagesList_outerSpan__GvQ50",innerSpan:"MessagesList_innerSpan__gN4zJ",textWrapper:"MessagesList_textWrapper__dD0L6",content:"MessagesList_content__bY3ZT",date:"MessagesList_date__lqTB_"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.