"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const m=require("vue"),p=require("../../_util/props-util/index.js"),y=require("../../_util/vnode.js"),b=require("../utils/commonUtil.js"),g=require("../utils/treeUtil.js"),q=(c,l,s,a,d)=>m.computed(()=>{const v=d.value||(({labels:t})=>{const r=a.value?t.slice(-1):t,u=" / ";return r.every(n=>["string","number"].includes(typeof n))?r.join(u):r.reduce((n,e,o)=>{const i=p.isValidElement(e)?y.cloneElement(e,{key:o}):e;return o===0?[i]:[...n,u,i]},[])});return c.value.map(t=>{const r=g.toPathOptions(t,l.value,s.value),u=v({labels:r.map(({option:e,value:o})=>e?.[s.value.label]??o),selectedOptions:r.map(({option:e})=>e)}),n=b.toPathKey(t);return{label:u,value:n,key:n,valueCells:t}})});exports.default=q;
