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