"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[5703],{3180:(e,r,t)=>{t.d(r,{A:()=>l,k:()=>s});var o=t(51062),a=t(2958);function s(e){return(0,a.Ay)("MuiAvatar",e)}const l=(0,o.A)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"])},5703:(e,r,t)=>{t.r(r),t.d(r,{avatarClasses:()=>a.A,default:()=>o.A,getAvatarUtilityClass:()=>a.k});var o=t(34869),a=t(3180)},34869:(e,r,t)=>{t.d(r,{A:()=>h});var o=t(7552),a=t(93878),s=t(75100),l=t(80317),n=t(21928),i=t(50864),c=t(29772),d=t(69500);const u=(0,c.A)((0,d.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var p=t(3180),f=t(22020);const m=(0,l.Ay)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[t.variant],t.colorDefault&&r.colorDefault]}})((0,n.A)((({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]})))),g=(0,l.Ay)("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),v=(0,l.Ay)(u,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"}),h=o.forwardRef((function(e,r){const t=(0,i.b)({props:e,name:"MuiAvatar"}),{alt:l,children:n,className:c,component:u="div",slots:h={},slotProps:y={},imgProps:A,sizes:b,src:w,srcSet:k,variant:S="circular",...P}=t;let x=null;const C={...t,component:u,variant:S},j=function({crossOrigin:e,referrerPolicy:r,src:t,srcSet:a}){const[s,l]=o.useState(!1);return o.useEffect((()=>{if(!t&&!a)return;l(!1);let o=!0;const s=new Image;return s.onload=()=>{o&&l("loaded")},s.onerror=()=>{o&&l("error")},s.crossOrigin=e,s.referrerPolicy=r,s.src=t,a&&(s.srcset=a),()=>{o=!1}}),[e,r,t,a]),s}({...A,..."function"==typeof y.img?y.img(C):y.img,src:w,srcSet:k}),F=w||k,R=F&&"error"!==j;C.colorDefault=!R,delete C.ownerState;const D=(e=>{const{classes:r,variant:t,colorDefault:o}=e,a={root:["root",t,o&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,s.A)(a,p.k,r)})(C),[M,T]=(0,f.A)("root",{ref:r,className:(0,a.A)(D.root,c),elementType:m,externalForwardedProps:{slots:h,slotProps:y,component:u,...P},ownerState:C}),[z,I]=(0,f.A)("img",{className:D.img,elementType:g,externalForwardedProps:{slots:h,slotProps:{img:{...A,...y.img}}},additionalProps:{alt:l,src:w,srcSet:k,sizes:b},ownerState:C}),[N,_]=(0,f.A)("fallback",{className:D.fallback,elementType:v,externalForwardedProps:{slots:h,slotProps:y},shouldForwardComponentProp:!0,ownerState:C});return x=R?(0,d.jsx)(z,{...I}):n||0===n?n:F&&l?l[0]:(0,d.jsx)(N,{..._}),(0,d.jsx)(M,{...T,children:x})}))}}]);
//# sourceMappingURL=5703.4fa0d512.chunk.js.map