PageSourceSearch

https://yes.fit/_next/static/chunks/pages/dashboard-new-1d7c919486f456cc.js

js yes.fit collected 2026-09-24 11:25:05 UTC 26,554 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5764],{15156:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard-new",function(){return n(59209)}])},55995:function(e,t,n){"use strict";n.d(t,{o:function(){return u}});var r=n(85893),a=n(41664),o=n(67294),i=n(20064);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(s){l=!0,a=s}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=function(e){var t=e.data,n=e.CustomContent,l=e.title,s=void 0===l?null:l,u=e.titleIconComponent,m=void 0===u?null:u,p=e.description,f=void 0===p?null:p,h=e.seeAllHref,g=e.hideArrows,x=void 0!==g&&g,y=e.customItemWidth,v=e.emptyComponent,b=void 0===v?null:v,j=d(function(){var e=(0,o.useRef)(),t=(0,o.useState)(0),n=t[0],r=t[1],a=(0,o.useState)(0),i=a[0],l=a[1];return[{ref:e,onMouseDown:function(t){var n=t.nativeEvent;r(n.clientX),l(e.current.scrollLeft)},onMouseMove:function(t){var r=t.nativeEvent;r.buttons>0&&(r.preventDefault(),e.current.scrollTo({left:i+n-r.clientX,behavior:"smooth"}))}},e]}(),1)[0];return(0,r.jsxs)("div",{className:"pl-2 md:pl-14",children:[(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[s&&(0,r.jsxs)("div",{className:"flex items-center mb-2",children:[m&&(0,r.jsxs)(r.Fragment,{children:[m(),(0,r.jsx)("div",{className:"mr-3"})]}),(0,r.jsx)("p",{className:"text-gray-800 font-medium text-xl md:text-3xl",children:s})]}),h&&(0,r.jsx)("div",{className:"mb-5 mr-5",children:(0,r.jsx)(a.default,{href:h,passHref:!0,children:(0,r.jsx)("a",{onClick:function(){return window.scrollTo(0,0)},className:"underline text-gray-600 font-normal text-lg md:text-xl ",children:"See All"})})})]}),(0,r.jsxs)("div",{className:"box-border grid grid-cols-1 relative ".concat(f?"gap-10":"gap-0"),children:[f&&(0,r.jsx)("div",{className:"lg:max-w-[850px]",children:(0,r.jsx)("p",{className:"font-normal text-lg leading-8 text-gray-800 pr-6 md:pr-6 lg:pr-0",children:f})}),b&&!t.length?b():(0,r.jsx)("ul",c({className:"lane list-none m-0 grid grid-flow-col ".concat(y||"auto-cols-card"," overflow-x-scroll pb-10 cursor-move relative"),style:{scrollSnapType:"x mandatory",scrollPadding:"0 1rem",WebkitOverflowScrolling:"touch",cursor:"grab"}},j,{children:n||(null===t||void 0===t?void 0:t.map((function(e,t){return(0,r.jsx)("li",{style:{scrollSnapAlign:"start"},children:(0,r.jsx)(i.Z,c({},e),e.cardType+t)},t)})))}),s),x?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"hidden md:flex absolute top-0 w-16 h-[88%]  opacity-0 hover:opacity-70 items-center justify-center z-50 transition-all cursor-pointer ".concat(f&&"md:left-[0px]"),onClick:function(){j.ref.current.scrollTo({left:j.ref.current.scrollLeft-240,behavior:"smooth"})},children:(0,r.jsx)("div",{className:"bg-black cursor-pointer rounded-full w-[52px] h-[52px] flex items-center justify-center",children:(0,r.jsx)("i",{"aria-hidden":!0,
1className:"far fa-angle-left text-[40px] leading-none p-0 text-white mr-[3px] mt-[3px]"})})}),(0,r.jsx)("div",{className:"hidden md:flex absolute right-0 top-0 w-16 h-[88%] opacity-0 hover:opacity-70 items-center justify-center z-50 transition-all cursor-pointer",onClick:function(){j.ref.current.scrollTo({left:j.ref.current.scrollLeft+240,behavior:"smooth"})},children:(0,r.jsx)("div",{className:"bg-black cursor-pointer rounded-full w-[52px] h-[52px] flex items-center justify-center",children:(0,r.jsx)("i",{"aria-hidden":!0,className:"far fa-angle-right text-[40px] leading-none p-0 text-white mr-[-3px] mt-[3px]"})})})]})]})]})}},58500:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});var r=n(85893),a=n(41664),o=(n(67294),n(3869)),i=function(e){var t=e.data;return(0,r.jsx)("ul",{className:"flex h-full flex-col mx-4 pb-6",children:t.map((function(e,t){return(0,r.jsx)(a.default,{href:"/dashboard",children:(0,r.jsxs)("li",{className:"flex relative flex-row items-center justify-between my-1 cursor-pointer drop-shadow-md rounded-xl py-2 px-2 border-gray-200 border-2 bg-white",children:[(0,r.jsx)("img",{src:e.imageURL,className:"min-w-[4rem] max-w-[4rem] h-16 flex-shrink rounded-xl object-cover"},"".concat(e.title," + ").concat(t)),(0,r.jsxs)("div",{className:"flex flex-col text-left pl-2 pr-4 flex-grow max-w-[190px]",children:[(0,r.jsx)("h1",{className:"text-sm font-medium leading-tight truncate",children:e.title}),e.subtitle&&(0,r.jsx)("p",{className:" ".concat(String(100===e.progress?"text-yf-green":"text-yf-purple")," text-xs truncate"),children:e.subt
1itle}),100===e.progress?(0,r.jsx)("p",{className:"text-gray-400 text-[10px]",children:"Completed ".concat(e.completedDate)}):e.startDate&&(0,r.jsx)("p",{className:"text-gray-400 text-[10px]",children:"Started ".concat(e.startDate)})]}),100===e.progress?(0,r.jsx)("div",{className:"absolute flex justify-center items-center top-15 left-2 w-16 h-16 bg-black bg-opacity-50 rounded-xl",children:(0,r.jsx)("div",{className:"flex justify-center items-center w-14",children:(0,r.jsx)("i",{className:"flex fak fa-yf-checked text-4xl md:text-2xl text-yf-green flex-shrink"})})}):0!==e.progress&&e.progress?(0,r.jsx)("div",{className:"absolute flex justify-center items-center top-15 left-2 w-16 h-16 bg-black bg-opacity-50 rounded-xl",children:(0,r.jsx)(o.u,{progress:e.progress,color:"primary",width:"w-10"})}):(0,r.jsx)(r.Fragment,{})]},t)},t)}))})};t.Z=i},3664:function(e,t,n){"use strict";n.d(t,{c:function(){return r}});var r=[{title:"See a list of popular fitness trackers that sync with our mobile app to log your workouts.",imageURL:"https://asset.yes.fit/homepage/Icon-Tracker.svg",cardBG:"https://asset.yes.fit/homepage/faq-bottom.png",cardURL:"https://help.yes.fit/hc/help-center/articles/1690470887-what-apps-and-devices-sync-with-yes-fit"},{title:"Learn more about us as a company and our mission to get people off the couch and change lives.",imageURL:"https://asset.yes.fit/homepage/Icon-FAQ.svg",cardBG:"https://asset.yes.fit/homepage/faq-bottom.png",cardURL:"https://help.yes.fit/hc/help-center/articles/1690486143-what-is-yes-fit"},{title:"Discover our VIP Membership program and the benefits of becoming a member today.",imageURL:"https://asset.yes.fit/homepage/Icon-VIP.svg",cardBG:"https://asset.yes.fit/homepage/faq-bottom.png",cardURL:"https://yes.fit/vip"},{title:"Find out more info on how our Virtual Races work and finding the right one for you.",imageURL:"https://asset.yes.fit/homepage/Icon-Race.svg",cardBG:"https://asset.yes.fit/homepage/faq-bottom.png",cardURL:"https://help.yes.fit/hc/help-center/articles/1690486143-what-is-yes-fit"},{title:"Learn how to sync your favorite fitness tracker with our mobile app to log your workouts.",imageURL:"https://asset.yes.fit/homepage/Icon-Tracker.svg",cardBG:"https://asset.yes.fit/homepage/faq-bottom.png",cardURL:"https://help.yes.fit/hc/help-center/articles/1690472196-how-do-i-know-if-i-have-properly-connected-my-tracker"},{title:"Can I count miles doing other activites towards my Race?",imageURL:"https://asset.yes.fit/homepage/Icon-FAQ.svg",cardBG:"https://asset.yes.fit/homepage/faq-bottom.png",cardURL:"https://help.yes.fit"},{title:"Visit our Frequently Asked Questions to learn even more about the full Yes.Fit experience.",imageURL:"https://asset.yes.fit/homepage/Icon-FAQ.svg",cardBG:"https://asset.yes.fit/homepage/faq-bottom.png",cardURL:"https://help.yes.fit"}]},8245:function(e,t,n){"use strict";n.d(t,{y:function(){return r},R:function(){return a}});var r=function(e,t){var n=(null===e||void 0===e?void 0:e.hasAccess)||(null===t||void 0===t?void 0:t.isAdmin),r=!(null===e||void 0===e?void 0:e.minimumPrice),a=void 0;return!!(null===e||void 0===e?void 0:e.challengeAthleteId)||(n?r&&!t&&(a="free"):a="membersOnly"),a},a=function(e,t){var n=(null===e||void 0===e?void 0:e.hasAccess)||(null===t||void 0===t?void 0:t.isAdmin),r=void 0;return!!(null===e||void 0===e?void 0:e.challengeAthleteId)||(n?t||(r="free"):r="membersOnly"),r}},45569:function(e,t,n){"use strict";function r(e){switch(e){case"Beginner":return 1;case"Intermediate":return 2;case"Advanced":return 3;default:return 1}}n.d(t,{i:function(){return r}})},42180:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r=function(e){return!0===e.isChallengeComplete?"You completed all ".concat(e.athleteDistance," of ").concat(e.totalDistance," ").concat(e.distanceUnit,"s"):!0===e.isEventExpired?"Completed ".concat(Math.floor(e.athleteDistance)," of ").concat(e.totalDistance," ").concat(e.distanceUnit,"s"):null===e.waiverAccepted?"Not Started":e.isPaused?"Paused":"".concat(e.milesLeft," ").concat(e.distanceUnit,"s left")}},59209:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return I},default:function(){return T}});var r=n(85893),a=n(19013),o=n(13882);var i=n(11510),l=n(25675),s=n(11163),c=n(67294),d=n(55995),u=n(48840),m=n(22881),p=n(58500),f=function(e){var t,n=e.title,a=e.titleColor,o=e.actionText,i=e.onActionClick,l=e.faicon,s=e.data,c=e.type,d=a&&"text-".concat(a);return(0,r.jsxs)(m.b,{cardType:"myStats",children:[(0,r.jsx)("div",{className:"flex",children:(0,r.jsxs)("div",{className:"flex flex-row flex-grow p-4",children:[(0,r.jsxs)("span",{className:"".concat(d," flex flex-grow font-medium items-center"),children:[(0,r.jsx)("i",{className:"".concat(l," ").concat(d," text-base mr-2")}),n]}),o&&(0,r.jsx)("span",{className:"flex flex-grow justify-end text-gray-400",onClick:i,children:o})]})}),!s.length&&(0,r.jsxs)("div",{className:"mt-4 flex items-center flex-col",children:[(0,r.jsx)("img",{width:"100px",src:(t=c,"races"===t?"/no-races.png":"challenges"===t?"/no-challenges.png":"exercises"===t?"/no-results.png":"store"===t?"/no-swag.png":"/no-results.png")}),(0,r.jsxs)("p",{className:"mt-2",children:["You have no ",c," to show"]})]}),(0,r.jsx)(p.a,{data:s})]})},h=function(e){var t=e.races,n=e.challenges,a=e.achievements,o=(0,s.useRouter)(),i=[{title:"My Races",titleColor:"yf-green",type:"races",faicon:"fak fa-yf-race",onActionClick:function(){return o.push("/completed/races")},data:t},{title:"My Challenges",titleColor:"yf-purple",type:"challenges",faicon:"fak fa-yf-challenge",onActionClick:function(){return o.push("/completed/challenges")},data:n},{title:"My Achievements",titleColor:"yf-salmon",faicon:"fak fa-achievement",type:"achievements",onActionClick:function(){return o.push("/completed/achievements")},data:a}];return(0,r.jsx)(r.Fragment,{children:i.map((function(e,t){return(0,r.jsx)("li",{style:{scrollSnapAlign:"start"},children:(0,r.jsx)(f,{title:e.title,type:e.type,titleColor:e.titleColor,faicon:e.faicon,onActionClick:e.onActionClick,data:e.data},"".concat(e.title,"-").concat(t))},t)}))})},g=n(3664),x=n(39964),y=n(26808),v=n(67446),b=n(2283),j=n(8245),w=n(45569),k=n(42180),N={startDates:"false",groups:"true",preferences:"true",feature30Day:"true",myStuffLanes:"[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]",profilePage:n(83454).env.NEXT_PUBLIC_FEATURE_PROFILE_PAGE},C=function(e,t){var n,r=!1,a=(null===t||void 0===t?void 0:t.stripeSubscriptionId)&&null!==(null===t||void 0===t?void 0:t.stripeSubscriptionId);if(null!==t&&null!==t&&(null===t||void 0===t?void 0:t.isAuthenticated)&&(null===t||void 0===t?void 0:t.email))if((null===(n=N[e])||void 0===n?void 0:n.indexOf(","))>=0){var o=N[e].split(",");!(r=o.indexOf(t.email.toLowerCase())>=0)&&t.isAdmin&&(r=o.indexOf("admin")>=0),r||!0!==a||(r=o.indexOf("cyf")>=0)}else r=N[e]===t.email||("true"===N[e]||t.isAdmin&&"admin"===N[e]||a&&"cyf"===N[e]);else r="true"===N[e];return r},R=n(41558),L=n(92077),A=n.n(L);function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var I=!0,T=function(e){var t,n,m,p,f,N,L,U=e.blogPosts,I=(0,y.aF)(),T=(0,x.k)(),S=(0,s.useRouter)(),P=(0,R.eP)(null===I||void 0===I?void 0:I.userName,{refetchOnMountOrArgChange:!0,refetchOnFocus:!0,skip:void 0===(null===I||void 0===I?void 0:I.userName)}),M=P.data,O=P.isLoading,F=(0,R.pn)(null===I||void 0===I?void 0:I.userName,{skip:void 0===(null===I||void 0===I?void 0:I.userName)}),_=F.data,E=F.isLoading,B=F.error,H=(0,R.AO)(null===I||void 0===I?void 0:I.userName,{skip:void 0===(null===I||void 0===I?void 0:I.userName)}),X=H.data,Z=H.isLoading,q=(0,R.CD)(null,{refetchOnMountOrArgChange:!0,refetchOnFocus:!0,skip:void 0===(null===I||void 0===I?void 0:I.userName)}),W=q.data,G=q.isLoading,V=!(null===I||void 0===I?void 0:I.dateCreated)||function(e,t){(0,o.Z)(2,arguments);var n=(0,a.Z)(e),r=(0,a.Z)(t);return n.getTime()<r.getTime()}(new Date("2021-12-28T16:45:56.815Z"),new Date(I.dateCreated));(0,c.useEffect)((function(){I||S.replace("/")}),[I]);var Y,z,Q,$,J,K=(null===X||void 0===X?void 0:X.earned.map((function(e){return{cardType:"race",imageURL:e.imageUrl?(0,b.F2)(e.imageUrl):(0,b.Xd)("/icons/no-race-bg.png"),title:e.title,subtitle:e.description,progress:e.createTS?100:0,completedDate:e.createTS?(0,i.Z)(new Date(e.createTS),"MMM dd, yyyy"):null}})))||[];return(0,r.jsx)(u.L,{cjPageType:"accountCenter",pageTitle:"Dashboard",initialLoggedInStatus:!1,children:null!==I?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"bg-yf-purple flex items-center justify-center w-full p-2",children:V?(0,r.jsxs)("p",{className:"text-white font-medium text-lg",children:["The best experience is on the mobile app."," ",(0,r.jsx)("a",{href:"https://yesfit.app.link/app-store",className:"underline",children:"Download it now"})]}):(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("p",{className:"text-white font-medium text-lg",children:["The best experience is on the mobile app."," ",(0,r.jsx)("a",{href:"https://yesfit.app.link/app-store",className:"underline",children:"Download it now"})," ","or"," ",(0,r.jsx)("a",{className:"underline cursor-pointer font-normal text-white text-lg",href:"/dashboard",children:"view the old Dashboard."})]})})}),(0,r.jsxs)("div",{className:"lg:py-10 lg:pr-0 pt-3 pb-3 pl-3 pr-0",children:[(0,r.jsxs)("h1",{className:"pl-2 md:pl-14 md:pt-5 xl:pt-2 text-2xl xl:text-5xl font-medium text-yf-green",children:["Hey there, ",null===T||void 0===T||null===(t=T.user)||void 0===t?void 0:t.firstName]}),(0,r.jsxs)("a",{href:"/u/".concat(I.userName),className:"pl-2 md:pl-14 mt
1-2 text-yf-green",children:["@",null===I||void 0===I?void 0:I.userName]}),O||G||Z?(0,r.jsx)("div",{className:"mt-6",children:(0,r.jsx)("div",{className:"flex justify-center items-center",children:(0,r.jsxs)("div",{className:"flex items-center justify-center h-screen relative",children:[(0,r.jsx)("div",{className:"animate-spin rounded-full h-40 w-40 border-b-4 border-yf-green absolute"}),(0,r.jsx)(l.default,{src:"/yf-logo-text.png",width:128,height:128,className:"absolute"})]})})}):(0,r.jsxs)(r.Fragment,{children:[I&&C("myStuffLanes",I)&&(0,r.jsx)("section",{className:"mt-5 mb-0",children:(0,r.jsx)(d.o,{customItemWidth:"auto-cols-[335px]",title:"My Progress",seeAllHref:"/profile",titleIconComponent:function(){return(0,r.jsx)("i",{"aria-hidden":!0,className:"fas fa-user text-gray-600 text-xl leading-none"})},CustomContent:(0,r.jsx)(h,{races:null===M||void 0===M?void 0:M.races.slice(0,4).map((function(e){return{cardType:"race",badgeType:(0,j.y)(e,I),imageURL:e.logo?(0,b.F2)(e.logo):(0,b.Xd)("/icons/no-race-bg.png"),title:e.name,completedDate:(0,i.Z)(new Date(e.challengeCompletedDate),"MMM dd, yyyy"),startDate:null===e.waiverAccepted?null:(0,i.Z)(new Date(e.startDateLocal),"MMM dd, yyyy"),progress:Math.round(e.percentComplete),subtitle:(0,k.l)(e),href:"/races/".concat(encodeURIComponent(e.challengeUrl))}})),challenges:null!==(Y=(null===M||void 0===M?void 0:M.challenges.map((function(e){return{cardType:"challenge",badgeType:(0,j.R)(e,I),duration:"".concat(e.totalDistance," ").concat(e.distanceUnit,"s"),imageURL:e.logo?(0,b.F2)(e.logo):(0,b.Xd)("/icons/no-challenge-bg.png"),progress:Math.round(e.percentComplete),startDate:null===e.startDateLocal?null:(0,i.Z)(new Date(e.startDateLocal),"MMM dd, yyyy"),completedDate:(0,i.Z)(new Date(e.challengeCompletedDate),"MMM dd, yyyy"),title:e.name,subtitle:e.challengeCompletedDate?"You completed this challenge.":"".concat(Math.floor(e.athleteDistance)," of ").concat(e.totalDistance," ").concat(e.distanceUnit.toLowerCase(),"s complete"),href:"/challenges/".concat(encodeURIComponent(e.challengeUrl)),trainers:[{intensity:(0,w.i)(e.skillLevelString),name:e.skillLevelString}]}}))).slice(0,4))&&void 0!==Y?Y:[],achievements:K.slice(0,4)})})}),E||B?null:(0,r.jsxs)("section",{className:"mt-0 mb-4",children:[(0,r.jsx)(d.o,{customItemWidth:"auto-cols-[265px]",seeAllHref:"/u/".concat(null===I||void 0===I?void 0:I.userName,"/fitness"),title:"@".concat(null===_||void 0===_||null===(n=_.user)||void 0===n?void 0:n.userName,"'s stats (as of\n\t\t\t\t\t\t\t\t\t\t").concat(new Date(null===_||void 0===_||null===(m=_.stats)||void 0===m?void 0:m.asOfDate).toLocaleDateString(),")"),data:null!==(z=null===_||void 0===_||null===(p=_.stats)||void 0===p||null===(f=p.tiles)||void 0===f?void 0:f.map((function(e){return{cardType:"myStatsCondensed",item:e,condensed:!0,imageURL:""}})))&&void 0!==z?z:[]}),!(null===_||void 0===_||null===(N=_.stats)||void 0===N||null===(L=N.tiles)||void 0===L?void 0:L.length)&&(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsx)("img",{src:"/no-stats.png",width:"100px"}),(0,r.jsx)("p",{className:"font-bold",children:"Not Collecting Data"}),(0,r.jsx)("p",{children:"It looks like we are not collecting data"})]})]}),(0,r.jsx)("section",{className:"mt-0 mb-4",children:(0,r.jsx)(d.o,{titleIconComponent:function(){return(0,r.jsx)("i",{"aria-hidden":!0,className:"fak fa-yf-race text-yf-green text-xl leading-none"})},seeAllHref:"/races",title:"Races",data:D(M.races.filter((function(e){return!e.isChallengeComplete})).map((function(e){return{cardType:"race",badgeType:(0,j.y)(e,I),imageURL:e.logo?(0,b.F2)(e.logo):(0,b.Xd)("/icons/no-race-bg.png"),title:e.name,progress:Math.round(e.percentComplete),subtitle:(0,k.l)(e),href:"/races/".concat(encodeURIComponent(e.challengeUrl))}}))).concat(D(W.races.filter((function(e){return null===e.challengeAthleteId})).map((function(e){var t;return{cardType:"race",badgeType:(0,j.y)(e,I),distance:e.isHowFarCanYouGo&&!e.isTimedChallenge?"How Far Can You Go?":"".concat(A()(e.totalDistance).format("0,0.[0]")," ").concat(e.distanceUnit,"s"),imageURL:e.logo?(0,b.F2)(e.logo):(0,b.Xd)("/icons/no-race-bg.png"),title:e.name,subtitle:(null===T||void 0===T||null===(t=T.data)||void 0===t?void 0:t.stripePlanId)?null:"Starting at $".concat(e.minimumPrice),href:"/races/".concat(encodeURIComponent(e.challengeUrl))}}))))})}),(0,r.jsx)("section",{className:"mb-10 pl-3 md:pl-0",children:(0,r.jsx)(d.o,{titleIconComponent:function(){return(0,r.jsx)("i",{"aria-hidden":!0,
1className:"fas fa-question-circle text-gray-600 text-3xl leading-none"})},seeAllHref:"/faq",title:"FAQ",description:"New to Yes.Fit? Check out some of our helpful links to get you started on your journey to a better you!",data:g.c.map((function(e){return{cardType:"faq",imageURL:e.imageURL,title:e.title,cardURL:e.cardURL}}))})}),(0,r.jsx)("section",{className:"mb-4",children:(0,r.jsx)(d.o,{seeAllHref:"/store",title:"Shop",titleIconComponent:function(){return(0,r.jsx)("i",{"aria-hidden":!0,style:{color:"rgb(255, 124, 109)"},className:"fas fa-shopping-cart text-xl leading-none"})},data:null!==(Q=null===W||void 0===W?void 0:W.merch.map((function(e){return{cardType:"merch",imageURL:e.logo?(0,b.F2)(e.logo):(0,b.Xd)("/icons/no-swag.png"),title:e.name,price:"$".concat(e.minimumPrice),href:"/store/".concat(encodeURIComponent(e.challengeUrl))}})))&&void 0!==Q?Q:[]})}),(0,r.jsx)("section",{className:"mb-4",children:(0,r.jsx)(d.o,{titleIconComponent:function(){return(0,r.jsx)("i",{"aria-hidden":!0,className:"fak fa-yf-challenge text-yf-purple text-xl leading-none"})},seeAllHref:"/challenges",title:"Fitness Challenges",data:null!==($=null===W||void 0===W?void 0:W.challenges.map((function(e){return{cardType:"challenge",badgeType:(0,j.R)(e,I),duration:"".concat(e.totalDistance," ").concat(e.distanceUnit,"s"),imageURL:e.logo?(0,b.F2)(e.logo):(0,b.Xd)("/icons/no-challenge-bg.png"),excerciseType:e.skillLevelString,title:e.name,href:"/challenges/".concat(encodeURIComponent(e.challengeUrl)),trainers:[{intensity:(0,w.i)(e.skillLevelString),name:e.skillLevelString}]}})))&&void 0!==$?$:[]})}),(0,r.jsx)("section",{className:"mb-4",children:(0,r.jsx)(d.o,{seeAllHref:"/blog",title:"Blog Posts",titleIconComponent:function(){return(0,r.jsx)("i",{"aria-hidden":!0,style:{color:"#49AB8F"},className:"fas fa-comment-edit text-xl leading-none"})},data:null!==(J=U.map((function(e){var t,n,r,a;return{cardType:"blog",imageURL:(0,v.uH)(e.mainImage).width(225).height(150).url(),title:e.title,href:"/blog/".concat(e.slug),publishedDate:(0,i.Z)(new Date(e.publishedAt),"MMM d"),author:{imageURL:(null===e||void 0===e||null===(t=e.author)||void 0===t?void 0:t.image)?(0,v.uH)(e.author.image).width(38).height(38).url():null},category:(null===e||void 0===e||null===(n=e.categories)||void 0===n?void 0:n.length)?{color:"#8C80F8",name:null===(r=e.categories[0])||void 0===r?void 0:r.title,href:"/blog/categories/".concat(null===(a=e.categories[0])||void 0===a?void 0:a.slug)}:null,previewText:e.plaintext}})))&&void 0!==J?J:[]})})]})]})]}):null})}},95774:function(e,t,n){"use strict";n.d(t,{Ip:function(){return s},y3:function(){return c}});var r=n(67294),a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e){var t=e.className,n=e.counterClockwise,a=e.dashRatio,o=e.pathRadius,s=e.strokeWidth,c=e.style;return(0,r.createElement)("path",{className:t,style:Object.assign({},c,l({pathRadius:o,dashRatio:a,counterClockwise:n})),d:i({pathRadius:o,counterClockwise:n}),strokeWidth:s,fillOpacity:0})}function i(e){var t=e.pathRadius,n=e.counterClockwise?1:0;return"\n      M 50,50\n      m 0,-"+t+"\n      a "+t+","+t+" "+n+" 1 1 0,"+2*t+"\n      a "+t+","+t+" "+n+" 1 1 0,-"+2*t+"\n    "}function l(e){var t=e.counterClockwise,n=e.dashRatio,r=e.pathRadius,a=2*Math.PI*r,o=(1-n)*a;return{strokeDasharray:a+"px "+a+"px",strokeDashoffset:(t?-o:o)+"px"}}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.getBackgroundPadding=function(){return this.props.background?this.props.backgroundPadding:0},t.prototype.getPathRadius=function(){return 50-this.props.strokeWidth/2-this.getBackgroundPadding()},t.prototype.getPathRatio=function(){var e=this.props,t=e.value,n=e.minValue,r=e.maxValue;return(Math.min(Math.max(t,n),r)-n)/(r-n)},t.prototype.render=function(){var e=this.props,t=e.circleRatio,n=e.className,a=e.classes,i=e.counterClockwise,l=e.styles,s=e.strokeWidth,c=e.text,d=this.getPathRadius(),u=this.getPathRatio();return(0,r.createElement)("svg",{className:a.root+" "+n,style:l.root,viewBox:"0 0 100 100","data-test-id":"CircularProgressbar"},this.props.background?(0,r.createElement)("circle",{className:a.background,style:l.background,cx:50,cy:50,r:50}):null,(0,r.createElement)(o,{className:a.trail,counterClockwise:i,dashRatio:t,pathRadius:d,strokeWidth:s,style:l.trail}),(0,r.createElement)(o,{className:a.path,counterClockwise:i,dashRatio:u*t,pathRadius:d,strokeWidth:s,style:l.path}),c?(0,r.createElement)("text",{className:a.text,style:l.text,x:50,y:50},c):null)},t.defaultProps={background:!1,backgroundPadding:0,circleRatio:1,classes:{root:"CircularProgressbar",trail:"CircularProgressbar-trail",path:"CircularProgressbar-path",text:"CircularProgressbar-text",background:"CircularProgressbar-background"},counterClockwise:!1,className:"",maxValue:100,minValue:0,strokeWidth:8,styles:{root:{},trail:{},path:{},text:{},background:{}},text:""},t}(r.Component);function c(e){var t=e.rotation,n=e.strokeLinecap,r=e.textColor,a=e.textSize,o=e.pathColor,i=e.pathTransition,l=e.pathTransitionDuration,s=e.trailColor,c=e.backgroundColor,u=null==t?void 0:"rotate("+t+"turn)",m=null==t?void 0:"center center";return{root:{},path:d({stroke:o,strokeLinecap:n,transform:u,transformOrigin:m,transition:i,transitionDuration:null==l?void 0:l+"s"}),trail:d({stroke:s,strokeLinecap:n,transform:u,transformOrigin:m}),text:d({fill:r,fontSize:a}
1),background:d({fill:c})}}function d(e){return Object.keys(e).forEach((function(t){null==e[t]&&delete e[t]})),e}}},function(e){e.O(0,[4885,1887,2004,1035,1510,1599,64,9774,2888,179],(function(){return t=15156,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.