1import{f as j}from"./60yAM7Za.js";import{z as P,r as f,c as v,w as k,M as T,e as n,q as r,bS as _,bn as I,bv as D,x as F,i as s,bs as O,h as g,j as $,f as E,g as C,t as h,F as B,l as R,bf as z}from"#entry";import{P as L}from"./DTUDQWv5.js";function N(e){return e?e.includes("cloudnews.tech")?`/external-images${new URL(e).pathname}`:e.includes("moomoo.com")?`/external-images-moomoo${new URL(e).pathname}`:(e.startsWith("http")&&console.warn("External image URL not handled:",e),e):""}function S(e){if(!e)return!1;try{return new URL(e).origin!==window.location.origin}catch{return!1}}const V=["aria-label"],W=["src","alt"],A=P({__name:"ProxyImage",props:{src:{},alt:{default:""},class:{default:""},style:{default:""},fallbackSrc:{default:""}},emits:["error","load"],setup(e,{emit:i}){const t=e,m=i,a=f(!1),u=f(t.src),c=f(!1),o=f(null),x=v(()=>a.value&&t.fallbackSrc?t.fallbackSrc:c.value||!S(u.value)?u.value:N(u.value));k(()=>t.src,l=>{u.value=l,a.value=!1,c.value=!1,clearTimeout(o.value)},{immediate:!0}),k(c,l=>{l&&(clearTimeout(o.value),o.value=setTimeout(()=>{console.log("[ProxyImage Debug] Original image timed out"),a.value=!0,m("error",new Event("timeout"))},5e3))}),T(()=>{clearTimeout(o.value)});const y=l=>{clearTimeout(o.value);const p=S(t.src);if(!a.value&&!c.value&&p){c.value=!0;return}a.value||(a.value=!0,m("error",l))},d=l=>{clearTimeout(o.value),m("load",l)},b=v(()=>t.class),w=v(()=>(typeof t.style=="string",t.style));return(l,p)=>a.value&&!e.fallbackSrc?(r(),n("div",{key:0,class:I(b.value),style:_(w.value),role:"img","aria-label":e.alt},[D(l.$slots,"placeholder")],14,V)):(r(),n("img",{key:1,src:x.value,alt:e.alt,class:I(b.value),style:_(w.value),onError:y,onLoad:d,loading:"lazy"},null,46,W))}}),q={class:"bg-[rgba(255,255,255,0.04)] rounded-lg overflow-hidden transition-colors cursor-pointer"},H={class:"flex h-48 featured-card min-w-0"},M={class:"w-[40%] h-full overflow-hidden feed-img flex-shrink-0"},G={class:"w-full h-full bg-gray-800 flex items-center justify-center"},J={key:1,class:"w-full h-full bg-gray-800 flex items-center justify-center"},K={class:"flex-1 p-6 flex flex-col justify-between min-w-0 overflow-hidden"},Q={class:"text-white/85 font-semibold text-lg mb-3 line-clamp-2 group-hover:text-white transition-colors duration-300"},U={key:0,class:"text-white/85 text-sm mb-4 line-clamp-2 group-hover:text-white transition-colors duration-300"},X={class:"flex items-center justify-between text-sm"},Y={class:"text-gray-400"},Z={key:0,class:"flex flex-wrap gap-2"},ee=P({__name:"FeedCardWide",props:{item:{},defaultImagePlaceholder:{}},emits:["select"],setup(e,{emit:i}){const t=e,m=i,{locale:a}=F(),u=t.defaultImagePlaceholder||"DEFAULT_PLACEHOLDER",c=v(()=>j(t.item.date,a.value)),o=()=>{m("select",t.item)};return(x,y)=>(r(),n("div",{class:"w-full group min-w-0",onClick:o,role:"button"},[s("div",q,[s("div",H,[s("div",M,[e.item.image&&e.item.image!==g(u)?(r(),O(A,{key:0,src:e.item.image,alt:e.item.title,class:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"},{placeholder:$(()=>[s("div",G,[E(g(L),{class:"text-3xl text-gray-500"})])]),_:1},8,["src","alt"])):(r(),n("div",J,[E(g(L),{class:"text-3xl text-gray-500"})]))]),s("div",K,[s("div",null,[s("h3",Q,h(e.item.title),1),e.item.description?(r(),n("p",U,h(e.item.description),1)):C("",!0)]),s("div",X,[s("span",Y,h(c.value),1),e.item.tickers&&e.item.tickers.length>0?(r(),n("div",Z,[(r(!0),n(B,null,R(e.item.tickers.slice(0,3),d=>(r(),n("div",{key:d,class:"py-1 px-4 text-xs font-medium rounded-full bg-[rgba(255,255,255,0.08)] border-[rgba(255,255,255,0.08)] border"},h(d),1))),128))])):C("",!0)])])])])]))}}),se=z(ee,[["__scopeId","data-v-303450b5"]]);export{se as F,A as _};
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.