1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="b48322e0-9d22-409f-8fae-da48838afccb",e._sentryDebugIdIdentifier="sentry-dbid-b48322e0-9d22-409f-8fae-da48838afccb")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7956],{23601:()=>{},78280:()=>{},97956:(e,s,l)=>{"use strict";l.r(s),l.d(s,{default:()=>x});var t=l(95155),r=l(12115),n=l(81895),a=l(30677),i=l(97080),c=l(44780),o=l(29045),d=l(31585);let u=(0,r.memo)(function(e){let{video:s,onEnded:l,onStarted:n}=e,a=(0,r.useRef)(null),i=(0,c.P)(s.src,s.srcMobile),u=(0,r.useCallback)(()=>{let e=a.current;if(e){e.pause();try{e.currentTime=0}catch(e){}}},[]),f=(0,r.useCallback)(()=>{let e=a.current;e&&!(e.readyState<2)&&(0,o.YA)(e,e=>{d.R.warn("Exercises video play failed",{error:e,src:i})})},[i]);(0,r.useEffect)(()=>()=>{u()},[u]);let x=(0,r.useCallback)(()=>{f()},[f]),b=(0,r.useCallback)(()=>{f()},[f]),h=(0,r.useCallback)(()=>{f()},[f]),p=(0,r.useCallback)(()=>{null==n||n()},[n]),v=(0,r.useCallback)(()=>{var e,s;let l=a.current;d.R.warn("Exercises video failed to load",{src:i,code:null==l||null==(e=l.error)?void 0:e.code,message:null==l||null==(s=l.error)?void 0:s.message}),null==n||n()},[n,i]);return i?(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 z-[1] overflow-hidden rounded-[8px]","data-sentry-component":"VideoPlayer","data-sentry-source-file":"VideoPlayer.tsx",children:(0,t.jsx)("video",{ref:a,"aria-hidden":!0,autoPlay:!0,muted:!0,playsInline:!0,preload:"auto",loop:!1,tabIndex:-1,src:i,onEnded:l,onLoadedMetadata:x,onLoadedData:h,onCanPlay:b,onPlaying:p,onError:v,className:"exercises-slide__video absolute inset-0 block h-full w-full rounded-[8px] object-cover object-center"})}):null},(e,s)=>e.video.src===s.video.src&&e.video.srcMobile===s.video.srcMobile&&e.onEnded===s.onEnded&&e.onStarted===s.onStarted);function f(e){let{title:s,options:l,activeValue:r,onValueChange:n}=e,a=e=>s=>{n(e),s.currentTarget.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})};return(0,t.jsxs)("div",{className:"exercises-filter","data-sentry-component":"FilterSection","data-sentry-source-file":"index.tsx",children:[(0,t.jsx)("p",{className:"exercises-filter__label",children:s}),(0,t.jsxs)("div",{role:"group","aria-label":s,className:"exercises-filter__row",children:[(0,t.jsx)("button",{type:"button",onClick:a("all"),"aria-pressed":"all"===r,className:"exercises-filter__button ".concat("all"===r?"exercises-filter__button--active":"exercises-filter__button--inactive"),children:"All"}),l.map((e,s)=>{let{label:l,value:n}=e;return(0,t.jsx)("button",{type:"button",onClick:a(n),"aria-pressed":r===n,className:"exercises-filter__button ".concat(r===n?"exercises-filter__button--active":"exercises-filter__button--inactive"),children:l},"".concat(n,"-").concat(s))})]})]})}function x(e){let{title:s,workoutTypes:l,muscleGroups:c,videos:o}=e,[d,x]=(0,r.useState)("all"),[b,h]=(0,r.useState)("all"),[p,v]=(0,r.useState)(0),[m,_]=(0,r.useState)(null),[g,y]=(0,r.useState)(!1),C=(0,r.useRef)(!1),k=(0,r.useRef)(!1),j=(0,r.useRef)(null),N=(0,r.useRef)(null),[w,E]=(0,r.useState)(!1),[S,I]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=N.current;if(!e||"undefined"==typeof IntersectionObserver)return void E(!0);let s=new IntersectionObserver(e=>{let[l]=e;(null==l?void 0:l.isIntersecting)&&(E(!0),s.disconnect())},{rootMargin:"600px"});return s.observe(e),()=>s.disconnect()},[]),(0,r.useEffect)(()=>{if(!w||S)return;let e=setTimeout(()=>I(!0),2500);return()=>clearTimeout(e)},[w,S]),(0,r.useEffect)(()=>{I(!1)},[p]);let M=(0,r.useCallback)(()=>{I(!0)},[]),T=(0,r.useMemo)(()=>o&&0!==o.length?o.filter(e=>{var s,l;return("all"===d||(null==(s=e.workoutTypes)?void 0:s.includes(d)))&&("all"===b||(null==(l=e.muscleGroups)?void 0:l.includes(b)))}):[],[o,d,b]),P=(0,r.useRef)(T.length);(0,r.useEffect)(()=>{P.current=T.length},[T.length]),(0,r.useEffect)(()=>{v(0)},[d,b]),(0,r.useEffect)(()=>{0!==T.length&&p>=T.length&&v(0)},[p,T.length]),(0,r.useEffect)(()=>{(null==m?void 0:m.activeIndex)!==p&&(null==m||m.slideTo(p))},[p,m]);let R=(0,r.useCallback)((e,s)=>{let l=(null==m?void 0:m.allowClick)!==!1;if(k.current||!l){s.preventDefault(),s.stopPropagation();return}C.current=!1,y(!1),v(s=>s===e?s:e)},[m]),V=(0,r.useCallback)(e=>{j.current={x:e.clientX,y:e.clientY}},[]),D=(0,r.useCallback)(e=>{let s=j.current;if(!s)return;let l=Math.abs(e.clientX-s.x),t=Math.abs(e.clientY-s.y);(l>8||t>8)&&(k.current=!0)},[]),z=(0,r.useCallback)(()=>{v(e=>{let s=e+1;return s>=P.current?e:s})},[]),F=(0,r.useCallback)(()=>{k.current=!1},[]),L=(0,r.useCallback)(()=>{k.current=!0,C.current||(C.current=!0,y(!0))},[]),A=(0,r.useCallback)(e=>{C.current=!1,y(!1),v(s=>s===e.activeIndex?s:e.activeIndex)},[]),O=(0,r.useCallback)(e=>{e.animating||A(e)},[A]);return(0,t.jsxs)("section",{ref:N,className:"exercises","aria-labelledby":"exercises-heading","data-sentry-component":"Exercises","data-sentry-source-file":"index.tsx",children:[(0,t.jsx)("h2",{id:"exercises-heading",className:"exercises__heading",children:function(e){let s=e.trim();if(!s)return null;let l=s.indexOf(" ");if(-1===l)return(0,t.jsx)("span",{className:"exercises__heading-highlight",children:s});let r=s.slice(0,l),n=s.slice(l);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"exercises__heading-highlight",children:r}),n]})}(null!=s?s:"600+ of your favorite moves")}),(0,t.jsxs)("div",{className:"exercises__filters",children:[(0,t.jsx)(f,{title:"Cho
1ose workout type",options:l,activeValue:d,onValueChange:x,"data-sentry-element":"FilterSection","data-sentry-source-file":"index.tsx"}),(0,t.jsx)(f,{title:"Choose muscle group",options:c,activeValue:b,onValueChange:h,"data-sentry-element":"FilterSection","data-sentry-source-file":"index.tsx"})]}),(0,t.jsx)(a.RC,{modules:[n.Ze],className:"exercises-swiper",slidesPerView:"auto",spaceBetween:15,breakpoints:{1024:{spaceBetween:20}},onSwiper:_,onTouchStart:F,onSliderMove:L,onTouchEnd:O,onTransitionEnd:A,onSlideChangeTransitionEnd:A,scrollbar:{el:".exercises-scrollbar",draggable:!0,hide:!1,dragClass:"exercises-scrollbar-drag",horizontalClass:"exercises-scrollbar-horizontal"},"data-sentry-element":"Swiper","data-sentry-source-file":"index.tsx",children:T.map((e,s)=>{let l=s===p,r=s>=p-12&&s<=p+8;return(0,t.jsxs)(a.qr,{className:"exercises-slide",children:[(0,t.jsxs)("button",{type:"button","aria-label":"Play exercise video ".concat(s+1),className:"exercises-slide__button",onPointerDown:V,onPointerMove:D,onClick:e=>R(s,e),children:[r?(0,t.jsx)(i.Ay,{src:e.video.src,srcMobile:e.video.srcMobile,videoClassName:"exercises-slide__poster",placeholderClassName:"bg-[#292b2a]",lazyLoad:!0,rootMargin:"200px 1600px",deferLoad:!S}):(0,t.jsx)("span",{className:"exercises-slide__poster-placeholder"}),l&&w&&!g&&(0,t.jsx)(u,{video:e.video,onEnded:z,onStarted:M})]}),(0,t.jsxs)("div",{className:"exercises-slide__caption",children:[(0,t.jsx)("h3",{className:"exercises-slide__title",children:e.title}),(0,t.jsx)("p",{className:"exercises-slide__description",children:e.description})]})]},e.id)})}),(0,t.jsx)("div",{className:"exercises-scrollbar-container",children:(0,t.jsx)("div",{className:"exercises-scrollbar-cover",children:(0,t.jsx)("div",{className:"exercises-scrollbar"})})})]})}l(33520),l(78280),l(23601)}}]);
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.