PageSourceSearch

https://thecalmgut.web.app/_next/static/chunks/pages/settings/components/WeightUnitPanel-2345a1bd3f659dde.js

js thecalmgut.web.app collected 2026-10-03 12:40:03 UTC 3,908 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9f07e298-e061-4322-bde7-7d03012ce436",e._sentryDebugIdIdentifier="sentry-dbid-9f07e298-e061-4322-bde7-7d03012ce436")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4208],{41796:function(e,t,r){"use strict";r.d(t,{Fq:function(){return o}});var n=r(56535),i=r(7610);function o(e,t){return e=function e(t){let r;if(t.type)return t;if("#"===t.charAt(0))return e(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(t));let i=t.indexOf("("),o=t.substring(0,i);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(o))throw Error((0,n.Z)(9,t));let l=t.substring(i+1,t.length-1);if("color"===o){if(r=(l=l.split(" ")).shift(),4===l.length&&"/"===l[3].charAt(0)&&(l[3]=l[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw Error((0,n.Z)(10,r))}else l=l.split(",");return{type:o,values:l=l.map(e=>parseFloat(e)),colorSpace:r}}(e),t=function(e,t=0,r=1){return(0,i.Z)(e,t,r)}(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){let{type:t,colorSpace:r}=e,{values:n}=e;return -1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}},59081:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/components/WeightUnitPanel",function(){return r(24466)}])},24466:function(e,t,r){"use strict";r.r(t),r.d(t,{weightUnitAvailable:function(){return b}});var n=r(85893),i=r(67294),o=r(72824),l=r(1003),a=r(39424),s=r(80158),u=r(12208),d=r(40417),c=r(8658),g=r(88949),f=r(13674),p=r(18338);let h=["lbs","kg"],b=e=>{var t,r,n;return null!==(n=null===(r=e.design)||void 0===r?void 0:null===(t=r.exercise_tracking)||void 0===t?void 0:t.enabled)&&void 0!==n&&n};t.default=()=>{var e,t,r;let b=(0,f.lh)(),v=(0,s.CG)(e=>e.config),x=(0,s.CG)(e=>e.auth),y=(0,s.TL)(),{i18n:m,language:_}=v,w=e=>(0,c.i0)({i18nDocs:m,language:_,text:e}),k=x.appUser,C=null!==(t=x.firebaseUserId)&&void 0!==t?t:"",$=v.design,[j,E]=(0,i.useState)(!1),U=null!==(r=null==k?void 0:k.weightUnit)&&void 0!==r?r:(null==$?void 0:null===(e=$.exercise_tracking)||void 0===e?void 0:e.default_weight_unit)==="kg"?"kg":"lbs",I=async e=>{if(C&&k&&!j&&e!==U){E(!0);try{await (0,g.dj)(C,e),y((0,d.xs)({...k,weightUnit:e}))}catch(e){a.Tb(e),y((0,u.ss)({message:w("Failed to update weight unit pref. Please try again later."),open:!0,severity:"error"}))}finally{E(!1)}}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.V9,{theme:b,id:"settings-weight-unit",title:w("Weight Unit")}),(0,n.jsx)(p.ii,{theme:b,children:(0,n.jsx)(p.V5,{theme:b,title:w("Unit"),action:(0,n.jsx)(o.Z,{value:U,exclusive:!0,size:"small","aria-label":w("Weight Unit"),onChange:(e,t)=>
1t&&I(t),sx:{p:.5,gap:.5,backgroundColor:b.backgroundColor,border:"1px solid ".concat(b.outlineColor),borderRadius:"10px","& .MuiToggleButtonGroup-grouped":{border:0,borderRadius:"7px !important",minWidth:56,px:1.5,py:.5,fontSize:14,fontWeight:600,textTransform:"none",color:b.textColor,transition:(0,f.eR)(["background-color","color"],150),...f.Gd,"&:hover":{backgroundColor:(0,f.fG)(b.primaryColor,.06)},"&.Mui-selected":{color:b.textOnPrimary,backgroundColor:b.primaryColor},"&.Mui-selected:hover":{backgroundColor:b.primaryColor},...(0,f.aE)(b)}},children:h.map(e=>(0,n.jsx)(l.Z,{value:e,disabled:j,children:w(e).toUpperCase()},e))})})})]})}}},function(e){e.O(0,[2853,2888,9774,179],function(){return e(e.s=59081)}),_N_E=e.O()}]);

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.