import{k as qe,j as $,t as Ae,m as Y,n,p as e,f as Ie,i as m,v as Pe,A as ee,x as y,s as Re,S as Be}from"./web.Os7kOAdY.js";import{g as Z,t as De}from"./i18n-runtime._BAkvU05.js";var Ge=ee('<div class=panel style=display:flex;flex-direction:column;gap:14px><div class=tool-grid-2><div class=tool-field><span class=tool-label></span><input class=tool-input type=number step=0.5></div><div class=tool-field><span class=tool-label></span><select class=tool-input><option value=light></option><option value=moderate></option><option value=heavy></option></select></div></div><div class=tool-field style=max-width:250px><span class=tool-label></span><select class=tool-input><option value=spring></option><option value=summer></option><option value=autumn></option><option value=winter></option></select></div><!$><!/><div style=margin-top:8px;padding:12px;background:#f8f9fa;border-radius:8px><span class=tool-label></span><ul style="font-size:13px;color:#555;margin:8px 0 0;padding-left:18px;line-height:2"><li></li><li></li><li></li><li></li><li></li></ul></div><p class=tool-hint>'),Je=ee("<div style=display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px><div style=padding:16px;background:#e3f2fd;border-radius:10px;text-align:center><div style=font-size:12px;color:#666></div><div style=font-size:26px;font-weight:700;color:#1565c0><!$><!/> ml</div><div style=font-size:13px;color:#666><!$><!/> <!$><!/></div></div><div style=padding:16px;background:#e8f5e9;border-radius:10px;text-align:center><div style=font-size:12px;color:#666></div><div style=font-size:26px;font-weight:700;color:#2e7d32><!$><!/> <!$><!/></div><div style=font-size:13px;color:#666></div></div><div style=padding:16px;background:#fff3e0;border-radius:10px;text-align:center><div style=font-size:12px;color:#666></div><div style=font-size:26px;font-weight:700;color:#e65100><!$><!/><!$><!/> <!$><!/></div><div style=font-size:13px;color:#666>");function Qe(){const[le,C]=$(Z(),{equals:!1}),l=i=>De(i,le());Ae(()=>{const i=s=>{const o=s.detail?.locale;o&&C(o)};window.addEventListener("taitan:locale-change",i),C(Z()),Re(()=>window.removeEventListener("taitan:locale-change",i))});const[w,ie]=$("65"),[_,te]=$("light"),[u,ne]=$("spring");function M(){const i=parseFloat(w())||0;if(i<=0)return null;let s=i*35;const o=_()==="light"?1:_()==="moderate"?1.2:1.4;s*=o;const c=u()==="summer"?1.2:u()==="winter"?.9:1;s*=c;const a=Math.round(s),p=Math.round(a/250),r=Math.round(16*60/p);return{totalMl:a,glasses:p,intervalMin:r,liters:(a/1e3).toFixed(1)}}const v={light:"轻度（日常办公）",moderate:"中度（每周3-5次运动）",heavy:"重度（每天高强度运动）"},g={spring:"春季",summer:"夏季",autumn:"秋季",winter:"冬季"};return(()=>{var i=Y(Ge),s=i.firstChild,o=s.firstChild,c=o.firstChild,a=c.nextSibling,p=o.nextSibling,b=p.firstChild,r=b.nextSibling,z=r.firstChild,k=z.nextSibling,se=k.nextSibling,E=s.nextSibling,L=E.firstChild,f=L.nextSibling,T=f.firstChild,H=T.nextSibling,F=H.nextSibling,oe=F.nextSibling,ae=E.nextSibling,[N,re]=n(ae.nextSibling),W=N.nextSibling,j=W.firstChild,de=j.nextSibling,q=de.firstChild,A=q.nextSibling,I=A.nextSibling,P=I.nextSibling,ge=P.nextSibling,ce=W.nextSibling;return e(c,()=>l("体重（公斤）")),a.$$input=t=>ie(t.currentTarget.value),e(b,()=>l("运动量")),r.addEventListener("change",t=>te(t.currentTarget.value)),e(z,()=>v.light),e(k,()=>v.moderate),e(se,()=>v.heavy),e(L,()=>l("当前季节")),f.addEventListener("change",t=>ne(t.currentTarget.value)),e(T,()=>g.spring),e(H,()=>g.summer),e(F,()=>g.autumn),e(oe,()=>g.winter),e(i,Ie(Be,{get when(){return M()},get children(){return(()=>{const t=M();return(()=>{var R=Y(Je),B=R.firstChild,D=B.firstChild,S=D.nextSibling,pe=S.firstChild,[G,xe]=n(pe.nextSibling);G.nextSibling;var h=S.nextSibling,$e=h.firstChild,[J,_e]=n($e.nextSibling),ue=J.nextSibling,ve=ue.nextSibling,[be,fe]=n(ve.nextSibling),K=B.nextSibling,O=K.firstChild,x=O.nextSibling,Se=x.firstChild,[Q,he]=n(Se.nextSibling),me=Q.nextSibling,ye=me.nextSibling,[Ce,we]=n(ye.nextSibling),Me=x.nextSibling,ze=K.nextSibling,U=ze.firstChild,d=U.nextSibling,ke=d.firstChild,[V,Ee]=n(ke.nextSibling),Le=V.nextSibling,[X,Te]=n(Le.nextSibling),He=X.nextSibling,Fe=He.nextSibling,[Ne,We]=n(Fe.nextSibling),je=d.nextSibling;return e(D,()=>l("每日建议饮水")),e(S,()=>t.totalMl,G,xe),e(h,()=>t.liters,J,_e),e(h,()=>l("升"),be,fe),e(O,()=>l("约等于")),e(x,()=>t.glasses,Q,he),e(x,()=>l("杯"),Ce,we),e(Me,()=>l("每杯 250ml")),e(U,()=>l("建议间隔")),e(d,()=>l("每"),V,Ee),e(d,()=>t.intervalMin,X,Te),e(d,()=>l("分钟"),Ne,We),e(je,()=>l("喝一杯水")),R})()})()}}),N,re),e(j,()=>l("饮水小贴士")),e(q,()=>l("晨起空腹喝一杯温水有助于唤醒肠胃")),e(A,()=>l("不要等口渴了才喝水，养成定时饮水习惯")),e(I,()=>l("运动前后各补充200-300ml水分")),e(P,()=>l("避免一次性大量饮水，少量多次更科学")),e(ge,()=>l("白开水或淡茶是最佳选择，含糖饮料不算在内")),e(ce,()=>l("基于每公斤体重35ml基础量，结合运动强度和季节调整。仅供参考，特殊人群（如肾病患者）请遵医嘱。")),m(()=>y(a,"value",w())),m(()=>y(r,"value",_())),m(()=>y(f,"value",u())),Pe(),i})()}qe(["input"]);export{Qe as default};
