PageSourceSearch

https://hevy.com/_next/static/chunks/pages/profile-94c9cc7629359107.js

js hevy.com collected 2026-10-03 22:05:31 UTC 24,573 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[277],{1139:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile",function(){return n(91382)}])},91382:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return eR},default:function(){return eH}});var r=n(35250),s=n(70079),i=n(4991),o=n.n(i),a=n(4337),l=n(27284),c=n(65045),h=n(50279),u=n.n(h),d=n(13929),m=n(3289),f=n(96237),g=n(27666),p=n(28055),x=n(68153),w=n.n(x),y=n(22909),k=n(11825),M=n(91154),j=n(97522),C=n(32200),v=n(92890),D=n(14282),b=n(42771);let F=e=>{var t,n,r,s;let{month:i,year:o,isMarked:a,firstWeekday:l,workoutDates:c}=e,h="".concat(o,"-").concat(i,"-01T23:00:00.000Z"),u=w()(h).startOf("month"),d=[],m=[];for(let e=0;e<7;e++){let n=(e+D.W[l])%7;u.day()!==n?m.push({type:"other-month",date:u.subtract(u.day()-n,"day").date()}):(m.push({type:"this-month",date:u.date(),isMarked:a(u),day:u,workouts:(null===(t=c[u.format("YYYY-MM-DD")])||void 0===t?void 0:t.workouts)||[]}),u=u.add(1,"day"))}d.push(m);for(let e=1;e<4;e++){d.push([]);for(let t=0;t<7;t++)d[e].push({type:"this-month",date:u.date(),isMarked:a(u),day:u,workouts:(null===(n=c[u.format("YYYY-MM-DD")])||void 0===n?void 0:n.workouts)||[]}),u=u.add(1,"day")}let f=[];for(let e=0;e<7;e++)u.format("MM")!==i?f.push({type:"other-month",date:u.date()}):f.push({type:"this-month",date:u.date(),isMarked:a(u),day:u,workouts:(null===(r=c[u.format("YYYY-MM-DD")])||void 0===r?void 0:r.workouts)||[]}),u=u.add(1,"day");d.push(f);let g=[];for(let e=0;e<7;e++)u.format("MM")!==i?g.push({type:"other-month",date:u.date()}):g.push({type:"this-month",date:u.date(),isMarked:a(u),day:u,workouts:(null===(s=c[u.format("YYYY-MM-DD")])||void 0===s?void 0:s.workouts)||[]}),u=u.add(1,"day");return"this-month"===g[0].type&&d.push(g),d},_=e=>{var t,n,r,s,i,o,a;let l={monday:(0,b.o0)(w()("2026-02-02").toDate(),{weekday:"narrow"}),tuesday:(0,b.o0)(w()("2026-02-03").toDate(),{weekday:"narrow"}),wednesday:(0,b.o0)(w()("2026-02-04").toDate(),{weekday:"narrow"}),thursday:(0,b.o0)(w()("2026-02-05").toDate(),{weekday:"narrow"}),friday:(0,b.o0)(w()("2026-02-06").toDate(),{weekday:"narrow"}),saturday:(0,b.o0)(w()("2026-02-07").toDate(),{weekday:"narrow"}),sunday:(0,b.o0)(w()("2026-02-08").toDate(),{weekday:"narrow"})},c=D.W[e],h=(c+6)%7,u=[...v.Iw2.slice(h),...v.Iw2.slice(0,h)].map(e=>l[e]);return[null!==(t=u[0])&&void 0!==t?t:"",null!==(n=u[1])&&void 0!==n?n:"",null!==(r=u[2])&&void 0!==r?r:"",null!==(s=u[3])&&void 0!==s?s:"",null!==(i=u[4])&&void 0!==i?i:"",null!==(o=u[5])&&void 0!==o?o:"",null!==(a=u[6])&&void 0!==a?a:""]};var W=n(74578),T=n(66199),P=n(9503),B=n(60744);function Y(){let e=(0,a._)(["\n  width: 150px;\n"]);return Y=function(){return e},e}let I=c.ZP.div.withConfig({componentId:"sc-243ae498-0"})(Y()),G=[{label:(0,B.t)("web.profile.timeFrame.last12Weeks"),value:"last-12-weeks"},{label:(0,B.t)("web.profile.timeFrame.year"),value:"year"},{label:(0,B.t)("web.profile.timeFrame.allTime"),value:"all-time"}],L=e=>"string"==typeof(null==e?void 0:e.label)&&["last-12-weeks","year","all-time"].includes(null==e?void 0:e.value),E=(0,l.Pi)(e=>(0,r.jsx)(I,{children:(0,r.jsx)(P.Ph,{options:G.map(e=>({value:e.value,label:e.label})),value:e.value,onChange:t=>L(t)&&e.onChange(t)})}));var S=n(96520);let U={duration:(0,B.t)("web.profile.stats.duration"),reps:(0,B.t)("web.profile.stats.reps")};var Z=n(14714),K=n(12805),A=n(21735),O=n(77343),R=n(84548),H=n(80787),N=n(19026),X=n(37610),V=n(3552);function z(){let e=(0,a._)(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  min-height: 300px;\n"]);return z=function(){return e},e}let q=(0,c.ZP)(N.Z).withConfig({componentId:"sc-8d3c0799-0"})(z()),J=()=>(0,r.jsx)(q,{children:(0,r.jsx)(V.u,{icon:"dumbbell",title:(0,B.t)("web.profile.noContentCell.title"),description:(0,B.t)("web.profile.noContentCell.desc")})});var Q=n(28709),$=n(18874),ee=n(37279),et=n(25232),en=n(82927),er=n(88717),es=n(98007),ei=n(3538),eo=n(98002);function ea(){let e=(0,a._)(["\n  padding: ","px;\n  padding-top: 0;\n"]);return ea=function(){return e},e}function el(){let e=(0,a._)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  background: transparent;\n  border: none;\n  text-decoration: none;\n  cursor: pointer;\n  outline: none;\n"]);return el=function(){return e},e}function ec(){let e=(0,a._)(["\n  width: ","px;\n  height: ","px;\n  border-radius: ","px;\n  background-color: ",";\n  background-color: ",";\n  cursor: pointer;\n"]);return ec=function(){return e},e}function eh(){let e=(0,a._)(["\n  display: inline-block;\n  position: relative;\n"]);return eh=function(){return e},e}function eu(){let e=(0,a._)(["\n  position: absolute;\n  left: 50%;\n  bottom: ","px;\n  transform: translateX(-50%);\n  z-index: ",";\n  display: flex;\n  flex-direction: column;\n  min-width: 200px;\n"]);return eu=function(){return e},e}let ed=$.K.lg,em=2*$.R.xl,ef=(0,c.ZP)(X.G).withConfig({componentId:"sc-f184e4c9-0"})(ea(),ed),eg=c.ZP.button.withConfig({componentId:"sc-f184e4c9-1"})(el()),ep=(0,c.ZP)(X.G).withConfig({componentId:"sc-f184e4c9-2"})(ec(),em,em,em/2,R.O.primary,e=>e.hovering?R.O.primary600:R.O.primary),ex=(0,c.ZP)(X.G).withConfig({componentId:"sc-f184e4c9-3"})(eh()),ew=c.ZP.div.withConfig({componentId:"sc-f184e4c9-4"})(eu(),em,ei.W5.aboveSurface),ey=e=>
1{let[t,n]=(0,s.useState)(!1),i=()=>n(!0),o=()=>n(!1);return(0,r.jsxs)(ex,{onMouseEnter:i,onMouseLeave:o,children:[t&&(0,r.jsxs)(ew,{onClick:e=>e.stopPropagation(),onMouseEnter:i,onMouseLeave:o,children:[(0,r.jsx)(X.G,{style:{backgroundColor:"light"===m.XG.current.name?R.O.greyHiperLight:R.O.greyUltraDark,borderRadius:$.R.md},children:(0,r.jsx)(X.G,{style:{padding:$.K.md,paddingBottom:$.K.xs},children:e.workouts.map(e=>{let t="".concat((0,eo.wE)(e.duration)," ∙ ").concat(e.startDate);return(0,r.jsxs)("div",{style:{textAlign:"center"},children:[(0,r.jsx)(K.P2,{style:{marginBottom:$.K.xs},children:e.title}),(0,r.jsx)(K.P4,{type:"secondary",style:{marginBottom:$.K.xs},children:t}),(0,r.jsx)(et.x,{}),(0,r.jsx)(en.Tp,{href:"/workout/".concat(e.id),style:{padding:$.K.sm},children:(0,B.t)("web.profile.calendar.seeWorkout")})]},e.id)})})}),(0,r.jsx)(X.G,{style:{height:$.K.xs,backgroundColor:"transparent"}})]}),e.children]})},ek=e=>{let{day:t}=e,[n,i]=(0,s.useState)(!1);return(0,r.jsx)("div",{onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:(0,r.jsx)(ey,{workouts:t.workouts,children:(0,r.jsx)(ep,{style:{justifyContent:"center"},hovering:n,children:(0,r.jsx)(K.P2,{style:{color:eM(t),textAlign:"center"},children:t.date})})})})},eM=e=>{if("other-month"===e.type)return"light"===m.XG.current.name?R.O.greyMedium:R.O.grey;if(e.isMarked)return R.O.white;let t=w()().format("DD-MM-YYYY")===e.day.format("DD-MM-YYYY");return t?R.O.primary:"light"===m.XG.current.name?R.O.blackLight:R.O.greyLight},ej=e=>{let{month:t,isLoading:n,isLastMonth:s,onSelectPreviousMonth:i,onSelectNextMonth:o}=e;return(0,r.jsxs)(ef,{children:[(0,r.jsxs)(X.G,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},children:[(0,r.jsx)(eg,{children:(0,r.jsx)(er.B,{type:"chevron-left",tint:m.XG.current.primary,containerStyle:{height:2*$.R.xl,width:2*$.R.xl,borderRadius:$.R.xl,cursor:"pointer"},onClick:i})}),(0,r.jsx)(K.P2,{children:t.title}),(0,r.jsx)(eg,{children:(0,r.jsx)(er.B,{type:"chevron-right",tint:s?R.O.grey:m.XG.current.primary,containerStyle:{height:2*$.R.xl,width:2*$.R.xl,borderRadius:$.R.xl,cursor:s?"default":"pointer"},onClick:o})})]}),(0,r.jsx)(X.G,{style:{flexDirection:"row",marginTop:$.K.md,justifyContent:"space-around"},children:_(k.stores.userPreferences.firstWeekday).map((e,t)=>(0,r.jsx)(K.P2,{style:{width:2*$.R.xl,textAlign:"center"},children:e},t))}),(0,r.jsx)(et.x,{style:{marginBottom:$.K.xs}}),n?(0,r.jsx)(X.G,{style:{justifyContent:"center",alignItems:"center",height:192},children:(0,r.jsx)(es.Z,{size:$.K.lg,color:R.O.primary,loading:!0})}):(0,r.jsx)(X.G,{style:{justifyContent:"space-around",gap:$.K.sm},children:t.days.map((e,t)=>(0,r.jsx)(X.G,{style:{flexDirection:"row",justifyContent:"space-around"},children:e.map((e,n)=>(0,r.jsx)(X.G,{style:{width:em,height:em,alignItems:"center",justifyContent:"center"},children:(0,r.jsx)(X.G,{style:{width:em,height:em,alignItems:"center",justifyContent:"center",cursor:"default"},children:"this-month"===e.type&&e.isMarked?(0,r.jsx)(ek,{day:e}):(0,r.jsx)(K.P2,{style:{color:eM(e),textAlign:"center"},children:e.date})})},"".concat(t,":").concat(n)))},"".concat(t)))})]})};var eC=n(23118);function ev(){let e=(0,a._)(["\n  @media (min-width: ","px) {\n    width: 100vw;\n    height: 100vh;\n  }\n  overflow-y: scroll;\n"]);return ev=function(){return e},e}function eD(){let e=(0,a._)(["\n  max-width: 1024px;\n  margin: 0 auto;\n  padding: ","px;\n  min-height: 90vh;\n"]);return eD=function(){return e},e}function eb(){let e=(0,a._)(["\n  display: grid;\n  max-width: 1024px;\n  justify-content: center;\n  grid-template-columns: 5fr 3fr;\n  gap: ","px;\n  @media (max-width: 1024px) {\n    grid-template-columns: 1fr;\n  }\n  margin-top: ","px;\n"]);return eb=function(){return e},e}function eF(){let e=(0,a._)([""]);return eF=function(){return e},e}function e_(){let e=(0,a._)(["\n  @media (max-width: 1024px) {\n    display: none;\n  }\n"]);return e_=function(){return e},e}function eW(){let e=(0,a._)(["\n  margin: ","px ","px 0px ","px;\n  justify-content: flex-end;\n"]);return eW=function(){return e},e}function eT(){let e=(0,a._)(["\n  @media (min-width: 1024px) {\n    display: none;\n  }\n  margin-bottom: ","px;\n"]);return eT=function(){return e},e}function eP(){let e=(0,a._)(["\n  display: flex;\n  justify-content: center;\n  padding: ","px;\n"]);return eP=function(){return e},e}let eB=c.ZP.div.withConfig({componentId:"sc-a12e57ce-0"})(ev(),m.Mn),eY=c.ZP.div.withConfig({componentId:"sc-a12e57ce-1"})(eD(),$.K.md),eI=c.ZP.div.withConfig({componentId:"sc-a12e57ce-2"})(eb(),$.K.lg,$.K.lg),eG=(0,c.ZP)(X.G).withConfig({componentId:"sc-a12e57ce-3"})(eF()),eL=(0,c.ZP)(X.G).withConfig({componentId:"sc-a12e57ce-4"})(e_()),eE=(0,c.ZP)(eC.g).withConfig({componentId:"sc-a12e57ce-5"})(eW(),$.K.md,$.K.lg,$.K.lg),eS=(0,c.ZP)(X.G).withConfig({componentId:"sc-a12e57ce-6"})(eT(),$.K.lg),eU=c.ZP.div.withConfig({componentId:"sc-a12e57ce-7"})(eP(),$.K.md),eZ=new class{get username(){return k.stores.account.username}get fullname(){return k.stores.account.full_name||k.stores.account.username}get profileImage(){return k.stores.account.profile_pic}get link(){return k.stores.account.website_link}get workoutCount(){return"".concat(k.stores.workouts.workoutCount)}get followerCount(){return"".concat(k.stores.followCounts.follower_count)}get followingCount(){return"".concat(k.stores.followCounts.following_count)}
1get description(){return k.stores.account.description}get userWeightUnit(){return k.stores.userPreferences.weightUnit}get tabs(){return Object.keys(U).map(e=>({id:e,title:U[e]}))}get unit(){switch(this.selectedMetricType){case"duration":return"hr";case"reps":return"reps"}}get lastGraphValue(){let e=this.graphData[this.graphData.length-1];return e?e.value:0}get afterUnixDateForSelectedTimeFrame(){switch(this.selectedTimeFrame.value){case"last-12-weeks":return w()().startOf("week").add(D.W[k.stores.userPreferences.firstWeekday],"day").subtract(12,"week").unix();case"year":return w()().startOf("month").subtract(1,"year").unix();case"all-time":return 1}}get selectedMetricData(){return this.metricData["".concat(this.selectedMetricType,"-").concat(this.selectedTimeFrame.value)]||[]}get graphData(){switch(this.selectedTimeFrame.value){case"last-12-weeks":return(0,W.dA)(this.selectedMetricData);case"year":return(0,W.Sl)(this.selectedMetricData);case"all-time":return(0,W.OB)(this.selectedMetricData)}}get graphSubtitle(){switch(this.selectedTimeFrame.value){case"last-12-weeks":return(0,B.t)("web.profile.graphSubtitle.week");case"year":return(0,B.t)("web.profile.graphSubtitle.year");case"all-time":return(0,B.t)("web.profile.graphSubtitle.allTime")}}get currentCalendarMonth(){return this.currentCalendarMonthDate.month()+1}get currentCalendarYear(){return this.currentCalendarMonthDate.year()}get selectedMonthWorkouts(){return this.calendarWorkouts["".concat(this.currentCalendarYear,"-").concat(this.currentCalendarMonth)]||[]}get isLastMonth(){return this.currentCalendarMonth===w()().month()+1&&this.currentCalendarYear===w()().year()}get selectedMonth(){let e=(0,W.Vp)({workouts:this.selectedMonthWorkouts}),t=this.currentCalendarMonthDate.format("MM"),n=this.currentCalendarMonthDate.format("YYYY");return{title:(0,b.o0)(this.currentCalendarMonthDate.toDate(),{month:"long",year:"numeric"}),days:F({workoutDates:e,month:t,year:n,isMarked:t=>!!e[t.format("YYYY-MM-DD")],firstWeekday:k.stores.userPreferences.firstWeekday})}}get cells(){if(this.isInitialFetch)return[{type:"loading-cell",key:"1"},{type:"loading-cell",key:"2"}];let e=k.stores.workouts.getUserWorkouts(k.stores.account.username);return 0===e.length?[{type:"no-content"}]:e.map(e=>({type:"workout-cell",vm:new p.u(e)}))}constructor(){(0,f._)(this,"isInitialFetch",!0),(0,f._)(this,"isFetchingMore",!1),(0,f._)(this,"hasFetchedAllUserWorkouts",!1),(0,f._)(this,"selectedMetricType","duration"),(0,f._)(this,"calendarWorkouts",{}),(0,f._)(this,"selectedTimeFrame",{label:(0,B.t)("web.profile.timeFrame.last12Weeks"),value:"last-12-weeks"}),(0,f._)(this,"metricData",{}),(0,f._)(this,"isFetchingMetricData",!1),(0,f._)(this,"isFetchingCalendarData",!1),(0,f._)(this,"currentCalendarMonthDate",w()().startOf("month")),(0,f._)(this,"workoutImages",[]),(0,f._)(this,"isFirstMount",!0),(0,f._)(this,"onMounted",async()=>{this.isFirstMount&&(this.isFirstMount=!1,this.refreshContent(),(0,C.Y)({promises:()=>[this.refreshContent()],minimumElapsedMins:20}))}),(0,f._)(this,"onStatisticTabSelected",e=>{this.selectedMetricType=e,this.fetchUserWorkoutMetrics()}),(0,f._)(this,"onSelectedTimeFrame",e=>{if(L(e)){if("last-12-weeks"!==e.value&&!k.stores.subscription.isPro){g.o.paywall({type:"history-limit",onCancel:()=>null});return}this.selectedTimeFrame=e,this.fetchUserWorkoutMetrics()}}),(0,f._)(this,"onCalendarPreviousMonthClick",()=>{if(this.isFetchingCalendarData)return;this.currentCalendarMonthDate=this.currentCalendarMonthDate.subtract(1,"month");let e=this.calendarWorkouts["".concat(this.currentCalendarYear,"-").concat(this.currentCalendarMonth)];e||this.fetchUserCalendarWorkouts()}),(0,f._)(this,"onCalendarNextMonthClick",()=>{this.isFetchingCalendarData||this.currentCalendarMonth===w()().month()+1&&this.currentCalendarYear===w()().year()||(this.currentCalendarMonthDate=this.currentCalendarMonthDate.add(1,"month"))}),(0,f._)(this,"fetchUserWorkoutMetrics",async()=>{let e=this.metricData["".concat(this.selectedMetricType,"-").concat(this.selectedTimeFrame.value)];if(!e){this.isFetchingMetricData=!0;try{let e;if("all-time"===this.selectedTimeFrame.value&&"reps"===this.selectedMetricType){this.metricData["".concat(this.selectedMetricType,"-").concat(this.selectedTimeFrame.value)]=[];let t=w()(),n=w()("2018-07-31T12:53:33.333Z");for(;t.isAfter(w()(n));)e=await T.Z.getUserWorkoutMetrics(this.selectedMetricType,t.startOf("month").subtract(1,"year").unix(),t.unix()),this.metricData["".concat(this.selectedMetricType,"-").concat(this.selectedTimeFrame.value)].unshift(...e.data),t=t.subtract(1,"year")}else e=await T.Z.getUserWorkoutMetrics(this.selectedMetricType,this.afterUnixDateForSelectedTimeFrame,w()().unix()),this.metricData["".concat(this.selectedMetricType,"-").concat(this.selectedTimeFrame.value)]=e.data}catch(e){S.ZP.error((0,B.t)("web.profile.failedToFetchWorkoutMetrics"))}finally{this.isFetchingMetricData=!1}}}),(0,f._)(this,"fetchUserCalendarWorkouts",async()=>{this.isFetchingCalendarData=!0;try{let e=await T.Z.getUserCalendarWorkouts(this.currentCalendarMonth,this.currentCalendarYear),t=e.data;this.calendarWorkouts["".concat(this.currentCalendarYear,"-").concat(this.currentCalendarMonth)]=t}catch(e){throw e}finally{this.isFetchingCalendarData=!1}}),(0,f._)(this,"fetchUserWorkoutImages",async()=>{let e=await T.Z.getUserWorkoutImages(this.username,5);this.workoutImages=e.data}),(0,f._)(this,"handleScroll",e=>{if(0===k.stores.workouts.getUserWorkouts(k.stores.account.username).length)return;let t=e.currentTarget.scrollTop+e.currentTarget.offsetHeight,n=e.currentTarget.scrollHeight;t>n-1e3&&this.fetchMore()}),(0,f._)(this,"handleFollowingsClick",async()=>{g.o.showUserListModal({mode:"following",username:this.username})}),(0,f._)(this,"handleFollowerClick",async()=>{g.o.showUserListModal({mode:"followers",username:this.username})}),(0,f._)(this,"refreshContent",async()=>{(0,j.c)("\uD83D\uDD14 Fetching profile content");try{await (0,M.Y)([k.stores.followingStatus.fetch(),k.stores.workouts.fetchWorkoutCount(),k.stores.followCounts.fetch(),k.stores.workouts.refreshUserWorkouts(this.username),this.fetchUserWorkoutImages(),this.fetchUserWorkoutMetrics(),this.fetchUserCalendarWorkouts()])}catch(e){(0,j.c)("\uD83D\uDD14 Failed to fetch profile content",e)}finally{this.isInitialFetch=!1}}),(0,f._)(this,"fetchMore",async()=>
1{if(this.isFetchingMore||this.hasFetchedAllUserWorkouts)return;(0,j.c)("\uD83D\uDEFB Fetching more workouts");let e=k.stores.workouts.getUserWorkouts(k.stores.account.username).length;this.isFetchingMore=!0;try{await k.stores.workouts.fetchMoreUserWorkouts(k.stores.account.username),e===k.stores.workouts.getUserWorkouts(k.stores.account.username).length&&(this.hasFetchedAllUserWorkouts=!0)}catch(e){}finally{this.isFetchingMore=!1}}),(0,y.ky)(this)}},eK=()=>{let e=(0,s.useRef)(null),t=(0,Q.Z)(e);return(0,s.useEffect)(()=>{t&&eZ.fetchMore()},[t]),(0,s.useEffect)(()=>{eZ.onMounted()},[]),(0,r.jsx)(eA,{vm:eZ,bottomOfWorkoutsRef:e})},eA=(0,l.Pi)(e=>{let{vm:t,bottomOfWorkoutsRef:n}=e;return(0,r.jsx)(c.f6,{theme:m.XG.current,children:(0,r.jsx)(eB,{onScroll:t.handleScroll,children:(0,r.jsx)(d.X,{children:(0,r.jsxs)(eY,{children:[(0,r.jsx)(Z.g,{username:t.username,fullname:t.fullname,profilePic:t.profileImage,link:t.link,imageUrls:t.workoutImages,workoutCount:t.workoutCount,followerCount:t.followerCount,onFollowersPress:t.handleFollowerClick,followingCount:t.followingCount,onFollowingPress:t.handleFollowingsClick,description:t.description,showFollowButton:!1,isOwner:!0}),(0,r.jsxs)(eI,{children:[(0,r.jsxs)(eG,{children:[(0,r.jsxs)(N.Z,{style:{marginBottom:$.K.lg},children:[(0,r.jsx)(X.G,{style:{padding:$.K.lg}
1,children:(0,r.jsx)(K.H5,{children:(0,B.t)("profile.dashboard.statistics")})}),(0,r.jsxs)(X.G,{children:[(0,r.jsx)(ee.m,{tabs:t.tabs,onTabClicked:e=>{t.onStatisticTabSelected(e)},selectedTabIdentifier:t.selectedMetricType}),(0,r.jsx)(et.x,{})]}),(0,r.jsxs)(eE,{children:[!t.isFetchingMetricData&&(0,r.jsxs)(eC.g,{style:{alignItems:"end",gap:$.K.sm,flex:1},children:[(0,r.jsx)(K.H2,{children:"hr"===t.unit?(0,eo.wE)(t.lastGraphValue):(0,b._1)(t.lastGraphValue,"reps",{maximumFractionDigits:0})}),(0,r.jsx)(K.P3,{style:{marginBottom:2.5},type:"secondary",children:t.graphSubtitle})]}),(0,r.jsx)(X.G,{style:{alignSelf:"flex-end"},children:(0,r.jsx)(E,{value:t.selectedTimeFrame,onChange:e=>(0,P.ie)(e)&&t.onSelectedTimeFrame(e)})})]}),(0,r.jsx)(X.G,{style:{height:180,paddingBottom:$.K.md},children:(0,r.jsx)(H.M,{data:t.graphData,unit:t.unit,isLoading:t.isFetchingMetricData,timeFrame:t.selectedTimeFrame.value})})]}),(0,r.jsx)(eS,{children:t.selectedMonth&&(0,r.jsxs)(N.Z,{children:[(0,r.jsx)(K.H5,{style:{padding:$.K.md},children:(0,B.t)("profile.dashboard.calendar")}
1),(0,r.jsx)(ej,{month:t.selectedMonth,isLoading:t.isFetchingCalendarData,onSelectNextMonth:t.onCalendarNextMonthClick,onSelectPreviousMonth:t.onCalendarPreviousMonthClick,isLastMonth:t.isLastMonth})]})}),t.cells.map(e=>{switch(e.type){case"workout-cell":return(0,r.jsx)(A.T,{vm:e.vm},e.vm.data.key);case"loading-cell":return(0,r.jsx)(O.L,{},e.key);case"no-content":return(0,r.jsx)(J,{},"no-content")}}),t.isFetchingMore&&(0,r.jsx)(eU,{children:(0,r.jsx)(u(),{size:30,color:R.O.primary,loading:!0})}),(0,r.jsx)("div",{ref:n,style:t.isFetchingMore||t.isInitialFetch?{display:"none"}:{}})]}),(0,r.jsx)(eL,{children:t.selectedMonth&&(0,r.jsxs)(N.Z,{children:[(0,r.jsx)(K.H5,{style:{padding:$.K.md},children:(0,B.t)("profile.dashboard.calendar")}),(0,r.jsx)(ej,{month:t.selectedMonth,isLoading:t.isFetchingCalendarData,onSelectNextMonth:t.onCalendarNextMonthClick,onSelectPreviousMonth:t.onCalendarPreviousMonthClick,isLastMonth:t.isLastMonth})]})})]})]})})})})});var eO=n(85989),eR=!0;function eH(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o(),{children:[(0,r.jsx)("title",{children:(0,B.t)("web.metadata.profile.title")}),(0,r.jsx)("meta",{name:"description",content:(0,B.t)("web.metadata.desc1")})]}),(0,r.jsx)(eO.s,{children:(0,r.jsx)(eK,{})})]})}},3552:function(e,t,n){"use strict";n.d(t,{u:function(){return w}});var r=n(4337),s=n(35250);n(70079);var i=n(65045),o=n(18874),a=n(3289);let l=e=>(0,s.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,s.jsx)("rect",{x:"8",y:"12",width:"8",height:"24",rx:"2",stroke:"#AEB3B7",strokeWidth:"2"}),(0,s.jsx)("rect",{x:"40",y:"36",width:"8",height:"24",rx:"2",transform:"rotate(-180 40 36)",stroke:"#AEB3B7",strokeWidth:"2"}),(0,s.jsx)("path",{d:"M8 18H4C2.89543 18 2 18.8954 2 20V28C2 29.1046 2.89543 30 4 30H8",stroke:"#AEB3B7",strokeWidth:"2"}),(0,s.jsx)("path",{d:"M40 30L44 30C45.1046 30 46 29.1046 46 28L46 20C46 18.8954 45.1046 18 44 18L40 18",stroke:"#AEB3B7",strokeWidth:"2"}),(0,s.jsx)("line",{x1:"16",y1:"24",x2:"32",y2:"24",stroke:"#AEB3B7",strokeWidth:"2"})]}),c=e=>(0,s.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,s.jsx)("path",{d:"M7.998 4h-1a3 3 0 00-3 3v11a3 3 0 003 3h10a3 3 0 003-3V7a3 3 0 00-3-3h-1",stroke:"#AEB3B7",strokeWidth:"2"}),(0,s.jsx)("path",{d:"M16.002 15h-8m8-4h-8",stroke:"#AEB3B7",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("rect",{x:8.002,y:2,width:8,height:4,rx:.5,stroke:"#AEB3B7",strokeWidth:"2"})]}),h=e=>(0,s.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,s.jsx)("rect",{x:"5",y:"24",width:"10",height:"18",rx:"2",stroke:"#AEB3B7",strokeWidth:"2"}),(0,s.jsx)("rect",{x:"19",y:"14",width:"10",height:"28",rx:"2",stroke:"#AEB3B7",strokeWidth:"2"}),(0,s.jsx)("rect",{x:"33",y:"6",width:"10",height:"36",rx:"2",stroke:"#AEB3B7",strokeWidth:"2"})]}),u=e=>(0,s.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,s.jsx)("path",{d:"M6.11596 27.1111C6.03934 26.418 6 25.7136 6 25C6 14.5066 14.5066 6 25 6C35.4934 6 44 14.5066 44 25C44 35.4934 35.4934 44 25 44C19.0313 44 13.7055 41.2478 10.2222 36.9433",stroke:"#AEB3B7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M24 16V26H34",stroke:"#AEB3B7",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M10 24L6.00119 28L2 24",stroke:"#AEB3B7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),d=e=>(0,s.jsx)(i.f6,{theme:a.XG.current,children:(0,s.jsx)(m,{...e})}),m=e=>{switch(e.type){case"dumbbell":return(0,s.jsx)(l,{style:{width:48,height:48}});case"routine":return(0,s.jsx)(c,{style:{width:48,height:48}});case"bar-chart":return(0,s.jsx)(h,{style:{width:48,height:48}});case"history":return(0,s.jsx)(u,{style:{width:48,height:48}})}};var f=n(12805),g=n(37610);function p(){let e=(0,r._)(["\n  align-items: center;\n  justify-content: center;\n  padding: ","px;\n"]);return p=function(){return e},e}let x=(0,i.ZP)(g.G).withConfig({componentId:"sc-405315b3-0"})(p(),o.K.md),w=e=>{let{icon:t,title:n,description:r}=e;return(0,s.jsxs)(x,{children:[(0,s.jsx)(d,{type:t}),n&&(0,s.jsx)(f.H5,{style:{textAlign:"center",marginTop:o.K.md},children:n}),r&&(0,s.jsx)(f.P2,{style:{textAlign:"center",marginTop:o.K.sm},type:"secondary",children:r})]})}},32200:function(e,t,n){"use strict";n.d(t,{Y:function(){return a}});var r=n(68153),s=n.n(r),i=n(91154),o=n(97522);let a=e=>{let{promises:t,minimumElapsedMins:n}=e,r=s()();window.addEventListener("focus",()=>{let e=s()().subtract(n,"minute"),a=r.unix()-e.unix();e.unix()>r.unix()?((0,o.c)("\uD83D\uDEF0 focus: Time expired. Running promises"),r=s()(),(0,i.Y)(t())):(0,o.c)("\uD83D\uDD70 focus: seconds until next fetch = ".concat(a))})}}},function(e){e.O(0,[4792,1661,850,9774,2888,179],function(){return e(e.s=1139)}),_N_E=e.O()}]);
2//# sourceMappingURL=profile-94c9cc7629359107.js.map

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.