PageSourceSearch

https://www.suburbandiagnostics.com/_next/static/chunks/pages/bmi-calculator-d13ea5976375308b.js

js suburbandiagnostics.com collected 2026-10-01 16:27:14 UTC 26,719 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5705,1930,6568,2164],{42919:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/bmi-calculator",function(){return s(7e4)}])},45043:function(e,t,s){"use strict";var i=s(85893);s(67294);var l=s(93967),n=s.n(l);let a=(0,s(99036).tv)({base:"cursor-pointer whitespace-nowrap select-none outline-none hover:opacity-90 transition-all duration-300 ease-in-out disabled:opacity-90 disabled:border disabled:shadow-none disabled:!border-[#d9d9d9] disabled:!bg-disable-bg disabled:!text-disable disabled:cursor-not-allowed",variants:{color:{primary:"btn-primary",theme:"bg-theme text-white",previous:"text-black-3D3 border border-black-A2A",dark:"bg-black-8B8 text-white","yellow-light":"bg-purple-500 text-white","success-light":"bg-purple-500 text-white",danger:"bg-danger text-white"},size:{medium:"text-[15px] h-9",small:"text-sm h-7",large:"text-base h-10"},block:{true:"!w-full"},isLoading:{true:"!opacity-50 !cursor-not-allowed"}},compoundVariants:[{size:["medium","small","large"],class:""}],defaultVariants:{size:"medium",color:"primary"}});t.Z=e=>{let{children:t,size:s="medium",color:l="primary",block:d=!1,disabled:r=!1,isLoading:o=!1,className:c="",startIcon:h,endIcon:m,...u}=e;return(0,i.jsxs)("button",{disabled:r,...u,className:n()(c,"relative flex items-center shadow-btnshadow rounded-lg",a({size:s,color:l,isLoading:o,block:d})),children:[!r&&o&&(0,i.jsx)("span",{className:"pl-3",children:(0,i.jsx)("svg",{className:"animate-spin mr-2",viewBox:"0 0 1024 1024",focusable:"false","data-icon":"loading",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:(0,i.jsx)("path",{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"})})}),h&&(0,i.jsx)("span",{className:"h-full pl-3 flex items-center",children:(0,i.jsx)("img",{className:"w-3 h-3",src:h,alt:"startIcon",width:16,height:16})}),(0,i.jsx)("span",{className:"py-1 px-3 text-center flex-grow",children:t}),m&&(0,i.jsx)("div",{className:"bg-theme h-full w-11 rounded-tl-[25px] rounded-r-lg flex items-center justify-center",children:(0,i.jsx)("img",{className:"w-4 h-auto",src:m,alt:"endIcon",width:16,height:16})})]})}},1930:function(e,t,s){"use strict";var i=s(85893);t.Z=e=>{let{className:t="",width:s=16,height:l=16,src:n="",onClick:a}=e;return(0,i.jsx)("img",{src:n,width:s,height:l,alt:"Icon",className:t,onClick:a&&a})}},10804:function(e,t,s){"use strict";s.d(t,{j:function(){return d}});var i=s(85893),l=s(15914),n=s(93967),a=s.n(n);let d=e=>{let{className:t="",children:s=null}=e;return(0,i.jsxs)("span",{className:a()(t,"items-center font-bold"),children:[(0,i.jsx)("span",{children:l.Z.CURRENCY}),s]})}},2019:function(e,t,s){"use strict";var i=s(85893),l=s(98374),n=s(41664),a=s.n(n);s(67294),t.Z=e=>{let{href:t="/",...s}=e;return(0,i.jsxs)(a(),{href:t,...s,className:"text-theme text-[13px] font-medium flex gap-x-2 items-center view_all",children:[(0,i.jsx)("span",{className:"md:text-[16px] text-sm",children:"View All"}),(0,i.jsx)("img",{className:"w-4",src:l.Z.RightArrowView,alt:"Login Img"})]})}},65237:function(e,t,s){"use strict";var i=s(85893),l=s(45043),n=s(40605),a=s(98374),d=s(17590),r=s(52800),o=s(25675),c=s.n(o),h=s(11163);s(67294);var m=s(86455),u=s.n(m);t.Z=e=>{let{data:t}=e,s=(0,h.useRouter)(),{addToCart:o,existInCart:m,removeToCart:x}=(0,r.Z)();async function g(){(null==t?void 0:t.code)&&(m(null==t?void 0:t.code)||await o(t),s.push(n.Z.CART))}return(0,i.jsxs)("div",{className:"flex justify-end gap-2 items-center",children:[m(null==t?void 0:t.code)&&(0,i.jsx)("span",{className:"cursor-pointer",onClick:()=>void u().fire({text:"Are you sure you want to remove the test?",icon:"error",showCancelButton:!0,confirmButtonColor:"#d3615b",cancelButtonColor:"#8B8B8B",width:"350px",confirmButtonText:"Remove"}).then(e=>{e.isConfirmed&&x(null==t?void 0:t.code)}),children:(0,i.jsx)(c(),{src:d.Z.DeleteIcon,className:"w-6 h-6",alt:"",width:24,height:24})}),(0,i.jsx)(l.Z,{endIcon:a.Z.ArrowRight,className:" rounded-lg text-white md:w-[150px] w-[125px] md:text-sm text-xs ",onClick:g,children:(0,i.jsx)("span",{children:m(null==t?void 0:t.code)?"GO TO CART":"BOOK NOW"})})]})}},78389:function(e,t,s){"use strict";var i=s(85893),l=s(15914),n=s(2962),a=s(11163);s(67294);var d=s(2813);t.Z=e=>{var t,s,r;let{data:o,testName:c}=e,{query:h}=(0,a.useRouter)(),m=(0,d.Yi)(),u=((null==h?void 0:h.city)||(null==m?void 0:m.city_name)||"").replace(/-/g," ").replace(/\b\w/g,e=>e.toUpperCase()),x=(null===(t=(0,d.iQ)(c))||void 0===t?void 0:t.replace(/\s+test$/i,""))||"",g={seo_title:"".concat(x," test Price in ").concat(u," - Book Online | Suburban Diagnostics"),seo_description:"Book ".concat(x," test in ").concat(u," with Suburban Diagnostics. Get fast & accurate reports, easy online booking, home sample collection or visit your nearest centre.")},v=(0,a.useRouter)(),p=(null==o?void 0:o.canonical_url)?null==o?void 0:o.canonical_url:"".concat(l.Z.ENV.PUBLIC_BASE_URL).concat(null==v?void 0:null===(s=v.asPath)||void 0===s?void 0:s.split("?")[0]),b=(null===(r=v.asPath)||void 0===r?void 0:r.startsWith("/test-menu/"))&&!o?g:o;
1return(0,i.jsx)(n.PB,{title:null==b?void 0:b.seo_title,description:null==b?void 0:b.seo_description,canonical:p,additionalMetaTags:[{name:"keywords",content:null==b?void 0:b.seo_keywords}],openGraph:{url:p,locale:"en_US",type:"website",title:(null==b?void 0:b.og_meta_title)||(null==b?void 0:b.seo_title),description:(null==b?void 0:b.og_meta_description)||(null==b?void 0:b.seo_description),article:{publishedTime:null==b?void 0:b.createdAt,modifiedTime:null==b?void 0:b.updatedAt},siteName:"Suburban Diagnostics"},twitter:{handle:"@handle",site:"@Suburban-diagnostics",cardType:"summary_large_image"}})}},27757:function(e,t,s){"use strict";var i=s(85893),l=s(93967),n=s.n(l);t.Z=e=>{let{className:t,container:s=!0,content:l}=e;return(0,i.jsx)("div",{className:n()("mt-6",t,{"container mx-auto":s}),children:(0,i.jsx)("div",{className:"bg-white shadow-booktest py-6 px-3 rounded-md tw-reset",dangerouslySetInnerHTML:{__html:l||""}})})}},92164:function(e,t,s){"use strict";s.r(t);var i=s(85893),l=s(67294),n=s(46066),a=s(45852),d=s(96997),r=s(40605),o=s(2019),c=s(12434),h=s(15914);t.default=e=>{let{healthCheckupRef:t,testCodeList:s}=e,{selectedCity:m}=(0,a.I)(),[u,x]=(0,l.useState)([]),{data:g}=(0,d.J)({city_id:null==m?void 0:m.id,page:1,item_id:null==s?void 0:s.join(",")});(0,l.useEffect)(()=>{g&&(null==g?void 0:g.result)&&x(null==g?void 0:g.result)},[g]);var v={infinite:!1,autoplay:!1,dots:!1,speed:500,slidesToShow:3,slidesToScroll:1,arrows:(null==u?void 0:u.length)>1,responsive:[{breakpoint:1280,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:640,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1,arrow:!1}}]};return(0,i.jsxs)("div",{className:"md:mt-10 mt-8 mb-8 md:mb-16",ref:t,children:[(0,i.jsxs)("div",{className:"",children:[(0,i.jsxs)("h1",{className:" text-center text-theme text-xl md:text-2xl font-bold md:mb-5 mb-4 md:leading-10  m-auto  leading-6",children:["Be ",(0,i.jsx)("span",{className:" text-sky",children:"Pro-Health"})," with our ",(0,i.jsx)("br",{}),"ProSelf Health Check-Up Packages"]}),(0,i.jsx)("div",{className:" flex justify-end mb-4",children:(0,i.jsx)(o.Z,{href:r.Z.PACKAGE})})]}),u&&(null==u?void 0:u.length)>0?(0,i.jsx)("div",{className:"flex justify-center items-center lg:mx-8",children:(0,i.jsx)(n.Z,{...v,className:"center_arrow_slider md:w-full w-[82%] flex justify-center",children:u&&(null==u?void 0:u.length)>0&&(null==u?void 0:u.map((e,t)=>{let s="".concat(h.Z.IMAGE_BASE_URL,"/home/homepage/pakages_n/").concat(null==e?void 0:e.item_id,".webp");return(0,i.jsx)(c.Z,{test:e,image:s},"".concat(null==e?void 0:e.test_code).concat(t))}))})}):(0,i.jsx)("div",{className:"col-span-4",children:(0,i.jsx)("p",{className:"text-center font-bold text-xl",children:"Sorry, no packages found"})})]})}},12434:function(e,t,s){"use strict";var i=s(85893),l=s(25675),n=s.n(l),a=s(41664),d=s.n(a),r=s(45852),o=s(98374),c=s(40605),h=s(2813),m=s(10804),u=s(65237);t.Z=e=>{var t;let{test:s,image:l}=e,{selectedCity:a}=(0,r.I)(),x=(0,h.Ch)(s),g=(0,h.qB)(s);return(0,i.jsxs)("div",{className:"bg-homepackages shadow-packages rounded-md 2xl:mx-8 mx-3 h-full",children:[(0,i.jsx)("div",{className:" bg-[#28d5d278] rounded-md",children:(0,i.jsx)(n(),{src:l,unoptimized:!0,width:283,height:188,className:"px-1 pt-1 mx-auto ",alt:(null==s?void 0:s.item_name)||""})}),(0,i.jsxs)("div",{className:"md:pt-3 md:pb-4 pb-3 pt-3 h-full",children:[(0,i.jsx)("div",{className:"bg-sky py-1 px-3 line-clamp-1 leading-7 text-white font-bold rounded-r-md my-2 w-[80%]",children:null==s?void 0:s.item_name}),(0,i.jsx)("div",{className:"px-3 flex-1",children:(0,i.jsxs)("div",{className:"sm:block flex flex-wrap gap-x-6",children:[(null==g?void 0:g.parameterCount)>0&&(0,i.jsxs)("div",{className:"my-2 flex gap-x-2 items-center",children:[(0,i.jsx)("img",{src:o.Z.Parameter,className:"h-5 w-5",alt:"Parameter"}),(0,i.jsxs)("span",{children:[null==g?void 0:g.parameterCount," parameter(s) covered"]})]}),(0,i.jsx)("div",{className:"my-2 flex gap-x-3 items-center justify-end"})]})}),(0,i.jsx)("div",{className:"md:px-3 px-2 flex justify-between items-center",children:(0,i.jsxs)("div",{className:"inline-flex space-x-2 items-center",children:[x&&(0,i.jsx)(m.j,{className:"text-sky-08C font-normal tracking-wider line-through",children:x}),(0,i.jsx)(m.j,{className:"text-theme text-base",children:null==s?void 0:s.price})]})}),(0,i.jsx)("hr",{className:"border-[1.5px] border-blue-094 opacity-40 mt-4"}),(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"md:px-3 px-2 pt-4 flex flex-wrap justify-between items-center gap-3",children:[(0,i.jsx)(u.Z,{data:(0,h.HG)(s),type:"submit",className:"w-[200px] rounded-lg text-white md:text-sm text-xs ",children:"BOOK NOW"}),(0,i.jsx)("div",{className:"",children:(0,i.jsx)(d(),{href:{pathname:"".concat(c.Z.TEST_AND_PACKAGE,"/").concat(null==a?void 0:null===(t=a.city_name)||void 0===t?void 0:t.toLowerCase(),"/").concat((null==s?void 0:s.slug_name)||(null==s?void 0:s.item_id)),query:(null==s?void 0:s.slug_name)?null:{item_id:null==s?void 0:s.item_id}},className:"text-[15px] font-medium text-nowrap items-center gap-1 rounded-md bg-theme py-2 px-2 text-white focus:outline-none data-[hover]:bg-theme data-[focus]:outline-1 data-[focus]:outline-white cursor-pointer",children:"More Details"})})]})})]})]})}},7e4:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return N},default:function(){return y}});var i=s(85893),l=s(78389),n=s(67294),a=s(93967),d=s.n(a),r=s(45043),o=s(1930),c=s(5152),h=s.n(c),m=s(98374),u=s(76267),x=e=>{let{currentStep:t}=e,s=[1,2,3,4];return(0,i.jsx)("div",{className:"flex items-center justify-between",children:s.map((e,l)=>(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)("div",{className:"flex flex-col items-center",children:(0,i.jsx)("div",{className:"w-8 h-8 rounded-full flex items-center justify-center ".concat(t>l?"bg-sky text-white":"bg-gray-200 text-gray-D8D"),children:l+1})}),l<s.length-1&&(0,i.jsx)("div",{className:"flex-1 h-0.5 ".concat(t>l+1?"bg-sky":"bg-gray-D8D")})]},l))})},g=()=>(0,i.jsxs)("div",{className:"flex flex-wrap gap-6 mb-6",children:[(0,i.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,i.jsx)("div",{className:"w-5 h-5 bg-[#5DA2FB]"}),(0,i.jsx)("div",{children:"Under Weight"})]}),(0,i.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,i.jsx)("div",{className:"w-5 h-5 bg-[#65EDA5]"}),(0,i.jsx)("div",{children:"Normal"})]}),(0,i.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,i.jsx)("div",{className:"w-5 h-5 bg-[#FFC340]"}),(0,i.jsx)("div",{children:"Over Weight"})]}),(0,i.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,i.jsx)("div",{className:"w-5 h-5 bg-[#FF3A33]"}),(0,i.jsx)("div",{children:"Obesity"})]})]});let v=h()(()=>Promise.all([s.e(3394),s.e(1998)]).then(s.bind(s,1998)),{loadableGenerated:{webpack:()=>[1998]},ssr:!1});var p=e=>{let{currentValue:t,disabledButton:s,values:l,setValues:a,calculateBmi:c}
1=e,[h,p]=(0,n.useState)(1),[b,j]=(0,n.useState)("");return(0,i.jsxs)("div",{className:"mb-10",children:[(0,i.jsx)("h1",{className:"text-xl text-center font-bold mb-6",children:"BMI Calculator"}),(0,i.jsx)(x,{currentStep:h}),(0,i.jsxs)("div",{className:"mt-6",children:[1===h&&(0,i.jsxs)("div",{className:"shadow-bmi_box py-6 bg-white rounded-md",children:[(0,i.jsx)("h6",{className:"px-6 font-semibold mb-2",children:"Select Gender"}),(0,i.jsx)("hr",{className:"h-1 opacity-60"}),(0,i.jsxs)("div",{className:"px-6",children:[(0,i.jsx)("div",{className:"text-center my-4",children:(0,i.jsx)(o.Z,{src:m.Z.BmiGender,className:"w-24 h-24 mx-auto"})}),(0,i.jsxs)("div",{className:"grid grid-cols-2 gap-6",children:[(0,i.jsx)("div",{className:d()("cursor-pointer text-center p-1 border rounded-md",{"bg-sky-19A text-white":(null==l?void 0:l.gender)==="male"}),onClick:()=>a({...l,gender:"male"}),children:"Male"}),(0,i.jsx)("div",{className:d()("cursor-pointer text-center p-1 mt-1 border rounded-md",{"bg-sky-19A text-white":(null==l?void 0:l.gender)==="female"}),onClick:()=>a({...l,gender:"female"}),children:"Female"})]})]})]}),2===h&&(0,i.jsxs)("div",{className:"shadow-bmi_box py-6 bg-white rounded-md",children:[(0,i.jsx)("h6",{className:"px-6 font-semibold mb-2",children:"Age"}),(0,i.jsx)("hr",{className:"h-1 opacity-60"}),(0,i.jsxs)("div",{className:"px-6",children:[(0,i.jsx)("div",{className:"text-center my-4",children:(0,i.jsx)(o.Z,{src:m.Z.BmiAge,className:"w-24 h-24 mx-auto"})}),(0,i.jsx)("div",{children:(0,i.jsx)("input",{inputMode:"numeric",pattern:"[0-9]*",className:"bmi_input",placeholder:"Age in Yrs.",maxLength:2,value:null==l?void 0:l.age,onChange:e=>a({...l,age:e.target.value}),onInput:u.XK})})]}),b&&(0,i.jsx)("div",{className:"text-xs text-danger mt-1 text-center",children:b})]}),3===h&&(0,i.jsxs)("div",{className:"shadow-bmi_box py-6 bg-white rounded-md",children:[(0,i.jsx)("h6",{className:"px-6 font-semibold mb-2",children:"Height"}),(0,i.jsx)("hr",{className:"h-1 opacity-60"}),(0,i.jsxs)("div",{className:"px-6",children:[(0,i.jsx)("div",{className:"text-center my-4",children:(0,i.jsx)(o.Z,{src:m.Z.BmiHeight,className:"w-24 h-24 mx-auto"})}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("select",{className:"bmi_input",value:null==l?void 0:l.heightUnit,onChange:e=>a({...l,heightUnit:e.target.value,height:"",feet:"",inch:""}),children:[(0,i.jsx)("option",{value:"cm",children:"Cm."}),(0,i.jsx)("option",{value:"feet",children:"Feet"})]}),(null==l?void 0:l.heightUnit)==="cm"?(0,i.jsx)("input",{inputMode:"numeric",pattern:"[0-9]*",className:"bmi_input mt-2",placeholder:"Enter Height",maxLength:3,onInput:u.XK,value:null==l?void 0:l.height,onChange:e=>a({...l,height:e.target.value})}):(0,i.jsxs)("div",{className:"inline-flex gap-2",children:[(0,i.jsx)("input",{inputMode:"numeric",pattern:"[0-9]*",className:"bmi_input mt-2",placeholder:"Feets",maxLength:1,onInput:u.XK,value:null==l?void 0:l.feet,onChange:e=>a({...l,feet:e.target.value})}),(0,i.jsx)("input",{inputMode:"numeric",pattern:"[0-9]*",className:"bmi_input mt-2",placeholder:"Inches",maxLength:2,onInput:u.XK,value:null==l?void 0:l.inch,onChange:e=>a({...l,inch:e.target.value})})]})]})]}),b&&(0,i.jsx)("div",{className:"text-xs text-danger mt-1 text-center",children:b})]}),4===h&&(0,i.jsxs)("div",{className:"shadow-bmi_box py-6 bg-white rounded-md",children:[(0,i.jsx)("h6",{className:"px-6 font-semibold mb-2",children:"Weight"}),(0,i.jsx)("hr",{className:"h-1 opacity-60"}),(0,i.jsxs)("div",{className:"px-6",children:[(0,i.jsx)("div",{className:"text-center my-4",children:(0,i.jsx)(o.Z,{src:m.Z.BmiWeight,className:"w-24 h-24 mx-auto"})}),(0,i.jsx)("div",{children:(0,i.jsx)("input",{inputMode:"numeric",pattern:"[0-9]*",className:"bmi_input",placeholder:"Enter Weight",maxLength:3,value:null==l?void 0:l.weight,onChange:e=>a({...l,weight:e.target.value}),onInput:u.XK})})]}),b&&(0,i.jsx)("div",{className:"text-xs text-danger mt-1 text-center",children:b})]}),5===h&&(0,i.jsxs)("div",{className:"shadow-bmi_box p-6 bg-white rounded-md max-w-sm mx-auto",children:[(0,i.jsx)(g,{}),(0,i.jsx)(v,{currentValue:t})]})]}),(0,i.jsx)("div",{className:"flex justify-center items-center space-x-4 mt-6",children:5===h?(0,i.jsx)(r.Z,{endIcon:m.Z.ArrowRight,onClick:()=>{a({heightUnit:"cm"}),p(1)},children:"Reset"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.Z,{onClick:()=>p(e=>Math.max(e-1,1)),disabled:1===h,color:"previous",startIcon:m.Z.PrevArrow,children:"Previous"}),4===h?(0,i.jsx)(r.Z,{disabled:s(),endIcon:m.Z.ArrowRight,onClick:()=>{c(),p(e=>e+1)},children:"Calculate"}):(0,i.jsx)(r.Z,{disabled:1===h&&(null==l||!l.gender)||2===h&&(null==l||!l.age)||3===h&&!l.height&&(null==l||!l.inch||null==l||!l.feet)||4===h&&(null==l||!l.weight),endIcon:m.Z.ArrowRight,onClick:function(){let e;let t=(e="",(null==l?void 0:l.age)>99&&2===h?e="Age should be less than or equal 99 years":(null==l?void 0:l.age)<1&&2===h?e="Age should be min 1 years":(null==l?void 0:l.weight)>200&&4===h?e="Weight should be less than or equal 200 kg":(null==l?void 0:l.weight)<3&&4===h?e="Weight should be min 3 kg":(null==l?void 0:l.height)>350&&(null==l?void 0:l.heightUnit)==="cm"&&3===h?e="Height should be less than or equal 350 cm":(null==l?void 0:l.height)<50&&(null==l?void 0:l.heightUnit)==="cm"&&3===h?e="Height should be min 50 cm":(null==l?void 0:l.inch
1)>12&&(null==l?void 0:l.heightUnit)==="feet"&&3===h?e="Inch should be between 0 to 12":(null==l?void 0:l.heightUnit)==="feet"&&(null==l?void 0:l.feet)>8&&3===h?e="Feet should be less than or equal to 8":(null==l?void 0:l.inch)<1&&(null==l?void 0:l.heightUnit)==="feet"&&3===h&&(e="Feet should be min 1"),e);j(t),t||p(e=>Math.min(e+1,4))},children:"Next"})]})})]})};let b=h()(()=>Promise.all([s.e(3394),s.e(1998)]).then(s.bind(s,1998)),{loadableGenerated:{webpack:()=>[1998]},ssr:!1});var j=e=>{let{currentValue:t,disabledButton:s,values:l,errors:n,setValues:a,calculateBmi:c}=e;return(0,i.jsxs)("div",{className:"mb-10 bg-sky-CCE py-10 px-6 rounded-lg",children:[(0,i.jsx)("div",{className:"mx-auto",children:(0,i.jsx)(g,{})}),(0,i.jsx)("div",{className:"mx-auto max-w-sm",children:(0,i.jsx)(b,{currentValue:t})}),(0,i.jsx)("p",{className:"text-lg text-center mb-3 mt-1",children:"Body Mass Index"}),(0,i.jsx)("h1",{className:"text-2xl text-center font-bold mb-6",children:"BMI Calculator"}),(0,i.jsxs)("div",{className:"mt-6 xl:w-11/12 w-full mx-auto grid grid-cols-4 gap-3",children:[(0,i.jsxs)("div",{className:"shadow-bmi_box px-3 py-3 bg-white rounded-md",children:[(0,i.jsx)("h6",{className:"text-center mb-2 font-medium",children:"Select Gender"}),(0,i.jsxs)("div",{className:"grid grid-cols-[50px_auto] items-center gap-3",children:[(0,i.jsx)("span",{children:(0,i.jsx)(o.Z,{src:m.Z.BmiGender,className:"w-12 h-12"})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:d()("cursor-pointer text-center p-1 border rounded-md",{"bg-sky-19A text-white":(null==l?void 0:l.gender)==="male"}),onClick:()=>a({...l,gender:"male"}),children:"Male"}),(0,i.jsx)("div",{className:d()("cursor-pointer text-center p-1 mt-1 border rounded-md",{"bg-sky-19A text-white":(null==l?void 0:l.gender)==="female"}),onClick:()=>a({...l,gender:"female"}),children:"Female"})]})]})]}),(0,i.jsxs)("div",{className:"shadow-bmi_box px-3 py-3 bg-white rounded-md",children:[(0,i.jsx)("h6",{className:"text-center mb-2 font-medium",children:"Age"}),(0,i.jsxs)("div",{className:"grid grid-cols-[50px_auto] items-center gap-3",children:[(0,i.jsx)("span",{children:(0,i.jsx)(o.Z,{src:m.Z.BmiAge,className:"w-12 h-12"})}),(0,i.jsx)("div",{children:(0,i.jsx)("input",{inputMode:"numeric",pattern:"[0-9]*",className:"bmi_input",placeholder:"Age in Yrs.",maxLength:2,value:null==l?void 0:l.age,onChange:e=>a({...l,age:e.target.value}),onInput:u.XK})})]}),(null==n?void 0:n.age)&&(0,i.jsx)("div",{className:"text-xs text-danger mt-1 text-right",children:null==n?void 0:n.age})]}),(0,i.jsxs)("div",{className:"shadow-bmi_box px-3 py-3 bg-white rounded-md",children:[(0,i.jsx)("h6",{className:"text-center mb-2 font-medium",children:"Height"}),(0,i.jsxs)("div",{className:"grid grid-cols-[50px_auto] items-center gap-3",children:[(0,i.jsx)("span",{children:(0,i.jsx)(o.Z,{src:m.Z.BmiHeight,className:"w-12 h-12"})}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("select",{className:"bmi_input",value:null==l?void 0:l.heightUnit,onChange:e=>a({...l,heightUnit:e.target.value,height:"",feet:"",inch:""}),children:[(0,i.jsx)("option",{value:"cm",children:"Cm."}),(0,i.jsx)("option",{value:"feet",children:"Feet"})]}),(null==l?void 0:l.heightUnit)==="cm"?(0,i.jsx)("input",{inputMode:"numeric",pattern:"[0-9]*",className:"bmi_input mt-2",placeholder:"Enter Height",maxLength:3,onInput:u.XK,value:null==l?void 0:l.height,onChange:e=>a({...l,height:e.target.value})}):(0,i.jsxs)("div",{className:"inline-flex gap-2",children:[(0,i.jsx)("input",{inputMode:"numeric",pattern:"[0-9]*",className:"bmi_input mt-2",placeholder:"Feets",maxLength:1,onInput:u.XK,value:null==l?void 0:l.feet,onChange:e=>a({...l,feet:e.target.value})}),(0,i.jsx)("input",{inputMode:"numeric",pattern:"[0-9]*",className:"bmi_input mt-2",placeholder:"Inches",maxLength:2,onInput:u.XK,value:null==l?void 0:l.inch,onChange:e=>a({...l,inch:e.target.value})})]})]})]}),(null==n?void 0:n.height)&&(0,i.jsx)("div",{className:"text-xs text-danger mt-1 text-right",children:null==n?void 0:n.height})]}),(0,i.jsxs)("div",{className:"shadow-bmi_box px-3 py-3 bg-white rounded-md",children:[(0,i.jsx)("h6",{className:"text-center mb-2 font-medium",children:"Weight"}),(0,i.jsxs)("div",{className:"grid grid-cols-[50px_auto] items-center gap-3",children:[(0,i.jsx)("span",{children:(0,i.jsx)(o.Z,{src:m.Z.BmiWeight,className:"w-12 h-12"})}),(0,i.jsx)("div",{children:(0,i.jsx)("input",{inputMode:"numeric",pattern:"[0-9]*",className:"bmi_input",placeholder:"Enter Weight",maxLength:3,value:null==l?void 0:l.weight,onChange:e=>a({...l,weight:e.target.value}),onInput:u.XK})})]}),(null==n?void 0:n.weight)&&(0,i.jsx)("div",{className:"text-xs text-danger mt-1 text-right",children:null==n?void 0:n.weight})]})]}),(0,i.jsx)("div",{className:"flex justify-center mt-10",children:(0,i.jsx)(r.Z,{disabled:s(),endIcon:m.Z.ArrowRight,onClick:()=>c(),children:"Calculate"})})]})},f=s(92164),w=s(27757),N=!0,y=e=>{let{seoData:t}
1=e,[s,a]=(0,n.useState)({heightUnit:"cm"}),[d,r]=(0,n.useState)(0),[o,c]=(0,n.useState)({}),[h,m]=(0,n.useState)(!1);function u(){return null==s||!s.age||null==s||!s.gender||!s.height&&(null==s||!s.inch||null==s||!s.feet)||null==s||!s.weight}function x(){var e;let t={};if((null==s?void 0:s.age)>99?t.age="Age should be less than or equal 99 years":(null==s?void 0:s.age)<1&&(t.age="Age should be min 1 years"),(null==s?void 0:s.weight)>200?t.weight="Weight should be less than or equal 200 kg":(null==s?void 0:s.weight)<3&&(t.weight="Weight should be min 3 kg"),(null==s?void 0:s.height)>350&&(null==s?void 0:s.heightUnit)==="cm"?t.height="Height should be less than or equal 350 cm":(null==s?void 0:s.height)<50&&(null==s?void 0:s.heightUnit)==="cm"&&(t.height="Height should be min 50 cm"),(null==s?void 0:s.inch)>12&&(null==s?void 0:s.heightUnit)==="feet"?t.height="Inch should be between 0 to 12":(null==s?void 0:s.heightUnit)==="feet"&&(null==s?void 0:s.feet)>8?t.height="Feet should be less than or equal to 8":(null==s?void 0:s.inch)<1&&(null==s?void 0:s.heightUnit)==="feet"&&(t.height="Feet should be min 1"),c(t),(null===(e=Object.values(t))||void 0===e?void 0:e.length)===0){let e=0;if((null==s?void 0:s.heightUnit)==="cm")e=Number(null==s?void 0:s.weight)/(1e-4*Number(null==s?void 0:s.height)*Number(null==s?void 0:s.height));else{let t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return 30.48*e+2.54*t}(Number(null==s?void 0:s.feet),Number(null==s?void 0:s.inch));e=Number(null==s?void 0:s.weight)/(1e-4*t*t)}r(e),m(!0)}else r(0)}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.Z,{data:t}),(0,i.jsxs)("div",{className:"mt-6 text-black-0F0",children:[(0,i.jsx)("div",{className:"lg:block hidden container",children:(0,i.jsx)(j,{currentValue:d,disabledButton:u,errors:o,values:s,setValues:a,calculateBmi:x})}),(0,i.jsx)("div",{className:"lg:hidden block container",children:(0,i.jsx)(p,{currentValue:d,disabledButton:u,errors:o,values:s,setValues:a,calculateBmi:x})}),h&&(0,i.jsx)("div",{className:"bg-[#d3f2f4] py-0.5 mb-6 lg:mb-10 ",children:(0,i.jsx)("div",{className:"container",children:(0,i.jsx)(f.default,{testCodeList:["PRF6372","PRF6375","PRF6377","PRF6378","PRF6379","PRF6380","PRF6381","PRF6382","PRF7740","PRF7737","PRF7738","PRF7739"]})})}),(0,i.jsx)("div",{className:"container",children:(0,i.jsxs)("div",{className:"lg:p-6 p-4 bg-[#F5F5F5] shadow-lg rounded-lg ",children:[(0,i.jsx)("h1",{className:"text-theme text-2xl mb-2 font-bold",children:"Introduction to the Body Mass Index (BMI)"}),(0,i.jsxs)("p",{className:"mb-3",children:["Body mass index (bmi) is widely used as an indicator of body fat content. your weight alone is not sufficient to establish if you are in a healthy weight range. for example, a tall but slender person can weigh more than a short but plump individual. but the former may enjoy better health as long as their weight is suitable for their height."," "]}),(0,i.jsxs)("p",{className:"mb-3",children:[" ","The ideal weight is also likely to differ for men and women of similar heights. How then do you know whether you fall in the healthy weight range or not? your bmi solves this confusion. it correlates your weight with your height and evaluates whether your weight is appropriate for your stature. you can use a BMI calculator to find out your bmi."]}),(0,i.jsxs)("p",{className:"mb-3",children:[" ","Although not an exact measurement of body fat percentage, in most cases, bmi is a reliable tool for establishing risk levels for illnesses, especially ailments related to excess body fat. many healthcare professionals use bmi to determine effective doses for medicines. often people with a higher BMI need higher doses. hence, it is crucial to be aware of your BMI to ensure your overall wellness."]})]})})]}),(null==t?void 0:t.page_content)&&(0,i.jsx)(w.Z,{content:null==t?void 0:t.page_content})]})}}},function(e){e.O(0,[8166,9036,6310,6066,6267,2888,9774,179],function(){return e(e.s=42919)}),_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.