"use strict";(self.webpackChunk_1js_people_in_taskbar=self.webpackChunk_1js_people_in_taskbar||[]).push([[3495],{65479:(e,t,i)=>{i.d(t,{p:()=>a});var r=i(94542),n=i(50347);function a(e,t){const i=(0,n.lh)("QAndA"===t?"YammerQA":"Yammer",null==e?void 0:e.resourcesMap);if(!i)return null;return{data:i.Value.map((t=>{var i;return{asker:t.Author.DisplayName||"",bestAnswerAuthor:t.HasBestAnswer?null===(i=t.BestAnswerAuthor)||void 0===i?void 0:i.DisplayName:void 0,creationTime:(null==t?void 0:t.CreationTime)?(0,r.tj)(t.CreationTime,!0)??"":"",replyCount:(null==t?void 0:t.ReplyCount)||0,title:(null==t?void 0:t.Title)||"",type:t.ConversationType||"Question",url:(null==t?void 0:t.Url)||"",pollCount:null==t?void 0:t.PollCount,topicId:e.id,bodyPreview:t.BodyPreview||"",askerEmail:t.Author.EmailAddress||"",askerUpn:t.Author.UserPrincipalName||"",askerUniqueIdentifier:t.Author.ExternalDirectoryObjectId||""}})),moreResultsAvailable:i.MoreResultsAvailable||!1,url:e.url,topicId:e.id}}},77847:(e,t,i)=>{i.r(t),i.d(t,{ActivityL2WithData:()=>w});var r=i(88002),n=i(71124),a=i(57147),l=i(65479),o=i(88224),s=i(35952),c=i(933),u=i(95852),m=i(80306),p=i(90138),d=i(70297),y=i(84236),v=i(77642),k=i(95868),x=i(42124);const h=(0,k.J)((e=>{let{palette:t}=e;return(0,x.l8)({item:{backgroundColor:t.panelBackground,padding:"8px",borderRadius:"4px",border:"1px solid transparent"},primaryText:{fontSize:"14px",fontWeight:"600",lineHeight:"22px",color:t.neutralPrimary},text:{fontSize:"14px",fontWeight:"400",lineHeight:"22px",color:t.neutralPrimary}})}));const E=(0,i(51634).qP)("lpc-topic-activity.activityContent.itemTitle"),A=e=>{let{name:t,community:i,time:r,email:a,upn:l,uniqueIdentifier:o,styles:s}=e;const c=(0,p._o)({email:a,upn:l,uniqueIdentifier:o});return n.createElement(y.F,{imageUrl:null==c?void 0:c.source,size:v.WH.size40,text:E({name:t,community:i}),secondaryText:`${r}`.toString(),onRenderPrimaryText:()=>n.createElement("div",{className:s.text},n.createElement(m.y,{text:E,placeholders:{name:n.createElement("span",{className:s.primaryText},t),community:n.createElement("span",{className:s.primaryText},i)}}))})};function f(e){const{activityData:t}=e,i=h((0,d.q)());return n.createElement("div",{className:i.item},n.createElement(A,{name:t.asker,community:t.title,time:t.creationTime,styles:i,email:t.askerEmail,upn:t.askerUpn,uniqueIdentifier:t.askerUniqueIdentifier}),t.bodyPreview)}const b=(0,k.J)((()=>({panelStyleOverrides:g()}))),g=()=>({panelContent:()=>(0,x.l8)({panel:{backgroundColor:"transparent",margin:"0px 16px",padding:"16px"}})});function C(e){const{data:t,topicsSdk:i,url:r}=e,{isExpandedViewEnabled:a}=(0,s.n)(),{panelStyleOverrides:l}=b();return n.createElement(o.Z,{logName:"TopicActivity",headerHref:r&&!a?`${r}${c.w.Activity}`:void 0,showLargeTitle:!0,dataInterception:"off",styleOverrides:l},n.createElement(u.B,{tokens:{childrenGap:10}},t.map(((e,t)=>n.createElement(f,{topicsSdk:i,activityData:e,key:t})))))}const T=e=>{const{topic:t,topicsSdk:i}=e,r=n.useMemo((()=>(0,l.p)(t,"Activity")),[t]);return r?n.createElement("div",{className:a.Vh.topicSectionContainer},n.createElement(C,{topicsSdk:i,data:r.data,url:r.url||"",topicId:t.id})):n.createElement(n.Fragment,null)},w=e=>n.createElement(r.v,e,T)}}]);