"use strict";exports.id=76,exports.ids=[76],exports.modules={70643:(e,r,t)=>{t.d(r,{P:()=>useFormattedPrice});var i=t(16689),a=t(70031);let usePriceFormatter=({decimals:e}={})=>{let{currency:r,locale:t}=(0,a.kP)();return(0,i.useCallback)(i=>Intl.NumberFormat(t,{style:"currency",currency:r.code,minimumFractionDigits:e?2:0}).format(i),[r.code,t,e])},useFormattedPrice=e=>{let r=usePriceFormatter();return(0,i.useMemo)(()=>r(e),[r,e])}},78563:(e,r,t)=>{t.d(r,{w:()=>useProductLink});var i=t(16689),a=t(70031);let useProductLink=({index:e,product:r,selectedOffer:s})=>{let{slug:n}=r,{currency:{code:c}}=(0,a.kP)(),m=(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:c,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}]}})})},[c,r,e,s]);return{href:`/${n}/p`,onClick:m,"data-testid":"product-link"}}}};