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]="83e915ac-c223-4225-929b-b794be88a1b6",e._sentryDebugIdIdentifier="sentry-dbid-83e915ac-c223-4225-929b-b794be88a1b6")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1762],{41762:function(e,l,i){i.r(l),i.d(l,{activeBmiCategory:function(){return b},desktopPercent:function(){return c},tabletPercent:function(){return m}});var n=i(35944);i(67294);var t=i(71955),o=i(1039),d=i(19198),r=i(47792),a=i(4289),u=i(93809),v=i(37337),s=i(82085);let c={underweight:7,normal:33,overweight:60,obese:82,severely_obese:82},m={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,c,m,g,f,x,w,_,h,k,p,Z,j;let{question:K,onClick:T}=e,{theme:I,hasDarkText:C,quiz_answers:M,customGender:V,darkMode:H,projectName:A=""}=(0,t.d)(),{isTablet:D}=(0,u.aM)(),B=(null==M?void 0:null===(l=M.height)||void 0===l?void 0:l.cm)||(null==M?void 0:M.height),N=(null==M?void 0:null===(i=M.current_weight)||void 0===i?void 0:i.kg)||(null==M?void 0:M.current_weight),z=(0,o.V2)({height:B,weight:N}),E=(0,o.HK)(z);(0,o.HK)(z).replace("_","-"),(0,d._H)(z,null!==(j=null==M?void 0:M.gender)&&void 0!==j?j:V,!0);let F=K.slots.map(e=>{var l,i,t,o,u,v,c,m,b,y,g,f,x,w,_;let h=null!==(t=null===(l=K[e.dataKey])||void 0===l?void 0:l[null==M?void 0:M[e.answerKey]])&&void 0!==t?t:null===(i=K[e.dataKey])||void 0===i?void 0:i.default,k=null!==(o=null==h?void 0:h.label)&&void 0!==o?o:"",p=null;switch(e.type){case"bmi":k=null!==(u=null==z?void 0:z.toFixed(2))&&void 0!==u?u:"",p=(0,n.tZ)(s.Z,{src:(null==M?void 0:M.gender)==="male"&&null!==(v=null==h?void 0:h.emojiMale)&&void 0!==v?v:null==h?void 0:h.emoji,alt:k});break;case"icon-level":p=(0,n.tZ)(a.F8n,{theme:I,variant:null==h?void 0:h.icon,colorVariant:null==h?void 0:h.colorVariant});break;case"first-goal":{let l=(0,r.z)(null==M?void 0:M.goals,K[e.dataKey]);k=null!==(c=null==l?void 0:l.label)&&void 0!==c?c:"",p=(0,n.tZ)(s.Z,{src:(null!==(m=null==M?void 0:M.gender)&&void 0!==m?m:V)==="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)(z,null!==(f=null==M?void 0:M.gender)&&void 0!==f?f:V,!0),i=null===(g=K[e.dataKey])||void 0===g?void 0:g[e.answerKey];k=null!=l?l:"",p=(0,n.tZ)(s.Z,{src:null==i?void 0:i.emoji,alt:k});break}case"body-fats":{let l=(0,d.rK)(z,null!==(w=null==M?void 0:M.gender)&&void 0!==w?w:V,null==M?void 0:M.age),i=null===(x=K[e.dataKey])||void 0===x?void 0:x[e.answerKey];k=null!=l?l:"",p=(0,n.tZ)(s.Z,{src:null==i?void 0:i.emoji,alt:k});break}default:p=(0,n.tZ)(s.Z,{src:(null==M?void 0:M.gender)==="male"&&null!==(_=null==h?void 0:h.emojiMale)&&void 0!==_?_:null==h?void 0:h.emoji,alt:k})}return{title:K[e.titleKey],answer:k,emoji:p}}),P=()=>(null==M?void 0:M.intimate_life_satisfaction)==="very_satisfied"||(null==M?void 0:M.body_confidence_during_intimacy)==="yes_feel_great"||(null==M?void 0:M.feel_during_intimacy)==="comfortable_and_relaxed"?{percent:33,customColor:I.colors.bg.warningMedium,boxTitle:K.boxInfo.average.title,boxText:K.boxInfo.average.text,boxVariant:"yellow",customActiveIndex:1}:{percent:10,customColor:I.colors.bg.errorStrong,boxTitle:K.boxInfo.low.title,boxText:K.boxInfo.low.text,boxVariant:"red",customActiveIndex:0};return(0,n.BX)(a.xn2,{children:[(0,n.tZ)(a.h4i,{label:K.label,theme:I}),(0,n.BX)(y,{children:[(0,n.tZ)(a.xGl,{theme:I,activeBmiCategory:b,topTitle:K.topTitle,levels:K.levels,you:K.you,bmiCategory:E,bmi:z,percent:P().percent,darkMode:H,inverted:!0,customColor:P().customColor,customActiveIndex:P().customActiveIndex,boxVariant:P().boxVariant}),(0,n.tZ)(a.bZj,{theme:I,title:P().boxTitle,description:P().boxText,variant:P().boxVariant,textHasAccentColor:K.infoTextHasAccentColor}),(0,n.tZ)(a.T4e,{theme:I,title1:null===(v=F[0])||void 0===v?void 0:v.title,answer1:null===(c=F[0])||void 0===c?void 0:c.answer,emoji1:null===(m=F[0])||void 0===m?void 0:m.emoji,title2:null===(g=F[1])||void 0===g?void 0:g.title,answer2:null===(f=F[1])||void 0===f?void 0:f.answer,emoji2:null===(x=F[1])||void 0===x?void 0:x.emoji,title3:null===(w=F[2])||void 0===w?void 0:w.title,answer3:null===(_=F[2])||void 0===_?void 0:_.answer,emoji3:null===(h=F[2])||void 0===h?void 0:h.emoji,title4:null===(k=F[3])||void 0===k?void 0:k.title,answer4:null===(p=F[3])||void 0===p?void 0:p.answer,emoji4:null===(Z=F[3])||void 0===Z?void 0:Z.emoji,image:(0,n.tZ)(s.Z,{src:"${bucketUrl}/lifestyle-bodies/female".concat((null==M?void 0:M.age_range)==="y_18_29"||(null==M?void 0:M.age_range)==="y_30_39"?"-under":"-over",".png"),alt:""})})]}),(0,n.tZ)(a.Ps0,{theme:I,children:(0,n.tZ)(a.KMU,{onClick:T,theme:I,hasDarkText:C,children:K.buttonTitle})})]},K.key)};let y=(0,v.Z)("div",{target:"ef5lxwl0"})("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 r},rK:function(){return a}});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%"}],r=(e,l,i)=>{let r=(i?"male"===l?o:n:"male"===l?d:t).find(l=>e&&e>l.min&&e<=l.max);return null==r?void 0:r.key},a=(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.