PageSourceSearch

https://web-assets.myfitnesspal.com/web-main/_next/static/chunks/9285-845fcb533f067ce7.js

js myfitnesspal.com collected 2026-09-24 08:25:09 UTC 4,377 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1190,1666,3571,4047,5952,8809,9285],{21161:(t,e,s)=>{s.d(e,{n:()=>h});var i=s(42869),r=s(41695),n=s(1171),o=s(2611),u=s(44726),a=s(56349),c=class extends o.Q{#t;#e=void 0;#s;#i;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,n.f8)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#s,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,n.EN)(e.mutationKey)!==(0,n.EN)(this.options.mutationKey)?this.reset():this.#s?.state.status==="pending"&&this.#s.setOptions(this.options)}onSubscribe(){1===this.listeners.size&&this.#s&&(this.#s.addObserver(this),this.#r())}onUnsubscribe(){this.hasListeners()||this.#s?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#n(t)}getCurrentResult(){return this.#e}reset(){this.#s?.removeObserver(this),this.#s=void 0,this.#r(),this.#n()}mutate(t,e){return this.#i=e,this.#s?.removeObserver(this),this.#s=this.#t.getMutationCache().build(this.#t,this.options),this.#s.addObserver(this),this.#s.execute(t)}#r(){let t=this.#s?.state??(0,a.$)();this.#e={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#n(t){u.jG.batch(()=>{if(this.#i&&this.hasListeners()){let e=this.#e.variables,s=this.#e.context,i={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#i.onSuccess?.(t.data,e,s,i)}catch(t){Promise.reject(t)}try{this.#i.onSettled?.(t.data,null,e,s,i)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#i.onError?.(t.error,e,s,i)}catch(t){Promise.reject(t)}try{this.#i.onSettled?.(void 0,t.error,e,s,i)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#e)})})}};function h(t,e){let s=(0,i.jE)(e),[o]=r.useState(()=>new c(s,t));r.useEffect(()=>{o.setOptions(t)},[o,t]);let a=r.useSyncExternalStore(r.useCallback(t=>o.subscribe(u.jG.batchCalls(t)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),h=r.useCallback((...t)=>{o.mutate(t[0],t[1]).catch(n.lQ)},[o]);if(a.error&&(0,n.GU)(o.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:h,mutateAsync:a.mutate}}},69025:(t,e,s)=>{s.d(e,{A:()=>k});var i=s(41695),r=s(3638),n=s(41723),o=s(41999),u=s(44841),a=s(54698),c=s(56046),h=s(86782),l=s(29190),p=s(59674),d=s(64255);let m=(0,h.A)(),b=(0,a.A)("div",{name:"MuiStack",slot:"Root"});function y(t){return(0,c.A)({props:t,name:"MuiStack",defaultTheme:m})}let f=({ownerState:t,theme:e})=>{let s={display:"flex",flexDirection:"column",...(0,l.NI)({theme:e},(0,l.kW)({values:t.direction,breakpoints:e.breakpoints.values}),t=>({flexDirection:t}))};if(t.spacing){let i=(0,p.LX)(e),r=Object.keys(e.breakpoints.values).reduce((e,s)=>(("object"==typeof t.spacing&&null!=t.spacing[s]||"object"==typeof t.direction&&null!=t.direction[s])&&(e[s]=!0),e),{}),o=(0,l.kW)({values:t.direction,base:r}),u=(0,l.kW)({values:t.spacing,base:r});"object"==typeof o&&Object.keys(o).forEach((t,e,s)=>{if(!o[t]){let i=e>0?o[s[e-1]]:"column";o[t]=i}}),s=(0,n.A)(s,(0,l.NI)({theme:e},u,(e,s)=>t.useFlexGap?{gap:(0,p._W)(i,e)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[s?o[s]:t.direction]}`]:(0,p._W)(i,e)}}))}return(0,l.iZ)(e.breakpoints,s)};var v=s(67867),M=s(47652);let k=function(t={}){let{createStyledComponent:e=b,useThemeProps:s=y,componentName:n="MuiStack"}=t,a=e(f);return i.forwardRef(function(t,e){let c,{component:h="div",direction:l="column",spacing:p=0,divider:m,children:b,className:y,useFlexGap:f=!1,...v}=s(t),M=(0,u.A)({root:["root"]},t=>(0,o.Ay)(n,t),{});return(0,d.jsx)(a,{as:h,ownerState:{direction:l,spacing:p,useFlexGap:f},ref:e,className:(0,r.A)(M.root,y),...v,children:m?(c=i.Children.toArray(b).filter(Boolean)).reduce((t,e,s)=>(t.push(e),s<c.length-1&&t.push(i.cloneElement(m,{key:`separator-${s}`})),t),[]):b})})}({createStyledComponent:(0,v.Ay)("div",{name:"MuiStack",slot:"Root"}),useThemeProps:t=>(0,M.b)({props:t,name:"MuiStack"})})}}]);
2//# sourceMappingURL=9285-845fcb533f067ce7.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.