import{k as Se,j as M,t as $e,m as p,n as o,p as e,f as R,i as S,v as be,A as $,w as fe,x as _e,s as ue,z as j,F as he,S as ve}from"./web.Os7kOAdY.js";import{g as B,t as we}from"./i18n-runtime._BAkvU05.js";var ye=$("<p style=text-align:center;color:#999;padding:16px>"),me=$('<div class=panel style=display:flex;flex-direction:column;gap:14px><div class=tool-field style=max-width:300px><span class=tool-label></span><input class=tool-input type=text></div><div style=overflow-x:auto><table style=width:100%;border-collapse:collapse;font-size:14px;min-width:460px><thead><tr style=background:#f8f9fa><th style="padding:10px 12px;text-align:center;border-bottom:2px solid #dee2e6"></th><th style="padding:10px 12px;text-align:center;border-bottom:2px solid #dee2e6"></th><th style="padding:10px 12px;text-align:center;border-bottom:2px solid #dee2e6"></th><th style="padding:10px 12px;text-align:center;border-bottom:2px solid #dee2e6"></th></tr></thead><tbody></tbody></table></div><!$><!/><details style=margin-top:4px><summary style=cursor:pointer;font-size:13px;color:#666></summary><div style="font-size:13px;color:#555;padding:10px 0;line-height:1.8"><p><strong></strong><!$><!/></p><p><strong></strong><!$><!/></p><p><strong></strong><!$><!/></p><p><strong></strong><!$><!/></p></div></details><p class=tool-hint>'),Ce=$('<tr><td style="padding:8px 12px;text-align:center;font-weight:600"></td><td style="padding:8px 12px;text-align:center"></td><td style="padding:8px 12px;text-align:center"></td><td>');const H=[{oldScale:"5.2",newScale:"1.5",degree:"0"},{oldScale:"5.1",newScale:"1.2",degree:"0"},{oldScale:"5.0",newScale:"1.0",degree:"0"},{oldScale:"4.9",newScale:"0.8",degree:"-50 ~ -100"},{oldScale:"4.8",newScale:"0.6",degree:"-100 ~ -150"},{oldScale:"4.7",newScale:"0.5",degree:"-150 ~ -200"},{oldScale:"4.6",newScale:"0.4",degree:"-200 ~ -250"},{oldScale:"4.5",newScale:"0.3",degree:"-250 ~ -300"},{oldScale:"4.4",newScale:"0.25",degree:"-300 ~ -400"},{oldScale:"4.3",newScale:"0.2",degree:"-400 ~ -500"},{oldScale:"4.2",newScale:"0.15",degree:"-500 ~ -600"},{oldScale:"4.1",newScale:"0.12",degree:"-600 ~ -700"},{oldScale:"4.0",newScale:"0.1",degree:"-700 ~ -800"},{oldScale:"3.9",newScale:"0.08",degree:"-800 ~ -900"},{oldScale:"3.8",newScale:"0.06",degree:"-900 ~ -1000"},{oldScale:"3.7",newScale:"0.05",degree:"-1000以上"}];function ke(){const[O,b]=M(B(),{equals:!1}),l=t=>we(t,O());$e(()=>{const t=n=>{const a=n.detail?.locale;a&&b(a)};window.addEventListener("taitan:locale-change",t),b(B()),ue(()=>window.removeEventListener("taitan:locale-change",t))});const[f,P]=M("");function _(){const t=f().trim();return t?H.filter(n=>n.oldScale.includes(t)||n.newScale.includes(t)||n.degree.includes(t)):H}function Q(t){const n=parseFloat(t);return n>=5?{label:"正常",color:"#43a047"}:n>=4.8?{label:"轻度近视",color:"#f59e0b"}:n>=4.5?{label:"中度近视",color:"#e65100"}:{label:"高度近视",color:"#d93025"}}return(()=>{var t=p(me),n=t.firstChild,a=n.firstChild,d=a.nextSibling,u=n.nextSibling,D=u.firstChild,h=D.firstChild,G=h.firstChild,v=G.firstChild,w=v.nextSibling,y=w.nextSibling,J=y.nextSibling,K=h.nextSibling,U=u.nextSibling,[m,W]=o(U.nextSibling),C=m.nextSibling,E=C.firstChild,X=E.nextSibling,s=X.firstChild,L=s.firstChild,Y=L.nextSibling,[Z,ee]=o(Y.nextSibling),c=s.nextSibling,k=c.firstChild,le=k.nextSibling,[te,ne]=o(le.nextSibling),g=c.nextSibling,z=g.firstChild,ie=z.nextSibling,[ae,re]=o(ie.nextSibling),q=g.nextSibling,A=q.firstChild,oe=A.nextSibling,[de,se]=o(oe.nextSibling),ce=C.nextSibling;return e(a,()=>l("输入视力值或度数进行筛选")),d.$$input=i=>P(i.currentTarget.value),e(v,()=>l("旧制（5分制）")),e(w,()=>l("新制（小数制）")),e(y,()=>l("近视度数")),e(J,()=>l("程度")),e(K,R(he,{get each(){return _()},children:(i,ge)=>{const F=Q(i.oldScale);return(()=>{var x=p(Ce),N=x.firstChild,T=N.nextSibling,V=T.nextSibling,I=V.nextSibling;return e(N,()=>i.oldScale),e(T,()=>i.newScale),e(V,()=>i.degree),e(I,()=>F.label),S(r=>{var xe=`border-bottom:1px solid #eee;background:${ge()%2===0?"#fff":"#fafafa"};`,pe=`padding:8px 12px;text-align:center;color:${F.color};font-weight:600;`;return r.e=j(x,xe,r.e),r.t=j(I,pe,r.t),r},{e:void 0,t:void 0}),x})()}})),e(t,R(ve,{get when(){return _().length===0},get children(){var i=p(ye);return e(i,()=>l("未找到匹配项")),i}}),m,W),e(E,()=>l("视力等级说明")),e(L,()=>l("正常视力：")),e(s,()=>l("5.0及以上（1.0及以上），无需矫正"),Z,ee),e(k,()=>l("轻度近视：")),e(c,()=>l("4.8-4.9（0.6-0.8），约-50 ~ -300度"),te,ne),e(z,()=>l("中度近视：")),e(g,()=>l("4.5-4.7（0.3-0.5），约-300 ~ -600度"),ae,re),e(A,()=>l("高度近视：")),e(q,()=>l("4.4及以下（0.25及以下），-600度以上"),de,se),e(ce,()=>l("旧制（标准对数视力表）与新制（国际标准小数视力表）的换算关系：旧制V = 5 + lg(新制v)。度数仅为参考范围。")),S(()=>fe(d,"placeholder",l("如：4.8、0.6、-200..."))),S(()=>_e(d,"value",f())),be(),t})()}Se(["input"]);export{ke as default};
