"use strict";exports.id=8563,exports.ids=[8563],exports.modules={78563:(e,r,t)=>{t.d(r,{w:()=>useProductLink});var i=t(16689),a=t(97358);let useProductLink=({index:e,product:r,selectedOffer:s})=>{let{slug:n}=r,{currency:{code:o}}=(0,a.kP)(),c=(0,i.useCallback)(()=>{Promise.all([t.e(2792),t.e(6393)]).then(t.bind(t,66393)).then(({sendAnalyticsEvent:t})=>{t({name:"select_item",params:{items:[{item_id:r.isVariantOf.productGroupID,item_name:r.isVariantOf.name,item_brand:r.brand.name,item_variant:r.sku,index:e,price:r.offers.offers[s].price,discount:r.offers.offers[s].listPrice-r.offers.offers[s].price,currency:o,item_variant_name:r.name,product_reference_id:r.gtin}]}}),t({name:"search_select_item",params:{url:window.location.href,items:[{item_id:r.isVariantOf.productGroupID,item_variant:r.sku,index:e}]}})})},[o,r,e,s]);return{href:`/${n}/p`,onClick:c,"data-testid":"product-link"}}}};