PageSourceSearch

https://www.dewalt.de/_next/static/immutable/chunks/0o13qpeixzhjs.js

js dewalt.de collected 2026-09-25 05:22:32 UTC 78,527 bytes, 23 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,506925,540592,e=>{"use strict";var l=e.i(777831),t=e.i(529956);let r=(0,l.default)((0,t.jsx)("path",{d:"M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-8 7H9.5v-.5h-2v3h2V13H11v1c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1h3c.55 0 1 .45 1 1zm7 0h-1.5v-.5h-2v3h2V13H18v1c0 .55-.45 1-1 1h-3c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1h3c.55 0 1 .45 1 1z"}),"ClosedCaption");e.s(["default",0,r],506925);let i=(0,l.default)((0,t.jsx)("path",{d:"M6.83 4H19c1.1 0 2 .9 2 2v12c0 .05-.01.1-.02.16l-3.38-3.38c.24-.19.4-.46.4-.78v-1h-1.5v.5h-.17l-1.83-1.83V10.5h2v.5H18v-1c0-.55-.45-1-1-1h-3c-.55 0-1 .45-1 1v.17zm12.95 18.61L17.17 20H5c-1.11 0-2-.9-2-2V6c0-.05.02-.1.02-.15L1.39 4.22 2.8 2.81l18.38 18.38zM11 13.83l-.83-.83H9.5v.5h-2v-3h.17L6.4 9.22c-.24.19-.4.46-.4.78v4c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z"}),"ClosedCaptionDisabled");e.s(["default",0,i],540592)},720037,e=>{"use strict";var l=e.i(777831),t=e.i(529956);let r=(0,l.default)([(0,t.jsx)("path",{d:"M18 13c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6v4l5-5-5-5v4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8z"},"0"),(0,t.jsx)("path",{d:"M10.86 15.94v-4.27h-.09L9 12.3v.69l1.01-.31v3.26zm1.39-2.5v.74c0 1.9 1.31 1.82 1.44 1.82.14 0 1.44.09 1.44-1.82v-.74c0-1.9-1.31-1.82-1.44-1.82-.14 0-1.44-.09-1.44 1.82m2.04-.12v.97c0 .77-.21 1.03-.59 1.03s-.6-.26-.6-1.03v-.97c0-.75.22-1.01.59-1.01.38-.01.6.26.6 1.01"},"1")],"Forward10");e.s(["default",0,r])},493882,899507,e=>{"use strict";var l=e.i(777831),t=e.i(529956);let r=(0,l.default)((0,t.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen");e.s(["default",0,r],493882);let i=(0,l.default)((0,t.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit");e.s(["default",0,i],899507)},546032,e=>{"use strict";var l=e.i(777831),t=e.i(529956);let r=(0,l.default)((0,t.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause");e.s(["default",0,r])},141774,e=>{"use strict";var l=e.i(777831),t=e.i(529956);let r=(0,l.default)((0,t.jsx)("path",{d:"M19 11h-8v6h8zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2m-2 .02H3V4.97h18z"}),"PictureInPictureAlt");e.s(["default",0,r])},30279,e=>{"use strict";var l=e.i(777831),t=e.i(529956);let r=(0,l.default)([(0,t.jsx)("path",{d:"M11.99 5V1l-5 5 5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6h-2c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"},"0"),(0,t.jsx)("path",{d:"M10.89 16h-.85v-3.26l-1.01.31v-.69l1.77-.63h.09zm4.28-1.76c0 .32-.03.6-.1.82s-.17.42-.29.57-.28.26-.45.33-.37.1-.59.1-.41-.03-.59-.1-.33-.18-.46-.33-.23-.34-.3-.57-.11-.5-.11-.82v-.74c0-.32.03-.6.1-.82s.17-.42.29-.57.28-.26.45-.33.37-.1.59-.1.41.03.59.1.33.18.46.33.23.34.3.57.11.5.11.82zm-.85-.86c0-.19-.01-.35-.04-.48s-.07-.23-.12-.31-.11-.14-.19-.17-.16-.05-.25-.05-.18.02-.25.05-.14.09-.19.17-.09.18-.12.31-.04.29-.04.48v.97c0 .19.01.35.04.48s.07.24.12.32.11.14.19.17.16.05.25.05.18-.02.25-.05.14-.09.19-.17.09-.19.11-.32.04-.29.04-.48v-.97z"},"1")],"Replay10");e.s(["default",0,r])},178766,e=>{"use strict";var l=e.i(777831),t=e.i(529956);let r=(0,l.default)((0,t.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");e.s(["default",0,r])},701252,e=>{"use strict";var l=e.i(529956),t=e.i(280137),r=e.i(4433);function i({numberOfStepsShown:e}){return Math.floor(e/2)}function s({page:e,numberOfStepsShown:l}){return e<=function({numberOfStepsShown:e}){return e-2}({numberOfStepsShown:l})}function a({page:e,totalPages:l,numberOfStepsShown:t}){let r=function({totalPages:e,numberOfStepsShown:l}){return e>=2*l-1}({totalPages:l,numberOfStepsShown:t}),i=s({page:e,numberOfStepsShown:t}),o=n({page:e,totalPages:l,numberOfStepsShown:t});return r&&!i&&!o}function n({page:e,totalPages:l,numberOfStepsShown:t}){return e>function({totalPages:e,numberOfStepsShown:l}){return e-l}({totalPages:l,numberOfStepsShown:t})}function o({page:e,totalPages:l,numberOfStepsShown:t}){return s({page:e,numberOfStepsShown:t})?"first":n({page:e,totalPages:l,numberOfStepsShown:t})?"last":"middle"}function c(e,l,t,r){let o=function({index:e}){return 0===e}({index:e}),c=function({index:e}){return 1===e}({index:e}),d=i({numberOfStepsShown:l}),u=function({index:e,numberOfStepsShown:l}){return e===i({numberOfStepsShown:l})}({index:e,numberOfStepsShown:l}),m=function({numberOfStepsShown:e}){return e-2}({numberOfStepsShown:l}),x=function({index:e,numberOfStepsShown:l}){return e===function({numberOfStepsShown:e}){return e-2}({numberOfStepsShown:l})}({index:e,numberOfStepsShown:l}),p=function({numberOfStepsShown:e}){return e-1}({numberOfStepsShown:l}),v=function({index:e,numberOfStepsShown:l}){return e===function({numberOfStepsShown:e}){return e-1}({numberOfStepsShown:l})}({index:e,numberOfStepsShown:l}),f=function({totalPages:e,numberOfStepsShown:l}){return e>=2*l-1}({totalPages:t,numberOfStepsShown:l}),h=s({page:r,numberOfStepsShown:l}),b=function({page:e,numberOfStepsShown:l}){return e===l-1}({page:r,numberOfStepsShown:l}),g=function({page:e,numberOfStepsShown:l,totalPages:t}){return e>=l&&e<function({totalPages:e,numberOfStepsShown:l}){return e-l}({totalPages:t,numberOfStepsShown:l})}({page:r,numberOfStepsShown:l,totalPages:t}),j=function({totalPages:e}){return Math.floor(e/2)}({totalPages:t}),y=a({page:r,totalPages:t,numberOfStepsShown:l}),w=function({totalPages:e,numberOfStepsShown:l}){return e-l}({totalPages:t,numberOfStepsShown:l});return{isFirstIndex:o,leftMostMiddleIndex:1,isLeftMostMiddleIndex:c,middleIndex:d,isMiddleIndex:u,rightMostMiddleIndex:m,isRightMostMiddleIndex:x,lastIndex:p,isLastIndex:v,hasMiddleSteps:f,isFirstPages:h,isLeftMostMiddlePage:b,isInBetweenLeftMostAndRightMostPages:g,middlePage:j,isMiddlePages:y,rightMostMiddlePage:w,isRightMostMiddlePage:function({page:e,totalPages:l,numberOfStepsShown:t}){return e===function({totalPages:e,numberOfStepsShown:l}){return e-l}({totalPages:l,numberOfStepsShown:t})}({page:r,totalPages:t,numberOfStepsShown:l}),isLastPages:n({page:r,totalPages:t,numberOfStepsShown:l})}}var d=e.i(624559),u=function(e,l){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>l.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>l.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]]);return t};
1e.s(["CarouselPagination",0,e=>{var{arrowsClassName:s,bulletsClassName:n,bulletClassName:m,className:x,disabledNext:p,disabledPrev:v,hasArrows:f=!1,leftAriaLabel:h,numberOfStepsShown:b=5,onClickNext:g,onClickPrev:j,onDotNavigationClick:y,page:w,rightAriaLabel:N,setPage:k,size:C,textCopies:z={},totalPages:P}=e,S=u(e,["arrowsClassName","bulletsClassName","bulletClassName","className","disabledNext","disabledPrev","hasArrows","leftAriaLabel","numberOfStepsShown","onClickNext","onClickPrev","onDotNavigationClick","page","rightAriaLabel","setPage","size","textCopies","totalPages"]);let[T,B]=(0,t.useState)(!0),L=(0,t.useRef)(null),V=e=>{if(!e)return;let l=document.activeElement;null==l||l.blur(),setTimeout(()=>{var e;let l=null==(e=L.current)?void 0:e.querySelector('button[data-active="true"]');null==l||l.focus()},0)},M=({pageIndex:e,isBulletNav:l})=>{o({page:w,totalPages:P,numberOfStepsShown:b})===o({page:e,totalPages:P,numberOfStepsShown:b})?a({page:w,totalPages:P,numberOfStepsShown:b})&&V(l):(V(l),B(!1),setTimeout(()=>{B(!0)},300))};return(0,l.jsxs)("div",{className:(0,r.cn)("flex items-center",x),...S,children:[(0,l.jsx)("div",{className:(0,r.cn)("flex items-center gap-1.5 max-xl:w-full",n),ref:L,children:Array.from({length:Math.min(P,b)}).map((e,s)=>{let a=c(s,b,P,w),n=(({auxiliaryVariables:e,totalPages:l,index:t,page:r,numberOfStepsShown:i})=>{let{isFirstIndex:s,rightMostMiddleIndex:a,isRightMostMiddleIndex:n,hasMiddleSteps:o,isFirstPages:d,isMiddlePages:u,isLastPages:m}=null!=e?e:c(t,i,l,r);return!(l<=i)&&(!!s||!!n)&&(o?d?n:u?s||n:!!m&&s:r<=a?n:s)})({auxiliaryVariables:a,totalPages:P,index:s,page:w,numberOfStepsShown:b}),o=function({activeIndex:e,auxiliaryVariables:l,index:t,numberOfStepsShown:r,totalPages:s}){let a,{isFirstPages:n,isMiddlePages:o,isLastPages:c}=l;return a=n?t:c?s-r+t:o?e+(t-i({numberOfStepsShown:r})):t}({activeIndex:w,auxiliaryVariables:a,index:s,numberOfStepsShown:b,totalPages:P});return(0,l.jsxs)(t.Fragment,{children:[(0,l.jsx)("button",{"aria-label":`${z.buttonAriaLabel||"Go to page"} ${o+1}`,className:(0,r.cn)(((e,l="")=>(0,r.cn)("h-1.5 w-10 flex-1 rounded-button transition-colors",e?"bg-color-brand-surface-inverse":"bg-color-opacity-opacity-20",l))(o===w,m),{"duration-0":!T}),"data-active":o===w,onClick:()=>{M({pageIndex:o,isBulletNav:!0}),k(o),null==y||y()},type:"button"}),n&&(0,l.jsxs)("div",{className:"flex items-center gap-0.5",inert:!0,children:[(0,l.jsx)("span",{className:"size-1 bg-color-opacity-opacity-20"}),(0,l.jsx)("span",{className:"size-1 bg-color-opacity-opacity-20"}),(0,l.jsx)("span",{className:"size-1 bg-color-opacity-opacity-20"})]})]},s)})}),f&&(0,l.jsx)(d.CarouselArrows,{className:(0,r.cn)("xl:ml-[7.5625rem] xl:flex",s),disabledNext:p||w>=P-1,disabledPrev:v||w<=0,leftAriaLabel:h||z.goToPreviousSlide,onClickNext:e=>{M({pageIndex:w+1,isBulletNav:!1}),g(e)},onClickPrev:e=>{M({pageIndex:w-1,isBulletNav:!1}),j(e)},rightAriaLabel:N||z.goToNextSlide,size:C})]})}],701252)},482983,280135,807635,e=>{"use strict";var l=e.i(529956),t=e.i(720037),r=e.i(546032),i=e.i(714369),s=e.i(30279),a=e.i(777831);let n=(0,a.default)((0,l.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff");e.s(["default",0,n],280135);let o=(0,a.default)((0,l.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp");e.s(["default",0,o],807635);var c=e.i(451274),d=e.i(4433),u=function(e,l){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>l.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>l.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]]);return t};let m=(e={})=>({back:e.backBy10Seconds||"Back by 10 seconds",forward:e.forwardBy10Seconds||"Forward by 10 seconds",pause:e.pause||"Pause video",play:e.play||"Play video","volume-off":e.mute||"Mute audio","volume-on":e.unmute||"Unmute audio"}),x={back:(0,l.jsx)(s.default,{}),forward:(0,l.jsx)(t.default,{}),pause:(0,l.jsx)(r.default,{}),play:(0,l.jsx)(i.default,{}),"volume-off":(0,l.jsx)(n,{}),"volume-on":(0,l.jsx)(o,{})},p={pause:!0,play:!1,"volume-off":!0,"volume-on":!1},v={small:"[&_svg]:!h-[1.35rem] [&_svg]:!w-[1.35rem] size-8",medium:"[&_svg]:!h-[2.0625rem] [&_svg]:!w-[2.0625rem] size-[3.125rem]",large:"[&_svg]:!h-[4.5rem] [&_svg]:!w-[4.5rem] size-[6.25rem]",responsive:(0,d.cn)(`
2    h-[3.125rem] w-[3.125rem] p-[0.4375rem] sm:p-[0.6875rem]
3    xl:h-[6.25rem]
4    xl:w-[6.25rem]
5    xl:p-5
6    [&_svg]:!h-7
7    [&_svg]:!w-7
8    [&_svg]:xl:!h-[3.75rem]
9    [&_svg]:xl:!w-[3.75rem]
10  `)};e.s(["VideoButton",0,e=>{var{size:t="responsive",variant:r,onClick:i,onClickVideoButton:s,textCopies:a={}}=e,n=u(e,["size","variant","onClick","onClickVideoButton","textCopies"]);let o=(0,d.cn)(`
11    flex items-center justify-center
12    rounded-full
13    bg-color-on-grey-opacity-50
14    text-color-utility-text-white
15
16    enabled:hover:bg-button-solid-fill-default
17    enabled:hover:text-color-video-icon-hover
18
19    disabled:bg-color-opacity-opacity-10
20    disabled:text-color-opacity-opacity-10
21
22    ${v[t]}
23  `);return(0,l.jsx)(c.Button,{"aria-pressed":p[r],...n,"aria-label":m(a)[r],className:o,onClick:e=>{null==s||s({event:e,ctaText:m(a)[r]||""}),null==i||i(e)},children:x[r]||null})}],482983)},807236,e=>{"use strict";var l=e.i(529956),t=e.i(515182),r=e.i(506925),i=e.i(540592),s=e.i(720037),a=e.i(493882),n=e.i(899507),o=e.i(302828),c=e.i(546032),d=e.i(141774),u=e.i(714369),m=e.i(30279),x=e.i(178766),p=e.i(280135),v=e.i(807635),f=e.i(280137),h=e.i(536925),b=e.i(4433),g=e.i(787777),j=e.i(615582),y=e.i(708570),w=e.i(970960),N=e.i(186288),k=e.i(482983),C=e.i(213288);let z={cover:"object-cover",contain:"object-contain",fill:"object-fill",none:"object-none","scale-down":"object-scale-down"},P="!w-6 !h-6",S="!w-4 !h-4 xl:!w-6 xl:!h-6",T="https://bynder.sbdinc.com/v7/video-delivery/main.js",B=null;function L(){return B||(B=new Promise((e,l)=>{queueMicrotask(()=>{document.querySelectorAll(`script[src^="${T}
23"]`).forEach(e=>e.remove());let t=document.createElement("script");t.src=T,t.async=!0,t.dataset.sbdBynderVideoDelivery="1",t.onload=()=>{t.dataset.sbdLoaded="1",B=null,e()},t.onerror=()=>{B=null,l(Error("Bynder script failed"))},document.body.appendChild(t)})}))}let V=(0,f.forwardRef)(({coverImage:t,streamingUrl:r,autoplay:i,title:s},a)=>((0,f.useEffect)(()=>{e.A(512915).catch(e=>{}),L().catch(()=>{})},[r]),(0,l.jsx)("div",{"aria-label":s,role:"region",children:(0,l.jsx)("div",{className:(0,b.cn)("size-full [&_video]:object-cover",i?"[&_.shaka-controls-container]:hidden [&_.shaka-text-container]:!bottom-4":"[&_.shaka-controls-container[shown='true']~.shaka-text-container]:!bottom-[15%] [&_.shaka-text-container]:!bottom-4"),ref:a,...Object.assign({"bvd-manifest-url":r,"bvd-autoplay":i?"true":"false","bvd-muted":i?"false":"true"},(null==t?void 0:t.url)?{"bvd-poster":t.url}:{})})})));V.displayName="VideoPlayerBynder";let M=({className:e,controlsPlacement:C,coverImage:T,info:B,hideMuteButton:M,pauseOnResize:R,showInfo:A=!1,showProgressBar:_=!0,showTime:I=!0,showTitle:F=!1,sourceUrl:D,textCopies:E={},title:O,tooltipType:H,variant:q="inline",objectFit:$="cover",onClose:U,useFloatingControls:W=!0,useNativeControls:G=!0,disabledVideoButton:Q=!1,trackingHandlers:Y,streamingUrl:K,videoVttUrl:X})=>{var J,Z;let ee="inline"===q,el=(null==O?void 0:O.trim())||(null==E?void 0:E.defaultVideoTitle)||"Product video";(0,f.useEffect)(()=>{},[O]);let[et,er]=(0,f.useState)(!1),[ei,es]=(0,f.useState)(!1),[ea,en]=(0,f.useState)(0),[eo,ec]=(0,f.useState)(0),[ed,eu]=(0,f.useState)(!0),[em,ex]=(0,f.useState)(!1),[ep,ev]=(0,f.useState)(!ee),[ef,eh]=(0,f.useState)(ee),[eb,eg]=(0,f.useState)(0),[ej,ey]=(0,f.useState)(0),[ew,eN]=(0,f.useState)(!1),[ek,eC]=(0,f.useState)(!1),[ez,eP]=(0,f.useState)(0),eS="autoplay"===q,eT=!!K&&!eS,eB=(0,f.useRef)(null),eL=(0,f.useRef)(null),eV=(0,f.useRef)(null),eM=(0,f.useRef)(null),eR=(0,f.useRef)(null),eA=(0,f.useRef)(void 0),e_=(0,f.useRef)(null),eI=(0,f.useRef)(null),eF=(0,f.useRef)(void 0),eD=(0,f.useRef)(null),eE=(0,f.useRef)(null),eO=(0,f.useRef)(0),eH=(0,f.useRef)(0),eq=(0,f.useRef)(0),e$=(0,f.useRef)({hoverProgressTime:0,pointerValue:0}),eU=(0,f.useRef)(null),eW=eT?null==(J=eU.current)?void 0:J.querySelector("video"):e_.current,{isMobile:eG}=(0,j.useBreakpoint)(),eQ=(e=!0)=>{let l=performance.now()+5e3,t=()=>{ev(!0),e&&G&&eC(!0)},r=()=>{let e=eU.current,i=null==e?void 0:e.querySelector("video");if(!i){performance.now()<l&&requestAnimationFrame(r),performance.now()>=l&&ev(!1);return}let s=i.play();s&&"function"==typeof s.then?s.then(t).catch(()=>{let l=null==e?void 0:e.querySelector(".shaka-play-button");null==l||l.click(),requestAnimationFrame(()=>{let l=null==e?void 0:e.querySelector("video");l&&!l.paused?t():ev(!1)})}).then(()=>!0):t()};r()},{ref:eY}=(0,h.useIntersectionObserver)({threshold:.5,onChange:e=>{if(!ee&&(!et||ep))if(e){if(eT&&!eW)eQ(!1);else{let e=null==eW?void 0:eW.play();e&&"function"==typeof e.then?e.then(()=>ev(!0)).catch(()=>ev(!1)):ev(!0)}er(!0)}else null==eW||eW.pause(),ev(!1)}}),eK=()=>{setTimeout(()=>{ev(!(null==eW?void 0:eW.paused))})};(0,f.useEffect)(()=>(null==eW||eW.addEventListener("leavepictureinpicture",eK),()=>{null==eW||eW.removeEventListener("leavepictureinpicture",eK)}),[]),(0,f.useEffect)(()=>{R&&(null==eW||eW.pause(),ev(!1))},[R,eG,eW]),(0,f.useEffect)(()=>{let e=()=>{var e,l,t;eO.current=(null==(e=eL.current)?void 0:e.clientWidth)||0,eH.current=(null==(l=eV.current)?void 0:l.clientWidth)||0,eq.current=(null==(t=eR.current)?void 0:t.clientWidth)||0};if(e(),window.addEventListener("resize",e),"u"<typeof ResizeObserver)return()=>{window.removeEventListener("resize",e)};let l=new ResizeObserver(e);return eL.current&&l.observe(eL.current),eV.current&&l.observe(eV.current),eR.current&&l.observe(eR.current),()=>{window.removeEventListener("resize",e),l.disconnect()}},[]),(0,f.useEffect)(()=>()=>{null!==eE.current&&cancelAnimationFrame(eE.current)},[]),(0,f.useEffect)(()=>{let e=()=>{eA.current=setTimeout(()=>{let l=Number(null==eW?void 0:eW.currentTime);eg(l),ey(l),eX(String(l)),e()},1e3)};return ep?e():clearTimeout(eA.current),()=>clearTimeout(eA.current)},[ep,null==eW?void 0:eW.currentTime]);let eX=e=>{var l;let t=Number(e)/Number(null==(l=eL.current)?void 0:l.max)*100;eL.current&&(eL.current.style.background=`linear-gradient(to right, var(--color-brand-surface-white) ${t}%, rgb(0,0,0,0.3) ${t}%)`),ey(Number(e))},eJ=e=>{if(e.stopPropagation(),ei||es(!0),ep){null==eW||eW.pause(),ev(!1);return}if(eT&&!eW)return void L().then(()=>(eQ(),!0)).catch(()=>(ev(!1),!1));if(eW){let e=eW.play();e&&"function"==typeof e.then?e.then(()=>(ev(!0),G&&eC(!0),!0)).catch(()=>(ev(!1),!1)):(ev(!0),G&&eC(!0))}else ev(!1)}
23,eZ=e=>{e.stopPropagation(),eh(!ef),eW&&(eW.volume=+!ef)};return(0,l.jsxs)("div",{"aria-label":el,className:(0,b.cn)("onLight relative flex h-full flex-1 cursor-pointer overflow-hidden bg-color-brand-surface-inverse",e),"data-sbd-primary-media-focus":"",onClick:(!ee||G)&&ek?void 0:eJ,ref:eD,role:"region",children:[(0,l.jsx)("div",{className:"absolute inset-0 flex flex-1 items-center justify-center xl:max-h-screen",ref:eY,children:eT?(0,l.jsx)(V,{autoplay:eS,coverImage:T,ref:eU,streamingUrl:K}):(0,l.jsxs)("video",{"aria-label":el,className:(0,b.cn)("size-full",z[$]),controls:G&&ek,controlsList:"nodownload",muted:!ef,onCanPlay:()=>en(Number(null==eW?void 0:eW.duration)),onEnded:()=>{var e;ev(!1),null==(e=null==Y?void 0:Y.onVideoComplete)||e.call(Y,{videoTitle:el})},onPause:e=>{var l;e.currentTarget.currentTime<ea&&(null==(l=null==Y?void 0:Y.onVideoPause)||l.call(Y,{videoTitle:el,videoCurrentTime:(0,g.convertSecondsToTime)(e.currentTarget.currentTime||0)}))},onPlay:()=>{var e;return null==(e=null==Y?void 0:Y.onVideoPlay)?void 0:e.call(Y,{videoTitle:el})},onTimeUpdate:e=>{var l;let t=10*Math.floor((e.currentTarget.currentTime||0)/10);t>0&&t!==ez&&(eP(t),null==(l=null==Y?void 0:Y.onVideoProgress)||l.call(Y,{videoTitle:el,videoProgress:String(t)}))},playsInline:!0,ref:e_,children:[(0,l.jsx)("track",{default:!!X,kind:"captions",label:"",...X?{src:X}:{}}),(0,l.jsx)("source",{src:D}),"Your browser does not support the video."]})}),!ek&&(0,l.jsxs)("div",{className:(0,b.cn)("onDark size-full text-color-utility-text-primary","z-10 self-end px-4","flex flex-col justify-end sm:px-8 xl:px-10",G?"bg-transparent":"bg-[linear-gradient(190.88deg,rgba(0,0,0,0)_23.71%,rgba(0,0,0,0.86)_94.86%)]"),ref:eI,children:[U&&ee&&(0,l.jsx)("button",{"aria-label":E.close||"Close",className:(0,b.cn)("absolute right-4 top-[1.03125rem] z-[11] flex size-10 items-center justify-center rounded-full bg-color-opacity-dark-50","sm:right-6 sm:top-[24.5] xl:right-8 xl:top-[4.21875rem]"),onClick:e=>{e.stopPropagation(),U()},type:"button",children:(0,l.jsx)(t.default,{className:"!size-[1.125rem]"})}),ee&&!ei&&(0,l.jsxs)(l.Fragment,{children:[(null==T?void 0:T.url)&&!ep&&(0,l.jsx)(N.PolarisImage,{alt:(null==T?void 0:T.alt)||"",className:"absolute inset-0 size-full object-cover",fill:!0,focalPoint:null==T?void 0:T.focalPoint,quality:y.GLOBAL_IMAGE_QUALITY,sizes:"100vw",src:(null==(Z=T.sizes)?void 0:Z.lg)||T.url,transformBaseUrl:null==T?void 0:T.transformBaseUrl}),(0,l.jsx)("div",{className:"onLight absolute inset-0 z-10 flex items-center justify-center",children:(0,l.jsx)(w.Button,{LeftIcon:u.default,className:ep?"invisible opacity-0":"visible opacity-100","data-sbd-tab-primary-action":"",onClick:eJ,size:"responsive",variant:"button-solid",children:E.playVideoButtonText||"Watch Video"})})]}),(0,l.jsxs)("div",{className:(0,b.cn)("absolute inset-0 z-10 flex size-full gap-x-2 p-2.5 sm:p-5",{hidden:ee||!W,"items-end justify-start":"bottom-left"===C,"items-end justify-end":"bottom-right"===C,"items-start justify-start":"top-left"===C,"items-start justify-end":"top-right"===C}),children:[!M&&(0,l.jsx)(k.VideoButton,{disabled:Q,onClick:eZ,size:"small",textCopies:E,variant:ef?"volume-on":"volume-off"}),(0,l.jsx)(k.VideoButton,{disabled:Q,onClick:eJ,size:"small",textCopies:E,variant:ep?"pause":"play"})]}),!G&&(0,l.jsxs)("div",{className:(0,b.cn)("z-10",{hidden:!ei||!ee}),children:[(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-y-1",children:[F&&(0,l.jsx)("span",{className:"prose-body-medium-lg leading-5 tracking-[-0.00625rem] xl:text-xl xl:!leading-[1.375rem]",children:O}),A&&(0,l.jsx)("span",{className:"prose-eyebrow-medium-sm tracking-[-0.00625rem] xl:text-sm xl:!leading-[1.0625rem]",children:B})]}),I&&(0,l.jsxs)("div",{className:"flex items-center gap-x-1 self-end",children:[(0,l.jsx)("span",{className:"prose-body-medium-md leading-[1.125rem] tracking-[-0.00625rem]",children:(0,g.convertSecondsToTime)(eb)}),(0,l.jsx)("span",{className:"prose-body-medium-md leading-[1.125rem] tracking-[-0.00625rem]",children:"/"}),(0,l.jsx)("span",{className:"prose-body-medium-md leading-[1.125rem] tracking-[-0.00625rem]",children:(0,g.convertSecondsToTime)(ea)})]})]}),(0,l.jsxs)("div",{className:"my-4",children:[_&&(0,l.jsxs)("div",{className:"relative flex items-center",children:[(0,l.jsx)("input",{"aria-label":"Progress bar",className:(0,b.cn)("h-1 w-full cursor-pointer appearance-none rounded-[1.25rem] bg-transparent","[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-[1.25rem]","[&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:bg-color-brand-surface-white","[&::-webkit-slider-thumb]:rounded-full",ew?"[&::-webkit-slider-thumb]:-mt-0 [&::-webkit-slider-thumb]:size-1":"[&::-webkit-slider-thumb]:-mt-1 [&::-webkit-slider-thumb]:size-3"),max:Math.round(ea),min:0,onChange:e=>{eX(String(Math.ceil(Number(e.target.value)))),eW&&(eW.currentTime=Math.ceil(Number(e.target.value)))},onClick:e=>e.stopPropagation(),onMouseLeave:()=>{null!==eE.current&&(cancelAnimationFrame(eE.current),eE.current=null),eN(!1),eV.current&&(eV.current.style.visibility="hidden"),eR.current&&(eR.
23current.style.visibility="hidden")},onMouseMove:e=>{var l;e.stopPropagation(),clearTimeout(eF.current);let t=eO.current||Number(null==(l=eL.current)?void 0:l.clientWidth)||0;if(!t)return;let r=Math.abs(t-window.innerWidth),i=e.clientX-r/2,s=i/t,a=s>=0?ea*s:e$.current.hoverProgressTime;e$.current={hoverProgressTime:a,pointerValue:i},eN(!0),eV.current&&(eV.current.style.visibility="visible"),eR.current&&(eR.current.style.visibility="visible"),null===eE.current&&(eE.current=requestAnimationFrame(()=>{eE.current=null;let{hoverProgressTime:e,pointerValue:l}=e$.current,t=window.innerWidth;if(eM.current&&(eM.current.currentTime=e),ec(e),eB.current&&(eB.current.style.left=`${l-8}px`),eV.current){let e=eH.current/2-4,i=t-l-e-r;l>=e&&i>=0?(eV.current.style.left=`${l-e}px`,eV.current.style.right="auto"):i<0&&(eV.current.style.right="0px",eV.current.style.left="auto")}if(eR.current){let e=eq.current/2,i=t-l-e-r;l>=e&&i>=0?(eR.current.style.left=`${l-e}px`,eR.current.style.right="auto"):i<0&&(eR.current.style.right="0px",eR.current.style.left="auto")}}))},ref:eL,type:"range",value:Math.round(ej)}),"thumbnail"===H&&(0,l.jsx)("div",{"aria-hidden":"true",className:(0,b.cn)("pointer-events-none invisible absolute bottom-4 h-[5.625rem] w-40 rounded border border-color-brand-border-contrast bg-white","shadow-[0_0.25rem_1rem_0_rgba(0,0,0,0.25)]"),ref:eV,children:(0,l.jsxs)("video",{"aria-hidden":"true",className:"size-full","data-testid":"video-player-scrubber",muted:!0,ref:eM,tabIndex:-1,children:[(0,l.jsx)("track",{default:!0,kind:"captions",srcLang:"en"}),(0,l.jsx)("source",{src:D}),"Your browser does not support the video."]})}),ew&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"pointer-events-none absolute size-3 rounded-full bg-color-brand-surface-white",ref:eB}),"time"===H&&(0,l.jsx)("div",{className:(0,b.cn)("invisible absolute w-[3.875rem] rounded-lg bg-color-utility-fill-inverse px-3 py-2 text-color-utility-text-inverse shadow-[0rem_0.25rem_1rem_0_rgba(0,0,0,0.25)]","prose-body-medium-sm bottom-4 text-center leading-[1.0625rem] tracking-[-0.0625rem]"),ref:eR,children:(0,g.convertSecondsToTime)(eo)})]}),(0,l.jsx)("div",{className:"pointer-events-none absolute h-1 w-full rounded-[1.25rem] bg-color-brand-surface-white opacity-30"})]}),(0,l.jsxs)("div",{className:"mt-4 flex justify-between overflow-hidden",children:[(0,l.jsxs)("div",{className:"flex gap-x-2",children:[(0,l.jsx)("button",{"aria-label":ep?E.pause||"Pause video":E.play||"Play video","aria-pressed":ep,className:"size-8 xl:size-12",onClick:eJ,type:"button",children:ep?(0,l.jsx)(c.default,{className:"!h-[1.625rem] !w-[1.625rem] xl:!h-10 xl:!w-10"}):(0,l.jsx)(u.default,{className:"!h-[1.625rem] !w-[1.625rem] xl:!h-10 xl:!w-10"})}),(0,l.jsx)("button",{"aria-label":E.backBy10Seconds||"Backward 10 seconds",className:"size-8 xl:size-12",onClick:e=>{e.stopPropagation(),eW&&(clearTimeout(eF.current),eW.currentTime=eW.currentTime-10)},type:"button",children:(0,l.jsx)(m.default,{className:"!h-[1.3125rem] !w-[1.3125rem] xl:!h-8 xl:!w-8"})}),(0,l.jsx)("button",{"aria-label":E.forwardBy10Seconds||"Forward 10 seconds",className:"size-8 xl:size-12",onClick:e=>{e.stopPropagation(),eW&&(clearTimeout(eF.current),eW.currentTime=eW.currentTime+10)},type:"button",children:(0,l.jsx)(s.default,{className:"!h-[1.3125rem] !w-[1.3125rem] xl:!h-8 xl:!w-8"})})]}),(0,l.jsxs)("div",{className:"flex gap-x-1",children:[(0,l.jsx)("button",{"aria-label":ed?E.captionOn||"Caption on":E.captionOff||"Caption off",className:"hidden xl:block xl:size-12",onClick:e=>{e.stopPropagation(),eu(!ed)},type:"button",children:ed?(0,l.jsx)(r.default,{className:P}):(0,l.jsx)(i.default,{className:P})}),!M&&(0,l.jsx)("button",{"aria-label":ef?E.mute||"Mute Video":E.unmute||"Unmute Video","aria-pressed":!ef,className:"size-8 xl:size-12",onClick:eZ,type:"button",children:ef?(0,l.jsx)(v.default,{className:S}):(0,l.jsx)(p.default,{className:S})}),(0,l.jsx)("button",{"aria-label":E.settings||"Settings",className:"hidden xl:block xl:size-12",onClick:e=>{e.stopPropagation()},type:"button",children:(0,l.jsx)(x.default,{className:"!h-6 !w-6"})}),(0,l.jsx)("button",{"aria-label":E.pictureInPicture||"Picture in picture",className:"hidden xl:block xl:size-12",onClick:e=>{e.stopPropagation(),null==eW||eW.requestPictureInPicture()},type:"button",children:(0,l.jsx)(d.default,{className:"!h-6 !w-6"})}),(0,l.jsx)("button",{"aria-label":em?E.fullScreenOff||"Exit full screen mode":E.fullScreenOn||"Enter full screen mode","aria-pressed":em,className:"hidden xl:block xl:size-12",onClick:e=>{var l;e.stopPropagation(),em?document.exitFullscreen():null==(l=eD.current)||l.requestFullscreen(),ex(!em)},type:"button",children:em?(0,l.jsx)(n.default,{className:"!size-8"}):(0,l.jsx)(a.default,{className:"!size-8"})}),(0,l.jsx)("button",{"aria-label":E.moreOptions||"More options",className:"size-8 xl:hidden",onClick:e=>{e.stopPropagation()},type:"button",children:(0,l.jsx)(o.default,{className:"!h-4 !w-4"})})]})]})]})]})]})]})};e.s(["VideoLightbox",0,({dialogTitle:e,isOpen:t,textCopies:r,videoPlayerProps:i,onClose:s})=>(0,l.jsx)(C.Modal,{closeButtonClassName:(0,b.cn)({"onDark size-10 rounded-full bg-color-opacity-dark-50 text-color-utility-icon-primary z-50":t}),closeButtonSize:"small",dialogTitle:e,isOpen:t,modalClassName:"size-full z-50",onClose:s,textCopies:r,variant:"fade-in",children:(0,l.jsx)(M,{...i})}),"VideoPlayer",0,M],807236)},354315,e=>{"use strict";var l=e.i(529956),t=e.i(280137),r=e.i(4433),i=e.i(719057),s=e.i(731059),a=e.i(970960);let n="comparison-banner-compare-cta";var o=e.i(515182),c=e.i(358648),d=e.i(496301);let u=({product:e,index:i,textCopies:s,onRemove:a,isCommerceEnabled:n=!1})=>{var u;let[m,x]=(0,t.useState)(!1);(0,t.useEffect)(()=>{e&&x(!0)},[e]);let p=n?{ecommerceFeatures:e.ecommerceFeatures,commerceRating:e.commerceRating}:{ecommerceFeatures:void 0,commerceRating:void 0};return(0,l.jsxs)("div",{className:(0,r.cn)("relative transition-[opacity,transform] duration-500","shrink-0 w-[18.5rem] sm:w-[17.75rem] xl:w-auto",i>0?"translate-x-[6.25rem] opacity-0":"translate-x-0 opacity-100",{"opacity-100 translate-x-0":m}),"data-product-sku":null==(u=e.details)?void 0:u.code,"data-testid":"comparison-banner-selected-product-card",children:[(0,l.jsx)(d.HorizontalProductCard,{...e,...p,className:"onLight h-full min-w-[auto] items-center",hidePin:!0,size:"small",variant:"comparison"}),(0,l.jsx)(c.IconButton,{Icon:o.default,"aria-label":(null==s?void 0:s.deselectCard)||"Deselect card",className:"absolute right-1 top-1 z-10 p-[0.375rem] text-color-brand-icon-primary",onClick:()=>a(e),size:"small",variant:"ghost"})]})},m=({className:e,containerRef:i,selectedCards:s,textCopies:a,onRemove:n,isCommerceEnabled:o=!1})=>{let[c,d]=(0,t.useState)(null),m=Array.from({length:4},(e,l)=>{var t;return null!=(t=s[l])?t:null}),x=e=>{i.current&&d(i.current.offsetHeight),n(e)};return(0,t.useEffect)(()=>{0===s.length?setTimeout(()=>d(null),500):1===s.length?(i.current&&(i.current.style.height="auto"),setTimeout(()=>{var e;let l=null==(e=i.current)?void 0:e.offsetHeight;l&&d(l)},200)):d(null)},[s,i]),(0,l.jsx)("div",{className:(0,r.cn)("flex w-full gap-3 overflow-x-auto p-2 transition-height duration-200 xl:gr
23id xl:grid-cols-4 xl:gap-5",e),ref:i,style:{height:c?`${c}px`:"auto"},children:m.map((e,t)=>e?(0,l.jsx)(u,{index:t,isCommerceEnabled:o,onRemove:x,product:e,textCopies:a},t):(0,l.jsx)("div",{"aria-hidden":"true",className:(0,r.cn)("shrink-0 w-[18.5rem] sm:w-[17.75rem] xl:w-auto","border-dash-comparison-card min-h-full"),role:"presentation"},t))})};e.s(["ComparisonBanner",0,({selectedProducts:e,themeClass:o,textCopies:c,onClear:d,onCompareProducts:u,isComparing:x=!1,onDeselectProduct:p,onClickCompare:v,isCommerceEnabled:f=!1})=>{var h,b,g,j,y;let w=null==(h=(0,i.useBrandStyleContext)().comparisonBanner)?void 0:h.styles,N=(0,t.useRef)(null),k=(0,t.useRef)(!0),C=(0,t.useRef)(e),[z,P]=(0,t.useState)(""),S=e.length>0;(0,t.useEffect)(()=>{var l,t;if(k.current){k.current=!1,C.current=e;return}let r=C.current,i=e=>{var l;return(null==(l=e.details)?void 0:l.code)||e.name||e.longName},s=new Set(r.map(i)),a=new Set(e.map(i)),n=e.find(e=>!s.has(i(e))),o=r.find(e=>!a.has(i(e)));if(n){let e=n.name||n.longName||"";P((null!=(l=null==c?void 0:c.productAddedToComparison)?l:"{product} added to comparison").replace("{product}",e))}else if(o){let e=o.name||o.longName||"";P((null!=(t=null==c?void 0:c.productRemovedFromComparison)?t:"{product} removed from comparison").replace("{product}",e))}C.current=e},[e,c]);let T=()=>{var e;N.current&&(N.current.style.height=`${null==(e=N.current)?void 0:e.offsetHeight}px`,setTimeout(()=>{N.current&&(N.current.style.height="auto")},500)),d()},B=()=>{v&&v({clickText:(null==c?void 0:c.compareCta)||"Compare",products:e.map(e=>e.name||e.longName||"")}),null==u||u()};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("aside",{"aria-hidden":!S,"aria-label":(null==(b=null==c?void 0:c.landmarkLabel)?void 0:b.trim())||(null==(g=null==c?void 0:c.compareProducts)?void 0:g.trim())||void 0,className:(0,r.cn)("fixed bottom-0 inset-x-0 z-50 ",{"pointer-events-none":!S}),"data-testid":"comparison-banner",id:"comparison-banner",inert:!S||void 0,children:(0,l.jsxs)("div",{className:(0,r.cn)(o,"container !max-w-[unset] translate-y-full transition-all duration-500 ease-in-out shadow-comparisonBanner bg-white pt-3 pb-4 sm:py-5",null==w?void 0:w.container,{"translate-y-0":S}),"data-testid":"comparison-banner-container",children:[(0,l.jsx)(s.Accordion,{className:"sm:hidden",collapsible:!0,defaultValue:"0",type:"single",children:(0,l.jsxs)(s.AccordionItem,{value:"1",children:[(0,l.jsx)(s.AccordionContent,{className:"mb-5",children:(0,l.jsx)(m,{containerRef:N,isCommerceEnabled:f,onRemove:p,selectedCards:e,textCopies:c})}),(0,l.jsxs)("div",{className:"flex w-full items-center gap-4",children:[(0,l.jsx)(a.Button,{className:(0,r.cn)("prose-label-semibold-sm capitalize",null==w?void 0:w.cancelButton),onClick:T,size:"small",variant:"text",children:null==c?void 0:c.cancelCta}),(0,l.jsx)(a.Button,{className:(0,r.cn)("flex-1",null==w?void 0:w.compareButton),"data-testid":n,disabled:e.length<2||x,isSubmitting:x,loaderPosition:"full",onClick:B,size:"small",children:null==c?void 0:c.compareCta}),(0,l.jsx)(s.AccordionTrigger,{"aria-label":null==c?void 0:c.mobileToggleLabel,className:"rotate-180",iconSize:"large"})]}),e.length<2&&(0,l.jsx)("p",{className:(0,r.cn)("prose-body-medium-sm mt-2 text-center text-color-utility-text-tertiary",null==w?void 0:w.description),children:null==c?void 0:c.description})]})}),(0,l.jsxs)("div",{className:"hidden sm:block",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between pb-5 sm:pb-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{className:(0,r.cn)("prose-label-semibold-md text-color-utility-text-primary",null==w?void 0:w.productsSelectedTitle),children:`${null!=(y=null==(j=null==c?void 0:c.productsSelected)?void 0:j.trim())?y:"Products Selected"} (${e.length})`}),e.length<2&&(0,l.jsx)("p",{className:(0,r.cn)("prose-body-medium-sm mt-1 text-color-utility-text-tertiary",null==w?void 0:w.description),children:null==c?void 0:c.description})]}),(0,l.jsxs)("div",{className:"flex items-center gap-4",children:[(0,l.jsx)(a.Button,{className:(0,r.cn)("prose-label-semibold-sm capitalize",null==w?void 0:w.cancelButton),onClick:T,size:"small",variant:"text",children:null==c?void 0:c.cancelCta}
23),(0,l.jsx)(a.Button,{className:(0,r.cn)("whitespace-nowrap sm:min-w-[9.375rem] xl:min-w-[8.75rem]",null==w?void 0:w.compareButton),"data-testid":n,disabled:e.length<2||x,isSubmitting:x,loaderPosition:"full",onClick:B,size:"small",children:null==c?void 0:c.compareCta})]})]}),(0,l.jsx)(m,{containerRef:N,isCommerceEnabled:f,onRemove:p,selectedCards:e,textCopies:c})]})]})}),(0,l.jsx)("div",{"aria-atomic":"true","aria-live":"polite",className:"sr-only",role:"status",children:z})]})}],354315)},783743,60042,e=>{"use strict";var l=e.i(529956),t=e.i(515182),r=e.i(975305),i=e.i(475180),s=e.i(26396),a=e.i(235144),n=e.i(29543),o=e.i(280137),c=e.i(117751),d=e.i(536925),u=e.i(4433),m=e.i(719057),x=e.i(708570),p=e.i(677734),v=e.i(264733),f=e.i(523615),h=e.i(970960),b=e.i(186288),g=e.i(739192),j=e.i(342024),y=e.i(963159),w=e.i(731059),N=e.i(496301);let k=({products:e,productCount:t=4,shouldGrow:r=!1,textCopies:i,brandStyles:s,onClickViewMore:a})=>{let[n,c]=(0,o.useState)(!1);if(e.filter(e=>{var l;return((null==(l=e.relatedProducts)?void 0:l.length)||0)>0}).length<1)return null;let d=n?10:3,m=e.some(e=>{var l;return((null==(l=e.relatedProducts)?void 0:l.length)||0)>3}),x="specs-content";return(0,l.jsx)("div",{className:(0,u.cn)("border-t border-color-brand-border-secondary w-full max-w-container mx-auto",r?"onLight w-full":""),children:(0,l.jsx)(w.Accordion,{className:r?"w-full":"",collapsible:!0,defaultValue:"details",type:"single",children:(0,l.jsxs)(w.AccordionItem,{className:(0,u.cn)("border-b border-color-brand-border-secondary",r?"w-full":""),value:"details",children:[(0,l.jsx)(w.AccordionTrigger,{className:(0,u.cn)("text-lg font-bold leading-[1.3125rem] tracking-[-0.00625rem] lg:text-xl lg:leading-[1.375rem] text-color-utility-text-primary py-6 px-4 md:px-6 md:py-6 2xl:px-10 2xl:py-8",null==s?void 0:s.accordionTrigger,r?"w-full":""),children:(null==i?void 0:i.moreProductDetails)||"More Product Details"}),(0,l.jsxs)(w.AccordionContent,{className:(0,u.cn)("pb-4"),children:[(0,l.jsx)("div",{id:x,children:(0,l.jsxs)("div",{"aria-label":(null==i?void 0:i.relatedProducts)||"Related Products",className:(0,u.cn)("mb-6"),role:"group",children:[(0,l.jsx)("h4",{className:(0,u.cn)("prose-label-semibold-sm text-color-utility-text-primary overflow-hidden text-ellipsis pb-4 pt-8 px-4 md:px-6 2xl:px-10"),children:(null==i?void 0:i.relatedProducts)||"Related Products"}),(0,l.jsx)("div",{className:(0,u.cn)("flex flex-row w-full px-4 md:px-6 2xl:px-10"),role:"list",children:e.map((e,s)=>{let a=(e.relatedProducts||[]).slice(0,d),n=0===a.length;return(0,l.jsx)("div",{"aria-label":`${null==i?void 0:i.relatedProducts} for ${e.name||e.longName}`,className:(0,u.cn)("flex flex-1 items-start justify-center gap-3 rounded-lg border border-color-utility-border-secondary p-5 min-w-[14.3125rem] max-w-[14.3125rem] md:min-w-[17.5rem] md:max-w-none mr-[0.75rem] last:mr-0",n?"border border-color-utility-border-secondary bg-color-brand-surface-primary":"",r&&2===t?"md:max-w-none":r&&3===t?"md:max-w-[37.5rem]":""),role:"listitem",children:a.length>0?(0,l.jsx)("div",{className:(0,u.cn)("flex flex-1 flex-col items-center justify-start gap-5"),children:a.map((e,t)=>(0,l.jsx)("div",{className:"flex w-full min-w-0 items-start justify-start gap-2 self-stretch",children:(0,o.createElement)(N.HorizontalProductCard,{...e,hidePin:!0,key:`related-product-${s}-${t}`,name:"",size:"responsive",variant:"comparison-modal"})},`related-product-wrapper-${s}-${t}`))}):(0,l.jsx)("div",{className:(0,u.cn)("prose-body-italic-sm place-self-center italic text-color-utility-text-tertiary"),children:(null==i?void 0:i.noResult)||"No result"})},`related-product-${s}`)})})]})}),m&&(0,l.jsx)("div",{className:(0,u.cn)("flex flex-col items-center justify-start gap-2.5 self-stretch px-4 md:px-6 2xl:px-10 pt-8"),children:(0,l.jsx)(h.Button,{"aria-controls":x,"aria-expanded":n,className:(0,u.cn)(null==s?void 0:s.viewMoreButton),onClick:()=>{!n&&a&&a(),c(!n)},size:"medium",variant:"outline",children:n?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(y.default,{"aria-hidden":!0,className:"mr-2"}),(null==i?void 0:i.viewLessProducts)||"View Less Products"]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(j.default,{"aria-hidden":!0,
23className:"mr-2"}),(null==i?void 0:i.viewMoreProducts)||"View More Products"]})})})]})]})})})};var C=e.i(615582);let z="mb-6",P="prose-label-semibold-sm text-color-utility-text-primary overflow-hidden text-ellipsis py-3 px-4 md:px-6 2xl:px-10",S="flex flex-row px-4 md:px-6 2xl:px-10",T="flex min-h-16 py-5 justify-start items-center gap-3 flex-1 basis-0 min-w-[14.3125rem] max-w-[14.3125rem] md:min-w-[17.5rem] md:max-w-none overflow-hidden rounded-lg bg-color-utility-fill-secondary p-5 mr-[0.75rem] last:mr-0",B="prose-label-medium-sm text-color-utility-text-primary overflow-hidden text-ellipsis break-words text-left w-full",L=({specs:e,productCount:t=4,shouldGrow:r=!1,textCopies:i,brandStyles:s,onClickViewMore:a})=>{let[n,c]=(0,o.useState)(8),{isDesktop:d}=(0,C.useBreakpoint)(),m=e.length,x=n<m,p=n===m,v=e.slice(0,n),f=v.some(e=>!!e.group)?(e=>{let l=[],t=null;for(let r of e){let e=r.group;t&&t.group===e?t.specs.push(r):(t={group:e,specs:[r]},l.push(t))}return l})(v):null,b="specs-content";return(0,l.jsx)("div",{className:(0,u.cn)("border-t border-color-brand-border-secondary w-full max-w-container mx-auto",r?"w-full":""),children:(0,l.jsx)(w.Accordion,{className:r?"w-full":"",collapsible:!0,defaultValue:"technical-specs",type:"single",children:(0,l.jsxs)(w.AccordionItem,{className:(0,u.cn)("border-b border-color-brand-border-secondary",r?"w-full":""),disabled:d,value:"technical-specs",children:[(0,l.jsx)(w.AccordionTrigger,{className:(0,u.cn)("!prose-label-bold-lg lg:!prose-label-bold-xl tracking-[-0.00625rem] text-color-utility-text-primary py-6 px-4 md:px-6 md:py-6 2xl:px-10 2xl:py-8",null==s?void 0:s.accordionTrigger,r?"w-full":""),iconClassName:(0,u.cn)("!size-6"),children:(null==i?void 0:i.technicalSpecs)||"Technical Specs"}),(0,l.jsxs)(w.AccordionContent,{className:(0,u.cn)("pb-4"),children:[(0,l.jsx)("div",{id:b,children:f?f.map((e,i)=>{var a;return(0,l.jsxs)(o.Fragment,{children:[e.group&&(0,l.jsx)("h3",{className:(0,u.cn)("!prose-label-bold-lg lg:!prose-label-bold-xl tracking-[-0.00625rem] text-color-utility-text-primary px-4 md:px-6 2xl:px-10 pt-2 pb-3",null==s?void 0:s.groupHeading),children:e.group}),e.specs.map(e=>(0,l.jsxs)("div",{"aria-label":e.title,className:(0,u.cn)(z),role:"group",children:[(0,l.jsx)("h4",{className:(0,u.cn)(P,null==s?void 0:s.specName),children:e.title}),(0,l.jsx)("div",{className:(0,u.cn)(S,r?"w-full justify-center":""),role:"list",children:e.values.map((i,a)=>(0,l.jsx)("div",{"aria-label":`${e.title}: ${i||"Not specified"}`,className:(0,u.cn)(T,null==s?void 0:s.specValueContainer,r&&2===t?"md:max-w-none":r&&3===t?"md:max-w-[37.5rem]":""),role:"listitem",children:(0,l.jsx)("div",{className:(0,u.cn)(B,null==s?void 0:s.specValue),children:i||"—"})},`${e.title}-${a}`))})]},e.title))]},null!=(a=e.group)?a:`__ungrouped-${i}`)}):v.map(e=>(0,l.jsxs)("div",{"aria-label":e.title,className:(0,u.cn)(z),role:"group",children:[(0,l.jsx)("h4",{className:(0,u.cn)(P,null==s?void 0:s.specName),children:e.title}),(0,l.jsx)("div",{className:(0,u.cn)(S,r?"w-full justify-center":""),role:"list",children:e.values.map((i,a)=>(0,l.jsx)("div",{"aria-label":`${e.title}: ${i||"Not specified"}`,className:(0,u.cn)(T,null==s?void 0:s.specValueContainer,r&&2===t?"md:max-w-none":r&&3===t?"md:max-w-[37.5rem]":""),role:"listitem",children:(0,l.jsx)("div",{className:(0,u.cn)(B,null==s?void 0:s.specValue),children:i||"—"})},`${e.title}-${a}`))})]},e.title))}),m>8&&(0,l.jsx)("div",{className:(0,u.cn)("flex justify-center py-4 px-4 md:px-6 2xl:px-10"),children:(0,l.jsx)(h.Button,{"aria-controls":b,"aria-expanded":p,className:(0,u.cn)(null==s?void 0:s.viewMoreButton),onClick:()=>{x&&a&&a(),p?c(8):m-n<=10?c(m):c(n+10)},size:"medium",variant:"outline",children:x?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(j.default,{"aria-hidden":!0,className:"mr-2"}),(null==i?void 0:i.viewMoreSpecs)||"View More Specs"]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(y.default,{"aria-hidden":!0,className:"mr-2"}),(null==i?void 0:i.viewLessSpecs)||"View Less Specs"]})})})]})]})})})},V=e=>null!=e?e:"",M="mt-1 w-full";e.s(["ComparisonModal",0,({className:e,title:j,isOpen:y,products:w,fallbackImage:N,onClose:C,textCopies:z,onClickViewMore:P,onInfoCl
23ick:S,isCommerceEnabled:T=!1})=>{var B;let R=null==(B=(0,m.useBrandStyleContext)().comparisonModal)?void 0:B.styles,{lock:A,unlock:_}=(0,d.useScrollLock)({autoLock:!1}),I=(0,o.useRef)(null),F=(0,o.useRef)(null),D=(0,o.useRef)(0),[E,O]=(0,o.useState)(!1),H=(0,o.useRef)(!1),q=(0,o.useRef)(!1),$=(0,o.useMemo)(()=>!!w&&0!==w.length&&!(e=>{if(e.length<=1)return!0;let l=e[0].category;return!l||e.every(e=>l===e.category)})(w),[w]),U=(0,o.useMemo)(()=>{let e,l,t,r;return w&&0!==w.length?(e=new Map,l=new Map,t=0,r=w.length,w.forEach((i,s)=>{(i.fullSpecs||[]).forEach(i=>{let a=i.name,n=i.group,o=V(n);l.has(o)||l.set(o,t++),e.has(a)||e.set(a,{values:Array(r).fill(""),group:n,firstAppearance:t++});let c=e.get(a);c.values[s]=i.value,!c.group&&n&&(c.group=n)})}),Array.from(e.entries()).map(([e,l])=>({title:e,values:l.values,group:l.group,firstAppearance:l.firstAppearance})).filter(e=>e.values.filter(e=>""!==e).length>1).sort((e,t)=>{var r,i;let s=null!=(r=l.get(V(e.group)))?r:1/0,a=null!=(i=l.get(V(t.group)))?i:1/0;if(s!==a)return s-a;let n=e.values.filter(e=>""!==e).length,o=t.values.filter(e=>""!==e).length;return n!==o?o-n:e.firstAppearance-t.firstAppearance}).map(e=>({title:e.title,values:e.values,group:e.group}))):[]},[w]);if((0,o.useEffect)(()=>(y?A():_(),()=>_()),[y,A,_]),(0,o.useEffect)(()=>{let e=e=>{"Escape"===e.key&&y&&C()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[y,C]),(0,o.useEffect)(()=>{y&&w&&w.length<2&&C()},[y,w,C]),(0,o.useEffect)(()=>{if(!y)return;let e=I.current;if(!e)return;D.current=0,O(!1),H.current=!1;let l=null,t=()=>{q.current||(l&&clearTimeout(l),l=setTimeout(()=>{let l=e.scrollTop,t=l-D.current,r=H.current,i=!1,s=r;0===l?!1!==r&&(s=!1,i=!0):t>0?!0!==r&&(s=!0,i=!0):t<0&&!1!==r&&(s=!1,i=!0),i?(H.current=s,O(s),q.current=!0,setTimeout(()=>{q.current=!1,D.current=e.scrollTop},250)):D.current=l},50))};return e.addEventListener("scroll",t),()=>{e.removeEventListener("scroll",t),l&&clearTimeout(l)}},[y]),!y||!w||0===w.length)return null;let W=w.length<4,G=(0,l.jsx)(a.FocusTrap,{focusTrapOptions:{initialFocus:!1,fallbackFocus:()=>F.current||document.body,clickOutsideDeactivates:!0,allowOutsideClick:!0},children:(0,l.jsx)("div",{"aria-labelledby":"comparison-modal-title","aria-modal":"true",className:(0,u.cn)("fixed inset-0 z-50 bg-color-opacity-theme-80 flex items-center justify-center p-4","onLight"),"data-testid":"comparison-modal",ref:F,role:"dialog",children:(0,l.jsxs)("div",{className:(0,u.cn)(e,"flex flex-col w-full h-full max-h-[90vh] bg-white rounded-lg shadow-xl"),children:[(0,l.jsxs)("div",{className:(0,u.cn)("flex flex-col py-3 px-4 md:px-6 xl:px-10 relative rounded-tl-lg rounded-tr-lg bg-color-brand-surface-primary max-w-container mx-auto w-full",null==R?void 0:R.header),children:[(0,l.jsxs)("div",{className:(0,u.cn)("flex items-center w-full"),children:[(0,l.jsx)("div",{className:"hidden w-8 md:block"}),(0,l.jsx)("h2",{className:(0,u.cn)("prose-label-bold-md 2xl:prose-label-bold-lg text-color-utility-text-primary flex-1 text-center",null==R?void 0:R.title),id:"comparison-modal-title",children:j}),(0,l.jsxs)("button",{"aria-label":(null==z?void 0:z.closeButtonText)||"Close",className:(0,u.cn)("flex items-center justify-end gap-1 w-8"),"data-testid":"comparison-modal-close-button",onClick:C,tabIndex:0,type:"button",children:[(0,l.jsx)(t.default,{"aria-hidden":!0}),(0,l.jsx)("span",{className:(0,u.cn)("hidden prose-label-semibold-sm md:block",null==R?void 0:R.closeText),children:(null==z?void 0:z.closeButtonText)||"Close"})]})]}),$&&(0,l.jsxs)("div",{"aria-live":"polite",className:(0,u.cn)("prose-label-medium-sm flex items-start gap-2 flex-1 py-4 pl-3 my-4 pr-4 rounded-lg",null==R?void 0:R.warningBanner),role:"alert",style:{backgroundColor:"var(--color-semantic-warning-2, #FFF2B6)",color:"var(--color-semantic-warning-6, #6D5C12)"},children:[(0,l.jsx)(s.default,{"aria-hidden":"true",style:{width:"1.125rem",height:"1.125rem",aspectRatio:"1/1"}}),(null==z?void 0:z.comparisonWarning)||"Certain specifications may be unavailable as the selected products do not belong to the same category. For optimal comparison, please select products within the same category."]})]}),(0,l.jsx)("div",{className:(0,u.cn)("flex-1 w-full overflow-auto"),ref:I,children:(0,l.jsxs)("div",{className:(0,u.cn)("min-w-max 2xl:min-w-0"),children:[(0,l.jsx)("div",{className:(0,u.cn)("sticky top-0 bg-white z-20 border-y border-color-brand-border-secondary min-w-max max-w-container mx-auto [@media(max-width:47.9375rem)_and_(max-height:42rem)]:!relative [@media(max-width:47.9375rem)_and_(max-height:42rem)]:top-auto",W?"w-full":""),children:(0,l.jsx)("div",{className:(0,u.cn)("flex flex-row min-w-max px-4 md:px-6 2xl:px-10",W?"w-full justify-center":""),children:w.map(({image:e,longName:t,name:s,details:a,onDelete:c,cta:d,commerce:m},j)=>{var y,w,k;let P=(null==(y=null==e?void 0:e.sizes)?void 0:y.md)||(null==e?void 0:e.url)||(null==N?void 0:N.url)||"",B=T&&!!m,L=(0,v.hasUsableProductPrice)(null==m?void 0:m.discountedPrice,null==m?void 0:m.originalPrice),V=L?null!=(w=null==m?void 0:m.discountedPrice)?w:null==m?void 0:m.originalPrice
23:void 0,A=L&&(null==m?void 0:m.discountedPrice)!==void 0&&(null==m?void 0:m.originalPrice)!==void 0;return(0,l.jsxs)("article",{"aria-label":`${(0,f.resolveText)(s||t||"")} - ${null!=(k=null==a?void 0:a.code)?k:""}`,className:(0,u.cn)("py-8 px-5 2xl:px-8 text-center relative flex flex-col flex-1 min-w-[14.3125rem] max-w-[14.3125rem] md:min-w-[17.5rem] md:max-w-none mr-[0.75rem] last:mr-0",W?"md:max-w-[37.5rem]":""),"data-product-sku":null==a?void 0:a.code,"data-testid":"comparison-modal-product-card",children:[j>0&&(0,l.jsx)("div",{"aria-hidden":"true",className:(0,u.cn)("absolute left-[-0.375rem] top-0 bottom-0 w-px bg-color-brand-border-secondary",null==R?void 0:R.productSeparator)}),(0,l.jsx)("button",{"aria-label":`${(null==z?void 0:z.deleteProduct)||"Remove product from comparison"}: ${(0,f.resolveText)(s||t||"")}`,className:(0,u.cn)("absolute top-2 right-2 p-1 rounded-full text-color-utility-icon-hover focus:outline-none focus:ring-2 focus:ring-color-brand-border-primary"),"data-testid":"comparison-modal-delete-product",onClick:()=>{var e;return c(null!=(e=null==a?void 0:a.code)?e:"")},tabIndex:0,type:"button",children:(0,l.jsx)(r.default,{"aria-hidden":!0,style:{width:"1.25rem",height:"1.25rem"}})}),(0,l.jsx)(n.default,{className:(0,u.cn)("block focus:outline-none focus:ring-2 focus:ring-color-brand-border-primary"),href:(null==d?void 0:d.url)||"#",onClick:()=>{C()},...(null==d?void 0:d.external)&&{target:d.target||"_blank",rel:"noopener noreferrer"},children:(0,l.jsxs)("div",{className:(0,u.cn)("overflow-visible"),children:[(0,l.jsx)("figure",{className:(0,u.cn)("relative mx-auto w-[6.25rem] h-[6.25rem] md:w-[8.75rem] md:h-[8.75rem] 2xl:w-[10.5rem] 2xl:h-[10.5rem] duration-200 ease-linear transition-[height,margin] mb-4",{"!h-0 !mb-0":E}),children:(0,l.jsx)(b.PolarisImage,{alt:(null==e?void 0:e.alt)||(null==N?void 0:N.alt)||s||t||"",className:"size-full object-contain",fill:!0,focalPoint:null==e?void 0:e.focalPoint,quality:x.GLOBAL_IMAGE_QUALITY,sizes:(0,x.generateImageSizes)((0,x.getImageSizesForComponent)("ComparisonModal")),src:P,transformBaseUrl:null==e?void 0:e.transformBaseUrl})}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:(0,u.cn)("prose-eyebrow-medium-sm text-color-utility-text-secondary text-center uppercase",null==R?void 0:R.productSku),children:null==a?void 0:a.code}),(0,l.jsx)("div",{className:(0,u.cn)("prose-label-semibold-sm text-color-utility-text-primary text-center mt-2 max-w-[15rem] mx-auto",null==R?void 0:R.productName),children:(0,f.resolveText)(s||t||"")})]})]})}),B&&(0,l.jsxs)("div",{className:(0,u.cn)("mt-auto pt-3 flex flex-col items-center gap-2 max-w-[15rem] mx-auto w-full"),children:[void 0!==V&&(0,l.jsxs)("p",{className:(0,u.cn)("prose-label-bold-md text-color-utility-text-primary inline-flex items-center gap-1"),children:[(0,l.jsx)("span",{children:(0,p.formatCurrency)(V)}),(0,l.jsx)("button",{"aria-label":(null==z?void 0:z.infoIconAriaLabel)||"View pricing disclaimer",className:"inline-flex items-center justify-center",onClick:e=>{e.preventDefault(),e.stopPropagation(),null==S||S()},type:"button",children:(0,l.jsx)(i.default,{className:(0,u.cn)("!size-[1.125rem] text-color-brand-icon-primary")})}),A&&(0,l.jsx)("span",{"aria-label":(null==z?void 0:z.originalPriceAriaLabel)?z.originalPriceAriaLabel.replace("%s",String(m.originalPrice)):void 0,className:(0,u.cn)("prose-label-medium-xs text-color-utility-text-tertiary line-through"),children:(0,p.formatCurrency)(m.originalPrice)})]}),L&&(null==m?void 0:m.discounts)&&m.discounts.length>0&&(0,l.jsx)(g.Tag,{className:(0,u.cn)("onLight inline-flex items-center gap-2"),name:"",size:"small",variant:"discount",children:m.discounts.map((e,t)=>(0,l.jsxs)(o.Fragment,{children:[t>0?(0,l.jsx)("span",{"aria-hidden":"true",children:"+"}):null,(0,l.jsx)("span",{className:"truncate whitespace-nowrap",children:e})]},e))}),(null==m?void 0:m.viewDetails)&&(0,l.jsx)(h.Button,{className:(0,u.cn)(M),disabled:m.viewDetails.disabled,link:{text:m.viewDetails.label,external:!1,url:m.viewDetails.url},onClick:()=>{var e,l;null==(l=null==(e=m.viewDetails)?void 0:e.onClick)||l.call(e),C()},size:"small",children:m.viewDetails.label}),(null==m?void 0:m.addToCart)&&(0,l.jsx)(h.Button,{className:(0,u.cn)(M),disabled:m.addToCart.disabled||m.addToCart.isSubmitting,isSubmitting:m.addToCart.isSubmitting,onClick:m.addToCart.onClick,size:"small",children:m.addToCart.label})]})]},null==a?void 0:a.code)})})}),(0,l.jsx)(L,{brandStyles:{accordionTrigger:null==R?void 0:R.accordionTrigger,groupHeading:null==R?void 0:R.specGroupHeading,specName:null==R?void 0:R.specName,specValueContainer:null==R?void 0:R.specValueContainer,specValue:null==R?void 0:R.specValue,viewMoreButton:null==R?void 0:R.viewMoreButton}
23,onClickViewMore:P,productCount:w.length,shouldGrow:W,specs:U,textCopies:{technicalSpecs:(null==z?void 0:z.technicalSpecs)||"",viewMoreSpecs:(null==z?void 0:z.viewMoreSpecs)||"",viewLessSpecs:(null==z?void 0:z.viewLessSpecs)||""}}),(0,l.jsx)(k,{brandStyles:{accordionTrigger:null==R?void 0:R.accordionTrigger,viewMoreButton:null==R?void 0:R.viewMoreButton},onClickViewMore:P,productCount:w.length,products:w,shouldGrow:W,textCopies:{moreProductDetails:(null==z?void 0:z.moreProductDetails)||"",relatedProducts:(null==z?void 0:z.relatedProducts)||"",viewLessProducts:(null==z?void 0:z.viewLessProducts)||"",viewMoreProducts:(null==z?void 0:z.viewMoreProducts)||"",noResult:(null==z?void 0:z.noResult)||""}})]})})]})})});return(0,c.createPortal)(G,document.body)}],783743);let R=(0,e.i(777831).default)((0,l.jsx)("path",{d:"M18 4v5H6V4zm0-2H6c-1.1 0-2 .9-2 2v5c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 13v5H6v-5zm0-2H6c-1.1 0-2 .9-2 2v5c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2"}),"Splitscreen");var A=e.i(535206),_=e.i(117787),I=e.i(218964),F=e.i(845085),D=e.i(460256),E=e.i(714660),O=e.i(912832),H=e.i(701252),q=e.i(986858),$=e.i(807236),U=e.i(131991),W=e.i(416625),G=e.i(336037),Q=e.i(273157),Y=e.i(344420),K=e.i(376205),X=e.i(197848),J=e.i(422382),Z=e.i(864368),ee=e.i(997591),el=e.i(604245),et=e.i(822277),er=e.i(180214),ei=e.i(175896),es=e.i(619190);let ea=(0,o.forwardRef)(({children:e,onClick:t,className:r},i)=>(0,l.jsx)("div",{className:(0,u.cn)("w-full",r),onClickCapture:e=>{t&&setTimeout(()=>{t(e)},100)},ref:i,children:e}));ea.displayName="QuickViewWtbActionWrapper";let en=({layout:e,sku:t,hashes:r,onConversion:i,wtbTextCopies:s,whereToBuyFallbackLabel:a,productName:n,onCtaClick:o,onDelayedClose:c,psInteractionRef:d})=>{let m=(()=>{if(1===Number("1"))return"wayvia"})(),x=!!(t&&m),p=()=>{n&&(null==o||o({title:n,ctaText:a}))},v="commerce"===e?"sm:order-2":void 0,f="69a099cf856df82928530182";return t?x&&"organization-manager"===m?(0,l.jsx)("div",{className:(0,u.cn)("w-full",v),children:(0,l.jsx)(es.PriceSpider,{btnContainerClassName:"w-full",btnSize:"small",hashes:r,onConversion:i,onWhereToBuyClick:p,provider:"organization-manager",psConfig:f,sku:t,textCopies:s,variant:"button"})}):x&&m?(0,l.jsx)(ea,{className:v,onClick:()=>{var e;let l=d.current,t=null==l?void 0:l.querySelector("button.ps-widget"),r=null==(e=null==l?void 0:l.querySelector("button.ps-widget .ps-button-label"))?void 0:e.textContent;null!=t&&t.disabled||(n&&r?null==o||o({title:n,ctaText:r}):n&&"wayvia"===m&&p(),null==c||c())},ref:d,children:(0,l.jsx)(es.PriceSpider,{btnContainerClassName:"w-full",btnSize:"small",hashes:r,onConversion:i,onWhereToBuyClick:p,provider:m,psConfig:f,sku:t,textCopies:s,variant:"button"})}):(0,l.jsx)(h.Button,{className:(0,u.cn)("w-full",v),onClick:()=>{n&&(null==o||o({title:n,ctaText:a})),null==c||c()},size:"small",variant:"solid",children:a}):null},eo="w-full sm:order-1",ec="w-full sm:order-2",ed=()=>({overlay:(0,u.cn)("fixed inset-0 z-50 bg-color-opacity-theme-35"),gridContainer:"sm:grid-layout fixed inset-0 z-50 sm:container sm:items-center",modalContent:"onLight relative col-span-full sm:col-start-2 sm:col-span-10 xl:col-start-3 xl:col-span-8 h-full sm:max-h-[calc(100vh-4.75rem)] xl:max-h-[90vh] flex flex-col xl:h-auto self-center rounded-lg bg-color-brand-surface-primary transition-[max-height] duration-300 ease-in-out",titleBar:"flex items-center justify-between border-b border-color-utility-border-secondary px-4 py-2 text-color-utility-text-primary md:py-3"}),eu=()=>(0,l.jsxs)("div",{className:"onLight w-full",children:[(0,l.jsx)(q.Skeleton,{className:"mb-4 h-4 w-[9.375rem]"}),(0,l.jsx)(q.Skeleton,{className:"mb-2 h-8 w-[76%] xl:w-[65%]"}),(0,l.jsx)(q.Skeleton,{className:"mb-6 h-4 w-full"}),(0,l.jsx)(q.Skeleton,{className:"mb-6 h-[4.625rem] w-full"}),(0,l.jsx)(q.Skeleton,{className:"mb-2 h-8 w-[58.6%] sm:w-[70.9%] xl:w-[65%]"}),(0,l.jsx)(q.Skeleton,{className:"mb-2 h-4 w-full"}),(0,l.jsx)(q.Skeleton,{className:"mb-6 h-4 w-[79.6%] sm:w-[83%] xl:w-[86%]"})]}),em=()=>(0,l.jsx)("div",{className:"my-6 flex h-[17.375rem] w-full items-center justify-center sm:-mb-4 sm:mt-3 sm:h-[18.75rem] xl:mt-2 xl:h-[18.75rem]",children:(0,l.jsx)("div",{className:"onLight relative aspect-square h-full max-h-[17.375rem] w-auto sm:max-h-[18.75rem] xl:max-h-[18.75rem]",children:(0,l.jsx)(q.Skeleton,{className:"absolute inset-0 size-full"})})}),ex=()=>(0,l.jsxs)("div",{className:"onLight flex w-full flex-col items-center justify-between gap-2 sm:flex-row sm:gap-3",children:[(0,l.jsx)(q.Skeleton,{className:"h-8 w-full"}),(0,l.jsx)(q.Skeleton,{className:"h-8 w-full"})]}),ep=({title:e,body:t,onBack:r})=>{let i=ed(),s=(0,o.useRef)(null);return(0,l.jsx)(a.FocusTrap,{active:!0,focusTrapOptions:{allowOutsideClick:!0,escapeDeactivates:!1,fallbackFocus:()=>s.current},children:(0,l.jsxs)("div",{className:"onLight absolute inset-0 z-10 flex flex-col rounded-lg bg-color-brand-surface-primary","data-testid":"product-quick-view-pricing-disclaimer-overlay",ref:s,children:[(0,l.jsxs)("div",{className:i.titleBar,children:[(0,l.jsx)("button",{"aria-label":"Back to product details",className:"flex size-9 items-center justify-center","data-testid":"product-quick-view-pricing-disclaimer-back",onClick:r,type:"button",children:(0,l.jsx)(Q.default,{})}),(0,l.jsx)("div",{className:"prose-label-bold-lg",children:e||"Pricing Disclaimer"}),(0,l.jsx)("div",{className:"w-9"})]}),(0,l.jsx)("div",{className:"min-h-0 grow overflow-auto p-6",children:(0,l.jsx)("p",{className:"prose-body-medium-md text-color-brand-text-primary",children:t})})]})})},ev=({title:e,sku:r,shortName:i,longName:s,productTag:a,productLink:n,productDetailsAccordionItems:c,productAssets:d,showCompareButton:m=!1,isLoading:p=!1,open:v=!1,onOpenChange:f=()=>{},handleClose:j=()=>{},translations:y,onCtaClick:w,onDetailsExpand:N,onNavigationClick:k,commerceData:C,fulfillmentSlot:z,hashes:P,onConversion:S,productClassification:T,onAddToCart:B,isAddingToCart:L,addToCartAriaLabel:V})=>{var M,q,Q,es,ea,ev,ef,eh,eb,eg;let ej=ed(),ey=(0,o.useRef)(null),ew=(0,o.useRef)(null),[eN,ek]=(0,o.useState)(0),[eC,ez]=(0,o.useState)(!1),{tagName:eP="New",tagType:eS="new"}=a||{}
23,eT=a&&eP&&!!Object.keys(a).length,eB=i||s,eL=(0,el.isWholeGoodProduct)(T),eV=(0,el.showsModelCompatibilityChecker)(T),eM=null==y?void 0:y.quickView,eR=null==y?void 0:y.pricingDisclaimer,eA=(0,J.resolveCommerceProductData)(C),e_=!!(null==(M=eA.price)?void 0:M.current),eI=(0,J.hasCommerceFulfillmentData)(C),eF=eV&&e_?(0,ee.getAvailabilityStatusPillProps)(eA.availabilityState,null==y?void 0:y.wtb):void 0,eD="out of stock"===eA.availabilityState||!e_,eE=eL?(null==eM?void 0:eM.viewFullDetails)||"View Full Details":(null==eM?void 0:eM.viewProductDetails)||"View Product Details",eO=()=>{eB&&eE&&(null==w||w({title:eB,ctaText:eE}))},eH=()=>{let e=(null==eM?void 0:eM.findADealer)||"Find a Dealer";eB&&(null==w||w({title:eB,ctaText:e})),(null==P?void 0:P.storeLocatorHash)&&(window.location.hash=P.storeLocatorHash),j()},eq=()=>{let e=(null==eM?void 0:eM.addToCart)||"Add to Cart";eB&&(null==w||w({title:eB,ctaText:e})),null==B||B()},e$=()=>{eO()},eU=e=>{var l,t;"prev"===e?null==(l=ey.current)||l.slickPrev():null==(t=ey.current)||t.slickNext(),eB&&(null==k||k({productName:eB,ctaText:e}))},eW=(0,Z.formatStarRatingAriaLabel)(null==eM?void 0:eM.starRatingAriaLabel,null!=(Q=null==(q=eA.rating)?void 0:q.value)?Q:0,null!=(ea=null==(es=eA.rating)?void 0:es.count)?ea:0),eG="__STORYBOOK_PREVIEW__"in window;return(0,l.jsx)("div",{className:"onLight relative","data-testid":"product-quick-view-commerce",children:(0,l.jsxs)(_.Dialog.Root,{onOpenChange:e=>{ek(0),ez(!1),null==f||f(e)},open:v,children:[(0,l.jsx)(A.DialogOverlay,{className:ej.overlay}),(0,l.jsx)(_.Dialog.Content,{className:ej.gridContainer,onEscapeKeyDown:e=>{eC&&(e.preventDefault(),ez(!1))},children:(0,l.jsxs)("div",{className:ej.modalContent,children:[(0,l.jsx)(_.Dialog.Title,{children:(0,l.jsx)(I.VisuallyHidden,{children:eC?(null==eR?void 0:eR.title)||"Pricing Disclaimer":e})}),(0,l.jsxs)("div",{"aria-hidden":eC||void 0,className:"flex min-h-0 flex-1 flex-col","data-testid":"product-quick-view-product-details-page",inert:eC||void 0,children:[(0,l.jsxs)("div",{className:ej.titleBar,children:[(0,l.jsx)("div",{className:"w-9"}),(0,l.jsx)("div",{className:"prose-label-bold-lg",children:e}),(0,l.jsx)(_.Dialog.Close,{children:(0,l.jsx)("button",{"aria-label":null==eM?void 0:eM.closeQuickViewDialog,className:"flex size-9 items-center justify-center",type:"button",children:(0,l.jsx)(t.default,{})})})]}),(0,l.jsxs)("div",{className:"flex min-h-0 grow flex-col overflow-auto xl:flex-row xl:overflow-visible",children:[(0,l.jsxs)("div",{className:"relative shrink-0 px-4 pt-10 sm:px-6 sm:pt-10 xl:w-[28.125rem] xl:overflow-auto xl:border-r xl:border-color-utility-border-secondary xl:py-6",children:[m&&(0,l.jsx)(h.Button,{LeftIcon:R,className:"absolute left-4 top-4 roun
23ded-full px-3 py-[0.5625rem] xl:relative xl:left-0 xl:top-0 xl:mb-8",size:"small",variant:"button-outline",children:"Compare"}),p?(0,l.jsx)(em,{}):(0,l.jsxs)("div",{className:"relative flex w-full flex-col gap-10 xl:items-center xl:gap-y-16",children:[(0,l.jsx)("div",{className:(0,u.cn)("relative mx-auto grid aspect-square","size-[17.375rem] sm:size-[18.75rem] xl:size-[17.5rem]"),"data-testid":"product-details-images-carousel",children:(0,l.jsx)(F.default,{accessibility:!0,arrows:!1,beforeChange:(e,l)=>ek(l),centerMode:!1,className:"relative overflow-hidden [&_.slick-list]:h-full [&_.slick-slide>div]:size-full [&_.slick-slide]:flex [&_.slick-slide]:h-full [&_.slick-track]:flex [&_.slick-track]:h-full",infinite:!1,ref:ey,slidesToScroll:1,slidesToShow:1,speed:200,children:null==d?void 0:d.map((e,t)=>{var r;return"image"===e.type?(0,l.jsx)("div",{className:"relative block size-full",children:(0,l.jsx)(b.PolarisImage,{alt:e.alt||"",aspectRatio:(0,D.getImageAspectRatioForComponent)("ProductQuickView"),className:(0,u.cn)("aspect-square size-full",eN===t?"block":"hidden"),fill:!0,focalPoint:null==e?void 0:e.focalPoint,objectFit:"contain",priority:0===t,quality:x.GLOBAL_IMAGE_QUALITY,sizes:(0,x.generateImageSizes)((0,x.getImageSizesForComponent)("ProductDetailHero")),src:(null==(r=e.sizes)?void 0:r.md)||e.url,transformBaseUrl:null==e?void 0:e.transformBaseUrl})},t):"video"===e.type?(0,l.jsx)("div",{className:"relative block size-full",children:(0,l.jsx)("div",{className:"absolute inset-0 m-auto aspect-video max-h-full max-w-full",children:(0,l.jsx)($.VideoPlayer,{className:"relative aspect-video",coverImage:e.videoCoverImage,disabledVideoButton:eN!==t,objectFit:"contain",sourceUrl:e.url,textCopies:null==y?void 0:y.video,title:e.alt||"",tooltipType:"thumbnail",variant:"autoplay"})})},t):null})})}),d&&d.length>1&&(0,l.jsx)(H.CarouselPagination,{arrowsClassName:"xl:!ml-0 xl:justify-end",bulletClassName:"max-w-[3.775rem] sm:min-w-[4.375rem] xl:min-w-[unset] xl:w-[1.40625rem]",bulletsClassName:"justify-center",className:"xl:w-full xl:justify-between xl:before:flex-1 xl:before:shrink-0 xl:before:content-[''] xl:[&>div]:flex-1 xl:[&>div]:shrink-0",hasArrows:!0,onClickNext:()=>eU("next"),onClickPrev:()=>eU("prev"),page:eN,setPage:e=>{var l;ek(e),null==(l=ey.current)||l.slickGoTo(e)},size:"small",textCopies:null==y?void 0:y.pagination,totalPages:d.length})]})]}),(0,l.jsx)("div",{className:"flex shrink-0 flex-col gap-6 px-4 pb-6 pt-8 sm:px-6 sm:pb-8 sm:pt-10 xl:flex-1 xl:overflow-auto xl:py-8",children:p?(0,l.jsx)(eu,{}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[eT&&(0,l.jsx)(g.Tag,{className:(0,u.cn)("flex h-6 items-center justify-center","[.sbd-brand-cubcadet_&]:h-[1.0625rem] [.sbd-brand-cubcadet_&]:bg-[#0066b0] [.sbd-brand-cubcadet_&]:px-2 [.sbd-brand-cubcadet_&]:py-0 [.sbd-brand-cubcadet_&]:text-[#f7f7f7]"),name:eP,size:"small",variant:(0,E.normalizeTagVariant)(eS)}),r&&(0,l.jsx)("span",{className:"prose-eyebrow-medium-sm uppercase text-color-brand-text-primary xl:prose-eyebrow-medium-md",children:r})]}),r&&!eG?(0,l.jsx)(W.BazaarvoiceReviews,{productId:r,show:G.BazaarvoiceReviewsShow.INLINE_RATING,title:(null==eM?void 0:eM.reviewsTitle)||"Reviews"}):eA.rating?(0,l.jsxs)("div",{"aria-label":eW,className:"flex h-6 items-center gap-1 rounded-full bg-color-brand-surface-tertiary px-2",role:"img",children:[(0,l.jsx)(K.default,{"aria-hidden":"true",className:"!size-[0.875rem] text-color-utility-text-primary"}),(0,l.jsx)("span",{className:"prose-eyebrow-bold-md text-color-utility-text-primary",children:null==(ev=eA.rating)?void 0:ev.value}),(0,l.jsxs)("span",{className:"prose-eyebrow-medium-md text-color-utility-text-tertiary",children:["(",null==(ef=eA.rating)?void 0:ef.count,")"]})]}):null]}),eB&&(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("h2",{className:"prose-brand-xs uppercase text-color-brand-text-primary",children:(0,O.renderWithSuperscript)(eB)}),i&&s&&(0,l.jsx)("span",{className:"prose-body-medium-sm text-color-brand-text-secondary",children:s})]}),(null==(eh=eA.price)?void 0:eh.current)&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsxs)("p",{className:"prose-brand-xs text-color-brand-text-primary",children:[(0,l.jsxs)("span",{className:"sr-only",children:[(null==eM?void 0:eM.salePriceLabel)||"Sale price:"," "]}),eA.price.current]}),eA.price.original&&(0,l.jsxs)("p",{className:"prose-brand-3xs text-color-brand-text-tertiary line-through",children:[(0,l.jsxs)("span",{className:"sr-only",children:[(null==eM?void 0:eM.originalPriceLabel)||"Original price:"," "]}),eA.price.original]})]}),eA.promotions&&eA.promotions.length>0?(0,l.jsx)(et.Promotions,{promos:eA.promotions}):null,(0,l.jsxs)("button",{className:"focus-visible:outline-color-utility-border-focus mt-1 inline-flex items-center gap-1 text-color-utility-text-primary hover:underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2","data-testid":"product-quick-view-pricing-disclaimer-trigger",onClick:()=>ez(!0),type:"button",children:[(0,l.jsx)("span",{className:"prose-label-semibold-xs",children:(null==eM?void 0:eM.learnMore)||"Learn More"}),(0,l.jsx)(Y.default,{"aria-hidden":"true",className:"!size-3"})]})]}),e_&&(z?(0,l.jsx)("div",{className:"flex flex-col gap-4 empty:hidden",children:z}):eI&&(0,l.jsx)(ei.CommerceFulfillment,{fulfillment:null!=(eb=eA.fulfillment)?eb:{},premiumDelivery:eA.premiumDelivery,strings:eM,testIds:{tiles:"product-quick-view-fulfillment",premiumDelivery:"product-quick-view-premium-delivery"}})),c&&(null==(eg=c.items)?void 0:eg.length)>0&&(0,l.jsx)(U.AccordionList,{...c,className:"!px-0",classNameContent:"!prose-body-medium-sm prose-li:!mb-3",classNameItem:"first:xl:!border-t-0",defaultValue:[c.items[0].value],onExpand:({itemTitle:e})=>{eB&&(null==N||N({productName:eB,drawerTitle:e}))},triggerClassName:"!pt-4 data-[state=closed]:!pb-4 data-[state=open]:!pb-3 !prose-label-semibold-md",type:"multiple"})]})})]}),(0,l.jsxs)("div",{className:"mt-auto border-t border-color-utility-border-secondary px-4 py-5 sm:px-6",children:[eF&&(0,l.jsx)(er.StatusPill,{...eF,className:"mb-4 mx-auto",size:"small"}),p?(0,l.jsx)(ex,{}):(0,l.jsx)("div",{className:"flex flex-col gap-2 sm:flex-row xl:gap-3",children:(0,l.jsx)(()=>
23{if(eL)return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(h.Button,{className:eo,link:n,onClick:eO,size:"small",variant:"outline",children:eE}),(0,l.jsx)(h.Button,{className:ec,onClick:eH,size:"small",variant:"solid",children:(null==eM?void 0:eM.findADealer)||"Find a Dealer"})]});if(eV){let e=(null==eM?void 0:eM.addToCart)||"Add to Cart";return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(h.Button,{className:eo,link:n,onClick:eO,size:"small",variant:"outline",children:eE}),B&&(L?(0,l.jsxs)(h.Button,{ariaLabel:null!=V?V:e,className:ec,disabled:!0,size:"small",variant:"solid",children:[(null!=V?V:e)&&(0,l.jsx)("span",{className:"sr-only",children:null!=V?V:e}),(0,l.jsx)("span",{className:"size-3.5",children:(0,l.jsx)(X.CircularProgress,{color:"inherit",size:"inherit",style:{opacity:.35,color:"black"},thickness:6})})]}):(0,l.jsx)(h.Button,{ariaLabel:V,className:ec,disabled:eD,onClick:eq,size:"small",variant:"solid",children:e}))]})}return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(en,{hashes:P,layout:"commerce",onConversion:S,onCtaClick:w,onDelayedClose:j,productName:eB,psInteractionRef:ew,sku:r,whereToBuyFallbackLabel:(null==eM?void 0:eM.whereToBuy)||"Where to Buy",wtbTextCopies:null==y?void 0:y.wtb}),(0,l.jsx)(h.Button,{className:eo,link:n,onClick:e$,size:"small",variant:"outline",children:(null==eM?void 0:eM.viewFullDetails)||"View Full Details"})]})},{})})]})]}),eC&&(0,l.jsx)(ep,{body:null==eR?void 0:eR.body,onBack:()=>ez(!1),title:null==eR?void 0:eR.title})]})})]})})},ef=()=>(0,l.jsxs)("div",{className:"onLight w-full",children:[(0,l.jsx)(q.Skeleton,{className:"mb-4 h-4 w-[9.375rem]"}),(0,l.jsx)(q.Skeleton,{className:"mb-2 h-8 w-[76%] xl:w-[65%]"}),(0,l.jsx)(q.Skeleton,{className:"mb-6 h-4 w-full"}),(0,l.jsx)(q.Skeleton,{className:"mb-6 h-[4.625rem] w-full"}),(0,l.jsx)(q.Skeleton,{className:"mb-2 h-8 w-[58.6%] sm:w-[70.9%] xl:w-[65%]"}),(0,l.jsx)(q.Skeleton,{className:"mb-2 h-4 w-full"}),(0,l.jsx)(q.Skeleton,{className:"mb-6 h-4 w-[79.6%] sm:w-[83%] xl:w-[86%]"}),(0,l.jsx)(q.Skeleton,{className:"mb-2 h-8 w-[58.6%] sm:w-[70.9%] xl:w-[65%]"}),(0,l.jsx)(q.Skeleton,{className:"mb-2 h-4 w-full"}),(0,l.jsx)(q.Skeleton,{className:"mb-6 h-4 w-[79.6%] sm:w-[83%] xl:w-[86%]"})]}),eh=()=>(0,l.jsx)("div",{className:"my-6 flex h-[17.375rem] w-full items-center justify-center sm:-mb-4 sm:mt-3 sm:h-[18.75rem] xl:mt-2 xl:h-[18.75rem]",children:(0,l.jsx)("div",{className:"onLight relative aspect-square h-full max-h-[17.375rem] w-auto sm:max-h-[18.75rem] xl:max-h-[18.75rem]",children:(0,l.jsx)(q.Skeleton,{className:"absolute inset-0 size-full"})})}),eb=()=>(0,l.jsxs)("div",{className:"onLight flex w-full flex-col items-center justify-between gap-2 sm:flex-row sm:gap-3",children:[(0,l.jsx)(q.Skeleton,{className:"h-8 w-full"}),(0,l.jsx)(q.Skeleton,{className:"h-8 w-full"})]});e.s(["ProductQuickView",0,e=>{var r,i;let{title:s,sku:a,shortName:n,longName:c,productTag:d,productLink:m,productDetailsAccordionItems:p,productAssets:v,showCompareButton:f=!1,isLoading:j=!1,open:y=!1,onOpenChange:w=()=>{},productDetailsButtonText:N,handleClose:k=()=>{},translations:C,onCtaClick:z,onDetailsExpand:P,onNavigationClick:S,onConversion:T,hashes:B}=e,L={overlay:(0,u.cn)("fixed inset-0 z-50 bg-color-opacity-theme-35"),gridContainer:"sm:grid-layout fixed inset-0 z-50 sm:container sm:items-center",modalContent:"onLight col-span-full sm:col-start-2 sm:col-span-10 xl:col-start-3 xl:col-span-8 h-full sm:max-h-[calc(100vh-4.75rem)] xl:max-h-[68vh] flex flex-col xl:h-auto self-center rounded-lg bg-color-brand-surface-primary transition-[max-height] duration-300 ease-in-out",titleBar:"flex items-center justify-between border-b border-color-utility-border-secondary px-4 py-2 text-color-utility-text-primary md:py-3"},V=(0,o.useRef)(null),[M,q]=(0,o.useState)(0),Q=(0,o.useRef)(null);if(e.isCommerceEnabled)return(0,l.jsx)(ev,{...e});let{tagName:Y="New",tagType:K="new"}=d||{},X=d&&Y&&!!Object.keys(d).length,J=n||c,Z=e=>{var l,t;"prev"===e?null==(l=Q.current)||l.slickPrev():"next"===e&&(null==(t=Q.current)||t.slickNext()),J&&(null==S||S({productName:J,ctaText:e}))};return(0,l.jsx)("div",{className:"onLight relative",children:(0,l.jsxs)(_.Dialog.Root,{onOpenChange:e=>{w&&(q(0),w(e))},open:y,children:[(0,l.jsx)(A.DialogOverlay,{className:L.overlay}),(0,l.jsx)(_.Dialog.Content,{className:L.gridContainer,children:(0,l.jsxs)("div",{className:L.modalContent,children:[(0,l.jsx)(_.Dialog.Title,{children:(0,l.jsx)(I.VisuallyHidden,{children:s})}),(0,l.jsxs)("div",{className:L.titleBar,children:[(0,l.jsx)("div",{className:"w-9"}),(0,l.jsx)("div",{className:"prose-label-bold-lg",children:s}),(0,l.jsx)(_.Dialog.Close,{children:(0,l.jsx)("button",{"aria-label":null==C?void 0:C.quickView.closeQuickViewDialog,className:"flex size-9 items-center justify-center",type:"button",children:(0,l.jsx)(t.default,{})})})]}),(0,l.jsxs)("div",{className:"flex min-h-0 grow flex-col overflow-auto xl:flex-row xl:overflow-visible",children:[(0,l.jsxs)("div",{className:"relative shrink-0 px-4 pt-10 sm:px-6 sm:pt-10 xl:w-1/2 xl:overflow-auto xl:border-r xl:border-color-utility-border-secondary xl:py-6",children:[f&&(0,l.jsx)(h.Button,{LeftIcon:R,className:"absolute left-4 top-4 roun
23ded-full px-3 py-[0.5625rem] xl:relative xl:left-0 xl:top-0 xl:mb-8",size:"small",variant:"button-outline",children:"Compare"}),j?(0,l.jsx)(eh,{}):(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"relative flex w-full flex-col gap-10 xl:items-center xl:gap-y-16",children:[(0,l.jsx)("div",{className:(0,u.cn)("relative grid aspect-square size-full px-4 sm:px-[7.5rem]","max-h-[17.375rem] sm:max-h-[18.75rem] xl:max-h-[17.5rem]","sm:col-span-8 sm:col-start-3 sm:px-0"),"data-testid":"product-details-images-carousel",children:(0,l.jsx)(F.default,{accessibility:!0,arrows:!1,beforeChange:(e,l)=>q(l),centerMode:!1,className:"relative overflow-hidden [&_.slick-list]:h-full [&_.slick-slide>div]:size-full [&_.slick-slide]:flex [&_.slick-slide]:h-full [&_.slick-track]:flex [&_.slick-track]:h-full",infinite:!1,ref:Q,slidesToScroll:1,slidesToShow:1,speed:200,children:null==v?void 0:v.map((e,t)=>{var r;return"image"===e.type?(0,l.jsx)("div",{className:(0,u.cn)("relative block size-full"),children:(0,l.jsx)(b.PolarisImage,{alt:e.alt||"",aspectRatio:(0,D.getImageAspectRatioForComponent)("ProductQuickView"),className:(0,u.cn)("aspect-square size-full",M===t?"block":"hidden"),fill:!0,focalPoint:null==e?void 0:e.focalPoint,objectFit:"contain",priority:0===t,quality:x.GLOBAL_IMAGE_QUALITY,sizes:(0,x.generateImageSizes)((0,x.getImageSizesForComponent)("ProductDetailHero")),src:(null==(r=e.sizes)?void 0:r.md)||e.url,transformBaseUrl:null==e?void 0:e.transformBaseUrl},t)},t):"video"===e.type?(0,l.jsx)("div",{className:(0,u.cn)("relative block size-full"),children:(0,l.jsx)("div",{className:"absolute inset-0 m-auto aspect-video max-h-full max-w-full",children:(0,l.jsx)($.VideoPlayer,{className:(0,u.cn)("relative aspect-video"),coverImage:e.videoCoverImage,disabledVideoButton:M!==t,objectFit:"contain",sourceUrl:e.url,textCopies:null==C?void 0:C.video,title:e.alt||"",tooltipType:"thumbnail",variant:"autoplay"})})},t):null})})}),v&&(null==v?void 0:v.length)>1&&(0,l.jsx)(H.CarouselPagination,{arrowsClassName:"xl:!ml-0 xl:justify-end",bulletClassName:"max-w-[3.775rem] sm:min-w-[4.375rem] xl:min-w-[unset] xl:w-[1.40625rem]",bulletsClassName:"justify-center",className:(0,u.cn)("xl:w-full xl:justify-between xl:before:flex-1 xl:before:shrink-0 xl:before:content-[''] xl:[&>div]:flex-1 xl:[&>div]:shrink-0"),hasArrows:!0,onClickNext:()=>Z("next"),onClickPrev:()=>Z("prev"),page:M,setPage:e=>{var l;q(e),null==(l=Q.current)||l.slickGoTo(e)},size:"small",textCopies:null==C?void 0:C.pagination,totalPages:null==v?void 0:v.length})]})})]}),(0,l.jsx)("div",{className:"shrink-0 px-4 pb-6 pt-8 sm:px-6 sm:pb-8 sm:pt-10 xl:w-1/2 xl:overflow-auto xl:py-8",children:j?(0,l.jsx)(ef,{}):(0,l.jsxs)(l.Fragment,{children:[(X||a)&&(0,l.jsxs)("div",{className:"mb-5 flex items-center justify-between xl:mb-4",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[X&&(0,l.jsx)(g.Tag,{className:"flex h-6 items-center justify-center",name:Y,size:"small",variant:(0,E.normalizeTagVariant)(K)}),a&&(0,l.jsx)("div",{className:"prose-eyebrow-medium-sm text-color-brand-text-primary xl:prose-eyebrow-medium-md",children:a})]}),a&&(0,l.jsx)(W.BazaarvoiceReviews,{productId:a,show:G.BazaarvoiceReviewsShow.INLINE_RATING,title:(null==C?void 0:C.quickView.reviewsTitle)||"Reviews"})]}),J&&(0,l.jsxs)("div",{className:"mb-8 flex flex-col gap-3 xl:mb-6 xl:gap-4",children:[(0,l.jsx)("h2",{className:"prose-brand-xs text-color-brand-text-primary",children:(0,O.renderWithSuperscript)(J)}),n&&c&&(0,l.jsx)("span",{className:"prose-body-medium-sm text-color-brand-text-secondary",children:c})]}),p&&(null==(r=null==p?void 0:p.items)?void 0:r.length)>0&&(0,l.jsx)(U.AccordionList,{...p,className:"!px-0",classNameContent:"!prose-body-medium-sm prose-li:!mb-3",classNameItem:"first:xl:!border-t-0",defaultValue:[p.items[0].value],onExpand:({itemTitle:e})=>{J&&(null==P||P({productName:J,drawerTitle:e}))},triggerClassName:"!pt-4 data-[state=closed]:!pb-4 data-[state=open]:!pb-3 !prose-label-semibold-md",type:"multiple"})]})})]}),(0,l.jsx)("div",{className:"mt-auto border-t border-color-utility-border-secondary px-4 py-5 sm:px-6",children:j?(0,l.jsx)(eb,{}):(0,l.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row xl:gap-3",children:[(0,l.jsx)(en,{hashes:B,layout:"legacy",onConversion:T,onCtaClick:z,onDelayedClose:k,productName:J,psInteractionRef:V,sku:a,whereToBuyFallbackLabel:(null==C?void 0:C.quickView.whereToBuy)||(null==(i=null==C?void 0:C.wtb)?void 0:i.whereToBuy)||"Where to Buy",wtbTextCopies:null==C?void 0:C.wtb}),(0,l.jsx)(h.Button,{className:"w-full",link:m,onClick:()=>{J&&N&&(null==z||z({title:J,ctaText:N}))},size:"small",variant:"outline",children:N})]})})]})})]})})}],60042)}]);

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.