PageSourceSearch

https://lifehacker.ru/_nuxt/v7.12-DSSRPG4i.js

js lifehacker.ru collected 2026-09-24 08:30:42 UTC 2,133 bytes, 2 lines download raw bytes

1import{T as g}from"./v7.12-CkD2fA2m.js";import{b1 as c,b0 as k,bz as m,aU as n,aP as s,aX as a,aV as i,bB as r,b4 as u,b5 as h,aO as p}from"./v7.12-_pfsIBSO.js";import"./v7.12-B6Sy5o-q.js";const _=c({name:"Goods",components:{TheContent:g},props:{elem:{type:Object,required:!0}},computed:{goods(){return this.elem.attributes},goodsContent(){return this.elem.children}},methods:{trackImageClick(){this.sendAnalyticsData({name:"Клик_изображение товара"})},trackButtonClick(){this.sendAnalyticsData({name:"Клик_кнопка товара",buttonName:this.goods.button_text})},trackDescriptionLinkClick(e){if(!e.target)return;const t=e.target.closest("a");t&&this.sendAnalyticsData({name:"Клик_ссылка в товаре",to:t.href})},sendAnalyticsData({name:e,to:t,buttonName:d}){this.$sendYandexMetrika({level1:e,level4:t||this.goods.link,level5:d||""})}}},"$TbzrLbADYz"),C={class:"goods"},b=["href"],f=["src","width","height","alt"],y={class:"goods__content"},v={key:0,class:"goods__title"},D={key:1,class:"goods__price"},B=["href"];function L(e,t,d,$,A,T){const l=m("TheContent");return s(),n("div",C,[a("a",{class:"goods__image-link",href:e.goods.link,target:"_blank",onClick:t[0]||(t[0]=(...o)=>e.trackImageClick&&e.trackImageClick(...o))},[e.goods.image?(s(),n("img",{key:0,class:"goods__image",src:e.goods.image.url,width:e.goods.image.width,height:e.goods.image.height,alt:e.goods.title},null,8,f)):i("",!0)],8,b),a("div",y,[e.goods.title?(s(),n("div",v,r(e.goods.title),1)):i("",!0),e.goods.price?(s(),n("div",D,r(e.goods.price),1)):i("",!0),a("div",{class:"goods__description",onClick:t[1]||(t[1]=(...o)=>e.trackDescriptionLinkClick&&e.trackDescriptionLinkClick(...o))},[(s(!0),n(u,null,h(e.goodsContent,o=>(s(),p(l,{key:o.id,elem:o},null,8,["elem"]))),128))]),e.goods.button_text?(s(),n("a",{key:2,class:"goods__button",href:e.goods.link,target:"_blank",onClick:t[2]||(t[2]=(...o)=>e.trackButtonClick&&e.trackButtonClick(...o))},r(e.goods.button_text),9,B)):i("",!0)])])}const z=k(_,[["render",L],["__scopeId","data-v-dbb7a73f"]]);export{z as default};
2//# sourceMappingURL=v7.12-DSSRPG4i.js.map

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.