"use strict";(self.webpackChunk_1js_people_in_taskbar=self.webpackChunk_1js_people_in_taskbar||[]).push([[1613],{83984:(e,n,r)=>{r.d(n,{E7:()=>s,P3:()=>a,Rj:()=>t,XR:()=>u,Ze:()=>o,u9:()=>i,yr:()=>c});const t={component:"GroupMembers"},o={component:"GroupAbout"},s={component:"FooterPanel"},a={component:"GroupRenew"},i={component:"TrustedSenders"},u={component:"GroupPendingRequestsInfo"},c={component:"GroupGdm"}},67506:(e,n,r)=>{r.d(n,{x:()=>B});var t=r(97950),o=r(19199),s=r(90973),a=r(79604);const i=(0,a.A)((0,o.A)(s.ghe,s.kt0));var u=r(40897);const c=(0,a.A)((0,o.A)(u.nKe,u.NUc));var p=r(47911),l=r(42201),m=r(9930),w=r(59116),g=r(31394),x=r(1812),R=r(71124),b=r(38217),d=r(42124);const G=(0,b.J9)((e=>(0,d.l8)({messageBarEV:{margin:"20px 10px 0px 20px",display:"flex",alignItems:"center",width:"auto"},messageBarSmallCard:{margin:"12px 10.5px 0px 10.5px",width:"auto"},button:{height:"24px",minHeight:"auto"},innerContentStyles:{display:"flex",alignItems:"center"},dismissCircleStyles:{color:e.palette.redDark,marginRight:"8px"},successCircleStyles:{color:e.palette.greenDark,marginRight:"8px"},warningCircleStyles:{color:e.palette.black,marginRight:"8px"}}))),T={iconContainer:{minHeight:"0px",minWidth:"0px",height:"0px",width:"0px",margin:"0px"}},B=e=>{let{messageString:n,messageType:r,actionButtonProps:t,isEV:o,isProcessing:s,iconAriaLabel:a}=e;const i=G((0,p._)()),u=R.createElement(w.Y,{disabled:s,className:i.button,text:null==t?void 0:t.text,onClick:null==t?void 0:t.onClick}),c=t&&!s?u:void 0,x=S(r);return R.createElement(g.n,{className:o?i.messageBarEV:i.messageBarSmallCard,actions:c,isMultiline:!o,messageBarType:x,styles:T,messageBarIconProps:{}},R.createElement("div",{className:i.innerContentStyles},s?R.createElement(l.y,{className:i.warningCircleStyles,size:m.H.small}):E(r,i,a??""),n))},S=e=>"Error"==e?x.H.error:"Success"==e?x.H.success:"Warning"==e?x.H.warning:x.H.info,E=(e,n,r)=>"Error"==e?R.createElement(t.A,{"aria-label":r,className:n.dismissCircleStyles}):"Success"==e?R.createElement(i,{"aria-label":r,className:n.successCircleStyles}):R.createElement(c,{"aria-label":r,className:n.warningCircleStyles})},79022:(e,n,r)=>{r.r(n),r.d(n,{RenewGroupBanner:()=>v});var t=r(3713),o=r(96928),s=r(43740),a=r(14926),i=r(83984),u=r(72919),c=r(20243),p=r(49138),l=r(14583),m=r(50812),w=r(66766),g=r(90838);var x=r(67506),R=r(24099),b=r(29430),d=r(74662),G=r(10516),T=r(41893),B=r(71124),S=r(51634),E=r(8618);const y=(0,S.qP)("lpc-group-renew-banner.About.Section.About.L2.RenewGroup.RenewGroupBannerText"),h=(0,S.Ex)("lpc-group-renew-banner.About.Section.About.L2.RenewGroup.RenewGroup.RenewGroupButtonLabel"),A=(0,S.qP)("lpc-group-renew-banner.About.Section.About.L2.RenewGroup.RenewGroupBannerErrorText"),C=(0,S.qP)("lpc-group-renew-banner.About.Section.About.L2.RenewGroup.RenewGroupInProgressBannerText"),P=(0,S.qP)("lpc-group-renew-banner.About.Section.About.L2.RenewGroup.RenewGroupSuccessBannerText"),k=(0,S.Ex)("lpc-group-renew-banner.About.Section.About.L2.RenewGroup.RenewGroupTodayBannerText"),L=(0,S.Ex)("lpc-group-renew-banner.About.Section.About.L2.RenewGroup.RenewGroupTomorrowBannerText");function f(){return{RenewGroupBannerText:e=>y({p0:e}),RenewGroupButtonLabel:(0,E.Lh)(h),RenewGroupBannerErrorText:e=>A({p0:e}),RenewGroupInProgressBannerText:e=>C({p0:e}),RenewGroupSuccessBannerText:e=>P({p0:e}),RenewGroupTodayBannerText:(0,E.Lh)(k),RenewGroupTomorrowBannerText:(0,E.Lh)(L)}}const v=e=>{const{queryKey:n,identifiers:r}=e,S=(0,u.P)(n,r),{expirationTime:E,displayName:y,isExpiring:h}=S??{},A=(0,T.BB)(),C="ExpandedView"===(0,R.xZ)(),P=(0,s.jE)(),[k,L]=B.useState(!1),v=f(),N=E?(0,t.N_)(new Date,new Date(E),o.K.Floor):0,_=H(N),q=v.RenewGroupInProgressBannerText(y??""),[I,V]=function(e,n){const r=(0,g.H5)(l.VZ)((r=>(0,p.Yc)(e,n,r))),{renewGroup:t}=(0,m.ML)();return(0,c.e)(r,{onSuccess:()=>{t&&t((0,w.Q)(n))}})}(A,r),K=B.useRef(void 0),j=(0,b.o3)(a.h$,(async()=>{L(!0),await I(null).then((e=>{e&&(window.clearTimeout(K.current),K.current=window.setTimeout((()=>{P.invalidateQueries({queryKey:["group/about"]})}),5e3))}))}));B.useEffect((()=>()=>window.clearTimeout(K.current)),[]);const D={properties:{groupRenewIsEnabled:!0,groupRenewHasContent:!h}},M={checkpoints:[{checkpoint:d.qd,properties:{groupRenewHasContent:!h}}]},W=null==S;return(0,G.K)(i.P3,D,M,W),h?"error"===V.state?B.createElement(x.x,{messageType:"Error",messageString:v.RenewGroupBannerErrorText(y??""),isEV:C}):"success"===V.state?B.createElement(x.x,{messageType:"Success",messageString:v.RenewGroupSuccessBannerText(y??""),isEV:C}):B.createElement(x.x,{messageType:"Warning",actionButtonProps:{text:v.RenewGroupButtonLabel,onClick:j},isEV:C,messageString:k?q:_,isProcessing:k}):null},H=e=>{const n=f();return e>1?n.RenewGroupBannerText(String(e)):1===e?n.RenewGroupTomorrowBannerText:n.RenewGroupTodayBannerText}}}]);