PageSourceSearch

https://xgrids.cn/assets/index.e774abfa.js

js xgrids.cn collected 2026-10-03 20:58:46 UTC 42,694 bytes, 1 lines download raw bytes

1import{_ as e}from"./loading.775ec409.js";import{_ as t}from"./close_white.e5bfb5d7.js";/* empty css             *//* empty css                    */import{ah as a,ad as n,c as l,w as o,n as d,ai as i,r as s,aj as r,ak as c,ab as u,A as h,al as p,e as f,k as v,l as g,h as m,s as y,j as b,G as k,f as x,am as C,x as N,an as E,ao as w,F as D,m as S,t as K,p as L,ap as B,v as _,aq as A,ar as I,as as O,at as T,au as $,av as V,aw as z,J as q,ax as F,d as H,H as j,q as M,i as P,a9 as R,o as U,K as G,_ as W,u as J,E as Y,a as Q,D as X,ay as Z}from"./main.d241918d.js";import{d as ee}from"./download.8c835a87.js";import{i as te,u as ae,s as ne}from"./token.dd13c5be.js";import{u as le,i as oe,a as de,b as ie,c as se,d as re,_ as ce,e as ue,f as he,p as pe,w as fe,g as ve,r as ge,h as me,l as ye,j as be,k as ke,m as xe,n as Ce}from"./constants.f001525d.js";import{u as Ne,U as Ee,a as we,b as De,d as Se,c as Ke,e as Le,f as Be,E as _e}from"./use-form-item.16093afa.js";import{E as Ae}from"./aria.66f3f71c.js";const Ie={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Ne,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...le(["ariaControls"])},Oe={[Ee]:e=>a(e)||oe(e)||de(e),change:e=>a(e)||oe(e)||de(e)},Te=Symbol("checkboxGroupContextKey"),$e=(e,{model:t,isLimitExceeded:a,hasOwnLabel:s,isDisabled:r,isLabeledByFormItem:c})=>{const u=n(Te,void 0),{formItem:h}=De(),{emit:p}=i();function f(t){var a,n,l,o;return[!0,e.trueValue,e.trueLabel].includes(t)?null!=(n=null!=(a=e.trueValue)?a:e.trueLabel)?n:!0:null!=(o=null!=(l=e.falseValue)?l:e.falseLabel)?o:!1}const v=l((()=>(null==u?void 0:u.validateEvent)||e.validateEvent));return o((()=>e.modelValue),(()=>{if(v.value)null==h||h.validate("change").catch((e=>Se()))})),{handleChange:function(e){if(a.value)return;const t=e.target;p("change",f(t.checked),e)},onClickRoot:async function(n){if(!a.value)if(!s.value&&!r.value&&c.value){if(!n.composedPath().some((e=>"LABEL"===e.tagName)))t.value=f([!1,e.falseValue,e.falseLabel].includes(t.value)),await d(),function(e,t){p("change",f(e),t)}(t.value,n)}}}},Ve=(e,t)=>{const{formItem:a}=De(),{model:o,isGroup:d,isLimitExceeded:h}=(e=>{const t=s(!1),{emit:a}=i(),o=n(Te,void 0),d=l((()=>!1===ie(o))),c=s(!1),u=l({get(){var a,n;return d.value?null==(a=null==o?void 0:o.modelValue)?void 0:a.value:null!=(n=e.modelValue)?n:t.value},set(e){var n,l;if(d.value&&r(e))c.value=void 0!==(null==(n=null==o?void 0:o.max)?void 0:n.value)&&e.length>(null==o?void 0:o.max.value)&&e.length>u.value.length,!1===c.value&&(null==(l=null==o?void 0:o.changeEvent)||l.call(o,e));else a(Ee,e),t.value=e}});return{model:u,isGroup:d,isLimitExceeded:c}})(e),{isFocused:p,isChecked:f,checkboxButtonSize:v,checkboxSize:g,hasOwnLabel:m,actualValue:y}=((e,t,{model:a})=>{const o=n(Te,void 0),d=s(!1),i=l((()=>{if(!se(e.value))return e.value;else return e.label})),h=l((()=>{const t=a.value;if(de(t))return t;else if(r(t))if(c(i.value))return t.map(u).some((e=>te(e,i.value)));else return t.map(u).includes(i.value);else if(null!=t)return t===e.trueValue||t===e.trueLabel;else return!!t}));return{checkboxButtonSize:Ke(l((()=>{var e;return null==(e=null==o?void 0:o.size)?void 0:e.value})),{prop:!0}),isChecked:h,isFocused:d,checkboxSize:Ke(l((()=>{var e;return null==(e=null==o?void 0:o.size)?void 0:e.value}))),hasOwnLabel:l((()=>!!t.default||!se(i.value))),actualValue:i}})(e,t,{model:o}),{isDisabled:b}=(({model:e,isChecked:t})=>{const a=n(Te,void 0),o=l((()=>{var n,l;const o=null==(n=null==a?void 0:a.max)?void 0:n.value,d=null==(l=null==a?void 0:a.min)?void 0:l.value;return!ie(o)&&e.value.length>=o&&!t.value||!ie(d)&&e.value.length<=d&&t.value}));return{isDisabled:we(l((()=>(null==a?void 0:a.disabled.value)||o.value))),isLimitDisabled:o}})({model:o,isChecked:f}),{inputId:k,isLabeledByFormItem:x}=Le(e,{formItemContext:a,disableIdGeneration:m,disableIdManagement:d}),{handleChange:C,onClickRoot:N}=$e(e,{model:o,isLimitExceeded:h,hasOwnLabel:m,isDisabled:b,isLabeledByFormItem:x});return e.checked&&function(){var t,a;if(r(o.value)&&!o.value.includes(y.value))o.value.push(y.value);else o.value=null!=(a=null!=(t=e.trueValue)?t:e.trueLabel)?a:!0}(),Be({from:"controls",replacement:"aria-controls",version:"2.8.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},l((()=>!!e.controls))),Be({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},l((()=>d.value&&se(e.value)))),Be({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},l((()=>!!e.trueLabel))),Be({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},l((()=>!!e.falseLabel))),{inputId:k,isLabeledByFormItem:x,isChecked:f,isDisabled:b,isFocused:p,checkboxButtonSize:v,checkboxSize:g,hasOwnLabel:m,model:o,actualValue:y,handleChange:C,onClickRoot:N}},ze=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],qe=["id","indeterminate","disabled","value","name","tabindex"],Fe=h({name:"ElCheckbox"});var He=ce(h({...Fe,props:Ie,emits:Oe,setup(e){const t=e,a=p(),{inputId:n,isLabeledByFormItem:o,isChecked:d,isDisabled:i,isFocused:s,checkboxSize:r,hasOwnLabel:c,model:u,actualValue:h,handleChange:_,onClickRoot:A}=Ve(t,a),I=re("checkbox"),O=l((()=>[I.b(),I.m(r.value),I.is("disabled",i.value),I.is("bordered",t.border),I.is("checked",d.value)])),T=l((()=>[I.e("input"),I.is("disabled",i.value),I.is("checked",d.value),I.is("indeterminate",t.indeterminate),I.is("focus",s.value)]));return(e,t)=>(f(),v(B(!b(c)&&b(o)?"span":"label"),{class:y(b(O)),"aria-controls":e.indeterminate?e.controls||e.ariaControl
1s:null,onClick:b(A)},{default:g((()=>{var a,l;return[m("span",{class:y(b(T))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?k((f(),x("input",{key:0,id:b(n),"onUpdate:modelValue":t[0]||(t[0]=e=>C(u)?u.value=e:null),class:y(b(I).e("original")),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:b(i),"true-value":null!=(a=e.trueValue)?a:e.trueLabel,"false-value":null!=(l=e.falseValue)?l:e.falseLabel,onChange:t[1]||(t[1]=(...e)=>b(_)&&b(_)(...e)),onFocus:t[2]||(t[2]=e=>s.value=!0),onBlur:t[3]||(t[3]=e=>s.value=!1),onClick:t[4]||(t[4]=N((()=>{}),["stop"]))},null,42,ze)),[[E,b(u)]]):k((f(),x("input",{key:1,id:b(n),"onUpdate:modelValue":t[5]||(t[5]=e=>C(u)?u.value=e:null),class:y(b(I).e("original")),type:"checkbox",indeterminate:e.indeterminate,disabled:b(i),value:b(h),name:e.name,tabindex:e.tabindex,onChange:t[6]||(t[6]=(...e)=>b(_)&&b(_)(...e)),onFocus:t[7]||(t[7]=e=>s.value=!0),onBlur:t[8]||(t[8]=e=>s.value=!1),onClick:t[9]||(t[9]=N((()=>{}),["stop"]))},null,42,qe)),[[E,b(u)]]),m("span",{class:y(b(I).e("inner"))},null,2)],2),b(c)?(f(),x("span",{key:0,class:y(b(I).e("label"))}
1,[w(e.$slots,"default"),!e.$slots.default?(f(),x(D,{key:0},[S(K(e.label),1)],64)):L("v-if",!0)],2)):L("v-if",!0)]})),_:3},8,["class","aria-controls","onClick"]))}}),[["__file","checkbox.vue"]]);const je=["name","tabindex","disabled","true-value","false-value"],Me=["name","tabindex","disabled","value"],Pe=h({name:"ElCheckboxButton"});var Re=ce(h({...Pe,props:Ie,emits:Oe,setup(e){const t=e,a=p(),{isFocused:o,isChecked:d,isDisabled:i,checkboxButtonSize:s,model:r,actualValue:c,handleChange:u}=Ve(t,a),h=n(Te,void 0),v=re("checkbox"),g=l((()=>{var e,t,a,n;const l=null!=(t=null==(e=null==h?void 0:h.fill)?void 0:e.value)?t:"";return{backgroundColor:l,borderColor:l,color:null!=(n=null==(a=null==h?void 0:h.textColor)?void 0:a.value)?n:"",boxShadow:l?`-1px 0 0 0 ${l}`:void 0}})),m=l((()=>[v.b("button"),v.bm("button",s.value),v.is("disabled",i.value),v.is("checked",d.value),v.is("focus",o.value)]));return(e,t)=>{var a,n;return f(),x("label",{class:y(b(m))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?k((f(),x("input",{key:0,"onUpdate:modelValue":t[0]||(t[0]=e=>C(r)?r.value=e:null),class:y(b(v).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:b(i),"true-value":null!=(a=e.trueValue)?a:e.trueLabel,"false-value":null!=(n=e.falseValue)?n:e.falseLabel,onChange:t[1]||(t[1]=(...e)=>b(u)&&b(u)(...e)),onFocus:t[2]||(t[2]=e=>o.value=!0),onBlur:t[3]||(t[3]=e=>o.value=!1),onClick:t[4]||(t[4]=N((()=>{}),["stop"]))},null,42,je)),[[E,b(r)]]):k((f(),x("input",{key:1,"onUpdate:modelValue":t[5]||(t[5]=e=>C(r)?r.value=e:null),class:y(b(v).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:b(i),value:b(c),onChange:t[6]||(t[6]=(...e)=>b(u)&&b(u)(...e)),onFocus:t[7]||(t[7]=e=>o.value=!0),onBlur:t[8]||(t[8]=e=>o.value=!1),onClick:t[9]||(t[9]=N((()=>{}),["stop"]))},null,42,Me)),[[E,b(r)]]),e.$slots.default||e.label?(f(),x("span",{key:2,class:y(b(v).be("button","inner")),style:_(b(d)?b(g):void 0)},[w(e.$slots,"default",{},(()=>[S(K(e.label),1)]))],6)):L("v-if",!0)],2)}}}),[["__file","checkbox-button.vue"]]);const Ue=ue({modelValue:{type:he(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Ne,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...le(["ariaLabel"])}),Ge={[Ee]:e=>r(e),change:e=>r(e)},We=h({name:"ElCheckboxGroup"});var Je=ce(h({...We,props:Ue,emits:Ge,setup(e,{emit:t}){const a=e,n=re("checkbox"),{formItem:i}=De(),{inputId:s,isLabeledByFormItem:r}=Le(a,{formItemContext:i}),c=async e=>{t(Ee,e),await d(),t("change",e)},u=l({get:()=>a.modelValue,set(e){c(e)}});return A(Te,{...pe(I(a),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:u,changeEvent:c}),Be({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-checkbox-group",ref:"https://element-plus.org/en-US/component/checkbox.html"},l((()=>!!a.label))),o((()=>a.modelValue),(()=>{if(a.validateEvent)null==i||i.validate("change").catch((e=>Se()))})),(e,t)=>{var a;return f(),v(B(e.tag),{id:b(s),class:y(b(n).b("group")),role:"group","aria-label":!b(r)?e.label||e.ariaLabel||"checkbox-group":void 0,"aria-labelledby":b(r)?null==(a=b(i))?void 0:a.labelId:void 0},{default:g((()=>[w(e.$slots,"default")])),_:3},8,["id","class","aria-label","aria-labelledby"])}}}),[["__file","checkbox-group.vue"]]);const Ye=fe(He,{CheckboxButton:Re,CheckboxGroup:Je});ve(Re),ve(Je);const Qe=h({name:"ElCollapseTransition"});var Xe=ce(h({...Qe,setup(e){const t=re("collapse-transition"),a=e=>{e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},n={beforeEnter(e){if(!e.dataset)e.dataset={};if(e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height)e.dataset.elExistsHeight=e.style.height;e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){requestAnimationFrame((()=>{if(e.dataset.oldOverflow=e.style.overflow,e.dataset.elExistsHeight)e.style.maxHeight=e.dataset.elExistsHeight;else if(0!==e.scrollHeight)e.style.maxHeight=`${e.scrollHeight}px`;else e.style.maxHeight=0;e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom,e.style.overflow="hidden"}))},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},enterCancelled(e){a(e)},beforeLeave(e){if(!e.dataset)e.dataset={};e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},leave(e){if(0!==e.scrollHeight)e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},afterLeave(e){a(e)},leaveCancelled(e){a(e)}};return(e,a)=>(f(),v($,O({name:b(t).b()},T(n)),{default:g((()=>
1[w(e.$slots,"default")])),_:3},16,["name"]))}}),[["__file","collapse-transition.vue"]]);Xe.install=e=>{e.component(Xe.name,Xe)};const Ze=Xe,et="$treeNodeId",tt=function(e,t){if(t&&!t[et])Object.defineProperty(t,et,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},at=function(e,t){if(!e)return t[et];else return t[e]},nt=(e,t,a)=>{const n=e.value.currentNode;a();const l=e.value.currentNode;if(n!==l)t("current-change",l?l.data:null,l)},lt=e=>{let t=!0,a=!0,n=!0;for(let l=0,o=e.length;l<o;l++){const o=e[l];if(!0!==o.checked||o.indeterminate)if(t=!1,!o.disabled)n=!1;if(!1!==o.checked||o.indeterminate)a=!1}return{all:t,none:a,allWithoutDisable:n,half:!t&&!a}},ot=function(e){if(0===e.childNodes.length||e.loading)return;const{all:t,none:a,half:n}=lt(e.childNodes);if(t)e.checked=!0,e.indeterminate=!1;else if(n)e.checked=!1,e.indeterminate=!0;else if(a)e.checked=!1,e.indeterminate=!1;const l=e.parent;if(l&&0!==l.level)if(!e.store.checkStrictly)ot(l)},dt=function(e,t){const a=e.store.props,n=e.data||{},l=a[t];if("function"==typeof l)return l(n,e);else if("string"==typeof l)return n[l];else if(void 0===l){const e=n[t];return void 0===e?"":e}};let it=0;class st{constructor(e){this.id=it++,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 t in e)if(V(e,t))this[t]=e[t];if(this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent)this.level=this.parent.level+1}initialize(){const e=this.store;if(!e)throw new Error("[Node]store is required!");e.registerNode(this);const t=e.props;if(t&&void 0!==t.isLeaf){const e=dt(this,"isLeaf");if("boolean"==typeof e)this.isLeafByUser=e}if(!0!==e.lazy&&this.data){if(this.setData(this.data),e.defaultExpandAll)this.expanded=!0,this.canFocus=!0}else if(this.level>0&&e.lazy&&e.defaultExpandAll)this.expand();if(!Array.isArray(this.data))tt(this,this.data);if(!this.data)return;const a=e.defaultExpandedKeys,n=e.key;if(n&&a&&a.includes(this.key))this.expand(null,e.autoExpandParent);if(n&&void 0!==e.currentNodeKey&&this.key===e.currentNodeKey)e.currentNode=this,e.currentNode.isCurrent=!0;if(e.lazy)e._initDefaultCheckedNode(this);if(this.updateLeafState(),this.parent&&(1===this.level||!0===this.parent.expanded))this.canFocus=!0}setData(e){if(!Array.isArray(e))tt(this,e);let t;if(this.data=e,this.childNodes=[],0===this.level&&Array.isArray(this.data))t=this.data;else t=dt(this,"children")||[];for(let a=0,n=t.length;a<n;a++)this.insertChild({data:t[a]})}get label(){return dt(this,"label")}get key(){const e=this.store.key;if(this.data)return this.data[e];else return null}get disabled(){return dt(this,"disabled")}get nextSibling(){const e=this.parent;if(e){const t=e.childNodes.indexOf(this);if(t>-1)return e.childNodes[t+1]}return null}get previousSibling(){const e=this.parent;if(e){const t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}contains(e,t=!0){return(this.childNodes||[]).some((a=>a===e||t&&a.contains(e)))}remove(){const e=this.parent;if(e)e.removeChild(this)}insertChild(e,t,a){if(!e)throw new Error("InsertChild error: child is required.");if(!(e instanceof st)){if(!a){const a=this.getChildren(!0);if(!a.includes(e.data))if(void 0===t||t<0)a.push(e.data);else a.splice(t,0,e.data)}if(Object.assign(e,{parent:this,store:this.store}),(e=z(new st(e)))instanceof st)e.initialize()}if(e.level=this.level+1,void 0===t||t<0)this.childNodes.push(e);else this.childNodes.splice(t,0,e);this.updateLeafState()}insertBefore(e,t){let a;if(t)a=this.childNodes.indexOf(t);this.insertChild(e,a)}insertAfter(e,t){let a;if(t)if(a=this.childNodes.indexOf(t),-1!==a)a+=1;this.insertChild(e,a)}removeChild(e){const t=this.getChildren()||[],a=t.indexOf(e.data);if(a>-1)t.splice(a,1);const n=this.childNodes.indexOf(e);if(n>-1)this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(n,1);this.updateLeafState()}removeChildByData(e){let t=null;for(let a=0;a<this.childNodes.length;a++)if(this.childNodes[a].data===e){t=this.childNodes[a];break}if(t)this.removeChild(t)}expand(e,t){const a=()=>
1{if(t){let e=this.parent;for(;e.level>0;)e.expanded=!0,e=e.parent}if(this.expanded=!0,e)e();this.childNodes.forEach((e=>{e.canFocus=!0}))};if(this.shouldLoadData())this.loadData((e=>{if(Array.isArray(e)){if(this.checked)this.setChecked(!0,!0);else if(!this.store.checkStrictly)ot(this);a()}}));else a()}doCreateChildren(e,t={}){e.forEach((e=>{this.insertChild(Object.assign({data:e},t),void 0,!0)}))}collapse(){this.expanded=!1,this.childNodes.forEach((e=>{e.canFocus=!1}))}shouldLoadData(){return!0===this.store.lazy&&this.store.load&&!this.loaded}updateLeafState(){if(!0===this.store.lazy&&!0!==this.loaded&&void 0!==this.isLeafByUser)return void(this.isLeaf=this.isLeafByUser);const e=this.childNodes;if(this.store.lazy&&(!0!==this.store.lazy||!0!==this.loaded))this.isLeaf=!1;else this.isLeaf=!e||0===e.length}setChecked(e,t,a,n){if(this.indeterminate="half"===e,this.checked=!0===e,this.store.checkStrictly)return;if(!this.shouldLoadData()||this.store.checkDescendants){const{all:a,allWithoutDisable:l}=lt(this.childNodes);if(!this.isLeaf&&!a&&l)this.checked=!1,e=!1;const o=()=>{if(t){const a=this.childNodes;for(let d=0,i=a.length;d<i;d++){const l=a[d];n=n||!1!==e;const o=l.disabled?l.checked:n;l.setChecked(o,t,!0,n)}const{half:l,all:o}=lt(a);if(!o)this.checked=o,this.indeterminate=l}};if(this.shouldLoadData())return void this.loadData((()=>{o(),ot(this)}),{checked:!1!==e});else o()}const l=this.parent;if(l&&0!==l.level)if(!a)ot(l)}getChildren(e=!1){if(0===this.level)return this.data;const t=this.data;if(!t)return null;const a=this.store.props;let n="children";if(a)n=a.children||"children";if(void 0===t[n])t[n]=null;if(e&&!t[n])t[n]=[];return t[n]}updateChildren(){const e=this.getChildren()||[],t=this.childNodes.map((e=>e.data)),a={},n=[];if(e.forEach(((e,l)=>{const o=e[et];if(!!o&&t.findIndex((e=>e[et]===o))>=0)a[o]={index:l,data:e};else n.push({index:l,data:e})})),!this.store.lazy)t.forEach((e=>{if(!a[e[et]])this.removeChildByData(e)}));n.forEach((({index:e,data:t})=>{this.insertChild({data:t},e)})),this.updateLeafState()}loadData(e,t={}){if(!0===this.store.lazy&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(t).length)){this.loading=!0;const a=a=>{if(this.childNodes=[],this.doCreateChildren(a,t),this.loaded=!0,this.loading=!1,this.updateLeafState(),e)e.call(this,a)},n=()=>{this.loading=!1};this.store.load(this,a,n)}else if(e)e.call(this)}eachNode(e){const t=[this];for(;t.length;){const a=t.shift();t.unshift(...a.childNodes),e(a)}}reInitChecked(){if(!this.store.checkStrictly)ot(this)}}class rt{constructor(e){this.currentNode=null,this.currentNodeKey=null;for(const t in e)if(V(e,t))this[t]=e[t];this.nodesMap={}}initialize(){if(this.root=new st({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){(0,this.load)(this.root,(e=>{this.root.doCreateChildren(e),this._initDefaultCheckedNodes()}))}else this._initDefaultCheckedNodes()}filter(e){const t=this.filterNodeMethod,a=this.lazy,n=function(l){const o=l.root?l.root.childNodes:l.childNodes;if(o.forEach((a=>{a.visible=t.call(a,e,a.data,a),n(a)})),!l.visible&&o.length){let e=!0;if(e=!o.some((e=>e.visible)),l.root)l.root.visible=!1===e;else l.visible=!1===e}if(e)if(l.visible&&!l.isLeaf)if(!a||l.loaded)l.expand()};n(this)}setData(e){if(e!==this.root.data)this.root.setData(e),this._initDefaultCheckedNodes();else this.root.updateChildren()}getNode(e){if(e instanceof st)return e;const t=c(e)?at(this.key,e):e;return this.nodesMap[t]||null}insertBefore(e,t){const a=this.getNode(t);a.parent.insertBefore({data:e},a)}insertAfter(e,t){const a=this.getNode(t);a.parent.insertAfter({data:e},a)}remove(e){const t=this.getNode(e);if(t&&t.parent){if(t===this.currentNode)this.currentNode=null;t.parent.removeChild(t)}}append(e,t){const a=!se(t)?this.getNode(t):this.root;if(a)a.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;e.forEach((e=>{const a=t[e];if(a)a.setChecked(!0,!this.checkStrictly)}))}_initDefaultCheckedNode(e){if((this.defaultCheckedKeys||[]).includes(e.key))e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){if(e!==this.defaultCheckedKeys)this.defaultCheckedKeys=e,this._initDefaultCheckedNodes()}registerNode(e){const t=this.key;if(e&&e.data)if(!t)this.nodesMap[e.id]=e;
1else{if(void 0!==e.key)this.nodesMap[e.key]=e}}deregisterNode(e){if(this.key&&e&&e.data)e.childNodes.forEach((e=>{this.deregisterNode(e)})),delete this.nodesMap[e.key]}getCheckedNodes(e=!1,t=!1){const a=[],n=function(l){(l.root?l.root.childNodes:l.childNodes).forEach((l=>{if((l.checked||t&&l.indeterminate)&&(!e||e&&l.isLeaf))a.push(l.data);n(l)}))};return n(this),a}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map((e=>(e||{})[this.key]))}getHalfCheckedNodes(){const e=[],t=function(a){(a.root?a.root.childNodes:a.childNodes).forEach((a=>{if(a.indeterminate)e.push(a.data);t(a)}))};return t(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map((e=>(e||{})[this.key]))}_getAllNodes(){const e=[],t=this.nodesMap;for(const a in t)if(V(t,a))e.push(t[a]);return e}updateChildren(e,t){const a=this.nodesMap[e];if(!a)return;const n=a.childNodes;for(let l=n.length-1;l>=0;l--){const e=n[l];this.remove(e.data)}for(let l=0,o=t.length;l<o;l++){const e=t[l];this.append(e,a.data)}}_setCheckedKeys(e,t=!1,a){const n=this._getAllNodes().sort(((e,t)=>e.level-t.level)),l=Object.create(null),o=Object.keys(a);n.forEach((e=>e.setChecked(!1,!1)));const d=t=>{t.childNodes.forEach((t=>{var a;if(l[t.data[e]]=!0,null==(a=t.childNodes)?void 0:a.length)d(t)}))};for(let i=0,s=n.length;i<s;i++){const a=n[i],s=a.data[e].toString();if(o.includes(s)){if(a.childNodes.length)d(a);if(!a.isLeaf&&!this.checkStrictly){if(a.setChecked(!0,!0),t){a.setChecked(!1,!1);const e=function(t){t.childNodes.forEach((t=>{if(!t.isLeaf)t.setChecked(!1,!1);e(t)}))};e(a)}}else a.setChecked(!0,!1)}else if(a.checked&&!l[s])a.setChecked(!1,!1)}}setCheckedNodes(e,t=!1){const a=this.key,n={};e.forEach((e=>{n[(e||{})[a]]=!0})),this._setCheckedKeys(a,t,n)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const a=this.key,n={};e.forEach((e=>{n[e]=!0})),this._setCheckedKeys(a,t,n)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach((e=>{const t=this.getNode(e);if(t)t.expand(null,this.autoExpandParent)}))}setChecked(e,t,a){const n=this.getNode(e);if(n)n.setChecked(!!t,a)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const t=this.currentNode;if(t)t.isCurrent=!1;this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,t=!0){const a=e[this.key],n=this.nodesMap[a];if(this.setCurrentNode(n),t&&this.currentNode.level>1)this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(e,t=!0){if(null==e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);const a=this.getNode(e);if(a)if(this.setCurrentNode(a),t&&this.currentNode.level>1)this.currentNode.parent.expand(null,!0)}}var ct=ce(h({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=re("tree"),a=n("NodeInstance"),l=n("RootTree");return()=>{const n=e.node,{data:o,store:d}=n;return e.renderContent?e.renderContent(q,{_self:a,node:n,data:o,store:d}):w(l.ctx.slots,"default",{node:n,data:o},(()=>[q("span",{class:t.be("node","label")},[n.label])]))}}}),[["__file","tree-node-content.vue"]]);function ut(e){const t=n("TreeNodeMap",null),a={treeNodeExpand:t=>{if(e.node!==t)e.node.collapse()},children:[]};if(t)t.children.push(a);return A("TreeNodeMap",a),{broadcastExpanded:t=>{if(e.accordion)for(const e of a.children)e.treeNodeExpand(t)}}}const ht=Symbol("dragEvents");const pt=h({name:"ElTreeNode",components:{ElCollapseTransition:Ze,ElCheckbox:Ye,NodeContent:ct,ElIcon:_e,Loading:ye},props:{node:{type:st,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const l=re("tree"),{broadcastExpanded:r}=ut(e),c=n("RootTree"),u=s(!1),h=s(!1),p=s(null),f=s(null),v=s(null),g=n(ht),m=i();if(A("NodeInstance",m),e.node.expanded)u.value=!0,h.value=!0;const y=c.props.props.children||"children";o((()=>{const t=e.node.data[y];return t&&[...t]}),(()=>{e.node.updateChildren()})),o((()=>e.node.indeterminate),(t=>{b(e.node.checked,t)})),o((()=>e.node.checked),(t=>{b(t,e.node.indeterminate)})),o((()=>e.node.childNodes.length),(()=>e.node.reInitChecked())),o((()=>e.node.expanded),(e=>{if(d((()=>u.value=e)),e)h.value=!0}));const b=(t,a)=>{if(p.value!==t||f.value!==a)c.ctx.emit("check-change",e.node.data,t,a);p.value=t,f.value=a},k=()=>
1{if(!e.node.isLeaf)if(u.value)c.ctx.emit("node-collapse",e.node.data,e.node,m),e.node.collapse();else e.node.expand(),t.emit("node-expand",e.node.data,e.node,m)},x=(t,a)=>{e.node.setChecked(a.target.checked,!c.props.checkStrictly),d((()=>{const t=c.store.value;c.ctx.emit("check",e.node.data,{checkedNodes:t.getCheckedNodes(),checkedKeys:t.getCheckedKeys(),halfCheckedNodes:t.getHalfCheckedNodes(),halfCheckedKeys:t.getHalfCheckedKeys()})}))};return{ns:l,node$:v,tree:c,expanded:u,childNodeRendered:h,oldChecked:p,oldIndeterminate:f,getNodeKey:e=>at(c.props.nodeKey,e.data),getNodeClass:t=>{const n=e.props.class;if(!n)return{};let l;if(F(n)){const{data:e}=t;l=n(e,t)}else l=n;if(a(l))return{[l]:!0};else return l},handleSelectChange:b,handleClick:t=>{if(nt(c.store,c.ctx.emit,(()=>c.store.value.setCurrentNode(e.node))),c.currentNode.value=e.node,c.props.expandOnClickNode)k();if(c.props.checkOnClickNode&&!e.node.disabled)x(null,{target:{checked:!e.node.checked}});c.ctx.emit("node-click",e.node.data,e.node,m,t)},handleContextMenu:t=>{if(c.instance.vnode.props.onNodeContextmenu)t.stopPropagation(),t.preventDefault();c.ctx.emit("node-contextmenu",t,e.node.data,e.node,m)},handleExpandIconClick:k,handleCheckChange:x,handleChildNodeExpand:(e,t,a)=>{r(t),c.ctx.emit("node-expand",e,t,a)},handleDragStart:t=>{if(c.props.draggable)g.treeNodeDragStart({event:t,treeNode:e})},handleDragOver:t=>{if(t.preventDefault(),c.props.draggable)g.treeNodeDragOver({event:t,treeNode:{$el:v.value,node:e.node}})},handleDrop:e=>{e.preventDefault()},handleDragEnd:e=>{if(c.props.draggable)g.treeNodeDragEnd(e)},CaretRight:be}}}),ft=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],vt=["aria-expanded"];var gt=ce(h({name:"ElTree",components:{ElTreeNode:ce(pt,[["render",function(e,t,a,n,l,o){const d=H("el-icon"),i=H("el-checkbox"),s=H("loading"),r=H("node-content"),c=H("el-tree-node"),u=H("el-collapse-transition");return k((f(),x("div",{ref:"node$",class:y([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)]),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[1]||(t[1]=N(((...t)=>e.handleClick&&e.handleClick(...t)),["stop"])),onContextmenu:t[2]||(t[2]=(...t)=>e.handleContextMenu&&e.handleContextMenu(...t)),onDragstart:t[3]||(t[3]=N(((...t)=>e.handleDragStart&&e.handleDragStart(...t)),["stop"])),onDragover:t[4]||(t[4]=N(((...t)=>e.handleDragOver&&e.handleDragOver(...t)),["stop"])),onDragend:t[5]||(t[5]=N(((...t)=>e.handleDragEnd&&e.handleDragEnd(...t)),["stop"])),onDrop:t[6]||(t[6]=N(((...t)=>e.handleDrop&&e.handleDrop(...t)),["stop"]))},[m("div",{class:y(e.ns.be("node","content")),style:_({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(f(),v(d,{key:0,class:y([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:N(e.handleExpandIconClick,["stop"])},{default:g((()=>[(f(),v(B(e.tree.props.icon||e.CaretRight)))])),_:1},8,["class","onClick"])):L("v-if",!0),e.showCheckbox?(f(),v(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=N((()=>{}),["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):L("v-if",!0),e.node.loading?(f(),v(d,{key:2,class:y([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:g((()=>[M(s)])),_:1},8,["class"])):L("v-if",!0),M(r,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),M(u,null,{default:g((()=>[!e.renderAfterExpand||e.childNodeRendered?k((f(),x("div",{key:0,class:y(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(f(!0),x(D,null,P(e.node.childNodes,(t=>(f(),v(c,{key:e.getNodeKey(t),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:t,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"])))),128))],10,vt)),[[j,e.expanded]]):L("v-if",!0)])),_:1})],42,ft)),[[j,e.node.visible]])}],["__file","tree-node.vue"]])},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:xe}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","no
1de-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:a}=ae(),d=re("tree"),r=n(ne,null),c=s(new rt({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}));c.value.initialize();const u=s(c.value.root),h=s(null),p=s(null),f=s(null),{broadcastExpanded:v}=ut(e),{dragState:g}=function({props:e,ctx:t,el$:a,dropIndicator$:n,store:l}){const o=re("tree"),d=s({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return A(ht,{treeNodeDragStart:({event:a,treeNode:n})=>{if("function"==typeof e.allowDrag&&!e.allowDrag(n.node))return a.preventDefault(),!1;a.dataTransfer.effectAllowed="move";try{a.dataTransfer.setData("text/plain","")}catch(l){}d.value.draggingNode=n,t.emit("node-drag-start",n.node,a)},treeNodeDragOver:({event:l,treeNode:i})=>{const s=i,r=d.value.dropNode;if(r&&r.node.id!==s.node.id)ge(r.$el,o.is("drop-inner"));const c=d.value.draggingNode;if(!c||!s)return;let u=!0,h=!0,p=!0,f=!0;if("function"==typeof e.allowDrop)u=e.allowDrop(c.node,s.node,"prev"),f=h=e.allowDrop(c.node,s.node,"inner"),p=e.allowDrop(c.node,s.node,"next");if(l.dataTransfer.dropEffect=h||u||p?"move":"none",(u||h||p)&&(null==r?void 0:r.node.id)!==s.node.id){if(r)t.emit("node-drag-leave",c.node,r.node,l);t.emit("node-drag-enter",c.node,s.node,l)}if(u||h||p)d.value.dropNode=s;else d.value.dropNode=null;if(s.node.nextSibling===c.node)p=!1;if(s.node.previousSibling===c.node)u=!1;if(s.node.contains(c.node,!1))h=!1;if(c.node===s.node||c.node.contains(s.node))u=!1,h=!1,p=!1;const v=s.$el.querySelector(`.${o.be("node","content")}`).getBoundingClientRect(),g=a.value.getBoundingClientRect();let m;const y=u?h?.25:p?.45:1:-1,b=p?h?.75:u?.55:0:1;let k=-9999;const x=l.clientY-v.top;if(x<v.height*y)m="before";else if(x>v.height*b)m="after";else if(h)m="inner";else m="none";const C=s.$el.querySelector(`.${o.be("node","expand-icon")}`).getBoundingClientRect(),N=n.value;if("before"===m)k=C.top-g.top;else if("after"===m)k=C.bottom-g.top;if(N.style.top=`${k}px`,N.style.left=C.right-g.left+"px","inner"===m)me(s.$el,o.is("drop-inner"));else ge(s.$el,o.is("drop-inner"));d.value.showDropIndicator="before"===m||"after"===m,d.value.allowDrop=d.value.showDropIndicator||f,d.value.dropType=m,t.emit("node-drag-over",c.node,s.node,l)},treeNodeDragEnd:e=>{const{draggingNode:a,dropType:n,dropNode:i}=d.value;if(e.preventDefault(),e.dataTransfer.dropEffect="move",a&&i){const d={data:a.node.data};if("none"!==n)a.node.remove();if("before"===n)i.node.parent.insertBefore(d,i.node);else if("after"===n)i.node.parent.insertAfter(d,i.node);else if("inner"===n)i.node.insertChild(d);if("none"!==n)if(l.value.registerNode(d),l.value.key)a.node.eachNode((e=>{var t;null==(t=l.value.nodesMap[e.data[l.value.key]])||t.setChecked(e.checked,!l.value.checkStrictly)}));if(ge(i.$el,o.is("drop-inner")),t.emit("node-drag-end",a.node,i.node,n,e),"none"!==n)t.emit("node-drop",a.node,i.node,n,e)}if(a&&!i)t.emit("node-drag-end",a.node,null,n,e);d.value.showDropIndicator=!1,d.value.draggingNode=null,d.value.dropNode=null,d.value.allowDrop=!0}}),{dragState:d}}({props:e,ctx:t,el$:p,dropIndicator$:f,store:c});!function({el$:e},t){const a=re("tree"),n=R([]),l=R([]);U((()=>{d()})),G((()=>{n.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),l.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))})),o(l,(e=>{e.forEach((e=>{e.setAttribute("tabindex","-1")}))})),ke(e,"keydown",(l=>{const o=l.target;if(!o.className.includes(a.b("node")))return;const d=l.code;n.value=Array.from(e.value.querySelectorAll(`.${a.is("focusable")}[role=treeitem]`));const i=n.value.indexOf(o);let s;if([Ae.up,Ae.down].includes(d)){if(l.preventDefault(),d===Ae.up){s=-1===i?0:0!==i?i-1:n.value.length-1;const e=s;for(;!t.value.getNode(n.value[s].dataset.key).canFocus;){if(s--,s===e){s=-1;break}if(s<0)s=n.value.length-1}}else{s=-1===i?0:i<n.value.length-1?i+1:0;const e=s;for(;!t.value.getNode(n.value[s].dataset.key).canFocus;){if(s++,s===e){s=-1;break}if(s>=n.value.length)s=0}}-1!==s&&n.value[s].focus()}if([Ae.left,Ae.right].includes(d))l.preventDefault(),o.click();const r=o.querySelector('[type="checkbox"]');if([Ae.enter,Ae.space].includes(d)&&r)l.preventDefault(),r.click()}));const d=()=>{var t;n.value=Array.from(e.value.querySelectorAll(`.${a.is("focusable")}[role=treeitem]`)),l.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const o=e.value.querySelectorAll(`.${a.is("checked")}[role=treeitem]`);if(!o.length)null==(t=n.value[0])||t.setAttribute("tabindex","0");else o[0].setAttribute("tabindex","0")}}({el$:p},c);const m=l((()=>{const{childNodes:e}=u.value,t=r?0!==r.hasFilteredOptions:!1;return(!e||0===e.length||e.every((({visible:e})=>!e)))&&!t}));o((()=>e.currentNodeKey),(e=>{c.value.setCurrentNodeKey(e)})),o((()=>e.defaultCheckedKeys),(e=>{c.value.setDefaultCheckedKey(e)})),o((()=>e.defaultExpandedKeys),(e=>{c.value.setDefaultExpandedKeys(e)})),o((()=>e.data),(e=>{c.value.setData(e)}),{deep:!0}),o((()=>e.checkStrictly),(e=>{c.value.checkStrictly=e}));const y=()=>{const e=c.value.getCurrentNode();return e?e.data:null};return A("RootTree",{ctx:t,props:e,store:c,root:u,currentNode:h,instance:i()}),A(Ce,void 0),{ns:d,store:c,root:u,currentNode:h,dragState:g,el$:p,dropIndicator$:f,isEmpty:m,filter:t=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");c.value.filter(t)},getNodeKey:t=>at(e.nodeKey,t.data),getNodePath:t=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const a=c.value.getNode(t);if(!a)return[];const n=[a.data];let l=a.parent;for(;l&&l!==u.value;)n.push(l.data),l=l.parent;return n.reverse()},getCheckedNodes:(e,t)=>c.value.getCheckedNodes(e,t),getCheckedKeys:e=>c.value.getCheckedKeys(e),getCurrentNode:y,getCurrentKey:()=>
1{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const t=y();return t?t[e.nodeKey]:null},setCheckedNodes:(t,a)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");c.value.setCheckedNodes(t,a)},setCheckedKeys:(t,a)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");c.value.setCheckedKeys(t,a)},setChecked:(e,t,a)=>{c.value.setChecked(e,t,a)},getHalfCheckedNodes:()=>c.value.getHalfCheckedNodes(),getHalfCheckedKeys:()=>c.value.getHalfCheckedKeys(),setCurrentNode:(a,n=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");nt(c,t.emit,(()=>c.value.setUserCurrentNode(a,n)))},setCurrentKey:(a,n=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");nt(c,t.emit,(()=>c.value.setCurrentNodeKey(a,n)))},t:a,getNode:e=>c.value.getNode(e),remove:e=>{c.value.remove(e)},append:(e,t)=>{c.value.append(e,t)},insertBefore:(e,t)=>{c.value.insertBefore(e,t)},insertAfter:(e,t)=>{c.value.insertAfter(e,t)},handleNodeExpand:(e,a,n)=>{v(a),t.emit("node-expand",e,a,n)},updateKeyChildren:(t,a)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");c.value.updateChildren(t,a)}}}}),[["render",function(e,t,a,n,l,o){const d=H("el-tree-node");return f(),x("div",{ref:"el$",class:y([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner","inner"===e.dragState.dropType),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(f(!0),x(D,null,P(e.root.childNodes,(t=>(f(),v(d,{key:e.getNodeKey(t),node:t,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?(f(),x("div",{key:0,class:y(e.ns.e("empty-block"))},[w(e.$slots,"empty",{},(()=>{var t;return[m("span",{class:y(e.ns.e("empty-text"))},K(null!=(t=e.emptyText)?t:e.t("el.tree.emptyText")),3)]}))],2)):L("v-if",!0),k(m("div",{ref:"dropIndicator$",class:y(e.ns.e("drop-indicator"))},null,2),[[j,e.dragState.showDropIndicator]])],2)}],["__file","tree.vue"]]);gt.install=e=>{e.component(gt.name,gt)};const mt=gt;const yt={class:"support_wrap"},bt={class:"support_wrap_1"},kt={class:"support_tabs content"},xt=["onClick"],Ct={class:"support_body"},Nt={class:"support_left"},Et=["onClick"],wt={class:"content"},Dt={class:"imgBox"},St=["src"],Kt={key:0},Lt={class:"support_right"},Bt={key:0,class:"imgPreview content"},_t=["src"];var At=W(h({__name:"index",props:{isEmbed:{type:Boolean,default:!0}},setup(a){const{t:n,locale:l}=J(),d=Y(),i=Q(),r=X(),c=s({value1:1,value2:0,value3:0}),u=s([]),h=s(!1),p=s(""),v=ee,k=s(),C=s(),N=s([{name:"mess.support.text_1",path:"/support/download"},{name:"mess.support.text_2",path:"/support/tutorials"},{name:"mess.support.text_3",path:"/support/faq"}]);U((()=>{}));let E=0;const w=s({children:"children",label:"text"}),S=(e,t)=>{C.value=t,i.push({path:e,query:{page:C.value}})};return o((()=>d.query),(e=>{(()=>{let e=[];
1if(v.map((t=>{if(Array.isArray(t.show)&&t.show.includes(r.languageValue)){if(t.children&&t.children.length){let e=[];t.children.forEach((t=>{if(Array.isArray(t.show)&&t.show.includes(r.languageValue))e.push(t)})),t.children=e}e.push(t)}})),k.value=e,E=0,k.value.map((e=>{if(e.id=E+=1,e.isOpen=!1,e.children)e.children.map((e=>{if(e.id=E+=1,e.isOpen=!1,e.children)e.children.map((e=>{e.id=E+=1}))}))})),d.query&&d.query.page){let e=function(e,t){function a(e,t,n=null){for(var l=0;l<e.length;l++){let o=e[l];if(o.name===t)return{parentId:n,item:o};if(o.children){const e=a(o.children,t,o.id);if(e)return e}}return null}return a(e,t)}(k.value,d.query.page);if(e){let t=e.parentId||e.item&&e.item.id;if(t)c.value.value1=t;C.value=e.item,c.value.value2=e.item.id,u.value=[e.parentId,e.item.id]}else C.value=k.value[0].name,i.replace({path:d.path,query:{page:C.value}})}else C.value=k.value[0].name,i.replace({path:d.path,query:{page:C.value}})})()}),{immediate:!0}),(a,l)=>{const o=H("router-view"),i=e;return f(),x(D,null,[m("div",yt,[m("div",bt,[l[2]||(l[2]=m("div",{class:"support_banner"},[m("img",{src:"https://cdn-bukbb1.xgrids.cloud/ep/dc/officialWebsite/support/pc/img/banner_cn_2.png",alt:""})],-1)),m("div",kt,[(f(!0),x(D,null,P(N.value,((e,t)=>(f(),x("div",{class:y(["support_tabs_item content",{support_tabs_item_1:b(d).path.indexOf(e.path)>-1}]),key:t,onClick:t=>S(e.path,b(d).query.page)},K(b(n)(e.name)),11,xt)))),128))]),m("div",Ct,[m("div",Nt,[M(b(mt),{props:w.value,data:k.value,"node-key":"id",accordion:"","empty-text":b(n)("mess.download.text_2"),"default-expanded-keys":u.value},{default:g((({node:e,data:t})=>[m("div",{class:y(["custom-tree-node",{"tree-node-bg":2==t.type&&t.id==c.value.value2,"tree-node-color":1==t.type&&t.id==c.value.value1}]),onClick:a=>((e,t)=>{if(1==t.type){if(c.value.value1=t.id,t.list)c.value.value2="",c.value.value3=""}else if(2==t.type){if(e&&e.parent)c.value.value1=e.parent.key;c.value.value2=t.id,c.value.value3=""}else if(3==t.type)c.value.value3=t.id;if(!t.children)S(d.path,t.name)})(e,t)},[m("div",wt,[m("div",Dt,[t.img?(f(),x("img",{key:0,src:1==t.type&&t.id==c.value.value1?t.img:t.img1,alt:""},null,8,St)):L("",!0)]),m("div",{style:_("padding-left:"+15*(t.type-1)+"px")},K(b(n)(e.label)),5)]),1==t.type&&t.children&&t.children.length?(f(),x("div",Kt,[(f(),x("svg",{t:"1709605135944",class:y(["icon",{iconrotate:e.expanded}]),viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2647",width:"25",height:"25",fill:"#182B67"},[...l[1]||(l[1]=[m("path",{d:"M500.8 604.779L267.307 371.392l-45.227 45.27 278.741 278.613L779.307 416.66l-45.248-45.248z","p-id":"2648"},null,-1)])],2))])):L("",!0)],10,Et)])),_:1},8,["props","data","empty-text","default-expanded-keys"])]),m("div",Lt,[M(o)])])])]),M(i,{show:h.value,type:0},null,8,["show"]),p.value?(f(),x("div",Bt,[m("img",{src:t,alt:"",class:"close",onClick:l[0]||(l[0]=e=>p.value="")}),m("img",{src:p.value,alt:"",class:"img"},null,8,_t)])):L("",!0),M(Z)],64)}}}),[["__scopeId","data-v-7ce50a3c"]]);export{At as default};

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.