PageSourceSearch

https://www.ottohub.cn/assets/BlogForwardCard-qsJzciuN.js

js ottohub.cn collected 2026-10-06 13:14:40 UTC 3,198 bytes, 1 lines download raw bytes

1import{n as e}from"./rolldown-runtime-hePW80VL.js";import{$ as t,C as n,D as r,E as i,F as a,J as o,K as s,N as c,O as l,T as u,W as d,Y as f,c as p,ct as m,k as h,n as g,st as _,ut as v}from"./vendor-vue-Bu-KQjoC.js";import{rt as y,s as b}from"./index-BE2-dWra.js";import{l as x}from"./blogMeta-BvgcPzkT.js";import{t as S}from"./BlogContentRenderer-qER_0Wwh.js";import{t as C}from"./BlogCachedImage-DqWEj00t.js";import{t as w}from"./GoreBadge-BvRTN-pY.js";var T={class:`border-b border-border px-2.5 py-1.5 text-[10px] text-muted`},E={class:`p-2.5`},D={key:0,class:`text-[12px] text-secondary`},O={class:`flex items-start gap-2`},k=[`src`,`alt`],A={key:1,class:`flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-border bg-base text-muted`},j={class:`min-w-0 flex-1`},M={class:`truncate text-[12px] font-semibold text-primary`},N={class:`mt-0.5 line-clamp-2 text-[12px] font-medium leading-snug text-primary`},P={key:0,class:`blog-forward-preview mt-1 text-[11px] text-secondary`},F={key:1,class:`mt-1.5`},I=a({__name:`BlogForwardCard`,props:{forward:{},compact:{type:Boolean,default:!1},responsiveMediaWidth:{type:Boolean,default:!1}},setup(e){let a=e,{t:y}=g(),I=p(),L=u(()=>`/b/${a.forward.bid}`),R=u(()=>a.forward.isUnavailable?y(`blog.forwardUnavailable`,{bid:a.forward.bid}):a.forward.title||y(`blog.untitled`,{bid:a.forward.bid})),z=u(()=>a.forward.isUnavailable?``:x(a.forward.content||``)),B=u(()=>!a.forward.isUnavailable&&(a.forward.thumbnails?.length??0)>0),V=u(()=>a.responsiveMediaWidth?`w-full max-w-full md:max-w-[50%]`:``);function H(e){e.stopPropagation(),!a.forward.isUnavailable&&b(e,I,L.value)}return(a,u)=>{let p=o(`MaterialIcon`);return d(),r(f(e.forward.isUnavailable?`div`:`a`),{href:e.forward.isUnavailable?void 0:L.value,class:m([`block overflow-hidden rounded-[var(--radius-default)] border border-border bg-elevated no-underline transition-colors`,e.forward.isUnavailable?``:`hover:border-accent`]),onClick:H},{default:t(()=>[i(`div`,T,v(_(y)(`blog.forwardedPost`)),1),i(`div`,E,[e.forward.isUnavailable?(d(),h(`div`,D,v(R.value),1)):(d(),h(n,{key:1},[i(`div`,O,[e.forward.avatarUrl?(d(),h(`img`,{key:0,src:e.forward.avatarUrl,alt:e.forward.username||e.forward.uid,class:`h-8 w-8 shrink-0 rounded-full border border-border object-cover`},null,8,k)):(d(),h(`div`,A,[c(p,{name:`person`,size:16})])),i(`div`,j,[i(`p`,M,v(e.forward.username||`UID ${e.forward.uid}`),1),i(`p`,N,v(R.value),1),z.value?(d(),h(`div`,P,[c(S,{variant:`compact`,content:z.value},null,8,[`content`])])):l(``,!0),e.forward.isGore===1?(d(),h(`div`,F,[c(w)])):l(``,!0)])]),B.value?(d(),h(`div`,{key:0,class:m([`mt-2 grid grid-cols-2 gap-1.5`,V.value])},[(d(!0),h(n,null,s(e.forward.thumbnails.slice(0,e.compact?2:4),(t,n)=>(d(),h(`div`,{key:n,class:m([`overflow-hidden rounded-[var(--radius-default)]`,e.responsiveMediaWidth?``:e.compact?`aspect-square bg-reader`:`aspect-[16/10] bg-reader`])},[c(C,{src:t,alt:R.value,fit:e.responsiveMediaWidth?`contain`:`cover`,blur:e.forward.isGore===1},null,8,[`src`,`alt`,`fit`,`blur`])],2))),128))],2)):l(``,!0)],64))])]),_:1},8,[`href`,`class`])}}}),L=e({default:()=>R}),R=y(I,[[`__scopeId`,`data-v-12ec8aa0`]]);export{L as n,R 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.