"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("lodash-unified"),s=require("../../ap-table/utils.js");function c(e){const a=e.valueEnum?s.valueEnumToArray(e.valueEnum):e.options||[],t=e.value,n=e.emptyText||"--";if(r.isNil(t))return n;const i=e.fieldNames?.label||"label",u=e.fieldNames?.value||"value";return r.isArray(t)?t.map(l=>a.find(o=>o[u]===l)?.[i]).filter(Boolean).join("、")||n:a.find(l=>l[u]===t)?.[i]||n}exports.selectRenderer=c;
