PageSourceSearch

https://www.trainwithkickoff.com/_next/static/chunks/pages/coaches-f7f7d57004607cd7.js

js trainwithkickoff.com collected 2026-09-25 20:29:29 UTC 4,699 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7487],{92359:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/coaches",function(){return n(31310)}])},98035:function(e,r,n){"use strict";n.d(r,{F:function(){return t}});var t={AWAITING_REVIEW:"1",AWAITING_ACQUIRED_CLIENT:"2",ACQUIRED_CLIENT_TRIAL:"3",MARKETPLACE_CLIENT_TRIAL:"4",BRONZE:"5",SILVER:"6",GOLD:"7",PLATINUM:"8",PROBATION:"9",INACTIVE:"10",DIAMOND:"11"}},31310:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return K}});var t,i=n(30137),a=n(76341),o=n(32207),s=n(97582),u=n(85893),l=n(11163),c=n(67462),d=n(6812),v=n(67294),h=n(88904),f=n(44603),y=n(13946),E=n(9008),p=n.n(E),m=n(52281),I=n(99830),_=n(90661),P=n(67913),x={fields:{component:"StickyCTAExperiment"}},C={fields:{component:"ChatButtonExperiment"}},g=new Set(["FooterExperiment"]),A=function(e){var r=e.username,n=e.coachProfilePageEntry,t=e.surveyEntry,i=e.query,o=(0,d.a)(_.getCoach,{variables:{username:r}}),s=f.Z(["data","coachByUsername"],o),l=(0,v.useMemo)(function(){return{coachId:null==s?void 0:s.id}},[null==s?void 0:s.id]);if(!s||!n||!t)return null;var E=n.fields,A=y.Z(function(e,r){var n=r.fields.component;return"SignUp"!==n&&e.push(r),g.has(n)&&(e.push(x),e.push(C)),e},[],E.sections),N=(0,m.v2)(s.user),T="Stay on top of your fitness goals with online personal trainer ".concat(N,"."),Z="".concat(N," | Personal Trainer at Kickoff");return(0,u.jsxs)(P.Rh,{name:"CLP",properties:l,children:[(0,u.jsxs)(p(),{children:[(0,u.jsx)("meta",{name:"description",content:T}),(0,u.jsx)("title",{children:Z},"title")]}),(0,u.jsx)(h.Z,{survey:t,surveyId:I.YN,query:void 0===i?{}:i,fields:(0,c._)((0,a._)({},E),{sections:A}),coach:s,isCoachPage:!0})]})},N=n(37977),T=n(89613),Z=n(30470),R=n(47915),j=n(89007),q=n(43783),U=n(39737),w=n(25915),B=n(60248),L=n(12918),k=n.n(L),D=n(65275),b=n(11342),O=n(81021),W=n(72568),M=n(10504),S=n(98035),G=function(e){var r=e.router,n=e.coachProfilePageEntry,t=e.surveyEntry,i=e.user,a=e.experimentKitData,s=e.statusCode,l=e.referrer;if((0,W.Xk)(a),200!==s)return(0,u.jsx)(k(),{statusCode:s});var c=r.query.id,d=r.pathname,v=(0,o._)(r.query,["id"]),h=n.fields||{},f=h.title,y=h.metaTags,E=h.noIndex,p=h.canonicalUrl;return(0,u.jsx)(B.Z.Provider,{value:v,children:(0,u.jsx)(b.B,{children:(0,u.jsx)(N.Z,{title:f,metaTags:y,noIndex:d.endsWith("/free")||E,canonicalUrl:p,referrer:l,children:(0,u.jsx)(R.Z,{children:(0,u.jsx)(A,{username:c,user:i,coachProfilePageEntry:n,surveyEntry:t,query:r.query})})})})})};G.getInitialProps=(0,j.Z)((t=(0,i._)(function(e){var r,n,t,i,u,l,c,d,v,h,f,y,E,p,m,_,P,x,C,g,A,N,Z,R,j,B,L,k,b,W,G,K;return(0,s.Jh)(this,function(s){switch(s.label){case 0:if(r=e.apolloClient,n=e.ctx,i=(t=e.ctx).query,l=(u=t.query).id,c=u.ref,d=t.req,v=t.res,h=e.currentUserPayload.data.me,f=(0,o._)(e.ctx.query,["id","ref"]),v&&v.setHeader("cache-control","s-maxage=".concat(3600,", stale-while-revalidate")),d&&(N=d.headers.referer),"gp_freetrial_coach"===c)return[2,(0,q.Z)(U.ZP.coachReferral((0,a._)({username:l},f)),n)];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,r.query({query:w.getCoachByUsername,variables:{username:l}})];case 2:return Z=s.sent(),[3,4];case 3:return console.error(R=s.sent()),D.Z.notify(R),[2,{statusCode:404}];case 4:if(!(null==Z?void 0:null===(E=Z.data)||void 0===E?void 0:null===(y=E.coachByUsername)||void 0===y?void 0:y.isActive)||(null==Z?void 0:null===(_=Z.data)||void 0===_?void 0:null===(m=_.coachByUsername)||void 0===m?void 0:null===(p=m.level)||void 0===p?void 0:p.id)===S.F.AWAITING_REVIEW)return[2,(0,q.Z)(null===(j=U.ZP.homePage())||void 0===j?void 0:j.href,n)];return[4,(0,O.C)(n,{url:n.asPath,attributes:{projectId:M.ZP.WEB,url:n.asPath},user:null==h?void 0:h.user,devMode:!1})];case 5:return L=(B=s.sent()).ek,k=B.data,b=L.experiment("clp"),W=(null==Z?void 0:null===(x=Z.data)||void 0===x?void 0:null===(P=x.coachByUsername)||void 0===P?void 0:P.isInsuranceDietitian)?I.Cu:null==b?void 0:null===(A=b.experimentResult)||void 0===A?void 0:null===(g=A.landingPage)||void 0===g?void 0:null===(C=g.sys)||void 0===C?void 0:C.id,[4,T.Z.getEntry(W||I.NM,{include:10})];case 6:return G=s.sent(),[4,T.Z.getEntry(I.ju,{include:10})];case 7:return K=s.sent(),[2,{statusCode:200,coachProfilePageEntry:G,surveyEntry:K,query:i,user:h.user,experimentKitData:k,referrer:N}]}})}),function(e){return t.apply(this,arguments)}));
1var K=(0,l.withRouter)((0,Z.C)(G))}},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,5436,9464,9837,1711,434,4464,2888,9774,179],function(){return e(e.s=92359)}),_N_E=e.O()}]);
2//# sourceMappingURL=coaches-f7f7d57004607cd7.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.