const a = (t) => t?.map(({ id: e }) => e).join() ?? "", s = (t) => t ? "common.yes" : "common.no", c = ({
  value: t,
  unitId: e
}) => `${t || ""}${e ? ` ${e}` : ""}`;
function i(t, e, n) {
  e.forEach((r) => {
    const o = n ? `${Array(n + 1).join("-")}> ${r.title}` : r.title;
    t.push({
      ...r,
      label: o
    }), Array.isArray(r.children) && r.children.length && i(t, r.children, n + 1);
  });
}
export {
  a,
  c as b,
  i as c,
  s as g
};
