PageSourceSearch

https://www.milwaukeetool.com/_next/static/chunks/2725.79ffe957244dfcd1.js

js milwaukeetool.com collected 2026-10-01 08:59:58 UTC 10,783 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2725],{7976:function(e,n,t){t.r(n),t.d(n,{default:function(){return F}});var l=t(27573),r=t(47025),i=t(56683),o=t(83723),u=t(36984),a=t(15693);function d(){let e=(0,i._)(["\n  usp-hero \n  section\n  relative\n  h-full\n  w-screen\n  min-h-[570px]\n  flex\n  justify-end\n  flex-col   \n  md:min-h-[600px]\n  md:justify-normal\n  md:flex-row  \n"]);return d=function(){return e},e}function s(){let e=(0,i._)(["\n  usp-hero__content-container \n  flex\n  h-auto\n  w-full\n  z-[1]  \n  bg-gray-900\n  md:bg-transparent\n  relative\n  min-h-[290px]\n  md:min-h-fit\n  ","\n  ","    \n"]);return s=function(){return e},e}function c(){let e=(0,i._)(["\n  usp-hero__content  \n  text-white\n  my-0\n  mx-auto\n  md:mx-[70px]\n  md:my-auto\n  px-3\n  py-5\n  md:py-8\n  md:pr-8\n  md:pl-10  \n  max-w-[450px] \n  md:max-w-none\n  w-full\n  text-center\n  ","  \n  ","\n"]);return c=function(){return e},e}function v(){let e=(0,i._)(['\n  usp-hero__heading  \n  relative\n  text-white\n  font-helvetica83\n  text-center\n  md:text-left\n  md:mb-6\n  md:before:border-b-[3px]\n  md:before:absolute\n  md:before:content-[""]\n  md:before:pt-1\n  md:before:pb-2.5\n  md:before:w-[30px]\n  md:before:-left-[40px]  \n\n  ',"    \n"]);return v=function(){return e},e}function m(){let e=(0,i._)(["\n  usp-hero__usp-container  \n  [&>.usp-text]:mb-5  \n  flex \n  flex-row \n  justify-between\n  md:flex-col\n  py-3.5\n  px-0\n  w-[95%]\n  mx-auto\n  my-0\n\nmd:py-0\nmd:w-full\n  ","\n"]);return m=function(){return e},e}function f(){let e=(0,i._)(["\n  usp-hero__image-container\n  flex\n  flex-row\n  justify-center\n  overflow-auto\n  items-center\n"]);return f=function(){return e},e}function p(){let e=(0,i._)(["\n  usp-hero__image  \n  mr-5  \n  ","\n"]);return p=function(){return e},e}function x(){let e=(0,i._)(["\n  usp-hero__subheading\n  flex-1\n  text-[13px]\n  uppercase\n  font-helvetica73  \n"]);return x=function(){return e},e}function _(){let e=(0,i._)(["\n  usp-hero__video\n  full-video\n  mx-auto\n  w-full\n  pb-8\n  absolute\n"]);return _=function(){return e},e}function g(){let e=(0,i._)(["\n  w-full\n  relative\n  pt-[56.25%]\n  pb-0\n  px-0\n  [&_iframe]:absolute\n  [&_iframe]:w-full  \n  [&_iframe]:h-full\n  [&_iframe]:left-0\n  [&_iframe]:top-0\n  [&_iframe]:max-w-full\n  [&_iframe]:max-h-full    \n  h-[75vh]\n  lg:h-auto\n  [&>div]:lg-max:h-full\n  [&>div]:lg-max:left-1/2\n  [&>div]:lg-max:absolute\n  [&>div]:lg-max:top-1/2\n  [&>div]:lg-max:-translate-y-1/2\n  [&>div]:lg-max:-translate-x-1/2\n  [&>div]:lg-max:w-[177.77777778vh]\n"]);return g=function(){return e},e}function h(){let e=(0,i._)(["\n  [&_.usp-text--line]:lg-max:text-xs\n  [&_.usp-text--xl]:lg-max:text-[21px]\n  [&_.usp-text--xxl]:lg-max:text-[22px]\n"]);return h=function(){return e},e}let b=e=>"alignment-right"===e?"md:justify-end md:pr-11":"md:justify-start",y=e=>{switch(e){case"red-background":return"md:bg-brandPrimary";case"black-background":return"md:bg-black/70";default:return""}},w=e=>{switch(e){case"portrait-orientation":return"md:max-w-[375px] md:w-[45%] lg:w-1/3";case"landscape-orientation":return"md:h-auto md:w-2/5";default:return""}},C=o.Z.div(d()),k=o.Z.div(s(),e=>{let{contentPosition:n}=e;return b(n)},e=>{let{hasVideo:n}=e;return!1===n?"absolute bottom-0":""}),E=o.Z.div(c(),e=>{let{contentBackgroundColor:n}=e;return y(n)},e=>{let{contentOrientation:n}=e;return w(n)}),j=(0,o.Z)(u.h)(v(),e=>{let{contentBackgroundColor:n}=e;return"black-background"===n?"before:border-brandPrimary":"before:border-gray-900"}),S=o.Z.div(m(),e=>{let{contentOrientation:n}=e;return"landscape-orientation"===n?"flex flex-row md:flex-row justify-between [&>.usp-text]:mr-5 [&>.usp-text]:flex-initial":""}),Z=o.Z.div(f()),N=(0,o.Z)(a.Z)(p(),e=>{let{contentOrientation:n}=e;return"landscape-orientation"===n?"w-[30%]":"w-2/5"}),P=o.Z.span(x()),R=o.Z.div(_()),V=o.Z.div(g()),B=o.Z.div(h());var L=t(58464),O=t(73995),I=t(11363),q=t(33545),A=t(7653),z=t(95136),D=t(23203),F=e=>{let{contentBackgroundColor:n,contentOrientation:t,contentPosition:i,ctaLink:o,heading:u,image:a,mP4VideoSource:d,posterImage:s,subheading:c,webmVideoSource:v,vimeoVideoID:m}=e,f=!!m||!!d||!!v,p=(0,A.useRef)(null),{carouselRef:x}=(0,A.useContext)(q.ZP),_=null==x?void 0:x.current,g=(0,D.D)(),h=(0,A.useCallback)(function(){var e,n;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!_||!(null==p?void 0:p.current))return;let l=null===(e=_.getActiveSlide())||void 0===e?void 0:e.querySelector("[data-vimeoid]");(null==l?void 0:null===(n=l.dataset)||void 0===n?void 0:n.vimeoid)===m?p.current.play():t?p.current.playPause():p.current.pauseOrPauseReset()},[_,m]);(0,A.useEffect)(()=>{h(!0)}
1,[h]),(0,A.useEffect)(()=>{if(null==p?void 0:p.current)return null==_||_.onMove((e,n)=>{h()}),()=>{null==_||_.cleanUp("move")}},[p,_,h]);let b=(0,A.useCallback)(e=>{var n,t;let l;if("backwards"==e?l="splide__slide is-prev":"forward"==e&&(l="splide__slide is-next"),void 0===l)return;let r=null==_?void 0:_.splide(),i=null==r?void 0:r.Components.Elements.root,o=null==i?void 0:i.getElementsByClassName(l),a=void 0===o?void 0:null===(n=o[0])||void 0===n?void 0:n.querySelector("[data-vimeoid]");(null==a?void 0:null===(t=a.dataset)||void 0===t?void 0:t.vimeoid)===m&&g({event:"carousel_engagement_tracking",action_type:"change focus",action_category:"content viewing",action_content:u,action_target:e,action_parent:"media hero carousel",action_parent_detail:"https://player.vimeo.com/video/".concat(m),action_depth:null==_?void 0:_.getSlideNumber(),action_depth_context:null==_?void 0:_.getSlideCount(),action_level:void 0,action_level_context:void 0})},[_,m,g,u]);(0,A.useEffect)(()=>{var e,n,t,l;if(!(null==p?void 0:p.current))return;let r=()=>b("backwards"),i=()=>b("forward");return null==_||null===(n=_.splide())||void 0===n||null===(e=n.Components.Elements.arrows)||void 0===e||e.getElementsByClassName("splide__arrow--prev")[0].addEventListener("click",r),null==_||null===(l=_.splide())||void 0===l||null===(t=l.Components.Elements.arrows)||void 0===t||t.getElementsByClassName("splide__arrow--next")[0].addEventListener("click",i),()=>{var e,n,t,l;null==_||null===(n=_.splide())||void 0===n||null===(e=n.Components.Elements.arrows)||void 0===e||e.getElementsByClassName("splide__arrow--prev")[0].removeEventListener("click",r),null==_||null===(l=_.splide())||void 0===l||null===(t=l.Components.Elements.arrows)||void 0===t||t.getElementsByClassName("splide__arrow--next")[0].removeEventListener("click",i)}},[_,p,b]);let y=(0,A.useCallback)(e=>{var n,t;if(!_||!(null==p?void 0:p.current))return;let l=null===(n=_.getActiveSlide())||void 0===n?void 0:n.querySelector("[data-vimeoid]");m===(null==l?void 0:null===(t=l.dataset)||void 0===t?void 0:t.vimeoid)&&m===(null==e?void 0:e.toString())&&(_.getSlideNumber()<_.getSlideCount()?_.gotoNextSlide(e):_.gotoFirstSlide())},[_,m]);return(0,l.jsxs)(C,{"data-vimeoid":m,children:[s&&!f&&(0,l.jsx)(L.Z,{url:null==s?void 0:s.url,alt:null==s?void 0:s.alt,loading:"eager"}),f&&m&&(0,l.jsx)(R,{children:(0,l.jsx)(V,{children:(0,l.jsx)(I.Z,{videoId:m,autoplay:!1,controls:!1,autopause:!1,loop:null==_||!_.isAutoSlideVideosEnabled(),muted:!0,ref:p,autoSlideVideosEnabled:null==_?void 0:_.isAutoSlideVideosEnabled(),videoPlaybackFinishedCb:y})})}),(0,l.jsx)(k,{contentPosition:null==i?void 0:i.stylingClass,hasVideo:f,children:(0,l.jsxs)(E,{contentBackgroundColor:null==n?void 0:n.stylingClass,contentOrientation:null==t?void 0:t.stylingClass,children:[(0,l.jsx)(j,{as:z.iy,contentBackgroundColor:null==n?void 0:n.stylingClass,size:{xs:z.lZ,lg:z.qh},children:u}),(0,l.jsx)(S,{contentOrientation:null==t?void 0:t.stylingClass,children:(0,l.jsx)(O.Vm,{name:"usp-text-item",wrapper:()=>(0,l.jsx)(B,{})})}),(a||c)&&(0,l.jsxs)(Z,{children:[(0,l.jsx)(N,{url:null==a?void 0:a.url,alt:null==a?void 0:a.alt,contentOrientation:null==t?void 0:t.stylingClass,loading:"eager"}),(0,l.jsx)(P,{children:c})]}),(0,l.jsx)(r.Z,{text:null==o?void 0:o.text,width:{xs:z.Lb,md:z.fV},size:z.lZ,link:o,className:" usp-hero__link md:justify-start",theme:(null==n?void 0:n.stylingClass)==="red-background"?"OUTLINEINVERSE":"SOLID",onClick:()=>{var e,n;if(!_)return;let t=null===(e=_.getActiveSlide())||void 0===e?void 0:e.querySelector("[data-vimeoid]");m===(null==t?void 0:null===(n=t.dataset)||void 0===n?void 0:n.vimeoid)&&g({event:"carousel_engagement_tracking",action_type:"carousel link click",action_category:"site navigation",action_content:u,action_target:null==o?void 0:o.url,action_parent:"media hero carousel",action_parent_detail:"https://player.vimeo.com/video/".concat(m),action_depth:null==_?void 0:_.getSlideNumber(),action_depth_context:null==_?void 0:_.getSlideCount(),action_level:void 0,action_level_context:void 0})}})]})})]})}},33545:function(e,n,t){t.d(n,{e2:function(){return o},zt:function(){return i},ZP:function(){return u}});
1var l=t(7653),r=t(27573),i=e=>{let{children:n}=e,[t,i]=(0,l.useState)(o),a=(0,l.useRef)(null);return(0,r.jsx)(u.Provider,{value:{...t,carouselRef:a},children:n})};let o={carouselRef:null};var u=(0,l.createContext)(o)},23203:function(e,n,t){t.d(n,{D:function(){return i}});var l=t(59372),r=t(45950);let i=()=>{var e;let{isLoading:n,isAuthenticated:t,user:i}=(0,l.J)(),o=n?"met session id is not yet available":null==i?void 0:null===(e=i.session)||void 0===e?void 0:e.id;return e=>{t&&i?r.default.fireEvent({rudderstack_user_id:i.details.email,...e},o):r.default.fireEvent(e,o)}}},11363:function(e,n,t){var l=t(27573),r=t(7653),i=t(307);let o=(0,r.forwardRef)((e,n)=>{let{autopause:t,autoplay:o=!1,byline:u=!1,className:a,controls:d=!0,loop:s=!1,muted:c=!1,portrait:v=!1,title:m=!1,responsive:f=!1,videoId:p,autoSlideVideosEnabled:x,videoPlaybackFinishedCb:_}=e,g=(0,r.useRef)(null),h=(0,r.useRef)(null);return(0,r.useImperativeHandle)(n,()=>({play:()=>{var e;null===(e=h.current)||void 0===e||e.play()},playPause:()=>{var e;null===(e=h.current)||void 0===e||e.play().then(()=>{var e;null===(e=h.current)||void 0===e||e.pause()})},pause:()=>{var e;null===(e=h.current)||void 0===e||e.pause()},pauseOrPauseReset:()=>{var e,n;x?null===(e=h.current)||void 0===e||e.pause().then(()=>{var e;null===(e=h.current)||void 0===e||e.setCurrentTime(0)}):null===(n=h.current)||void 0===n||n.pause()}})),(0,r.useEffect)(()=>{if(g.current){if(h.current=new i.Z(g.current,{autopause:t,autoplay:o,byline:u,controls:d,id:Number(p),loop:s,muted:c,portrait:v,title:m,responsive:f}),void 0!==_){var e;null===(e=h.current)||void 0===e||e.on("ended",()=>{var e;null===(e=h.current)||void 0===e||e.getVideoId().then(function(e){_(e)})})}return()=>{var e;null===(e=h.current)||void 0===e||e.unload()}}},[t,o,u,d,s,c,v,m,p,f,x,_]),(0,l.jsx)("div",{ref:g,className:a})});n.Z=o,o.displayName="VideoPlayer"}}]);

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.