"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[2872],{83162:(r,e,t)=>{t.d(e,{A:()=>b});var a=t(83673),o=t(6614),s=t(7552),l=t(93878),n=t(70799),i=t(51148),c=t(4785),u=t(74893),d=t(69500);const p=(0,u.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 v=t(28375),f=t(43045);const g=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],m=(0,i.Ay)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,e[t.variant],t.colorDefault&&e.colorDefault]}})((({theme:r})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:r.typography.fontFamily,fontSize:r.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(r.vars||r).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:(0,o.A)({color:(r.vars||r).palette.background.default},r.vars?{backgroundColor:r.vars.palette.Avatar.defaultBg}:(0,o.A)({backgroundColor:r.palette.grey[400]},r.applyStyles("dark",{backgroundColor:r.palette.grey[600]})))}]}))),A=(0,i.Ay)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(r,e)=>e.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),h=(0,i.Ay)(p,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(r,e)=>e.fallback})({width:"75%",height:"75%"}),b=s.forwardRef((function(r,e){const t=(0,c.b)({props:r,name:"MuiAvatar"}),{alt:i,children:u,className:p,component:b="div",slots:y={},slotProps:k={},imgProps:w,sizes:S,src:x,srcSet:P,variant:R="circular"}=t,j=(0,a.A)(t,g);let C=null;const D=function({crossOrigin:r,referrerPolicy:e,src:t,srcSet:a}){const[o,l]=s.useState(!1);return s.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=r,s.referrerPolicy=e,s.src=t,a&&(s.srcset=a),()=>{o=!1}}),[r,e,t,a]),o}((0,o.A)({},w,{src:x,srcSet:P})),M=x||P,z=M&&"error"!==D,F=(0,o.A)({},t,{colorDefault:!z,component:b,variant:R}),N=(r=>{const{classes:e,variant:t,colorDefault:a}=r,o={root:["root",t,a&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,n.A)(o,v.k,e)})(F),[I,T]=(0,f.A)("img",{className:N.img,elementType:A,externalForwardedProps:{slots:y,slotProps:{img:(0,o.A)({},w,k.img)}},additionalProps:{alt:i,src:x,srcSet:P,sizes:S},ownerState:F});return C=z?(0,d.jsx)(I,(0,o.A)({},T)):u||0===u?u:M&&i?i[0]:(0,d.jsx)(h,{ownerState:F,className:N.fallback}),(0,d.jsx)(m,(0,o.A)({as:b,ownerState:F,className:(0,l.A)(N.root,p),ref:e},j,{children:C}))}))},28375:(r,e,t)=>{t.d(e,{A:()=>l,k:()=>s});var a=t(33761),o=t(85693);function s(r){return(0,o.Ay)("MuiAvatar",r)}const l=(0,a.A)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"])},42872:(r,e,t)=>{t.r(e),t.d(e,{avatarClasses:()=>o.A,default:()=>a.A,getAvatarUtilityClass:()=>o.k});var a=t(83162),o=t(28375)}}]);
//# sourceMappingURL=2872.24232ec7.chunk.js.map