PageSourceSearch

https://upfan.io/_nuxt/CFWtcovN.js

js upfan.io collected 2026-10-09 23:13:53 UTC 6,433 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a12184-60cb-74c0-98a4-9777ba753473")}catch(e){}}();import{n as e}from"./hePW80VL.js";import{i as t}from"./DTjptQgf.js";import{$ as n,D as r,E as i,Ft as a,Ht as o,J as s,On as c,Qn as l,b as u,er as d,et as f,g as p,gt as m,mt as h,nr as g,qt as _,v,vn as y,wt as b,xt as x,y as S,z as C}from"./DbxE_9Sz.js";import{t as w}from"./DOUwwqIF.js";import{n as T,t as E}from"./BGCc06qv.js";import{n as D,t as O}from"./ZmDobQWi.js";import{t as k}from"./BWrfiiCH.js";import{t as A}from"./DWsJhtzb.js";var j=Symbol(`nuxt-ui.avatar-group`);function M(e){let t=s(j,void 0),n=p(()=>e.size??t?.value.size),r=p(()=>e.color??t?.value.color);return m(j,p(()=>({size:n.value,color:r.value}))),{size:n,color: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:n({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 t=e,n=T(`chip`,t),o=a(e,`show`,{type:Boolean,default:!0}),{size:s}=M(t),f=w(),m=p(()=>E({extend:N,...f.ui?.chip||{}})({color:n.color,size:s.value??n.size,position:n.position,inset:n.inset,standalone:n.standalone}));return(e,t)=>(h(),v(c(O),{as:c(n).as,"data-slot":e.$attrs[`data-slot`]??`root`,class:l(m.value.root({class:[c(n).ui?.root,c(n).class]}))},{default:_(()=>[r(c(D),d(C({...e.$attrs,"data-slot":void 0})),{default:_(()=>[x(e.$slots,`default`)]),_:3},16),o.value?(h(),u(`span`,{key:0,"data-slot":`base`,class:l(m.value.base({class:c(n).ui?.base}))},[x(e.$slots,`content`,{},()=>[i(g(c(n).text),1)])],2)):S(``,!0)]),_:3},8,[`as`,`data-slot`,`class`]))}}),F={slots:{root:`inline-flex items-center justify-center shrink-0 select-none rounded-full align-middle`,image:`h-full w-full rounded-[inherit] object-cover`,fallback:`font-medium truncate`,icon:`shrink-0`},variants:{color:{primary:{root:`bg-primary/10`,fallback:`text-primary`,icon:`text-primary`},secondary:{root:`bg-secondary/10`,fallback:`text-secondary`,icon:`text-secondary`},success:{root:`bg-success/10`,fallback:`text-success`,icon:`text-success`},info:{root:`bg-info/10`,fallback:`text-info`,icon:`text-info`},warning:{root:`bg-warning/10`,fallback:`text-warning`,icon:`text-warning`},error:{root:`bg-error/10`,fallback:`text-error`,icon:`text-error`},neutral:{root:`bg-elevated`,fallback:`text-muted`,icon:`text-muted`}},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`,color:`neutral`}},I=e({default:()=>L}),L=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},color:{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=T(`avatar`,n),i=p(()=>typeof r.as==`string`||typeof r.as?.render==`function`?{root:r.as}:t(r.as,{root:`span`})),a=p(()=>r.text||(r.alt||``).split(` `).map(e=>e.charAt(0)).join(``).substring(0,2)),s=w(),{size:m,color:S}=M(n),C=p(()=>E({extend:F,...s.ui?.avatar||{}})({size:m.value??r.size,color:S.value??r.color})),j=p(()=>C.value.root({class:[r.ui?.root,r.class]})),N=p(()=>{let e=(j.value||``).split(` `).find(e=>/^size-\d+$/.test(e));if(e){let t=Number.parseFloat(e.split(`-`)[1]??``);if(!Number.isNaN(t))return t*4}return null}),I=y(!1);o(()=>r.src,()=>{I.value&&=!1});function L(){I.value=!0}return(e,t)=>(h(),v(b(c(r).chip?P:c(O)),f({as:i.value.root},c(r).chip?typeof c(r).chip==`object`?{inset:!0,...c(r).chip}:{inset:!0}:{},{"data-slot":e.$attrs[`data-slot`]??`root`,class:j.value,style:c(r).style}),{default:_(()=>[c(r).src&&!I.value?(h(),v(b(i.value.img||c(A)),f({key:0,src:c(r).src,alt:c(r).alt,width:N.value,height:N.value},e.$attrs,{"data-slot":`image`,class:C.value.image({class:c(r).ui?.image}),onError:L}),null,16,[`src`,`alt`,`width`,`height`,`class`])):(h(),v(c(D),d(f({key:1},{...e.$attrs,"data-slot":void 0})),{default:_(()=>[x(e.$slots,`default`,{},()=>[c(r).icon?(h(),v(k,{key:0,name:c(r).icon,"data-slot":`icon`,class:l(C.value.icon({class:c(r).ui?.icon}))},null,8,[`name`,`class`])):(h(),u(`span`,{key:1,"data-slot":`fallback`,class:l(C.value.fallback({class:c(r).ui?.fallback}))},g(a.value||`\xA0`),3))])]),_:3},16))]),_:3},16,[`as`,`data-slot`,`class`,`style`]))}});
1export{L as n,P as r,I as t};
2//# chunkId=01a12184-60cb-74c0-98a4-9777ba753473

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.