const e=require("../../_util/props-util/index.js"),t=require("../../_util/vnode.js"),n=require("../utils/commonUtil.js"),r=require("../utils/treeUtil.js");let i=require("vue");var a=(a,o,s,c,l)=>(0,i.computed)(()=>{let i=l.value||(({labels:n})=>{let r=c.value?n.slice(-1):n;return r.every(e=>[`string`,`number`].includes(typeof e))?r.join(` / `):r.reduce((n,r,i)=>{let a=e.isValidElement(r)?t.cloneElement(r,{key:i}):r;return i===0?[a]:[...n,` / `,a]},[])});return a.value.map(e=>{let t=r.toPathOptions(e,o.value,s.value),a=i({labels:t.map(({option:e,value:t})=>e?.[s.value.label]??t),selectedOptions:t.map(({option:e})=>e)}),c=n.toPathKey(e);return{label:a,value:c,key:c,valueCells:e}})});exports.default=a;