1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[562],{26773:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/coaches/[id]/sign-up",function(){return n(51252)}])},51252:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return B}});var t,a=n(30137),i=n(76341),u=n(67462),s=n(32207),c=n(97582),o=n(85893),l=n(89007),d=n(89613),h=n(37977),v=n(47915),f=n(25915),y=n(65275),m=n(43783),p=n(39737),P=n(99830),g=n(30470),_=n(44603),E=n(88904),x=n(67913),w=n(37442),C=n(67294),Z=n(90661);function q(e){var r=e.username,n=e.surveyEntry,t=e.coachProfilePageEntry,a=e.query,s=(0,w.Z)(Z.getCoach,{variables:{username:r}}),c=_.Z(["data","coachByUsername"],s),l=(0,C.useMemo)(function(){return{coachId:null==c?void 0:c.id}},[null==c?void 0:c.id]);if(!c||!t||!n)return null;var d=t.fields,h=d.sections.filter(function(e){return e.fields.component.includes("CoachProfileSignUp")});return(0,o.jsx)(x.Rh,{name:"CLP Sign Up Page",properties:l,children:(0,o.jsx)(E.Z,{survey:n,surveyId:P.YN,query:a,fields:(0,u._)((0,i._)({},d),{sections:h}),coach:c,isCoachPage:!0})})}var k=n(81021),N=n(72568),j=n(10504),U=n(11342),b=function(e){var r=e.experimentKitData,n=e.coachProfilePageEntry,t=e.coach,a=e.surveyEntry,i=e.query;return(0,N.Xk)(r),(0,o.jsx)(U.B,{children:(0,o.jsx)(h.Z,{title:"".concat((null==t?void 0:t.user)?"".concat(t.user.firstName," ").concat(t.user.lastName," | "):"","Kickoff"),noIndex:!0,canonicalUrl:"https://www.trainwithkickoff.com/coaches/".concat(t.username,"/sign-up"),children:(0,o.jsx)(v.Z,{children:(0,o.jsx)(q,{username:t.username,surveyEntry:a,coachProfilePageEntry:n,query:i})})})})};b.getInitialProps=(0,l.Z)((t=(0,a._)(function(e){var r,n,t,a,o,l,h,v,g,_,E,x,w,C,Z,q,N,U,b,B,I,K,M;return(0,c.Jh)(this,function(c){switch(c.label){case 0:r=e.apolloClient,n=e.ctx,a=(t=e.ctx).query.id,t.req,o=t.res,l=e.currentUserPayload.data.me,h=(0,s._)(e.ctx.query,["id"]),o&&o.setHeader("cache-control","s-maxage=".concat(3600,", stale-while-revalidate")),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,r.query({query:f.getCoachByUsername,variables:{username:a}})];case 2:return w=c.sent(),[3,4];case 3:return console.error(C=c.sent()),y.Z.notify(C),[2,{statusCode:404}];case 4:if(!(null==w?void 0:null===(g=w.data)||void 0===g?void 0:null===(v=g.coachByUsername)||void 0===v?void 0:v.isActive))return[2,(0,m.Z)(null===(Z=p.ZP.homePage())||void 0===Z?void 0:Z.href,n)];return q=(0,u._)((0,i._)({},w.data.coachByUsername),{username:a}),[4,(0,k.C)(n,{url:n.asPath,attributes:{projectId:j.ZP.WEB,url:n.asPath},user:null==l?void 0:l.user,devMode:!1})];case 5:return U=(N=c.sent()).ek,b=N.data,I=null==(B=U.experiment("clp"))?void 0:null===(x=B.experimentResult)||void 0===x?void 0:null===(E=x.landingPage)||void 0===E?void 0:null===(_=E.sys)||void 0===_?void 0:_.id,[4,d.Z.getEntry(I||P.NM,{include:10})];case 6:return K=c.sent(),[4,d.Z.getEntry(P.ju,{include:10})];case 7:return M=c.sent(),[2,{statusCode:200,coachProfilePageEntry:K,surveyEntry:M,query:h,user:l.user,experimentKitData:b,coach:q}]}})}),function(e){return t.apply(this,arguments)}));var B=(0,g.C)(b)}},function(e){e.O(0,[9468,8523,2315,6664,5385,1601,4853,8407,6025,984,546,7362,7844,8909,5675,945,2279,5121,5026,882,1182,8310,6449,5351,7216,2201,2964,9405,1137,3520,4658,9464,4765,1711,434,4464,2888,9774,179],function(){return e(e.s=26773)}),_N_E=e.O()}]); 2//# sourceMappingURL=sign-up-89766c4fcee1b79e.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.