"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2985],{6683:function(e,t,r){r.r(t),r.d(t,{default:function(){return ui_Gift_Gift}});var a=r(3067),n=r(4235),i=r(4599),c=r(2614),f=r(6163),o=r(7158),s=r(2056),u=r(643),l=r(1549),d=["item"];function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){(0,a.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var ui_Gift_Gift=function(e){var{item:t}=e,r=(0,n.Z)(e,d);return(0,l.jsxs)(i.Z,_objectSpread(_objectSpread({icon:(0,l.jsx)(c.Z,{name:"Tag",width:18,height:18})},r),{},{children:[(0,l.jsx)(f.Z,{children:(0,l.jsx)(s.Z,{src:t.itemOffered.image[0].url,alt:t.itemOffered.image[0].alternateName,width:89,height:89})}),(0,l.jsx)(o.Z,{productName:t.itemOffered.isVariantOf.name,price:{value:t.price,listPrice:t.listPrice,formatter:u.P}})]}))}},643:function(e,t,r){r.d(t,{P:function(){return useFormattedPrice}});var a=r(4194),n=r(31),usePriceFormatter=function(){var{decimals:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{currency:t,locale:r}=(0,n.kP)();return(0,a.useCallback)(a=>Intl.NumberFormat(r,{style:"currency",currency:t.code,minimumFractionDigits:e?2:0}).format(a),[t.code,r,e])},useFormattedPrice=e=>{var t=usePriceFormatter();return(0,a.useMemo)(()=>t(e),[t,e])}},9767:function(e,t,r){var a=r(4194),n=r(5450);let i=(0,a.forwardRef)(function({value:e,as:t="span",variant:r="selling",testId:i="fs-price",formatter:c=e=>e,SRText:f,...o},s){let u=c(e,r);return a.createElement(t,{ref:s,"data-fs-price":!0,"data-fs-price-variant":r,"data-testid":i,...o},f&&a.createElement(n.Z,{text:f}),u)});t.Z=i},5450:function(e,t,r){var a=r(4194);t.Z=function({text:e,as:t}){let r=t??"span";return a.createElement(r,{"data-fs-sr-only":!0},e)}},4599:function(e,t,r){var a=r(4194);let n=(0,a.forwardRef)(function({icon:e,testId:t="fs-gift",children:r,...n},i){return a.createElement("div",{ref:i,"data-fs-gift":!0,"data-testid":t,...n},!!e&&a.createElement("span",{"data-fs-gift-icon":!0},e),a.createElement("div",{"data-fs-gift-wrapper":!0},r))});t.Z=n},7158:function(e,t,r){var a=r(4194),n=r(9767),i=r(276);let c=(0,a.forwardRef)(function({price:e,productName:t,titleMessage:r="Get a",badgeLabel:c="Free",testId:f="fs-gift-content",...o},s){return a.createElement("section",{ref:s,"data-fs-gift-content":!0,"data-testid":f,...o},a.createElement("h3",{"data-fs-gift-product-title":!0},r," ",t),a.createElement("span",{"data-fs-gift-product-summary":!0},a.createElement(n.Z,{value:e?.listPrice?e.listPrice:0,formatter:e?.formatter,testId:"list-price","data-value":e?.listPrice,variant:"listing",SRText:"Original price:"}),a.createElement(i.Z,null,c)))});t.Z=c},6163:function(e,t,r){var a=r(4194);let n=(0,a.forwardRef)(function({testId:e="fs-gift-image",children:t,...r},n){return a.createElement("div",{ref:n,"data-fs-gift-image":!0,"data-testid":e,...r},t)});t.Z=n}}]);