function p(d){return{name:"element-tree-line",props:{node:{type:Object,required:!0},data:{type:Object},treeData:{type:Array},indent:{type:Number,default(){return 16}},showLabelLine:{type:Boolean,default:!0}},render(n){const l=d||n,t=this.getScopedSlot("default"),s=this.getScopedSlot("node-label"),r=this.getScopedSlot("after-node-label"),i=t?this.getScopedSlotValue(t,{node:this.node,data:this.data}):[s?this.getScopedSlotValue(s,{node:this.node,data:this.data}):l("span",{class:"element-tree-node-label"},this.node.label),this.showLabelLine?l("span",{class:"element-tree-node-label-line"}):null,this.getScopedSlotValue(r,{node:this.node,data:this.data})],a=[];let o=this.node;for(;o;){let e=o.parent;if(o.level===1&&!o.parent){if(!this.treeData||!Array.isArray(this.treeData))throw Error("if you using el-tree-v2 (Virtualized Tree) of element-plus,element-tree-line required data.");e={children:Array.isArray(this.treeData)?this.treeData.map(c=>({...c,key:c.id})):[],level:0,key:"node-0",parent:null}}if(e){const c=(e.children||e.childNodes).findIndex(u=>(u.key||u.id)===(o.key||o.id));a.unshift(c===(e.children||e.childNodes).length-1)}o=e}const h=[];for(let e=0;e