PageSourceSearch

https://www.milwaukeetool.ca/_next/static/chunks/7263.f97410839bc4e8a7.js

js milwaukeetool.ca collected 2026-09-28 06:47:38 UTC 30,234 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7263],{24186:function(e,n,t){t.d(n,{Ty:function(){return c},IS:function(){return s},n:function(){return d}});let r={all:()=>["coveo"],catalogs:(e,n,t,o)=>[...r.all(),"catalogs",e,n,t,...o],completions:(e,n)=>[...r.all(),"completions",e,n],search:e=>[...r.all(),"search",e.language,e.query,e.facets,e.first]};var o=t(83580);let i=async(e,n)=>{let t=await (0,o.p)("client-only"),r=await t.get("api/v1/products/query-suggest?query=".concat(encodeURIComponent(n)));if(!r.ok)throw Error("Failed to fetch Coveo completions: ".concat(r.statusText));return await r.json()},l=async(e,n,t,r)=>{let i=await (0,o.p)("client-only"),l=await i.post("api/v1/products/catalog",{headers:{"Content-Type":"application/json"},body:JSON.stringify({language:e,query:n,page:t,categories:r})});if(!l.ok)throw Error("Failed to fetch Coveo catalogs: ".concat(l.statusText));return await l.json()},a=async e=>{var n;let t=await (0,o.p)("search"),r=await t.post("api/v1/products/search",{headers:{"Content-Type":"application/json"},body:JSON.stringify({query:e.query,language:e.language,facets:e.facets.length>0?e.facets:[],first:e.first})});if(!r.ok)throw Error("Failed to fetch Coveo search results: ".concat(r.statusText));let i=await r.json(),l=null===(n=i.triggers)||void 0===n?void 0:n.find(e=>"redirect"===e.type);if(l){window.location.replace(l.content);return}return i};var u=t(31988);let c=(e,n,t,o)=>(0,u.a)({queryKey:r.catalogs(e,n,t,o),queryFn:()=>l(e,n,t,o)}),s=(e,n)=>(0,u.a)({queryKey:r.completions(e,n),queryFn:()=>i(e,n),enabled:""!==n}),d=e=>(0,u.a)({queryKey:r.search(e),queryFn:()=>a(e),enabled:!!e.query})},72193:function(e,n,t){t.d(n,{$B:function(){return h},z2:function(){return f},Pu:function(){return d},ky:function(){return s}});var r=t(31988),o=t(83580);let i=async(e,n)=>{let t=await (0,o.p)("search"),r=await t.post("api/search/v3/products",{json:{language:e,products:n.map(e=>({sku:e}))}});if(!r.ok)throw Error("Failed to fetch products by SKU: ".concat(await r.text()));return(await r.json()).products},l=async e=>{let n=await (0,o.p)("search"),t=await n.post("api/search/v3/products",{headers:{"Content-Type":"application/json"},body:JSON.stringify({language:e.language,query:{type:"MARKETING_CATEGORIES",categories:e.categoryIds,...void 0!==e.take&&{take:e.take},...void 0!==e.skip&&{skip:e.skip}}})});if(!t.ok)throw Error("Failed to fetch marketing category products: ".concat(t.statusText));return await t.json()},a=async e=>{let n=await (0,o.p)("search"),t=await n.post("api/search/v3/products",{headers:{"Content-Type":"application/json"},body:JSON.stringify({language:e.language,query:{type:"FUEL",value:!0,...void 0!==e.take&&{take:e.take},...void 0!==e.skip&&{skip:e.skip}}})});if(!t.ok)throw Error("Failed to fetch fuel products: ".concat(t.statusText));return await t.json()},u=async e=>{let n=await (0,o.p)("search"),t=await n.post("api/search/v3/products",{json:{language:e.language,query:{type:"BATTERY_SYSTEM",value:e.batterySystem,...void 0!==e.take&&{take:e.take},...void 0!==e.skip&&{skip:e.skip}}}});if(!t.ok)throw Error("Failed to fetch battery system products: ".concat(t.statusText));return await t.json()},c={all:["products"],allProducts:e=>[...c.all,"all-products",e],products:e=>[...c.all,"list",e],marketingCategory:e=>[...c.all,"marketing-category",e],fuelProducts:e=>[...c.all,"fuel",e],batterySystemProducts:e=>[...c.all,"battery-system",e]},s=function(e){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,r.a)({queryKey:c.products(e),queryFn:()=>i(e.language,e.products),enabled:n&&e.products.length>0})},d=function(e){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,r.a)({queryKey:c.marketingCategory(e),queryFn:()=>l(e),enabled:n&&e.categoryIds.length>0})},f=function(e){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,r.a)({queryKey:c.fuelProducts(e),queryFn:()=>a(e),enabled:n})},h=function(e){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,r.a)({queryKey:c.batterySystemProducts(e),queryFn:()=>u(e),enabled:n&&!!e.batterySystem})}},19730:function(e,n,t){t.d(n,{Z:function(){return T}});var r=t(27573),o=t(7653),i=t(7577),l=t(69082),a=t(55862),u=t(54458),c=t(16886),s=t(24186);let d=(e,n)=>{let{data:t,isLoading:r}=(0,s.IS)(n,e);return r?{isLoading:!0}:{data:t||{completions:[]},isLoading:!1}};var f=t(14038),h=t(80878),p=t(56683),g=t(83723);function x(){let e=(0,p._)(["\n    border-solid\n    border\n    border-neutral-500\n    absolute\n    top-full\n    left-0\n    translate-y-[1px]\n    w-full\n    z-30\n"]);return x=function(){return e},e}function v(){let e=(0,p._)(["\n  [&:first-child > *]:border-t-0\n"]);return v=function(){return e},e}function y(){let e=(0,p._)(["\n    cursor-pointer\n    whitespace-nowrap \n    overflow-hidden \n    text-brandBlack \n    p-3 \n    hover:bg-gray-50 \n    w-full \n    font-helvetica55 \n    bg-white\n    border-t \n    border-neutral-50\n    text-left\n"]);return y=function(){return e},e}let m=g.Z.div(x()),b=g.Z.div(v()),j=g.Z.div(y()),w=e=>{let n=[],t=0,o=[],i=e=>{switch(e){case"]":return"font-extrabold";case")":return"italic";default:return"text-gray-500"}};for(;t<e.length;){let l=e[t];switch(l){case"}":case"]":case")":n.push((0,r.jsx)("span",{className:i(l),children:o.join("")},t));break;case"[":case"{":case"(":o=[];break;default:o.push(l)}" "===l&&n.push(" "),t++}return n};var _=e=>{let{keyword:n,onSelection:t}=e,o=(0,h.Z)(),{data:i}=d((0,f.N)(n,400),o);return i&&0!==i.completions.length?(0,r.jsx)(m,{children:i.completions.map((e,n)=>(0,r.jsx)(b,{onClick:()=>t(e.expression),children:(0,r.jsx)(j,{children:w(e.highlighted)})}
1,n))}):(0,r.jsx)(r.Fragment,{})};function k(){let e=(0,p._)(["\n  relative\n  w-full\n"]);return k=function(){return e},e}function C(){let e=(0,p._)(["\n  absolute\n  top-0\n  right-9\n  z-2\n  cursor-pointer\n  ml-auto\n  flex \n  items-center\n  justify-center\n  ","\n"]);return C=function(){return e},e}function Z(){let e=(0,p._)(["\n  absolute\n  top-0\n  z-2\n  cursor-pointer\n  ml-auto\n  flex \n  items-center\n  justify-center\n  ","\n  ","\n  ","\n"]);return Z=function(){return e},e}let S=g.Z.div(k()),F=e=>"STANDARD"===e?"\n        h-[45px]\n        w-[45px]\n      ":"\n        h-[30px]\n        w-[30px]\n      ",L=e=>e?"right-9 bg-WHITE":"right-0",D=(e,n)=>e?"bg-WHITE":"BLACK"===n?"bg-brandBlack":"bg-darkRed";g.Z.div(C(),e=>{let{theme:n}=e;return n&&F(n)});let E=g.Z.div(Z(),e=>{let{theme:n}=e;return n&&F(n)},e=>{let{isNavbar:n}=e;return L(n)},e=>{let{isNavbar:n,buttonFillColor:t}=e;return D(n,t)});var P=t(95136),T=(0,o.memo)(e=>{let{withButton:n,buttonFillColor:t,theme:s="THIN",setFocus:d,isNavbar:f}=e,[h,p]=(0,o.useState)(""),g=(0,i.US)(e=>e.searchPage.query),x=(0,o.useRef)(null),v=(0,l.Z)(),y=(0,i.bO)();(0,o.useEffect)(()=>{x.current&&d&&x.current.focus(),p(g||"")},[g,d]);let m=e=>{(null==(e=e||h)?void 0:e.trim())&&y((0,a.Vx)({query:e,first:0}))};return(0,r.jsxs)(S,{children:[(0,r.jsx)(u.Z,{ref:x,autoComplete:"off",type:"text",placeholder:v("Search MilwaukeeTool"),name:"search",theme:s,value:decodeURIComponent(h),onValueChange:p,onKeyDown:e=>{let{code:n}=e;n&&("Enter"===n||"NumpadEnter"===n)&&m()},className:"STANDARD"===s?"py-4 my-0":"","data-testid":"search-input"}),n&&(0,r.jsx)(E,{buttonFillColor:t,theme:s,onClick:()=>m(),isNavbar:f,"data-testid":"search-button",children:(0,r.jsx)(c.W,{fillColor:f?P.E5:P.Cj,width:"STANDARD"===s?42:24,height:"STANDARD"===s?42:24})}),""!==h&&g!==h&&(0,r.jsx)(_,{keyword:h,onSelection:m})]})})},74691:function(e,n,t){t.r(n);var r=t(27573),o=t(19730);n.default=()=>(0,r.jsx)(o.Z,{withButton:!0,buttonFillColor:"BLACK",theme:"STANDARD"})},16127:function(e,n,t){t.r(n),t.d(n,{default:function(){return eX}});var r=t(27573),o=t(73995),i=t(7577),l=t(25119),a=t(13911),u=t(69082),c=t(4144),s=t(73349),d=t(95136),f=t(36984),h=e=>{let{}=e,n=(0,i.US)(e=>e.searchPage.curatedProducts),t=(0,i.US)(e=>e.searchPage.query),o=(0,i.US)(e=>e.searchPage.totalCountFiltered),h=(0,u.Z)(),{returnedProds:p}=(0,a.u)({products:null==n?void 0:n.map(e=>e.sku)}),g=null==p?void 0:p.filter(e=>(null==e?void 0:e.sku)&&(null==e?void 0:e.title)).map(e=>{var n;let t=null==e?void 0:null===(n=e.specs)||void 0===n?void 0:n.reduce((e,n)=>(e[n.key]=n,e),{});return{type:"PRODUCT",sku:e.sku,title:e.title,heroImage:e.heroImage,launchDate:new Date((null==e?void 0:e.launchDate)||"").toString(),marketingCategories:e.marketingCategories||{},specs:t,colorOptions:[]}});return g.length?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.W2,{children:(0,r.jsxs)(s.r,{justifyContent:d.uA,alignItems:d.h,direction:d.T9,noGap:!0,children:[(0,r.jsx)("p",{"data-testid":"number-of-results",className:"mt-4 mb-8",children:""!==t&&"".concat(o," ").concat(h("ResultsFor"),' "').concat(decodeURIComponent(t||""),'"')}),(0,r.jsx)(f.h,{as:d.kf,size:"MEDIUM",className:"mb-4",children:h("YouMightAlsoLike")})]})}),(0,r.jsx)(l.Z,{products:g})]}):(0,r.jsx)(r.Fragment,{})},p=t(7653),g=t(56683),x=t(83723);function v(){let e=(0,g._)(["\n  search-interface\n"]);return v=function(){return e},e}function y(){let e=(0,g._)(["\n  search-interface\n  w-full \n  bg-brandWhite\n  z-30\n  ","\n"]);return y=function(){return e},e}function m(){let e=(0,g._)(["\n  coveo-search-section \n  block \n  m-[0_auto_0] \n  max-w-full \n  text-center \n  items-center \n  w-full \n  px-0\n  ","\n"]);return m=function(){return e},e}function b(){let e=(0,g._)(["\n  md:w-[675px]\n  mx-auto \n  flex \n  ","\n"]);return b=function(){return e},e}function j(){let e=(0,g._)(["\n  flex\n  w-full \n  justify-center\n  mt-4\n"]);return j=function(){return e},e}function w(){let e=(0,g._)(["\n  font-normal\n  font-helvetica\n  min-h-[18px]\n"]);return w=function(){return e},e}function _(){let e=(0,g._)(["\n  coveo-tabs \n  tab-background \n  bg-gradient-gray \n  ","\n"]);return _=function(){return e},e}x.Z.div(v());let k=x.Z.div(y(),e=>{let{sticky:n}=e;return n?"fixed":"relative"}),C=x.Z.div(m(),e=>{let{sticky:n}=e;return n?"p-3":"py-10"}),Z=x.Z.div(b(),e=>{let{sticky:n}=e;return n?"py-1":"py-5"}),S=x.Z.div(j()),F=(0,x.Z)(f.h)(w()),L=x.Z.div(_(),e=>{let{sticky:n}=e;return n?"h-3":"h-10"});var D=t(73709),E=t(85996),P=t(55862),T=t(99370),A=t(44295);let N=()=>{let e=(0,i.US)(e=>e.searchPage),n=(0,i.bO)();return{...e,setFacets:e=>{n((0,P.F3)({facets:e}))},setPage:e=>{n((0,P.Vx)({page:e}))},startFrom:e=>{n((0,P.Vx)({first:e}))},setQuery:e=>{n((0,P.PP)(e))}}};var U=t(76486),q=t(66363);let R=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,[t]=(0,p.useState)(n),[r,o]=(0,p.useState)(1),i=(0,p.useMemo)(()=>e.slice(0,r*t),[e,r,t]);return{page:r,items:i,perPage:t,onLoadMore:()=>{o(e=>e+1)},onLoadLess:()=>{o(e=>Math.max(1,e-1))}}};var I=t(2128);function M(){let e=(0,g._)(["\n  cursor-pointer\n  flex \n  my-0.5\n  justify-between \n  text-brandBlack \n  font-helvetica55 \n  text-12 \n  px-2 \n  py-2\n  \n  ","\n\n  ","\n"]);return M=function(){return e},e}function O(){let e=(0,g._)(["\n  flex \n  items-center\n  justify-center\n  py-1\n  cursor-pointer\n"]);return O=function(){return e},e}let V=x.Z.span(M(),e=>{let{isSelected:n}=e;return n?" bg-brandSecondary text-brandWhite":"bg-gray-300 hover:bg-[#e6ecf0]"},e=>{let{isSearch:n}=e;return n&&"text-brandSecondary"}),z=x.Z.div(O());var W=t(23203),B=e=>{let{item:n,category:t,values:o,idx:l}=e,a=(0,i.bO)(),u=(0,i.US)(e=>e.searchPage.facets),c=(0,W.D)(),s=(0,i.US)(e=>e.searchPage.groupByResults),d=(e,n,r)=>{c({event:"filter_engagement_tracking",action_type:"listing filter click",action_category:"results management",action_content:e,action_target:n,action_parent:"product search",action_parent_detail:t,action_depth:r+1,action_depth_context:o.length,action_level:s.findIndex(e=>e.field===t)+1,action_level_context:s.length})},f=(e,n,r)=>{e.stopPropagation();let o="";u.filter(e=>e.value===n).length>0?(o="off",a((0,P.Vx)({facets:u.filter(e=>e.value!==n)}))):(o="on",a((0,P.Vx)({facets:[...u,{key:t,value:n}]}))),d(n,o,r)};return(0,r.jsxs)(V,{onClick:e=>f(e,n.Value,l),isSelected:u.filter(e=>e.value===n.Value).length>
10,"data-testid":"category-facet-item-".concat(n.Value),children:[(0,r.jsx)("div",{children:n.Value}),(0,r.jsx)("div",{children:n.NumberOfResults})]})};function K(){let e=(0,g._)(["\n  relative\n"]);return K=function(){return e},e}function H(){let e=(0,g._)(["\n  w-full\n  border\n  border-gray-700\n  p-1\n  text-13\n"]);return H=function(){return e},e}function J(){let e=(0,g._)(["\n  absolute\n  right-1\n  top-0\n  flex\n  items-center\n  cursor-pointer\n"]);return J=function(){return e},e}function $(){let e=(0,g._)(["\n  w-full\n  top-full\n  left-0\n  h-48\n  bg-brandWhite\n  p-2.5\n  overflow-y-auto\n  z-5\n  ","\n"]);return $=function(){return e},e}let Y=x.Z.div(K()),G=x.Z.input(H()),Q=x.Z.div(J()),X=x.Z.div($(),e=>{let{isOpen:n}=e;return n?"absolute":"hidden"});var ee=e=>{let{values:n,count:t,category:o}=e,[i,l]=(0,p.useState)(!1),[a,c]=(0,p.useState)(null),[s,d]=(0,p.useState)(""),f=(0,u.Z)(),h=a||n.slice(t);return(0,r.jsxs)(Y,{children:[(0,r.jsx)(r.Fragment,{children:i?(0,r.jsxs)(Y,{children:[(0,r.jsx)(G,{type:"text",value:s,onChange:e=>{let r=e.target.value;d(r),c(n.slice(t).filter(e=>e.Value.toLowerCase().includes(r.toLowerCase())))},placeholder:f("Type to search")}),(0,r.jsx)(Q,{onClick:()=>l(!i),children:(0,r.jsx)(T.A,{width:10})})]}):(0,r.jsx)(V,{isSelected:!1,isSearch:!0,onClick:()=>l(!i),children:f("Search")})}),i&&(0,r.jsx)(X,{isOpen:i,children:h.map((e,t)=>(0,r.jsx)(B,{item:e,category:o,values:n,idx:t},e.Value))})]})},en=e=>{let{values:n,category:t}=e,{items:o,onLoadMore:i,onLoadLess:l}=R(n,10),a=n.length>o.length;return(0,r.jsxs)(r.Fragment,{children:[o.map((e,o)=>(0,r.jsx)(B,{item:e,category:t,values:n,idx:o},e.Value)),a&&10<=o.length&&(0,r.jsx)(ee,{category:t,values:n,count:o.length}),10<o.length&&(0,r.jsx)(z,{onClick:l,children:(0,r.jsx)(I.x,{})}),a&&(0,r.jsx)(z,{onClick:i,children:(0,r.jsx)(U.x,{})})]})},et=t(15693);function er(){let e=(0,g._)(["\n  coveo-facets\n  relative\n  w-full\n"]);return er=function(){return e},e}function eo(){let e=(0,g._)(["\ncoveo-facet-header\n  block\n  p-0\n  text-center\n  bg-none\n  overflow-hidden\n  clear-both\n  bg-gray-100\n"]);return eo=function(){return e},e}function ei(){let e=(0,g._)(["\n  coveo-facet-header__title\n  cursor-pointer\n  bg-brandSecondary\n  hover:bg-brandPrimary\n  text-brandWhite\n  inline-block\n  font-helvetica83\n  text-14\n  font-bold\n  m-[-1px_auto_25px]\n  p-[12px_20px_0]\n  relative\n  uppercase\n  w-full\n  z-10\n  group\n"]);return ei=function(){return e},e}function el(){let e=(0,g._)(["\n  coveo-facet-header__title-wrapper\n  inline-block\n  min-w-[180px]\n  relative\n  z-10\n"]);return el=function(){return e},e}function ea(){let e=(0,g._)(["\n  absolute \n  left-1/2 \n  transform \n  -translate-x-[50%] \n  top-full \n  w-full \n  h-[11px] \n  border-l-[95px] \n  border-l-transparent \n  border-t-[20px] \n  border-t-brandSecondary\n  group-hover:border-t-brandPrimary\n  border-r-[95px] \n  border-r-transparent\n"]);return ea=function(){return e},e}function eu(){let e=(0,g._)(["\n  absolute\n  left-0\n  top-0\n  z-[9]\n  w-full\n  bg-brandBlack/60\n  transition-all\n  overflow-y-auto\n  ","\n"]);return eu=function(){return e},e}function ec(){let e=(0,g._)(["\n  flex\n  flex-wrap\n  lg:flex-nowrap\n  w-full\n  justify-start\n  items-start\n  gap-x-6\n"]);return ec=function(){return e},e}function es(){let e=(0,g._)(["\n  my-2.5\n  mx-0\n  p-0\n  border\n  border-[#7e8c9a]\n  rounded-sm\n  bg-brandWhite\n  relative\n  w-full\n  lg:w-[23.5%]\n  mt-0\n"]);return es=function(){return e},e}function ed(){let e=(0,g._)(["\n  h-4\n"]);return ed=function(){return e},e}function ef(){let e=(0,g._)(["\n  bg-none\n  cursor-pointer\n  p-[5px_10px_3px]\n  flex\n  justify-between\n  relative\n"]);return ef=function(){return e},e}function eh(){let e=(0,g._)(["\n  text-brandBlack\n  font-helvetica55\n  text-14\n  font-bold\n  capitalize\n  pt-[2px]\n"]);return eh=function(){return e},e}function ep(){let e=(0,g._)(["\n  ","\n"]);return ep=function(){return e},e}function eg(){let e=(0,g._)(["\n  flex\n"]);return eg=function(){return e},e}function ex(){let e=(0,g._)(["\n  pt-0.5\n  lowercase\n  text-15\n"]);return ex=function(){return e},e}function ev(){let e=(0,g._)(["\n  facet-header__title\n  mx-1\n"]);return ev=function(){return e},e}function ey(){let e=(0,g._)(["\n  cursor-pointer\n  text-brandWhite\n  flex\n  items-center\n  justify-center\n  border\n  rounded-full\n  w-8\n  h-8\n  ml-auto\n  mb-3\n  absolute\n  top-8\n  md:top-11\n  right-3.5\n"]);return ey=function(){return e},e}let em=x.Z.div(er()),eb=x.Z.div(eo()),ej=x.Z.div(ei()),ew=x.Z.div(el()),e_=x.Z.div(ea()),ek=x.Z.div(eu(),e=>{let{isOpen:n}=e;return n?"h-auto max-h-[80vh] p-[70px_25px_20px]":"h-0 overflow-hidden"}),eC=x.Z.div(ec()),eZ=x.Z.div(es()),eS=(0,x.Z)(et.Z)(ed()),eF=x.Z.div(ef()),eL=(0,x.Z)(f.h)(eh()),eD=x.Z.div(ep(),e=>{let{isOpen:n}=e;return n?"\n      h-auto\n      p-[8px_10px_3px]\n    ":"\n      h-0\n      overflow-hidden\n    "}),eE=x.Z.div(eg()),eP=x.Z.span(ex()),eT=x.Z.span(ev()),eA=x.Z.div(e
1y());var eN=e=>{let n,{item:t}=e,o=(0,A.Z)(),[i,l]=(0,p.useState)(o),{facets:a,setFacets:c}=N(),s=(0,u.Z)(),d=(e,n)=>{e.stopPropagation(),c(a.filter(e=>e.key!==n))},f="MILWAUKEE_RED";return t.values.length?(0,r.jsxs)(eZ,{children:[(0,r.jsxs)(eF,{onClick:()=>l(!i),children:[(0,r.jsxs)(eE,{children:[i?(0,r.jsx)(U.x,{fillColor:f}):(0,r.jsx)(q.m,{fillColor:f}),(0,r.jsx)(eL,{children:(e=>{switch(e.toLowerCase()){case"featuredmarketingcategory":return s("Category");case"powerz32xsource":return s("Power Source");case"batteryz32xsystem":return s("System");case"availability":return s("Availability");default:return e}})(t.Field)})]}),(n=t.Field,a.filter(e=>e.key===n).length>0&&(0,r.jsxs)(eE,{onClick:e=>d(e,t.Field),children:[(0,r.jsx)(T.A,{width:20}),(0,r.jsx)(eP,{children:s("Clear")})]}))]}),(0,r.jsx)(eD,{"data-testid":"filter-category-".concat(t.Field),isOpen:i,children:(0,r.jsx)(en,{values:t.values,category:t.Field})})]},t.Field):(0,r.jsx)(r.Fragment,{})},eU=t(87662),eq=()=>{let e=(0,u.Z)(),n=(0,E.Z)(),t=(0,i.US)(e=>e.searchPage.isOpen),o=(0,i.bO)(),l=(0,i.US)(e=>{let{searchPage:n}=e;return n.groupByResults}),a=e=>{e.stopPropagation(),o((0,P.VJ)(!t))},s=e("Filter"),d=(0,i.US)(e=>e.searchPage.results.length>0);return(0,r.jsx)(em,{children:(0,r.jsxs)(eb,{children:[(0,r.jsx)(ej,{"data-testid":"search-filter-toggle",onClick:a,children:(0,r.jsxs)(ew,{children:[(0,r.jsx)(eS,{url:eU.Dq,alt:s}),(0,r.jsx)(eT,{children:s}),(0,r.jsx)(e_,{})]})}),(0,r.jsxs)(ek,{isOpen:t,children:[(0,r.jsx)(eA,{onClick:a,children:(0,r.jsx)(T.A,{fillColor:"WHITE",width:22})}),!n&&(0,r.jsx)(c.W2,{children:(0,r.jsx)(D.Z,{})}),d?(0,r.jsx)(eC,{children:l.map(e=>(0,r.jsx)(eN,{item:e},e.Field))}):(0,r.jsx)("div",{className:"w-full text-center text-brandWhite",children:e("No Filters Available")})]})]})})},eR=t(74691),eI=t(93490),eM=()=>{var e;let n=(0,i.US)(e=>e.searchPage.query),t=(0,i.US)(e=>e.searchPage.totalCountFiltered),o=(0,u.Z)(),l=(0,p.useRef)(null),[a,c]=(0,p.useState)(!1);(0,eI.Z)(()=>{c(!!(l.current&&window.scrollY>l.current.offsetHeight))});let s=(null===(e=l.current)||void 0===e?void 0:e.offsetHeight)||0;return(0,r.jsx)("div",{style:{minHeight:s},ref:l,children:(0,r.jsxs)(k,{sticky:a,children:[(0,r.jsxs)(C,{sticky:a,children:[!a&&void 0!==n&&(0,r.jsx)(S,{children:(0,r.jsx)(F,{as:"h4",size:"SMALL","data-testid":"search-results-header",children:""!==n&&"".concat(t," ").concat(o("ResultsFor"),' "').concat(decodeURIComponent(n),'"')})}),(0,r.jsx)(Z,{"data-testid":"search-box-page",sticky:a,children:(0,r.jsx)(eR.default,{})})]}),(0,r.jsx)(L,{sticky:a}),n&&(0,r.jsx)(eq,{})]})})};function eO(){let e=(0,g._)(["\n  search-frame\n  bg-gray-100 \n"]);return eO=function(){return e},e}function eV(){let e=(0,g._)(["\n  coveo-tab-facet__wrapper\n"]);return eV=function(){return e},e}function ez(){let e=(0,g._)(["\n  coveo-main-section\n"]);return ez=function(){return e},e}function eW(){let e=(0,g._)(["\n  coveo-search-section\n"]);return eW=function(){return e},e}function eB(){let e=(0,g._)(["\n  coveo-tabs \n  tab-background\n"]);return eB=function(){return e},e}function eK(){let e=(0,g._)(["\n  coveo-facets\n"]);return eK=function(){return e},e}function eH(){let e=(0,g._)(["\n  coveo-facet-header\n"]);return eH=function(){return e},e}function eJ(){let e=(0,g._)(["\n  coveo-facets__wrap\n  hidden\n"]);return eJ=function(){return e},e}function e$(){let e=(0,g._)(["\n  coveo-results\n  clear-both\n  pb-5\n"]);return e$=function(){return e},e}let eY=x.Z.div(eO());x.Z.div(eV());let eG=x.Z.div(ez());x.Z.div(eW()),x.Z.div(eB()),x.Z.div(eK()),x.Z.div(eH()),x.Z.div(eJ());let eQ=x.Z.div(e$());var eX=()=>{let e=(0,i.US)(e=>e.searchPage.results.length>0),n=(0,i.US)(e=>e.searchPage.query);return(0,r.jsxs)(eY,{children:[(0,r.jsx)("div",{className:"coveo-tab-facet__wrapper",children:(0,r.jsx)(eM,{})}),(0,r.jsxs)(eG,{children:[(0,r.jsx)(o.Vm,{name:"facet-breadcrumbs"}),(0,r.jsxs)(eQ,{children:[(0,r.jsx)(o.Vm,{name:"results-header-components"}),(0,r.jsx)(o.Vm,{name:"result-list"}),!e&&n&&(0,r.jsx)(h,{}),(0,r.jsx)(o.Vm,{name:"results-footer-components"})]})]})]})}},73709:function(e,n,t){t.d(n,{Z:function(){return b}});var r=t(27573),o=t(7577),i=t(69082),l=t(55862),a=t(95136),u=t(99370),c=t(46422),s=t(56683),d=t(83723);function f(){let e=(0,s._)(["\n  flex\n  w-full\n  justify-start\n  items-center\n  pb-2\n  min-h-[44px]\n"]);return f=function(){return e},e}function h(){let e=(0,s._)(["\n  flex\n  justify-start\n  items-center\n  mr-8\n"]);return h=function(){return e},e}function p(){let e=(0,s._)(["\n  ml-5\n  flex \n  justify-center\n  items-center\n  cursor-pointer\n"]);return p=function(){return e},e}function g(){let e=(0,s._)(["\n  ml-2\n  text-14\n  ","\n"]);return g=function(){return e},e}let x=d.Z.div(f()),v=d.Z.div(h()),y=d.Z.div(p()),m=d.Z.span(g(),e=>{let{isOpen:n}=e;return n?"text-brandWhite":"text-brandBlack"});var b=()=>{let e=(0,o.bO)(),n=(0,o.US)(e=>e.searchPage.facets),t=(0,o.US)(e=>e.searchPage.isOpen),s=(0,i.Z)(),d=(t,r)=>{t.stopPropagation(),e((0,l.Vx)({facets:n.filter(e=>e.value!==r)}))};return(0,r.jsx)(x,{children:0<n.length&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v,{children:n.map(e=>(0,r.jsxs)(y,{"data-testid":"remove-facet-".concat(e.value.replace(/\s+/g,"-").toLowerCase()),onClick:n=>d(n,e.value),children:[(0,r.jsx)(u.A,{width:14,height:14,fillColor:t?a.Cj:a.E5}),(0,r.jsx)(m,{isOpen:t,children:e.value})]},e.key))}),(0,r.jsx)(c.z,{theme:t?a.d6:a.k$,size:a.PI,"data-testid":"clear-all-filters-button",onClick:n=>{n.stopPropagation(),e((0,l.Vx)({facets:[]}))},children:s("Clear All Filters")})]})})}},87662:function(e,n,t){t.d(n,{Cj:function(){return a},Dq:function(){return r},tL:function(){return o},w$:function(){return l},yR:function(){return i}});let r="/img/Foundation/Theming/MilwaukeeTool/global/filter.png",o="\n  [&_ul]:list-none\n  [&_ul]:pl-6\n  [&_ul>li]:relative\n  [&_ul>li]:before:absolute\n  [&_ul>li]:before:-left-4\n  [&_ul>li]:before:-translate-x-1/2\n  [&_ul>li]:before:-translate-y-1/2\n  [&_ul>li]:before:top-3\n  [&_ul>li]:before:w-2\n  [&_ul>li]:before:h-2\n  [&_ul>li]:before:bg-brandPrimary\n  [&_ul>li]:after:clear-both\n  [&_ul>li]:after:block\n",i="\n  [&_ol]:pl-6\n  [&_ol]:list-decimal\n  [&_ol]:list-outside\n",l="MILWAUKEE_RED",a="WHITE"},51512:function(e,n,t){t.d(n,{FC:function(){return l},Fz:function(){return u},Mo:function(){return c},UH:function(){return d},ZM:function(){return s},wt:function(){return i}});var r=t(7653);let o=/\{([a-zA-Z0-9-_]*)\}/g,i=(e,n)=>e.replace(o,(e,t)=>
1t in n?n[t]:""),l=(e,n)=>{let{current:t}=e;n?null==t||t.classList.add("active"):null==t||t.classList.remove("active")},a=e=>e.replace(/<\/?[^>]+(>|$)/g,""),u=e=>r.isValidElement(e)?e.props.alt||e.props.filename?e.props.alt||e.props.filename:e.props.code?a(String(e.props.code)):r.Children.toArray(e.props.children).map(u).join(" "):String(e),c=e=>{try{return JSON.parse(e)}catch(e){return console.warn(e),null}},s=e=>{let n;switch("mx"===window.location.hostname.split(".").pop()&&(e="es-MX"),null==e?void 0:e.toLowerCase()){case"fr-ca":n="/fr";break;case"es-us":n="/es";break;default:n=""}return n},d=e=>!!e},21181:function(e,n,t){t.d(n,{$h:function(){return u},BE:function(){return f},PN:function(){return c},cE:function(){return s},lm:function(){return d},pD:function(){return h},uS:function(){return g}});var r=t(51512);let o=e=>{let n=null==e?void 0:e.toLowerCase();switch("mx"===window.location.hostname.split(".").pop()&&(n="es-mx"),n){case"fr-ca":return{products:"produits",details:"details"};case"es-us":case"es-mx":return{products:"productos",details:"detalles"};default:return{products:"products",details:"details"}}},i=/[\u0300-\u036F\u1AB0-\u1AFF\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/g,l=/ /g,a=e=>{if(!e||!e.trim())return"";let n=e.toLowerCase().normalize("NFD").replace(i,""),t="",r=!1;for(let e of n)e>="a"&&e<="z"||e>="0"&&e<="9"?(t+=e,r=!1):!r&&t.length>0&&(t+="-",r=!0);return t.length>0&&"-"===t[t.length-1]&&(t=t.slice(0,-1)),t},u=(e,n,t)=>{let i=(0,r.ZM)(n),{products:u,details:c}=o(n);return["".concat(i,"/").concat(u),t?c:void 0,t?a(t):void 0,e].filter(e=>!!e).join("/").replace(l,"-")},c=e=>{if(e)return new Date(e)<new Date},s=e=>{if(!e)return{isComingSoon:!0,isNew:!1,isPortfolio:!1};let n=new Date(e),t=new Date,r=new Date(t);t.setDate(t.getDate()-90);let o=n>r,i=n>t;return{isComingSoon:o,isNew:i,isPortfolio:!(o||i)}},d=e=>{if(!e)return"Coming Soon";let n=new Date(e),t=new Date;return n>new Date(t)?"Coming Soon":(t.setDate(t.getDate()-90),n>t)?"New":""},f=e=>{window.m_ink=p(e)},h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.values(e).sort((e,n)=>e.order>n.order?-1:1)},p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(0===Object.keys(e).length)return[];let n=[];for(let t of h(e))n.push(t.display);return{fullMarketingCategories:n}},g=e=>{let{showNotifyButton:n,comingSoon:t,earlyAnnouncementDate:r,publicAnnouncementDate:o,additionalConditions:i=!0}=e;return!1!==t&&(!!n||!(o&&new Date(o)<=new Date)&&i&&(!!t||!!r||!!o))}},14038:function(e,n,t){t.d(n,{N:function(){return o}});var r=t(7653);let o=(e,n)=>{let[t,o]=(0,r.useState)(e);return(0,r.useEffect)(()=>{let t=setTimeout(()=>{o(e)},n);return()=>{clearTimeout(t)}},[e,n]),t}},44295:function(e,n,t){var r=t(63497);n.Z=()=>{let{isDesktop:e}=(0,r.w)();return e}},85996:function(e,n,t){var r=t(63497);n.Z=()=>{let{isMobile:e}=(0,r.w)();return e}},13911:function(e,n,t){t.d(n,{u:function(){return l}});var r=t(80878),o=t(72193),i=t(63347);let l=e=>{let{products:n,skip:t}=e,l=(0,r.Z)(),a=(0,i.U)(),{data:u,isSuccess:c,isFetching:s,isLoading:d}=(0,o.ky)({products:n,language:l,sourceSystem:a},t?!t:!!(null==n?void 0:n.length));return{returnedProds:u||[],isSuccess:c,isFetching:s,isLoading:d}}},63497:function(e,n,t){t.d(n,{w:function(){return l}});var r=t(7653),o=t(7577);let i=(e,n)=>{let t;return()=>{t&&clearTimeout(t),t=setTimeout(e,n)}},l=()=>{let e=(0,o.US)(e=>e.device.isMobile),[n,t]=(0,r.useState)(e),[l,a]=(0,r.useState)(!1),[u,c]=(0,r.useState)(!e),[s,d]=(0,r.useState)(!e);return(0,r.useEffect)(()=>{let e=i(()=>{let e=window.innerWidth;t(e<768),a(e>=768&&e<1024),c(e>=1024),d(e>=1400)},300);return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[u,n]),{isMobile:n,isDesktop:u,isTablet:l,isLgDesktop:s}}},93490:function(e,n,t){t.d(n,{Z:function(){return l}});var r=t(7653),o=t(7577),i=t(24790);function l(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=(0,o.bO)();(0,r.useEffect)(()=>(t((0,i._g)(e,n)),()=>{t((0,i.vO)(e,n))}),[t,e,n])}},54458:function(e,n,t){var r=t(27573),o=t(7653),i=t(34968);let l=(0,o.forwardRef)((e,n)=>{let{value:t="",onChange:o,onValueChange:l,...a}=e;return(0,r.jsx)(i.U,{value:t,onChange:e=>{let{target:n}=e;l&&l(n.value),o&&o(e)},ref:n,...a})});l.displayName="InputComponent",n.Z=l},34968:function(e,n,t){t.d(n,{U:function(){return u},n:function(){return a}});var r=t(56683),o=t(83723),i=t(45789);function l(){let e=(0,r._)(["\n  pt-4\n  px-2.5\n  my-4\n  text-gray-900\n  border\n  border-solid\n  hover:border-gray-900\n  focus:border-gray-900\n  focus:outline-none\n  focus-within:outline-none\n  ","\n  ","\n"]);return l=function(){return e},e}let a={STANDARD:"\n    border-gray-300\n    bg-gray-50\n  ",INVERSE:"\n    border-brandWhite\n    bg-brandWhite\n  ",THIN:"\n    py-2\n    px-3 \n    my-0\n    h-[30px]\n    border-0\n  ",DEFAULT:"STANDARD"},u=o.Z.input(l(),e=>"checkbox"===e.type||"radio"===e.type?"\n      mr-1\n      mt-1\n      inline\n    ":"\n      h-[46px]\n      w-full\n      peer\n    ",e=>{let{theme:n}=e;return(0,i.o)(n,a)})},2128:function(e,n,t){t.d(n,{x:function(){return i}});var r=t(11431),o=t(27573),i=({...e})=>(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(r.u,{...e,children:(0,o.jsx)("g",{children:(0,o.jsx)("path",{d:"M7.07502 15.95L5.40002 14.275L12 7.67499L18.6 14.25L16.925 15.925L12 11L7.07502 15.95Z"})})})})},66363:function(e,n,t){t.d(n,{m:function(){return i}});var r=t(11431),o=t(27573),i=({...e})=>(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(r.u,{...e,children:(0,o.jsx)("g",{children:(0,o.jsx)("path",{d:"M9.37501 18.6L7.70001 16.925L12.65 11.975L7.70001 7.02501L9.37501 5.35001L16 11.975L9.37501 18.6Z"})})})})},76486:function(e,n,t){t.d(n,{x:function(){return i}});var r=t(11431),o=t(27573),i=({...e})=>(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(r.u,{...e,children:(0,o.jsx)("g",{children:(0,o.jsx)("path",{d:"M12 15.95L5.40002 9.35002L7.07502 7.67502L12 12.625L16.925 7.70002L18.6 9.37502L12 15.95Z"})})})})},16886:function(e,n,t){t.d(n,{W:function(){return i}});var r=t(11431),o=t(27573),i=({...e})=>(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(r.u,{...e,children:(0,o.jsx)("path",{d:"M9.5 3C11.2239 3 12.8772 3.68482 14.0962 4.90381C15.3152 6.12279 16 7.77609 16 9.5C16 11.11 15.41 12.59 14.44 13.73L14.71 14H15.5L20.5 19L19 20.5L14 15.5V14.71L13.73 14.44C12.59 15.41 11.11 16 9.5 16C7.77609 16 6.12279 15.3152 4.90381 14.0962C3.68482 12.8772 3 11.2239 3 9.5C3 7.77609 3.68482 6.12279 4.90381 4.90381C6.12279 3.68482 7.77609 3 9.5 3ZM9.5 5C7 5 5 7 5 9.5C5 12 7 14 9.5 14C12 14 14 12 14 9.5C14 7 12 5 9.5 5Z"})})})}}]);

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.