1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4825],{70257:function(e,t,i){var r=i(26042),a=i(85893),n=i(40516),s=i(97224),o=i(87952),l=i(19238),d=i(15861),c=i(67294);t.Z=function(e){var t=e.user,i=(e._id,e.avatarStyle),u=(0,c.useMemo)((function(){return(0,n.u)((0,s._5)(t))}),[t]);return(0,a.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1},children:[(0,a.jsx)(o.Z,{sx:(0,r.Z)({width:32,height:32,bgcolor:u},i),src:null===t||void 0===t?void 0:t.avatar,children:(0,s.K5)(t)}),(0,a.jsx)(d.Z,{children:(0,s._5)(t)})]})}},14825:function(e,t,i){i.d(t,{Z:function(){return B}});var r=i(26042),a=i(85893),n=i(67294),s=i(19238),o=i(87952),l=i(15861),d=i(94129),c=i(69396),u=i(99534),h=i(57354),x=function(e){var t=e.children,i=e.isCreate,n=e.style;return(0,a.jsxs)(s.Z,{sx:(0,r.Z)({display:"flex",gap:2,justifyContent:"flex-start",alignItems:"center"},n),children:[i||!t[0]?(0,a.jsx)(l.Z,{color:"GrayText",children:"None"}):t[0],(0,a.jsx)(h.Z,{}),t[1]]})},p=i(87918),f=i(63343),v={display:"flex",flexWrap:"wrap",alignItems:"center",gap:.4},j=function(e){var t=e.labels,i=e.onDelete,n=e.disabled,o=e.chipProps;return(0,a.jsx)(s.Z,{sx:v,children:null===t||void 0===t?void 0:t.map((function(e,t){return"Collections"===e?null:e?(0,a.jsx)(p.Z,(0,r.Z)({label:e,sx:{height:28},onDelete:n?void 0:function(){return i(t)},deleteIcon:n?void 0:(0,a.jsx)(f.Z,{}),size:"small"},o),"label_".concat(t)):""}))})},y=function(e){var t=e.isCreate,i=e.previousData,r=e.historykey,n=e.nextData,s=i?i[r]:null,o=n?n[r]:null;return Array.isArray(s)&&(s=s.map((function(e){return e.title}))),Array.isArray(o)&&(o=o.map((function(e){return e.title}))),(0,a.jsxs)(x,{isCreate:t,children:[(null===s||void 0===s?void 0:s.length)&&(0,a.jsx)(j,{labels:null!==s&&void 0!==s?s:[],disabled:!0}),(0,a.jsx)(j,{labels:null!==o&&void 0!==o?o:[],disabled:!0})]})},g=i(86467),m=i(11394),b=function(e){var t=e.isCreate,i=e.previousData,r=e.historykey,n=e.nextData,s=i?i[r]:"",o=n?n[r]:"";return(0,a.jsxs)(x,{isCreate:t,children:[s&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.Z,{fontSize:"small",color:"primary"}),(0,a.jsx)(l.Z,{fontSize:12,children:(0,m.o0)(t?o:s)})]}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.Z,{fontSize:"small",color:"primary"}),(0,a.jsx)(l.Z,{fontSize:12,children:(0,m.o0)(o)})]})]})},Z=i(94933),D=function(e){var t=e.isCreate,i=e.previousData,r=e.historykey,n=e.nextData,s=i?i[r]:"",o=n?n[r]:"";return(0,a.jsxs)(x,{isCreate:t,children:[s&&(0,a.jsx)(Z.Z,{priority:s,showName:!0}),(0,a.jsx)(Z.Z,{textStyle:{fontSize:12},priority:o,showName:!0})]})},_=i(72938),C=function(e){var t,i,r=function(e){return e.split("\n").join("<br>")},n=e.historykey,o=e.previousData,l=e.nextData,d=e.isCreate,c=(e.isHTML,o?o[n]:""),u=l?l[n]:"",h="string"===typeof c&&""!==c,p="string"===typeof u&&""!==u,f=(0,_.HN)(c),v=(0,_.HN)(u),j=h?r(c):(null===c||void 0===c||null===(t=c.blocks)||void 0===t?void 0:t.length)?f:r(f),y=p?r(u):(null===u||void 0===u||null===(i=u.blocks)||void 0===i?void 0:i.length)?v:r(v);return(0,a.jsxs)(x,{isCreate:d,style:{flexWrap:"wrap",gap:3},children:[c&&(0,a.jsx)(s.Z,{className:"quillPreview",sx:{fontSize:12,lineHeight:"1.2"},children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:j}})}),(0,a.jsx)(s.Z,{className:"quillPreview",sx:{fontSize:12,lineHeight:"1.2"},children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:y}})})]})},k=function(e){var t=e.isCreate,i=e.previousData,r=e.historykey,n=e.nextData,s=i?i[r]:"",o=n?n[r]:"";return(0,a.jsxs)(x,{isCreate:t,children:[(0,a.jsx)(l.Z,{fontSize:12,children:null===s||void 0===s?void 0:s.name}),(0,a.jsx)(l.Z,{fontSize:12,children:null===o||void 0===o?void 0:o.name})]})},w=i(70257),z=function(e){var t=e.isCreate,i=e.previousData,n=e.historykey,s=e.nextData,o=s?s[n]:null,l=i?i[n]:null;return(0,a.jsxs)(x,{isCreate:t,children:[l&&(0,a.jsx)(w.Z,(0,c.Z)((0,r.Z)({},l),{user:l})),(0,a.jsx)(w.Z,(0,c.Z)((0,r.Z)({},o),{user:o}))]})},S=function(e){var t=e.isCreate,i=e.previousData,r=e.historykey,n=e.nextData,s=i?i[r]:null,o=n?n[r]:null;return s=d.xR.find((function(e){return e.id===s})),o=d.xR.find((function(e){return e.id===o})),(0,a.jsxs)(x,{isCreate:t,children:[s&&(0,a.jsx)(j,{chipProps:{sx:{borderRadius:"6px",height:28,color:s.color,bgcolor:s.backgroundColor}},labels:[s.title],disabled:!0}),o&&(0,a.jsx)(j,{chipProps:{sx:{borderRadius:"6px",height:28,bgcolor:o.backgroundColor,color:o.color}},labels:[o.title],disabled:!0})]})},$=function(e){var t=e.isCreate,i=e.previousData,r=e.historykey,n=e.nextData,s=i?i[r]:null,o=n?n[r]:null;return(0,a.jsxs)(x,{isCreate:t,children:[s&&(0,a.jsx)(j,{chipProps:{variant:"outlined",sx:{borderRadius:"6px",height:28,color:s.tab_color,borderColor:s.tab_color}},labels:[s.tab_name],disabled:!0}),o&&(0,a.jsx)(j,{chipProps:{variant:"outlined",sx:{borderRadius:"6px",height:28,borderColor:o.tab_color,color:o.tab_color}},labels:[o.tab_name],disabled:!0})]})},P=i(54799),A=i(44324),E=function(e){var t,i=e.isCreate,r=e.previousData,n=e.historykey,o=e.nextData,l=(e.reqData,r?r[n]:""),d=o?o[n]:"",c=null,u=null;(null===l||void 0===l?void 0:l.length)&&(c=l[0]),(null===d||void 0===d?void 0:d.length)&&(u=d[0]);var h=null!==(t=null===u||void 0===u?void 0:u.media_type)&&void 0!==t?t:null===u||void 0===u?void 0:u.type,x=null===u||void 0===u?void 0:u.media_id;switch(console.log({media:x}),h){case"image/jpeg":case"image/jpg":case"image/png":case"image":return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{style:{position:"relative",display:"inline-block"},children:[(0,a.jsxs)(s.Z,{sx:{backgroundColor:A.lB.black,borderRadius:"6px",width:100,position:"relative",height:80,"&:hover":{"& .actionShow":{opacity:1,transition:"ease .5s"}}},children:[(0,a.jsx)("a",{href:x.download_url,download:!0,target:"_blank",rel:"noreferrer",children:(0,a.jsx)(P.Z,{className:"actionShow",sx:{backgroundColor:"#fff","&:hover":{backgroundColor:"#fff"},position:"absolute",opacity:0,top:"65%",left:"50%",transform:"translate(-50%, -50%)"},"aria-controls":"fade-menu","aria-haspopup":"true",children:(0,a.jsx)("img",{alt:"download",width:15,height:15,src:"/static/images/icons/upload-download.svg"})})}),(0,a.jsx)("img",{alt:"contentimg",width:100,height:80,loading:"lazy",src:(null===x||void 0===x?void 0:x.url)||null,style:{borderRadius:"6px",objectFit:"contain"}})]}),(0,a.jsx)("p",{style:{marginTop:2,fontSize:12,fontWeight:500},children:null===x||void 0===x?void 0:x.file_name})]})});case"video/mp4":case"video/mpeg":case"video":var p=null===u||void 0===u?void 0:u.media_id;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{style:{position:"relative",display:"inline-block"},children:[(0,a.jsxs)(s.Z,{sx:{backgroundColor:A.lB.black,borderRadius:"6px",width:100,height:80,position:"relative","&:hover":{"& .actionShow":{opacity:1,transition:"ease .5s"}}},children:[(0,a.jsx)("video",{src:(null===p||void 0===p?void 0:p.url)||null,style:{objectFit:"contain",width:100,height:80,borderRadius:"6px"}}),(0,a.jsx)("a",{href:null===p||void 0===p?void 0:p.download_url,download:!0,target:"_blank",rel:"noreferrer",children:(0,a.jsx)(P.Z,{className:"actionShow",sx:{backgroundColor:"#fff","&:hover":{backgroundColor:"#fff"},opacity:0,position:"absolute",top:"65%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1},"aria-controls":"fade-menu","aria-haspopup":"true",children:(0,a.jsx)("img",{alt:"donloadup",width:15,height:15,src:"/static/images/icons/upload-download.svg"})})})]}),(0,a.jsx)("p",{style:{marginTop:2,fontSize:12,fontWeight:500},children:null===p||void 0===p?void 0:p.file_name})]})});case"application/pdf":case"pdf":var f=null===u||void 0===u?void 0:u.media_id;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{style:{position:"relative",display:"inline-block"},children:[(0,a.jsxs)(s.Z,{sx:{backgroundColor:A.lB.black,borderRadius:"6px",width:100,height:80,display:"flex",justifyContent:"center",alignItems:"center",position:"relative","&:hover":{"& .actionShow":{opacity:1,transition:"ease .5s"}}},children:[(0,a.jsx)("a",{href:null===f||void 0===f?void 0:f.download_url,download:!0,target:"_blank",rel:"noreferrer",children:(0,a.jsx)(P.Z,{className:"actionShow",sx:{backgroundColor:"#fff","&:hover":{backgroundColor:"#fff"}
1,opacity:0,position:"absolute",cursor:"pointer",top:"65%",left:"50%",transform:"translate(-50%, -50%)"},"aria-controls":"fade-menu","aria-haspopup":"true",children:(0,a.jsx)("img",{width:15,alt:"donloadup",height:15,src:"/static/images/icons/upload-download.svg"})})}),(0,a.jsx)("img",{src:"https://app.manageplus.io/admin/images/pdf.png",height:80,width:80,alt:"contain",style:{borderRadius:"6px",objectFit:"contain"}})]}),(0,a.jsx)("p",{style:{marginTop:2,fontSize:12,fontWeight:500},children:null===f||void 0===f?void 0:f.file_name})]})});case"text":case"url":return(0,a.jsx)(C,{isCreate:i,previousData:c,nextData:u,historykey:"description"});default:return(0,a.jsx)(a.Fragment,{children:"Unsupported File"})}},F=i(72145),R=function(e){var t=e.channel;return(0,a.jsx)(p.Z,{avatar:(0,a.jsx)(F.C,{alt:t,src:d.DB[t]}),sx:{borderRadius:"4px",textTransform:"capitalize",background:"#F9F9F9",height:30},label:t},"prev_"+t)},T=function(e){var t=e.isCreate,i=e.previousData,r=e.historykey,n=e.nextData,s=i?i[r]:null,o=n?n[r]:null;return(0,a.jsxs)(x,{style:{flexWrap:"wrap"},isCreate:t,children:[(null===s||void 0===s?void 0:s.length)>0&&s.map((function(e){return(0,a.jsx)(R,{channel:e},"prev_"+e)})),(null===o||void 0===o?void 0:o.length)>0&&o.map((function(e){return(0,a.jsx)(R,{channel:e},"next_"+e)}))]})},I=i(86886),N=function(e){var t=e.historykey,i=(0,u.Z)(e,["historykey"]);switch(d.$f[t]){case d.$f.summary:case d.$f.title:return(0,a.jsx)(I.ZP,{mt:.7,children:(0,a.jsx)(C,(0,c.Z)((0,r.Z)({},i),{historykey:t,isCreate:e.action===d.zt.ADDED}))});case d.$f.description:return(0,a.jsx)(I.ZP,{mt:.8,children:(0,a.jsx)(C,(0,c.Z)((0,r.Z)({},i),{historykey:t,isCreate:e.action===d.zt.ADDED}))});case d.$f.priority:return(0,a.jsx)(I.ZP,{mt:1,children:(0,a.jsx)(D,(0,c.Z)((0,r.Z)({},i),{historykey:t,isCreate:e.action===d.zt.ADDED}))});case d.$f.channels:return(0,a.jsx)(I.ZP,{mt:.8,sx:{width:200},children:(0,a.jsx)(T,(0,c.Z)((0,r.Z)({},i),{historykey:t,isCreate:e.action===d.zt.ADDED}))});case d.$f.labels:return(0,a.jsx)(I.ZP,{mt:.5,children:(0,a.jsx)(y,(0,c.Z)((0,r.Z)({},i),{historykey:t,isCreate:e.action===d.zt.ADDED}))});case d.$f.type_id:return(0,a.jsx)(I.ZP,{mt:.7,children:(0,a.jsx)(k,(0,c.Z)((0,r.Z)({},i),{historykey:t,isCreate:e.action===d.zt.ADDED}))});case d.$f.post_due_date:case d.$f.post_plan_date:case d.$f.post_schedule_date:return(0,a.jsxs)(I.ZP,{mt:1,children:[" ",(0,a.jsx)(b,(0,c.Z)((0,r.Z)({},i),{historykey:t,isCreate:e.action===d.zt.ADDED}))]});case d.$f.assignee_id:return(0,a.jsx)(I.ZP,{mt:.7,children:(0,a.jsx)(z,(0,c.Z)((0,r.Z)({},i),{historykey:t,isCreate:e.action===d.zt.ADDED}))});case d.$f.status:return(0,a.jsx)(I.ZP,{mt:1,children:(0,a.jsx)(S,(0,c.Z)((0,r.Z)({},i),{historykey:t,isCreate:e.action===d.zt.ADDED}))});case d.$f.task_tab:return(0,a.jsx)(I.ZP,{mt:1.2,children:(0,a.jsx)($,(0,c.Z)((0,r.Z)({},i),{historykey:t,isCreate:e.action===d.zt.ADDED}))});case d.$f.medias:case d.$f.references:case d.$f.attached_files:return(0,a.jsx)(I.ZP,{mt:1.5,children:(0,a.jsx)(E,(0,c.Z)((0,r.Z)({},i),{reqData:e.reqData,historykey:t,isCreate:e.action===d.zt.ADDED}))});default:return(0,a.jsx)(a.Fragment,{})}},H=i(40516),q=i(97224),W=function(e){var t,i,n,c,u,h=e.request_data,x=e.response_data,p=e.previous_data,f=!1,v=d.$f[h],j=d.Jr[h];if(!v&&e.action!==d.zt.CREATED)return null;v||e.action!==d.zt.CREATED||(f=!0);var y,g=f?'had <p style="color: '.concat(A.lB.primary,'"><b>created</b></p> this idea'):"";if(j&&(g=j[e.action]),"content"===h&&"object"===typeof(null===(t=e.response_data)||void 0===t?void 0:t.content)){var b,Z=(0,r.Z)({},e.response_data.content);if(x=e.response_data.content,p=null===(b=e.previous_data)||void 0===b?void 0:b.content,Z){var D,_=Z.platform,C=Z.post_type,k=null===(D=d.Kn[_])||void 0===D?void 0:D.toLowerCase();delete Z.platform,delete Z.post_type,h=Object.keys(Z)[0],v=d.$f[h];var w=d.Jr.content[h];"object"===typeof w&&(g="".concat(w[e.action]," "),k&&(g+=k+"'s "),C&&(g+=C))}}return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.Z,{sx:{display:"flex",flexDirection:"column",gap:1,padding:"0px 5px"},children:"hashtags"!==h&&(0,a.jsxs)(s.Z,{sx:{display:"flex",gap:1,alignItems:f?"center":"flex-start",justifyContent:"flex-start","&:hover":{"& .MuiBgComposed":{opacity:1}}},children:[(0,a.jsx)(o.Z,{sx:{width:24,height:24,bgcolor:(0,H.u)((0,q._5)(null===e||void 0===e?void 0:e.user_info))},alt:null===(i=e.user_info)||void 0===i?void 0:i.first_name,src:null!==(y=null===(n=e.user_info)||void 0===n?void 0:n.avatar)&&void 0!==y?y:null,children:(0,q.K5)(e.user_info)}),(0,a.jsxs)(s.Z,{sx:{display:"flex",flexDirection:"column",gap:.5,alignItems:"flex-start",justifyContent:"space-between"},children:[(0,a.jsxs)(s.Z,{sx:{display:"flex",width:"100%",gap:.5,alignItems:"flex-start",justifyContent:"flex-start",flexWrap:"wrap"},children:[(null===(c=e.user_info)||void 0===c?void 0:c.first_name)&&(0,a.jsx)(l.Z,{variant:"h5",fontSize:13,textTransform:"capitalize",children:"".concat(e.user_info.first_name," ").concat(null===(u=e.user_info)||void 0===u?void 0:u.last_name)}),g&&(0,a.jsx)("div",{style:{display:"flex",marginTop:-1.2},dangerouslySetInnerHTML:{__html:g}}),e.created_at&&(0,a.jsx)(l.Z,{variant:"subtitle1",fontSize:10,ml:1,title:"".concat(new Date(e.created_at)),children:(0,m.GU)(new Date,e.created_at)})]}),!f&&(0,a.jsxs)(s.Z,{sx:{position:"relative"},children:[(0,a.jsxs)(l.Z,{fontSize:13,variant:"h5",children:[" ",v]}),(0,a.jsx)(N,{historykey:h,action:e.action,reqData:h,nextData:x,previousData:p})]})]})]})})})},B=n.memo(W)}}]);
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.