1import{D as e,N as t,b as n}from"./Ssl5WjxV.js";import{D as r,O as i,d as a,f as o,h as s,k as c,y as l}from"./CJcG5UPG.js";import{t as u}from"./DQud5Z5r.js";import{t as d}from"./D_LQEvRb.js";var f=t(e()),p=t(n()),m=d((0,p.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`);function h(e){return i(`MuiAvatar`,e)}r(`MuiAvatar`,[`root`,`colorDefault`,`circular`,`rounded`,`square`,`img`,`fallback`]);var g=e=>{let{classes:t,variant:n,colorDefault:r}=e;return l({root:[`root`,n,r&&`colorDefault`],img:[`img`],fallback:[`fallback`]},h,t)},_=s(`div`,{name:`MuiAvatar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(o(({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]})}}}]}))),v=s(`img`,{name:`MuiAvatar`,slot:`Img`,overridesResolver:(e,t)=>t.img})({width:`100%`,height:`100%`,textAlign:`center`,objectFit:`cover`,color:`transparent`,textIndent:1e4}),y=s(m,{name:`MuiAvatar`,slot:`Fallback`,overridesResolver:(e,t)=>t.fallback})({width:`75%`,height:`75%`});function b({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){let[i,a]=f.useState(!1);return f.useEffect(()=>{if(!n&&!r)return;a(!1);let i=!0,o=new Image;return o.onload=()=>{i&&a(`loaded`)},o.onerror=()=>{i&&a(`error`)},o.crossOrigin=e,o.referrerPolicy=t,o.src=n,r&&(o.srcset=r),()=>{i=!1}},[e,t,n,r]),i}var x=f.forwardRef(function(e,t){let n=a({props:e,name:`MuiAvatar`}),{alt:r,children:i,className:o,component:s=`div`,slots:l={},slotProps:d={},imgProps:f,sizes:m,src:h,srcSet:x,variant:S=`circular`,...C}=n,w=null,T={...n,component:s,variant:S},E=b({...f,...typeof d.img==`function`?d.img(T):d.img,src:h,srcSet:x}),D=h||x,O=D&&E!==`error`;T.colorDefault=!O,delete T.ownerState;let k=g(T),[A,j]=u(`img`,{className:k.img,elementType:v,externalForwardedProps:{slots:l,slotProps:{img:{...f,...d.img}}},additionalProps:{alt:r,src:h,srcSet:x,sizes:m},ownerState:T});return w=O?(0,p.jsx)(A,{...j}):i||i===0?i:D&&r?r[0]:(0,p.jsx)(y,{ownerState:T,className:k.fallback}),(0,p.jsx)(_,{as:s,className:c(k.root,o),ref:t,...C,ownerState:T,children:w})});export{x as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.