1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4199],{97322:function(e,t,r){r.d(t,{S:function(){return f}});var n=r(90116),i=r(67294),l=r(11163),o=r(79949),a=r(11355),s=r(86010),c=r(9494),u=r(43291),d=r(85893),f=function(e){var t,r,f=(0,l.useRouter)(),m=e.productBySku,p=(0,i.useState)(null===(t=m.variants)||void 0===t?void 0:t.find((function(e){return e.catalogNumber===m.catalogNumber}))),x=p[0],v=p[1],h=function(e){var t=(0,n.Z)(e);return t.sort((function(e,t){return t.value.length+t.catalogNumber.length-(e.value.length+e.catalogNumber.length)})),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(c.Z,{}),"".concat(t[0].value," - ").concat(t[0].catalogNumber)]})};return null!==(r=m.variants)&&void 0!==r&&r.length?(0,d.jsxs)("div",{className:"flex flex-row items-center",children:[(0,d.jsxs)("div",{className:"text-3.5xl font-medium text-black",children:["size"===(null===x||void 0===x?void 0:x.variantType)?"Size":"Color",":"]}),(0,d.jsx)(o.R,{as:"div",className:"relative ml-3 mr-4 flex grow flex-row lg:grow-0",value:x,onChange:function(e){if(v(e),e.catalogNumber!==m.catalogNumber){!function(){var e;null===(e=document.querySelector("#bv-jsonld-reviews-data"))||void 0===e||e.remove()}();var t=f.query,r=t.referer?"?referer=".concat(t.referer):"";f.push("/catalog/product/".concat(e.catalogNumber).concat(r),null,{scroll:!1})}},by:"catalogNumber",children:function(e){var t,r=e.open;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(o.R.Button,{className:(0,s.Z)("flex h-9 grow flex-row items-center justify-between px-3 text-tiny",{"rounded-[4px] border-[1px] border-grey-500 bg-grey-200":!r,"border-b-none rounded-t-[4px] border-x-1 border-t-1 border-black bg-white":r}),children:[(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("span",{className:"absolute left-0 top-0 h-full w-full text-left leading-7",children:r?"".concat(null===x||void 0===x?void 0:x.value," - ").concat(null===x||void 0===x?void 0:x.catalogNumber):null===x||void 0===x?void 0:x.value}),(0,d.jsx)("span",{className:"invisible flex whitespace-nowrap text-base leading-7",children:h(m.variants)})]}),(0,d.jsx)("span",{className:(0,s.Z)("ml-2 text-black"),children:r?(0,d.jsx)(u.Z,{className:"rotate-180"}):(0,d.jsx)(u.Z,{})})]}),(0,d.jsx)(a.u,{enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",className:(0,s.Z)("absolute top-[36px] z-30 flex h-max max-h-64 w-full flex-col overflow-auto rounded-b-[4px] border-1 border-solid border-x-black border-b-black border-t-grey-500 bg-white"),children:(0,d.jsx)(o.R.Options,{className:"divide-y-1 divide-grey-500 outline-none",children:null===m||void 0===m||null===(t=m.variants)||void 0===t?void 0:t.map((function(e){return(0,d.jsx)(o.R.Option,{className:function(e){var t=e.selected,r=e.active;return(0,s.Z)("flex w-full cursor-pointer items-baseline justify-start gap-2 whitespace-nowrap px-4 text-left text-base leading-[46px]",{"rounded-b-[4px] bg-grey-100":r||t})},value:e,children:function(t){var r=t.selected,n=t.active;return(0,d.jsxs)(d.Fragment,{children:[r&&(0,d.jsx)("span",{className:"flex items-center justify-center",children:(0,d.jsx)(c.Z,{})}),(0,d.jsxs)("span",{className:(0,s.Z)({"bg-grey-100":n}),children:[e.value," - ",e.catalogNumber]})]})}},e.catalogNumber)}))})})]})}}),"size"===(null===x||void 0===x?void 0:x.variantType)&&(0,d.jsx)("button",{type:"button",className:"hidden text-left text-base font-bold text-blue-500 underline lg:grow",children:"Size guide"})]}):(0,d.jsx)(d.Fragment,{})}},74199:function(e,t,r){r.d(t,{Zb:function(){return ue},Cv:function(){return pe},gc:function(){return _e},R_:function(){return ve},iH:function(){return ge},Sm:function(){return De.S},XA:function(){return Se},Vt:function(){return Ce},MZ:function(){return Oe},gd:function(){return ke}});var n=r(59499),i=r(67294),l=r(16523),o=r(48362),a=r(40018),s=r(50029),c=r(87794),u=r.n(c),d=r(86010),f=r(54082),m=r(40433),p=r(6386),x=r(38732),v=r(21459),h=r(4898),b=r(41664),g=r.n(b),j=r(85893),y=function(e){var t=e.slug,r=e.borderPosition,n=e.direction,i=void 0===n?"column":n;return(0,j.jsxs)("div",{"test-id":"alternateLink",className:(0,d.Z)("flex items-center justify-center border-solid border-red-600 bg-red-100 py-2 lg:gap-2.5 lg:px-4",{"border-t-1":"top"===r,"rounded-t-xl border-b-1":"bottom"===r,"flex-col":"column"===i,"flex-row":"row"===i}),children:[(0,j.jsx)("h3",{className:"text-center text-tiny text-black",children:"This product is no longer available."}),(0,j.jsx)(g(),{passHref:!0,href:t||"/",children:(0,j.jsx)("a",{className:"font-tiny font-medium text-red-600 hover:text-red-500 hover:underline lg:text-base lg:font-normal",children:"Show alternatives"})})]})},w=r(98356),N=function(e){var t=e.price,r=e.sale_price,n=e.url,i=e.query;return(0,j.jsx)(p.x,{href:{pathname:n,query:i}
1,passHref:!0,tabIndex:-1,children:(0,j.jsx)("a",{tabIndex:-1,children:(0,j.jsx)(w.n,{price:t,salePrice:r,size:"list"})})})},C="com.matcotools.toolboxconfig.configuration.boxId",O="com.matcotools.toolboxconfig.configuration.order",S="com.matcotools.toolboxconfig.configuration.warnings",k="com.matcotools.toolboxconfig.configuration.model";function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var z="relative h-100 min-h-[400px]",_="group grid h-100 min-h-[400px] max-w-md auto-cols-fr auto-rows-auto grid-rows-[196px_auto_70px] justify-between gap-4 overflow-hidden rounded border-1 border-grey-500 duration-100 ease-in hover:h-fit hover:w-full hover:bg-white hover:shadow-[0_8px_20px_rgba(0,0,0,0.3)]",D="relative flex cursor-pointer place-items-center justify-center pt-4",T="mx-4 flex flex-row items-center justify-between",I=function(e){var t=e.thumb_image,r=e.title,n=e.url,l=e.rating,o=e.catalogNumber,a=e.buttonComponentData,s=a.onClick,c=a.icon,u=e.query,d=e.badge,h=e.onSelect,b=e.price,g=e.sale_price,y=(0,i.useMemo)((function(){return d&&(0,f.u)(d,b,g)}),[d,b,g]);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)("div",{className:D,children:[!!d&&y&&(0,j.jsx)(m._,{label:y,kind:d,primary:!0,className:"absolute top-4 left-4 z-10"}),(0,j.jsx)("button",{type:"button",className:"absolute top-4 right-4 z-10 flex h-[36px] w-[36px] items-center justify-center rounded-full bg-grey-300",onClick:s,children:c}),(0,j.jsx)(p.x,{href:{pathname:n,query:u},passHref:!0,children:(0,j.jsx)("div",{onClick:function(){return null===h||void 0===h?void 0:h(o)},children:t?(0,j.jsx)(x.E,{width:200,height:180,src:t,alt:r,sizes:"200px",priority:!0}):(0,j.jsx)(v.Z,{})})})]}),(0,j.jsx)("div",{className:"mx-4",children:(0,j.jsx)(p.x,{href:{pathname:n,query:u},passHref:!0,children:(0,j.jsxs)("div",{className:"max-w-full cursor-pointer",onClick:function(){return null===h||void 0===h?void 0:h(o)},children:[(0,j.jsx)("h1",{className:"text-base font-bold line-clamp-2 group-hover:line-clamp-none",children:r}),(0,j.jsxs)("span",{className:"text-xs text-grey-900",children:["Part No. ",o]}),l]})})})]})},q=function(e){var t=e.addToCart,r=e.buttonComponentData,n=r.onClick,l=r.icon,o=r.label,a=e.query,c=e.sale_price,f=e.price,m=e.url,p=e.onSelect,x=e.catalogNumber,v=e.customize,b=(0,i.useRef)(null),g=function(){var e=(0,s.Z)(u().mark((function e(){var t,r,n,i,l,o,a,s,c;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null===(t=window)||void 0===t||null===(r=t.localStorage)||void 0===r||r.removeItem(S),null===(n=window)||void 0===n||null===(i=n.localStorage)||void 0===i||i.removeItem(k),null===(l=window)||void 0===l||null===(o=l.localStorage)||void 0===o||o.removeItem(O),null===(a=window)||void 0===a||a.localStorage.setItem(C,x),null!==(s=window)&&void 0!==s&&null!==(c=s.location)&&void 0!==c&&c.href&&(window.location.href="/toolboxconfigurator/configuration/addons");case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,j.jsx)("div",{className:z,children:(0,j.jsxs)("div",{className:(0,d.Z)(_,"hover:absolute hover:z-50"),children:[(0,j.jsx)(I,Z(Z({},e),{},{price:f,sale_price:c})),(0,j.jsxs)("div",{"data-testid":"relativeLinkWrapper",className:(0,d.Z)(T,"group-hover:mb-0"),children:[(0,j.jsx)("div",{onClick:function(){return null===p||void 0===p?void 0:p(x)},children:(0,j.jsx)(N,{url:m,price:f,sale_price:c,query:a})}),v?(0,j.jsx)(h.z,{size:"s",kind:"primary",onClick:g,ref:b,children:"Customize"}):f>0&&(0,j.jsx)(h.z,{size:"s",kind:"primary",onClick:function(){t({buttonRef:b})},ref:b,children:"Add to Cart"})]}),(0,j.jsx)(h.z,{className:"mx-3 mb-4 hidden place-self-end px-0 pr-0 pl-0 hover:text-blue-500 group-hover:flex group-hover:items-center",size:"s",type:"squared",kind:"simple",onClick:n,children:(0,j.jsxs)("div",{className:"flex items-center",children:[l,(0,j.jsx)("span",{className:"ml-1.5 mr-1",children:o})]})})]})})},F=function(e){return(0,j.jsx)(q,Z({},e))};F.WishList=function(e){var t=e.isProductNonSellable,r=e.isShareListModal,n=e.primaryCategory,i=e.addToCart,l=e.customize,o=e.catalogNumber,a=e.price,c=function(){var e=(0,s.Z)(u().mark((function e(){var t,r,n,i,l,a,s,c,d;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null===(t=window)||void 0===t||null===(r=t.localStorage)||void 0===r||r.removeItem(S),null===(n=window)||void 0===n||null===(i=n.localStorage)||void 0===i||i.removeItem(k),null===(l=window)||void 0===l||null===(a=l.localStorage)||void 0===a||a.removeItem(O),null===(s=window)||void 0===s||s.localStorage.setItem(C,o),null!==(c=window)&&void 0!==c&&null!==(d=c.location)&&void 0!==d&&d.href&&(window.location.href="/toolboxconfigurator/configuration/addons");case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,j.jsx)("div",{className:z,children:(0,j.jsxs)("div",{className:(0,d.Z)(_,{"border-red-600":t}),children:[(0,j.jsx)(I,Z({},e)),t&&!l?(0,j.jsx)(y,{borderPosition:"top",slug:null===n||void 0===n?void 0:n.slug}):(0,j.jsxs)("div",{"data-testid":"relativeLinkWrapper",className:T,children:[(0,j.jsx)(N,Z({},e)),!r&&(l?(0,j.jsx)(h.z,{size:"s",title:"add to cart",kind:"primary",onClick:c,children:"Customize"}):a>0&&(0,j.jsx)(h.z,{size:"s",title:"add to cart",kind:"primary",onClick:i,children:"Add to Cart"}))]})]})})};var L=r(4730),R=r(71016),E=function(e){var t=e.addToCart,r=(0,i.useRef)(null);return(0,j.jsx)(h.z,{onClick:function(){t({buttonRef:r})},ref:r,kind:"primary",size:"m",children:(0,j.jsx)("div",{className:"flex items-center justify-center",children:"Add to Cart"})})},W=function(e){var t=e.onClick,r=e.icon,n=e.label;return(0,j.jsx)(h.z,{onClick:t,size:"s",kind:"simple",type:"squared",className:"hover:text-blue-500",children:(0,j.jsxs)("div",{className:"flex items-center",children:[r,(0,j.jsx)("span",{className:"ml-1.5 mr-1",children:n})]})})},M=function(e){var t=e.catalogNumber,r=(0,i.useRef)(null),n=function(){var e=(0,s.Z)(u().mark((function e(){var r,n,i,l,o,a,s,c,d;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null===(r=window)||void 0===r||null===(n=r.localStorage)||void 0===n||n.removeItem(S),null===(i=window)||void 0===i||null===(l=i.localStorage)||void 0===l||l.removeItem(k),null===(o=window)||void 0===o||null===(a=o.localStorage)||void 0===a||a.removeItem(O),null===(s=window)||void 0===s||s.localStorage.setItem(C,t),null!==(c=window)&&void 0!==c&&null!==(d=c.location)&&void 0!==d&&d.href&&(window.location.href="/toolboxconfigurator/configuration/addons");case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,j.jsx)(h.z,{onClick:n,ref:r,kind:"primary",size:"m",children:(0,j.jsx)("div",{className:"flex items-center justify-center",children:"Customize"})})},A=["isProductNonSellable","buttonComponentData","addToCart","url","price","sale_price","primaryCategory","onSelect","catalogNumber","customize"],H=["buttonComponentData","addToCart","url","price","sale_price","onSelect","catalogNumber"];function V(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?V(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var U="rounded-xl border-1 border-grey-500",X=function(e){var t=e.thumb_image,r=e.title,n=e.url,l=e.rating,o=e.features,a=e.catalogNumber,s=e.query,c=e.badge,u=e.catalogNumberFontType,h=e.children,b=e.onSelect,g=e.price,y=e.sale_price,w=(0,i.useState)(!1),N=w[0],C=w[1],O=(0,i.useState)(!1),S=O[0],k=O[1],P=(0,i.useRef)(null),Z=!!P.current&&P.current.scrollHeight>P.current.clientHeight,z=(0,i.useMemo)((function(){return c&&(0,f.u)(c,g,y)}),[c,g,y]);return(0,j.jsxs)("div",{className:"grid grid-cols-[260px_1fr_minmax(185px,auto)] gap-4 overflow-hidden","data-testid":"product",children:[(0,j.jsxs)("div",{className:"relative place-self-center py-7",children:[!!c&&z&&(0,j.jsx)(m._,{label:z,kind:c,className:"absolute top-4 left-3 z-10"}),(0,j.jsx)(p.x,{href:{pathname:n,query:s},children:(0,j.jsx)("div",{onClick:function(){return null===b||void 0===b?void 0:b(a)},children:t?(0,j.jsx)(x.E,{src:t,alt:r,width:260,height:260}):(0,j.jsx)(v.Z,{})})})]}),(0,j.jsxs)("div",{className:"py-7",children:[(0,j.jsxs)("div",{children:[(0,j.jsxs)("div",{title:"tipContainer",className:"relative",onMouseEnter:function(){return C(!0)},onMouseLeave:function(){return C(!1)},children:[(0,j.jsx)(p.x,{href:{pathname:n,query:s},passHref:!0,children:(0,j.jsx)("div",{onClick:function(){return null===b||void 0===b?void 0:b(a)},children:(0,j.jsx)("h4",{ref:P,className:"text-2xl font-bold line-clamp-2",children:r})})}),N&&Z&&(0,j.jsx)("div",{title:"tip",className:"absolute left-0 rounded bg-grey-900 p-3 text-white",onClick:function(){return null===b||void 0===b?void 0:b(a)},children:r})]}),(0,j.jsxs)("p",{className:(0,d.Z)("pt-1 text-grey-900 line-clamp-1",{"text-sm":"sm"===u,"text-tiny":"tiny"===u}),children:["Part No. ",a]})]}),(0,j.jsx)("div",{className:"mt-2",children:l}),(0,j.jsxs)("div",{className:"mt-6 flex flex-col gap-4",children:[(0,j.jsx)("h4",{className:"text-xl font-bold uppercase text-black",children:"Features and Benefits"}),(0,j.jsx)("ul",{title:"list",onMouseEnter:function(){return k(!0)},onMouseLeave:function(){return k(!1)},className:(0,d.Z)("h-24 pr-[10px] text-xl text-grey-900",{"grid-view-scroll-hidden":!S,"grid-view-scroll-visible":S}),children:(0,R.Z)(o,3).map((function(e,t){return(0,j.jsxs)("li",{className:"relative mb-4 flex",children:[(0,j.jsx)("span",{className:"absolute h-full text-[8px]",children:"\u25cf"}),(0,j.jsx)("span",{className:"pl-4",children:e})]},t)}))}),(0,j.jsx)(p.x,{href:{pathname:n,query:s},passHref:!0,children:(0,j.jsx)("div",{onClick:function(){return null===b||void 0===b?void 0:b(a)},children:(0,j.jsx)("a",{className:"text-xl font-bold text-blue-500 underline",href:n,children:"View All Features and Benefits"})})})]})]}),(0,j.jsx)("div",{className:"grid grid-rows-[min-content_1fr_min-content] py-7 pr-4",children:h})]})},G=function(e){var t=e.buttonComponentData,r=e.addToCart,n=e.url,i=e.price,l=e.sale_price,o=e.onSelect,a=e.catalogNumber,s=(0,L.Z)(e,H);return(0,j.jsx)("div",{className:U,children:(0,j.jsxs)(X,B(B({url:n,catalogNumberFontType:"tiny"},s),{},{onSelect:o,catalogNumber:a,price:i,sale_price:l,children:[(0,j.jsx)("div",{onClick:function(){return null===o||void 0===o?void 0:o(a)},children:(0,j.jsx)(N,{url:n,price:i,sale_price:l})}),(0,j.jsx)("div",{}),(0,j.jsxs)("div",{className:"flex flex-col gap-3",children:[s.customize?(0,j.jsx)(M,{catalogNumber:a}):i>0&&(0,j.jsx)(E,{addToCart:r}),(0,j.jsx)(W,B({},t))]})]}))})},J=function(e){return(0,j.jsx)(G,B({},e))};J.WishList=function(e){var t=e.isProductNonSellable,r=e.buttonComponentData,n=e.addToCart,i=e.url,l=e.price,o=e.sale_price,a=e.primaryCategory,s=e.onSelect,c=e.catalogNumber,u=e.customize,f=(0,L.Z)(e,A);return(0,j.jsxs)("div",{className:(0,d.Z)(U,{"border-red-600":t}),children:[t&&(0,j.jsx)(y,{slug:null===a||void 0===a?void 0:a.slug,direction:"row",borderPosition:"bottom"}),(0,j.jsxs)(X,B(B({url:i,catalogNumberFontType:"sm"},f),{},{onSelect:s,catalogNumber:c,children:[!t&&(0,j.jsx)(N,{url:i,price:l,sale_price:o}),(0,j.jsx)("div",{}),(0,j.jsxs)("div",{className:"flex flex-col gap-3",children:[!t&&(u?(0,j.jsx)(M,{catalogNumber:c}):l>0&&(0,j.jsx)(E,{addToCart:n})),(0,j.jsx)(W,B({},r))]})]}))]})};var K=r(34562),Q=r(25675),Y=r.n(Q),$=function(e){var t=e.addToCart,r=(0,i.useRef)(null);return(0,j.jsx)(h.z,{size:"s",kind:"primary",className:"z-20 flex w-full items-center justify-center text-center text-xs",type:"rounded",onClick:function(){t({buttonRef:r})},ref:r,children:"Add to Cart"})},ee=function(e){var t=e.catalogNumber,r=(0,i.useRef)(null),n=function(){var e=(0,s.Z)(u().mark((function e(){var r,n,i,l,o,a,s,c,d;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null===(r=window)||void 0===r||null===(n=r.localStorage)||void 0===n||n.removeItem(S),null===(i=window)||void 0===i||null===(l=i.localStorage)||void 0===l||l.removeItem(k),null===(o=window)||void 0===o||null===(a=o.localStorage)||void 0===a||a.removeItem(O),null===(s=window)||void 0===s||s.localStorage.setItem(C,t),null!==(c=window)&&void 0!==c&&null!==(d=c.location)&&void 0!==d&&d.href&&(window.location.href="/toolboxconfigurator/configuration/addons");case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,j.jsx)(h.z,{size:"s",kind:"primary",className:"z-20 flex w-full items-center justify-center text-center text-xs",type:"rounded",onClick:n,ref:r,children:"Customize"})};function te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var re="rounded-xl border-1 border-grey-500",ne="grid w-full gap-x-2.5 gap-y-4 overflow-hidden py-4 px-2",ie=function(e){var t=e.isProductNonSellable,r=e.badge,n=e.query,l=e.url,o=e.title,a=e.thumb_image,s=e.sale_price,c=e.rating,u=e.price,d=e.catalogNumber,x=e.onSelect,v=e.sale_price,h=(0,i.useMemo)((function(){return r&&(0,f.u)(r,u,v)}),[r,u,v]);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)("div",{className:"relative grid place-items-center gap-1",children:[!!r&&h&&(0,j.jsx)(m._,{primary:!0,label:h,kind:r,className:"absolute left-2 top-0"}),(0,j.jsx)(p.x,{href:{pathname:l,query:n},children:(0,j.jsx)("div",{onClick:function(){return null===x||void 0===x?void 0:x(d)},children:a?(0,j.jsx)(Y(),{title:o,alt:o,src:a,width:100,height:90}):(0,j.jsx)(K.Z,{})})})]}),(0,j.jsxs)("div",{className:"grid gap-2.5",children:[(0,j.jsx)(p.x,{href:{pathname:l,query:n},children:(0,j.jsx)("div",{onClick:function(){return null===x||void 0===x?void 0:x(d)},children:(0,j.jsx)("h4",{className:"text-xs font-medium uppercase line-clamp-3",children:o})})}),(0,j.jsxs)("div",{className:"text-xxs text-grey-900",children:["Part No. ",d]}),c,!t&&(0,j.jsx)(p.x,{href:{pathname:l,query:n},children:(0,j.jsx)("div",{onClick:function(){return null===x||void 0===x?void 0:x(d)},children:(0,j.jsx)(w.n,{size:"mobile",price:u,salePrice:s,inline:!0})})})]})]})},le=function(e){var t=e.title,r=e.badge,n=e.sale_price,i=e.rating,l=e.url,o=e.price,a=e.catalogNumber,s=e.addToCart,c=e.thumb_image,u=e.query,f=e.buttonComponentData,m=f.onClick,p=f.icon,x=f.label,v=e.onSelect,b=e.customize;return(0,j.jsx)("div",{className:re,children:(0,j.jsxs)("div",{className:(0,d.Z)(ne,"grid-cols-2"),"data-testid":"product",children:[(0,j.jsx)(ie,{title:t,catalogNumber:a,url:l,thumb_image:c,sale_price:n,price:o,rating:i,badge:r,query:u,onSelect:v}),(0,j.jsxs)("div",{className:"col-span-3 grid grid-cols-[repeat(auto-fit,_minmax(180px,_1fr))_] gap-x-2.5",children:[(0,j.jsxs)(h.z,{className:"z-20 flex w-full items-center justify-center px-0 text-xs hover:text-blue-500",size:"se",type:"squared",kind:"simple",onClick:m,children:[p,(0,j.jsx)("span",{className:"ml-1.5 mr-1",children:x})]}),b?(0,j.jsx)(ee,{catalogNumber:a}):(o>0||n>0)&&(0,j.jsx)($,{addToCart:s})]})]})})},oe=function(e){return(0,j.jsx)(le,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?te(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):te(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e))};oe.WishList=function(e){var t=e.isProductNonSellable,r=e.primaryCategory,n=e.url,i=e.title,l=e.sale_price,o=e.rating,a=e.price,s=e.catalogNumber,c=e.isShareListModal,u=e.addToCart,f=e.thumb_image,m=e.query,p=e.badge,x=e.customize,v=e.buttonComponentData,b=v.onClick,g=v.icon;return(0,j.jsxs)("div",{className:(0,d.Z)(re,{"border-red-600":t}),children:[t&&(0,j.jsx)(y,{slug:null===r||void 0===r?void 0:r.slug,borderPosition:"bottom"}),(0,j.jsxs)("div",{className:(0,d.Z)(ne,"grid-cols-[40%_1fr]",{"gap-y-2.5":t}),"data-testid":"product",children:[(0,j.jsx)(ie,{title:i,catalogNumber:s,url:n,thumb_image:f,sale_price:l,price:a,isProductNonSellable:t,rating:o,badge:p,query:m}),(0,j.jsxs)("div",{className:"col-start-2 grid grid-cols-1 gap-x-2.5",children:[!t&&!c&&(x?(0,j.jsx)(ee,{catalogNumber:s}):(0,j.jsx)($,{addToCart:u})),(0,j.jsxs)(h.z,{className:(0,d.Z)({"col-end-3":!t&&!c,"h-9":t||c}),onClick:b,kind:"tag",children:[g," ",(t||c)&&(0,j.jsx)("span",{className:"ml-2 uppercase",children:"remove"})]})]})]})]})},oe.ShareWishList=function(e){var t=e.isProductNonSellable,r=e.primaryCategory,n=e.url,i=e.title,l=e.sale_price,o=e.rating,a=e.price,s=e.catalogNumber,c=e.addToCart,u=e.thumb_image,f=e.query,m=e.badge,p=e.customize,x=e.buttonComponentData,v=x.onClick,b=x.icon,g=x.label;return(0,j.jsxs)("div",{className:(0,d.Z)(re,{"border-red-600":t}),children:[t&&(0,j.jsx)(y,{slug:null===r||void 0===r?void 0:r.slug,borderPosition:"bottom"}),(0,j.jsxs)("div",{className:(0,d.Z)(ne,"grid-cols-[45%_1fr] gap-x-0",{"gap-y-2.5":t}),"data-testid":"product",children:[(0,j.jsx)(ie,{title:i,catalogNumber:s,url:n,thumb_image:u,sale_price:l,price:a,isProductNonSellable:t,rating:o,badge:m,query:f}),(0,j.jsx)("div",{className:"col-span-3 grid grid-cols-[repeat(auto-fit,_minmax(168px,_1fr))_] gap-y-2.5",children:!t&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(h.z,{className:"bg-transparent",onClick:v,kind:"tag",children:[b," ",(0,j.jsx)("span",{className:"ml-2 uppercase",children:g})]}),p?(0,j.jsx)(ee,{catalogNumber:s}):(0,j.jsx)($,{addToCart:c})]})})]})]})};var ae=function(){var e=(0,i.useState)({isMobile:!1,isTablet:!1,isDesktop:!1}),t=e[0],r=e[1],n=function(){var e=window.innerWidth;r({isMobile:e<768,isTablet:e>=768&&e<1024,isDesktop:e>=1024})};return(0,i.useEffect)((function(){return n(),window.addEventListener("resize",n),function(){window.removeEventListener("resize",n)}}),[]),t};function se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ce(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?se(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):se(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ue=function(e){var t,r,n=e.product,s=e.type,c=e.query,u=e.handleIntersection,d=e.onSelectItem,f=(0,i.useRef)(),m=(0,i.useState)(!1),p=m[0],x=m[1],v=ae().isMobile,h=(0,l.useProductActions)({productSku:n.catalogNumber,pid:n.pid,locationName:null!==(t=window)&&void 0!==t&&null!==(r=t.location)&&void 0!==r&&r.search.includes("searchText")?"Search Results":"Site Browse"}),b=h.addToCart,g=h.addToWishList,y=h.removeFromWishList,w=h.isInWishList;(0,l.useBazaarvoiceScript)();var N=(0,l.useTailwindConfigColor)("red","600"),C=(0,j.jsx)(o.i,{pid:n.pid,rating:n.reviews,disabled:!0,numReviews:n.numReviews}),O={icon:(0,j.jsx)(a.Z,{stroke:w?N:"currentColor",fill:w?N:"none"}),onClick:w?y:g,label:(0,j.jsx)("span",{className:"ml-1.5 mr-1",children:w?"In the wishlist":"Add to Wishlist"})};(0,i.useEffect)((function(){if(u){var e=new IntersectionObserver((function(e){e.some((function(e){return e.isIntersecting}))&&!p&&(u(e,n),x(!0))})),t=f.current;return t&&e.observe(t),function(){t&&e.unobserve(t)}}return function(){}}),[f,p,u,n]);return(0,j.jsx)(j.Fragment,{children:(0,j.jsx)("div",{ref:f,children:v?(0,j.jsx)("div",{children:(0,j.jsx)(oe,ce({addToCart:b,query:c,rating:C,buttonComponentData:O,onSelect:d},n))}):(0,j.jsx)("div",{children:function(){switch(s){case"grid":return(0,j.jsx)(F,ce(ce({addToCart:b,query:c,rating:C,buttonComponentData:O},n),{},{onSelect:d}),n.pid);case"list":return(0,j.jsx)(J,ce(ce({addToCart:b,query:c,rating:C,buttonComponentData:O,catalogNumber:n.catalogNumber},n),{},{onSelect:d}),n.pid);default:return(0,j.jsx)(j.Fragment,{})}}()})})})},de=r(16168);function fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?fe(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var pe=function(e){var t=e.product,r=e.type,n=e.query,o=e.removeFromShareWishList,s=e.isShareListModal,c=void 0!==s&&s,u=e.isShareWishListPage,d=void 0!==u&&u,f=e.onSelectItem,m=e.handleIntersection,p=(0,l.useProductActions)({productSku:t.catalogNumber,pid:t.pid,locationName:"Wishlist"}),x=p.addToCart,v=p.removeFromWishList,h=p.addToWishList,b=p.isInWishList,g=(0,i.useRef)(),y=(0,i.useState)(!1),w=y[0],N=y[1];(0,l.useBazaarvoiceScript)();var C=d?oe.ShareWishList:oe.WishList,O=(0,j.jsx)("div",{"data-bv-show":"inline_rating","data-bv-product-id":t.pid,"data-testid":"bazaarvoice-rating"}),S=(0,l.useTailwindConfigColor)("red","600"),k=(!t.sellable||!t.shippingWeight)&&!t.customize,P=d?{icon:(0,j.jsx)(a.Z,{stroke:b?S:"currentColor",fill:b?S:"none"}),onClick:h,label:"ADD TO WISHLIST"}:{icon:(0,j.jsx)(de.Z,{}),onClick:c&&o?function(){return o(t.catalogNumber)}:v,label:"REMOVE"};(0,i.useEffect)((function(){if(m){var e=new IntersectionObserver((function(e){e.some((function(e){return e.isIntersecting}))&&!w&&(m(e,t),N(!0))})),r=g.current;return r&&e.observe(r),function(){r&&e.unobserve(r)}}return function(){}}),[g,w,m,t]);return(0,j.jsx)(j.Fragment,{children:(0,j.jsxs)("div",{ref:g,children:[(0,j.jsx)("div",{className:"hidden sm:block ",children:function(){switch(r){case"grid":return(0,j.jsx)(F.WishList,me({addToCart:x,query:n,isShareListModal:c,isProductNonSellable:k,rating:O,buttonComponentData:P,onSelect:f},t),t.pid);case"list":return(0,j.jsx)(J.WishList,me({addToCart:x,query:n,rating:O,isProductNonSellable:k,buttonComponentData:P,onSelect:f},t),t.pid);default:return(0,j.jsx)(j.Fragment,{})}}()}),(0,j.jsx)("div",{className:"block sm:hidden",children:(0,j.jsx)(C,me({addToCart:x,query:n,rating:O,isShareListModal:c,isProductNonSellable:k,buttonComponentData:P},t))})]})})},xe=r(16434),ve=function(e){var t=e.title,r=e.count,n=void 0===r?6:r,l=e.options,a=void 0===l?[]:l,s=e.onSelect,c=e.onClear,u=e.rating,f=void 0!==u&&u,p=e.selectedFields,x=(0,i.useState)(a.length<=n),v=x[0],h=x[1];return(0,j.jsxs)("aside",{className:(0,d.Z)("relative flex w-full flex-col"),"data-test-id":"facet",children:[(0,j.jsxs)("div",{className:"mb-3 flex h-5 flex-row justify-between",children:[(0,j.jsx)("h5",{className:"text-2xl font-bold capitalize",children:t}),(0,j.jsx)("button",{type:"button",className:"text-base text-grey-900",onClick:c,children:"Clear"})]}),(0,j.jsx)("ul",{className:(0,d.Z)("flex flex-col gap-4",{"overflow-hidden ":!v}),children:a.length>0?(0,R.Z)(a,v?a.length:n).map((function(e){var r;return(0,j.jsxs)("li",{className:"flex h-5 flex-row justify-between",children:[(0,j.jsx)(xe.X,{className:"gap-2.5 text-tiny",checked:null===(r=p[t])||void 0===r?void 0:r.has(e.value),onCheck:function(t){s(e.value,t)},children:f?(0,j.jsx)(o.i,{pid:e.value,rating:+(e.value||0),disabled:!0,isFacet:!0}):decodeURIComponent(e.title)}),(0,j.jsx)(m._,{kind:"facet",className:"!bg-blue-100 !text-blue-500",label:"".concat(e.count)})]},e.value)})):(0,j.jsx)("li",{className:"h-5 px-2 text-tiny ",children:"No facets"})}),a.length>n&&(0,j.jsx)("button",{type:"button",onClick:function(){return h((function(e){return!e}))},className:"flex h-8 w-full flex-row items-center justify-center bg-white text-tiny text-grey-900",children:v?"Show less":"Show more"})]})},he=r(17674),be=r(92638),ge=function(e){var t=e.title,r=e.values,n=void 0===r?[0,100]:r,i=(e.sliderValues,e.bounds),l=void 0===i?[0,100]:i,o=e.onChange,a=void 0===o?function(){}:o,s=(0,he.Z)(l,2),c=s[0],u=s[1],d=(0,he.Z)(n,2),f=d[0],m=d[1];return(0,j.jsxs)("aside",{className:"relative flex w-full flex-col gap-3","data-test-id":"facet-price",children:[(0,j.jsx)("div",{className:"flex h-5 flex-row justify-between",children:(0,j.jsx)("h1",{className:"text-2xl font-bold capitalize",children:t})}),(0,j.jsx)("div",{className:"flex max-h-48 flex-col gap-3",children:(0,j.jsxs)("div",{className:"relative flex w-full items-center sm:justify-around",children:[(0,j.jsx)(be.L,{label:"min",value:f,minValue:c,maxValue:m,isCorrectValue:f>m||isNaN(f)||f<c,onChange:function(e){return a([e,m])}}),(0,j.jsx)("span",{className:"px-2 pt-3 text-grey-900",children:"-"}),(0,j.jsx)(be.L,{label:"max",value:m,minValue:f,maxValue:m,isCorrectValue:f>m||isNaN(m)||m>u,onChange:function(e){return a([f,e])}})]})})]})},je=r(90116);function ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function we(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?ye(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ye(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ne={1:"[1 TO *]",2:"[2 TO *]",3:"[3 TO *]",4:"[4 TO *]"},Ce=function(e){return Object.entries(e).map((function(e){var t=(0,he.Z)(e,2),r=t[0],n=t[1];return(0,je.Z)(n).map((function(e){return"rating"===r?'reviews:"'.concat(Ne[e],'"'):"".concat(r,':"').concat(e,'"')})).join(" OR ")}))},Oe=function(e){return Object.entries(e).map((function(e){var t=(0,he.Z)(e,2),r=t[0],n=t[1];return"".concat("price"===r?"sale_price":r,":[").concat(n[0]," TO ").concat(n[1],"]")}))},Se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?e.split(",").reduce((function(e,t){var r=we({},e);if(t.includes("reviews")){var n,i=t.split(":"),l="rating",o=null!==(n=(0,he.Z)(i,2)[1].match(/\D+(\d+)\D+(\d+|\*)\D+/))&&void 0!==n?n:[],a=(0,he.Z)(o,2)[1];r.selectedFields[l]?r.selectedFields[l].add(a.replace(/"/g,"")):r.selectedFields[l]=new Set([a.replace(/"/g,"")])}else if(t.includes("[")&&t.includes("]")){var s,c=t.split(":"),u=(0,he.Z)(c,2),d=u[0],f=null!==(s=u[1].match(/\D+(\d+)\D+(\d+)\D+/))&&void 0!==s?s:[0,1e3],m=(0,he.Z)(f,3),p=m[1],x=m[2];r.selectedRanges[d]=[+p,+x]}else t.split(" OR ").forEach((function(e){var t=e.split(":"),n=(0,he.Z)(t,2),i=n[0],l=n[1];i&&(r.selectedFields[i]?r.selectedFields[i].add(l.replace(/"/g,"")):r.selectedFields[i]=new Set([l.replace(/"/g,"")]))}));return r}),{selectedFields:{},selectedRanges:{}}):{selectedFields:{},selectedRanges:{}}},ke=function(e){var t=1e3;return e?0===e.length?["*"===e[0].start?0:+e[0].start,"*"===e[0].end?t:+e[0].end]:["*"===e[0].start?0:Math.floor(+e[0].start),"*"===e[e.length-1].end?t:Math.ceil(+e[e.length-1].end)]:[0,t]},Pe=r(11163),Ze=r(45784),ze=function e(t,r){var n=r.find((function(e){return e.value===t}));return n?n.parent?[n.value].concat((0,je.Z)(e(n.parent,r))):[n.value]:[]},_e=function(e){var t,r,n,l=e.title,o=e.count,a=void 0===o?6:o,s=e.options,c=void 0===s?[]:s,u=e.onSelect,f=e.selectedFields,p=e.categoryId,x=e.withCountLabel,v=void 0!==x&&x,h=(0,Pe.useRouter)().push,b=f&&f.category||new Set([null!==(t=null===c||void 0===c||null===(r=c.find((function(e){return p?e.value===p:""===e.parent})))||void 0===r?void 0:r.value)&&void 0!==t?t:""]),g=(0,he.Z)(b,1)[0],y=(0,i.useMemo)((function(){return g?ze(g,c).reverse():[]}),[g,c]),w=(0,i.useState)(c.filter((function(e){return e.parent===g})).length<=a),N=w[0],C=w[1],O=(0,i.useCallback)((function(e){var t=c.filter((function(t){return t.parent===e}));return t&&(0,R.Z)(t,N?t.length:a).map((function(e){return(0,j.jsxs)("li",{className:"flex items-center justify-between pl-5",children:[(0,j.jsx)("button",{type:"button",onClick:function(){return u(e.value)},className:"text-left text-tiny hover:underline",children:decodeURIComponent(e.title)}),v&&(0,j.jsx)(m._,{kind:"facet",className:"max-h-[22px] !bg-blue-100 !text-blue-500",label:"".concat(e.count)})]},e.value)}))}),[c,N,a,v,u]),S=(0,i.useCallback)((function(e){var t=c.find((function(t){return t.value===e}));return t&&(0,j.jsx)("li",{children:(0,j.jsxs)("button",{type:"button",className:"flex flex-row items-start gap-2 text-tiny font-medium hover:underline",onClick:function(){return"all-categories"===t.slug?h("/catalog"):u(t.value)},children:[(0,j.jsx)("div",{className:(0,d.Z)({invisible:t.value===g}),children:(0,j.jsx)(Ze.Z,{title:"Arrow left",className:"text-tiny"})}),(0,j.jsx)("div",{className:"text-left",children:decodeURIComponent(t.title)})]})},t.value)}),[c,g,h,u]);return(0,j.jsxs)("aside",{className:"relative flex w-full flex-col","data-test-id":"facet",children:[(0,j.jsx)("div",{className:"mb-4 flex h-5 flex-row justify-between",children:(0,j.jsx)("h1",{className:"text-2xl font-medium capitalize",children:l})}),(0,j.jsx)("ul",{className:"mb-2 flex flex-col gap-4",children:y.map((function(e){return S(e)}))}),(0,j.jsx)("ul",{className:(0,d.Z)("flex flex-col pt-1",{"overflow-hidden ":!N,"gap-3.5":!v,"gap-2":v}),children:O(g)}),(null===(n=c.filter((function(e){return e.parent===g})))||void 0===n?void 0:n.length)>a&&(0,j.jsx)("button",{type:"button",onClick:function(){return C((function(e){return!e}))},className:"flex h-8 w-full flex-row items-center justify-center bg-white text-tiny text-grey-900",children:N?"Show less":"Show more"})]})},De=r(97322)}}]);
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.