PageSourceSearch

https://www.homofaber.com/assets/NewsCard-Dk3CBN5Y.js

js homofaber.com collected 2026-09-24 08:39:04 UTC 2,148 bytes, 1 lines download raw bytes

1import{j as i}from"./ariakit-vendor-Rr0LjWYd.js";import{r as g}from"./i18n-vendor-CgdUv56d.js";import{f as p}from"./router-vendor-AuyDRqQq.js";import{L as w}from"./LinkWithLocale-DBFiFWfy.js";import{g as u,a as f,b as x}from"./getStrapiImageSrcSet-CHgH98cd.js";import{g as _}from"./getStrapiURL-UGEnusjZ.js";import{t as c}from"./triggerEvent-Cz4KJkb0.js";function v({image:e,className:t,alt:s="",sizes:l,...o}){if(!e)return null;const r=u(e),n=e.width>0?e.width:void 0,h=e.height>0?e.height:void 0,a=l||f({desktop:"33vw",tablet:"50vw",mobile:"100vw"});return i.jsx("img",{src:_(e.url),srcSet:r,sizes:a,width:n,height:h,className:t,...o,alt:s||e.alternativeText||""})}const d={"/en/":"hub_news_click","/en/news":"news_item_click"},m={"/en/":"hub_news_impression","/en/news":"news_item_impression"},b=4;function T({data:e,position:t}){var r;const s=p(),l=typeof t=="number"&&t<b,o=typeof t=="number"&&t===0?"high":l?"auto":"low";return g.useEffect(()=>{if(Object.keys(m).includes(s.pathname)){const n=s.pathname==="/en/news"?{news_id:e.id,news_title:e.Title,news_tags:e.tags,list_position:t}:void 0;c(m[s.pathname],n)}},[s,e,t]),i.jsx(w,{to:e.hub_news_tag||e.news_date?`/news/${e.Slug}`:`/nextgen/stories/${e.Slug}`,className:"block h-full",onClick:()=>{const n=s.pathname==="/en/news"?{news_id:e.id,news_title:e.Title,news_tags:e.tags,list_position:t}:void 0;c(d[s.pathname],n)},children:i.jsxs("div",{className:"flex flex-col relative h-full w-full bg-white text-black hover:scale-[1.02] ease-in-out duration-200",children:[i.jsx("figure",{className:"overflow-hidden",style:{aspectRatio:x((e==null?void 0:e.Image)??null,4/3)},children:i.jsx(v,{image:e==null?void 0:e.Image,sizes:"(min-width: 1280px) min(400px, 33vw), (min-width: 769px) 50vw, 100vw",className:"h-full w-full object-cover",alt:e.Title,loading:l?"eager":"lazy",fetchPriority:o,decoding:"async"})}),i.jsxs("div",{className:"m-4 flex flex-col gap-1",children:[i.jsx("div",{className:"uppercase text-sm text-accent",children:(r=e.hub_news_tag)==null?void 0:r.Name}),i.jsx("div",{className:"text-xl leading-tight md:text-2xl font-light",children:e.Title})]})]})})}export{T as N,v as S};

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.