1var lt=Object.defineProperty,ct=Object.defineProperties;var ht=Object.getOwnPropertyDescriptors;var re=Object.getOwnPropertySymbols;var Me=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable;var Le=(e,t,n)=>t in e?lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I=(e,t)=>{for(var n in t||(t={}))Me.call(t,n)&&Le(e,n,t[n]);if(re)for(var n of re(t))Be.call(t,n)&&Le(e,n,t[n]);return e},$=(e,t)=>ct(e,ht(t));var Pe=(e,t)=>{var n={};for(var s in e)Me.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&re)for(var s of re(e))t.indexOf(s)<0&&Be.call(e,s)&&(n[s]=e[s]);return n};var ye=(e,t,n)=>new Promise((s,o)=>{var d=i=>{try{l(n.next(i))}catch(u){o(u)}},r=i=>{try{l(n.throw(i))}catch(u){o(u)}},l=i=>i.done?s(i.value):Promise.resolve(i.value).then(d,r);l((n=n.apply(e,t)).next())});import{a as qe,E as $e,s as ut,b as ft}from"./index-BjWjdf_u.js";import{aq as Ce,ab as fe,am as te,bP as ze,M as ve,k as G,r as Ne,m as pt,a1 as me,ak as z,ar as vt,ah as yt,d1 as Nt,a9 as Re,an as Ve,z as L,w as kt,y as gt,x as ie,ad as Ct,aM as He,N as Ue,c8 as mt,a as Et}from"./bootstrap-2Rkrw8OO.js";import{h as Ee,b as U,W as ce,d as oe,B as _e,ai as bt,A as Kt,z as B,k as W,i as J,D as ne,s as Ye,G as Dt,ah as se,r as O,a6 as j,Y as be,m as T,n as _,q as Ke,J as H,K as ke,a0 as St,p as P,x as X,L as ge,y as xt,F as Je,R as Ge,w,g as we,o as Ie,a9 as wt,v as It,c as M,an as We}from"../jse/index-index-CdD9IctK.js";import{E as Ot}from"./index-PdTMOt5h.js";import{ElCheckbox as Tt}from"./index-C8dVEJTM.js";import{E as At}from"./index-DYSqoE_y.js";import{a as Lt}from"./constants-Dnj8X3EN.js";import{U as Z}from"./event-BB_Ol6Sd.js";import{p as pe}from"./index-BdTKhOvP.js";import{e as Mt}from"./strings-ZjXO4gJb.js";import"./index-gbq3EHLN.js";import"./index-JJSe08qU.js";import"./aria-M32HYlgY.js";import"./index-pm85_Osw.js";import"./focus-trap-BtntL5Tm.js";import"./index-sesOgyZx.js";import"./util-B2mB0_6C.js";import"./index-DJIJN8CG.js";import"./use-form-common-props-DtieOfjr.js";import"./index-CB4sb1eZ.js";import"./_baseFindIndex-D7XfJLKM.js";import"./_baseIteratee-CJZ_6cML.js";import"./castArray-Bg_6wSa-.js";import"./use-form-item-BXI9z06g.js";import"./index-B9AP6sD0.js";import"./clamp-D5b_rTNk.js";import"./index-shQvWwku.js";import"./vnode-lIhc9cyf.js";import"./omit-BA6_LHpA.js";import"./_baseClone-FYMVU1U9.js";import"./flatten-Bg6x1YpV.js";const Y="$treeNodeId",Fe=function(e,t){!t||t[Y]||Object.defineProperty(t,Y,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},Oe=(e,t)=>t==null?void 0:t[e||Y],De=(e,t,n)=>{const s=e.value.currentNode;n();const o=e.value.currentNode;s!==o&&t("current-change",o?o.data:null,o)},Qe=e=>{let t=!0,n=!0,s=!0,o=!0;for(let d=0,r=e.length;d<r;d++){const l=e[d];(l.checked!==!0||l.indeterminate)&&(t=!1,l.disabled||(s=!1)),(l.checked!==!1||l.indeterminate)&&(n=!1),l.isEffectivelyChecked||(o=!1)}return{all:t,none:n,allWithoutDisable:s,half:!t&&!n,isEffectivelyChecked:o}},ee=function(e){if(e.childNodes.length===0||e.loading){e.isEffectivelyChecked=e.disabled||e.checked;return}const{all:t,none:n,half:s,isEffectivelyChecked:o}=Qe(e.childNodes);e.isEffectivelyChecked=o,t?(e.checked=!0,e.indeterminate=!1):s?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const d=e.parent;!d||d.level===0||e.store.checkStrictly||ee(d)},le=function(e,t){const n=e.store.props,s=e.data||{},o=n[t];if(oe(o))return o(s,e);if(_e(o))return s[o];if(te(o)){const d=s[t];return te(d)?"":d}},Se=function(e,t){e.forEach(n=>{n.canFocus=t,Se(n.childNodes,t)})};let Bt=0;class q{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.isEffectivelyChecked=!1,this.id=Bt++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)Ee(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var t;const n=this.store;if(!n)throw new Error("[Node]store is required!");n.registerNode(this);const s=n.props;if(s&&typeof s.isLeaf!="undefined"){const r=le(this,"isLeaf");Ce(r)&&(this.isLeafByUser=r)}if(n.lazy!==!0&&this.data?(this.setData(this.data),n.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&n.lazy&&n.defaultExpandAll&&!this.isLeafByUser&&this.expand(),U(this.data)||Fe(this,this.data),!this.data)return;const o=n.defaultExpandedKeys,d=n.key;d&&!fe(this.key)&&o&&o.includes(this.key)&&this.expand(null,n.autoExpandParent),d&&n.currentNodeKey!==void 0&&this.key===n.currentNodeKey&&(n.currentNode&&(n.currentNode.isCurrent=!1),n.currentNode=this,n.currentNode.isCurrent=!0),n.lazy&&n._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||((t=this.parent)==null?void 0:t.expanded)===!0)&&(this.canFocus=!0)}setData(t){U(t)||Fe(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&U(this.data)?n=this.data:n=le(this,"children")||[];for(let s=0,o=n.length;s<o;s++)this.insertChild({data:n[s]})}get label(){return le(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return le(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(s=>s===t||n&&s.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,s){if(!t)throw new Error("InsertChild error: child is required.");
1if(!(t instanceof q)){if(!s){const o=this.getChildren(!0);o!=null&&o.includes(t.data)||(te(n)||n<0?o==null||o.push(t.data):o==null||o.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=ce(new q(t)),t instanceof q&&t.initialize()}t.level=this.level+1,te(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let s;n&&(s=this.childNodes.indexOf(n)),this.insertChild(t,s)}insertAfter(t,n){let s;n&&(s=this.childNodes.indexOf(n),s!==-1&&(s+=1)),this.insertChild(t,s)}removeChild(t){const n=this.getChildren()||[],s=n.indexOf(t.data);s>-1&&n.splice(s,1);const o=this.childNodes.indexOf(t);o>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(o,1)),this.updateLeafState()}removeChildByData(t){const n=this.childNodes.find(s=>s.data===t);n&&this.removeChild(n)}expand(t,n){const s=()=>{if(n){let o=this.parent;for(;o&&o.level>0;)o.expanded=!0,o=o.parent}this.expanded=!0,t&&t(),Se(this.childNodes,!0)};this.shouldLoadData()?this.loadData(o=>{U(o)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||ee(this),s())}):s()}doCreateChildren(t,n={}){t.forEach(s=>{this.insertChild(Object.assign({data:s},n),void 0,!0)})}collapse(){this.expanded=!1,Se(this.childNodes,!1)}shouldLoadData(){return!!(this.store.lazy===!0&&this.store.load&&!this.loaded)}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser!="undefined"){this.isLeaf=this.isLeafByUser,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}this.isLeaf=!1}setChecked(t,n,s,o){if(this.indeterminate=t==="half",this.checked=t===!0,this.isEffectivelyChecked=!this.childNodes.length&&(this.disabled||this.checked),this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const r=()=>{if(n){const l=this.childNodes;for(let p=0,a=l.length;p<a;p++){const h=l[p];o=o||t!==!1;const v=h.disabled&&h.isLeaf?h.checked:o;h.setChecked(v,n,!0,o)}const{half:i,all:u,isEffectivelyChecked:c}=Qe(l);u||(this.checked=u,this.indeterminate=i),this.isEffectivelyChecked=this.childNodes.length?c:this.disabled||this.checked}};if(this.shouldLoadData()){this.loadData(()=>{r(),ee(this)},{checked:t!==!1});return}else r()}const d=this.parent;!d||d.level===0||s||ee(d)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const s=this.store.props;let o="children";return s&&(o=s.children||"children"),te(n[o])&&(n[o]=null),t&&!n[o]&&(n[o]=[]),n[o]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(d=>d.data),s={},o=[];t.forEach((d,r)=>{const l=d[Y];!!l&&n.some(u=>(u==null?void 0:u[Y])===l)?s[l]={index:r,data:d}:o.push({index:r,data:d})}),this.store.lazy||n.forEach(d=>{s[d==null?void 0:d[Y]]||this.removeChildByData(d)}),o.forEach(({index:d,data:r})=>{this.insertChild({data:r},d)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const s=d=>{this.childNodes=[],this.doCreateChildren(d,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,d)},o=()=>{this.loading=!1};this.store.load(this,s,o)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const s=n.shift();n.unshift(...s.childNodes),t(s)}}reInitChecked(){this.store.checkStrictly||ee(this)}}class Pt{constructor(t){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const n in t)Ee(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new q({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()},bt)}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,s=this.lazy,o=function(d){return ye(this,null,function*(){const r=d.root?d.root.childNodes:d.childNodes;for(const[l,i]of r.entries())i.visible=!!(n!=null&&n.call(i,t,i.data,i)),l%80===0&&l>0&&(yield B()),yield o(i);if(!d.visible&&r.length){let l=!0;l=!r.some(i=>i.visible),d.root?d.root.visible=l===!1:d.visible=l===!1}t&&d.visible&&!d.isLeaf&&(!s||d.loaded)&&d.expand()})};o(this)}setData(t){t!==this.root.data?(this.nodesMap={},this.root.setData(t),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(t){if(t instanceof q)return t;const n=Kt(t)?Oe(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){var s;const o=this.getNode(n);(s=o.parent)==null||s.insertBefore({data:t},o)}insertAfter(t,n){var s;const o=this.getNode(n);(s=o.parent)==null||s.insertAfter({data:t},o)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const s=ze(n)?this.root:this.getNode(n);s&&s.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(s=>{const o=n[s];o&&o.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){const n=this.defaultCheckedKeys||[];!fe(t.key)&&n.includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;if(!(!t||!t.data))if(!n)this.nodesMap[t.id]=t;else{const s=t.key;fe(s)||(this.nodesMap[s]=t)}}
1deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(s=>{this.deregisterNode(s)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const s=[],o=function(d){(d.root?d.root.childNodes:d.childNodes).forEach(l=>{(l.checked||n&&l.indeterminate)&&(!t||t&&l.isLeaf)&&s.push(l.data),o(l)})};return o(this),s}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(s){(s.root?s.root.childNodes:s.childNodes).forEach(d=>{d.indeterminate&&t.push(d.data),n(d)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const s in n)Ee(n,s)&&t.push(n[s]);return t}updateChildren(t,n){const s=this.nodesMap[t];if(!s)return;const o=s.childNodes;for(let d=o.length-1;d>=0;d--){const r=o[d];this.remove(r.data)}for(let d=0,r=n.length;d<r;d++){const l=n[d];this.append(l,s.data)}}_setCheckedKeys(t,n=!1,s){const o=this._getAllNodes().sort((i,u)=>i.level-u.level),d=Object.create(null),r=Object.keys(s);o.forEach(i=>i.setChecked(!1,!1));const l=i=>{i.childNodes.forEach(u=>{var c;d[u.data[t]]=!0,(c=u.childNodes)!=null&&c.length&&l(u)})};for(let i=0,u=o.length;i<u;i++){const c=o[i],p=c.data[t].toString();if(!r.includes(p)){c.checked&&!d[p]&&c.setChecked(!1,!1);continue}if(c.childNodes.length&&l(c),c.isLeaf||this.checkStrictly){c.setChecked(!0,!1);continue}if(c.setChecked(!0,!0),n){c.setChecked(!1,!1);const h=function(v){v.childNodes.forEach(k=>{k.isLeaf||k.setChecked(!1,!1),h(k)})};h(c)}}}setCheckedNodes(t,n=!1){const s=this.key,o={};t.forEach(d=>{o[(d||{})[s]]=!0}),this._setCheckedKeys(s,n,o)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const s=this.key,o={};t.forEach(d=>{o[d]=!0}),this._setCheckedKeys(s,n,o)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const s=this.getNode(n);s&&s.expand(null,this.autoExpandParent)})}setChecked(t,n,s){const o=this.getNode(t);o&&o.setChecked(!!n,s)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){var s;const o=t[this.key],d=this.nodesMap[o];this.setCurrentNode(d),n&&this.currentNode&&this.currentNode.level>1&&((s=this.currentNode.parent)==null||s.expand(null,!0))}setCurrentNodeKey(t,n=!0){var s;if(this.currentNodeKey=t,ze(t)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const o=this.getNode(t);o&&(this.setCurrentNode(o),n&&this.currentNode&&this.currentNode.level>1&&((s=this.currentNode.parent)==null||s.expand(null,!0)))}}const Te="RootTree",Xe="NodeInstance",je="TreeNodeMap",$t=W({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=G("tree"),n=J(Xe),s=J(Te);return()=>{const o=e.node,{data:d,store:r}=o;return e.renderContent?e.renderContent(ne,{_self:n,node:o,data:d,store:r}):Ye(s.ctx.slots,"default",{node:o,data:d},()=>[ne(At,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[o.label])])}}});var zt=ve($t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function Ze(e){const t=J(je,null);let n={treeNodeExpand:s=>{var o;e.node!==s&&((o=e.node)==null||o.collapse())},children:new Set};return t&&t.children.add(n),Dt(()=>{t&&t.children.delete(n),n=null}),se(je,n),{broadcastExpanded:s=>{if(e.accordion)for(const o of n.children)o.treeNodeExpand(s)}}}const et=Symbol("dragEvents");function Ft({props:e,ctx:t,el$:n,dropIndicator$:s,store:o}){const d=G("tree"),r=O({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return se(et,{treeNodeDragStart:({event:c,treeNode:p})=>{if(c.dataTransfer){if(oe(e.allowDrag)&&!e.allowDrag(p.node))return c.preventDefault(),!1;c.dataTransfer.effectAllowed="move";try{c.dataTransfer.setData("text/plain","")}catch(a){}r.value.draggingNode=p,t.emit("node-drag-start",p.node,c)}},treeNodeDragOver:({event:c,treeNode:p})=>{if(!c.dataTransfer)return;const a=p,h=r.value.dropNode;h&&h.node.id!==a.node.id&&Ne(h.$el,d.is("drop-inner"));const v=r.value.draggingNode;if(!v||!a)return;let y=!0,k=!0,E=!0,K=!0;oe(e.allowDrop)&&(y=e.allowDrop(v.node,a.node,"prev"),K=k=e.allowDrop(v.node,a.node,"inner"),E=e.allowDrop(v.node,a.node,"next")),c.dataTransfer.dropEffect=k||y||E?"move":"none",(y||k||E)&&(h==null?void 0:h.node.id)!==a.node.id&&(h&&t.emit("node-drag-leave",v.node,h.node,c),t.emit("node-drag-enter",v.no
1de,a.node,c)),y||k||E?r.value.dropNode=a:r.value.dropNode=null,a.node.nextSibling===v.node&&(E=!1),a.node.previousSibling===v.node&&(y=!1),a.node.contains(v.node,!1)&&(k=!1),(v.node===a.node||v.node.contains(a.node))&&(y=!1,k=!1,E=!1);const x=a.$el,g=x.querySelector(`.${d.be("node","content")}`).getBoundingClientRect(),A=n.value.getBoundingClientRect(),F=n.value.scrollTop;let b;const de=y?k?.25:E?.45:1:Number.NEGATIVE_INFINITY,N=E?k?.75:y?.55:0:Number.POSITIVE_INFINITY;let m=-9999;const D=c.clientY-g.top;D<g.height*de?b="before":D>g.height*N?b="after":k?b="inner":b="none";const S=x.querySelector(`.${d.be("node","expand-icon")}`).getBoundingClientRect(),ae=s.value;b==="before"?m=S.top-A.top+F:b==="after"&&(m=S.bottom-A.top+F),ae.style.top=`${m}px`,ae.style.left=`${S.right-A.left}px`,b==="inner"?pt(x,d.is("drop-inner")):Ne(x,d.is("drop-inner")),r.value.showDropIndicator=b==="before"||b==="after",r.value.allowDrop=r.value.showDropIndicator||K,r.value.dropType=b,t.emit("node-drag-over",v.node,a.node,c)},treeNodeDragEnd:c=>{var p,a;const{draggingNode:h,dropType:v,dropNode:y}=r.value;if(c.preventDefault(),c.dataTransfer&&(c.dataTransfer.dropEffect="move"),h!=null&&h.node.data&&y){const k={data:h.node.data};v!=="none"&&h.node.remove(),v==="before"?(p=y.node.parent)==null||p.insertBefore(k,y.node):v==="after"?(a=y.node.parent)==null||a.insertAfter(k,y.node):v==="inner"&&y.node.insertChild(k),v!=="none"&&(o.value.registerNode(k),o.value.key&&h.node.eachNode(E=>{var K;(K=o.value.nodesMap[E.data[o.value.key]])==null||K.setChecked(E.checked,!o.value.checkStrictly)})),Ne(y.$el,d.is("drop-inner")),t.emit("node-drag-end",h.node,y.node,v,c),v!=="none"&&t.emit("node-drop",h.node,y.node,v,c)}h&&!y&&t.emit("node-drag-end",h.node,null,v,c),r.value.showDropIndicator=!1,r.value.draggingNode=null,r.value.dropNode=null,r.value.allowDrop=!0}}),{dragState:r}}const jt=W({name:"ElTreeNode",components:{ElCollapseTransition:Ot,ElCheckbox:Tt,NodeContent:zt,ElIcon:yt,Loading:vt},props:{node:{type:q,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=G("tree"),{broadcastExpanded:s}=Ze(e),o=J(Te),d=O(!1),r=O(!1),l=O(),i=O(),u=O(),c=J(et),p=we();se(Xe,p),e.node.expanded&&(d.value=!0,r.value=!0);const a=o.props.props.children||"children";w(()=>{var N;const m=(N=e.node.data)==null?void 0:N[a];return m&&[...m]},()=>{e.node.updateChildren()}),w(()=>e.node.indeterminate,N=>{y(e.node.checked,N)}),w(()=>e.node.checked,N=>{y(N,e.node.indeterminate)}),w(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),w(()=>e.node.expanded,N=>{B(()=>d.value=N),N&&(r.value=!0)});const h=N=>Oe(o.props.nodeKey,N.data),v=N=>{const m=e.props.class;if(!m)return{};let D;if(oe(m)){const{data:S}=N;D=m(S,N)}else D=m;return _e(D)?{[D]:!0}:D},y=(N,m)=>{(l.value!==N||i.value!==m)&&o.ctx.emit("check-change",e.node.data,N,m),l.value=N,i.value=m},k=N=>{De(o.store,o.ctx.emit,()=>{var m;if((m=o==null?void 0:o.props)==null?void 0:m.nodeKey){const S=h(e.node);o.store.value.setCurrentNodeKey(S)}else o.store.value.setCurrentNode(e.node)}),o.currentNode.value=e.node,o.props.expandOnClickNode&&K(),(o.props.checkOnClickNode||e.node.isLeaf&&o.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&x(!e.node.checked),o.ctx.emit("node-click",e.node.data,e.node,p,N)},E=N=>{var m;(m=o.instance.vnode.props)!=null&&m.onNodeContextmenu&&(N.stopPropagation(),N.preventDefault()),o.ctx.emit("node-contextmenu",N,e.node.data,e.node,p)},K=()=>{e.node.isLeaf||(d.value?(o.ctx.emit("node-collapse",e.node.data,e.node,p),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,p)}))},x=N=>{const m=o==null?void 0:o.props.checkStrictly,D=e.node.childNodes;!m&&D.length&&(N=D.some(S=>!S.isEffectivelyChecked)),e.node.setChecked(N,!m),B(()=>{const S=o.store.value;o.ctx.emit("check",e.node.data,{checkedNodes:S.getCheckedNodes(),checkedKeys:S.getCheckedKeys(),halfCheckedNodes:S.getHalfCheckedNodes(),halfCheckedKeys:S.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:o,expanded:d,childNodeRendered:r,oldChecked:l,oldIndeterminate:i,getNodeKey:h,getNodeClass:v,handleSelectChange:y,handleClick:k,handleContextMenu:E,handleExpandIconClick:K,handleCheckChange:x,handleChildNodeExpand:(N,m,D)=>{s(m),o.ctx.emit("node-expand",N,m,D)},handleDragStart:N=>{o.props.draggable&&c.treeNodeDragStart({event:N,treeNode:e})},handleDragOver:N=>{N.preventDefault(),o.props.draggable&&c.treeNodeDragOver({event:N,treeNode:{$el:u.value,node:e.node}})},handleDrop:N=>{N.preventDefault()},handleDragEnd:N=>{o.props.draggable&&c.treeNodeDragEnd(N)},CaretRight:Nt}}}),qt=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],Rt=["aria-expanded"];function Vt(e,t,n,s,o,d){const r=j("el-icon"),l=j("el-checkbox"),i=j("loading"),u=j("node-content"),c=j("el-tree-node"),p=j("el-collapse-transition");return be((T(),_("div",{ref:"node$",class:P([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)
1]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[2]||(t[2]=z((...a)=>e.handleClick&&e.handleClick(...a),["stop"])),onContextmenu:t[3]||(t[3]=(...a)=>e.handleContextMenu&&e.handleContextMenu(...a)),onDragstart:t[4]||(t[4]=z((...a)=>e.handleDragStart&&e.handleDragStart(...a),["stop"])),onDragover:t[5]||(t[5]=z((...a)=>e.handleDragOver&&e.handleDragOver(...a),["stop"])),onDragend:t[6]||(t[6]=z((...a)=>e.handleDragEnd&&e.handleDragEnd(...a),["stop"])),onDrop:t[7]||(t[7]=z((...a)=>e.handleDrop&&e.handleDrop(...a),["stop"]))},[Ke("div",{class:P(e.ns.be("node","content")),style:xt({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(T(),H(r,{key:0,class:P([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:z(e.handleExpandIconClick,["stop"])},{default:ke(()=>[(T(),H(St(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):X("v-if",!0),e.showCheckbox?(T(),H(l,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=z(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):X("v-if",!0),e.node.loading?(T(),H(r,{key:2,class:P([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:ke(()=>[ge(i)]),_:1},8,["class"])):X("v-if",!0),ge(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),ge(p,null,{default:ke(()=>[!e.renderAfterExpand||e.childNodeRendered?be((T(),_("div",{key:0,class:P(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t[1]||(t[1]=z(()=>{},["stop"]))},[(T(!0),_(Je,null,Ge(e.node.childNodes,a=>(T(),H(c,{key:e.getNodeKey(a),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:a,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,Rt)),[[me,e.expanded]]):X("v-if",!0)]),_:1})],42,qt)),[[me,e.node.visible]])}var Ht=ve(jt,[["render",Vt],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function Ut({el$:e},t){const n=G("tree");Ie(()=>{d()}),wt(()=>{var r;(r=e.value)==null||r.querySelectorAll("input[type=checkbox]").forEach(l=>{l.setAttribute("tabindex","-1")})});function s(r,l){var i,u;const c=t.value.getNode(r[l].dataset.key);return c.canFocus&&c.visible&&(((i=c.parent)==null?void 0:i.expanded)||((u=c.parent)==null?void 0:u.level)===0)}Re(e,"keydown",r=>{const l=r.target;if(!l.className.includes(n.b("node")))return;const i=Ve(r),u=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),c=u.indexOf(l);let p;if([L.up,L.down].includes(i)){if(r.preventDefault(),i===L.up){p=c===-1?0:c!==0?c-1:u.length-1;const h=p;for(;!s(u,p);){if(p--,p===h){p=-1;break}p<0&&(p=u.length-1)}}else{p=c===-1?0:c<u.length-1?c+1:0;const h=p;for(;!s(u,p);){if(p++,p===h){p=-1;break}p>=u.length&&(p=0)}}p!==-1&&u[p].focus()}[L.left,L.right].includes(i)&&(r.preventDefault(),l.click());const a=l.querySelector('[type="checkbox"]');[L.enter,L.numpadEnter,L.space].includes(i)&&a&&(r.preventDefault(),a.click())});const d=()=>{var r;if(!e.value)return;const l=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(c=>{c.setAttribute("tabindex","-1")});const u=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(u.length){u[0].setAttribute("tabindex","0");return}(r=l[0])==null||r.setAttribute("tabindex","0")}}const tt=kt({data:{type:ie(Array),default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:{type:Array},defaultExpandedKeys:{type:Array},currentNodeKey:{type:[String,Number]},renderContent:{type:ie(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:ie(Function)},allowDrop:{type:ie(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:{type:Function},filterNodeMethod:{type:Function},accordion:Boolean,indent:{type:Number,default:18},icon:{type:gt}}),_t={"check-change":(e,t,n)=>e&&Ce(t)&&Ce(n),"current-change":(e,t)=>!0,"node-click":(e,t,n,s)=>
1e&&t&&s instanceof Event,"node-contextmenu":(e,t,n,s)=>e instanceof Event&&t&&n,"node-collapse":(e,t,n)=>e&&t,"node-expand":(e,t,n)=>e&&t,check:(e,t)=>e&&t,"node-drag-start":(e,t)=>e&&t,"node-drag-end":(e,t,n,s)=>e&&s,"node-drop":(e,t,n,s)=>e&&t&&s,"node-drag-leave":(e,t,n)=>e&&t&&n,"node-drag-enter":(e,t,n)=>e&&t&&n,"node-drag-over":(e,t,n)=>e&&t&&n},Yt=W({name:"ElTree",components:{ElTreeNode:Ht},props:tt,emits:_t,setup(e,t){const{t:n}=Ct(),s=G("tree"),o=O(new Pt({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));o.value.initialize();const d=O(o.value.root),r=O(null),l=O(null),i=O(null),{broadcastExpanded:u}=Ze(e),{dragState:c}=Ft({props:e,ctx:t,el$:l,dropIndicator$:i,store:o});Ut({el$:l},o);const p=we(),a=M(()=>{let f=p==null?void 0:p.parent;for(;f;){if(f.type.name==="ElTreeSelect")return!0;f=f.parent}return!1}),h=M(()=>{const{childNodes:f}=d.value;return(!f||f.length===0||f.every(({visible:C})=>!C))&&!a.value});w(()=>e.currentNodeKey,f=>{o.value.setCurrentNodeKey(f!=null?f:null)}),w(()=>e.defaultCheckedKeys,(f,C)=>{He(f,C)||o.value.setDefaultCheckedKey(f!=null?f:[])}),w(()=>e.defaultExpandedKeys,f=>{o.value.setDefaultExpandedKeys(f!=null?f:[])}),w(()=>e.data,f=>{o.value.setData(f)},{deep:!0}),w(()=>e.checkStrictly,f=>{o.value.checkStrictly=f});const v=f=>
1{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(f)},y=f=>Oe(e.nodeKey,f.data),k=f=>{if(!e.nodeKey)throw new Error(`[Tree] nodeKey is required in ${f}`)},E=f=>{k("getNodePath");const C=o.value.getNode(f);if(!C)return[];const R=[C.data];let Q=C.parent;for(;Q&&Q!==d.value;)R.push(Q.data),Q=Q.parent;return R.reverse()},K=(f,C)=>o.value.getCheckedNodes(f,C),x=f=>o.value.getCheckedKeys(f),g=()=>{const f=o.value.getCurrentNode();return f?f.data:null},A=()=>{k("getCurrentKey");const f=g();return f?f[e.nodeKey]:null},F=(f,C)=>{k("setCheckedNodes"),o.value.setCheckedNodes(f,C)},b=(f,C)=>{k("setCheckedKeys"),o.value.setCheckedKeys(f,C)},de=(f,C,R)=>{o.value.setChecked(f,C,R)},N=()=>o.value.getHalfCheckedNodes(),m=()=>o.value.getHalfCheckedKeys(),D=(f,C=!0)=>{k("setCurrentNode"),De(o,t.emit,()=>{u(f),o.value.setUserCurrentNode(f,C)})},S=(f=null,C=!0)=>{k("setCurrentKey"),De(o,t.emit,()=>{u(),o.value.setCurrentNodeKey(f,C)})},ae=f=>o.value.getNode(f),ot=f=>{o.value.remove(f)},st=(f,C)=>{o.value.append(f,C)},dt=(f,C)=>{o.value.insertBefore(f,C)},at=(f,C)=>{o.value.insertAfter(f,C)},rt=(f,C,R)=>{u(C),t.emit("node-expand",f,C,R)},it=(f,C)=>{k("updateKeyChild"),o.value.updateChildren(f,C)};return se(Te,{ctx:t,props:e,store:o,root:d,currentNode:r,instance:p}),se(Lt,void 0),{ns:s,store:o,root:d,currentNode:r,dragState:c,el$:l,dropIndicator$:i,isEmpty:h,filter:v,getNodeKey:y,getNodePath:E,getCheckedNodes:K,getCheckedKeys:x,getCurrentNode:g,getCurrentKey:A,setCheckedNodes:F,setCheckedKeys:b,setChecked:de,getHalfCheckedNodes:N,getHalfCheckedKeys:m,setCurrentNode:D,setCurrentKey:S,t:n,getNode:ae,remove:ot,append:st,insertBefore:dt,insertAfter:at,handleNodeExpand:rt,updateKeyChildren:it}}});function Jt(e,t,n,s,o,d){const r=j("el-tree-node");return T(),_("div",{ref:"el$",class:P([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(T(!0),_(Je,null,Ge(e.root.childNodes,l=>(T(),H(r,{key:e.getNodeKey(l),node:l,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(T(),_("div",{key:0,class:P(e.ns.e("empty-block"))},[Ye(e.$slots,"empty",{},()=>{var l;return[Ke("span",{class:P(e.ns.e("empty-text"))},It((l=e.emptyText)!=null?l:e.t("el.tree.emptyText")),3)]})],2)):X("v-if",!0),be(Ke("div",{ref:"dropIndicator$",class:P(e.ns.e("drop-indicator"))},null,2),[[me,e.dragState.showDropIndicator]])],2)}var Gt=ve(Yt,[["render",Jt],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);const nt=Ue(Gt),Wt=(e,{attrs:t,emit:n},{select:s,tree:o,key:d})=>{const r=G("tree-select");w(()=>e.data,()=>{e.filterable&&B(()=>{var u,c;(c=o.value)==null||c.filter((u=s.value)==null?void 0:u.states.inputValue)})},{flush:"post"});const l=u=>{var c;const p=u.at(-1);if(p.expanded&&p.childNodes.at(-1))l([p.childNodes.at(-1)]);else{const a=(c=o.value.el$)==null?void 0:c.querySelector(`[data-key="${u.at(-1).key}"]`);a==null||a.focus({preventScroll:!0});return}};return Ie(()=>{Re(()=>{var u;return(u=s.value)==null?void 0:u.$el},"keydown",u=>ye(null,null,function*(){const c=Ve(u),{dropdownMenuVisible:p}=s.value;[L.down,L.up].includes(c)&&p&&(yield B(),setTimeout(()=>{var a,h,v;if(L.up===c){const y=o.value.store.root.childNodes;l(y);return}(v=(h=(a=s.value.optionsArray[s.value.states.hoveringIndex].$el)==null?void 0:a.parentNode)==null?void 0:h.parentNode)==null||v.focus({preventScroll:!0})}
1))}),{capture:!0})}),$(I(I({},pe(We(e),Object.keys(qe.props))),t),{class:M(()=>t.class),style:M(()=>t.style),"onUpdate:modelValue":u=>n(Z,u),valueKey:d,popperClass:M(()=>{const u=[r.e("popper")];return e.popperClass&&u.push(e.popperClass),u.join(" ")}),filterMethod:(u="")=>{var c;e.filterMethod?e.filterMethod(u):e.remoteMethod?e.remoteMethod(u):(c=o.value)==null||c.filter(u)}})},Qt=W({extends:$e,setup(e,t){const n=$e.setup(e,t);delete n.selectOptionClick;const s=we().proxy;return B(()=>{n.select.states.cachedOptions.get(s.value)||n.select.onOptionCreate(s)}),w(()=>t.attrs.visible,o=>{B(()=>{n.states.visible=o})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function xe(e){return e||e===0}function Ae(e){return U(e)&&e.length}function V(e){return U(e)?e:xe(e)?[e]:[]}function he(e,t,n,s,o){for(let d=0;d<e.length;d++){const r=e[d];if(t(r,d,e,o))return s?s(r,d,e,o):r;{const l=n(r);if(Ae(l)){const i=he(l,t,n,s,r);if(i)return i}}}}function ue(e,t,n,s){for(let o=0;o<e.length;o++){const d=e[o];t(d,o,e,s);const r=n(d);Ae(r)&&ue(r,t,n,d)}}const Xt=(e,{attrs:t,slots:n,emit:s},{select:o,tree:d,key:r})=>{w([()=>e.modelValue,d],()=>{e.showCheckbox&&B(()=>{const a=d.value;a&&!He(a.getCheckedKeys(),V(e.modelValue))&&a.setCheckedKeys(V(e.modelValue))})},{immediate:!0,deep:!0});const l=M(()=>I({value:r.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf"},e.props)),i=(a,h)=>{var v;const y=l.value[a];return oe(y)?y(h,(v=d.value)==null?void 0:v.getNode(i("value",h))):h[y]},u=V(e.modelValue).map(a=>he(e.data||[],h=>i("value",h)===a,h=>i("children",h),(h,v,y,k)=>k&&i("value",k))).filter(a=>xe(a)),c=M(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const a=[];return ue(e.data.concat(e.cacheData),h=>{const v=i("value",h);a.push({value:v,currentLabel:i("label",h),isDisabled:i("disabled",h)})},h=>i("children",h)),a}),p=()=>{var a;return(a=d.value)==null?void 0:a.getCheckedKeys().filter(h=>{var v;const y=(v=d.value)==null?void 0:v.getNode(h);return!fe(y)&&mt(y.childNodes)})};return $(I(I({},pe(We(e),Object.keys(nt.props))),t),{nodeKey:r,expandOnClickNode:M(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:M(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(a,{node:h,data:v,store:y})=>a(Qt,{value:i("value",v),label:i("label",v),disabled:i("disabled",v),visible:h.visible},e.renderContent?()=>e.renderContent(a,{node:h,data:v,store:y}):n.default?()=>n.default({node:h,data:v,store:y}):void 0),filterNodeMethod:(a,h,v)=>e.filterNodeMethod?e.filterNodeMethod(a,h,v):a?new RegExp(Mt(a),"i").test(i("label",h)||""):!0,onNodeClick:(a,h,v)=>{var y,k,E;if((y=t.onNodeClick)==null||y.call(t,a,h,v),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||h.isLeaf)){if(!i("disabled",a)){const K=(k=o.value)==null?void 0:k.states.options.get(i("value",a));(E=o.value)==null||E.handleOptionSelect(K)}}else e.expandOnClickNode&&v.proxy.handleExpandIconClick()},onCheck:(a,h)=>{var v;if(!e.showCheckbox)return;const y=i("value",a),k={};ue([d.value.store.root],g=>k[g.key]=g,g=>g.childNodes);const E=h.checkedKeys,K=e.multiple?V(e.modelValue).filter(g=>!(g in k)&&!E.includes(g)):[],x=K.concat(E);if(e.checkStrictly)s(Z,e.multiple?x:x.includes(y)?y:void 0);else if(e.multiple){const g=p();s(Z,K.concat(g))}else{const g=he([a],b=>!Ae(i("children",b))&&!i("disabled",b),b=>i("children",b)),A=g?i("value",g):void 0,F=xe(e.modelValue)&&!!he([a],b=>i("value",b)===e.modelValue,b=>i("children",b));s(Z,A===e.modelValue||F?void 0:A)}B(()=>{var g;const A=V(e.modelValue);d.value.setCheckedKeys(A),(g=t.onCheck)==null||g.call(t,a,{checkedKeys:d.value.getCheckedKeys(),checkedNodes:d.value.getCheckedNodes(),halfCheckedKeys:d.value.getHalfCheckedKeys(),halfCheckedNodes:d.value.getHalfCheckedNodes()})}),(v=o.value)==null||v.focus()},onNodeExpand:(a,h,v)=>{var y;(y=t.onNodeExpand)==null||y.call(t,a,h,v),B(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&h.checked){const k={},E=d.value.getCheckedKeys();ue([d.value.store.root],g=>k[g.key]=g,g=>g.childNodes);const K=V(e.modelValue).filter(g=>!(g in k)&&!E.includes(g)),x=p();s(Z,K.concat(x))}})},cacheOptions:c})};var Zt=W({props:{data:{type:Array,default:()=>[]}},setup(e){const t=J(ut);return w(()=>e.data,()=>{var n;e.data.forEach(o=>{t.states.cachedOptions.has(o.value)||t.states.cachedOptions.set(o.value,o)});const s=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];Et&&!Array.from(s).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const en=W({name:"ElTreeSelect",inheritAttrs:!1,props:$(I(I({},ft),tt),{cacheData:{type:Array,default:()=>[]}}),setup(e,t){const{slots:n,expose:s}=t,o=O(),d=O(),r=M(()=>e.nodeKey||e.valueKey||"value"),l=Wt(e,t,{select:o,tree:d,key:r}),p=Xt(e,t,{select:o,tree:d,key:r}),{cacheOptions:i}=p,u=Pe(p,["cacheOptions"]),c=ce({});return s(c),Ie(()=>{Object.assign(c,$(I(I({},pe(d.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"])),pe(o.value,["focus","blur","selectedLabel"])),{treeRef:d.value,selectRef:o.value}))}),()=>ne(qe,ce($(I({},l),{ref:a=>o.value=a})),$(I({},n),{default:()=>[ne(Zt,{data:i.value}),ne(nt,ce($(I({},u),{ref:a=>d.value=a})))]}))}});var tn=ve(en,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);const Bn=Ue(tn);
1export{Bn as ElTreeSelect,Bn as default}; 2//# sourceMappingURL=index-D8eZoYSm.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.