1import{r as l,j as e}from"./react-core-CRmEpXp5.js";import{C as v}from"./CalculatorCard-B37ovTns.js";import{I as u}from"./InputField-B_xhPbIg.js";import{R as p}from"./ResultDisplay-CvIGOYI1.js";import{q as h,a2 as f,a3 as N}from"./icons-CkunPDGg.js";import"./vendor-rxKBX33o.js";const K=()=>{const[t,x]=l.useState(""),[c,y]=l.useState(""),[d,k]=l.useState("moderate"),[o,j]=l.useState("temperate"),[i,m]=l.useState(null),[n,b]=l.useState(!1),g=()=>{const a=parseFloat(t),r=parseFloat(c);if(isNaN(a)||isNaN(r)){m(null);return}let s=a*33;switch(r<12?s*=1.1:r>65&&(s*=.9),d){case"sedentary":s*=.8;break;case"moderate":break;case"active":s*=1.2;break;case"veryActive":s*=1.4;break}switch(o){case"cold":s*=.9;break;case"temperate":break;case"hot":s*=1.1;break;case"veryHot":s*=1.2;break}m(s)};return e.jsxs(v,{title:"Günlük Su İhtiyacı Hesaplama",children:[e.jsxs("div",{className:"flex items-center mb-6",children:[e.jsx(h,{size:18,className:"text-blue-400 mr-2"}),e.jsx("h2",{className:"text-cyan-200",children:"KiÅisel Su İhtiyacınızı Hesaplayın"})]}),e.jsxs("div",{className:"space-y-5",children:[e.jsx(u,{id:"weight",label:"Vücut AÄırlıÄı (kg)",value:t,onChange:a=>x(a.target.value),type:"number",step:"0.1",min:0,placeholder:"Kilogram cinsinden aÄırlıÄınızı girin"}),e.jsx(u,{id:"age",label:"YaÅ",value:c,onChange:a=>y(a.target.value),type:"number",step:"1",min:0,placeholder:"YaÅınızı girin"}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-cyan-300 mb-2",children:"Aktivite Seviyeniz"}),e.jsxs("select",{id:"activityLevel",value:d,onChange:a=>k(a.target.value),className:`w-full bg-[#131d2f] border border-cyan-800/40 text-cyan-100 rounded-md px-3 py-2 \r 2 focus:outline-none focus:ring-2 focus:ring-cyan-600/50 focus:border-transparent`,children:[e.jsx("option",{value:"sedentary",children:"Az Hareketli (Masa baÅı iÅ)"}),e.jsx("option",{value:"moderate",children:"Normal (Hafif yürüyüÅler)"}),e.jsx("option",{value:"active",children:"Aktif (Düzenli egzersiz)"}),e.jsx("option",{value:"veryActive",children:"Ãok Aktif (YoÄun egzersiz/sporcu)"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-cyan-300 mb-2",children:"BulunduÄunuz İklim"}),e.jsxs("select",{id:"climate",value:o,onChange:a=>j(a.target.value),className:`w-full bg-[#131d2f] border border-cyan-800/40 text-cyan-100 rounded-md px-3 py-2 \r 3 focus:outline-none focus:ring-2 focus:ring-cyan-600/50 focus:border-transparent`,children:[e.jsx("option",{value:"cold",children:"SoÄuk (10°C altı)"}),e.jsx("option",{value:"temperate",children:"Ilıman (10-25°C)"}),e.jsx("option",{value:"hot",children:"Sıcak (25-30°C)"}),e.jsx("option",{value:"veryHot",children:"Ãok Sıcak (30°C üstü)"})]})]}),e.jsxs("button",{onClick:g,className:`w-full bg-gradient-to-r from-blue-500 to-cyan-500 hover:from-blue-600 hover:to-cyan-600\r 4 text-white font-medium py-3 rounded-md mb-4 transition-all duration-300\r 5 shadow-md shadow-blue-500/20 hover:shadow-lg focus:outline-none focus:ring-2 focus:ring-blue-500/50 \r 6 flex items-center justify-center gap-2`,children:[e.jsx(h,{size:18}),"Hesapla"]}),e.jsxs("div",{className:"bg-[#131d2f]/50 border border-cyan-800/30 rounded-lg p-4",children:[e.jsx(p,{label:"Günlük Su İhtiyacınız",value:i!==null?Math.round(i).toString():"-",unit:"ml"}),i&&e.jsxs("div",{className:"mt-2 flex items-center justify-between text-sm",children:[e.jsx("span",{className:"text-gray-400",children:"Bardak olarak (200ml)"}),e.jsxs("span",{className:"text-cyan-300 font-medium",children:[Math.round(i/200)," bardak"]})]}),i&&e.jsxs("div",{className:"mt-2 flex items-center justify-between text-sm",children:[e.jsx("span",{className:"text-gray-400",children:"Litre olarak"}),e.jsxs("span",{className:"text-cyan-300 font-medium",children:[(i/1e3).toFixed(2)," L"]})]})]}),e.jsxs("div",{className:"mt-4 bg-blue-900/10 border border-blue-800/30 rounded-lg p-4 text-sm",children:[e.jsx("h3",{className:"text-blue-300 mb-2 font-medium",children:"Su İhtiyacı Hakkında Bilgi"}),e.jsx("p",{className:"text-gray-400 mb-2",children:"Günlük su ihtiyacı, vücut aÄırlıÄı, yaÅ, aktivite seviyesi ve iklim gibi faktörlere baÄlı olarak deÄiÅir."}),e.jsxs("p",{className:"text-gray-400",children:[e.jsx("strong",{className:"text-blue-300",children:"Not:"})," Bu hesaplama sadece bir tahmindir. KiÅisel saÄlık durumunuza göre su ihtiyacınız deÄiÅebilir."]})]})]}),e.jsxs("div",{className:"mt-8 border border-[var(--card-border)] rounded-lg overflow-hidden",children:[e.jsxs("button",{onClick:()=>b(!n),className:"w-full px-6 py-4 bg-[var(--hover-bg)] flex items-center justify-between text-left hover:bg-[var(--card-bg)] transition-colors",children:[e.jsx("h2",{className:"text-lg font-semibold text-cyan-300",children:"Günlük Su İhtiyacı Detaylı Bilgi"}),n?e.jsx(f,{size:20,className:"text-cyan-400"}):e.jsx(N,{size:20,className:"text-cyan-400"})]}),n&&e.jsxs("div",{className:"px-6 py-4 bg-[var(--card-bg)] space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-cyan-300 mb-3",children:"Su İhtiyacı Nedir?"}),e.jsx("p",{className:"text-gray-300",children:"Su ihtiyacı, vücudun günlük fonksiyonlarını sürdürmek için gereken sıvı miktarıdır. İnsan vücudunun %60-70'i sudan oluÅur ve yaÅamsal fonksiyonların devamı için sürekli su alımı gerekir. DoÄru su tüketimi, metabolizma, dolaÅım sistemi ve böbrek fonksiyonları için hayati önem taÅır."})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-cyan-300 mb-3",children:"Su İhtiyacı Hesaplama Nasıl Kullanılır?"}),e.jsxs("div",{className:"space-y-2 text-gray-300",children:[e.jsxs("p",{children:[e.jsx("strong",{children:"1. Temel bilgileri girin:"}
6)," Kilonuzu ve yaÅınızı doÄru Åekilde kaydedin."]}),e.jsxs("p",{children:[e.jsx("strong",{children:"2. Aktivite seviyenizi belirtin:"})," Günlük hareket durumunuza göre seçim yapın."]}),e.jsxs("p",{children:[e.jsx("strong",{children:"3. İklim koÅullarınızı seçin:"})," BulunduÄunuz bölgenin sıcaklık durumunu belirtin."]}),e.jsxs("p",{children:[e.jsx("strong",{children:"4. Sonuçları deÄerlendirin:"})," Ãnerilen su miktarını ml, bardak ve litre olarak görün."]}),e.jsxs("p",{children:[e.jsx("strong",{children:"5. Günlük rutininize entegre edin:"})," Bu miktarı gün boyunca düzenli aralıklarla tüketin."]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-cyan-300 mb-3",children:"Su İhtiyacı Hesaplama Formülü"}),e.jsxs("div",{className:"bg-slate-800/50 p-4 rounded border space-y-2",children:[e.jsxs("p",{children:[e.jsx("strong",{children:"Temel Formül:"})," Kilo (kg) à 33 ml"]}),e.jsxs("p",{children:[e.jsx("strong",{children:"YaÅ Düzeltmesi:"})," 12 yaÅ altı +%10, 65 yaŠüstü -%10"]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Aktivite Faktörü:"})," Sedanter -%20, Aktif +%20, Ãok aktif +%40"]}),e.jsxs("p",{children:[e.jsx("strong",{children:"İklim Faktörü:"})," SoÄuk -%10, Sıcak +%10, Ãok sıcak +%20"]}),e.jsxs("p",{className:"text-blue-300",children:[e.jsx("strong",{children:"Ãrnek:"})," 70kg à 33ml à aktivite à iklim = Günlük su ihtiyacı"]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-cyan-300 mb-3",children:"Su İçmenin Faydaları ve Kullanım Alanları"}),e.jsxs("ul",{className:"list-disc list-inside space-y-2 text-gray-300 ml-2",children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Metabolizma desteÄi:"})," Hücresel süreçlerin düzgün iÅlemesi"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Detoks etkisi:"})," Böbreklerin toksinleri atmasına yardım"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Cilt saÄlıÄı:"})," Nem dengesini koruyarak yaÅlanma karÅıtı etki"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Sindirim sistemi:"})," Besin emilimini kolaylaÅtırma"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Enerji seviyesi:"})," Dehidrasyon yorgunluÄunu önleme"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Termoregülasyon:"})," Vücut sıcaklıÄının kontrolü"]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-cyan-300 mb-3",children:"Sıkça Sorulan Sorular"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-cyan-200 mb-1",children:"Ãay, kahve ve meyve suları da su ihtiyacına sayılır mı?"}),e.jsx("p",{className:"text-gray-300 text-sm",children:"Evet, ancak saf su en idealdir. Kafeinli içecekler hafif diüretik etki gösterebilir, bu nedenle günlük su ihtiyacının en az yarısı saf su olmalıdır."})]}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-cyan-200 mb-1",children:"Ãok su içmek zararlı mıdır?"}),e.jsx("p",{className:"text-gray-300 text-sm",children:"AÅırı su tüketimi (günde 4-5 litreden fazla) su zehirlenmesine neden olabilir. Ãnerilen miktarlarda kalmak önemlidir."})]}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-cyan-200 mb-1",children:"Susama hissi güvenilir bir gösterge midir?"}),e.jsx("p",{className:"text-gray-300 text-sm",children:"Susama hissi, vücut zaten dehidrasyon belirtisi göstermeye baÅladıÄında ortaya çıkar. Düzenli su tüketimi daha saÄlıklıdır."})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-cyan-300 mb-3",children:"İlgili Hesaplama Araçlarımız"}),e.jsxs("div",{className:"text-gray-300 space-y-1",children:[e.jsxs("p",{children:["⢠",e.jsx("a",{href:"/kalori-ihtiyaci",className:"text-cyan-400 hover:text-cyan-300",children:"Kalori İhtiyacı Hesaplama"})," - Günlük enerji gereksinimlerinizi öÄrenin"]}),e.jsxs("p",{children:["⢠",e.jsx("a",{href:"/vucut-kitle-indeksi",className:"text-cyan-400 hover:text-cyan-300",children:"Vücut Kitle İndeksi"})," - SaÄlıklı kilo aralıÄınızı belirleyin"]}),e.jsxs("p",{children:["⢠",e.jsx("a",{href:"/ideal-kilo",className:"text-cyan-400 hover:text-cyan-300",children:"İdeal Kilo Hesaplama"}
6)," - Hedef kilonuzu öÄrenin"]}),e.jsxs("p",{children:["⢠",e.jsx("a",{href:"/bazal-metabolizma-hizi",className:"text-cyan-400 hover:text-cyan-300",children:"Bazal Metabolizma Hızı"})," - Dinlenme metabolizmanızı hesaplayın"]})]})]})]})]})]})};export{K as default}; 7//# sourceMappingURL=WaterNeedCalculator-DlzHD49g.js.map
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.