import { jsx as u } from "@emotion/react/jsx-runtime";
import { getPropertyByString as l } from "@m4l/core";
import s from "react";
import { ConcatenatedFormatter as c } from "../../../formatters/ConcatenatedFormatter/ConcatenatedFormatter.js";
function S(e) {
  const { fieldValue: o, fieldSeparator: n, Component: a = s.Fragment } = e;
  return (m) => {
    const i = m.row, p = o.map((f) => {
      const t = l(i, f);
      let r;
      return typeof t == "string" || typeof t == "number" ? r = t.toString() : r = "", r;
    });
    return /* @__PURE__ */ u(
      c,
      {
        values: p,
        separator: n,
        Component: a
      }
    );
  };
}
export {
  S as ColumnConcatenatedValuesFormatter
};
