import { defineComponent as m, ref as u, onMounted as d, unref as n, withDirectives as f, openBlock as v, createElementBlock as g, normalizeClass as h, toDisplayString as w, vShow as x } from "vue";
import "../../../config-provider/index.mjs";
import { useNamespace as C } from "../../../config-provider/hooks/use-namespace.mjs";
const k = /* @__PURE__ */ m({
  __name: "index",
  props: {
    params: {}
  },
  setup(r) {
    const i = r, e = u(!1), { e: c } = C("ag-grid");
    return d(() => {
      const { rowIndex: t, column: a, gridWrapperRef: s, lineClamp: p } = i.params, o = n(s)?.querySelector(
        `div.ag-row[row-index="${t}"] .ag-cell[col-id="${a.colId}"] span.ag-cell-value`
      );
      if (!o) {
        e.value = !0;
        return;
      }
      const l = p === 1 ? "Width" : "Height";
      e.value = o[`scroll${l}`] > o[`client${l}`];
    }), (t, a) => f((v(), g("div", {
      class: h(n(c)("tooltip"))
    }, w(r.params.value), 3)), [
      [x, e.value]
    ]);
  }
});
export {
  k as default
};
