1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1990],{15749:function(e,i,t){var n=t(26042),o=t(85893),l=t(19238),a=t(15861),s=t(25675),r=t.n(s);t(67294);i.Z=function(e){var i=e.wrapperStyle,t=e.imageWidth,s=void 0===t?200:t,d=e.imageHeight,c=void 0===d?200:d,u=e.text,p=e.children,v=e.textStyle,h=e.src;return(0,o.jsxs)(l.Z,{sx:(0,n.Z)({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},i),children:[(0,o.jsx)(r(),{src:h,height:c,width:s}),u&&(0,o.jsx)(a.Z,{sx:(0,n.Z)({},v),variant:"h5",textAlign:"center",children:u}),p]})}},50499:function(e,i,t){var n=t(26042),o=t(85893),l=t(25935),a=t(44324),s=t(11394),r=t(19238),d=t(15861),c=t(87952),u=t(26447),p=t(86886),v=t(54799),h=t(25675),m=t.n(h),x=t(67294),f=t(14825),g=t(96227),j=t(52521),b=t(77957),y=t(69858),w=t(47164);i.Z=function(e){var i,t,h,Z=e.list,_=void 0===Z?[]:Z,k=e.wordStyle,C=e.getFileSrc,S=e.highlightList,F=e.tagUser,B=void 0!==F&&F,z=e.handleDelete,R=e.handleEdit,D=e.disableDelete,I=void 0!==D&&D,K=e.disableEdit,P=void 0!==K&&K,E=e.nameKey,N=e.getFileName,U=e.mediaKey,T=e.imageUrlKey,M=e.videoUrlKey,H=e.textKey,A=e.downloadKey,L=(e.fileUrlKey,e.noDataText,e.handleRemove),G=e.type,V=e.scrollToBottom,W=e.wrapperStyle,Y=e.isDrawer,q=e.boxStyle,J=(0,x.useRef)(null),O=(0,y.I)().userProfile,Q=function(e){var i,t=e.media_type?e.media_type:null!==(i=e.type)&&void 0!==i?i:G;switch(t){case"image/jpeg":case"image/jpg":case"image/gif":case"image/png":case"image":var s,c,u,p,v=null!==(p=null!==(u=e[T])&&void 0!==u?u:C&&C(e))&&void 0!==p?p:e[U];e[A];return(0,o.jsx)(r.Z,{sx:{backgroundColor:a.lB.black,borderRadius:"6px",width:Y?120:200,height:Y?80:150},children:(0,o.jsx)("img",{width:Y?120:200,height:Y?80:150,loading:"lazy",src:(null===e||void 0===e||null===(s=e.thumbnail)||void 0===s?void 0:s.url)?null===e||void 0===e||null===(c=e.thumbnail)||void 0===c?void 0:c.url:v,style:{borderRadius:"6px",objectFit:"contain"}})});case"video/mp4":case"video/mpeg":case"video/webm":case"video":var h,x,g=null!==(x=null!==(h=e[M])&&void 0!==h?h:C&&C(e))&&void 0!==x?x:e[U];e[A];return(0,o.jsx)(r.Z,{sx:{backgroundColor:a.lB.black,borderRadius:"6px",width:Y?120:200,height:Y?80:150,position:"relative"},children:(0,o.jsx)("video",{src:g,preload:"metadata",controls:!0,style:{objectFit:"contain",width:Y?120:200,height:Y?80:150,borderRadius:"6px"}})});case"application/pdf":case"application/vnd.ms-excel":case"text/csv":case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":case"application/msword":case"application/vnd.ms-powerpoint":case"application/vnd.openxmlformats-officedocument.presentationml.presentation":case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":var j="";switch(t){case"application/pdf":default:j="https://app.manageplus.io/admin/images/pdf.png";break;case"application/msword":case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":case"application/vnd.ms-excel":case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":case"text/csv":j="https://app.manageplus.io/admin/images/word.png";break;case"application/vnd.ms-powerpoint":case"application/vnd.openxmlformats-officedocument.presentationml.presentation":j="https://app.manageplus.io/admin/images/ppt.png"}return(0,o.jsx)(r.Z,{sx:{backgroundColor:a.lB.black,borderRadius:"6px",width:Y?120:200,height:Y?80:150},children:(0,o.jsx)(r.Z,{sx:{width:Y?120:200,height:Y?80:150,display:"flex",justifyContent:"center",alignItems:"center"},children:(0,o.jsx)(m(),{src:j,height:Y?80:100,width:Y?80:100,style:{borderRadius:"6px",objectFit:"contain"}})})});case"auto/mp3":case"audio/mpeg":return(0,o.jsxs)(r.Z,{sx:{backgroundColor:a.lB.black,borderRadius:"6px",width:Y?120:200,height:Y?80:150},children:[(0,o.jsx)(r.Z,{sx:{width:Y?120:200,height:Y?80:105,display:"flex",justifyContent:"center",alignItems:"center"},children:(0,o.jsx)(m(),{src:"/static/images/logo/music_logo.png",height:Y?80:100,width:Y?80:100,style:{borderRadius:"6px",objectFit:"contain"}})}),(0,o.jsx)("audio",{className:"audio-control",style:{width:200,height:40,marginTop:Y?4:0},controls:!0,controlsList:"play volume pause noplaybackrate nodownload",src:e.url})]});case"text":var b,y,w,Z=null!==(w=null!==(y=e[H])&&void 0!==y?y:C&&C(e))&&void 0!==w?w:e[U],_=null===(b=null===Z||void 0===Z?void 0:Z.split(" "))||void 0===b?void 0:b.map((function(e,i){return(null===S||void 0===S?void 0:S.length)&&(null===S||void 0===S?void 0:S.find((function(i){return i.first_name&&i.first_name===e||i.last_name&&i.last_name===e||i.email&&i.email===e})))?(0,o.jsxs)(d.Z,{component:"span",fontSize:Y?12:14,sx:{color:"blue"},children:[e," "]},i):(0,o.jsxs)(d.Z,{component:"span",fontSize:Y?12:14,style:{color:"black"},children:[e," "]},i)}));return(0,o.jsx)(o.Fragment,{children:B?_:Z?(0,l.ZP)(Z):Z});case"link":var k,F=null!==(k=C&&C(e))&&void 0!==k?k:e.url;return(0,o.jsx)(o.Fragment,{children:F?(0,l.ZP)(F):F});case"url":var z,R=null!==(z=C&&C(e))&&void 0!==z?z:e.text;return(0,o.jsx)(o.Fragment,{children:R?(0,l.ZP)(R):R});case"history":return(0,o.jsx)(f.Z,(0,n.Z)({},e));default:return(0,o.jsx)(o.Fragment,{children:"Unsupported File"})}};return(0,x.useEffect)((function(){var e;_.length&&V&&(null===J||void 0===J||null===(e=J.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}))}),[_,V]),(0,o.jsx)(r.Z,{sx:(0,n.Z)({display:"flex",gap:2,flexDirection:"column",overflowY:"auto",minHeight:200,maxHeight:400},W),children:(null===_||void 0===_?void 0:_.length)&&_.map((function(e,l){var a,m,x,f,y,Z,C,S,F;return(0,o.jsxs)(r.Z,{ref:l+1===_.length?J:void 0,sx:{display:"flex",gap:1,alignItems:"flex-start",justifyContent:"flex-start","&:hover":{"& .MuiBgComposed":{opacity:1},"& .actionShow":{opacity:1,transition:"ease .5s"}}},children:[(0,o.jsx)(c.Z,{sx:{width:Y?24:32,height:Y?24:32},alt:(null===e||void 0===e||null===(a=e.user_id)||void 0===a?void 0:a.first_name)?null===e||void 0===e||null===(m=e.user_id)||void 0===m?void 0:m.first_name:null===O||void 0===O||null===(x=O.data)||void 0===x?void 0:x.first_name,src:(null===e||void 0===e||null===(f=e.user_id)||void 0===f?void 0:f.avatar)?null===e||void 0===e||null===(y=e.user_id)||void 0===y?void 0:y.avatar:null!==(i=null===O||void 0===O||null===(Z=O.data)||void 0===Z?void 0:Z.avatar)&&void 0!==i?i:"A"}),(0,o.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column",gap:.5,alignItems:"flex-start",justifyContent:"space-between"},children:[(0,o.jsxs)(r.Z,{sx:(0,n.Z)({display:"flex",width:"100%",gap:.5,mb:0,alignItems:"flex-start"},q),children:[(null===e||void 0===e||null===(C=e.user_id)||void 0===C?void 0:C.first_name)?(0,o.jsx)(d.Z,{fontSize:13,variant:"h5",textTransform:"capitalize",children:"".concat(null===e||void 0===e?void 0:e.user_id.first_name," ").concat(null===e||void 0===e||null===(S=e.user_id)||void 0===S?void 0:S.last_name)}):(0,o.jsx)(d.Z,{fontSize:13,variant:"h5",textTransform:"capitalize",children:"".concat(null===O||void 0===O?void 0:O.data.first_name," ").concat(null===O||void 0===O||null===(F=O.data)||void 0===F?void 0:F.last_name)}),(null===e||void 0===e?void 0:e.action)&&(0,o.jsx)(d.Z,{children:null===e||void 0===e?void 0:e.action}),(null===e||void 0===e?void 0:e.created_at)&&(0,o.jsx)(d.Z,{variant:"subtitle1",fontSize:Y?10:11,ml:1,children:(0,s.GU)(new Date,null===e||void 0===e?void 0:e.created_at)}),R&&z&&(0,o.jsxs)(u.Z,{className:"MuiBgComposed",sx:{opacity:0,mt:-1,padding:0},direction:"row",children:[(0,o.jsx)(w.Z,{title:P,children:(0,o.jsx)(g.Z,{title:"Edit",buttonProps:{sx:{"&.MuiButtonBase-root:hover":{bgcolor:"transparent"}},onClick:function(){return R(null===e||void 0===e?void 0:e._id,null===e||void 0===e?void 0:e.comment,null===e||void 0===e?void 0:e.tagged_users)},color:"primary",disabled:P},children:(0,o.jsx)(b.Z,{sx:{width:18}})})}),(0,o.jsx)(w.Z,{title:I,children:(0,o.jsx)(g.Z,{title:"Delete",buttonProps:{sx:{"&.MuiButtonBase-root:hover":{bgcolor:"transparent"}},onClick:function(){return z(null===e||void 0===e?void 0:e._id)},color:"primary",disabled:I},children:(0,o.jsx)(j.Z,{sx:{width:18}})})})]})]}),(0,o.jsxs)(r.Z,{sx:(0,n.Z)({position:"relative"},k),children:["text"!=G&&"history"!=G&&"link"!=G&&"text"!=e.type&&"link"!=e.type&&null!==e.url&&"history"!=e.type?(0,o.jsx)(r.Z,{className:"actionShow",sx:{opacity:0,right:5,position:"absolute",top:12,zIndex:1e4},children:(0,o.jsxs)(p.ZP,{display:"flex",justifyContent:"center",gap:.5,children:[(0,o.jsx)(v.Z,{sx:{backgroundColor:"#fff","&:hover":{backgroundColor:"#fff"}},"aria-controls":"fade-menu","aria-haspopup":"true",onClick:function(){return L(e,l)},children:(0,o.jsx)("img",{width:18,height:18,src:"/static/images/icons/upload-delete.svg"})}),(0,o.jsx)("a",{href:e[A],download:!0,target:"_blank",rel:"noreferrer",children:(0,o.jsx)(v.Z,{sx:{backgroundColor:"#fff","&:hover":{backgroundColor:"#fff"}},"aria-controls":"fade-menu","aria-haspopup":"true",children:(0,o.jsx)("img",{width:18,height:18,src:"/static/images/icons/upload-download.svg"})})})]})}):(0,o.jsx)(o.Fragment,{}),Q(e),(0,o.jsx)(d.Z,{width:200,variant:"subtitle1",fontSize:12,children:null!==(t=e[E])&&void 0!==t?t:N&&N(e)})]})]})]}
1,null!==(h=e._id)&&void 0!==h?h:l)}))})}}}]);
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.