"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[8639],{9911:(e,r,t)=>{t.d(r,{Z:()=>b});var a=t(31461),o=t(7896),s=t(41867),l=t(66184),n=t(92705),c=t(75693),i=t(90293),u=t(17886),d=t(80838);const v=(0,u.Z)((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 f=t(6119);const m=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],g=(0,c.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[t.variant],t.colorDefault&&r.colorDefault]}})((e=>{let{theme:r,ownerState:t}=e;return(0,o.Z)({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"},"rounded"===t.variant&&{borderRadius:(r.vars||r).shape.borderRadius},"square"===t.variant&&{borderRadius:0},t.colorDefault&&(0,o.Z)({color:(r.vars||r).palette.background.default},r.vars?{backgroundColor:r.vars.palette.Avatar.defaultBg}:{backgroundColor:"light"===r.palette.mode?r.palette.grey[400]:r.palette.grey[600]}))})),h=(0,c.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,r)=>r.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),p=(0,c.ZP)(v,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,r)=>r.fallback})({width:"75%",height:"75%"});const b=s.forwardRef((function(e,r){const t=(0,i.Z)({props:e,name:"MuiAvatar"}),{alt:c,children:u,className:v,component:b="div",imgProps:Z,sizes:w,src:k,srcSet:S,variant:y="circular"}=t,R=(0,a.Z)(t,m);let x=null;const A=function(e){let{crossOrigin:r,referrerPolicy:t,src:a,srcSet:o}=e;const[l,n]=s.useState(!1);return s.useEffect((()=>{if(!a&&!o)return;n(!1);let e=!0;const s=new Image;return s.onload=()=>{e&&n("loaded")},s.onerror=()=>{e&&n("error")},s.crossOrigin=r,s.referrerPolicy=t,s.src=a,o&&(s.srcset=o),()=>{e=!1}}),[r,t,a,o]),l}((0,o.Z)({},Z,{src:k,srcSet:S})),j=k||S,P=j&&"error"!==A,C=(0,o.Z)({},t,{colorDefault:!P,component:b,variant:y}),D=(e=>{const{classes:r,variant:t,colorDefault:a}=e,o={root:["root",t,a&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,n.Z)(o,f.$,r)})(C);return x=P?(0,d.jsx)(h,(0,o.Z)({alt:c,srcSet:S,src:k,sizes:w,ownerState:C,className:D.img},Z)):null!=u?u:j&&c?c[0]:(0,d.jsx)(p,{ownerState:C,className:D.fallback}),(0,d.jsx)(g,(0,o.Z)({as:b,ownerState:C,className:(0,l.Z)(D.root,v),ref:r},R,{children:x}))}))},6119:(e,r,t)=>{t.d(r,{$:()=>s,Z:()=>l});var a=t(70101),o=t(88498);function s(e){return(0,o.Z)("MuiAvatar",e)}const l=(0,a.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"])},58639:(e,r,t)=>{t.r(r),t.d(r,{avatarClasses:()=>o.Z,default:()=>a.Z,getAvatarUtilityClass:()=>o.$});var a=t(9911),o=t(6119)}}]);
//# sourceMappingURL=8639.a3e30bc6.chunk.js.map