1import{A as e,At as t,B as n,Ft as r,Hn as i,M as a,N as o,Ot as s,P as c,Pt as l,R as u,Rt as d,V as f,Zt as p,b as m,dr as h,hr as g,j as _,mt as v,pr as y,sn as b}from"./BI7FwP1v.js";import{O as x,c as S,d as C,h as w,i as T,o as E,r as D,s as O,y as k}from"./CaY3q93P.js";import{l as A}from"./CHY3bpkX.js";import{t as j}from"./s1uAWsBa.js";import{n as M}from"./DTOXHiO0.js";import{t as N}from"./TE7NbFD8.js";var P={slots:{root:`inline-flex flex-row-reverse justify-end`,base:`relative rounded-full ring-bg first:me-0`},variants:{size:{"3xs":{base:`ring -me-0.5`},"2xs":{base:`ring -me-0.5`},xs:{base:`ring -me-0.5`},sm:{base:`ring-2 -me-1.5`},md:{base:`ring-2 -me-1.5`},lg:{base:`ring-2 -me-1.5`},xl:{base:`ring-3 -me-2`},"2xl":{base:`ring-3 -me-2`},"3xl":{base:`ring-3 -me-2`}}},defaultVariants:{size:`md`}},F={__name:`UAvatarGroup`,props:{as:{type:null,required:!1},size:{type:null,required:!1},max:{type:[Number,String],required:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(n){let r=n,u=p(),f=A(),g=e(()=>C({extend:C(P),...f.ui?.avatarGroup||{}})({size:r.size})),_=e(()=>typeof r.max==`string`?Number.parseInt(r.max,10):r.max),v=e(()=>{let e=u.default?.();return e?.length&&(e=e.flatMap(e=>typeof e.type==`symbol`?typeof e.children==`string`?void 0:e.children:e).filter(Boolean)),e||[]}),y=e(()=>v.value.length?!_.value||_.value<=0?[...v.value].reverse():[...v.value].slice(0,_.value).reverse():[]),S=e(()=>v.value.length?v.value.length-y.value.length:0);return t(E,e(()=>({size:r.size}))),(e,t)=>(s(),a(i(x),{as:n.as,class:h(g.value.root({class:[r.ui?.root,r.class]}))},{default:b(()=>[S.value>0?(s(),a(D,{key:0,text:`+${S.value}`,class:h(g.value.base({class:r.ui?.base}))},null,8,[`text`,`class`])):o(``,!0),(s(!0),c(m,null,l(y.value,(e,t)=>(s(),a(d(e),{key:t,class:h(g.value.base({class:r.ui?.base}))},null,8,[`class`]))),128))]),_:1},8,[`as`,`class`]))}},I={slots:{root:`relative group/user`,wrapper:``,name:`font-medium`,description:`text-muted`,avatar:`shrink-0`},variants:{orientation:{horizontal:{root:`flex items-center`},vertical:{root:`flex flex-col`}},to:{true:{name:[`text-default peer-hover:text-highlighted`,`transition-colors`],description:[`peer-hover:text-toned`,`transition-colors`],avatar:`transform transition-transform duration-200 group-hover/user:scale-115`},false:{name:`text-highlighted`,description:``}},size:{"3xs":{root:`gap-1`,wrapper:`flex items-center gap-1`,name:`text-xs`,description:`text-xs`},"2xs":{root:`gap-1.5`,wrapper:`flex items-center gap-1.5`,name:`text-xs`,description:`text-xs`},xs:{root:`gap-1.5`,wrapper:`flex items-center gap-1.5`,name:`text-xs`,description:`text-xs`},sm:{root:`gap-2`,name:`text-xs`,description:`text-xs`},md:{root:`gap-2`,name:`text-sm`,description:`text-xs`},lg:{root:`gap-2.5`,name:`text-sm`,description:`text-sm`},xl:{root:`gap-2.5`,name:`text-base`,description:`text-sm`},"2xl":{root:`gap-3`,name:`text-base`,description:`text-base`},"3xl":{root:`gap-3`,name:`text-lg`,description:`text-base`}}},defaultVariants:{size:`md`}},L=Object.assign({inheritAttrs:!1},{__name:`UUser`,props:{as:{type:null,required:!1},name:{type:String,required:!1},description:{type:String,required:!1},avatar:{type:Object,required:!1},chip:{type:[Boolean,Object],required:!1},size:{type:null,required:!1},orientation:{type:null,required:!1,default:`horizontal`},to:{type:null,required:!1},target:{type:[String,Object,null],required:!1},onClick:{type:Function,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(t){let l=t,u=p(),d=A(),m=e(()=>C({extend:C(I),...d.ui?.user||{}})({size:l.size,orientation:l.orientation,to:!!l.to||!!l.onClick}));return(e,d)=>(s(),a(i(x),{as:t.as,"data-orientation":t.orientation,class:h(m.value.root({class:[l.ui?.root,l.class]})),onClick:t.onClick},{default:b(()=>[r(e.$slots,`avatar`,{ui:m.value},()=>[t.chip&&t.avatar?(s(),a(T,v({key:0,inset:``},typeof t.chip==`object`?t.chip:{},{size:t.size}),{default:b(()=>[f(D,v({alt:t.name},t.avatar,{size:t.size,class:m.value.avatar({class:l.ui?.avatar})}),null,16,[`alt`,`size`,`class`])]),_:1},16,[`size`])):t.avatar?(s(),a(D,v({key:1,alt:t.name},t.avatar,{size:t.size,class:m.value.avatar({class:l.ui?.avatar})}),null,16,[`alt`,`size`,`class`])):o(``,!0)]),_(`div`,{class:h(m.value.wrapper({class:l.ui?.wrapper}))},[t.to?(s(),a(S,v({key:0,"aria-label":t.name},{to:t.to,target:t.target,...e.$attrs},{class:`focus:outline-none peer`,tabindex:`-1`,raw:``}),{default:b(()=>[...d[0]||=[_(`span`,{class:`absolute inset-0`,"aria-hidden":`true`},null,-1)]]),_:1},16,[`aria-label`])):o(``,!0),r(e.$slots,`default`,{},()=>[t.name||u.name?(s(),c(`p`,{key:0,class:h(m.value.name({class:l.ui?.name}))},[r(e.$slots,`name`,{},()=>[n(g(t.name),1)])],2)):o(``,!0),t.description||u.description?(s(),c(`p`,{key:1,class:h(m.value.description({class:l.ui?.description}))},[r(e.$slots,`description`,{},()=>[n(g(t.description),1)])],2)):o(``,!0)])],2)]),_:3},8,[`as`,`data-orientation`,`class`,`onClick`]))}}),R={slots:{root:`relative group/blog-post flex flex-col rounded-lg overflow-hidden`,header:`relative overflow-hidden aspect-[16/9] w-full pointer-events-none`,body:`min-w-0 flex-1 flex flex-col`,footer
1:``,image:`object-cover object-top w-full h-full`,title:`text-xl text-pretty font-semibold text-highlighted`,description:`mt-1 text-base text-pretty`,authors:`pt-4 mt-auto flex flex-wrap gap-x-3 gap-y-1.5`,avatar:``,meta:`flex items-center gap-2 mb-2`,date:`text-sm`,badge:``},variants:{orientation:{horizontal:{root:`lg:grid lg:grid-cols-2 lg:items-center gap-x-8`,body:`justify-center p-4 sm:p-6 lg:px-0`},vertical:{root:`flex flex-col`,body:`p-4 sm:p-6`}},variant:{outline:{root:`bg-default ring ring-default`,date:`text-toned`,description:`text-muted`},soft:{root:`bg-elevated/50`,date:`text-muted`,description:`text-toned`},subtle:{root:`bg-elevated/50 ring ring-default`,date:`text-muted`,description:`text-toned`},ghost:{date:`text-toned`,description:`text-muted`,header:`shadow-lg rounded-lg`},naked:{root:`p-0 sm:p-0`,date:`text-toned`,description:`text-muted`,header:`shadow-lg rounded-lg`}},to:{true:{root:[`transition`],image:`transform transition-transform duration-200 group-hover/blog-post:scale-110`,avatar:`transform transition-transform duration-200 hover:scale-115`}},image:{true:``}},compoundVariants:[{variant:`outline`,to:!0,class:{root:`hover:bg-elevated/50`}},{variant:`soft`,to:!0,class:{root:`hover:bg-elevated`}},{variant:`subtle`,to:!0,class:{root:`hover:bg-elevated hover:ring-accented`}},{variant:`ghost`,to:!0,class:{root:`hover:bg-elevated/50`,header:[`group-hover/blog-post:shadow-none`,`transition-all`]}},{variant:`ghost`,to:!0,orientation:`vertical`,class:{header:`group-hover/blog-post:rounded-b-none`}},{variant:`ghost`,to:!0,orientation:`horizontal`,class:{header:`group-hover/blog-post:rounded-r-none`}},{orientation:`vertical`,image:!1,variant:`naked`,class:{body:`p-0 sm:p-0`}}],defaultVariants:{variant:`outline`}},z=[`datetime`],B=Object.assign({inheritAttrs:!1},{__name:`UBlogPost`,props:{as:{type:null,required:!1,default:`article`},title:{type:String,required:!1},description:{type:String,required:!1},date:{type:[String,Date],required:!1},badge:{type:[String,Object],required:!1},authors:{type:Array,required:!1},image:{type:[String,Object],required:!1},orientation:{type:null,required:!1,default:`vertical`},variant:{type:null,required:!1},to:{type:null,required:!1},target:{type:[String,Object,null],required:!1},onClick:{type:Function,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(t){let u=t,T=p(),{locale:E}=M(),k=A(),P=j(E.value.code),I=e(()=>C({extend:C(R),...k.ui?.blogPost||{}})({orientation:u.orientation,variant:u.variant,image:!!u.image,to:!!u.to||!!u.onClick})),B=e(()=>{if(u.date)try{return P.custom(new Date(u.date),{dateStyle:`medium`})}catch{return u.date}}),V=e(()=>{if(u.date)try{return new Date(u.date).toISOString()}catch{return}}),H=e(()=>(T.title&&w(T.title())||u.title||`Post link`).trim());return(e,p)=>(s(),a(i(x),{as:t.as,"data-orientation":t.orientation,class:h(I.value.root({class:[u.ui?.root,u.class]})),onClick:t.onClick},{default:b(()=>[t.image||T.header?(s(),c(`div`,{key:0,class:h(I.value.header({class:u.ui?.header}))},[r(e.$slots,`header`,{ui:I.value},()=>[(s(),a(d(i(O)),v(typeof t.image==`string`?{src:t.image,alt:t.title}:{alt:t.title,...t.image},{class:I.value.image({class:u.ui?.image,to:!!t.to})}),null,16,[`class`]))])],2)):o(``,!0),_(`div`,{class:h(I.value.body({class:u.ui?.body}))},[t.to?(s(),a(S,v({key:0,"aria-label":H.value},{to:t.to,target:t.target,...e.$attrs},{class:`focus:outline-none peer`,tabindex:`-1`,raw:``}),{default:b(()=>[...p[0]||=[_(`span`,{class:`absolute inset-0`,"aria-hidden":`true`},null,-1)]]),_:1},16,[`aria-label`])):o(``,!0),r(e.$slots,`body`,{},()=>[B.value||T.date||t.badge||T.badge?(s(),c(`div`,{key:0,class:h(I.value.meta({class:u.ui?.meta}))},[r(e.$slots,`badge`,{},()=>[t.badge?(s(),a(N,v({key:0,color:`neutral`,variant:`subtle`},typeof t.badge==`string`?{label:t.badge}:t.badge,{class:I.value.badge({class:u.ui?.badge})}),null,16,[`class`])):o(``,!0)]),B.value||T.date?(s(),c(`time`,{key:0,datetime:V.value,class:h(I.value.date({class:u.ui?.date}))},[r(e.$slots,`date`,{},()=>[n(g(B.value),1)])],10,z)):o(``,!0)],2)):o(``,!0),t.title||T.title?(s(),c(`h2`,{key:1,class:h(I.value.title({class:u.ui?.title}))},[r(e.$slots,`title`,{},()=>
1[n(g(t.title),1)])],2)):o(``,!0),t.description||T.description?(s(),c(`div`,{key:2,class:h(I.value.description({class:u.ui?.description}))},[r(e.$slots,`description`,{},()=>[n(g(t.description),1)])],2)):o(``,!0),t.authors?.length||T.authors?(s(),c(`div`,{key:3,class:h(I.value.authors({class:u.ui?.authors}))},[r(e.$slots,`authors`,{ui:I.value},()=>[t.authors?.length?(s(),c(m,{key:0},[t.authors.length>1?(s(),a(F,{key:0},{default:b(()=>[(s(!0),c(m,null,l(t.authors,(e,t)=>(s(),a(S,{key:t,to:e.to,target:e.target,class:h(I.value.avatar({class:u.ui?.avatar,to:!!e.to})),raw:``},{default:b(()=>[f(D,v({ref_for:!0},e.avatar),null,16)]),_:2},1032,[`to`,`target`,`class`]))),128))]),_:1})):(s(),a(L,y(v({key:1},t.authors[0])),null,16))],64)):o(``,!0)])],2)):o(``,!0)])],2),T.footer?(s(),c(`div`,{key:1,class:h(I.value.footer({class:u.ui?.footer}))},[r(e.$slots,`footer`)],2)):o(``,!0)]),_:3},8,[`as`,`data-orientation`,`class`,`onClick`]))}}),V={base:`flex flex-col gap-8 lg:gap-y-16`,variants:{orientation:{horizontal:`sm:grid sm:grid-cols-2 lg:grid-cols-3`,vertical:``}}},H={__name:`UBlogPosts`,props:{as:{type:null,required:!1},posts:{type:Array,required:!1},orientation:{type:null,required:!1,default:`horizontal`},class:{type:null,required:!1}},setup(t){let n=t,o=p(),d=()=>k(o,[`default`]),f=A(),g=e(()=>C({extend:C(V),...f.ui?.blogPosts||{}}));return(e,o)=>(s(),a(i(x),{as:t.as,"data-orientation":t.orientation,class:h(g.value({orientation:t.orientation,class:n.class}))},{default:b(()=>[r(e.$slots,`default`,{},()=>[(s(!0),c(m,null,l(t.posts,(n,i)=>(s(),a(B,v({key:i,orientation:t.orientation===`vertical`?`horizontal`:`vertical`},{ref_for:!0},n),u({_:2},[l(d(),(t,i)=>({name:i,fn:b(t=>[r(e.$slots,i,v({ref_for:!0},t,{post:n}))])}))]),1040,[`orientation`]))),128))])]),_:3},8,[`as`,`data-orientation`,`class`]))}};export{B as n,H 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.