"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("lodash-unified");function d(e){const r=e.value,i=e.emptyText||"--",l=c.isArray(r)?r:[r].filter(Boolean);if(!l.length)return i;const t=[],f=e.fieldNames?.label||"label",s=e.fieldNames?.value||"value";function o(a){for(const n of a){if(l.find(u=>u===n[s])&&t.push(n[f]),t.length===l.length)return;n.children?.length&&o(n.children)}}return o(e.treeData),t.length?t.filter(a=>c.isString(a)).join("、"):i}exports.treeSelectRenderer=d;
