PageSourceSearch

https://web-assets.myfitnesspal.com/web-main/_next/static/chunks/7634-cff69869af0d12ed.js

js myfitnesspal.com collected 2026-10-01 08:30:35 UTC 5,107 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7634],{2879:(t,e,r)=>{r.d(e,{n:()=>c});var s=r(64604),i=r(41695),n=r(38270),o=r(2592),a=r(81615),l=r(31954),u=class extends o.Q{#t;#e=void 0;#r;#s;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#i()}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.#r,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,n.EN)(e.mutationKey)!==(0,n.EN)(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onSubscribe(){1===this.listeners.size&&this.#r&&(this.#r.addObserver(this),this.#i())}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(t){this.#i(),this.#n(t)}getCurrentResult(){return this.#e}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#i(),this.#n()}mutate(t,e){return this.#s=e,this.#r?.removeObserver(this),this.#r=this.#t.getMutationCache().build(this.#t,this.options),this.#r.addObserver(this),this.#r.execute(t)}#i(){let t=this.#r?.state??(0,l.$)();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){a.jG.batch(()=>{if(this.#s&&this.hasListeners()){let e=this.#e.variables,r=this.#e.context,s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#s.onSuccess?.(t.data,e,r,s)}catch(t){Promise.reject(t)}try{this.#s.onSettled?.(t.data,null,e,r,s)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#s.onError?.(t.error,e,r,s)}catch(t){Promise.reject(t)}try{this.#s.onSettled?.(void 0,t.error,e,r,s)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#e)})})}};function c(t,e){let r=(0,s.jE)(e),[o]=i.useState(()=>new u(r,t));i.useEffect(()=>{o.setOptions(t)},[o,t]);let l=i.useSyncExternalStore(i.useCallback(t=>o.subscribe(a.jG.batchCalls(t)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),c=i.useCallback((...t)=>{o.mutate(t[0],t[1]).catch(n.lQ)},[o]);if(l.error&&(0,n.GU)(o.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:c,mutateAsync:l.mutate}}},3744:(t,e,r)=>{r.d(e,{A:()=>g});var s=r(41695),i=r(3638),n=r(44841),o=r(68985),a=r(67867),l=r(95675),u=r(47652),c=r(90110),h=r(50079),d=r(83923),p=r(41999);function m(t){return(0,p.Ay)("MuiFormControlLabel",t)}let b=(0,d.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementEnd","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var y=r(13920),f=r(64255);let v=(0,a.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[{[`& .${b.label}`]:e.label},e.root,e[`labelPlacement${(0,h.A)(r.labelPlacement)}`]]}})((0,l.A)(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${b.disabled}`]:{cursor:"default"},[`& .${b.label}`]:{[`&.${b.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>"start"===t||"top"===t||"bottom"===t,style:{marginLeft:16}}]}))),M=(0,a.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk"})((0,l.A)(({theme:t})=>({[`&.${b.error}`]:{color:(t.vars||t).palette.error.main}}))),g=s.forwardRef(function(t,e){let r=(0,u.b)({props:t,name:"MuiFormControlLabel"}),{checked:a,className:l,control:d,disabled:p,disableTypography:b,inputRef:g,label:R,labelPlacement:O="end",name:A,onChange:C,required:P,slots:x={},slotProps:E={},value:k,...j}=r,[S,w]=(0,o.W)({props:r,states:["error"]}),L=p??d.props.disabled??w?.disabled,N=P??d.props.required,$={disabled:L,required:N};["checked","name","onChange","value","inputRef"].forEach(t=>{void 0===d.props[t]&&void 0!==r[t]&&($[t]=r[t])});let F={...r,disabled:L,labelPlacement:O,required:N,error:S.error},K=(t=>{let{classes:e,disabled:r,labelPlacement:s,error:i,required:o}=t,a={root:["root",r&&"disabled",`labelPlacement${(0,h.A)(s)}`,i&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return(0,n.A)(a,m,e)})(F),[q,U]=(0,y.A)("typography",{elementType:c.A,externalForwardedProps:{slots:x,slotProps:E},ownerState:F}),_=R;return null==_||_.type===c.A||b||(_=(0,f.jsx)(q,{component:"span",...U,className:(0,i.A)(K.label,U?.className),children:_})),(0,f.jsxs)(v,{className:(0,i.A)(K.root,l),ownerState:F,ref:e,...j,children:[s.cloneElement(d,$),N?(0,f.jsxs)("div",{children:[_,(0,f.jsxs)(M,{ownerState:F,"aria-hidden":!0,
1className:K.asterisk,children:[" ","*"]})]}):_]})})}}]);
2//# sourceMappingURL=7634-cff69869af0d12ed.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.