import{aG as t}from"./index-CWyPMHxb.js";const e=t=>{let e="0.00";if(void 0===t)return e;const r=(t=>{if(void 0===t)return 0;const e="string"==typeof t?parseFloat(t):t;return parseFloat((e/100).toFixed(2))})(t),n=r.toString().split(".")[1];switch(n?n.length:0){case 0:e=r.toString()+".00";break;case 1:e=r.toString()+".0";break;case 2:e=r.toString()}return e};function r(e,r="YYYY-MM-DD HH:mm:ss"){return e?(void 0===r&&(r="YYYY-MM-DD HH:mm:ss"),t(e).format(r)):""}function n(t,e="id",r="parentId",n="children",s=0){const i=JSON.parse(JSON.stringify(t)),o=i.filter((t=>{let n=i.filter((n=>t[e]===n[r]));return n.length>0&&(t.children=n),t[r]===s}));return""!==o?o:t}function s(t){t.list=[],t.total=0,t.pageNo=1}const i=(t,e)=>{const r=Object.assign({},t,e);Object.keys(r).forEach((e=>{-1===Object.keys(t).indexOf(e)&&delete r[e]})),Object.assign(t,r)};export{r as a,i as c,e as f,n as h,s as r};
