"use strict";exports.id=3836,exports.ids=[3836,6789],exports.modules={80839:(e,r,t)=>{t.d(r,{Z:()=>g});var o=t(55402),a=t(38394),n=t(65167),i=t(50547),s=t(16689),c=t(82331),l=t.n(c),d=t(11213),u=t(52011),p=t(70643),b=t(78563),f=t(3303),m=t(20997);let O=["product","index","bordered","variant","aspectRatio","imgProps","ratingValue","buttonLabel","onButtonClick","showDiscountBadge","taxesConfiguration","sponsoredLabel","enableCompareCheckbox","compareLabel"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){var o;o=t[r],r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}let g=(0,s.memo)(function(e){let{product:r,index:t,bordered:c=!0,variant:g="default",aspectRatio:j=1,imgProps:y,ratingValue:h,buttonLabel:P="Add",onButtonClick:v,showDiscountBadge:x=!0,taxesConfiguration:w,sponsoredLabel:S,enableCompareCheckbox:k=!1,compareLabel:D}=e,F=function(e,r){if(null==e)return{};var t,o,a=function(e,r){if(null==e)return{};var t,o,a={},n=Object.keys(e);for(o=0;o<n.length;o++)t=n[o],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(o=0;o<n.length;o++)t=n[o],!(r.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}(e,O),{sku:Z,isVariantOf:{name:B},image:[C],advertisement:L,offers:{lowPrice:T,lowPriceWithTaxes:_,offers:[{listPrice:I,availability:z,listPriceWithTaxes:E}]},deliveryPromiseBadges:K}=r,{deliveryPromise:M}=(0,f.T)()??{},{badges:N,shouldDisplayDeliveryPromiseBadges:R}=(0,u.z0)({deliveryPromiseBadges:K,deliveryPromiseSettings:M}),V=_objectSpread(_objectSpread({},(0,b.w)({product:r,selectedOffer:0,index:t})),{},{as:l(),passHref:!0,legacyBehavior:!1,prefetch:!1}),W=(0,s.useMemo)(()=>"https://schema.org/InStock"!==z,[z]),A=w?.usePriceWithTaxes?_:T,H=w?.usePriceWithTaxes?E:I,$=L?{"data-van-res-id":L.adResponseId,"data-van-aid":L.adId,"data-van-prod-name":B}:{};return(0,m.jsxs)(m.Fragment,{children:[k&&m.jsx(o.Z,{label:D,product:r,id:r.id}),(0,m.jsxs)(a.Z,_objectSpread(_objectSpread(_objectSpread({outOfStock:W,bordered:c,variant:g,"data-fs-product-card-sku":Z},$),F),{},{children:[m.jsx(n.Z,{aspectRatio:j,children:m.jsx(d.Z,{src:C.url,alt:C.alternateName,sizes:`${y?.sizes??"(max-width: 768px) 40vw, 30vw"}`,width:y?.width??360,height:Math.round((Number(y?.height)||360)/j),loading:y?.loading})}),m.jsx(i.Z,{title:B,price:{value:A,listPrice:H,formatter:p.P},ratingValue:h,outOfStock:W,onButtonClick:v,linkProps:V,showDiscountBadge:A<=H&&x,includeTaxes:w?.usePriceWithTaxes,includeTaxesLabel:w?.taxesLabel,sponsored:!!L,sponsoredLabel:S,deliveryPromiseBadges:R&&N})]}))]})})},33836:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o.Z});var o=t(80839)},70643:(e,r,t)=>{t.d(r,{P:()=>useFormattedPrice});var o=t(16689),a=t(97358);let usePriceFormatter=({decimals:e}={})=>{let{currency:r,locale:t}=(0,a.kP)();return(0,o.useCallback)(o=>Intl.NumberFormat(t,{style:"currency",currency:r.code,minimumFractionDigits:e?2:0}).format(o),[r.code,t,e])},useFormattedPrice=e=>{let r=usePriceFormatter();return(0,o.useMemo)(()=>r(e),[r,e])}}};