import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{_ as r,ht as i,t as a,w as o,x as s,y as c}from"./dist-DtfJeYQK.js";import{t as l}from"./jsx-runtime-C2wGStra.js";import{n as u,t as d}from"./dist-Cc1j9Pjk.js";import{n as f,t as p}from"./filterAttributesPassedByRadixUIAtRuntime-CGiuUnR2.js";var m,h,g=t((()=>{m=`Avatar__K41Tw`,h={Avatar:m,"Avatar--size-24":`Avatar--size-24__hDb5G`,"Avatar--size-32":`Avatar--size-32__0goVI`,"Avatar--size-48":`Avatar--size-48__uGMSJ`,"Avatar--size-64":`Avatar--size-64__WD77O`,"Avatar--size-96":`Avatar--size-96__OxIe2`,"Avatar--size-160":`Avatar--size-160__8tEPo`,"Avatar--narrow-l--size-24":`Avatar--narrow-l--size-24__L-54O`,"Avatar--narrow-l--size-32":`Avatar--narrow-l--size-32__Mdeh3`,"Avatar--narrow-l--size-48":`Avatar--narrow-l--size-48__1xNsg`,"Avatar--narrow-l--size-64":`Avatar--narrow-l--size-64__ZQ5C-`,"Avatar--narrow-l--size-96":`Avatar--narrow-l--size-96__DuZVB`,"Avatar--narrow-l--size-160":`Avatar--narrow-l--size-160__PN1pX`,"Avatar--medium-s--size-24":`Avatar--medium-s--size-24__6--6m`,"Avatar--medium-s--size-32":`Avatar--medium-s--size-32__7rlpv`,"Avatar--medium-s--size-48":`Avatar--medium-s--size-48__R893D`,"Avatar--medium-s--size-64":`Avatar--medium-s--size-64__x4N0d`,"Avatar--medium-s--size-96":`Avatar--medium-s--size-96__1qdaO`,"Avatar--medium-s--size-160":`Avatar--medium-s--size-160__z7IAl`,"Avatar--medium-l--size-24":`Avatar--medium-l--size-24__Ndkzw`,"Avatar--medium-l--size-32":`Avatar--medium-l--size-32__3miIB`,"Avatar--medium-l--size-48":`Avatar--medium-l--size-48__arPBB`,"Avatar--medium-l--size-64":`Avatar--medium-l--size-64__aFQa7`,"Avatar--medium-l--size-96":`Avatar--medium-l--size-96__eg03F`,"Avatar--medium-l--size-160":`Avatar--medium-l--size-160__fGJ7K`,"Avatar--wide-s--size-24":`Avatar--wide-s--size-24__Ue7o0`,"Avatar--wide-s--size-32":`Avatar--wide-s--size-32__hYoGY`,"Avatar--wide-s--size-48":`Avatar--wide-s--size-48__Q9kzJ`,"Avatar--wide-s--size-64":`Avatar--wide-s--size-64__vvQME`,"Avatar--wide-s--size-96":`Avatar--wide-s--size-96__tVnz3`,"Avatar--wide-s--size-160":`Avatar--wide-s--size-160__brJ59`,"Avatar--wide-l--size-24":`Avatar--wide-l--size-24__EMfbp`,"Avatar--wide-l--size-32":`Avatar--wide-l--size-32__7bYZs`,"Avatar--wide-l--size-48":`Avatar--wide-l--size-48__548Bt`,"Avatar--wide-l--size-64":`Avatar--wide-l--size-64__5Ce08`,"Avatar--wide-l--size-96":`Avatar--wide-l--size-96__-6w7Y`,"Avatar--wide-l--size-160":`Avatar--wide-l--size-160__5ft-T`,"Avatar--round":`Avatar--round__ZDtGc`}})),_,v,y,b=t((()=>{o(),d(),a(),_=e(n(),1),f(),g(),v=l(),y=(0,_.forwardRef)(function({size:e=`32`,round:t,src:n,alt:a=``,dataset:o,crossOrigin:l,...d},f){let m=t??!0,g=c(h,u.Avatar,[s(`size`,e),r(`round`,void 0,m)]);return(0,v.jsx)(`picture`,{...p(d),ref:f,className:g.join(` `),...i(o,{preplyDsComponent:u.Avatar}),children:(0,v.jsx)(`img`,{src:n||`https://static.preply.com/ds/avatar/default-tokyo-ui.svg`,alt:a,crossOrigin:l})})});try{y.displayName=`Avatar`,y.__docgenInfo={description:``,displayName:`Avatar`,props:{size:{defaultValue:{value:`32`},description:``,name:`size`,required:!1,type:{name:`enum`,value:[{value:`"64"`},{value:`"96"`},{value:`"160"`},{value:`"24"`},{value:`"32"`},{value:`"48"`},{value:`ResponsiveProp<AvatarSize>`}]}},round:{defaultValue:null,description:`@deprecated this prop is deprecated and has no effect`,name:`round`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},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:{value:``},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`}]}},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`}]}},crossOrigin:{defaultValue:null,description:`CORS policy for the image.`,name:`crossOrigin`,required:!1,type:{name:`enum`,value:[{value:`""`},{value:`"anonymous"`},{value:`"use-credentials"`}]}}}}}catch{}}));export{b as n,y as t};