1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="26dac4d2-e515-4562-99a2-48ad2a0b06ec",e._sentryDebugIdIdentifier="sentry-dbid-26dac4d2-e515-4562-99a2-48ad2a0b06ec")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7138],{77138:function(e,l,i){i.r(l),i.d(l,{activeBmiCategory:function(){return b},desktopPercent:function(){return m},tabletPercent:function(){return c}});var n=i(35944);i(67294);var t=i(71955),o=i(1039),d=i(19198),a=i(47792),r=i(4289),u=i(93809),v=i(37337),s=i(82085);let m={underweight:7,normal:33,overweight:60,obese:82,severely_obese:82},c={underweight:5,normal:32,overweight:59,obese:78,severely_obese:78},b={underweight:0,normal:1,overweight:2,obese:3,severely_obese:3};l.default=e=>{var l,i,v,g,f,h,w,k,p,x,Z,j,_,K,C,T,H,I;let{question:M,onClick:N}=e,{theme:D,hasDarkText:B,quiz_answers:F,customGender:P,customAge:V,darkMode:z,projectName:E=""}=(0,t.d)(),{isTablet:O}=(0,u.aM)(),$=(null==F?void 0:null===(l=F.height)||void 0===l?void 0:l.cm)||(null==F?void 0:F.height),q=(null==F?void 0:null===(i=F.current_weight)||void 0===i?void 0:i.kg)||(null==F?void 0:F.current_weight),A=(0,o.V2)({height:$,weight:q}),U=(0,o.HK)(A),X=(0,o.HK)(A).replace("_","-");(0,d._H)(A,null!==(T=null==F?void 0:F.gender)&&void 0!==T?T:P,!0);let G=M.slots.map(e=>{var l,i,t,o,u,v,m,c,b,y,g,f,h,w,k;let p=null!==(t=null===(l=M[e.dataKey])||void 0===l?void 0:l[null==F?void 0:F[e.answerKey]])&&void 0!==t?t:null===(i=M[e.dataKey])||void 0===i?void 0:i.default,x=null!==(o=null==p?void 0:p.label)&&void 0!==o?o:"",Z=null;switch(e.type){case"bmi":x=null!==(u=null==A?void 0:A.toFixed(2))&&void 0!==u?u:"",Z=(0,n.tZ)(s.Z,{src:(null==F?void 0:F.gender)==="male"&&null!==(v=null==p?void 0:p.emojiMale)&&void 0!==v?v:null==p?void 0:p.emoji,alt:x});break;case"icon-level":Z=(0,n.tZ)(r.F8n,{theme:D,variant:null==p?void 0:p.icon,colorVariant:null==p?void 0:p.colorVariant});break;case"first-goal":{let l=(0,a.z)(null==F?void 0:F.goals,M[e.dataKey]);x=null!==(m=null==l?void 0:l.label)&&void 0!==m?m:"",Z=(0,n.tZ)(s.Z,{src:(null!==(c=null==F?void 0:F.gender)&&void 0!==c?c:P)==="male"&&null!==(b=null==l?void 0:l.emojiMale)&&void 0!==b?b:null==l?void 0:l.emoji,alt:null!==(y=null==l?void 0:l.label)&&void 0!==y?y:""});break}case"body-fats-range":{let l=(0,d._H)(A,null!==(f=null==F?void 0:F.gender)&&void 0!==f?f:P,!0),i=null===(g=M[e.dataKey])||void 0===g?void 0:g[e.answerKey];x=null!=l?l:"",Z=(0,n.tZ)(s.Z,{src:null==i?void 0:i.emoji,alt:x});break}case"body-fats":{let l=(0,d.rK)(A,null!==(w=null==F?void 0:F.gender)&&void 0!==w?w:P,null==F?void 0:F.age),i=null===(h=M[e.dataKey])||void 0===h?void 0:h[e.answerKey];x=null!=l?l:"",Z=(0,n.tZ)(s.Z,{src:null==i?void 0:i.emoji,alt:x});break}default:Z=(0,n.tZ)(s.Z,{src:(null==F?void 0:F.gender)==="male"&&null!==(k=null==p?void 0:p.emojiMale)&&void 0!==k?k:null==p?void 0:p.emoji,alt:x})}return{title:M[e.titleKey],answer:x,emoji:Z}});return(0,n.BX)(r.xn2,{children:[(0,n.tZ)(r.h4i,{label:M.label,theme:D}),(0,n.BX)(y,{children:[(0,n.tZ)(r.xGl,{theme:D,activeBmiCategory:b,topTitle:M.topTitle,levels:M.levels,you:M.you,bmiCategory:U,bmi:A,percent:O?c[U]:m[U],darkMode:z,inverted:M.inverted}),(0,n.tZ)(r.bZj,{theme:D,title:null===(v=M.boxInfo[U].title)||void 0===v?void 0:v.replace("${bmi}",null!==(H=null==A?void 0:A.toFixed(1))&&void 0!==H?H:""),description:M.boxInfo[U].text.replace("${projectName}",E),variant:M.alertVariant[U],textHasAccentColor:M.infoTextHasAccentColor}),(0,n.tZ)(r.T4e,{theme:D,title1:null===(g=G[0])||void 0===g?void 0:g.title,answer1:null===(f=G[0])||void 0===f?void 0:f.answer,emoji1:null===(h=G[0])||void 0===h?void 0:h.emoji,title2:null===(w=G[1])||void 0===w?void 0:w.title,answer2:null===(k=G[1])||void 0===k?void 0:k.answer,emoji2:null===(p=G[1])||void 0===p?void 0:p.emoji,title3:null===(x=G[2])||void 0===x?void 0:x.title,answer3:null===(Z=G[2])||void 0===Z?void 0:Z.answer,emoji3:null===(j=G[2])||void 0===j?void 0:j.emoji,title4:null===(_=G[3])||void 0===_?void 0:_.title,answer4:null===(K=G[3])||void 0===K?void 0:K.answer,emoji4:null===(C=G[3])||void 0===C?void 0:C.emoji,image:(0,n.tZ)(s.Z,{src:"${bucketUrl}
1/bodies/".concat(X).concat(M.isOlder?"-older":M.isOlderPersonalised&&Number(null==F?void 0:F.age)>(null!=V?V:50)?"-older":"").concat((null!==(I=null==F?void 0:F.gender)&&void 0!==I?I:P)==="male"?"-m":"",".png"),alt:""})})]}),(0,n.tZ)(r.Ps0,{theme:D,children:(0,n.tZ)(r.KMU,{onClick:N,theme:D,hasDarkText:B,children:M.buttonTitle})})]},M.key)};let y=(0,v.Z)("div",{target:"ei87b0g0"})("display:flex;width:100%;flex-direction:column;justify-content:center;align-items:center;gap:0.75rem;padding-top:2rem;@media ",u.Mq,"{padding:1.5rem 0 5rem;}")},19198:function(e,l,i){i.d(l,{_H:function(){return a},rK:function(){return r}});let n=[{min:0,max:29.9,key:"25-31%"},{min:29.9,max:100,key:">32%"}],t=[{min:0,max:24.9,key:"14-20%"},{min:24.9,max:29.9,key:"21-24%"},{min:29.9,max:100,key:"25-31%"}],o=[{min:0,max:29.9,key:"18-24%"},{min:29.9,max:100,key:">25%"}],d=[{min:0,max:24.9,key:"6-13%"},{min:24.9,max:29.9,key:"14-17%"},{min:29.9,max:100,key:"18-24%"}],a=(e,l,i)=>{let a=(i?"male"===l?o:n:"male"===l?d:t).find(l=>e&&e>l.min&&e<=l.max);return null==a?void 0:a.key},r=(e,l,i)=>{let n="male"===l?1.2*e+.23*Number(i)-16.2:1.2*e+.23*Number(i)-5.4;return"".concat((n>=74.9?74.9:n).toFixed(0),"%")}},47792:function(e,l,i){i.d(l,{z:function(){return n}});let n=(e,l)=>{let i=new Set(null==e?void 0:e.split("|"));if(l){for(let e of Object.keys(l))if(i.has(e))return l[e];return null}}}}]);
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.