function s(e, r, n = "data-attribute", l = "data-row-key", c = !0) {
  if (!e) {
    console.warn("scrollToRowElement: containerElement is null");
    return;
  }
  try {
    const o = n === "class" ? `.${l}-${r}` : `[${l}="${r}"]`, t = e.querySelector(o);
    if (!t) {
      console.warn(
        `scrollToRowElement: No element found with selector "${o}"`
      );
      return;
    }
    t.scrollIntoView({
      behavior: c ? "smooth" : "auto",
      block: "end"
    });
  } catch (o) {
    console.error("scrollToRowElement: Error scrolling", o);
  }
}
export {
  s as scrollToRowElement
};
