tg_web_dist/js/index.DsgrQpz8.js
2025-07-04 17:06:01 +08:00

2 lines
91 KiB
JavaScript

import{b as e,i as t,_ as l,d as a,u as n,a as o,r,o as s,c as i,e as u,f as c,g as d,n as p,p as v,h as f,j as m,k as h,l as g,m as b,w as y,q as w,E as x,t as k,s as _,v as C,x as I,y as M,z as S,C as E,U as $,A as V,B as T,D as A,F as L,G as P,H as B,I as O,J as N,K as F,T as R,L as K,M as z,N as D,O as H,P as j,Q as W,R as q,S as G,V as U,W as Y,X,Y as J,Z,$ as Q,a0 as ee,a1 as te,a2 as le,a3 as ae,a4 as ne,a5 as oe,a6 as re,a7 as se,a8 as ie,a9 as ue,aa as ce,ab as de,ac as pe,ad as ve,ae as fe,af as me,ag as he,ah as ge,ai as be,aj as ye,ak as we,al as xe,am as ke,an as _e,ao as Ce,ap as Ie,aq as Me,ar as Se,as as Ee,at as $e,au as Ve,av as Te,aw as Ae,ax as Le,ay as Pe,az as Be,aA as Oe,aB as Ne,aC as Fe,aD as Re,aE as Ke,aF as ze,aG as De,aH as He,aI as je,aJ as We,aK as qe,aL as Ge,aM as Ue,aN as Ye,aO as Xe,aP as Je,aQ as Ze,aR as Qe,aS as et,aT as tt,aU as lt,aV as at,aW as nt,aX as ot,aY as rt,aZ as st,a_ as it,a$ as ut,b0 as ct,b1 as dt,b2 as pt,b3 as vt,b4 as ft,b5 as mt,b6 as ht,b7 as gt,b8 as bt,b9 as yt,ba as wt,bb as xt,bc as kt,bd as _t,be as Ct,bf as It,bg as Mt,bh as St,bi as Et,bj as $t,bk as Vt,bl as Tt,bm as At,bn as Lt,bo as Pt,bp as Bt,bq as Ot,br as Nt,bs as Ft,bt as Rt}from"./index.hhEe1BLx.js";import{_ as Kt}from"./index._j-4o23O.js";const zt=Symbol("breadcrumbKey"),Dt=e({separator:{type:String,default:"/"},separatorIcon:{type:t}}),Ht=a({name:"ElBreadcrumb"});var jt=l(a({...Ht,props:Dt,setup(e){const t=e,{t:l}=n(),a=o("breadcrumb"),f=r();return v(zt,t),s((()=>{const e=f.value.querySelectorAll(`.${a.e("item")}`);e.length&&e[e.length-1].setAttribute("aria-current","page")})),(e,t)=>(u(),i("div",{ref_key:"breadcrumb",ref:f,class:p(d(a).b()),"aria-label":d(l)("el.breadcrumb.label"),role:"navigation"},[c(e.$slots,"default")],10,["aria-label"]))}}),[["__file","breadcrumb.vue"]]);const Wt=e({to:{type:f([String,Object]),default:""},replace:Boolean}),qt=a({name:"ElBreadcrumbItem"});var Gt=l(a({...qt,props:Wt,setup(e){const t=e,l=h(),a=m(zt,void 0),n=o("breadcrumb"),s=l.appContext.config.globalProperties.$router,v=r(),f=()=>{t.to&&s&&(t.replace?s.replace(t.to):s.push(t.to))};return(e,t)=>{var l,o;return u(),i("span",{class:p(d(n).e("item"))},[g("span",{ref_key:"link",ref:v,class:p([d(n).e("inner"),d(n).is("link",!!e.to)]),role:"link",onClick:f},[c(e.$slots,"default")],2),(null==(l=d(a))?void 0:l.separatorIcon)?(u(),b(d(x),{key:0,class:p(d(n).e("separator"))},{default:y((()=>[(u(),b(w(d(a).separatorIcon)))])),_:1},8,["class"])):(u(),i("span",{key:1,class:p(d(n).e("separator")),role:"presentation"},k(null==(o=d(a))?void 0:o.separator),3))],2)}}}),[["__file","breadcrumb-item.vue"]]);const Ut=C(jt,{BreadcrumbItem:Gt}),Yt=_(Gt),Xt=e=>I(e)||M(e)||S(e),Jt=e({accordion:Boolean,modelValue:{type:f([Array,String,Number]),default:()=>V([])},expandIconPosition:{type:f([String]),default:"right"},beforeCollapse:{type:f(Function)}}),Zt={[$]:Xt,[E]:Xt},Qt=Symbol("collapseContextKey"),el=a({name:"ElCollapse"});var tl=l(a({...el,props:Jt,emits:Zt,setup(e,{expose:t,emit:l}){const a=e,{activeNames:n,setActiveNames:s}=((e,t)=>{const l=r(T(e.modelValue)),a=a=>{l.value=a;const n=e.accordion?l.value[0]:l.value;t($,n),t(E,n)},n=t=>{if(e.accordion)a([l.value[0]===t?"":t]);else{const e=[...l.value],n=e.indexOf(t);n>-1?e.splice(n,1):e.push(t),a(e)}};return A((()=>e.modelValue),(()=>l.value=T(e.modelValue)),{deep:!0}),v(Qt,{activeNames:l,handleItemClick:async t=>{const{beforeCollapse:l}=e;if(!l)return void n(t);const a=l(t);[P(a),B(a)].includes(!0)||O("ElCollapse","beforeCollapse must return type `Promise<boolean>` or `boolean`"),P(a)?a.then((e=>{!1!==e&&n(t)})).catch((e=>{})):a&&n(t)}}),{activeNames:l,setActiveNames:a}})(a,l),{rootKls:f}=(e=>{const t=o("collapse");return{rootKls:L((()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)]))}})(a);return t({activeNames:n,setActiveNames:s}),(e,t)=>(u(),i("div",{class:p(d(f))},[c(e.$slots,"default")],2))}}),[["__file","collapse.vue"]]);const ll=a({name:"ElCollapseTransition"});const al=C(l(a({...ll,setup(e){const t=o("collapse-transition"),l=e=>{e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},a={beforeEnter(e){e.dataset||(e.dataset={}),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((()=>{e.dataset.oldOverflow=e.style.overflow,e.dataset.elExistsHeight?e.style.maxHeight=e.dataset.elExistsHeight:0!==e.scrollHeight?e.style.maxHeight=`${e.scrollHeight}px`: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){l(e)},beforeLeave(e){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){0!==e.scrollHeight&&(e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){l(e)},leaveCancelled(e){l(e)}};return(e,l)=>(u(),b(R,N({name:d(t).b()},F(a)),{default:y((()=>[c(e.$slots,"default")])),_:3},16,["name"]))}}),[["__file","collapse-transition.vue"]])),nl=e({title:{type:String,default:""},name:{type:f([String,Number]),default:void 0},icon:{type:t,default:K},disabled:Boolean}),ol=a({name:"ElCollapseItem"});var rl=l(a({...ol,props:nl,setup(e,{expose:t}){const l=e,{focusing:a,id:n,isActive:s,handleFocus:v,handleHeaderClick:f,handleEnterClick:h}=(e=>{const t=m(Qt),{namespace:l}=o("collapse"),a=r(!1),n=r(!1),s=z(),i=L((()=>s.current++)),u=L((()=>{var t;return null!=(t=e.name)?t:`${l.value}-id-${s.prefix}-${d(i)}`})),c=L((()=>null==t?void 0:t.activeNames.value.includes(d(u))));return{focusing:a,id:i,isActive:c,handleFocus:()=>{setTimeout((()=>{n.value?n.value=!1:a.value=!0}),50)},handleHeaderClick:()=>{e.disabled||(null==t||t.handleItemClick(d(u)),a.value=!1,n.value=!0)},handleEnterClick:()=>{null==t||t.handleItemClick(d(u))}}})(l),{arrowKls:_,headKls:C,rootKls:I,itemTitleKls:M,itemWrapperKls:S,itemContentKls:E,scopedContentId:$,scopedHeadId:V}=((e,{focusing:t,isActive:l,id:a})=>{const n=o("collapse"),r=L((()=>[n.b("item"),n.is("active",d(l)),n.is("disabled",e.disabled)])),s=L((()=>[n.be("item","header"),n.is("active",d(l)),{focusing:d(t)&&!e.disabled}])),i=L((()=>[n.be("item","arrow"),n.is("active",d(l))]));return{itemTitleKls:L((()=>[n.be("item","title")])),arrowKls:i,headKls:s,rootKls:r,itemWrapperKls:L((()=>n.be("item","wrap"))),itemContentKls:L((()=>n.be("item","content"))),scopedContentId:L((()=>n.b(`content-${d(a)}`))),scopedHeadId:L((()=>n.b(`head-${d(a)}`)))}})(l,{focusing:a,isActive:s,id:n});return t({isActive:s}),(e,t)=>(u(),i("div",{class:p(d(I))},[g("button",{id:d(V),class:p(d(C)),"aria-expanded":d(s),"aria-controls":d($),"aria-describedby":d($),tabindex:e.disabled?-1:0,type:"button",onClick:d(f),onKeydown:j(W(d(h),["stop","prevent"]),["space","enter"]),onFocus:d(v),onBlur:e=>a.value=!1},[g("span",{class:p(d(M))},[c(e.$slots,"title",{isActive:d(s)},(()=>[H(k(e.title),1)]))],2),c(e.$slots,"icon",{isActive:d(s)},(()=>[D(d(x),{class:p(d(_))},{default:y((()=>[(u(),b(w(e.icon)))])),_:1},8,["class"])]))],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),D(d(al),null,{default:y((()=>[q(g("div",{id:d($),role:"region",class:p(d(S)),"aria-hidden":!d(s),"aria-labelledby":d(V)},[g("div",{class:p(d(E))},[c(e.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[G,d(s)]])])),_:3})],2))}}),[["__file","collapse-item.vue"]]);const sl=C(tl,{CollapseItem:rl}),il=_(rl),ul=e({color:{type:f(Object),required:!0},vertical:{type:Boolean,default:!1}});let cl=!1;function dl(e,t){if(!U)return;const l=function(e){var l;null==(l=t.drag)||l.call(t,e)},a=function(e){var n;document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",a),document.removeEventListener("touchmove",l),document.removeEventListener("touchend",a),document.onselectstart=null,document.ondragstart=null,cl=!1,null==(n=t.end)||n.call(t,e)},n=function(e){var n;cl||(e.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",l),document.addEventListener("mouseup",a),document.addEventListener("touchmove",l),document.addEventListener("touchend",a),cl=!0,null==(n=t.start)||n.call(t,e))};e.addEventListener("mousedown",n),e.addEventListener("touchstart",n,{passive:!1})}const pl=(e,{bar:t,thumb:l,handleDrag:a})=>{const n=h(),i=o("color-alpha-slider"),u=r(0),c=r(0),d=r();function p(){u.value=function(){if(!l.value)return 0;if(e.vertical)return 0;const t=n.vnode.el,a=e.color.get("alpha");return t?Math.round(a*(t.offsetWidth-l.value.offsetWidth/2)/100):0}(),c.value=function(){if(!l.value)return 0;const t=n.vnode.el;if(!e.vertical)return 0;const a=e.color.get("alpha");return t?Math.round(a*(t.offsetHeight-l.value.offsetHeight/2)/100):0}(),d.value=function(){if(e.color&&e.color.value){const{r:t,g:l,b:a}=e.color.toRgb();return`linear-gradient(to right, rgba(${t}, ${l}, ${a}, 0) 0%, rgba(${t}, ${l}, ${a}, 1) 100%)`}return""}()}s((()=>{if(!t.value||!l.value)return;const e={drag:e=>{a(e)},end:e=>{a(e)}};dl(t.value,e),dl(l.value,e),p()})),A((()=>e.color.get("alpha")),(()=>p())),A((()=>e.color.value),(()=>p()));const v=L((()=>[i.b(),i.is("vertical",e.vertical)])),f=L((()=>i.e("bar"))),m=L((()=>i.e("thumb")));return{rootKls:v,barKls:f,barStyle:L((()=>({background:d.value}))),thumbKls:m,thumbStyle:L((()=>({left:X(u.value),top:X(c.value)}))),update:p}},vl=a({name:"ElColorAlphaSlider"});var fl=l(a({...vl,props:ul,setup(e,{expose:t}){const l=e,{alpha:a,alphaLabel:o,bar:r,thumb:s,handleDrag:c,handleClick:v,handleKeydown:f}=(e=>{const t=h(),{t:l}=n(),a=Y(),o=Y(),r=L((()=>e.color.get("alpha"))),s=L((()=>l("el.colorpicker.alphaLabel")));function i(l){if(!o.value||!a.value)return;const n=t.vnode.el.getBoundingClientRect(),{clientX:r,clientY:s}=Z(l);if(e.vertical){let t=s-n.top;t=Math.max(a.value.offsetHeight/2,t),t=Math.min(t,n.height-a.value.offsetHeight/2),e.color.set("alpha",Math.round((t-a.value.offsetHeight/2)/(n.height-a.value.offsetHeight)*100))}else{let t=r-n.left;t=Math.max(a.value.offsetWidth/2,t),t=Math.min(t,n.width-a.value.offsetWidth/2),e.color.set("alpha",Math.round((t-a.value.offsetWidth/2)/(n.width-a.value.offsetWidth)*100))}}function u(t){let l=r.value+t;l=l<0?0:l>100?100:l,e.color.set("alpha",l)}return{thumb:a,bar:o,alpha:r,alphaLabel:s,handleDrag:i,handleClick:function(e){var t;e.target!==a.value&&i(e),null==(t=a.value)||t.focus()},handleKeydown:function(e){const{code:t,shiftKey:l}=e,a=l?10:1;switch(t){case J.left:case J.down:e.preventDefault(),e.stopPropagation(),u(-a);break;case J.right:case J.up:e.preventDefault(),e.stopPropagation(),u(a)}}}})(l),{rootKls:m,barKls:b,barStyle:y,thumbKls:w,thumbStyle:x,update:k}=pl(l,{bar:r,thumb:s,handleDrag:c});return t({update:k,bar:r,thumb:s}),(e,t)=>(u(),i("div",{class:p(d(m))},[g("div",{ref_key:"bar",ref:r,class:p(d(b)),style:Q(d(y)),onClick:d(v)},null,14,["onClick"]),g("div",{ref_key:"thumb",ref:s,class:p(d(w)),style:Q(d(x)),"aria-label":d(o),"aria-valuenow":d(a),"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":"0","aria-valuemax":"100",role:"slider",tabindex:"0",onKeydown:d(f)},null,46,["aria-label","aria-valuenow","aria-orientation","onKeydown"])],2))}}),[["__file","alpha-slider.vue"]]);var ml=l(a({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=o("color-hue-slider"),l=h(),a=r(),n=r(),i=r(0),u=r(0),c=L((()=>e.color.get("hue")));function d(t){if(!n.value||!a.value)return;const o=l.vnode.el.getBoundingClientRect(),{clientX:r,clientY:s}=Z(t);let i;if(e.vertical){let e=s-o.top;e=Math.min(e,o.height-a.value.offsetHeight/2),e=Math.max(a.value.offsetHeight/2,e),i=Math.round((e-a.value.offsetHeight/2)/(o.height-a.value.offsetHeight)*360)}else{let e=r-o.left;e=Math.min(e,o.width-a.value.offsetWidth/2),e=Math.max(a.value.offsetWidth/2,e),i=Math.round((e-a.value.offsetWidth/2)/(o.width-a.value.offsetWidth)*360)}e.color.set("hue",i)}function p(){i.value=function(){if(!a.value)return 0;const t=l.vnode.el;if(e.vertical)return 0;const n=e.color.get("hue");return t?Math.round(n*(t.offsetWidth-a.value.offsetWidth/2)/360):0}(),u.value=function(){if(!a.value)return 0;const t=l.vnode.el;if(!e.vertical)return 0;const n=e.color.get("hue");return t?Math.round(n*(t.offsetHeight-a.value.offsetHeight/2)/360):0}()}return A((()=>c.value),(()=>{p()})),s((()=>{if(!n.value||!a.value)return;const e={drag:e=>{d(e)},end:e=>{d(e)}};dl(n.value,e),dl(a.value,e),p()})),{bar:n,thumb:a,thumbLeft:i,thumbTop:u,hueValue:c,handleClick:function(e){e.target!==a.value&&d(e)},update:p,ns:t}}}),[["render",function(e,t,l,a,n,o){return u(),i("div",{class:p([e.ns.b(),e.ns.is("vertical",e.vertical)])},[g("div",{ref:"bar",class:p(e.ns.e("bar")),onClick:e.handleClick},null,10,["onClick"]),g("div",{ref:"thumb",class:p(e.ns.e("thumb")),style:Q({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}],["__file","hue-slider.vue"]]);const hl=e({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:ae,popperClass:{type:String,default:""},tabindex:{type:[String,Number],default:0},teleported:le.teleported,predefine:{type:f(Array)},validateEvent:{type:Boolean,default:!0},...te(["ariaLabel"])}),gl={[$]:e=>M(e)||ee(e),[E]:e=>M(e)||ee(e),activeChange:e=>M(e)||ee(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},bl=Symbol("colorPickerContextKey"),yl=function(e,t,l){return[e,t*l/((e=(2-t)*l)<1?e:2-e)||0,e/2]},wl=function(e,t){var l;M(l=e)&&l.includes(".")&&1===Number.parseFloat(l)&&(e="100%");const a=function(e){return M(e)&&e.includes("%")}(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),a&&(e=Number.parseInt(""+e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},xl={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},kl=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),l=e%16;return`${xl[t]||t}${xl[l]||l}`},_l=function({r:e,g:t,b:l}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+l)?"":`#${kl(e)}${kl(t)}${kl(l)}`},Cl={A:10,B:11,C:12,D:13,E:14,F:15},Il=function(e){return 2===e.length?16*(Cl[e[0].toUpperCase()]||+e[0])+(Cl[e[1].toUpperCase()]||+e[1]):Cl[e[1].toUpperCase()]||+e[1]},Ml=(e,t,l)=>{e=wl(e,255),t=wl(t,255),l=wl(l,255);const a=Math.max(e,t,l),n=Math.min(e,t,l);let o;const r=a,s=a-n,i=0===a?0:s/a;if(a===n)o=0;else{switch(a){case e:o=(t-l)/s+(t<l?6:0);break;case t:o=(l-e)/s+2;break;case l:o=(e-t)/s+4}o/=6}return{h:360*o,s:100*i,v:100*r}},Sl=function(e,t,l){e=6*wl(e,360),t=wl(t,100),l=wl(l,100);const a=Math.floor(e),n=e-a,o=l*(1-t),r=l*(1-n*t),s=l*(1-(1-n)*t),i=a%6,u=[l,r,o,o,s,l][i],c=[s,l,l,r,o,o][i],d=[o,o,s,l,l,r][i];return{r:Math.round(255*u),g:Math.round(255*c),b:Math.round(255*d)}};class El{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const t in e)ne(e,t)&&(this[t]=e[t]);e.value?this.fromString(e.value):this.doOnChange()}set(e,t){if(1!==arguments.length||"object"!=typeof e)this[`_${e}`]=t,this.doOnChange();else for(const l in e)ne(e,l)&&this.set(l,e[l])}get(e){return"alpha"===e?Math.floor(this[`_${e}`]):this[`_${e}`]}toRgb(){return Sl(this._hue,this._saturation,this._value)}fromString(e){if(!e)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();const t=(e,t,l)=>{this._hue=Math.max(0,Math.min(360,e)),this._saturation=Math.max(0,Math.min(100,t)),this._value=Math.max(0,Math.min(100,l)),this.doOnChange()};if(e.includes("hsl")){const l=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===l.length?this._alpha=100*Number.parseFloat(l[3]):3===l.length&&(this._alpha=100),l.length>=3){const{h:e,s:a,v:n}=function(e,t,l){l/=100;let a=t/=100;const n=Math.max(l,.01);return t*=(l*=2)<=1?l:2-l,a*=n<=1?n:2-n,{h:e,s:100*(0===l?2*a/(n+a):2*t/(l+t)),v:(l+t)/2*100}}(l[0],l[1],l[2]);t(e,a,n)}}else if(e.includes("hsv")){const l=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));4===l.length?this._alpha=100*Number.parseFloat(l[3]):3===l.length&&(this._alpha=100),l.length>=3&&t(l[0],l[1],l[2])}else if(e.includes("rgb")){const l=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===l.length?this._alpha=100*Number.parseFloat(l[3]):3===l.length&&(this._alpha=100),l.length>=3){const{h:e,s:a,v:n}=Ml(l[0],l[1],l[2]);t(e,a,n)}}else if(e.includes("#")){const l=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(l))return;let a,n,o;3===l.length?(a=Il(l[0]+l[0]),n=Il(l[1]+l[1]),o=Il(l[2]+l[2])):6!==l.length&&8!==l.length||(a=Il(l.slice(0,2)),n=Il(l.slice(2,4)),o=Il(l.slice(4,6))),8===l.length?this._alpha=Il(l.slice(6))/255*100:3!==l.length&&6!==l.length||(this._alpha=100);const{h:r,s:s,v:i}=Ml(a,n,o);t(r,s,i)}}compare(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1}doOnChange(){const{_hue:e,_saturation:t,_value:l,_alpha:a,format:n}=this;if(this.enableAlpha)switch(n){case"hsl":{const a=yl(e,t/100,l/100);this.value=`hsla(${e}, ${Math.round(100*a[1])}%, ${Math.round(100*a[2])}%, ${this.get("alpha")/100})`;break}case"hsv":this.value=`hsva(${e}, ${Math.round(t)}%, ${Math.round(l)}%, ${this.get("alpha")/100})`;break;case"hex":this.value=`${_l(Sl(e,t,l))}${kl(255*a/100)}`;break;default:{const{r:a,g:n,b:o}=Sl(e,t,l);this.value=`rgba(${a}, ${n}, ${o}, ${this.get("alpha")/100})`}}else switch(n){case"hsl":{const a=yl(e,t/100,l/100);this.value=`hsl(${e}, ${Math.round(100*a[1])}%, ${Math.round(100*a[2])}%)`;break}case"hsv":this.value=`hsv(${e}, ${Math.round(t)}%, ${Math.round(l)}%)`;break;case"rgb":{const{r:a,g:n,b:o}=Sl(e,t,l);this.value=`rgb(${a}, ${n}, ${o})`;break}default:this.value=_l(Sl(e,t,l))}}}var $l=l(a({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0}},setup(e){const t=o("color-predefine"),{currentColor:l}=m(bl),a=r(n(e.colors,e.color));function n(t,l){return t.map((t=>{const a=new El;return a.enableAlpha=e.enableAlpha,a.format="rgba",a.fromString(t),a.selected=a.value===l.value,a}))}return A((()=>l.value),(e=>{const t=new El;t.fromString(e),a.value.forEach((e=>{e.selected=t.compare(e)}))})),se((()=>{a.value=n(e.colors,e.color)})),{rgbaColors:a,handleSelect:function(t){e.color.fromString(e.colors[t])},ns:t}}}),[["render",function(e,t,l,a,n,o){return u(),i("div",{class:p(e.ns.b())},[g("div",{class:p(e.ns.e("colors"))},[(u(!0),i(oe,null,re(e.rgbaColors,((t,l)=>(u(),i("div",{key:e.colors[l],class:p([e.ns.e("color-selector"),e.ns.is("alpha",t._alpha<100),{selected:t.selected}]),onClick:t=>e.handleSelect(l)},[g("div",{style:Q({backgroundColor:t.value})},null,4)],10,["onClick"])))),128))],2)],2)}],["__file","predefine.vue"]]);var Vl=l(a({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=o("color-svpanel"),l=h(),a=r(0),n=r(0),i=r("hsl(0, 100%, 50%)"),u=L((()=>({hue:e.color.get("hue"),value:e.color.get("value")})));function c(){const t=e.color.get("saturation"),o=e.color.get("value"),r=l.vnode.el,{clientWidth:s,clientHeight:u}=r;n.value=t*s/100,a.value=(100-o)*u/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function d(t){const o=l.vnode.el.getBoundingClientRect(),{clientX:r,clientY:s}=Z(t);let i=r-o.left,u=s-o.top;i=Math.max(0,i),i=Math.min(i,o.width),u=Math.max(0,u),u=Math.min(u,o.height),n.value=i,a.value=u,e.color.set({saturation:i/o.width*100,value:100-u/o.height*100})}return A((()=>u.value),(()=>{c()})),s((()=>{dl(l.vnode.el,{drag:e=>{d(e)},end:e=>{d(e)}}),c()})),{cursorTop:a,cursorLeft:n,background:i,colorValue:u,handleDrag:d,update:c,ns:t}}}),[["render",function(e,t,l,a,n,o){return u(),i("div",{class:p(e.ns.b()),style:Q({backgroundColor:e.background})},[g("div",{class:p(e.ns.e("white"))},null,2),g("div",{class:p(e.ns.e("black"))},null,2),g("div",{class:p(e.ns.e("cursor")),style:Q({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},[g("div")],6)],6)}],["__file","sv-panel.vue"]]);const Tl=a({name:"ElColorPicker"});const Al=C(l(a({...Tl,props:hl,emits:gl,setup(e,{expose:t,emit:l}){const a=e,{t:c}=n(),f=o("color"),{formItem:m}=ie(),h=ue(),w=ce(),{inputId:_,isLabeledByFormItem:C}=de(a,{formItemContext:m}),I=r(),M=r(),S=r(),V=r(),T=r(),P=r(),{isFocused:B,handleFocus:O,handleBlur:F}=pe(T,{beforeFocus:()=>w.value,beforeBlur(e){var t;return null==(t=V.value)?void 0:t.isFocusInsideContent(e)},afterBlur(){le(!1),re()}});let R=!0;const K=ve(new El({enableAlpha:a.showAlpha,format:a.colorFormat||"",value:a.modelValue})),z=r(!1),W=r(!1),U=r(""),Y=L((()=>a.modelValue||W.value?function(e,t){if(!(e instanceof El))throw new TypeError("color should be instance of _color Class");const{r:l,g:a,b:n}=e.toRgb();return t?`rgba(${l}, ${a}, ${n}, ${e.get("alpha")/100})`:`rgb(${l}, ${a}, ${n})`}(K,a.showAlpha):"transparent")),X=L((()=>a.modelValue||W.value?K.value:"")),Z=L((()=>C.value?void 0:a.ariaLabel||c("el.colorpicker.defaultLabel"))),ee=L((()=>C.value?null==m?void 0:m.labelId:void 0)),te=L((()=>[f.b("picker"),f.is("disabled",w.value),f.bm("picker",h.value),f.is("focused",B.value)]));function le(e){z.value=e}const ae=fe(le,100,{leading:!0});function ne(){w.value||le(!0)}function oe(){ae(!1),re()}function re(){me((()=>{a.modelValue?K.fromString(a.modelValue):(K.value="",me((()=>{W.value=!1})))}))}function se(){w.value||(z.value&&re(),ae(!z.value))}function Ce(){K.fromString(U.value)}function Ie(){const e=K.value;l($,e),l(E,e),a.validateEvent&&(null==m||m.validate("change").catch((e=>_e()))),ae(!1),me((()=>{const e=new El({enableAlpha:a.showAlpha,format:a.colorFormat||"",value:a.modelValue});K.compare(e)||re()}))}function Me(){ae(!1),l($,null),l(E,null),null!==a.modelValue&&a.validateEvent&&(null==m||m.validate("change").catch((e=>_e()))),re()}function Se(){z.value&&(oe(),B.value&&Ve())}function Ee(e){e.preventDefault(),e.stopPropagation(),le(!1),re()}function $e(e){switch(e.code){case J.enter:case J.numpadEnter:case J.space:e.preventDefault(),e.stopPropagation(),ne(),P.value.focus();break;case J.esc:Ee(e)}}function Ve(){T.value.focus()}return s((()=>{a.modelValue&&(U.value=X.value)})),A((()=>a.modelValue),(e=>{e?e&&e!==K.value&&(R=!1,K.fromString(e)):W.value=!1})),A((()=>[a.colorFormat,a.showAlpha]),(()=>{K.enableAlpha=a.showAlpha,K.format=a.colorFormat||K.format,K.doOnChange(),l($,K.value)})),A((()=>X.value),(e=>{U.value=e,R&&l("activeChange",e),R=!0})),A((()=>K.value),(()=>{a.modelValue||W.value||(W.value=!0)})),A((()=>z.value),(()=>{me((()=>{var e,t,l;null==(e=I.value)||e.update(),null==(t=M.value)||t.update(),null==(l=S.value)||l.update()}))})),v(bl,{currentColor:X}),t({color:K,show:ne,hide:oe,focus:Ve,blur:function(){T.value.blur()}}),(e,t)=>(u(),b(d(ke),{ref_key:"popper",ref:V,visible:z.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[d(f).be("picker","panel"),d(f).b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:e.teleported,transition:`${d(f).namespace.value}-zoom-in-top`,persistent:"",onHide:e=>le(!1)},{content:y((()=>[q((u(),i("div",{onKeydown:j(Ee,["esc"])},[g("div",{class:p(d(f).be("dropdown","main-wrapper"))},[D(ml,{ref_key:"hue",ref:I,class:"hue-slider",color:d(K),vertical:""},null,8,["color"]),D(Vl,{ref_key:"sv",ref:M,color:d(K)},null,8,["color"])],2),e.showAlpha?(u(),b(fl,{key:0,ref_key:"alpha",ref:S,color:d(K)},null,8,["color"])):he("v-if",!0),e.predefine?(u(),b($l,{key:1,ref:"predefine","enable-alpha":e.showAlpha,color:d(K),colors:e.predefine},null,8,["enable-alpha","color","colors"])):he("v-if",!0),g("div",{class:p(d(f).be("dropdown","btns"))},[g("span",{class:p(d(f).be("dropdown","value"))},[D(d(ye),{ref_key:"inputRef",ref:P,modelValue:U.value,"onUpdate:modelValue":e=>U.value=e,"validate-event":!1,size:"small",onKeyup:j(Ce,["enter"]),onBlur:Ce},null,8,["modelValue","onUpdate:modelValue","onKeyup"])],2),D(d(we),{class:p(d(f).be("dropdown","link-btn")),text:"",size:"small",onClick:Me},{default:y((()=>[H(k(d(c)("el.colorpicker.clear")),1)])),_:1},8,["class"]),D(d(we),{plain:"",size:"small",class:p(d(f).be("dropdown","btn")),onClick:Ie},{default:y((()=>[H(k(d(c)("el.colorpicker.confirm")),1)])),_:1},8,["class"])],2)],40,["onKeydown"])),[[d(xe),Se,T.value]])])),default:y((()=>[g("div",N({id:d(_),ref_key:"triggerRef",ref:T},e.$attrs,{class:d(te),role:"button","aria-label":d(Z),"aria-labelledby":d(ee),"aria-description":d(c)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":d(w),tabindex:d(w)?void 0:e.tabindex,onKeydown:$e,onFocus:d(O),onBlur:d(F)}),[d(w)?(u(),i("div",{key:0,class:p(d(f).be("picker","mask"))},null,2)):he("v-if",!0),g("div",{class:p(d(f).be("picker","trigger")),onClick:se},[g("span",{class:p([d(f).be("picker","color"),d(f).is("alpha",e.showAlpha)])},[g("span",{class:p(d(f).be("picker","color-inner")),style:Q({backgroundColor:d(Y)})},[q(D(d(x),{class:p([d(f).be("picker","icon"),d(f).is("icon-arrow-down")])},{default:y((()=>[D(d(ge))])),_:1},8,["class"]),[[G,e.modelValue||W.value]]),q(D(d(x),{class:p([d(f).be("picker","empty"),d(f).is("icon-close")])},{default:y((()=>[D(d(be))])),_:1},8,["class"]),[[G,!e.modelValue&&!W.value]])],6)],2)],2)],16,["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex","onFocus","onBlur"])])),_:1},8,["visible","popper-class","teleported","transition","onHide"]))}}),[["__file","color-picker.vue"]])),Ll=e({...Ie,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),Pl=Ce,Bl=a({name:"ElDrawer",inheritAttrs:!1});const Ol=C(l(a({...Bl,props:Ll,emits:Pl,setup(e,{expose:t}){const l=e,a=Me();Se({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},L((()=>!!a.title)));const s=r(),v=r(),f=o("drawer"),{t:m}=n(),{afterEnter:h,afterLeave:w,beforeLeave:_,visible:C,rendered:I,titleId:M,bodyId:S,zIndex:E,onModalClick:$,onOpenAutoFocus:V,onCloseAutoFocus:T,onFocusoutPrevented:A,onCloseRequested:P,handleClose:B}=Ee(l,s),O=L((()=>"rtl"===l.direction||"ltr"===l.direction)),F=L((()=>X(l.size)));return t({handleClose:B,afterEnter:h,afterLeave:w}),(e,t)=>(u(),b(d(Te),{to:e.appendTo,disabled:"body"===e.appendTo&&!e.appendToBody},{default:y((()=>[D(R,{name:d(f).b("fade"),onAfterEnter:d(h),onAfterLeave:d(w),onBeforeLeave:d(_),persisted:""},{default:y((()=>[q(D(d($e),{mask:e.modal,"overlay-class":e.modalClass,"z-index":d(E),onClick:d($)},{default:y((()=>[D(d(Ve),{loop:"",trapped:d(C),"focus-trap-el":s.value,"focus-start-el":v.value,onFocusAfterTrapped:d(V),onFocusAfterReleased:d(T),onFocusoutPrevented:d(A),onReleaseRequested:d(P)},{default:y((()=>[g("div",N({ref_key:"drawerRef",ref:s,"aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:d(M),"aria-describedby":d(S)},e.$attrs,{class:[d(f).b(),e.direction,d(C)&&"open"],style:d(O)?"width: "+d(F):"height: "+d(F),role:"dialog",onClick:W((()=>{}),["stop"])}),[g("span",{ref_key:"focusStartRef",ref:v,class:p(d(f).e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(u(),i("header",{key:0,class:p([d(f).e("header"),e.headerClass])},[e.$slots.title?c(e.$slots,"title",{key:1},(()=>[he(" DEPRECATED SLOT ")])):c(e.$slots,"header",{key:0,close:d(B),titleId:d(M),titleClass:d(f).e("title")},(()=>[e.$slots.title?he("v-if",!0):(u(),i("span",{key:0,id:d(M),role:"heading","aria-level":e.headerAriaLevel,class:p(d(f).e("title"))},k(e.title),11,["id","aria-level"]))])),e.showClose?(u(),i("button",{key:2,"aria-label":d(m)("el.drawer.close"),class:p(d(f).e("close-btn")),type:"button",onClick:d(B)},[D(d(x),{class:p(d(f).e("close"))},{default:y((()=>[D(d(be))])),_:1},8,["class"])],10,["aria-label","onClick"])):he("v-if",!0)],2)):he("v-if",!0),d(I)?(u(),i("div",{key:1,id:d(S),class:p([d(f).e("body"),e.bodyClass])},[c(e.$slots,"default")],10,["id"])):he("v-if",!0),e.$slots.footer?(u(),i("div",{key:2,class:p([d(f).e("footer"),e.footerClass])},[c(e.$slots,"footer")],2)):he("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])])),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])])),_:3},8,["mask","overlay-class","z-index","onClick"]),[[G,d(C)]])])),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])])),_:3},8,["to","disabled"]))}}),[["__file","drawer.vue"]]));var Nl=l(a({inheritAttrs:!1}),[["render",function(e,t,l,a,n,o){return c(e.$slots,"default")}],["__file","collection.vue"]]);var Fl=l(a({name:"ElCollectionItem",inheritAttrs:!1}),[["render",function(e,t,l,a,n,o){return c(e.$slots,"default")}],["__file","collection-item.vue"]]);const Rl="data-el-collection-item",Kl=e=>{const t=`El${e}Collection`,l=`${t}Item`,a=Symbol(t),n=Symbol(l),o={...Nl,name:t,setup(){const e=r(),t=new Map;v(a,{itemMap:t,getItems:()=>{const l=d(e);if(!l)return[];const a=Array.from(l.querySelectorAll(`[${Rl}]`));return[...t.values()].sort(((e,t)=>a.indexOf(e.ref)-a.indexOf(t.ref)))},collectionRef:e})}},i={...Fl,name:l,setup(e,{attrs:t}){const l=r(),o=m(a,void 0);v(n,{collectionItemRef:l}),s((()=>{const e=d(l);e&&o.itemMap.set(e,{ref:e,...t})})),Ae((()=>{const e=d(l);o.itemMap.delete(e)}))}};return{COLLECTION_INJECTION_KEY:a,COLLECTION_ITEM_INJECTION_KEY:n,ElCollection:o,ElCollectionItem:i}},zl=e({style:{type:f([String,Array,Object])},currentTabId:{type:f(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:f(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:Dl,ElCollectionItem:Hl,COLLECTION_INJECTION_KEY:jl,COLLECTION_ITEM_INJECTION_KEY:Wl}=Kl("RovingFocusGroup"),ql=Symbol("elRovingFocusGroup"),Gl=Symbol("elRovingFocusGroupItem"),Ul={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},Yl=e=>{const{activeElement:t}=document;for(const l of e){if(l===t)return;if(l.focus(),t!==document.activeElement)return}},Xl="currentTabIdChange",Jl="rovingFocusGroup.entryFocus",Zl={bubbles:!1,cancelable:!0},Ql=a({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:zl,emits:[Xl,"entryFocus"],setup(e,{emit:t}){var l;const a=r(null!=(l=e.currentTabId||e.defaultCurrentTabId)?l:null),n=r(!1),o=r(!1),s=r(),{getItems:i}=m(jl,void 0),u=L((()=>[{outline:"none"},e.style])),c=Le((t=>{var l;null==(l=e.onMousedown)||l.call(e,t)}),(()=>{o.value=!0})),p=Le((t=>{var l;null==(l=e.onFocus)||l.call(e,t)}),(e=>{const t=!d(o),{target:l,currentTarget:r}=e;if(l===r&&t&&!d(n)){const e=new Event(Jl,Zl);if(null==r||r.dispatchEvent(e),!e.defaultPrevented){const e=i().filter((e=>e.focusable)),t=[e.find((e=>e.active)),e.find((e=>e.id===d(a))),...e].filter(Boolean).map((e=>e.ref));Yl(t)}}o.value=!1})),f=Le((t=>{var l;null==(l=e.onBlur)||l.call(e,t)}),(()=>{n.value=!1}));v(ql,{currentTabbedId:Be(a),loop:Pe(e,"loop"),tabIndex:L((()=>d(n)?-1:0)),rovingFocusGroupRef:s,rovingFocusGroupRootStyle:u,orientation:Pe(e,"orientation"),dir:Pe(e,"dir"),onItemFocus:e=>{t(Xl,e)},onItemShiftTab:()=>{n.value=!0},onBlur:f,onFocus:p,onMousedown:c}),A((()=>e.currentTabId),(e=>{a.value=null!=e?e:null})),Oe(s,Jl,((...e)=>{t("entryFocus",...e)}))}});var ea=l(a({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:Dl,ElRovingFocusGroupImpl:l(Ql,[["render",function(e,t,l,a,n,o){return c(e.$slots,"default")}],["__file","roving-focus-group-impl.vue"]])}}),[["render",function(e,t,l,a,n,o){const r=Ne("el-roving-focus-group-impl"),s=Ne("el-focus-group-collection");return u(),b(s,null,{default:y((()=>[D(r,Fe(Re(e.$attrs)),{default:y((()=>[c(e.$slots,"default")])),_:3},16)])),_:3})}],["__file","roving-focus-group.vue"]]);const ta=e({trigger:ze.trigger,triggerKeys:{type:f(Array),default:()=>[J.enter,J.numpadEnter,J.space,J.down]},effect:{...le.effect,default:"light"},type:{type:f(String)},placement:{type:f(String),default:"bottom"},popperOptions:{type:f(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:f([Number,String]),default:0},maxHeight:{type:f([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,values:Ke,default:"menu"},buttonProps:{type:f(Object)},teleported:le.teleported,persistent:{type:Boolean,default:!0}}),la=e({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:t}}),aa=e({onKeydown:{type:f(Function)}}),na=[J.down,J.pageDown,J.home],oa=[J.up,J.pageUp,J.end],ra=[...na,...oa],{ElCollection:sa,ElCollectionItem:ia,COLLECTION_INJECTION_KEY:ua,COLLECTION_ITEM_INJECTION_KEY:ca}=Kl("Dropdown"),da=Symbol("elDropdown"),{ButtonGroup:pa}=we;var va=l(a({name:"ElDropdown",components:{ElButton:we,ElButtonGroup:pa,ElScrollbar:je,ElDropdownCollection:sa,ElTooltip:ke,ElRovingFocusGroup:ea,ElOnlyChild:He,ElIcon:x,ArrowDown:ge},props:ta,emits:["visible-change","click","command"],setup(e,{emit:t}){const l=h(),a=o("dropdown"),{t:s}=n(),i=r(),u=r(),c=r(),p=r(),f=r(null),m=r(null),g=r(!1),b=L((()=>({maxHeight:X(e.maxHeight)}))),y=L((()=>[a.m(C.value)])),w=L((()=>T(e.trigger))),x=We().value,k=L((()=>e.id||x));function _(){var e;null==(e=c.value)||e.onClose()}A([i,w],(([e,t],[l])=>{var a,n,o;(null==(a=null==l?void 0:l.$el)?void 0:a.removeEventListener)&&l.$el.removeEventListener("pointerenter",I),(null==(n=null==e?void 0:e.$el)?void 0:n.removeEventListener)&&e.$el.removeEventListener("pointerenter",I),(null==(o=null==e?void 0:e.$el)?void 0:o.addEventListener)&&t.includes("hover")&&e.$el.addEventListener("pointerenter",I)}),{immediate:!0}),Ae((()=>{var e,t;(null==(t=null==(e=i.value)?void 0:e.$el)?void 0:t.removeEventListener)&&i.value.$el.removeEventListener("pointerenter",I)}));const C=ue();function I(){var e,t;null==(t=null==(e=i.value)?void 0:e.$el)||t.focus()}v(da,{contentRef:p,role:L((()=>e.role)),triggerId:k,isUsingKeyboard:g,onItemEnter:function(){},onItemLeave:function(){const e=d(p);w.value.includes("hover")&&(null==e||e.focus()),m.value=null}}),v("elDropdown",{instance:l,dropdownSize:C,handleClick:function(){_()},commandHandler:function(...e){t("command",...e)},trigger:Pe(e,"trigger"),hideOnClick:Pe(e,"hideOnClick")});return{t:s,ns:a,scrollbar:f,wrapStyle:b,dropdownTriggerKls:y,dropdownSize:C,triggerId:k,currentTabId:m,handleCurrentTabIdChange:function(e){m.value=e},handlerMainButtonClick:e=>{t("click",e)},handleEntryFocus:function(e){g.value||(e.preventDefault(),e.stopImmediatePropagation())},handleClose:_,handleOpen:function(){var e;null==(e=c.value)||e.onOpen()},handleBeforeShowTooltip:function(){t("visible-change",!0)},handleShowTooltip:function(e){var t;"keydown"===(null==e?void 0:e.type)&&(null==(t=p.value)||t.focus())},handleBeforeHideTooltip:function(){t("visible-change",!1)},onFocusAfterTrapped:e=>{var t,l;e.preventDefault(),null==(l=null==(t=p.value)?void 0:t.focus)||l.call(t,{preventScroll:!0})},popperRef:c,contentRef:p,triggeringElementRef:i,referenceElementRef:u}}}),[["render",function(e,t,l,a,n,o){var r;const s=Ne("el-dropdown-collection"),d=Ne("el-roving-focus-group"),v=Ne("el-scrollbar"),f=Ne("el-only-child"),m=Ne("el-tooltip"),h=Ne("el-button"),g=Ne("arrow-down"),w=Ne("el-icon"),x=Ne("el-button-group");return u(),i("div",{class:p([e.ns.b(),e.ns.is("disabled",e.disabled)])},[D(m,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":"hover"===e.trigger?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":null==(r=e.referenceElementRef)?void 0:r.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":"hover"===e.trigger?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},De({content:y((()=>[D(v,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:y((()=>[D(d,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:y((()=>[D(s,null,{default:y((()=>[c(e.$slots,"dropdown")])),_:3})])),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])])),_:3},8,["wrap-style","view-class"])])),_:2},[e.splitButton?void 0:{name:"default",fn:y((()=>[D(f,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:y((()=>[c(e.$slots,"default")])),_:3},8,["id","tabindex"])]))}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(u(),b(x,{key:0},{default:y((()=>[D(h,N({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:y((()=>[c(e.$slots,"default")])),_:3},16,["size","type","disabled","tabindex","onClick"]),D(h,N({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:y((()=>[D(w,{class:p(e.ns.e("icon"))},{default:y((()=>[D(g)])),_:1},8,["class"])])),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])])),_:3})):he("v-if",!0)],2)}],["__file","dropdown.vue"]]);var fa=l(a({components:{ElRovingFocusCollectionItem:Hl},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:l,loop:a,onItemFocus:n,onItemShiftTab:o}=m(ql,void 0),{getItems:s}=m(jl,void 0),i=We(),u=r(),c=Le((e=>{t("mousedown",e)}),(t=>{e.focusable?n(d(i)):t.preventDefault()})),p=Le((e=>{t("focus",e)}),(()=>{n(d(i))})),f=Le((e=>{t("keydown",e)}),(e=>{const{code:t,shiftKey:l,target:n,currentTarget:r}=e;if(t===J.tab&&l)return void o();if(n!==r)return;const i=(e=>{const t=e.code;return Ul[t]})(e);if(i){e.preventDefault();let t=s().filter((e=>e.focusable)).map((e=>e.ref));switch(i){case"last":t.reverse();break;case"prev":case"next":{"prev"===i&&t.reverse();const e=t.indexOf(r);t=a.value?(c=e+1,(u=t).map(((e,t)=>u[(t+c)%u.length]))):t.slice(e+1);break}}me((()=>{Yl(t)}))}var u,c})),h=L((()=>l.value===d(i)));return v(Gl,{rovingFocusGroupItemRef:u,tabIndex:L((()=>d(h)?0:-1)),handleMousedown:c,handleFocus:p,handleKeydown:f}),{id:i,handleKeydown:f,handleFocus:p,handleMousedown:c}}}),[["render",function(e,t,l,a,n,o){const r=Ne("el-roving-focus-collection-item");return u(),b(r,{id:e.id,focusable:e.focusable,active:e.active},{default:y((()=>[c(e.$slots,"default")])),_:3},8,["id","focusable","active"])}],["__file","roving-focus-item.vue"]]);const ma=a({name:"DropdownItemImpl",components:{ElIcon:x},props:la,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const l=o("dropdown"),{role:a}=m(da,void 0),{collectionItemRef:n}=m(ca,void 0),{collectionItemRef:r}=m(Wl,void 0),{rovingFocusGroupItemRef:s,tabIndex:i,handleFocus:u,handleKeydown:c,handleMousedown:d}=m(Gl,void 0),p=qe(n,r,s),v=L((()=>"menu"===a.value?"menuitem":"navigation"===a.value?"link":"button")),f=Le((e=>{if([J.enter,J.numpadEnter,J.space].includes(e.code))return e.preventDefault(),e.stopImmediatePropagation(),t("clickimpl",e),!0}),c);return{ns:l,itemRef:p,dataset:{[Rl]:""},role:v,tabIndex:i,handleFocus:u,handleKeydown:f,handleMousedown:d}}});const ha=()=>{const e=m("elDropdown",{}),t=L((()=>null==e?void 0:e.dropdownSize));return{elDropdown:e,_elDropdownSize:t}};var ga=l(a({name:"ElDropdownItem",components:{ElDropdownCollectionItem:ia,ElRovingFocusItem:fa,ElDropdownItemImpl:l(ma,[["render",function(e,t,l,a,n,o){const r=Ne("el-icon");return u(),i(oe,null,[e.divided?(u(),i("li",{key:0,role:"separator",class:p(e.ns.bem("menu","item","divided"))},null,2)):he("v-if",!0),g("li",N({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t=>e.$emit("clickimpl",t),onFocus:e.handleFocus,onKeydown:W(e.handleKeydown,["self"]),onMousedown:e.handleMousedown,onPointermove:t=>e.$emit("pointermove",t),onPointerleave:t=>e.$emit("pointerleave",t)}),[e.icon?(u(),b(r,{key:0},{default:y((()=>[(u(),b(w(e.icon)))])),_:1})):he("v-if",!0),c(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}],["__file","dropdown-item-impl.vue"]])},inheritAttrs:!1,props:la,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:l}){const{elDropdown:a}=ha(),n=h(),o=r(null),s=L((()=>{var e,t;return null!=(t=null==(e=d(o))?void 0:e.textContent)?t:""})),{onItemEnter:i,onItemLeave:u}=m(da,void 0),c=Le((e=>(t("pointermove",e),e.defaultPrevented)),Ge((t=>{if(e.disabled)return void u(t);const l=t.currentTarget;l===document.activeElement||l.contains(document.activeElement)||(i(t),t.defaultPrevented||null==l||l.focus())}))),p=Le((e=>(t("pointerleave",e),e.defaultPrevented)),Ge(u));return{handleClick:Le((l=>{if(!e.disabled)return t("click",l),"keydown"!==l.type&&l.defaultPrevented}),(t=>{var l,o,r;e.disabled?t.stopImmediatePropagation():((null==(l=null==a?void 0:a.hideOnClick)?void 0:l.value)&&(null==(o=a.handleClick)||o.call(a)),null==(r=a.commandHandler)||r.call(a,e.command,n,t))})),handlePointerMove:c,handlePointerLeave:p,textContent:s,propsAndAttrs:L((()=>({...e,...l})))}}}),[["render",function(e,t,l,a,n,o){var r;const s=Ne("el-dropdown-item-impl"),i=Ne("el-roving-focus-item"),d=Ne("el-dropdown-collection-item");return u(),b(d,{disabled:e.disabled,"text-value":null!=(r=e.textValue)?r:e.textContent},{default:y((()=>[D(i,{focusable:!e.disabled},{default:y((()=>[D(s,N(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:y((()=>[c(e.$slots,"default")])),_:3},16,["onPointerleave","onPointermove","onClickimpl"])])),_:3},8,["focusable"])])),_:3},8,["disabled","text-value"])}],["__file","dropdown-item.vue"]]);var ba=l(a({name:"ElDropdownMenu",props:aa,setup(e){const t=o("dropdown"),{_elDropdownSize:l}=ha(),a=l.value,{focusTrapRef:n,onKeydown:r}=m(Ue,void 0),{contentRef:s,role:i,triggerId:u}=m(da,void 0),{collectionRef:c,getItems:p}=m(ua,void 0),{rovingFocusGroupRef:v,rovingFocusGroupRootStyle:f,tabIndex:h,onBlur:g,onFocus:b,onMousedown:y}=m(ql,void 0),{collectionRef:w}=m(jl,void 0),x=L((()=>[t.b("menu"),t.bm("menu",null==a?void 0:a.value)])),k=qe(s,c,n,v,w),_=Le((t=>{var l;null==(l=e.onKeydown)||l.call(e,t)}),(e=>{const{currentTarget:t,code:l,target:a}=e;if(t.contains(a),J.tab===l&&e.stopImmediatePropagation(),e.preventDefault(),a!==d(s)||!ra.includes(l))return;const n=p().filter((e=>!e.disabled)).map((e=>e.ref));oa.includes(l)&&n.reverse(),Yl(n)}));return{size:a,rovingFocusGroupRootStyle:f,tabIndex:h,dropdownKls:x,role:i,triggerId:u,dropdownListWrapperRef:k,handleKeydown:e=>{_(e),r(e)},onBlur:g,onFocus:b,onMousedown:y}}}),[["render",function(e,t,l,a,n,o){return u(),i("ul",{ref:e.dropdownListWrapperRef,class:p(e.dropdownKls),style:Q(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:e.onBlur,onFocus:e.onFocus,onKeydown:W(e.handleKeydown,["self"]),onMousedown:W(e.onMousedown,["self"])},[c(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}],["__file","dropdown-menu.vue"]]);const ya=C(va,{DropdownItem:ga,DropdownMenu:ba}),wa=_(ga),xa=_(ba),ka=a({name:"ImgEmpty"});var _a=l(a({...ka,setup(e){const t=o("empty"),l=We();return(e,a)=>(u(),i("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[g("defs",null,[g("linearGradient",{id:`linearGradient-1-${d(l)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[g("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),g("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),g("linearGradient",{id:`linearGradient-2-${d(l)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[g("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),g("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),g("rect",{id:`path-3-${d(l)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),g("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[g("g",{transform:"translate(-1268.000000, -535.000000)"},[g("g",{transform:"translate(1268.000000, 535.000000)"},[g("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${d(t).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),g("polygon",{fill:`var(${d(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),g("g",{transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[g("polygon",{fill:`var(${d(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),g("polygon",{fill:`var(${d(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),g("rect",{fill:`url(#linearGradient-1-${d(l)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),g("polygon",{fill:`var(${d(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),g("rect",{fill:`url(#linearGradient-2-${d(l)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),g("g",{transform:"translate(53.000000, 45.000000)"},[g("use",{fill:`var(${d(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${d(l)}`},null,8,["fill","xlink:href"]),g("polygon",{fill:`var(${d(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${d(l)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),g("polygon",{fill:`var(${d(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}}),[["__file","img-empty.vue"]]);const Ca=e({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),Ia=a({name:"ElEmpty"});const Ma=C(l(a({...Ia,props:Ca,setup(e){const t=e,{t:l}=n(),a=o("empty"),r=L((()=>t.description||l("el.table.emptyText"))),s=L((()=>({width:X(t.imageSize)})));return(e,t)=>(u(),i("div",{class:p(d(a).b())},[g("div",{class:p(d(a).e("image")),style:Q(d(s))},[e.image?(u(),i("img",{key:0,src:e.image,ondragstart:"return false"},null,8,["src"])):c(e.$slots,"image",{key:1},(()=>[D(_a)]))],6),g("div",{class:p(d(a).e("description"))},[e.$slots.description?c(e.$slots,"description",{key:0}):(u(),i("p",{key:1},k(d(r)),1))],2),e.$slots.default?(u(),i("div",{key:0,class:p(d(a).e("bottom"))},[c(e.$slots,"default")],2)):he("v-if",!0)],2))}}),[["__file","empty.vue"]]));let Sa=class{constructor(e,t){this.parent=e,this.domNode=t,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,(t=>{t.addEventListener("keydown",(t=>{let l=!1;switch(t.code){case J.down:this.gotoSubIndex(this.subIndex+1),l=!0;break;case J.up:this.gotoSubIndex(this.subIndex-1),l=!0;break;case J.tab:Ye(e,"mouseleave");break;case J.enter:case J.numpadEnter:case J.space:l=!0,t.currentTarget.click()}return l&&(t.preventDefault(),t.stopPropagation()),!1}))}))}},Ea=class{constructor(e,t){this.domNode=e,this.submenu=null,this.submenu=null,this.init(t)}init(e){this.domNode.setAttribute("tabindex","0");const t=this.domNode.querySelector(`.${e}-menu`);t&&(this.submenu=new Sa(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",(e=>{let t=!1;switch(e.code){case J.down:Ye(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),t=!0;break;case J.up:Ye(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),t=!0;break;case J.tab:Ye(e.currentTarget,"mouseleave");break;case J.enter:case J.numpadEnter:case J.space:t=!0,e.currentTarget.click()}t&&e.preventDefault()}))}},$a=class{constructor(e,t){this.domNode=e,this.init(t)}init(e){const t=this.domNode.childNodes;Array.from(t).forEach((t=>{1===t.nodeType&&new Ea(t,e)}))}};const Va=a({name:"ElMenuCollapseTransition"});var Ta=l(a({...Va,setup(e){const t=o("menu"),l={onBeforeEnter:e=>e.style.opacity="0.2",onEnter(e,l){Xe(e,`${t.namespace.value}-opacity-transition`),e.style.opacity="1",l()},onAfterEnter(e){Ze(e,`${t.namespace.value}-opacity-transition`),e.style.opacity=""},onBeforeLeave(e){e.dataset||(e.dataset={}),Je(e,t.m("collapse"))?(Ze(e,t.m("collapse")),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth.toString(),Xe(e,t.m("collapse"))):(Xe(e,t.m("collapse")),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth.toString(),Ze(e,t.m("collapse"))),e.style.width=`${e.scrollWidth}px`,e.style.overflow="hidden"},onLeave(e){Xe(e,"horizontal-collapse-transition"),e.style.width=`${e.dataset.scrollWidth}px`}};return(e,t)=>(u(),b(R,N({mode:"out-in"},d(l)),{default:y((()=>[c(e.$slots,"default")])),_:3},16))}}),[["__file","menu-collapse-transition.vue"]]);function Aa(e,t){const l=L((()=>{let l=e.parent;const a=[t.value];for(;"ElMenu"!==l.type.name;)l.props.index&&a.unshift(l.props.index),l=l.parent;return a}));return{parentMenu:L((()=>{let t=e.parent;for(;t&&!["ElMenu","ElSubMenu"].includes(t.type.name);)t=t.parent;return t})),indexPath:l}}function La(e){return L((()=>{const t=e.backgroundColor;return t?new Qe(t).shade(20).toString():""}))}const Pa=(e,t)=>{const l=o("menu");return L((()=>l.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":La(e).value||"","active-color":e.activeTextColor||"",level:`${t}`})))},Ba=e({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:t},expandOpenIcon:{type:t},collapseCloseIcon:{type:t},collapseOpenIcon:{type:t}}),Oa="ElSubMenu";var Na=a({name:Oa,props:Ba,setup(e,{slots:t,expose:l}){const a=h(),{indexPath:n,parentMenu:i}=Aa(a,L((()=>e.index))),u=o("menu"),c=o("sub-menu"),d=m("rootMenu");d||O(Oa,"can not inject root menu");const p=m(`subMenu:${i.value.uid}`);p||O(Oa,"can not inject sub menu");const f=r({}),g=r({});let b;const y=r(!1),w=r(),k=r(),_=L((()=>"horizontal"===P.value&&I.value?"bottom-start":"right-start")),C=L((()=>"horizontal"===P.value&&I.value||"vertical"===P.value&&!d.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?V.value?e.expandOpenIcon:e.expandCloseIcon:ge:e.collapseCloseIcon&&e.collapseOpenIcon?V.value?e.collapseOpenIcon:e.collapseCloseIcon:K)),I=L((()=>0===p.level)),S=L((()=>{const t=e.teleported;return et(t)?I.value:t})),E=L((()=>d.props.collapse?`${u.namespace.value}-zoom-in-left`:`${u.namespace.value}-zoom-in-top`)),$=L((()=>"horizontal"===P.value&&I.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"])),V=L((()=>d.openedMenus.includes(e.index))),T=L((()=>[...Object.values(f.value),...Object.values(g.value)].some((({active:e})=>e)))),P=L((()=>d.props.mode)),B=L((()=>d.props.persistent)),N=ve({index:e.index,indexPath:n,active:T}),F=Pa(d.props,p.level+1),R=L((()=>{var t;return null!=(t=e.popperOffset)?t:d.props.popperOffset})),z=L((()=>{var t;return null!=(t=e.popperClass)?t:d.props.popperClass})),D=L((()=>{var t;return null!=(t=e.showTimeout)?t:d.props.showTimeout})),H=L((()=>{var t;return null!=(t=e.hideTimeout)?t:d.props.hideTimeout})),j=e=>{var t,l,a;e||null==(a=null==(l=null==(t=k.value)?void 0:t.popperRef)?void 0:l.popperInstanceRef)||a.destroy()},W=()=>{"hover"===d.props.menuTrigger&&"horizontal"===d.props.mode||d.props.collapse&&"vertical"===d.props.mode||e.disabled||d.handleSubMenuClick({index:e.index,indexPath:n.value,active:T.value})},U=(t,l=D.value)=>{var a;"focus"!==t.type&&("click"===d.props.menuTrigger&&"horizontal"===d.props.mode||!d.props.collapse&&"vertical"===d.props.mode||e.disabled?p.mouseInChild.value=!0:(p.mouseInChild.value=!0,null==b||b(),({stop:b}=lt((()=>{d.openMenu(e.index,n.value)}),l)),S.value&&(null==(a=i.value.vnode.el)||a.dispatchEvent(new MouseEvent("mouseenter")))))},Y=(t=!1)=>{var l;"click"===d.props.menuTrigger&&"horizontal"===d.props.mode||!d.props.collapse&&"vertical"===d.props.mode?p.mouseInChild.value=!1:(null==b||b(),p.mouseInChild.value=!1,({stop:b}=lt((()=>!y.value&&d.closeMenu(e.index,n.value)),H.value)),S.value&&t&&(null==(l=p.handleMouseleave)||l.call(p,!0)))};A((()=>d.props.collapse),(e=>j(Boolean(e))));{const e=e=>{g.value[e.index]=e},t=e=>{delete g.value[e.index]};v(`subMenu:${a.uid}`,{addSubMenu:e,removeSubMenu:t,handleMouseleave:Y,mouseInChild:y,level:p.level+1})}return l({opened:V}),s((()=>{d.addSubMenu(N),p.addSubMenu(N)})),Ae((()=>{p.removeSubMenu(N),d.removeSubMenu(N)})),()=>{var l;const n=[null==(l=t.title)?void 0:l.call(t),tt(x,{class:c.e("icon-arrow"),style:{transform:V.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&d.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>M(C.value)?tt(a.appContext.components[C.value]):tt(C.value)})],o=d.isMenuPopup?tt(ke,{ref:k,visible:V.value,effect:"light",pure:!0,offset:R.value,showArrow:!1,persistent:B.value,popperClass:z.value,placement:_.value,teleported:S.value,fallbackPlacements:$.value,transition:E.value,gpuAcceleration:!1},{content:()=>{var e;return tt("div",{class:[u.m(P.value),u.m("popup-container"),z.value],onMouseenter:e=>U(e,100),onMouseleave:()=>Y(!0),onFocus:e=>U(e,100)},[tt("ul",{class:[u.b(),u.m("popup"),u.m(`popup-${_.value}`)],style:F.value},[null==(e=t.default)?void 0:e.call(t)])])},default:()=>tt("div",{class:c.e("title"),onClick:W},n)}):tt(oe,{},[tt("div",{class:c.e("title"),ref:w,onClick:W},n),tt(al,{},{default:()=>{var e;return q(tt("ul",{role:"menu",class:[u.b(),u.m("inline")],style:F.value},[null==(e=t.default)?void 0:e.call(t)]),[[G,V.value]])}})]);return tt("li",{class:[c.b(),c.is("active",T.value),c.is("opened",V.value),c.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:V.value,onMouseenter:U,onMouseleave:()=>Y(),onFocus:U},[o])}}});const Fa=e({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:f(Array),default:()=>V([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:t,default:()=>rt},popperEffect:{type:f(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),Ra=e=>S(e)&&e.every((e=>M(e)));var Ka=a({name:"ElMenu",props:Fa,emits:{close:(e,t)=>M(e)&&Ra(t),open:(e,t)=>M(e)&&Ra(t),select:(e,t,l,a)=>M(e)&&Ra(t)&&at(l)&&(et(a)||a instanceof Promise)},setup(e,{emit:t,slots:l,expose:a}){const n=h(),i=n.appContext.config.globalProperties.$router,u=r(),c=o("menu"),d=o("sub-menu"),p=r(-1),f=r(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),m=r(e.defaultActive),g=r({}),b=r({}),y=L((()=>"horizontal"===e.mode||"vertical"===e.mode&&e.collapse)),w=(l,a)=>{f.value.includes(l)||(e.uniqueOpened&&(f.value=f.value.filter((e=>a.includes(e)))),f.value.push(l),t("open",l,a))},k=e=>{const t=f.value.indexOf(e);-1!==t&&f.value.splice(t,1)},_=(e,l)=>{k(e),t("close",e,l)},C=({index:e,indexPath:t})=>{f.value.includes(e)?_(e,t):w(e,t)},I=l=>{("horizontal"===e.mode||e.collapse)&&(f.value=[]);const{index:a,indexPath:n}=l;if(!ee(a)&&!ee(n))if(e.router&&i){const e=l.route||a,o=i.push(e).then((e=>(e||(m.value=a),e)));t("select",a,n,{index:a,indexPath:n,route:e},o)}else m.value=a,t("select",a,n,{index:a,indexPath:n})},M=t=>{var l;const a=g.value,n=a[t]||m.value&&a[m.value]||a[e.defaultActive];m.value=null!=(l=null==n?void 0:n.index)?l:t},S=()=>{var e,t;if(!u.value)return-1;const l=Array.from(null!=(t=null==(e=u.value)?void 0:e.childNodes)?t:[]).filter((e=>"#text"!==e.nodeName||e.nodeValue)),a=getComputedStyle(u.value),n=Number.parseInt(a.paddingLeft,10),o=Number.parseInt(a.paddingRight,10),r=u.value.clientWidth-n-o;let s=0,i=0;return l.forEach(((e,t)=>{"#comment"!==e.nodeName&&(s+=(e=>{const t=getComputedStyle(e),l=Number.parseInt(t.marginLeft,10),a=Number.parseInt(t.marginRight,10);return e.offsetWidth+l+a||0})(e),s<=r-64&&(i=t+1))})),i===l.length?-1:i};let E=!0;const $=()=>{if(p.value===S())return;const e=()=>{p.value=-1,me((()=>{p.value=S()}))};E?e():((e,t=33.34)=>{let l;return()=>{l&&clearTimeout(l),l=setTimeout((()=>{e()}),t)}})(e)(),E=!1};let V;A((()=>e.defaultActive),(e=>{g.value[e]||(m.value=""),M(e)})),A((()=>e.collapse),(e=>{e&&(f.value=[])})),A(g.value,(()=>{const t=m.value&&g.value[m.value];if(!t||"horizontal"===e.mode||e.collapse)return;t.indexPath.forEach((e=>{const t=b.value[e];t&&w(e,t.indexPath)}))})),se((()=>{"horizontal"===e.mode&&e.ellipsis?V=nt(u,$).stop:null==V||V()}));const T=r(!1);{const t=e=>{b.value[e.index]=e},l=e=>{delete b.value[e.index]},a=e=>{g.value[e.index]=e},o=e=>{delete g.value[e.index]};v("rootMenu",ve({props:e,openedMenus:f,items:g,subMenus:b,activeIndex:m,isMenuPopup:y,addMenuItem:a,removeMenuItem:o,addSubMenu:t,removeSubMenu:l,openMenu:w,closeMenu:_,handleMenuItemClick:I,handleSubMenuClick:C})),v(`subMenu:${n.uid}`,{addSubMenu:t,removeSubMenu:l,mouseInChild:T,level:0})}s((()=>{"horizontal"===e.mode&&new $a(n.vnode.el,c.namespace.value)}));a({open:e=>{const{indexPath:t}=b.value[e];t.forEach((e=>w(e,t)))},close:k,updateActiveIndex:M,handleResize:$});const P=Pa(e,0);return()=>{var a,n;let o=null!=(n=null==(a=l.default)?void 0:a.call(l))?n:[];const r=[];if("horizontal"===e.mode&&u.value){const t=ot(o),l=-1===p.value?t:t.slice(0,p.value),a=-1===p.value?[]:t.slice(p.value);(null==a?void 0:a.length)&&e.ellipsis&&(o=l,r.push(tt(Na,{index:"sub-menu-more",class:d.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>tt(x,{class:d.e("icon-more")},{default:()=>tt(e.ellipsisIcon)}),default:()=>a})))}const s=e.closeOnClickOutside?[[xe,()=>{f.value.length&&(T.value||(f.value.forEach((e=>{return t("close",e,(l=e,b.value[l].indexPath));var l})),f.value=[]))}]]:[],i=q(tt("ul",{key:String(e.collapse),role:"menubar",ref:u,style:P.value,class:{[c.b()]:!0,[c.m(e.mode)]:!0,[c.m("collapse")]:e.collapse}},[...o,...r]),s);return e.collapseTransition&&"vertical"===e.mode?tt(Ta,(()=>i)):i}}});const za=e({index:{type:f([String,null]),default:null},route:{type:f([String,Object])},disabled:Boolean}),Da={click:e=>M(e.index)&&S(e.indexPath)},Ha="ElMenuItem",ja=a({name:Ha});var Wa=l(a({...ja,props:za,emits:Da,setup(e,{expose:t,emit:l}){const a=e,n=h(),r=m("rootMenu"),v=o("menu"),f=o("menu-item");r||O(Ha,"can not inject root menu");const{parentMenu:w,indexPath:x}=Aa(n,Pe(a,"index")),k=m(`subMenu:${w.value.uid}`);k||O(Ha,"can not inject sub menu");const _=L((()=>a.index===r.activeIndex)),C=ve({index:a.index,indexPath:x,active:_}),I=()=>{a.disabled||(r.handleMenuItemClick({index:a.index,indexPath:x.value,route:a.route}),l("click",C))};return s((()=>{k.addSubMenu(C),r.addMenuItem(C)})),Ae((()=>{k.removeSubMenu(C),r.removeMenuItem(C)})),t({parentMenu:w,rootMenu:r,active:_,nsMenu:v,nsMenuItem:f,handleClick:I}),(e,t)=>(u(),i("li",{class:p([d(f).b(),d(f).is("active",d(_)),d(f).is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:I},["ElMenu"===d(w).type.name&&d(r).props.collapse&&e.$slots.title?(u(),b(d(ke),{key:0,effect:d(r).props.popperEffect,placement:"right","fallback-placements":["left"],persistent:d(r).props.persistent},{content:y((()=>[c(e.$slots,"title")])),default:y((()=>[g("div",{class:p(d(v).be("tooltip","trigger"))},[c(e.$slots,"default")],2)])),_:3},8,["effect","persistent"])):(u(),i(oe,{key:1},[c(e.$slots,"default"),c(e.$slots,"title")],64))],2))}}),[["__file","menu-item.vue"]]);const qa={title:String},Ga=a({name:"ElMenuItemGroup"});var Ua=l(a({...Ga,props:qa,setup(e){const t=o("menu-item-group");return(e,l)=>(u(),i("li",{class:p(d(t).b())},[g("div",{class:p(d(t).e("title"))},[e.$slots.title?c(e.$slots,"title",{key:1}):(u(),i(oe,{key:0},[H(k(e.title),1)],64))],2),g("ul",null,[c(e.$slots,"default")])],2))}}),[["__file","menu-item-group.vue"]]);const Ya=C(Ka,{MenuItem:Wa,MenuItemGroup:Ua,SubMenu:Na}),Xa=_(Wa);_(Ua);const Ja=_(Na),Za=st("tagsView",(()=>{const e=r([]),t=r([]);function l(t){e.value.some((e=>e.path===t.path))||(t.affix?e.value.unshift(t):e.value.push(t))}function a(e){const l=e.name;t.value.includes(l)||e.keepAlive&&t.value.push(l)}function n(t){return new Promise((l=>{for(const[a,n]of e.value.entries())if(n.path===t.path){e.value.splice(a,1);break}l([...e.value])}))}function o(e){const l=e.name;return new Promise((e=>{const a=t.value.indexOf(l);a>-1&&t.value.splice(a,1),e([...t.value])}))}function s(t){return new Promise((l=>{e.value=e.value.filter((e=>(null==e?void 0:e.affix)||e.path===t.path)),l([...e.value])}))}function i(e){const l=e.name;return new Promise((e=>{const a=t.value.indexOf(l);t.value=a>-1?t.value.slice(a,a+1):[],e([...t.value])}))}return{visitedViews:e,cachedViews:t,addVisitedView:l,addCachedView:a,delVisitedView:n,delCachedView:o,delOtherVisitedViews:s,delOtherCachedViews:i,updateVisitedView:function(t){for(let l of e.value)if(l.path===t.path){l=Object.assign(l,t);break}},addView:function(e){l(e),a(e)},delView:function(l){return new Promise((a=>{n(l),o(l),a({visitedViews:[...e.value],cachedViews:[...t.value]})}))},delOtherViews:function(l){return new Promise((a=>{s(l),i(l),a({visitedViews:[...e.value],cachedViews:[...t.value]})}))},delLeftViews:function(l){return new Promise((a=>{const n=e.value.findIndex((e=>e.path===l.path));-1!==n&&(e.value=e.value.filter(((e,l)=>{if(l>=n||(null==e?void 0:e.affix))return!0;const a=t.value.indexOf(e.name);return a>-1&&t.value.splice(a,1),!1})),a({visitedViews:[...e.value]}))}))},delRightViews:function(t){return new Promise((l=>{const a=e.value.findIndex((e=>e.path===t.path));-1!==a&&(e.value=e.value.filter(((e,t)=>{if(t<=a||(null==e?void 0:e.affix))return!0})),l({visitedViews:[...e.value]}))}))},delAllViews:function(){return new Promise((l=>{const a=e.value.filter((e=>null==e?void 0:e.affix));e.value=a,t.value=[],l({visitedViews:[...e.value],cachedViews:[...t.value]})}))},delAllVisitedViews:function(){return new Promise((t=>{const l=e.value.filter((e=>null==e?void 0:e.affix));e.value=l,t([...e.value])}))},delAllCachedViews:function(){return new Promise((e=>{t.value=[],e([...t.value])}))}}})),Qa="/platformApi/pay_product/all";function en(){return it({url:Qa,method:"get"})}const tn="/skfApi/payProduct/payProductList";function ln(){return it({url:tn,method:"get"})}const an="/platformApi/status";function nn(e){return it({url:an,method:"get",params:e})}const on=st("pay_product",(()=>{const e=ut(),t=ct(e.getLoginType()+"pay_product",{list:[],actualList:[],dictionary:{}});function l(){return new Promise((async l=>{var a;const n=e.getLoginType();if(!(null==(a=t.value.list)?void 0:a.length)){let e=en;"admin"===n||"customer"===n&&(e=ln),t.value.list=await e(),t.value.list.length||(t.value.list=t.value.list.list)}const o=t.value.actualList=function(e){let t=[];if(e&&e.length){const l=ut().getLoginType();t[0]=e.map((e=>({path:"/"+l+"/channel-management/management/"+e.pass_code,component:l+"/channel-management/management",name:"channel-management-"+e.pass_code,meta:{title:e.pro_name,hidden:!1,keepAlive:!0,page:"channel",...e}}))),t[1]=e.map((e=>({path:"/"+l+"/channel-order/order/"+e.pass_code,component:l+"/channel-order/order",name:"channel-order-"+e.pass_code,meta:{title:e.pro_name,hidden:!1,keepAlive:!0,page:"order",...e}})))}return t}(t.value.list);if(["admin","customer"].includes(n)){(await dt().generateRoutesAppend(o[0],"channel-management")).map((e=>{pt.addRoute("channel-management",e)}))}l(t.value.list||[])}))}return{products:t,loadPayProducts:l,refreshAddedRoute:function(){pt.getRoutes().filter((e=>["channel-management","channel-order"].some((t=>e.name&&0===e.name.indexOf(t))))).length>4&&(t.value.actualList.map((e=>{e.map((e=>{pt.removeRoute(e.name)}))})),t.value.list=[],t.value.actualList=[],l())},loadStatus:function(){return new Promise((async e=>{if(!Object.keys(t.value.dictionary).length){let e=null;if("admin"===ut().getLoginType()&&(e=nn),e){const l=await e();t.value.dictionary={status:Object.keys(l.order_status).map((e=>({label:l.order_status[e],value:e.toString()}))),payment_status:Object.keys(l.payment_order_status).map((e=>({label:l.payment_order_status[e],value:e.toString()})))}}}e(t.value.dictionary)}))},getDictionary:function(){return t.value.dictionary}}})),rn={class:"flex"},sn={class:"flex justify-center items-center h100% p10px"},un={key:0,class:"reds"},cn={key:0},dn=It(a({__name:"NavbarRight",setup(e){var t;const l=vt(),a=ft();Za();const n=ut(),o=mt();_t();const c=kt(),p=r(!1),v=L((()=>a.device===ht.MOBILE));gt();const f=ve({handle_order_status:null==(t=l.data.configInfo)?void 0:t.handle_order_status,msgList:[]}),m=r([]),h=r(!1),w=r(localStorage.getItem("msEimitateLogin")||localStorage.getItem("merEimitateLogin")||!1);function x(){xt.confirm("确定注销并退出系统吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",lockScroll:!1}).then((()=>{localStorage.clear(),sessionStorage.clear(),c.push(`/login/${n.getLoginType()}`),localStorage.removeItem("msEimitateLogin"),localStorage.removeItem("merEimitateLogin"),l.setConfigInfo({}),window.location.reload()}))}return s((()=>{h.value=!0})),(e,t)=>{const a=wa,r=xa,s=ya,c=Kt,h=il,_=sl,C=Ma,I=yt;return u(),i("div",rn,[d(v)?he("",!0):(u(),i(oe,{key:0},[],64)),D(s,{class:"setting-item",trigger:"click"},{dropdown:y((()=>[D(r,null,{default:y((()=>[D(a,{onClick:x},{default:y((()=>[H(k(e.$t("navbar.logout")),1)])),_:1})])),_:1})])),default:y((()=>[g("div",sn,[t[3]||(t[3]=g("img",{src:"/img/avatar.Dcbh69co.gif",class:"rounded-full mr-[10px] w24px w24px"},null,-1)),g("span",null,k(d(w)&&"admin"!=d(n).getLoginType()?"虚拟登录":"admin"===d(n).getLoginType()?d(n).user.info.username:"customer"===d(n).getLoginType()?d(n).user.info.ms_name:d(n).user.info.mer_name),1)])])),_:1}),d(bt).showSettings?(u(),i("div",{key:1,class:"setting-item",onClick:t[0]||(t[0]=e=>d(o).settingsVisible=!0)},[D(c,{"icon-class":"setting"})])):he("",!0),D(I,{title:"消息列表","destroy-on-close":!0,"close-on-click-modal":!1,modelValue:d(p),"onUpdate:modelValue":t[2]||(t[2]=e=>wt(p)?p.value=e:null),width:"30%"},{default:y((()=>{var e;return[D(_,{modelValue:d(m),"onUpdate:modelValue":t[1]||(t[1]=e=>wt(m)?m.value=e:null)},{default:y((()=>[(u(!0),i(oe,null,re(d(f).msgList,((e,a)=>(u(),b(h,{key:a,title:"消息通知",name:a,onClick:t=>{var a;2==(a=e).status&&("admin"===n.getLoginType()?Ct({id:a.id}).then((e=>{l.setUnreadNum(l.data.unreadNum>=1?l.data.unreadNum-1:0),a.status=3})):readMsg1({id:a.id}).then((e=>{l.setUnreadNum(l.data.unreadNum>=1?l.data.unreadNum-1:0),a.status=3})))}},{title:y((()=>[2==e.status?(u(),i("span",un)):he("",!0),t[4]||(t[4]=H(" 消息通知 "))])),default:y((()=>[g("div",null,k(e.message),1)])),_:2},1032,["name","onClick"])))),128))])),_:1},8,["modelValue"]),0==(null==(e=d(f).msgList)?void 0:e.length)?(u(),i("div",cn,[D(C,{"image-size":50})])):he("",!0)]})),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-3fb9a686"]]);function pn(e){if(Mt.global.te("route."+e)){return Mt.global.t("route."+e)}return e}const vn={class:"color-gray-400"},fn=It(a({__name:"index",setup(e){const t=_t(),l=r([]);function a(){let e=t.matched.filter((e=>e.meta&&e.meta.title));(function(e){const t=e&&e.name;if(!t)return!1;return t.toString().trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()})(e[0])||(e=[{path:"/dashboard",meta:{title:"dashboard"}}].concat(e)),l.value=e.filter((e=>e.meta&&e.meta.title&&!1!==e.meta.breadcrumb))}return A((()=>t.path),(e=>{e.startsWith("/redirect/")||a()})),St((()=>{a()})),(e,t)=>{const a=Yt,n=Ut;return u(),b(n,{class:"flex-y-center"},{default:y((()=>[D(Et,{"enter-active-class":"animate__animated animate__fadeInRight"},{default:y((()=>[(u(!0),i(oe,null,re(d(l),((e,t)=>(u(),b(a,{key:e.path},{default:y((()=>[g("span",vn,k(d(pn)(e.meta.title)),1)])),_:2},1024)))),128))])),_:1})])),_:1})}}}),[["__scopeId","data-v-bc75d252"]]),mn=It(a({__name:"index",props:{isActive:{required:!0,type:Boolean,default:!1}},emits:["toggleClick"],setup(e,{emit:t}){const l=t;function a(){l("toggleClick")}return(t,l)=>{const n=Kt;return u(),i("div",{class:"px-[15px] flex items-center justify-center color-[var(--el-text-color-regular)]",onClick:a},[D(n,{class:p(["hamburger",{"is-active":e.isActive}]),"icon-class":"indent-decrease"},null,8,["class"])])}}}),[["__scopeId","data-v-17cf5f5b"]]),hn={class:"flex"},gn=a({__name:"NavbarLeft",setup(e){const t=ft();function l(){t.toggleSidebar()}return(e,a)=>{const n=mn,o=fn;return u(),i("div",hn,[D(n,{"is-active":d(t).sidebar.opened,onToggleClick:l},null,8,["is-active"]),D(o)])}}}),bn={class:"navbar-container"};const yn=It({},[["render",function(e,t){const l=gn,a=dn;return u(),i("div",bn,[D(l),D(a)])}],["__scopeId","data-v-9a30edb0"]]),wn={class:"flex flex-wrap justify-around w-full h-12"},xn=It(a({__name:"LayoutSelect",props:{modelValue:String},emits:["update:modelValue"],setup(e,{emit:t}){const l=t;function a(e){l("update:modelValue",e)}return(t,l)=>{const n=ke;return u(),i("div",wn,[D(n,{content:"左侧模式",placement:"bottom"},{default:y((()=>[g("div",{class:p(["layout-item left",{"is-active":e.modelValue===d($t).LEFT}]),onClick:l[0]||(l[0]=e=>a(d($t).LEFT))},l[3]||(l[3]=[g("div",null,null,-1),g("div",null,null,-1)]),2)])),_:1}),D(n,{content:"顶部模式",placement:"bottom"},{default:y((()=>[g("div",{class:p(["layout-item top",{"is-active":e.modelValue===d($t).TOP}]),onClick:l[1]||(l[1]=e=>a(d($t).TOP))},l[4]||(l[4]=[g("div",null,null,-1),g("div",null,null,-1)]),2)])),_:1}),D(n,{content:"混合模式",placement:"bottom"},{default:y((()=>[g("div",{class:p(["layout-item mix",{"is-active":e.modelValue===d($t).MIX}]),onClick:l[2]||(l[2]=e=>a(d($t).MIX))},l[5]||(l[5]=[g("div",null,null,-1),g("div",null,null,-1)]),2)])),_:1})])}}}),[["__scopeId","data-v-d50a3d59"]]),kn=It(a({__name:"ThemeColorPicker",props:{modelValue:String},emits:["update:modelValue"],setup(e,{emit:t}){const l=t,a=["#409EFF","#ff4500","#ff8c00","#90ee90","#00ced1","#1e90ff","#c71585","rgba(255, 69, 0, 0.68)","rgb(255, 120, 0)","hsva(120, 40, 94)"],n=r(e.modelValue);return A(n,(e=>{l("update:modelValue",e)})),(e,t)=>{const l=Al;return u(),b(l,{modelValue:d(n),"onUpdate:modelValue":t[0]||(t[0]=e=>wt(n)?n.value=e:null),predefine:a,"popper-class":"theme-picker-dropdown"},null,8,["modelValue"])}}}),[["__scopeId","data-v-ba641afc"]]),_n={class:"flex-center"},Cn={class:"settings-option"},In={class:"text-xs"},Mn={class:"settings-option"},Sn={class:"text-xs"},En={class:"settings-option"},$n={class:"text-xs"},Vn={class:"settings-option"},Tn={class:"text-xs"},An={class:"settings-option"},Ln={class:"text-xs"},Pn=It(a({__name:"index",setup(e){const t=_t(),l=ft(),a=mt(),n=dt(),o=L({get:()=>a.settingsVisible,set(){a.settingsVisible=!1}});function s(e){a.changeThemeColor(e)}const i=r(a.theme===Vt.DARK),c=e=>{i.value=e,a.changeTheme(i.value?Vt.DARK:Vt.LIGHT)};function p(e){a.changeLayout(e),e===$t.MIX?t.name&&function(e){const t=function(e,t){let l={};function a(e,t){if(l[e.name]=t,e.children)for(let l=0;l<e.children.length;l++)a(e.children[l],e)}for(let o=0;o<e.length;o++)a(e[o],null);let n=l[t];for(;n;){if(!l[n.name])return n;n=l[n.name]}return null}(n.routes,e);l.activeTopMenu!==t.path&&l.activeTopMenu(t.path)}(t.name):e===$t.TOP&&l.openSideBar()}return(e,t)=>{const l=Tt,n=Pt,r=kn,v=xn,f=Ol;return u(),b(f,{modelValue:d(o),"onUpdate:modelValue":t[7]||(t[7]=e=>wt(o)?o.value=e:null),size:"300",title:e.$t("settings.project")},{default:y((()=>[D(l,null,{default:y((()=>[H(k(e.$t("settings.theme")),1)])),_:1}),g("div",_n,[D(n,{modelValue:d(i),"onUpdate:modelValue":t[0]||(t[0]=e=>wt(i)?i.value=e:null),"active-icon":d(Lt),"inactive-icon":d(At),onChange:c},null,8,["modelValue","active-icon","inactive-icon"])]),D(l,null,{default:y((()=>[H(k(e.$t("settings.interface")),1)])),_:1}),g("div",Cn,[g("span",In,k(e.$t("settings.themeColor")),1),D(r,{modelValue:d(a).themeColor,"onUpdate:modelValue":[t[1]||(t[1]=e=>d(a).themeColor=e),s]},null,8,["modelValue"])]),g("div",Mn,[g("span",Sn,k(e.$t("settings.tagsView")),1),D(n,{modelValue:d(a).tagsView,"onUpdate:modelValue":t[2]||(t[2]=e=>d(a).tagsView=e)},null,8,["modelValue"])]),g("div",En,[g("span",$n,k(e.$t("settings.fixedHeader")),1),D(n,{modelValue:d(a).fixedHeader,"onUpdate:modelValue":t[3]||(t[3]=e=>d(a).fixedHeader=e)},null,8,["modelValue"])]),g("div",Vn,[g("span",Tn,k(e.$t("settings.sidebarLogo")),1),D(n,{modelValue:d(a).sidebarLogo,"onUpdate:modelValue":t[4]||(t[4]=e=>d(a).sidebarLogo=e)},null,8,["modelValue"])]),g("div",An,[g("span",Ln,k(e.$t("settings.watermark")),1),D(n,{modelValue:d(a).watermarkEnabled,"onUpdate:modelValue":t[5]||(t[5]=e=>d(a).watermarkEnabled=e)},null,8,["modelValue"])]),D(l,null,{default:y((()=>[H(k(e.$t("settings.navigation")),1)])),_:1}),D(v,{modelValue:d(a).layout,"onUpdate:modelValue":[t[6]||(t[6]=e=>d(a).layout=e),p]},null,8,["modelValue"])])),_:1},8,["modelValue","title"])}}}),[["__scopeId","data-v-ba435d62"]]),Bn={class:"app-main"},On=It(a({__name:"index",setup(e){const t=L((()=>Za().cachedViews));return(e,l)=>{const a=Ne("router-view");return u(),i("section",Bn,[D(a,null,{default:y((({Component:e,route:l})=>[D(R,{"enter-active-class":"animate__animated animate__fadeIn",mode:"out-in"},{default:y((()=>[(u(),b(Bt,{include:t.value},[(u(),b(w(e),{key:l.path}))],1032,["include"]))])),_:2},1024)])),_:1})])}}}),[["__scopeId","data-v-932329df"]]),Nn={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};const Fn={name:"ep-close",render:function(e,t){return u(),i("svg",Nn,t[0]||(t[0]=[g("path",{fill:"currentColor",d:"M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1)]))}};function Rn(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Kn(e,t){for(var l,a="",n=0,o=-1,r=0,s=0;s<=e.length;++s){if(s<e.length)l=e.charCodeAt(s);else{if(47===l)break;l=47}if(47===l){if(o===s-1||1===r);else if(o!==s-1&&2===r){if(a.length<2||2!==n||46!==a.charCodeAt(a.length-1)||46!==a.charCodeAt(a.length-2))if(a.length>2){var i=a.lastIndexOf("/");if(i!==a.length-1){-1===i?(a="",n=0):n=(a=a.slice(0,i)).length-1-a.lastIndexOf("/"),o=s,r=0;continue}}else if(2===a.length||1===a.length){a="",n=0,o=s,r=0;continue}t&&(a.length>0?a+="/..":a="..",n=2)}else a.length>0?a+="/"+e.slice(o+1,s):a=e.slice(o+1,s),n=s-o-1;o=s,r=0}else 46===l&&-1!==r?++r:r=-1}return a}var zn={resolve:function(){for(var e,t="",l=!1,a=arguments.length-1;a>=-1&&!l;a--){var n;a>=0?n=arguments[a]:(void 0===e&&(e=process.cwd()),n=e),Rn(n),0!==n.length&&(t=n+"/"+t,l=47===n.charCodeAt(0))}return t=Kn(t,!l),l?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(Rn(e),0===e.length)return".";var t=47===e.charCodeAt(0),l=47===e.charCodeAt(e.length-1);return 0!==(e=Kn(e,!t)).length||t||(e="."),e.length>0&&l&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return Rn(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var l=arguments[t];Rn(l),l.length>0&&(void 0===e?e=l:e+="/"+l)}return void 0===e?".":zn.normalize(e)},relative:function(e,t){if(Rn(e),Rn(t),e===t)return"";if((e=zn.resolve(e))===(t=zn.resolve(t)))return"";for(var l=1;l<e.length&&47===e.charCodeAt(l);++l);for(var a=e.length,n=a-l,o=1;o<t.length&&47===t.charCodeAt(o);++o);for(var r=t.length-o,s=n<r?n:r,i=-1,u=0;u<=s;++u){if(u===s){if(r>s){if(47===t.charCodeAt(o+u))return t.slice(o+u+1);if(0===u)return t.slice(o+u)}else n>s&&(47===e.charCodeAt(l+u)?i=u:0===u&&(i=0));break}var c=e.charCodeAt(l+u);if(c!==t.charCodeAt(o+u))break;47===c&&(i=u)}var d="";for(u=l+i+1;u<=a;++u)u!==a&&47!==e.charCodeAt(u)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(o+i):(o+=i,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(Rn(e),0===e.length)return".";for(var t=e.charCodeAt(0),l=47===t,a=-1,n=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!n){a=o;break}}else n=!1;return-1===a?l?"/":".":l&&1===a?"//":e.slice(0,a)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Rn(e);var l,a=0,n=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var r=t.length-1,s=-1;for(l=e.length-1;l>=0;--l){var i=e.charCodeAt(l);if(47===i){if(!o){a=l+1;break}}else-1===s&&(o=!1,s=l+1),r>=0&&(i===t.charCodeAt(r)?-1===--r&&(n=l):(r=-1,n=s))}return a===n?n=s:-1===n&&(n=e.length),e.slice(a,n)}for(l=e.length-1;l>=0;--l)if(47===e.charCodeAt(l)){if(!o){a=l+1;break}}else-1===n&&(o=!1,n=l+1);return-1===n?"":e.slice(a,n)},extname:function(e){Rn(e);for(var t=-1,l=0,a=-1,n=!0,o=0,r=e.length-1;r>=0;--r){var s=e.charCodeAt(r);if(47!==s)-1===a&&(n=!1,a=r+1),46===s?-1===t?t=r:1!==o&&(o=1):-1!==t&&(o=-1);else if(!n){l=r+1;break}}return-1===t||-1===a||0===o||1===o&&t===a-1&&t===l+1?"":e.slice(t,a)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var l=t.dir||t.root,a=t.base||(t.name||"")+(t.ext||"");return l?l===t.root?l+a:l+e+a:a}("/",e)},parse:function(e){Rn(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var l,a=e.charCodeAt(0),n=47===a;n?(t.root="/",l=1):l=0;for(var o=-1,r=0,s=-1,i=!0,u=e.length-1,c=0;u>=l;--u)if(47!==(a=e.charCodeAt(u)))-1===s&&(i=!1,s=u+1),46===a?-1===o?o=u:1!==c&&(c=1):-1!==o&&(c=-1);else if(!i){r=u+1;break}return-1===o||-1===s||0===c||1===c&&o===s-1&&o===r+1?-1!==s&&(t.base=t.name=0===r&&n?e.slice(1,s):e.slice(r,s)):(0===r&&n?(t.name=e.slice(1,o),t.base=e.slice(1,s)):(t.name=e.slice(r,o),t.base=e.slice(r,s)),t.ext=e.slice(o,s)),r>0?t.dir=e.slice(0,r-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};zn.posix=zn;var Dn=zn;const Hn=Ot(Dn),jn={class:"tags-container"},Wn=It(a({__name:"index",setup(e){const{proxy:t}=h(),l=kt(),a=_t(),n=dt(),o=Za(),c=ft(),{visitedViews:v}=Nt(o),f=mt(),m=L((()=>f.layout)),w=r({path:"",fullPath:"",name:"",title:"",affix:!1,keepAlive:!1}),x=r([]),_=r(0),C=r(0);A(a,(()=>{var e,t;a.meta.title&&o.addView({name:a.name,title:a.meta.title,path:a.path,fullPath:a.fullPath,affix:null==(e=a.meta)?void 0:e.affix,keepAlive:null==(t=a.meta)?void 0:t.keepAlive}),E()}),{immediate:!0});const I=r(!1);function M(e,t="/"){let l=[];return e.forEach((e=>{var a,n,o,r;const s=Dn.resolve(t,e.path);if((null==(a=e.meta)?void 0:a.affix)&&l.push({path:s,fullPath:s,name:String(e.name),title:(null==(n=e.meta)?void 0:n.title)||"no-name",affix:null==(o=e.meta)?void 0:o.affix,keepAlive:null==(r=e.meta)?void 0:r.keepAlive}),e.children){const a=M(e.children,t+e.path);a.length>=1&&(l=[...l,...a])}})),l}function S(){const e=M(n.routes);x.value=e;for(const t of e)t.name&&o.addVisitedView(t)}function E(){me((()=>{var e,t;for(const l of v.value)l.path===a.path&&l.fullPath!==a.fullPath&&o.updateVisitedView({name:a.name,title:a.meta.title||"",path:a.path,fullPath:a.fullPath,affix:null==(e=a.meta)?void 0:e.affix,keepAlive:null==(t=a.meta)?void 0:t.keepAlive})}))}function $(e){return e.path===a.path}function V(e){return null==e?void 0:e.affix}function T(){try{return"/dashboard"===w.value.path||w.value.fullPath===o.visitedViews[1].fullPath}catch(e){return!1}}function P(){try{return w.value.fullPath===o.visitedViews[o.visitedViews.length-1].fullPath}catch(e){return!1}}function B(e,t){const a=e.slice(-1)[0];a&&a.fullPath?l.push(a.fullPath):"Dashboard"===(null==t?void 0:t.name)?l.replace({path:"/redirect"+t.fullPath}):l.push("/")}function O(e){v.value.length>1&&o.delView(e).then((t=>{$(e)&&B(t.visitedViews,e)}))}function N(){o.delLeftViews(w.value).then((e=>{e.visitedViews.find((e=>e.path===a.path))||B(e.visitedViews)}))}function F(){o.delRightViews(w.value).then((e=>{e.visitedViews.find((e=>e.path===a.path))||B(e.visitedViews)}))}function R(){l.push(w.value),o.delOtherViews(w.value).then((()=>{E()}))}function K(){I.value=!1}function z(){K()}A(I,(e=>{e?document.body.addEventListener("click",K):document.body.removeEventListener("click",K)}));return A((()=>a.name),(e=>{e&&(e=>{if("mix"!==m.value)return;const t=function(e,t){let l={};function a(e,t){if(l[e.name]=t,e.children)for(let l=0;l<e.children.length;l++)a(e.children[l],e)}for(let o=0;o<e.length;o++)a(e[o],null);let n=l[t];for(;n;){if(!l[n.name])return n;n=l[n.name]}return null}(n.routes,e);c.activeTopMenu!==t.path&&c.activeTopMenu(t.path)})(e)}),{deep:!0}),s((()=>{S()})),(e,a)=>{const n=Fn,r=Ne("router-link"),s=je,c=Kt;return u(),i("div",jn,[D(s,{class:"scroll-container",vertical:!1,onWheel:W(z,["prevent"])},{default:y((()=>[(u(!0),i(oe,null,re(d(v),(e=>(u(),b(r,{ref_for:!0,ref:"tagRef",key:e.fullPath,class:p(["tags-item",{active:$(e)}]),to:{path:e.path,query:e.query},onMouseup:W((t=>V(e)?"":O(e)),["middle"]),onContextmenu:W((l=>function(e,l){const a=null==t?void 0:t.$el.getBoundingClientRect().left,n=(null==t?void 0:t.$el.offsetWidth)-105,o=l.clientX-a+15;_.value=o>n?n:o,"mix"===m.value?C.value=l.clientY-50:C.value=l.clientY,I.value=!0,w.value=e}(e,l)),["prevent"])},{default:y((()=>[H(k(d(pn)(e.title))+" ",1),V(e)?he("",!0):(u(),b(n,{key:0,class:"close-icon",size:"12px",onClick:W((t=>O(e)),["prevent","stop"])},null,8,["onClick"]))])),_:2},1032,["class","to","onMouseup","onContextmenu"])))),128))])),_:1}),q(g("ul",{class:"contextmenu",style:Q({left:d(_)+"px",top:d(C)+"px"})},[g("li",{onClick:a[0]||(a[0]=e=>function(e){o.delCachedView(e);const{fullPath:t}=e;me((()=>{l.replace({path:"/redirect"+t})}))}(d(w)))},[D(c,{"icon-class":"refresh"}),a[3]||(a[3]=H(" 刷新 "))]),V(d(w))?he("",!0):(u(),i("li",{key:0,onClick:a[1]||(a[1]=e=>O(d(w)))},[D(c,{"icon-class":"close"}),a[4]||(a[4]=H(" 关闭 "))])),g("li",{onClick:R},[D(c,{"icon-class":"close_other"}),a[5]||(a[5]=H(" 关闭其它 "))]),T()?he("",!0):(u(),i("li",{key:1,onClick:N},[D(c,{"icon-class":"close_left"}),a[6]||(a[6]=H(" 关闭左侧 "))])),P()?he("",!0):(u(),i("li",{key:2,onClick:F},[D(c,{"icon-class":"close_right"}),a[7]||(a[7]=H(" 关闭右侧 "))])),g("li",{onClick:a[2]||(a[2]=e=>{return t=d(w),void o.delAllViews().then((e=>{B(e.visitedViews,t)}));var t})},[D(c,{"icon-class":"close_all"}),a[8]||(a[8]=H(" 关闭所有 "))])],4),[[G,d(I)]])])}}}),[["__scopeId","data-v-05b66405"]]),qn=a({name:"AppLink",inheritAttrs:!1,__name:"index",props:{to:{type:String,required:!0}},setup(e){const t=e,l=L((()=>Ft(t.to))),a=L((()=>l.value?"a":"router-link"));return(t,n)=>{return u(),b(w(d(a)),Fe(Re((o=e.to,l.value?{href:0===o.indexOf("link:")?o.replace("link:",""):o,target:"_blank",rel:"noopener noreferrer"}:{to:o}))),{default:y((()=>[c(t.$slots,"default")])),_:3},16);var o}}}),Gn=["title"],Un=It(a({__name:"SidebarMenuItemTitle",props:{icon:{type:String,default:""},title:{type:String,default:""}},setup:e=>(t,l)=>{const a=x,n=Kt;return u(),i(oe,null,[e.icon&&e.icon.startsWith("el-icon")?(u(),b(a,{key:0,class:"sub-el-icon"},{default:y((()=>[(u(),b(w(e.icon.replace("el-icon-",""))))])),_:1})):e.icon?(u(),b(n,{key:1,"icon-class":e.icon},null,8,["icon-class"])):(u(),b(n,{key:2,"icon-class":"menu"})),e.title?(u(),i("span",{key:3,title:d(pn)(e.title),class:"ml-1 important-line-clamp-1 important-break-all"},k(d(pn)(e.title)),9,Gn)):he("",!0)],64)}}),[["__scopeId","data-v-11c6191d"]]),Yn={key:0},Xn=a({name:"SidebarMenuItem",inheritAttrs:!1,__name:"SidebarMenuItem",props:{item:{type:Object,required:!0},basePath:{type:String,required:!0},isNest:{type:Boolean,default:!1}},setup(e){const t=e,l=r();function a(e=[],t){return 0===e.filter((e=>{var t;return!(null==(t=e.meta)?void 0:t.hidden)&&(e.meta.hidden=!1,l.value=e,!0)})).length&&(l.value={...t,path:"",noShowingChildren:!0},!0)}function n(e){if(Ft(e))return e;if(Ft(t.basePath))return t.basePath;return Hn.resolve(t.basePath,e)}return(t,o)=>{var r;const s=Un,c=Xa,v=qn,f=Ne("SidebarMenuItem",!0),m=Ja;return e.item.meta&&e.item.meta.hidden?he("",!0):(u(),i("div",Yn,[!a(e.item.children,e.item)||d(l).children&&!d(l).noShowingChildren||(null==(r=e.item.meta)?void 0:r.alwaysShow)?(u(),b(m,{key:1,index:n(e.item.path),teleported:""},{title:y((()=>[e.item.meta?(u(),b(s,{key:0,icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title},null,8,["icon","title"])):he("",!0)])),default:y((()=>[(u(!0),i(oe,null,re(e.item.children,(e=>(u(),b(f,{key:e.path,"is-nest":!0,item:e,"base-path":n(e.path)},null,8,["item","base-path"])))),128))])),_:1},8,["index"])):(u(),i(oe,{key:0},[d(l).meta?(u(),b(v,{key:0,to:n(d(l).path),class:"important-line-clamp-1"},{default:y((()=>[D(c,{index:n(d(l).path),class:p({"submenu-title-noDropdown":!e.isNest})},{default:y((()=>[D(s,{icon:d(l).meta.icon||e.item.meta&&e.item.meta.icon,title:d(l).meta.title},null,8,["icon","title"])])),_:1},8,["index","class"])])),_:1},8,["to"])):he("",!0)],64))]))}}}),Jn={"sidebar-width":"210px","navbar-height":"50px","menu-background":"var(--menu-background)","menu-text":"var(--menu-text)","menu-active-text":"var(--menu-active-text)","menu-hover":"var(--menu-hover)",dark:"_dark_1h5g1_13"},Zn=It(a({__name:"SidebarMenu",props:{menuList:{required:!0,default:()=>[],type:Array},basePath:{type:String,required:!0}},setup(e){const t=mt(),l=ft();on();const a=_t(),n=L((()=>t.layout)),o=e;function r(e){if(Ft(e))return e;if(Ft(o.basePath))return o.basePath;return Hn.resolve(o.basePath,e)}function s(e){}return(t,o)=>{const c=Xn,p=Ya;return u(),b(p,{"default-active":d(a).path,collapse:!d(l).sidebar.opened,"background-color":d(Jn)["menu-background"],"text-color":d(Jn)["menu-text"],"active-text-color":d(Jn)["menu-active-text"],"unique-opened":!1,"collapse-transition":!1,mode:"top"===d(n)?"horizontal":"vertical",onOpen:s},{default:y((()=>[(u(!0),i(oe,null,re(e.menuList,(e=>(u(),b(c,{key:e.path,item:e,"base-path":r(e.path),"is-collapse":!d(l).sidebar.opened},null,8,["item","base-path","is-collapse"])))),128))])),_:1},8,["default-active","collapse","background-color","text-color","active-text-color","mode"])}}}),[["__scopeId","data-v-afda4fea"]]),Qn={key:1},eo={key:0,class:"ml-1"},to=a({__name:"SidebarMixTopMenu",setup(e){const t=ft(),l=dt(),a=kt(),n=L((()=>t.activeTopMenuPath)),o=r([]),c=e=>{t.activeTopMenu(e),l.setMixLeftMenus(e);const a=l.mixLeftMenus;p(a)},p=e=>{if(0===e.length)return;const[t]=e;t.children&&t.children.length>0?p(t.children):t.name&&a.push({name:t.name})};return s((()=>{o.value=l.routes.filter((e=>!e.meta||!e.meta.hidden))})),(e,t)=>{const l=Kt,a=Xa,r=Ya,s=je;return u(),b(s,null,{default:y((()=>[D(r,{mode:"horizontal","default-active":d(n),"background-color":d(Jn)["menu-background"],"text-color":d(Jn)["menu-text"],"active-text-color":d(Jn)["menu-active-text"],onSelect:c},{default:y((()=>[(u(!0),i(oe,null,re(d(o),(e=>(u(),b(a,{key:e.path,index:e.path},{title:y((()=>[e.meta&&e.meta.icon?(u(),b(l,{key:0,"icon-class":e.meta.icon},null,8,["icon-class"])):he("",!0),"/"===e.path?(u(),i("span",Qn," 首页 ")):(u(),i(oe,{key:2},[e.meta&&e.meta.title?(u(),i("span",eo,k(d(pn)(e.meta.title)),1)):he("",!0)],64))])),_:2},1032,["index"])))),128))])),_:1},8,["default-active","background-color","text-color","active-text-color"])])),_:1})}}}),lo={class:"logo-container"},ao=["src"],no=["src"],oo={class:"logo-title"},ro=It(a({__name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},setup(e){const t=mt(),l=r(new URL("/img/logo.w1nDwr-H.png",import.meta.url).href);return(a,n)=>{const o=Ne("router-link");return u(),i("div",lo,[D(R,{"enter-active-class":"animate__animated animate__fadeInLeft"},{default:y((()=>[e.collapse?(u(),b(o,{key:0,class:"wh-full flex justify-center items-center",to:"/"},{default:y((()=>[d(t).sidebarLogo?(u(),i("img",{key:0,src:d(l),class:"logo-image"},null,8,ao)):he("",!0)])),_:1})):(u(),b(o,{key:1,class:"wh-full flex justify-center items-center",to:"/"},{default:y((()=>[d(t).sidebarLogo?(u(),i("img",{key:0,"ml--20px":"",src:d(l),class:"logo-image"},null,8,no)):he("",!0),g("span",oo,k(d(t).getSystemName),1)])),_:1}))])),_:1})])}}}),[["__scopeId","data-v-b9238b34"]]),so={key:0,class:"flex w-full"},io=It(a({__name:"index",setup(e){const t=ft(),l=mt(),a=dt(),n=L((()=>l.sidebarLogo)),o=L((()=>l.layout));return(e,l)=>{const r=ro,s=to,c=dn,v=Zn,f=je;return u(),i("div",{class:p({"has-logo":d(n)})},[d(o)==d($t).MIX?(u(),i("div",so,[d(n)?(u(),b(r,{key:0,collapse:!d(t).sidebar.opened},null,8,["collapse"])):he("",!0),D(s,{class:"flex-1"}),D(c)])):(u(),i(oe,{key:1},[d(n)?(u(),b(r,{key:0,collapse:!d(t).sidebar.opened},null,8,["collapse"])):he("",!0),D(f,null,{default:y((()=>[D(v,{"menu-list":d(a).routes,"base-path":""},null,8,["menu-list"])])),_:1}),d(o)===d($t).TOP?(u(),b(c,{key:1})):he("",!0)],64))],2)}}}),[["__scopeId","data-v-66395518"]]),uo={key:1,class:"mix-container"},co={class:"mix-container__left"},po={class:"sidebar-toggle"},vo=It(a({__name:"index",setup(e){const t=ft(),l=mt(),a=dt(),n=Rt().width,o=L((()=>t.device===ht.MOBILE)),r=L((()=>t.sidebar.opened)),s=L((()=>l.fixedHeader)),c=L((()=>l.tagsView)),v=L((()=>l.layout)),f=L((()=>t.activeTopMenuPath)),m=L((()=>a.mixLeftMenus));A((()=>f.value),(e=>{a.setMixLeftMenus(e)}),{deep:!0,immediate:!0});const h=L((()=>({hideSidebar:!t.sidebar.opened,openSidebar:t.sidebar.opened,mobile:t.device===ht.MOBILE,[`layout-${l.layout}`]:!0})));function y(){t.closeSideBar()}function w(){t.toggleSidebar()}se((()=>{t.toggleDevice(n.value<992?ht.MOBILE:ht.DESKTOP),n.value>=992?t.openSideBar():t.closeSideBar()}));const x=_t();return A(x,(()=>{o.value&&r.value&&t.closeSideBar()})),(e,l)=>{const a=io,n=Zn,x=mn,k=Wn,_=On,C=Pn,I=yn;return u(),i("div",{class:p(["wh-full",d(h)])},[d(o)&&d(r)?(u(),i("div",{key:0,class:"wh-full fixed-lt z-999 bg-black bg-opacity-30",onClick:y})):he("",!0),D(a,{class:"sidebar-container"}),d(v)===d($t).MIX?(u(),i("div",uo,[g("div",co,[D(n,{"menu-list":d(m),"base-path":d(f)},null,8,["menu-list","base-path"]),g("div",po,[D(x,{"is-active":d(t).sidebar.opened,onToggleClick:w},null,8,["is-active"])])]),g("div",{class:p([{hasTagsView:d(c)},"main-container"])},[g("div",{class:p({"fixed-header":d(s)})},[d(c)?(u(),b(k,{key:0})):he("",!0)],2),D(_),d(bt).showSettings?(u(),b(C,{key:0})):he("",!0)],2)])):(u(),i("div",{key:2,class:p([{hasTagsView:d(c)},"main-container"])},[g("div",{class:p({"fixed-header":d(s)})},["left"===d(v)?(u(),b(I,{key:0})):he("",!0),d(c)?(u(),b(k,{key:1})):he("",!0)],2),D(_),d(bt).showSettings?(u(),b(C,{key:0})):he("",!0)],2))],2)}}}),[["__scopeId","data-v-4691357d"]]);export{vo as default};