import { u as e } from "./devextreme-be18bda8.js";
import { lR as r, lA as a } from "./ant-design-icons-a81e6d18.js";
import "react";
import "react-dom";
import "./alasql-f59e855e.js";
const c = (c2) => {
  const i = ((e2) => {
    var _a, _b;
    const r2 = (_b = (_a = e2.column) == null ? void 0 : _a.caption) == null ? void 0 : _b.toLowerCase();
    return r2 ? e2.data[r2] : void 0;
  })(c2);
  return r("div", { className: i.diff > 0 ? "inc" : "dec", children: [a("div", { className: "current-value", children: e(i.value, { type: "currency", currency: "USD", precision: 2 }) }), a("div", { className: "diff", children: Math.abs(i.diff).toFixed(2) })] });
};
export {
  c as DiffCell
};
