1import{A as e,At as t,C as n,D as r,Ft as i,G as a,J as o,Lt as s,M as c,N as l,Ot as u,Pt as d,S as f,W as p,X as m,_ as h,et as g,h as _,it as v,lt as y,v as b,xt as x,y as S}from"./Cu5EK3MG.js";import{t as C}from"./D8p4Kd5H.js";import{t as w}from"./fyVXawhh.js";import{r as T}from"./BmwUqp3J.js";import{n as E,t as D}from"./DFSl7J5J.js";import{n as O,t as k}from"./C5KWXw8I.js";import{t as A}from"./dk2k5Vsz.js";var j=Symbol(`nuxt-ui.avatar-group`);function M(t){let n=e(j,void 0),r=_(()=>t.size??n?.value.size);return a(j,_(()=>({size:r.value}))),{size:r}}var N={slots:{root:`relative inline-flex items-center justify-center shrink-0`,base:`rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap`},variants:{color:{primary:`bg-primary`,secondary:`bg-secondary`,success:`bg-success`,info:`bg-info`,warning:`bg-warning`,error:`bg-error`,neutral:`bg-inverted`},size:{"3xs":`h-[4px] min-w-[4px] text-[4px]`,"2xs":`h-[5px] min-w-[5px] text-[5px]`,xs:`h-[6px] min-w-[6px] text-[6px]`,sm:`h-[7px] min-w-[7px] text-[7px]`,md:`h-[8px] min-w-[8px] text-[8px]`,lg:`h-[9px] min-w-[9px] text-[9px]`,xl:`h-[10px] min-w-[10px] text-[10px]`,"2xl":`h-[11px] min-w-[11px] text-[11px]`,"3xl":`h-[12px] min-w-[12px] text-[12px]`},position:{"top-right":`top-0 right-0`,"bottom-right":`bottom-0 right-0`,"top-left":`top-0 left-0`,"bottom-left":`bottom-0 left-0`},inset:{false:``},standalone:{false:`absolute`}},compoundVariants:[{position:`top-right`,inset:!1,class:`-translate-y-1/2 translate-x-1/2 transform`},{position:`bottom-right`,inset:!1,class:`translate-y-1/2 translate-x-1/2 transform`},{position:`top-left`,inset:!1,class:`-translate-y-1/2 -translate-x-1/2 transform`},{position:`bottom-left`,inset:!1,class:`translate-y-1/2 -translate-x-1/2 transform`}],defaultVariants:{size:`md`,color:`primary`,position:`top-right`}},P=Object.assign({inheritAttrs:!1},{__name:`UChip`,props:c({as:{type:null,required:!1},text:{type:[String,Number],required:!1},color:{type:null,required:!1},size:{type:null,required:!1},position:{type:null,required:!1},inset:{type:Boolean,required:!1,default:!1},standalone:{type:Boolean,required:!1,default:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},{show:{type:Boolean,default:!0},showModifiers:{}}),emits:[`update:show`],setup(e){let a=e,c=g(e,`show`,{type:Boolean,default:!0}),{size:l}=M(a),u=T(),m=E(`chip`,a),v=_(()=>D({extend:D(N),...u.ui?.chip||{}})({color:a.color,size:l.value,position:a.position,inset:a.inset,standalone:a.standalone}));return(l,u)=>(p(),h(t(k),{as:e.as,"data-slot":`root`,class:d(v.value.root({class:[t(m)?.root,a.class]}))},{default:y(()=>[n(t(O),i(r(l.$attrs)),{default:y(()=>[o(l.$slots,`default`)]),_:3},16),c.value?(p(),S(`span`,{key:0,"data-slot":`base`,class:d(v.value.base({class:t(m)?.base}))},[o(l.$slots,`content`,{},()=>[f(s(e.text),1)])],2)):b(``,!0)]),_:3},8,[`as`,`class`]))}}),F={slots:{root:`inline-flex items-center justify-center shrink-0 select-none rounded-full align-middle bg-elevated`,image:`h-full w-full rounded-[inherit] object-cover`,fallback:`font-medium leading-none text-muted truncate`,icon:`text-muted shrink-0`},variants:{size:{"3xs":{root:`size-4 text-[8px]`},"2xs":{root:`size-5 text-[10px]`},xs:{root:`size-6 text-xs`},sm:{root:`size-7 text-sm`},md:{root:`size-8 text-base`},lg:{root:`size-9 text-lg`},xl:{root:`size-10 text-xl`},"2xl":{root:`size-11 text-[22px]`},"3xl":{root:`size-12 text-2xl`}}},defaultVariants:{size:`md`}},I=Object.assign({inheritAttrs:!1},{__name:`UAvatar`,props:{as:{type:null,required:!1},src:{type:String,required:!1},alt:{type:String,required:!1},icon:{type:null,required:!1},text:{type:String,required:!1},size:{type:null,required:!1},chip:{type:[Boolean,Object],required:!1},class:{type:null,required:!1},style:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){let n=e,r=_(()=>typeof n.as==`string`||typeof n.as?.render==`function`?{root:n.as}:C(n.as,{root:`span`})),a=_(()=>n.text||(n.alt||``).split(` `).map(e=>e.charAt(0)).join(``).substring(0,2)),c=T(),u=E(`avatar`,n),{size:f}=M(n),g=_(()=>D({extend:D(F),...c.ui?.avatar||{}})({size:f.value})),b=_(()=>({"3xs":16,"2xs":20,xs:24,sm:28,md:32,lg:36,xl:40,"2xl":44,"3xl":48})[n.size||`md`]),j=x(!1);v(()=>n.src,()=>{j.value&&=!1});function N(){j.value=!0}return(c,f)=>(p(),h(m(n.chip?P:t(k)),l({as:r.value.root},n.chip?typeof n.chip==`object`?{inset:!0,...n.chip}:{inset:!0}:{},{"data-slot":`root`,class:g.value.root({class:[t(u)?.root,n.class]}),style:n.style}),{default:y(()=>[e.src&&!j.value?(p(),h(m(r.value.img||t(w)),l({key:0,src:e.src,alt:e.alt,width:b.value,height:b.value},c.$attrs,{"data-slot":`image`,class:g.value.image({class:t(u)?.image}),onError:N}),null,16,[`src`,`alt`,`width`,`height`,`class`])):(p(),h(t(O),i(l({key:1},c.$attrs)),{default:y(()=>[o(c.$slots,`default`,{},()=>[e.icon?(p(),h(A,{key:0,name:e.icon,"data-slot":`icon`,class:d(g.value.icon({class:t(u)?.icon}))},null,8,[`name`,`class`])):(p(),S(`span`,{key:1,"data-slot":`fallback`,class:d(g.value.fallback({class:t(u)?.fallback}))},s(a.value||`\xA0`),3))])]),_:3},16))]),_:3},16,[`as`,`class`,`style`]))}});function L(e){let t=T(),n=_(()=>u(e)),r=_(()=>n.value.icon&&n.value.leading||n.value.icon&&!n.value.trailing||n.value.loading&&!n.value.trailing||!!n.value.leadingIcon);return{isLeading:r,isTrailing:_(()=>n.value.icon&&n.value.trailing||n.value.loading&&n.value.trailing||!!n.value.trailingIcon),leadingIconName:_(()=>n.value.loading?n.value.loadingIcon||t.ui.icons.loading:n.value.leadingIcon||n.value.icon),trailingIconName:_(()=>n.value.loading&&!r.value?n.value.loadingIcon||t.ui.icons.loading:n.value.trailingIcon||n.value.icon)}}var R=Symbol(`nuxt-ui.field-group`);function z(t){let n=e(R,void 0);return{orientation:_(()=>n?.value.orientation),size:_(()=>t?.size??n?.value.size)}}export{P as i,L as n,I as r,z 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.