1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4269,8268,8932],{3409:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/calculators/bmr",function(){return a(73176)}])},9337:()=>{},11833:e=>{e.exports={inputHighlight:"bmr_inputHighlight__B_FYV",fontStyle:"bmr_fontStyle__G0_Vj",healthRail:"bmr_healthRail__oudlm",moreText:"bmr_moreText__2745j",seoText:"bmr_seoText__iWKW1",collapsed:"bmr_collapsed__waIkV",newsSticky:"bmr_newsSticky__xC9w2"}},12688:()=>{},21456:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var l=a(37876),r=a(14232),o=a(95062),n=a.n(o);function s(e){var t;let{label:a,name:o,value:n,options:s,error:i,onChange:c,openField:d,setOpenField:u}=e,m=(0,r.useRef)(null),[p,h]=(0,r.useState)(200),g=d===o;(0,r.useEffect)(()=>{let e=e=>{!m.current||m.current.contains(e.target)||e.target.closest(".dropdown-option")||u(null)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[u]);let b="select-dropdown-".concat(o);return(0,l.jsxs)("div",{className:"relative w-full",children:[(0,l.jsxs)("div",{ref:m,onMouseDown:e=>{e.stopPropagation(),(()=>{if(g)u(null);else{var e;u(o);let t=document.getElementById("navBarContainer"),a=(null==t?void 0:t.getBoundingClientRect().top)||window.innerHeight,l=a-((null==(e=m.current)?void 0:e.getBoundingClientRect().bottom)||0)-16;h(l>50?l:50)}})()},className:"relative border rounded-xl w-full cursor-pointer flex items-center px-4 h-14\n ".concat(i?"border-red-500":g?"border-blue-400 ring-1 ring-blue-300":"border-gray-300"," \n bg-white transition-all duration-200 ease-in-out"),children:[(0,l.jsx)("label",{className:"absolute right-4 text-gray-500 transition-all bg-white px-1 pointer-events-none\n ".concat(n?"-top-2 text-xs":"top-1/2 text-base -translate-y-1/2"),children:a}),n&&(0,l.jsx)("span",{className:"absolute right-4 text-sm p-2 top-1/2 -translate-y-1/2 text-base truncate w-[82%]",dir:"rtl",children:(null==(t=s.filter(e=>e.value===n)[0])?void 0:t.label)||n}),(0,l.jsx)("svg",{className:"w-5 h-5 absolute left-4 top-1/2 -translate-y-1/2 transition-transform ".concat(g?"rotate-180":"rotate-0"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),g&&(0,l.jsxs)("div",{className:"absolute left-0 w-full mt-1 z-50 rounded-xl border border-gray-300 bg-white shadow-md overflow-hidden",children:[(0,l.jsx)("ul",{className:"w-full overflow-auto list-none m-0 p-0 ".concat(b),style:{maxHeight:p},children:s.map(e=>(0,l.jsxs)("li",{onClick:()=>{c({target:{name:o,value:e.value||e}}),u(null)},className:"flex justify-between items-center px-4 py-3 hover:bg-gray-100 active:bg-gray-200 rounded-md cursor-pointer dropdown-option w-full",children:[(0,l.jsx)("span",{children:e.label||e}),(n===e||n===e.value)&&(0,l.jsx)("svg",{className:"w-4 h-4 text-blue-500",fill:"currentColor",viewBox:"0 0 20 20",children:(0,l.jsx)("path",{d:"M16.707 5.293a1 1 0 00-1.414 0L9 11.586 5.707 8.293a1 1 0 00-1.414 1.414l4 4a1 1 0 001.414 0l7-7a1 1 0 000-1.414z"})})]},e.value||e))}),(0,l.jsx)("style",{children:"\n .".concat(b,"::-webkit-scrollbar { width: 8px; }\n .").concat(b,"::-webkit-scrollbar-thumb {\n background-color: rgba(0,0,0,0.2);\n border-radius: 4px;\n }\n .").concat(b,"::-webkit-scrollbar-track { background: transparent; }\n ")})]}),(0,l.jsx)("div",{className:"min-h-[24px] mt-2 text-[#FF1E2A] text-sm",children:i})]})}s.propTypes={label:n().string,name:n().string.isRequired,value:n().string,options:n().arrayOf(n().string),error:n().string,onChange:n().func.isRequired,openField:n().string,setOpenField:n().func.isRequired}},39391:(e,t,a)=>{"use strict";a.d(t,{c:()=>o});var l=a(18863),r=a(34321);let o=(e,t,a)=>({type:l.MD,payload:{request:{url:t?"".concat(r.Gp).concat(e,"&id=").concat(a):"".concat(r.Gp).concat(e)}}})},43753:()=>{},59160:e=>{e.exports={appTabsContainer:"AppTabs_appTabsContainer__0Uzng",appTabsContainerTitle:"AppTabs_appTabsContainerTitle__QdW8V",tabSections:"AppTabs_tabSections__DUlSZ",activeTabSections:"AppTabs_activeTabSections__JL4gg",activeTabSectionsSports:"AppTabs_activeTabSectionsSports__8HjzR",activeTabSectionsEconomy:"AppTabs_activeTabSectionsEconomy__hXvjU",activeTabSectionData:"AppTabs_activeTabSectionData__iZ8gN",tabSectionsText:"AppTabs_tabSectionsText__nnYt4",borderBottom:"AppTabs_borderBottom__4ISm_",borderBottomNone:"AppTabs_borderBottomNone__fz97F",t
1itleText:"AppTabs_titleText__sQz_G",createdDate:"AppTabs_createdDate__QKkdL",createdDateisXMobile:"AppTabs_createdDateisXMobile__IJMMV",moreButton:"AppTabs_moreButton__3KPPI",yellowText:"AppTabs_yellowText__t12oo",economyText:"AppTabs_economyText__UKnUP",whiteText:"AppTabs_whiteText__hbTCd",sportsBorder:"AppTabs_sportsBorder__cR28h"}},73176:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>R,default:()=>B});var l=a(37876),r=a(14232),o=a(1105),n=a(93387),s=a(39391),i=a(95062),c=a.n(i),d=a(11833),u=a.n(d),m=a(17851),p=a(26548),h=a(50223),g=a(39091),b=a(85887),x=a(34321),v=a(4168),_=a(55857),w=a(26361),f=a(65754),y=a(13042),T=a(88484),j=a(21456);let N=g.Ik({height:g.ai().required("Ø§ÙØ±Ø¬Ø§Ø¡ إدخا٠طÙÙÙ").test("height-range","Ø§ÙØ·ÙÙ ÙØ¬Ø¨ Ø£Ù ÙÙÙ٠بÙÙ 50 سÙ
Ù 250 سÙ
.",e=>e>=50&&e<=250),weight:g.ai().required("Ø§ÙØ±Ø¬Ø§Ø¡ Ø¥Ø¯Ø®Ø§Ù ÙØ²ÙÙ").test("weight-range","اÙÙØ²Ù ÙØ¬Ø¨ Ø£Ù ÙÙÙ٠بÙÙ 20 ÙØ¬Ù
Ù 300 ÙØ¬Ù
.",e=>e>=20&&e<=300),age:g.ai().required("Ø§ÙØ±Ø¬Ø§Ø¡ إدخا٠عÙ
رÙ").test("age-range","Ø§ÙØ¹Ù
ر ÙØ¬Ø¨ Ø£Ù ÙÙÙ٠بÙÙ 10 سÙÙØ§Øª Ù 120 Ø³ÙØ©.",e=>e>=10&&e<=120),gender:g.Yj().oneOf(["male","female"],"Ø§ÙØ±Ø¬Ø§Ø¡ Ø¥Ø¯Ø®Ø§Ù Ø¬ÙØ³Ù").required("Ø§ÙØ±Ø¬Ø§Ø¡ Ø¥Ø¯Ø®Ø§Ù Ø¬ÙØ³Ù"),workout:g.Yj().oneOf(["sedentary","light","moderate","active","very_active"],"Ø§ÙØ±Ø¬Ø§Ø¡ Ø§Ø®ØªÙØ§Ø± Ù
ستÙÙ ÙØ´Ø§Ø·Ù").required("Ø§ÙØ±Ø¬Ø§Ø¡ Ø§Ø®ØªÙØ§Ø± Ù
ستÙÙ ÙØ´Ø§Ø·Ù")}),A=[{label:"Ø°ÙØ±",value:"male"},{label:"Ø§ÙØ«Ù",value:"female"}],S=[{label:"ØºÙØ± ÙØ´Ø· (ÙÙÙÙ/ÙØ§ ÙÙ
ارس أ٠تÙ
ارÙÙ)",value:"sedentary"},{label:"ÙØ´Ø· بشÙÙ Ø®ÙÙÙ (ÙÙ
ارس Ø§ÙØ±Ùاضة Ù
Ù 1 Ø¥ÙÙ 3 Ø£ÙØ§Ù
ÙÙ Ø§ÙØ£Ø³Ø¨Ùع)",value:"light"},{label:"ÙØ´Ø· بشÙÙ Ù
عتد٠(ÙÙ
ارس Ø§ÙØ±Ùاضة Ù
Ù 3 Ø¥ÙÙ 5 Ø£ÙØ§Ù
ÙÙ Ø§ÙØ£Ø³Ø¨Ùع)",value:"moderate"},{label:"ÙØ´Ø· (ÙÙ
ارس Ø§ÙØ±Ùاضة Ù
Ù 6 Ø¥ÙÙ 7 Ø£ÙØ§Ù
ÙÙ Ø§ÙØ£Ø³Ø¨Ùع)",value:"active"},{label:"ÙØ´Ø· Ø¬Ø¯ÙØ§ (ÙÙ
ارس Ø§ÙØ±Ùاضة بشÙÙ Ù
ÙØ«Ù Ø¬Ø¯ÙØ§)",value:"very_active"}],C={DEV:"3",STAGING:"15",PROD:"638944300664525"},k={DEV:"economy",STAGING:"Ø§ÙØªÙÙÙÙÙØ¬Ùا",PROD:"health"};var R=!0;function B(e){var t,a;let{seoText:i}=e,{result:c}=(0,o.d4)(e=>e.latest),{result:d}=(0,o.d4)(e=>e.mostRead),g=(0,o.wA)(),{isMobile:R}=(0,w.A)(),[B,P]=(0,r.useState)([]),[I,E]=(0,r.useState)(null),D=async()=>{var e,t;let a=await fetch("".concat(null===v.A||void 0===v.A?void 0:v.A.apiUrl).concat(x.Zx,"/").concat(C[v.A.env])),l=await a.json(),r=null==l||null==(t=l.data)||null==(e=t.result)?void 0:e.find(e=>{let{type:t}=e;return"articles"===t});P(null==r?void 0:r.data)};(0,r.useEffect)(()=>{D()},[]);let M=window.matchMedia("(max-width: 768px)").matches;return(0,r.useEffect)(()=>{M||(g((0,n.S4)(6,1)),g((0,s.c)(6)))},[g]),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row justify-center lg:items-start sm:gap-6",children:[(0,l.jsx)("div",{className:"sm:flex-1 w-full",children:(0,l.jsx)(h.l1,{initialValues:{height:"",weight:"",age:"",gender:"",workout:"",bmrResult:"",calorieSummary:""},validationSchema:N,onSubmit:(e,t)=>{let{setFieldValue:a,setSubmitting:l}=t,{height:r,weight:o,age:n,gender:s,workout:i}=e,c=parseFloat(r),d=parseFloat(o),u=parseInt(n,10),m=Math.round(("male"===s?10*d+6.25*c-5*u+5:10*d+6.25*c-5*u-161)*(({sedentary:1.2,light:1.375,moderate:1.55,active:1.725,very_active:1.9})[i]||1.2));a("bmrResult","".concat(m," سعرات ØØ±Ø§Ø±ÙØ© / ÙÙÙ
")),a("calorieSummary"," Ø£ÙØª ØªØØªØ§Ø¬ ".concat(m-500," سعرات ØØ±Ø§Ø±ÙØ© / ÙÙÙ
ÙØ¥ÙÙØ§Øµ ÙØ²ÙÙ 0.5 ÙØ¬Ù
ÙÙ Ø§Ø³Ø¨ÙØ¹\n Ø£ÙØª ØªØØªØ§Ø¬ ").concat(m-1e3," سعرات ØØ±Ø§Ø±ÙØ© / ÙÙÙ
ÙØ¥ÙÙØ§Øµ ÙØ²ÙÙ 1 ÙØ¬Ù
ÙÙ Ø§Ø³Ø¨ÙØ¹\n Ø£ÙØª ØªØØªØ§Ø¬ ").concat(m+500," سعرات ØØ±Ø§Ø±ÙØ© / ÙÙÙ
ÙØ²Ùادة ÙØ²ÙÙ 0.5 ÙØ¬Ù
ÙÙ Ø§Ø³Ø¨ÙØ¹\n Ø£ÙØª ØªØØªØ§Ø¬ ").concat(m+1e3," سعرات ØØ±Ø§Ø±ÙØ© / ÙÙÙ
ÙØ²Ùادة ÙØ²ÙÙ 1 ÙØ¬Ù
ÙÙ Ø§Ø³Ø¨ÙØ¹\n ")),l(!1)},children:e=>{let{values:t,handleChange:a,handleBlur:r,errors:o,touched:n,handleSubmit:s,resetForm:i}=e;return(0,l.jsxs)("form",{onSubmit:s,className:"flex flex-col justify-center items-start gap-6 bg-[#dbdbdb] p-6 rounded-2xl",children:[(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row gap-6 w-full",children:[(0,l.jsxs)("div",{className:"bg-white rounded-2xl shadow-md w-full lg:w-2/3 p-6",children:[(0,l.jsx)("h1",{className:"text-3xl font-bold text-gray-800 mb
1-5 text-center sm:text-right",children:"ØØ§Ø³Ø¨Ø© Ø§ÙØ³Ø¹Ø±Ø§Øª Ø§ÙØØ±Ø§Ø±ÙØ© ÙÙØ¬Ø³Ù
"}),(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,l.jsx)(j.A,{label:"اختر Ø§ÙØ¬Ùس",name:"gender",labelId:"gender",value:t.gender,onChange:a,className:u().fontStyle,options:A,openField:I,setOpenField:E,error:o.gender}),(0,l.jsx)(j.A,{label:"Ù
ستÙ٠اÙÙØ´Ø§Ø·",labelId:"workout",name:"workout",value:t.workout,onChange:a,className:u().fontStyle,options:S,openField:I,setOpenField:E,error:o.workout}),(0,l.jsx)(p.default,{id:"height",className:u().inputHighlight,variant:"outlined",label:"Ø§ÙØ·ÙÙ (سÙ
)",color:"secondary",removeInputPaddingLeft:!0,removeInputPaddingRight:!0,borderColor:"white",name:"height",colorText:m.A.primary,onBlur:r,error:n.height&&o.height,value:t.height,onChange:e=>{a({target:{name:"height",value:e.target.value.replace(/[^0-9\u0660-\u0669]/g,"").replace(/[\u0660-\u0669]/g,e=>e.charCodeAt(0)-1632)}})}}),(0,l.jsx)(p.default,{id:"weight",variant:"outlined",label:"اÙÙØ²Ù (ÙØ¬Ù
)",color:"secondary",removeInputPaddingLeft:!0,removeInputPaddingRight:!0,borderColor:"white",name:"weight",colorText:m.A.primary,onChange:e=>{a({target:{name:"weight",value:e.target.value.replace(/[^0-9\u0660-\u0669]/g,"").replace(/[\u0660-\u0669]/g,e=>e.charCodeAt(0)-1632)}})},onBlur:r,error:n.weight&&o.weight,value:t.weight}),(0,l.jsx)(p.default,{id:"age",variant:"outlined",label:"Ø§ÙØ¹Ù
ر (سÙÙØ§Øª)",color:"secondary",removeInputPaddingLeft:!0,removeInputPaddingRight:!0,borderColor:"white",name:"age",colorText:m.A.primary,onChange:e=>{a({target:{name:"age",value:e.target.value.replace(/[^0-9\u0660-\u0669]/g,"").replace(/[\u0660-\u0669]/g,e=>e.charCodeAt(0)-1632)}})},onBlur:r,error:n.age&&o.age,value:t.age}),(0,l.jsx)("div",{className:"col-span-1 md:col-span-2 mt-4",children:(0,l.jsx)(f.A,{type:"submit",variant:"contained",className:u().fontStyle,fullWidth:!0,sx:{backgroundColor:"black",color:"white",fontWeight:"bold",py:1.5,borderRadius:"10px"},children:"Ø§ØØ³Ø¨"})})]})]}),(0,l.jsxs)("div",{className:"bg-white rounded-2xl shadow-md w-full lg:w-1/3 p-6 justify-center flex flex-col content-center",children:[(0,l.jsx)("h2",{className:"text-xl font-semibold text-gray-800 text-center",children:"Ø§ØØªÙاجات٠اÙÙÙÙ
ÙØ© Ù
Ù Ø§ÙØ³Ø¹Ø±Ø§Øª Ø§ÙØØ±Ø§Ø±ÙØ© ÙÙ"}),(0,l.jsx)("div",{className:"bg-gray-100 rounded-md p-4 mt-2 mb-2 text-gray-700 font-medium text-xl text-center",children:t.bmrResult||" سعرة ØØ±Ø§Ø±ÙØ© 0"}),(0,l.jsx)(f.A,{variant:"contained",className:u().fontStyle,fullWidth:!0,sx:{backgroundColor:"black",color:"white",fontWeight:"bold",mt:2,py:1.5,borderRadius:"10px"},onClick:()=>i(),children:"Ø§ØØ³Ø¨ Ù
Ù Ø¬Ø¯ÙØ¯"})]})]}),t.calorieSummary&&(0,l.jsxs)("div",{className:"w-full",children:[(0,l.jsx)("h2",{className:"text-xl font-bold text-gray-800 mb-4 text-center lg:text-right",children:"ÙØªØ§Ø¦Ø¬ اÙÙÙØ§Ø³Ø§Øª Ø§ÙØ´Ø®ØµÙØ©"}),(0,l.jsx)("p",{className:"text-gray-500 text-sm lg:text-xl whitespace-pre-line text-center lg:text-right",children:t.calorieSummary})]})]})}})}),(0,l.jsx)("div",{className:"lg:ml-6 ".concat(u().newsSticky," lg:w-[300px] md:hidden xl:block"),children:((null==c||null==(t=c.data)?void 0:t.length)>0||(null==d||null==(a=d.data)?void 0:a.length)>0)&&(0,l.jsx)(b.default,{tabsNews:[c,d]})})]}),i.length>0&&(0,l.jsx)(T.default,{children:(0,y.Ay)(i)}),(null==B?void 0:B.length)>0&&(0,l.jsx)(_.default,{isCustom:!0,isCategories:"".concat(C[v.A.env],"-").concat(k[v.A.env]),list:B,listTitle:"آخر Ù
ÙØ§Ùات Ø§ÙØµØØ©",isMobile:!0,className:u().healthRail})]})}B.propTypes={seoText:c().string},B.defaultProps={seoText:""}},77411:()=>{},85887:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>v});var l=a(37876),r=a(14232),o=a(62034),n=a(88484),s=a(15039),i=a.n(s),c=a(79316),d=a(95062),u=a.n(d),m=a(66906),p=a(94692),h=a(26361),g=a(59160),b=a.n(g),x=a(77324);function v(e){var t,a;let{tabsNews:s,isHomePageLatest:d,isHomePageMostRead:u,isInArticlesPage:g,isSports:v,isEconomy:_}=e,[w,f]=(0,r.useState)(0),{isXMobile:y}=(0,h.A)(),T=(0,r.useCallback)(e=>()=>{f(e)},[]);return(0,l.jsxs)(o.A,{className:b().appTabsContainer,children:[(0,l.jsx)(o.A,{display:"flex",className:b().appTabsContainerTitle,justifyContent:"center",children:null==s?void 0:s.map((e,t)=>(0,l.jsx)(o.A,{width:1,id:0===t?"latest_news_".concat(d?"homepage":"sidebar"):"most_read_".concat(u?"homepage":"sidebar"),onClickCapture:T(t),className:i()(b().tabSections,{[b().sportsBorder]:v||_,[b().activeTabSections]:w===t,[b().activeTabSectionsSports]:v&&w===t,[b().activeTabSectionsEconomy]:_&&w===t}),borderLeft:+(t!==s.length-1),borderBottom:1,children:(0,l.jsx)(n.default,{id:0===t?"latest_news_".concat(d?"homepage":"sidebar"):"most_read_".concat(u?"homepage":"sidebar"),className:v?b().yellowText:_?b().economyText:"",children:null==e?void 0:e.title})},"".concat(null==e?void 0:e.title,"-").concat(t)))}),(0,l.jsx)(o.A,{mt:15/8,className:b().activeTabSectionData,id:0===w?"latest_news_".concat(d?"homepage":"sidebar"):"most_read_".concat(u?"homepage":"sidebar"),children:null==(a=s[w])||null==(t=a.data)?void 0:t.map((e,t)=>{var a,r;let{title:c,slug:d,id:u,createdDate:h,categorySlug:f,categoryId:T}=e;return(0,l.jsx)(o.A,{id:u,mb:5/8,pb:5/8,mt:1.25,className:i()(b().tabSectionsText,b().borderBottom,{[b().sportsBorder]:v||_,[b().borderBottomNone]:t===(null==(r=s[w])||null==(a=r.data)?void 0:a.length)-1}),children:(0,l.jsxs)(x.default,{to:"".concat(p.Ay.articleDetails,"/").concat(T,"-").concat(f,"/").concat(u,"-").concat(d),children:[h&&!g&&y&&(0,l.jsx)(n.default,{className:i()(b().createdDate,b().createdDateisXMobile,{[b().whiteText]:v||_}),children:(0,m.Ay)(h)}),(0,l.jsx)(n.default,{maxTwoRows:!0,paragraph:y,className:i()({[b().titleText]:!y,[b().whiteText]:v||_}),children:c}),h&&!y&&!g&&(0,l.jsx)(n.default,{className:i()(b().createdDate,{[b().whiteText]:v||_}),children:(0,m.Ay)(h)})]})},parseInt(u,10)*Math.random())})}),0===w&&(0,l.jsx)(o.A,{display:"flex",justifyContent:"end",mt:1.25,width:"100%",children:(0,l.jsx)(x.default,{to:p.Ay.latestNews,isHover:!0,children:(0,l.jsx)(c.default,{id:"latestNewsButton",variant:"text",color:"secondary",className:i()(b().moreButton,{[b().yellowText]:v,[b().economyText]:_}),notListen:!0,children:"اÙÙ
Ø²ÙØ¯"})})})]})}
1v.propTypes={tabsNews:u().array.isRequired,isHomePageLatest:u().bool,isHomePageMostRead:u().bool,isInArticlesPage:u().bool,isSports:u().bool,isEconomy:u().bool},v.defaultProps={isHomePageLatest:!1,isHomePageMostRead:!1,isInArticlesPage:!1,isSports:!1,isEconomy:!1}},92841:()=>{},93387:(e,t,a)=>{"use strict";a.d(t,{M2:()=>n,S4:()=>o});var l=a(9291),r=a(34321);let o=(e,t,a,o)=>({type:l.N7,payload:{request:{url:a?"".concat(r.G5,"?id=").concat(o):r.G5,params:{page:t,limit:e}}}}),n=()=>({type:l.Vm})}},e=>{e.O(0,[9174,3042,869,2531,3795,636,6593,8792],()=>e(e.s=3409)),_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.