"use strict";(self.webpackChunk_1js_people_in_taskbar=self.webpackChunk_1js_people_in_taskbar||[]).push([[1346],{77826:(e,t,l)=>{l.r(t),l.d(t,{FilePreviewPopup:()=>E});var n=l(8618),a=l(84957),r=l(47911),c=l(16873),i=l(92895),o=l(29880),s=l(64670),p=l(71124),m=l(24491);const u=(0,l(27623).PK)((()=>({container:{display:"flex",flexDirection:"column",margin:24},popupHeader:{display:"flex",justifyContent:"space-between",alignItems:"center"},popupTitle:{fontWeight:"bold",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",maxWidth:"85%"}}))),d=e=>{let{children:t,onClose:l,title:n}=e;const r=u((0,c.D)()),[,o]=(0,a.l)();return p.useEffect((()=>(o("Sticky"),()=>{o("NonSticky")})),[o]),n?p.createElement(i.a,{isOpen:!0},p.createElement("div",{className:r.container},p.createElement("div",{className:r.popupHeader},p.createElement("span",{className:r.popupTitle},n),p.createElement(f,{closeCard:l})),t)):null};function f(e){let{closeCard:t}=e;const{useFluentVNextIcons:l}=(0,r._)(),a=(0,n.Lh)(m.vs),c=l?"vNextCancel":"Cancel";return p.createElement(o.c,{onClick:()=>t()},p.createElement(s.I,{iconName:c,"aria-label":a,role:"button"}))}var v=l(71310),w=l(72651);const E=e=>{const{filePreviewImageUrl:t,previewImageFileName:l}=(0,v.vq)();return p.createElement(d,{...e,title:l},p.createElement(w.A,{item:{previewImageUrl:t},onImageLoad:()=>{},onImageError:()=>{}}))}}}]);