1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6100],{26100:function(e,r,t){"use strict";t.r(r),t.d(r,{Products:function(){return N}});var a=t(59499),s=t(67294),l=t(41664),n=t.n(l),c=t(52091),i=t(94051),o=t(40544),d=t(11163),u=t(26996),p=t(42746),g=t(9254),f=t(90007),m=t(67977),h=t.n(m),j=t(51506),v=t(36439),x=t(85893);function y(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,a)}return t}function b(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?y(Object(t),!0).forEach((function(r){(0,a.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _(e){var r=e.sellerImage,t=e.sellerName,a=e.trackingHandler,s=(0,p.useTranslations)();return(0,x.jsxs)("div",{className:h().sellerWrapper,children:[(0,x.jsx)("div",{className:"image-wrapper",onClick:a,children:(0,x.jsx)(v.J,{fallback:"https://via.placeholder.com/300x200.png?text=".concat(t),src:r,alt:"Featured Seller: ".concat(t),layout:"fill",objectFit:"contain"})}),(0,x.jsx)("div",{className:"boldText",children:t}),(0,x.jsxs)(j.ah,{onClick:a,style:{minHeight:"unset",lineHeight:"20px",padding:"7px 5px"},children:[(0,x.jsx)(c.qL0,{style:{verticalAlign:"middle",marginRight:"5px"},size:16}),s("header.featured_seller_see_all")]})]})}function N(e){var r=(0,d.useRouter)().locale,t=(0,p.useTranslations)();return(0,x.jsx)(n(),{href:e.assetUrl,passHref:!0,children:(0,x.jsxs)("a",{className:h().productWrapper,dir:"ltr",onClick:e.trackingHandler,children:[(0,x.jsx)("div",{className:"image-wrapper",children:(0,x.jsx)(v.J,{src:e.assetImage?e.assetImage.replace("medium","cust/350/250"):"/img/maincategories/no_pic_".concat(e.assetCatalog,"_600.gif"),alt:"".concat(e.assetBrand," ").concat(e.assetModel),fallback:"/img/maincategories/no_pic_".concat(e.assetCatalog,"_600.gif"),layout:"fill",objectFit:"cover"},"".concat(e.assetBrand).concat(e.assetModel))}),(0,x.jsxs)("div",{className:"text-wrapper",children:[(0,x.jsx)("div",{className:"boldText",title:"".concat((0,u.d6)(e.assetBrand||"",t)," ").concat(e.assetModel),children:"".concat((0,u.d6)(e.assetBrand||"",t)," ").concat(e.assetModel)}),e.assetLocation?(0,x.jsx)("p",{className:"basicText2Style subtext",style:{textAlign:"left"},children:e.assetLocation.split(",").filter((function(e){return"-"!==e})).join(",")}):null,(0,x.jsx)(j.VT,{height:10}),(0,x.jsx)("div",{className:"boldText",children:e.assetPriceOriginal?"".concat((0,u.uf)(e.assetPriceOriginal,r)," ").concat(e.assetPriceOriginalUnit):""})]})]})})}r.default=function(e){var r,t,a,l=e.useHeader,n=void 0===l||l,c=(0,o.P3)(),d=(0,i.Z)({slot:e.slot,countryCode:c,numberOfAssets:"13",catalogName:e.catalog,categoryName:e.category,userCurrency:null!==(r=e.userCurrency)&&void 0!==r?r:(0,o.KB)()||""}).data,u=(0,p.useTranslations)(),m=function(r){var t;f.Z.trackFeaturedSeller({productID:r,organizationID:null!==(t=null===d||void 0===d?void 0:d.sellerID)&&void 0!==t?t:"",catalogName:e.catalog,categoryName:e.category,slot:e.slot,page:"frontpage"===e.slot?"default":"adsearch",countryCode:c})};return(0,s.useEffect)((function(){var e;d&&(null===(e=d.featuredAssetsData)||void 0===e?void 0:e.length)>0&&null!==d&&void 0!==d&&d.sellerID&&m("show")}),[d]),d&&""!==d.sellerName&&0!==(null===(t=d.featuredAssetsData)||void 0===t?void 0:t.length)?(0,x.jsxs)("div",{children:[n&&(0,x.jsx)("h2",{className:"styled-h2",children:u("becomeadealer.featured_seller").toUpperCase()}),(0,x.jsx)(j.VT,{}),(0,x.jsx)("div",{className:h().wrapper,children:(0,x.jsx)("div",{children:(0,x.jsxs)(j.Hn,{children:[(0,x.jsx)(_,{sellerImage:d.sellerImage,sellerName:d.sellerName,trackingHandler:function(){m("logo"),window.open(d.sellerUrl,"_blank"),(0,g.Z)("featured_seller_view_all",{sellerName:d.sellerName,sellerId:d.sellerID})}}),null===(a=d.featuredAssetsData)||void 0===a?void 0:a.map((function(e){return(0,s.createElement)(N,b(b({itemId:"FS-".concat(e.assetProductID)},e),{},{assetPriceOriginal:e.assetPriceInUserCurrency,assetPriceOriginalUnit:e.assetPriceUserCurrencyUnit,key:"feature_".concat(e.assetProductID),trackingHandler:function(){m(e.assetProductID)}}))}))]})})})]}):null}},67977:function(e){e.exports={wrapper:"FeaturedSeller_wrapper__86A8D",sellerWrapper:"FeaturedSeller_sellerWrapper__YNOwF",productWrapper:"FeaturedSeller_productWrapper__tpFNs"}}}]);
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.