"use strict";(self.webpackChunk_1js_people_in_taskbar=self.webpackChunk_1js_people_in_taskbar||[]).push([[7565],{7626:(e,t,n)=>{n.d(t,{Q:()=>r,a:()=>s});const r={component:"Members"},s={component:"About"}},99691:(e,t,n)=>{n.r(t),n.d(t,{DistributionListMembersPanelWithData:()=>D});var r=n(8618),s=n(76992),o=n(71317),a=n(76799),i=n(53701),l=n(7974),m=n(90838),c=n(41893);var d=n(62378),b=n(43830),p=n(74662),h=n(12843);const u=(0,b.Os)("c02ee326-c7bf-4bc5-b6a8-edf5b1920335"),M={name:"HasOwners",type:"Boolean",aggregation:"Multi",checkpoints:[p.qd],expectedPaths:["/"],dataContractId:u},w={name:"HasMembers",type:"Boolean",aggregation:"Multi",checkpoints:[p.qd],expectedPaths:["/"],dataContractId:u},g=function(e){return{dataContractId:u,hasError:e,index:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0}};var k=n(7626),v=n(19655),E=n(16818),T=n(16341),C=n(71304),f=n(24099),x=n(84256),y=n(92908),L=n(10516),P=n(71124),I=n(51634);const B=(0,I.qP)("lpc-distribution-list-members.DistributionList.Members.MembersTitle"),O=(0,I.Ex)("lpc-distribution-list-members.DistributionList.Members.Owners.Title"),_=(0,I.Ex)("lpc-distribution-list-members.DistributionList.Members.L1.ShowMoreMembersTitle");const D=e=>{const{queryKey:t,identifiers:n}=e,b=function(e,t){const n=(0,c.BB)(),r=(0,m.H5)(l.oy)((e=>(0,i.CS)(n,t,e))),[s]=(0,o.st)(r,["dl/members",e],{fetchOnce:!0});return(0,a.EW)(s)}(t,n),u=(0,d.M)(t,n),I=(0,C.ag)(),{isNavigateToL2ViewsEnabled:D}=(0,s.U)(),H=(0,C.WY)(),S="ExpandedView"===(0,f.xZ)(),j=!(0,x.ke)(),q=D?()=>H("DistributionListMembers"):void 0,A=e=>{const t=(0,v.U)({AadObjectId:(null==e?void 0:e.aadObjectId)||void 0,PersonaType:(null==e?void 0:e.personaType)||"User"});I(t,null==e?void 0:e.personaType)},{membersTitle:N}=(W=`${u}`,{membersTitle:(0,r.hX)(B,{memberCount:W||""})});var W;const U=`${(0,r.Lh)(O)}`,V=(0,r.Lh)(_),K=null==b?void 0:b.owners,Q=null==b?void 0:b.members,Y=Boolean(K&&K.length>0),Z=Boolean(Q&&Q.length>0),$=S?12:4,F=Boolean(Q&&Q.length>$),R=!Y,X={properties:{hasOwners:Y,hasMembers:Z,showMoreMembersHasContent:Boolean(j&&F&&V),showMoreMembersLinkIsEnabled:F,navigateToPersonaHasContent:Z,navigateToPersonaIsEnabled:!0}},z={checkpoints:[{checkpoint:p.qd,properties:{hasOwners:Y,hasMembers:Z}}]};return(e=>{(0,h.f)({id:M,...e})})({value:Y}),(e=>{(0,h.f)({id:w,...e})})({value:Z}),(0,y.y)({id:g(R)}),(0,L.K)(k.Q,X,z,R),Q?j?P.createElement(E.n,{members:Q,membersPanelTitle:N,displayMemberCount:$,onMemberClick:A,onTitleClick:q,showExpandedPanel:S,showMoreMembersLinkIsEnabled:F,showMoreMembersTitle:V}):P.createElement(T.y,{members:Q,owners:K,membersPanelTitle:N,ownersPanelTitle:U,displayMemberCount:Q&&Q.length||K&&K.length||0,onMemberClick:A,showExpandedPanel:S}):null}},16818:(e,t,n)=>{n.d(t,{n:()=>v});n(4589);var r=n(72650),s=n(10246),o=n(43830),a=n(18226);const i=(0,o.Os)("2abb29bf-c94e-4468-8352-dcd228d7cca0"),l=e=>(0,a.PY)({...e,id:m}),m={name:"Members",dataContractId:i};var c=n(88224),d=n(47911),b=n(71124),p=n(32079),h=n(20036),u=n(48960),M=n(59453);const w=(0,u.w)((e=>({container:{paddingTop:0,paddingBottom:0,marginLeft:"12px",display:"flex",flexDirection:"row",flexWrap:"wrap"},memberLink:{selectors:{"&:active, &:hover, &:focus":{backgroundColor:e.palette.themeLighterAlt}},display:"flex",width:"220px",overflow:"hidden",margin:"0 20px 5px 10px",padding:"8px"}}))),g=(0,u.w)((e=>({container:{paddingTop:0,paddingBottom:0,marginLeft:"12px"},memberLink:{selectors:{"&:active, &:hover, &:focus":{backgroundColor:e.palette.themeLighterAlt}},display:"flex",overflow:"hidden",padding:"8px"}})));function k(e,t,n,r,o,a,i,l){const m=(e=>M.sl.select({Outlook:{secondaryText:{color:e.palette.neutralPrimaryAlt}},Default:void 0}))(r),c=e.slice(0,t).map(((e,t)=>b.createElement(p.u,{key:t,member:e,onClick:o,overridePersonaStyles:m})));return n&&c.push(b.createElement(s.RE,{callback:()=>l&&l()},(e=>b.createElement(h.j,{className:a,onClick:e},b.createElement(b.Fragment,null,i))))),c}const v=e=>{const{members:t,onMemberClick:n,onTitleClick:s,displayMemberCount:o,membersPanelTitle:a,showExpandedPanel:i,showMoreMembersLinkIsEnabled:m,showMoreMembersTitle:p}=e,h=(0,d._)(),u=i?w(h):g(h),M=b.useMemo((()=>k(t,o,m,h,n,u.memberLink,p,s)),[t,p,h,n,o,m,s]);return b.createElement(l,null,b.createElement(c.Z,{logName:"MembersSection",title:a,onHeaderSelected:s,accessibilityLabel:"MembersSection"},b.createElement(r._,{listClassName:u.container,listItemClassName:u.memberLink,items:M,itemDisplay:"Vertical"})))}},16341:(e,t,n)=>{n.d(t,{y:()=>a});var r=n(22086),s=n(71124),o=n(16818);const a=e=>s.createElement(r.t,null,e.owners&&s.createElement(o.n,{...e,showMoreMembersTitle:"",showMoreMembersLinkIsEnabled:!1,members:e.owners,membersPanelTitle:e.ownersPanelTitle,displayMemberCount:e.owners.length}),s.createElement(o.n,{showMoreMembersTitle:"",showMoreMembersLinkIsEnabled:!1,...e}))}}]);