import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{_ as r,b as i,ht as a,t as o,w as s,x as c,y as l}from"./dist-DtfJeYQK.js";import{t as u}from"./jsx-runtime-C2wGStra.js";import{n as d,t as f}from"./dist-Cc1j9Pjk.js";import{n as p,t as m}from"./filterAttributesPassedByRadixUIAtRuntime-CGiuUnR2.js";import{n as h,t as g}from"./Avatar-CMdkc4SN.js";var _,v,y=t((()=>{_=`AvatarWithStatus__z8Zik`,v={AvatarWithStatus:_,"AvatarWithStatus--indicator":`AvatarWithStatus--indicator__dsdXa`,"AvatarWithStatus--online":`AvatarWithStatus--online__pGAFw`,"AvatarWithStatus--size-64":`AvatarWithStatus--size-64__vG-kB`,"AvatarWithStatus--size-96":`AvatarWithStatus--size-96__Dgqc1`,"AvatarWithStatus--size-160":`AvatarWithStatus--size-160__7gCR7`}})),b,x,S,C=t((()=>{s(),f(),o(),b=e(n(),1),p(),h(),y(),x=u(),S=(0,b.forwardRef)(function({online:e=!1,size:t=`64`,dataset:n,alt:o,crossOrigin:s,src:u,...f},p){let h=l(v,d.AvatarWithStatus,[r(`online`,void 0,e),c(`size`,t)]),_=[...i(v,d.AvatarWithStatus,[`indicator`])];return(0,x.jsxs)(`div`,{...m(f),ref:p,className:h.join(` `),...a(n,{preplyDsComponent:d.AvatarWithStatus}),children:[(0,x.jsx)(`span`,{className:_.join(` `)}),(0,x.jsx)(`div`,{children:(0,x.jsx)(g,{alt:o,crossOrigin:s,src:u,size:t??`32`})})]})});try{S.displayName=`AvatarWithStatus`,S.__docgenInfo={description:``,displayName:`AvatarWithStatus`,props:{dataset:{defaultValue:null,description:`Sets data attributes on the DOM element.
@example <Avatar dataset={{ 'qa-id': 'user-avatar' }} /> // will add data-qa-id="user-avatar" to the HTML element`,name:`dataset`,required:!1,type:{name:`enum`,value:[{value:`Dataset`}]}},src:{defaultValue:null,description:`The avatar image URL.
If not provided, the default placeholder image is used instead.`,name:`src`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},alt:{defaultValue:null,description:`A description of the image.
This is recommended for accessibility purposes, specifically for users
of screen readers.
@example <Avatar src={...} alt="Foobar's profile" />`,name:`alt`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},crossOrigin:{defaultValue:null,description:`CORS policy for the image.`,name:`crossOrigin`,required:!1,type:{name:`enum`,value:[{value:`""`},{value:`"anonymous"`},{value:`"use-credentials"`}]}},online:{defaultValue:{value:`false`},description:`Controls the status of the visual indicator.`,name:`online`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},size:{defaultValue:{value:`64`},description:``,name:`size`,required:!1,type:{name:`enum`,value:[{value:`"64"`},{value:`"96"`},{value:`"160"`},{value:`ResponsiveProp<AvatarWithStatusSize>`}]}}}}}catch{}}));export{C as n,S as t};