PageSourceSearch

https://modri.io/_nuxt/EDgNeKgg.js

js modri.io collected 2026-10-02 01:58:49 UTC 6,851 bytes, 1 lines download raw bytes

1import{$ as e,D as t,E as n,En as r,Ft as i,Ht as a,J as o,On as s,Qn as c,b as l,er as u,et as d,g as f,gt as p,k 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"./CoKk4mC0.js";import{t as w}from"./C4iFnHmC.js";import{t as T}from"./C1zYdwCJ.js";import{n as E,t as D}from"./B91x8EJ9.js";import{n as O,t as k}from"./nF07GXyx2.js";import{t as A}from"./C13NNqIx.js";function j(e){let t=T(),n=f(()=>r(e)),i=f(()=>n.value.icon&&n.value.leading||n.value.icon&&!n.value.trailing||n.value.loading&&!n.value.trailing||!!n.value.leadingIcon);return{isLeading:i,isTrailing:f(()=>n.value.icon&&n.value.trailing||n.value.loading&&n.value.trailing||!!n.value.trailingIcon&&n.value.trailing!==!1),leadingIconName:f(()=>n.value.loading?n.value.loadingIcon||t.ui.icons.loading:n.value.leadingIcon||n.value.icon),trailingIconName:f(()=>n.value.loading&&!i.value?n.value.loadingIcon||t.ui.icons.loading:n.value.trailingIcon||n.value.icon)}}var M=Symbol(`nuxt-ui.field-group`);function N(e){let t=o(M,void 0);return{orientation:f(()=>t?.value.orientation),size:f(()=>e?.size??t?.value.size)}}var P=m({name:`FieldGroupReset`,setup(e,{slots:t}){return p(M,f(()=>({size:void 0,orientation:void 0}))),()=>t.default?.()}}),F=Symbol(`nuxt-ui.avatar-group`);function I(e){let t=o(F,void 0),n=f(()=>e.size??t?.value.size),r=f(()=>e.color??t?.value.color);return p(F,f(()=>({size:n.value,color:r.value}))),{size:n,color:r}}var L={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`}},R=Object.assign({inheritAttrs:!1},{__name:`UChip`,props:e({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 r=e,a=E(`chip`,r),o=i(e,`show`,{type:Boolean,default:!0}),{size:d}=I(r),p=T(),m=f(()=>D({extend:L,...p.ui?.chip||{}})({color:a.color,size:d.value??a.size,position:a.position,inset:a.inset,standalone:a.standalone}));return(e,r)=>(h(),v(s(k),{as:s(a).as,"data-slot":e.$attrs[`data-slot`]??`root`,class:c(m.value.root({class:[s(a).ui?.root,s(a).class]}))},{default:_(()=>[t(s(O),u(C({...e.$attrs,"data-slot":void 0})),{default:_(()=>[x(e.$slots,`default`)]),_:3},16),o.value?(h(),l(`span`,{key:0,"data-slot":`base`,class:c(m.value.base({class:s(a).ui?.base}))},[x(e.$slots,`content`,{},()=>[n(g(s(a).text),1)])],2)):S(``,!0)]),_:3},8,[`as`,`data-slot`,`class`]))}}),z={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`}},B=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 t=e,n=E(`avatar`,t),r=f(()=>typeof n.as==`string`||typeof n.as?.render==`function`?{root:n.as}:w(n.as,{root:`span`})),i=f(()=>n.text||(n.alt||``).split(` `).map(e=>e.charAt(0)).join(``).substring(0,2)),o=T(),{size:p,color:m}=I(t),S=f(()=>D({extend:z,...o.ui?.avatar||{}})({size:p.value??n.size,color:m.value??n.color})),C=f(()=>S.value.root({class:[n.ui?.root,n.class]})),j=f(()=>{let e=(C.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}),M=y(!1);a(()=>n.src,()=>{M.value&&=!1});function N(){M.value=!0}return(e,t)=>(h(),v(b(s(n).chip?R:s(k)),d({as:r.value.root},s(n).chip?typeof s(n).chip==`object`?{inset:!0,...s(n).chip}:{inset:!0}:{},{"data-slot":e.$attrs[`data-slot`]??`root`,class:C.value,style:s(n).style}),{default:_(()=>[s(n).src&&!M.value?(h(),v(b(r.value.img||s(`img`)),d({key:0,src:s(n).src,alt:s(n).alt,width:j.value,height:j.value},e.$attrs,{"data-slot":`image`,class:S.value.image({class:s(n).ui?.image}),onError:N}),null,16,[`src`,`alt`,`width`,`height`,`class`])):(h(),v(s(O),u(d({ke
1y:1},{...e.$attrs,"data-slot":void 0})),{default:_(()=>[x(e.$slots,`default`,{},()=>[s(n).icon?(h(),v(A,{key:0,name:s(n).icon,"data-slot":`icon`,class:c(S.value.icon({class:s(n).ui?.icon}))},null,8,[`name`,`class`])):(h(),l(`span`,{key:1,"data-slot":`fallback`,class:c(S.value.fallback({class:s(n).ui?.fallback}))},g(i.value||`\xA0`),3))])]),_:3},16))]),_:3},16,[`as`,`data-slot`,`class`,`style`]))}});export{j as a,N as i,R as n,P as r,B 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.