"use strict";(globalThis.webpackChunkinfinity_hitab_client=globalThis.webpackChunkinfinity_hitab_client||[]).push([[7726],{14754:(e,a,t)=>{t.d(a,{D:()=>p,Mb:()=>x,UC:()=>l,WS:()=>s,fS:()=>d,uf:()=>n,vZ:()=>i,zX:()=>r});const n=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;if(!e)return 0;const n=Math.floor(Math.log(Math.abs(e))/Math.LN10);if(Math.abs(n)<=a)return Number(e.toFixed(t));{const a=e*Math.pow(10,-n);return Number(a.toFixed(t))+"e"+(n>0?"+"+n:n)}},i=(e,a)=>{const t=[...a],n=t.find((e=>e.base)),i=t.find((a=>a.name===e.name));return n.base=!1,i.base=!0,i.value=n.value,t},l=e=>{const a=[...e],t=e.find((e=>e.calcBase)),n=e.find((e=>e.base));var i;t.base?a.map((e=>{var a;e.base||e.calcBase||(e.value=null===(a=e.getValue)||void 0===a?void 0:a.call(null,Number(t.value)))})):(t.value=null===(i=n.reverseValue)||void 0===i?void 0:i.call(null,Number(n.value)),a.map((e=>{var a;e.base||e.calcBase||(e.value=null===(a=e.getValue)||void 0===a?void 0:a.call(null,Number(t.value)))})));return a},r=(e,a)=>{const t=String(e).split("."),n=t[1].split("");let i=0;for(let e=0;e<t[1].length;e++)i+=n[e]*Math.pow(a,-1*(e+1));return parseInt(t[0],a)+i},d=e=>Number(e||0).toFixed(2).replace(/\d+/,(e=>e.replace(/(\d)(?=(?:\d{3})+$)/g,"$1,"))),u=[{min:-1/0,max:36e3,rate:.03,deduction:0},{min:36e3,max:144e3,rate:.1,deduction:2520},{min:144e3,max:3e5,rate:.2,deduction:16920},{min:3e5,max:42e4,rate:.25,deduction:31920},{min:42e4,max:66e4,rate:.3,deduction:52920},{min:66e4,max:96e4,rate:.35,deduction:85920},{min:96e4,max:1/0,rate:.45,deduction:181920}],o=[{min:-1/0,max:3e3,rate:.03,deduction:0},{min:3e3,max:12e3,rate:.1,deduction:210},{min:12e3,max:25e3,rate:.2,deduction:1410},{min:25e3,max:35e3,rate:.25,deduction:2660},{min:35e3,max:55e3,rate:.3,deduction:4410},{min:55e3,max:8e4,rate:.35,deduction:7160},{min:8e4,max:1/0,rate:.45,deduction:15160}],c=[{min:-1/0,max:2e4,rate:.2,deduction:0},{min:2e4,max:5e4,rate:.3,deduction:2e3},{min:5e4,max:1/0,rate:.4,deduction:7e3}],m=(e,a)=>a.find((a=>e>a.min&&e<=a.max)),s=e=>m(e,u),x=e=>m(e,o),p=e=>m(e,c)},87726:(e,a,t)=>{t.r(a),t.d(a,{default:()=>m});var n=t(57268),i=t(94209),l=t(29445),r=t(14754);const d={class:"mb-[8px] flex h-[48px] w-[176px] flex-col items-center justify-center rounded-[8px] border border-color-calc-l7 leading-none"},u={class:"text-[14px] text-color-calc-l9"},o={key:0},c={class:"pt-[4px] text-[12px] text-color-calc-t3"},m=(0,n.aZ)({__name:"tax-result-item",props:{label:null,prefix:{default:"￥"},format:{type:Boolean,default:!0},value:null},setup(e){const a=e;return(e,t)=>((0,n.wg)(),(0,n.iD)("div",d,[(0,n._)("div",u,[a.prefix?((0,n.wg)(),(0,n.iD)("span",o,(0,i.toDisplayString)(a.prefix),1)):(0,n.kq)("",!0),(0,n._)("span",null,(0,i.toDisplayString)(a.format?(0,l.SU)(r.fS)(a.value):a.value),1)]),(0,n._)("div",c,(0,i.toDisplayString)(a.label),1)]))}})}}]);