1import{_ as l,y as c,o as n,c as o,z as m,f as k,B as _,P as h,D as d}from"./BTDK8gYk.js";const p={name:"PromoUnit",props:{unit:{type:Object,default:()=>({})}},data(){return{inView:!1}},computed:{link(){return this.unit?.link},img(){return this.unit?.image}},methods:{linkFormatter(t){const{linkFormatter:i}=d();return i(t,this.$manifold.hasNewURL)},clickHandler(){this.$trackEvent({event:"desktop_promo_click",action:"Click",value:this.unit?.name,target:"Dekstop Promotional Unit","target-properties":this.link,"non-interaction-hit":!1,link:this.link})},handleVisibility(t){t&&!this.inView&&(this.inView=!0,this.$trackEvent({event:"desktop_promo_view",action:"is_now_viewable",value:1,target:"Dekstop Promotional inView","target-properties":this.link,"non-interaction-hit":!1,route:(this._.provides[h]||this.$route).path,device:"desktop",link:this.link}))}}},u={class:"py-2"},v=["href"];function f(t,i,b,g,w,e){const r=_,s=c("observe-visibility");return n(),o("article",u,[m((n(),o("a",{href:e.link,target:"_blank",rel:"nofollow noopener sponsored",onClick:i[0]||(i[0]=(...a)=>e.clickHandler&&e.clickHandler(...a))},[k(r,{"image-obj":e.img,width:300,clear:!0},null,8,["image-obj"])],8,v)),[[s,e.handleVisibility]])])}const V=Object.assign(l(p,[["render",f]]),{__name:"MPromoUnit"});export{V 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.