1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[10627],{28734:function(e){e.exports=function(){"use strict";return function(e,n,t){var r=n.prototype,o=r.format;t.en.ordinal=function(e){var n=["th","st","nd","rd"],t=e%100;return"["+e+(n[(t-20)%10]||n[t]||n[0])+"]"},r.format=function(e){var n=this,t=this.$locale();if(!this.isValid())return o.bind(this)(e);var r=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((n.$M+1)/3);case"Do":return t.ordinal(n.$D);case"gggg":return n.weekYear();case"GGGG":return n.isoWeekYear();case"wo":return t.ordinal(n.week(),"W");case"w":case"ww":return r.s(n.week(),"w"===e?1:2,"0");case"W":case"WW":return r.s(n.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return r.s(String(0===n.$H?24:n.$H),"k"===e?1:2,"0");case"X":return Math.floor(n.$d.getTime()/1e3);case"x":return n.$d.getTime();case"z":return"["+n.offsetName()+"]";case"zzz":return"["+n.offsetName("long")+"]";default:return e}}));return o.bind(this)(i)}}}()},81770:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/teams/[code]",function(){return t(39422)}])},39422:function(e,n,t){"use strict";t.r(n),t.d(n,{CallToActions:function(){return U},Container:function(){return B},Description:function(){return q},Wrapper:function(){return $},__N_SSP:function(){return F}});var r=t(47568),o=t(7297),i=t(20414),a=t(85893),l=t(27484),d=t.n(l),u=t(28734),s=t.n(u),c=t(5152),m=t.n(c),p=t(9008),v=t.n(p),f=t(41664),h=t.n(f),g=t(11163),y=t(67294),x=t(15313),j=t(87379),b=t(60558),w=t(52992),T=t(45141),_=t(87297),k=t(59186),A=t(74092),S=t(69979),L=t(60269),C=t(14378),G=t(63453),N=t(88283),O=t(35081);function E(){var e=(0,o.Z)(["\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n"]);return E=function(){return e},e}function I(){var e=(0,o.Z)(["\n padding: 0;\n margin-bottom: 0;\n "]);return I=function(){return e},e}function Z(){var e=(0,o.Z)(["\n display: flex;\n flex-direction: column;\n place-items: center;\n align-content: center;\n margin-top: 64px;\n padding: 0 var(--layout-gutter-mobile);\n margin-bottom: 50px;\n flex: 1;\n\n ","\n"]);return Z=function(){return e},e}function M(){var e=(0,o.Z)(["\n width: 357px;\n margin: 47px 0;\n "]);return M=function(){return e},e}function P(){var e=(0,o.Z)(["\n text-align: center;\n width: 75%;\n margin: 75px 0 47px;\n ","\n"]);return P=function(){return e},e}function R(){var e=(0,o.Z)(["\n margin-bottom: 40px;\n grid-template-columns: repeat(2, 1fr);\n "]);return R=function(){return e},e}function H(){var e=(0,o.Z)(["\n width: auto;\n "]);return H=function(){return e},e}function W(){var e=(0,o.Z)(["\n grid-template-columns: repeat(4, 1fr);\n "]);return W=function(){return e},e}function D(){var e=(0,o.Z)(["\n width: 100%;\n display: grid;\n grid-template-columns: 1fr;\n column-gap: 20px;\n row-gap: 20px;\n ","\n\n ","\n\n ","\n\n > * {\n margin: 0;\n }\n"]);return D=function(){return e},e}var z=m()((function(){return Promise.all([t.e(7314),t.e(26010)]).then(t.bind(t,7314))}),{loadableGenerated:{webpack:function(){return[7314]}}});l.extend(s());var F=!0,$=j.ZP.div.withConfig({componentId:"sc-6ddefdd2-0"})(E()),B=j.ZP.div.withConfig({componentId:"sc-6ddefdd2-1"})(Z(),O.c.md(I())),q=j.ZP.div.withConfig({componentId:"sc-6ddefdd2-2"})(P(),O.c.sm(M())),U=j.ZP.section.withConfig({componentId:"sc-6ddefdd2-3"})(D(),O.c.sm(R()),O.c.md(H()),O.c.size1024(W())),Y=function(e){var n,t,o,l,u,s=e.teamNotFound,c=void 0!==s&&s,m=e.team,p=(0,x.I0)(),f=(0,g.useRouter)(),j=f.query.code,G=(0,x.v9)(N.Z.getAuthenticating),O=(0,C.aC)(),E=O.isLoggedIn,I=O.currentUser,Z=null===m||void 0===m||null===(n=m.program)||void 0===n?void 0:n.name,M=d()(null===m||void 0===m?void 0:m.program.startedAt).year(),P=null===m||void 0===m||null===(t=m.program)||void 0===t?void 0:t.mobileBanner,R=(0,y.useState)(),H=R[0],W=R[1];(0,y.useEffect)((function(){G||E||f.push("/login"),!c&&I&&D()}),[I,G]),(0,y.useEffect)((function(){if(H){var e,n={id:H.id,info:H.info,teamSize:H.members.length,lastActivityAt:H.lastActivityAt,programStartedAt:null===(e=H.program)||void 0===e?void 0:e.startedAt};F(),p((0,w.AW)(n)),p((0,b.z)(S.H.TEAM)),f.replace("/my-fitness-journey")}}),[H]);var D=function(){var e=(0,r.Z)((function(){var e,n;return(0,i.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,T.Z.getTeamByCode(j,I.id)];case 1:return e=t.sent(),W(e),[3,3];case 2:return(n=t.sent())&&(null===n||void 0===n||n.statusCode,A.w.NOT_FOUND),[3,3];case 3:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}(),F=function(){var e=null;e=function(){var e;return!!(null===H||void 0===H?void 0:H.deletedAt)||(null===H||void 0===H||null===(e=H.members)||void 0===e?void 0:e.every((function(e){return!!e.disqualifiedAtTime})))}()?(0,a.jsx)("p",{children:"Sorry, this team has been removed."}):(null===H||void 0===H?void 0:H.prerequisites.isNotStartedChallenge)?(0,a.jsxs)("p",{children:["Sorry, you're unable to join this team as you are not on the"," ",(0,a.jsx)(h(),{href:"/program/".concat(null===H||void 0===H?void 0:H.program.slug),passHref:!0,children:(0,a.jsxs)("a",{className:"font-weight--700 text-black",children:[M," ",Z]})}),". Please start that program and refresh this link again if you wish to join this team."]}):(null===H||void 0===H?void 0:H.prerequisites.isNotOnDifferentChallenge)?I&&(null===H||void 0===H?void 0:H.members.some((function(e){var n;return(null===(n=e.user)||void 0===n?void 0:n.id)===I.id})))||function(){var e;return!(null===H||void 0===H||null===(e=H.prerequisites)||void 0===e?void 0:e.isNotJoinedAnotherTeam)}()?(0,a.jsx)("p",{children:"Sorry, you're unable to join this team because you are already part of a team."}):(null===H||void 0===H?void 0:H.prerequisites.isOnDay1To4OfStartedChallenge)?((null===H||void 0===H?void 0:H.members.length)||0)>=L.S4?(0,a.jsx)("p",{children:"Sorry, you're unable to join this team because this team is now full."}):(null===H||void 0===H?void 0:H.lockedInGoal)&&(null===H||void 0===H?void 0:H.lockedInGoal.achievedAt)?(0,a.jsx)("p",{children:"Sorry, you're unable to join this team because this team is now locked and their team challenge has started."}):((null===H||void 0===H?void 0:H.progressTo100)||0)>=100&&(null===H||void 0===H?void 0:H.finishedAt)?(0,a.jsx)("p",{children:"Sorry, this team has already finished their challenge."}):null:(0,a.jsx)("p",{children:"Sorry, you're unable to join this team as you can only join a team while you're on Day 1 to 4 of your schedule. Try joining a team in your next challenge."}):(0,a.jsx)("p",{children:"Sorry, you're unable to join this team as you are on a different workout program."}),p((0,w.lj)(e))};return c?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v(),{children:(0,a.jsx)("title",{children:"ChloeTing.com - Team No Longer Valid"})}),(0,a.jsxs)(B,{children:[(0,a.jsx)(z,{}),(0,a.jsxs)(q,{children:[(0,a.jsx)("strong",{children:"404"})," \u2022 The team you're looking for is no longer valid."]}),(0,a.jsxs)(U,{children:[(0,a.jsx)(h(),{href:"/program",passHref:!0,children:(0,a.jsx)(_.Qj,{children:"Workout Programs"})}),(0,a.jsx)(h(),{href:"/workout-video-library",passHref:!0,children:(0,a.jsx)(_.Qj,{children:"Workout Videos"})}),(0,a.jsx)(_.bd,{href:"".concat(k.FH,"/recipes"),children:"Recipes"}),(0,a.jsx)(_.bd,{href:"https://store.chloeting.com/",children:"Store"})]})]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(v(),{children:[(0,a.jsxs)("title",{children:["ChloeTing.com - Team Invitation for ",M," ",Z]}),(0,a.jsx)("meta",{name:"description",content:"Team Invitation for ".concat(null===m||void 0===m?void 0:m.info.name," - Created by ").concat(null===m||void 0===m||null===(o=m.createdBy)||void 0===o?void 0:o.username,". Join before the team is full and locked in.")},"description"),(0,a.jsx)("meta",{property:"og:title",content:"ChloeTing.com - Team Invitation for ".concat(M," ").concat(Z)},"og_title"),(0,a.jsx)("meta",{property:"og:description",content:"Team Invitation for ".concat(null===m||void 0===m?void 0:m.info.name," - Created by ").concat(null===m||void 0===m||null===(l=m.createdBy)||void 0===l?void 0:l.username,". Join before the team is full and locked in.")},"og_description"),(0,a.jsx)("meta",{property:"og:image",content:(null===m||void 0===m||null===(u=m.program)||void 0===u?void 0:u.bannerImageUrl)?m.program.bannerImageUrl:"".concat(k.FH,"/splash/chloeting_thumbnail.jpeg")},"og_image"),(0,a.jsx)("meta",{property:"og:url",content:"".concat(k.FH,"/teams/").concat(j)},"og_url"),(0,a.jsx)("meta",{property:k.Op.PROGRAM_NAME,content:Z}),(0,a.jsx)("meta",{property:k.Op.PROGRAM_STARTED_AT,content:null===m||void 0===m?void 0:m.program.startedAt}),(0,a.jsx)("meta",{property:k.Op.PROGRAM_MOBILE_BANNER,content:"Program Mobile Banner","data-textLayerTextLine1":null===P||void 0===P?void 0:P.textLayerTextLine1,"data-textLayerTextLine2":null===P||void 0===P?void 0:P.textLayerTextLine2,"data-textLayerTextLine3":null===P||void 0===P?void 0:P.textLayerTextLine3,"data-backgroundLayerRadialGradientColorStop0":null===P||void 0===P?void 0:P.backgroundLayerRadialGradientColorStop0,"data-backgroundLayerRadialGradientColorStop100":null===P||void 0===P?void 0:P.backgroundLayerRadialGradientColorStop100,"data-overlayLayerLinearGradientColorStop0":null===P||void 0===P?void 0:P.overlayLayerLinearGradientColorStop0,"data-overlayLayerLinearGradientColorStop100":null===P||void 0===P?void 0:P.overlayLayerLinearGradientColorStop100,"data-chloeLayerImageUrl":null===P||void 0===P?void 0:P.chloeLayerImageUrl,"data-isSameHeight":null===P||void 0===P?void 0:P.isSameHeight}),(0,a.jsx)("meta",{property:k.Op.TEAM_ID,content:null===m||void 0===m?void 0:m.id}),(0,a.jsx)("meta",{property:k.Op.TEAM_CODE,content:null===m||void 0===m?void 0:m.code}),(0,a.jsx)("meta",{property:k.Op.TEAM_NAME,content:null===m||void 0===m?void 0:m.info.name}),(0,a.jsx)("meta",{property:k.Op.TEAM_AVATAR,content:null===m||void 0===m?void 0:m.info.avatar}),(0,a.jsx)("meta",{name:"apple-itunes-app",content:"app-id=".concat(k.tS,", app-argument=").concat(k.FH,"/teams/").concat(j)})]}),(0,a.jsx)("div",{id:"page-wrapper"})]})};n.default=Y,Y.getLayout=function(e){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(G.P,{}),e]})}},63453:function(e,n,t){"use strict";t.d(n,{P:function(){return i}});var r=t(7297);function o(){var e=(0,r.Z)(["\n [class='publift-widget-container'],\n [class='publift-widget-sticky_footer-container'],\n [class='publift-widget-22662372786-container'],\n [class='publift-widget-22648926236-container'] {\n display: none !important;\n }\n"]);return o=function(){return e},e}var i=(0,t(87379).vJ)(o())}},function(e){e.O(0,[41664,49774,92888,40179],(function(){return n=81770,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.