PageSourceSearch

https://www.trainwithkickoff.com/_next/static/chunks/pages/dashboard/nutrition/logs-936b5a223a60d44a.js

js trainwithkickoff.com collected 2026-10-04 00:06:10 UTC 11,230 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4160],{27195:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getLoggedMealPublicPreview"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"loggedMealId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"loggedMealPublicPreview"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"loggedMealId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mealTypeId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"previewImageUrl"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transformation"},value:{kind:"StringValue",value:"imageFit600",block:!1}}],directives:[]}]}}]}}],loc:{start:0,end:191}};n.loc.source={body:'query getLoggedMealPublicPreview($loggedMealId: ID!) {\n  loggedMealPublicPreview(id: $loggedMealId) {\n    id\n    title\n    mealTypeId\n    previewImageUrl(transformation: "imageFit600")\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function r(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}n.definitions.forEach(function(e){if(e.name){var n=new Set;(function e(n,t){if("FragmentSpread"===n.kind)t.add(n.name.value);else if("VariableDefinition"===n.kind){var r=n.type;"NamedType"===r.kind&&t.add(r.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,t)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,t)}),n.definitions&&n.definitions.forEach(function(n){e(n,t)})})(e,n),t[e.name.value]=n}}),e.exports=n,e.exports.getLoggedMealPublicPreview=function(e,n){var i={kind:e.kind,definitions:[r(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=t[n]||new Set,o=new Set,l=new Set;for(a.forEach(function(e){l.add(e)});l.size>0;){var u=l;l=new Set,u.forEach(function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach(function(e){l.add(e)}))})}return o.forEach(function(n){var t=r(e,n);t&&i.definitions.push(t)}),i}(n,"getLoggedMealPublicPreview")},17174:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/nutrition/logs",function(){return t(17211)}])},63953:function(e,n,t){"use strict";t.d(n,{I:function(){return r},R:function(){return i}});var r="session-token",i="payment-token"},72533:function(e,n,t){"use strict";t.d(n,{Kt:function(){return a},Lb:function(){return o},OJ:function(){return l},lT:function(){return i},yT:function(){return r}});var r={id:1,name:"Breakfast"},i={id:2,name:"Lunch"},a={id:3,name:"Dinner"},o={id:4,name:"Snack"},l=[r,i,o,a]},30470:function(e,n,t){"use strict";t.d(n,{C:function(){return D}});
1var r=t(30137),i=t(76341),a=t(67462),o=t(32207),l=t(97582),u=t(85893),s=t(67294),c=t(56429),d=t(53768),f=t(48702),g=t(48216),v=t(23795),m=t(99066),p=t(63144),h=t.n(p),k=t(62286),b=t(65275),_=t(63953),y=t(82964),I=t(33168),C=t(65032),w=new Set(["127.0.0.1","localhost"]),S=t(2147),P=null,T=b.Z.getPlugin("react").createErrorBoundary(s),x=new c.u({uri:function(e){var n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!n||"string"!=typeof e)return e;try{var t=new URL(e);if("http:"===t.protocol&&w.has(t.hostname)&&"/api/qa-dashboard-graphql"===t.pathname)return"".concat(t.pathname).concat(t.search).concat(t.hash)}catch(e){}return e}(C.gJ.production),fetch:h()});function D(e){var n,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=s.ssr,f=function(n){var t=n.apolloClient,r=n.apolloState,a=(0,o._)(n,["apolloClient","apolloState"]),l=t||N(r);return(0,u.jsx)(T,{FallbackComponent:I.default,children:(0,u.jsx)(d.e,{client:l,children:(0,u.jsx)(e,(0,i._)({},a))})})};return(void 0===c||c||e.getInitialProps)&&(f.getInitialProps=(n=(0,r._)(function(n){var r,o,s,c;return(0,l.Jh)(this,function(l){switch(l.label){case 0:if(r=n.AppTree,o=n.apolloClient=N(void 0,n),s={},!e.getInitialProps)return[3,2];return[4,e.getInitialProps({apolloClient:o,ctx:n})];case 1:s=l.sent(),l.label=2;case 2:return[3,7];case 3:return l.trys.push([3,6,,7]),[4,Promise.all([t.e(9774),t.e(2244)]).then(t.bind(t,52244))];case 4:return[4,(0,l.sent().getDataFromTree)((0,u.jsx)(r,{pageProps:(0,a._)((0,i._)({},s),{apolloClient:o})}))];case 5:return l.sent(),[3,7];case 6:return console.error("Error while running `getDataFromTree`",l.sent()),[3,7];case 7:return c=o.cache.extract(),[2,(0,a._)((0,i._)({},s),{apolloState:c})]}})}),function(e){return n.apply(this,arguments)})),f}var N=function(e,n){return P||(P=F(e,n)),P},F=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,i=(e=(0,r._)(function(e){var n;return(0,l.Jh)(this,function(r){return n=t&&t.overrideCookies&&t.overrideCookies[_.I]||(0,k.parseCookies)(t)[_.I],e.setContext({headers:{"Cache-Control":"no-cache",authorization:n?"Bearer ".concat(n):"",local_utc_offset:(0,y.k_)()}}),[2,e]})}),function(n){return e.apply(this,arguments)}),a=new f.i(function(e,n){return n(e).map(function(n){var t=e.getContext().response.headers;if(t&&t.get("X-Version")){var r=t.get("X-Version"),i=localStorage.getItem("app_version");i&&"null"!==i?r!==i&&(console.log("New app release detected! Setting refresh..."),localStorage.setItem("app_version",null),localStorage.setItem("pending_refresh","true")):localStorage.setItem("app_version",r)}return n})}),o=new f.i(function(e,n){return new g.y(function(t){var r;return Promise.resolve(e).then(i).then(function(e){r=n(e).subscribe({next:t.next.bind(t),error:t.error.bind(t),complete:t.complete.bind(t)})}).catch(t.error.bind(t)),function(){r&&r.unsubscribe()}})});return new v.f({name:"Web",version:"1.2.7",ssrMode:!1,link:f.i.from([a,o,x]),cache:new m.h({typePolicies:{Query:{fields:{workout:{keyArgs:["id"],read:function(e,n){var t=n.args;return(0,n.toReference)({__typename:"Workout",id:t.id})}},client:{keyArgs:["id"],read:function(e,n){var t=n.args;return(0,n.toReference)({__typename:"Client",id:t.id})}}}},BridgePayer:{keyFields:["name"]}},possibleTypes:S}).restore(n||{})})}},37442:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var r=t(76341),i=t(67462),a=t(53353),o=t(67294),l=t(6812),u=t(1644),s=t(66252),c=function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).variables,t=arguments.length>2?arguments[2]:void 0,r=(0,s.x)(),i=(0,o.useCallback)(function(t){r.writeQuery({query:e,variables:n,data:t(r.readQuery({query:e,variables:n}))})},[r,e,n]),a=(0,o.useRef)([]);return(0,o.useEffect)(function(){if(!t&&a.current.length){var e=!0,n=!1,r=void 0;try{for(var o,l=a.current[Symbol.iterator]();!(e=(o=l.next()).done);e=!0){var u=o.value;i(u)}}catch(e){n=!0,r=e}finally{try{e||null==l.return||l.return()}finally{if(n)throw r}}a.current=[]}},[t]),(0,o.useCallback)(function(e){t?a.current.push(e):i(e)},[i,t])},d=function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];var s=l.a.apply(void 0,(0,a._)(n)),d=s.networkStatus===u.Ie.loading,f=c(n[0],n[1],d);return(0,o.useMemo)(function(){return(0,i._)((0,r._)({},s),{updateCache:f,isInitialLoad:d})},[s,f,d])}},33168:function(e,n,t){"use strict";t.r(n);
1var r,i=t(30137),a=t(76341),o=t(67462),l=t(97582),u=t(85893),s=t(67294),c=t(12918),d=t.n(c),f=t(11163),g=t.n(f),v=t(40546),m=t(65275),p=t(62947),h=function(e){var n=e.title,t=e.statusCode;return(0,s.useEffect)(function(){var e;(e=(0,i._)(function(){var e,n;return(0,l.Jh)(this,function(t){switch(t.label){case 0:if(e=new Date(localStorage.getItem("last_error_date")||null),v.differenceInDays(new Date,e)>0&&(localStorage.removeItem("refresh_error_count"),localStorage.removeItem("last_error_date")),!((n=Number(localStorage.getItem("refresh_error_count"))||0)<3))return[3,2];return[4,(0,p._)(1e4*n)];case 1:t.sent(),n++,localStorage.setItem("refresh_error_count",String(n)),localStorage.setItem("last_error_date",String(new Date)),g().reload(),t.label=2;case 2:return[2]}})}),function(){return e.apply(this,arguments)})().catch(console.error)},[]),(0,u.jsx)(d(),{title:n,statusCode:t||500})};h.getInitialProps=(r=(0,i._)(function(e){return(0,l.Jh)(this,function(n){switch(n.label){case 0:if(!e.err)return[3,2];return[4,(0,m.C)(e.err)];case 1:n.sent(),n.label=2;case 2:return[2,(0,o._)((0,a._)({},d().getInitialProps(e)),{error:e.err})]}})}),function(e){return r.apply(this,arguments)}),n.default=h},17211:function(e,n,t){"use strict";t.r(n);var r,i=t(73292),a=t(85893),o=t(67294),l=t(11163),u=t(40546),s=t.n(u),c=t(30470),d=t(37442),f=t(70635),g=t(79929),v=t.n(g),m=t(27195),p=t(72533),h=t(70346),k=t.n(h),b=t(27406),_=t.n(b),y=t(72291),I=t.n(y),C=t(57503),w=t.n(C),S=(r={},(0,i._)(r,p.Lb.id,k()),(0,i._)(r,p.yT.id,w()),(0,i._)(r,p.lT.id,I()),(0,i._)(r,p.Kt.id,_()),r);n.default=(0,c.C)(function(){var e,n=(0,l.useRouter)().query||{},t=n.loggedMealId,r=n.clientName,i=null===(e=(0,d.Z)(m.getLoggedMealPublicPreview,{variables:{loggedMealId:t},skip:!t}).data)||void 0===e?void 0:e.loggedMealPublicPreview,u=(0,o.useMemo)(function(){if(i&&i.title)return i.title;var e=s().format(new Date,"M/DD/YY"),n=r?"".concat(r,"'s "):"";return"".concat(n,"Meal Logs for Week of ").concat(e)},[r,i]),c=S[null==i?void 0:i.mealTypeId];return(0,a.jsx)(f.default,{deepLinkPath:"dashboard/nutrition",title:u,ogImage:i?c:v(),ogImageUrl:null==i?void 0:i.previewImageUrl})})},12918:function(e,n,t){e.exports=t(18529)},57503:function(e){e.exports="/_next/static/images/breakfast-6bf477e42e23b1368a05401eefbddbaf.jpg"},27406:function(e){e.exports="/_next/static/images/dinner-e9dc5763504b6042279edae352db4826.jpg"},72291:function(e){e.exports="/_next/static/images/lunch-774f65743560710fcdd9c993738a31f3.jpg"},79929:function(e){e.exports="/_next/static/images/salad-237a02163eb694699139ded9bc360743.jpg"},70346:function(e){e.exports="/_next/static/images/snack-4db9d3a60cb959f6f8771b73e2aaf19e.jpg"},2147:function(e){"use strict";e.exports=JSON.parse('{"IFile":["File","FileWithWorkoutPreviews"],"BaseClientActivityItem":["GenericClientActivityItem","ProgressPictureClientActivityItem","SurveyResponseClientActivityItem","WorkoutClientActivityItem"],"ClientFeedItem":["ClientTaskPreferencesChangedClientFeedItem","HabitCompletedClientFeedItem","DailyTasksCompletedClientFeedItem","ClientLeadClaimedClientFeedItem"],"ClientToDo":["ClientEventToDo","MissedWorkoutToDo","UnreviewedWorkoutToDo","UnsentWorkoutToDo","WeeklyReviewToDo","NutritionReviewToDo"],"BaseClientTask":["WorkoutClientTask","LoggedMealClientTask","HabitClientTask"],"ProcessingBioImage":["File","BioImage"],"PagedResponse":[],"AggregateValueChange":["AggregateIntegerValueChange","AggregateBooleanValueChange","AggregateTextValueChange","AggregateWeeklyScheduleValueChange"]}')}},function(e){e.O(0,[9468,4853,8407,6025,984,546,7362,7844,8909,2201,2964,9405,7977,2730,2888,9774,179],function(){return e(e.s=17174)}),_N_E=e.O()}]);
2//# sourceMappingURL=logs-936b5a223a60d44a.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.