import{_A as e}from"./lucide-C4oWPzu4.js";import{p as t}from"./utils-Bs-0X7qI.js";import{r as n}from"./bundle-mjs-C4g7ASB5.js";import{a as r,n as i,t as a}from"./avatar-2mUdOuGo.js";import{n as o,t as s}from"./provider-icons-DYVbESzn.js";var c=t(),l=n(),u=t=>{let n=(0,c.c)(15),{provider:u,iconUrl:d,name:f,size:p,className:m,children:h}=t,g=p===void 0?`md`:p,_=m===void 0?``:m,v=g===`sm`?`size-8`:`size-12`,y=g===`sm`?`size-6`:`size-8`,b=`center bg-muted relative ${v} rounded-lg after:rounded-lg ${_}`,x=`${y} rounded-lg`,S;n[0]!==d||n[1]!==f||n[2]!==x?(S=(0,l.jsx)(r,{src:d,alt:f,className:x}),n[0]=d,n[1]=f,n[2]=x,n[3]=S):S=n[3];let C=`${v} rounded-lg`,w;n[4]!==y||n[5]!==u?(w=Object.keys(o).includes(u)?(0,l.jsx)(s,{className:y,provider:u}):(0,l.jsx)(e,{className:y}),n[4]=y,n[5]=u,n[6]=w):w=n[6];let T;n[7]!==C||n[8]!==w?(T=(0,l.jsx)(i,{className:C,children:w}),n[7]=C,n[8]=w,n[9]=T):T=n[9];let E;return n[10]!==h||n[11]!==b||n[12]!==S||n[13]!==T?(E=(0,l.jsxs)(a,{className:b,children:[S,T,h]}),n[10]=h,n[11]=b,n[12]=S,n[13]=T,n[14]=E):E=n[14],E};export{u as t};