PageSourceSearch

https://www.milwaukeetool.ca/_next/static/chunks/2312.d27c143c4e029f6d.js

js milwaukeetool.ca collected 2026-09-28 06:45:59 UTC 11,701 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2312],{22312:function(n,t,e){e.r(t),e.d(t,{default:function(){return y}});var r=e(27573),i=e(56683),u=e(83723),o=e(15693);function a(){let n=(0,i._)(["\n  header-two-containers\n  mb-3.5\n  overflow-hidden\n  ","\n"]);return a=function(){return n},n}function c(){let n=(0,i._)(["\n  header-two-containers-title-image\n  flex\n  justify-center\n  h-auto\n  max-h-[118px]\n  max-w-[236px]\n  md:max-h-[170px]\n  md:max-w-[340px]\n  md:pb-2.5\n  md:pt-12\n  mx-auto\n  my-0\n  pb-2\n  pt-3.5\n  px-0\n  w-auto\n"]);return c=function(){return n},n}function s(){let n=(0,i._)(["\n  object-contain\n"]);return s=function(){return n},n}function l(){let n=(0,i._)(["\n  header-two-containers-subtitle\n  font-helvetica85\n  md:pb-12\n  text-[24px]\n  text-brandWhite\n  text-center\n"]);return l=function(){return n},n}function d(){let n=(0,i._)(["\n  header-two-containers-container\n  flex\n  flex-col\n  md:flex-row\n  md:justify-between\n  md:px-7\n  md:pb-12 \n"]);return d=function(){return n},n}function h(){let n=(0,i._)(["\n  header-two-containers-container-top-left\n  md:flex-[0_0_39%]\n  md:max-w-[39%]\n  pt-14\n  md:pt-0\n"]);return h=function(){return n},n}function f(){let n=(0,i._)(["\n  header-two-containers-container-bottom-right\n  accordion\n  stack\n  md:flex-[0_0_59%]\n  md:max-w-[59%]\n"]);return f=function(){return n},n}function m(){let n=(0,i._)(["\n  bg-[#a60115]\n  pt-2\n  px-2\n  pb-[5px]\n"]);return m=function(){return n},n}let x=u.Z.section(a(),n=>{let{backgroundColor:t}=n;switch(t){case"red-background":return"bg-brandPrimary";case"black-background":return"bg-brandBlack";default:return""}}),p=u.Z.div(c()),v=(0,u.Z)(o.Z)(s()),g=u.Z.h4(l()),_=u.Z.div(d()),b=u.Z.div(h()),j=u.Z.div(f()),w=u.Z.div(m());var C=e(73995),E=e(55482),A=e(29242),y=n=>{let{backgroundColor:t,subtitleCopy:e,titleImage:i}=n;return(0,r.jsxs)(x,{backgroundColor:t.stylingClass,children:[i&&(0,r.jsx)(p,{children:(0,r.jsx)(v,{url:null==i?void 0:i.url,alt:null==i?void 0:i.alt})}),e&&(0,r.jsx)(g,{children:(0,r.jsx)(A.Z,{code:e,as:"span"})}),(0,r.jsxs)(_,{children:[(0,r.jsx)(b,{children:(0,r.jsx)(C.Vm,{name:"header-two-containers-container-top-left"})}),(0,r.jsx)(j,{children:(0,r.jsx)(w,{children:(0,r.jsx)(E.b,{children:(0,r.jsx)(C.Vm,{name:"header-two-containers-container-bottom-right"})})})})]})]})}},51512:function(n,t,e){e.d(t,{FC:function(){return o},Fz:function(){return c},Mo:function(){return s},UH:function(){return d},ZM:function(){return l},wt:function(){return u}});var r=e(7653);let i=/\{([a-zA-Z0-9-_]*)\}/g,u=(n,t)=>n.replace(i,(n,e)=>e in t?t[e]:""),o=(n,t)=>{let{current:e}=n;t?null==e||e.classList.add("active"):null==e||e.classList.remove("active")},a=n=>n.replace(/<\/?[^>]+(>|$)/g,""),c=n=>r.isValidElement(n)?n.props.alt||n.props.filename?n.props.alt||n.props.filename:n.props.code?a(String(n.props.code)):r.Children.toArray(n.props.children).map(c).join(" "):String(n),s=n=>{try{return JSON.parse(n)}catch(n){return console.warn(n),null}},l=n=>{let t;switch("mx"===window.location.hostname.split(".").pop()&&(n="es-MX"),null==n?void 0:n.toLowerCase()){case"fr-ca":t="/fr";break;case"es-us":t="/es";break;default:t=""}return t},d=n=>!!n},23203:function(n,t,e){e.d(t,{D:function(){return u}});var r=e(59372),i=e(45950);let u=()=>{var n;let{isLoading:t,isAuthenticated:e,user:u}=(0,r.J)(),o=t?"met session id is not yet available":null==u?void 0:null===(n=u.session)||void 0===n?void 0:n.id;return n=>{e&&u?i.default.fireEvent({rudderstack_user_id:u.details.email,...n},o):i.default.fireEvent(n,o)}}},49394:function(n,t,e){e.d(t,{s:function(){return u}});var r=e(7653),i=e(73995);let u=()=>(0,r.useContext)(i.xh)},55482:function(n,t,e){e.d(t,{b:function(){return T},H:function(){return N}});var r=e(27573),i=e(7653),u=e(70738),o=e(48481),a=e(76486),c=e(66363),s=e(56683),l=e(83723),d=e(36984);function h(){let n=(0,s._)(["\n  accordion\n  ","  \n\n"]);return h=function(){return n},n}function f(){let n=(0,s._)(["\n  flex\n  items-center\n  cursor-pointer\n  ","\n  "]);return f=function(){return n},n}function m(){let n=(0,s._)(["\n  ","   \n  md:mr-1.5\n"]);return m=function(){return n},n}function x(){let n=(0,s._)(["\n  overflow-hidden\n  max-h-full\n"]);return x=function(){return n},n}function p(){let n=(0,s._)(["\n  ","\n"]);return p=function(){return n},n}let v=n=>"".concat(n?"bg-gray-700":"bg-gray-200","  "),g=l.Z.div(h(),n=>{let{design:t}=n;switch(t){case"DARK":case"DARK-ROUNDED":case"STACK":return"";case"COMPACT":return"\n        border-t\n        border-gray-500\n      ";case"SECONDARY":return"\n        border-0\n      ";case"DEFAULT-CENTER":return"\n          border-0\n          mx-auto\n      ";default:return"\n        border\n        md:border-2\n        border-gray-200\n        md-max:border-l-0\n        md-max:border-r-0\n      "}}),_=l.Z.div(f(),n=>{let{design:t,isOpen:e}=n;switch(t){case"DARK":return"\n        ".concat(v(e),"       \n        px-4\n        py-1    \n        my-1 \n      ");case"DARK-ROUNDED":return" \n        ".concat(v(e)," \n        px-4\n        py-1    \n        my-1\n        rounded-md     \n      ");case"COMPACT":return"\n        px-0\n        py-5\n        md:px-5\n        md:py-6\n      ";case"SECONDARY":return"\n        ".concat(e?"bg-gray-700 text-white":"bg-white","\n        bg-white\n        px-0\n        py-2\n        md:px-5\n        shadow-md\n        shadow-black/10\n        border-0\n      ");case"STACK":return"\n        p-2\n        md:py-10\n        md:pr-5\n        md:pl-8     \n        bg-brandPrimary\n        mb-[3px]\n      ";case"DEFAULT-CENTER":return"";default:return"\n        px-4\n        py-5\n        md:px-5\n        md:py-6\n      "}}),b=l.Z.div(m(),n=>{let{noSpace:t}=n;return!t&&"ml-auto"});l.Z.div(x());let j=n=>"".concat(n&&"text-white"),w=(0,l.Z)(d.h)(p(),n=>{let{design:t,isOpen:e}=n;switch(t){case"DARK":return"\n        ".concat(j(e),"       \n      ");case"DARK-ROUNDED":return" \n      ".concat(j(e)," \n      ");default:return"\n      "}});var C=e(4561),E=e(79394),A=e(47928),y=e(81535);let M=()=>null!==(0,y.N)();var L=e(23203),Z=e(51512),S=e(49394),D=e(73995);let N=n=>{let{independent:t=!1,...e}=n,i=M();return(0,r.jsx)(i&&!t?R:k,{...e})},R=n=>{let{isCollapsed:t=!0,...e}=n,[i,u]=(0,A._)({toggle:!0,defaultToIsActive:!t});return(0,r.jsx)(O,{isOpen:i,toggleAccordion:u,...e})},k=n=>{let{isCollapsed:t=!0,...e}=n,[u,o]=(0,i.useState)(!t);return(0,i.useEffect)(()=>{o(!t)},[t]),(0,r.jsx)(O,{isOpen:u,toggleAccordion:()=>{o(n=>!n)},...e})},O=n=>{let{children:t,accordionTitle:e,design:i,onToggle:s,id:l,isOpen:d,toggleAccordion:h,icons:f="PLUSMINUS",iconColor:m,position:x,totalAccordions:p}=n,v=(0,L.D)(),j=(0,S.s)(),C=(0,D.cZ)(),E=()=>void 0!==x?x+1:void 0!==j&&C.length?j.index?j.index+1:1:void 0,A=()=>void 0!==p?p:C.length?C.length:void 0,y=()=>{switch(i){case"COMPACT":return 24;case"STACK":return 38;case"DEFAULT-CENTER":return 48;default:return 35}},M=()=>
1{if(m)return m;switch(i){case"STACK":case"COMPACT":return"WHITE";default:return"MILWAUKEE_RED"}},N=()=>{let n=null;return"CHEVRON"===f&&(n=d?a.x:c.m),"PLUSMINUS"===f&&(n=d?u.v:o.r),n&&(0,r.jsx)(n,{fillColor:M(),width:y(),height:y()})};return(0,r.jsxs)(g,{id:l,isOpen:d,design:i,children:[(0,r.jsxs)(_,{isOpen:d,onClick:()=>{h(),s&&s(!d),v({event:"accordion_engagement_tracking",action_type:"accordion click",action_category:"content viewing",action_content:(0,Z.Fz)(e),action_target:d?"less":"more",action_parent:"generic accordion",action_parent_detail:void 0,action_depth:E(),action_depth_context:A(),action_level:void 0,action_level_context:void 0})},design:i,children:["CHEVRON"===f&&(0,r.jsx)(b,{noSpace:"CHEVRON"===f,children:N()}),"string"!=typeof e?e:(0,r.jsx)(w,{as:"h4",size:"SMALL",isOpen:d,design:i,children:e}),"PLUSMINUS"===f&&(0,r.jsx)(b,{children:N()})]}),(0,r.jsx)(H,{isOpen:d,children:t})]})},H=n=>{let{isOpen:t,children:e}=n,{contentRef:i,height:u}=(0,C.z)(t,150);return(0,r.jsx)("div",{ref:i,style:{overflow:"hidden",maxHeight:u},children:e})},T=n=>{let{children:t}=n;return(0,r.jsx)(E.Z,{children:t})}},30235:function(n,t,e){e.d(t,{E:function(){return u},F:function(){return o}});var r=e(27573),i=e(7653);let u=(0,i.createContext)(null),o=n=>{let{children:t}=n,[{ref:e,state:o},a]=(0,i.useState)({ref:null});return(0,r.jsx)(u.Provider,{value:{ref:e,state:o,setRef:a},children:t})}},47928:function(n,t,e){e.d(t,{_:function(){return u}});var r=e(81535),i=e(7653);let u=n=>{let{toggle:t,myActiveState:e,defaultToIsActive:u}=n,[o]=(0,i.useState)({}),{ref:a,setRef:c}=(0,r.N)(),s=a===o;return((0,i.useEffect)(()=>{u&&c({ref:o,state:e})},[u,c,o,e]),t)?[s,()=>c(s?{ref:null}:{ref:o,state:e})]:[s,()=>c({ref:o,state:e})]}},81535:function(n,t,e){e.d(t,{N:function(){return u}});var r=e(30235),i=e(7653);let u=()=>(0,i.useContext)(r.E)},79394:function(n,t,e){e.d(t,{Z:function(){return u}});var r=e(27573),i=e(30235);let u=n=>{let{children:t}=n;return(0,r.jsx)(i.F,{children:t})}},33729:function(n,t,e){e.d(t,{_:function(){return a}});let r={},i=(n,t,e)=>{if(e&&r[e])return r[e];let i=new u(n,t,e);return r[i.id]=i,i};class u{setMs(n){this.timeInMs=n,this.rate=this.amount/this.timeInMs}setAmt(n){this.amount=n,this.rate=this.amount/this.timeInMs}animate(n){this.stop=this._trigger(t=>{n(this.rate*t)})}to(n,t){this.stop=this._trigger(e=>{let r=Math.min(this.rate*e,this.amount);n(r),r===this.amount&&(null==t||t.call(this))})}from(n,t){this.stop=this._trigger(e=>{let r=this.rate*e,i=Math.max(this.amount-r,0);n(i),0===i&&(null==t||t.call(this))})}_requestAnimation(n){window.requestAnimationFrame(n)}_trigger(n){let t,e,r=!1,i=u=>{t=t||u;let o=u-t;e!==u&&n(o),o<this.timeInMs&&(e=u,r||this._requestAnimation(i))};return this._requestAnimation(i),()=>r=!0}constructor(n,t,e){this.type="",this.amount=0,this.timeInMs=0,this.stop=()=>{},this.id=e||Date.now(),this.amount=n,this.timeInMs=t,this.type="linear",this.rate=this.amount/this.timeInMs}}var o=e(7653);let a=(n,t)=>{let[e,r]=(0,o.useState)();return(0,o.useEffect)(()=>(r(i(n,t,null==e?void 0:e.id)),()=>null==e?void 0:e.stop()),[n,t,e]),e}},4561:function(n,t,e){e.d(t,{z:function(){return u}});var r=e(33729),i=e(7653);let u=function(n,t){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0px",u=(0,i.useRef)(null),[o,a]=(0,i.useState)(n?"100%":e),c=(0,r._)(0,t);return(0,i.useEffect)(()=>{if(!u.current)return;let t=n=>a("".concat(Math.max(parseInt(e),n),"px"));null==c||c.setAmt(u.current.scrollHeight),n?null==c||c.to(t,()=>a("100%")):null==c||c.from(t)},[n,c,e]),{contentRef:u,height:o}}},70738:function(n,t,e){e.d(t,{v:function(){return u}});var r=e(11431),i=e(27573),u=({...n})=>(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(r.u,{...n,children:(0,i.jsx)("g",{children:(0,i.jsx)("path",{d:"M4.57501 13.175V10.825H19.425V13.175H4.57501Z"})})})})},48481:function(n,t,e){e.d(t,{r:function(){return u}});var r=e(11431),i=e(27573),u=({...n})=>(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(r.u,{...n,children:(0,i.jsx)("g",{children:(0,i.jsx)("path",{d:"M10.825 19.425V13.175H4.57501V10.825H10.825V4.57501H13.175V10.825H19.425V13.175H13.175V19.425H10.825Z"})})})})},66363:function(n,t,e){e.d(t,{m:function(){return u}});var r=e(11431),i=e(27573),u=({...n})=>(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(r.u,{...n,children:(0,i.jsx)("g",{children:(0,i.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(n,t,e){e.d(t,{x:function(){return u}});var r=e(11431),i=e(27573),u=({...n})=>(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(r.u,{...n,children:(0,i.jsx)("g",{children:(0,i.jsx)("path",{d:"M12 15.95L5.40002 9.35002L7.07502 7.67502L12 12.625L16.925 7.70002L18.6 9.37502L12 15.95Z"})})})})}}]);

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.