1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6186],{16186:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return g}});var i=r(7320),n=r(50166),u=r(98661),l=r(1595),a=r.n(l),o=r(70354),c=r(11163),s=r(15848),d=r(31545),m=r(22912),b=r(75338),f=r(41664),h=r(63725),v=function(t){var e,r=t.subProductData,n=t.subProductLink,u=r.name,l=r.image,o=r.price_range,s=c.default.locale;return(0,i.BX)("div",{className:a()["substitute-item-block"],children:[(0,i.tZ)("div",{className:a()["item-block-left"],children:(0,i.tZ)(f.default,{href:n,children:(0,i.tZ)("a",{children:(0,i.tZ)(m.ZP,{className:"object-contain",src:null!==(e=null===l||void 0===l?void 0:l.url)&&void 0!==e?e:"/images/default-product-image.png",width:"128",height:"128",alt:u,objectFit:"contain"})})})}),(0,i.BX)("div",{className:a()["item-block-right"],children:[(0,i.tZ)(f.default,{href:n,children:(0,i.tZ)("a",{className:a()["product-name"],children:u})}),(0,h.Xm)("addToCart",s)&&(0,i.tZ)(b.j,{priceRange:o,showSymbol:!0,showDiscount:!0,splitSymbol:!0})]})]})};function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var i,n,u=[],l=!0,a=!1;try{for(r=r.call(t);!(l=(i=r.next()).done)&&(u.push(i.value),!e||u.length!==e);l=!0);}catch(o){a=!0,n=o}finally{try{l||null==r.return||r.return()}finally{if(a)throw n}}return u}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return _(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var g=function(t){var e=t.substituteSKU,r=(0,n.$G)(["common"]).t,l=(0,c.useRouter)().locale,m=(0,u.useState)(null),b=m[0],f=m[1],h=(0,u.useState)(""),_=h[0],g=h[1],y=(0,s.j)({page:d.Mj.PRODUCT}),k=(0,o.Tx)([e]||0,null,null!==l&&void 0!==l?l:"");return(0,u.useEffect)((function(){if((null===k||void 0===k?void 0:k.length)>0){var t,e=p(k,1)[0];if((null===e||void 0===e||null===(t=e.productData)||void 0===t?void 0:t.length)>0){var r=null===e||void 0===e?void 0:e.productData[0];f(r),g(y({product:r}))}}}),[y,k]),(0,i.tZ)(i.HY,{children:b&&(0,i.BX)("div",{className:a()["substitute-item-container"],children:[(0,i.tZ)("h3",{className:a()["substitute-item-header"],children:r("A newer model of this item exists:")}),(0,i.tZ)(v,{subProductData:b,subProductLink:_})]})})}},1595:function(t){t.exports={"substitute-item-container":"SubstituteItem_substitute-item-container__artOC","substitute-item-header":"SubstituteItem_substitute-item-header__r_XWV","substitute-item-block":"SubstituteItem_substitute-item-block__kHd8L","item-block-right":"SubstituteItem_item-block-right__jg7K6","product-name":"SubstituteItem_product-name__T_Z9u","item-block-left":"SubstituteItem_item-block-left__49_kr"}}}]);
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.