1import{H as I,Z as j,J as e,$ as N,l as s,i as n,m as p,q as u,p as t,L as O,t as c,F as S,W as $,ab as F}from"./Pw-E633C.js";import{b as H}from"./BSfhh5ZY.js";function k(l){const d=l;d.__i18n=d.__i18n||[],d.__i18n.push({locale:"",resource:{en:{by:{t:0,b:{t:2,i:[{t:3}],s:"By"}}},ja:{by:{t:0,b:{t:2,i:[{t:3}],s:"èè
"}}},es:{by:{t:0,b:{t:2,i:[{t:3}],s:"Por"}}},fr:{by:{t:0,b:{t:2,i:[{t:3}],s:"Par"}}},"zh-hans":{by:{t:0,b:{t:2,i:[{t:3}],s:"ä½è
"}}},"zh-hant":{by:{t:0,b:{t:2,i:[{t:3}],s:"ä½è
"}}}}})}const L=["href"],R=["loading","fetchpriority"],T={class:"min-h-268 p-24 pt-28 flex flex-1 flex-col items-start gap-32"},V={key:0,class:"mb-8 text-xs font-medium text-gray-600"},q={key:1,class:"mb-12 flex flex-wrap gap-8"},D={key:0,class:"rounded-full border border-[var(--sys-border-light)] bg-surface-sunken px-10 py-4 text-xs font-medium text-gray-500"},E={class:"p-article-title text-xl font-medium text-gray-950"},J={class:"p-article-info mt-12 text-gray-600"},w={__name:"ArticleCard",props:{data:{type:Object,default:()=>{}},mini:{type:Boolean,default:!1},priority:{type:Boolean,default:!1}},setup(l){const{t:d}=j({useScope:"local"}),r=l,B=e(()=>r.data?.documentId||""),C=e(()=>r.data?.link||""),g=N();function P(i){if(!i||typeof i!="string")return"";const o=i.trim();let a=o;try{a=decodeURIComponent(o)}catch{a=o}const h=(a.replace(/^https?:\/\/[^/]+/i,"").split(/[?#]/)[0]||"").split("/").filter(Boolean);return h.length?h[h.length-1]:""}const m=e(()=>P(C.value)),z=e(()=>m.value?g(`/blog/${m.value}`):g("/blog")),y=e(()=>r.data?.title||""),A=e(()=>r.data?.description||""),b=e(()=>H(r.data?.cover,{alt:y.value,sizes:"(max-width: 767px) calc(100vw - 48px), (max-width: 1023px) calc((100vw - 128px) / 2), 384px"})),x=e(()=>r.data?.author?.name||""),f=e(()=>Array.isArray(r.data?.tags)?r.data.tags.filter(i=>i?.name):[]),v=e(()=>f.value.slice(0,2)),_=e(()=>Math.max(0,f.value.length-v.value.length));return(i,o)=>(n(),s("a",{class:"p-article-card flex h-full flex-col border border-gray-200 rounded-24 bg-surface-0 overflow-hidden transition-all hover:-translate-y-2 hover:border-gray-300 hover:shadow-[0_24px_64px_var(--sys-shadow-light)] cursor-pointer",href:t(z),onClick:o[0]||(o[0]=a=>t(F)("article_card",{id:t(B),link:t(m)}))},[!l.mini&&t(b)?(n(),s("img",O({key:0,class:"w-full h-215 object-cover"},t(b),{loading:l.priority?"eager":"lazy",decoding:"async",fetchpriority:l.priority?"high":"low"}),null,16,R)):p("",!0),u("div",T,[u("div",null,[t(x)?(n(),s("div",V,c(t(d)("by"))+" "+c(t(x)),1)):p("",!0),t(f).length?(n(),s("div",q,[(n(!0),s(S,null,$(t(v),a=>(n(),s("span",{key:a.documentId||a.id||a.name,class:"max-w-full rounded-full border border-[var(--sys-border-light)] bg-surface-sunken px-10 py-4 text-xs font-medium text-gray-700 truncate"},c(a.name),1))),128)),t(_)>0?(n(),s("span",D," +"+c(t(_)),1)):p("",!0)])):p("",!0),u("h3",E,c(t(y)),1),u("p",J,c(t(A)),1)]),o[1]||(o[1]=u("span",{class:"p-button size-md secondary mt-auto no-underline pointer-events-none"},"Keep Reading",-1))])],8,L))}};typeof k=="function"&&k(w);const Z=I(w,[["__scopeId","data-v-96e18f01"]]);export{Z as default};
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.