1import{o as d,S as t,j as p,g as n,m as i,n as _,a5 as f,A as m,i as u,_ as h,G as g,O as x,f as w}from"./BTFYsnlF.js";import{p as k}from"./DxvOC7ll.js";const b={key:0,class:"rounded-xl bg-white p-3 shadow-sm"},y={class:"mb-2 text-[10px] font-semibold uppercase tracking-wider text-brand-gray"},v=["href"],B=["src","alt","width","height"],N=d({__name:"AffiliateBanner",props:{placement:{},seed:{default:0}},setup(r){const a=r,e=w(()=>k(a.placement,a.seed));function l(){if(!e.value)return;const o=window.gtag;o?.("event","affiliate_click",{affiliate_id:e.value.id,affiliate_partner:e.value.partner,affiliate_placement:a.placement})}return(o,s)=>{const c=h;return t(e)?(g(),p("aside",b,[n("p",y,[s[0]||(s[0]=i(" Ad · ",-1)),_(c,{to:"/disclosure",class:"underline hover:text-brand-dark"},{default:f(()=>[i(x(t(e).partner),1)]),_:1})]),n("a",{href:t(e).href,target:"_blank",rel:"sponsored nofollow noopener",class:"mx-auto block overflow-hidden rounded-lg",style:m({maxWidth:`${t(e).width}px`}),onClick:l},[n("img",{src:t(e).image,alt:t(e).alt,width:t(e).width,height:t(e).height,loading:"lazy",decoding:"async",class:"h-auto w-full"},null,8,B)],12,v)])):u("",!0)}}}),V=Object.assign(N,{__name:"AffiliateBanner"});export{V 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.