1import A from"./CbDlNXSx.js";import E from"./DNIs4AQh.js";import C from"./BpkgrXpV.js";import{aV as I,bD as S,br as s,by as c,bs as y,bt as _,b6 as D,bx as a,b2 as k,bA as T,bv as t,bu as g,bw as B,a$ as d,b9 as L,cI as O,bC as H}from"./EBpBARSw.js";import{A as x,b as F}from"./CSLGp06j.js";import{p as M}from"./DjXNlYmM.js";import"./Lmb05Apy.js";import"./DiN8x0mA.js";import"./Bq_376aw.js";import"./Df6GUClV.js";import"./De1uZK4E.js";import"./DL71b4LM.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new l.Error().stack;i&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[i]="0637435d-4464-433b-9794-89d7fbc967b1",l._sentryDebugIdIdentifier="sentry-dbid-0637435d-4464-433b-9794-89d7fbc967b1")}catch{}})();const V=["href"],j=["innerHTML"],G={key:0},N=I({__name:"CardStoryAdfox",setup(l){const i=S(),b=x.logo_story,p=d(),o=d(),m=d(!O),h=d({...F}),u=d(1),w=L(()=>u.value>1?!i.matches("mobileMedium","mobileWide"):i.isGreaterThan("mobileWide"));function $({state:e}){if(h.value=e,p.value){const v=p.value.querySelector('[id^="adfox"]');if(!v)return;const f=e.withError||e.withStub;if(!f&&(o.value=M(v),o.value?.title&&(o.value.title=o.value.title.slice(0,25)),o.value?.photo?.uri)){const n=new Image;n.src=o.value.photo.uri,n.onload=function(){const r=n.width/n.height;r<=2?u.value=1:r>2&&r<5.5?u.value=2:r>=5.5&&(u.value=3)}}m.value=!f}}return(e,v)=>{const f=A,n=E,r=C;return s(),c("div",{ref_key:"rootEl",ref:p,class:t({[e.$style.root]:!0,[e.$style.withError]:!m.value,[e.$style[`logoType${u.value}`]]:!0})},[(s(),y(r,{key:e.$viewport.breakpoint,class:t(e.$style.adfox),config:B(b),onComplete:$},{default:_(()=>[a("",!0),k(T,{name:"fade"},{default:_(()=>[m.value&&o.value?(s(),c("div",{key:0,class:t({[e.$style.card]:!0,[e.$style.withTitle]:o.value.title})},[g("a",{class:t(e.$style.imageLink),href:o.value.path,rel:"noopener noreferrer nofollow",target:"_blank"},[o.value.photo?(s(),y(f,{key:0,alt:o.value.title,class:t(e.$style.image),image:o.value.photo,"is-blurhash-enabled":!1,"should-crop":!1,"should-use-webp":!1},null,8,["alt","class","image"])):a("",!0)],10,V),g("div",{class:t({[e.$style.content]:!0,[e.$style.isInline]:w.value})},[o.value.title?(s(),c(D,{key:0},[g("div",{class:t(e.$style.title),innerHTML:o.value.title},null,10,j),w.value&&o.value.ad?(s(),c("div",G," · ")):a("",!0)],64)):a("",!0),o.value.ad?(s(),y(n,{key:1,article:o.value,class:t(e.$style.advertiser),tooltip:{triggerHeight:"16px",triggerWidth:"16px",justify:"end"}},null,8,["article","class"])):a("",!0)],2)],2)):a("",!0)]),_:1})]),_:1},8,["class","config"])),k(T,{name:"fade"},{default:_(()=>[h.value.isCompleted?a("",!0):(s(),c("div",{key:0,class:t(e.$style.loader)},null,2))]),_:1})],2)}}}),W="gCKcv",X="jwqwC",q="jvSAo",K="VTYsF",R="NOZX5",Y="Gghws",z="_59em1",P="eAoGY",U="dHmtO",Z="Opakw",J="_9GCaS",Q={root:W,card:X,logoType1:q,imageLink:K,image:R,logoType2:Y,logoType3:z,content:P,isInline:U,advertiser:Z,loader:J,"card-story-adfox-loader":"B2j05"},ee={$style:Q},pe=H(N,[["__cssModules",ee]]);export{pe 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.