1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DjptyvBT.js","./DlAUqK2U.js","./DcfOiwFx.js"])))=>i.map(i=>d[i]); 2import{n as _,c as r,o as i,a as n,i as d,l as m,v as w,F as g,e as C,t as h,h as W,b as u,f as k,g as j}from"./DcfOiwFx.js";import{_ as N}from"./CyKMPZpC.js";import{B as f}from"./DIxx-Jhf.js";import{_ as y}from"./DlAUqK2U.js";import T from"./CgxKfI10.js";import{u as I}from"./BmT3YsOu.js";import{u as V}from"./C8DksApB.js";import"./NLDmAnN-.js";var x=["","ä¸","亿","å ","京","å","ç§","ç©°","æ²","æ¶§","æ£","è½½","æ","ææ²³æ²","é¿å§ç¥","é£ç±ä»","ä¸å¯æè®®","æ é","大æ°"];function S(o){let s=new f(o);if(s.eq(0))return"é¶";let c=s.lt(0);c&&(s=s.abs());let e=[],t=0;for(;s.gt(0);){let a=s.mod(1e4);a.eq(0)||e.push(B(a.toNumber())+(x[t]?x[t]:"")),s=s.div(1e4).round(0,0),t++}return(c?"è´":"")+e.reverse().join("").trim()}function B(o){const s=["","ä¸","äº","ä¸","å","äº","å ","ä¸","å «","ä¹"],c=["","å","ç¾","å"];let e=[],t=o.toString().split("").reverse().map(Number);for(let a=0;a<t.length;a++)t[a]!==0?(e.push(c[a]),e.push(s[t[a]])):e.length>0&&e[e.length-1]!=="é¶"&&e.push("é¶");return e=e.reverse().join(""),e.startsWith("ä¸å")&&(e=e.substring(1)),e.endsWith("é¶")&&(e=e.slice(0,-1)),e}const z={data(){return{number:"",numberInWords:"",showWarning:!1,copyTips:""}},methods:{convertToWords(){const o=this.number.replace(/,/g,"");if(o===""){this.numberInWords="",this.showWarning=!1;return}if(o.length>76){this.numberInWords="è¾å ¥çæ°åè¿é¿ï¼æå¤§æ¯æ 76 使°åã",this.showWarning=!0;return}try{const s=new f(o);this.numberInWords=S(s),this.showWarning=!1}catch(s){this.numberInWords="请è¾å ¥ææçæ°åã",this.showWarning=!0,console.error("Conversion error:",s)}},speak(){if(!this.numberInWords)return;const o=new SpeechSynthesisUtterance(this.numberInWords);speechSynthesis.speak(o)},onCopy(){this.copyTips="å·²å¤å¶ï¼",setTimeout(()=>{this.copyTips=""},2e3)}}},M={class:"grid gap-6 xl:grid-cols-2"},A={class:"col-span-1"},E={class:"relative flex flex-col overflow-hidden rounded-md bg-white p-4 shadow-md"},H={class:"flex-1"},D={key:0,class:"absolute inset-x-0 bottom-0 bg-white p-4 text-sm text-red-500"},L={class:"col-span-1"},F={class:"relative flex flex-col overflow-hidden rounded-md bg-white p-4 shadow-md"},O={class:"flex-1"},P={class:"block h-full max-h-[80vh] min-h-56 w-full overflow-y-scroll rounded border-none p-0 focus:border-none focus:ring-0 md:min-h-72 2xl:text-lg"},q={key:1,class:"text-secondary-400"},R={key:0,class:"absolute inset-x-0 bottom-0 flex justify-end gap-2 bg-white px-4 py-2"},U={title:"Copy to clipboard",type:"button",class:"relative rounded-lg p-1.5 text-secondary-400 hover:bg-secondary-50 hover:text-secondary-700"},Q={key:0,class:"absolute -top-7 left-1/2 -translate-x-1/2 rounded-md bg-black bg-opacity-70 px-2 py-1 text-xs text-white"};function Z(o,s,c,e,t,a){const p=_("clipboard");return i(),r("div",M,[n("div",A,[n("div",E,[n("div",H,[m(n("textarea",{placeholder:"Enter numbers here...",ref:"textArea",type:"text","onUpdate:modelValue":s[0]||(s[0]=l=>t.number=l),onInput:s[1]||(s[1]=(...l)=>a.convertToWords&&a.convertToWords(...l)),class:"block h-full min-h-56 w-full resize-none rounded border-none p-0 placeholder:text-secondary-400 focus:border-none focus:ring-0 md:min-h-72 2xl:text-lg"},null,544),[[w,t.number]])]),t.showWarning?(i(),r("p",D," Please only input numbers up to 76 digits. ")):d("",!0)])]),n("div",L,[n("div",F,[n("div",O,[n("div",P,[t.numberInWords?(i(),r(g,{key:0},[C(h(t.numberInWords),1)],64)):(i(),r("span",q,"Words from numbers will appear here"))])]),t.numberInWords?(i(),r("div",R,[n("button",{onClick:s[2]||(s[2]=(...l)=>a.speak&&a.speak(...l)),title:"Speak",type:"button",class:"rounded-lg p-1.5 text-secondary-400 hover:bg-secondary-50 hover:text-secondary-700"},[...s[3]||(s[3]=[n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",class:"h-6 w-6"},[n("path",{d:"M13.5 4.06c0-1.336-1.616-2.005-2.56-1.06l-4.5 4.5H4.508c-1.141 0-2.318.664-2.66 1.905A9.76 9.76 0 001.5 12c0 .898.121 1.768.35 2.595.341 1.24 1.518 1.905 2.659 1.905h1.93l4.5 4.5c.945.945 2.561.276 2.561-1.06V4.06zM18.584 5.106a.75.75 0 011.06 0c3.808 3.807 3.808 9.98 0 13.788a.75.75 0 11-1.06-1.06 8.25 8.25 0 000-11.668.75.75 0 010-1.06z"}),n("path",{d:"M15.932 7.757a.75.75 0 011.061 0 6 6 0 010 8.486.75.75 0 01-1.06-1.061 4.5 4.5 0 000-6.364.75.75 0 010-1.06z"})],-1)])]),m((i(),r("button",U,[t.copyTips?(i(),r("span",Q,h(t.copyTips),1)):d("",!0),s[4]||(s[4]=n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-6 w-6"},[n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 00-3.375-3.375h-1.5a1.125 1.125 0 01-1.125-1.125v-1.5A3.375 3.375 0 006.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0015 2.25h-1.5a2.251 2.251 0 00-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 00-9-9z"})],-1))])),[[p,t.numberInWords,"copy"],[p,a.onCopy,"success"]])])):d("",!0)])])])}const G=y(z,[["render",Z]]),J=k(()=>j(()=>import("./DjptyvBT.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.default||o)),K={setup(){V(o=>({title:"Convert Numbers to Chinese Online (100% Free) - OpenL",meta:[{key:"description",name:"description",content:"The Numbers to Chinese Converter is an online tool that transforms numerical values into Chinese text. Easily convert any number to Chinese words for checks, documents, and more."}]})),I()}},X={class:"min-h-[calc(100vh-200px)]",id:"main",ref:"main"},Y={class:"bg-slate-50 py-10"},$={class:"mx-auto max-w-[1200px] px-4"};function ss(o,s,c,e,t,a){const p=N,l=G,b=T,v=J;return i(),r("div",X,[n("main",Y,[n("div",$,[u(p,{h1:"Convert Numbers to Chinese",h2:"Quick and Free Way to Convert Numbers into Chinese",class:"!mt-0 mb-4"}),u(l)])]),s[0]||(s[0]=W('<div class="mx-auto max-w-[1200px] px-4"><h2 class="mt-28 text-center text-3xl font-medium text-secondary-600">
2What is Numbers to Chinese?</h2><div class="mt-8 text-center"><div class="mx-auto max-w-5xl text-balance leading-relaxed text-secondary-600"> Numbers to Chinese Tool is a handy tool designed to help you convert numerical values into their corresponding Chinese text. No matter how large your numbers are, this online tool provides accurate and easy-to-read Chinese representations. By analyzing the input, it converts the numeric format into concise Chinese words, making it useful for a variety of applications such as writing checks, legal documents or educational purposes. </div><div class="mx-auto mt-20"><h2 class="text-lg font-medium">How to Read Large Numbers</h2><ul class="mt-4 grid grid-rows-7 gap-6 gap-x-20 border-t border-secondary-100 pt-6 text-sm md:grid-flow-col"><li class="flex justify-between"><span>100</span><span class="text-secondary-400">ä¸ç¾</span></li><li class="flex justify-between"><span>1,000</span><span class="text-secondary-400">ä¸å</span></li><li class="flex justify-between"><span>10,000</span><span class="text-secondary-400">ä¸ä¸</span></li><li class="flex justify-between"><span>100,000,000</span><span class="text-secondary-400">ä¸äº¿</span></li><li class="flex justify-between"><span> 10 <sup>12</sup></span><span class="text-secondary-400">ä¸å
</span></li><li class="flex justify-between"><span> 10 <sup>16</sup></span><span class="text-secondary-400">ä¸äº¬</span></li><li class="flex justify-between"><span> 10 <sup>20</sup></span><span class="text-secondary-400">ä¸å</span></li><li class="flex justify-between"><span> 10 <sup>24</sup></span><span class="text-secondary-400">ä¸ç§</span></li><li class="flex justify-between"><span> 10 <sup>28</sup></span><span class="text-secondary-400">ä¸ç©°</span></li><li class="flex justify-between"><span> 10 <sup>32</sup></span><span class="text-secondary-400">䏿²</span></li><li class="flex justify-between"><span> 10 <sup>36</sup></span><span class="text-secondary-400">䏿¶§</span></li><li class="flex justify-between"><span> 10 <sup>40</sup></span><span class="text-secondary-400">䏿£</span></li><li class="flex justify-between"><span> 10 <sup>44</sup></span><span class="text-secondary-400">ä¸è½½</span></li><li class="flex justify-between"><span> 10 <sup>48</sup></span><span class="text-secondary-400">䏿</span></li><li class="flex justify-between"><span> 10 <sup>52</sup></span><span class="text-secondary-400">ä¸ææ²³æ²</span></li><li class="flex justify-between"><span> 10 <sup>56</sup></span><span class="text-secondary-400">ä¸é¿å§ç¥</span></li><li class="flex justify-between"><span> 10 <sup>60</sup></span><span class="text-secondary-400">ä¸é£ç±ä»</span></li><li class="flex justify-between"><span> 10 <sup>64</sup></span><span class="text-secondary-400">ä¸ä¸å¯æè®®</span></li><li class="flex justify-between"><span> 10 <sup>68</sup></span><span class="text-secondary-400">䏿 é</span></li><li class="flex justify-between"><span> 10 <sup>72</sup></span><span class="text-secondary-400">ä¸å¤§æ°</span></li></ul></div></div></div>',1)),u(b),u(v,{tag:["tools","guide"]})],512)}const cs=y(K,[["render",ss]]);export{cs as default};
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.