import{b as e,i as t,_ as a,d as l,u as n,a as o,r as i,o as s,c as r,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 x,E as k,t as _,s as w,v as C,x as V,y as I,z as S,C as M,U as E,A,B as T,D as L,F as P,G as $,H as O,I as B,J as N,K as H,T as R,L as z,M as j,N as F,O as K,P as D,Q as W,R as q,S as U,V as X,W as Y,X as G,Y as Z,Z as J,$ as Q,a0 as ee,a1 as te,a2 as ae,a3 as le,a4 as ne,a5 as oe,a6 as ie,a7 as se,a8 as re,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 xe,al as ke,am as _e,an as we,ao as Ce,ap as Ve,aq as Ie,ar as Se,as as Me,at as Ee,au as Ae,av as Te,aw as Le,ax as Pe,ay as $e,az as Oe,aA as Be,aB as Ne,aC as He,aD as Re,aE as ze,aF as je,aG as Fe,aH as Ke,aI as De,aJ as We,aK as qe,aL as Ue,aM as Xe,aN as Ye,aO as Ge,aP as Ze,aQ as Je,aR as Qe,aS as et,aT as tt,aU as at,aV as lt,aW as nt,aX as ot,aY as it,aZ as st,a_ as rt,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 xt,bb as kt,bc as _t,bd as wt,be as Ct,bf as Vt,bg as It,bh as St,bi as Mt,bj as Et,bk as At}from"./index.1759994645100CfTMdoyT.js";import{E as Tt}from"./el-empty.1759994645100Cf07FyMk.js";import{E as Lt,a as Pt,b as $t}from"./el-dropdown.1759994645100B8DFo-4C.js";/* empty css */import{_ as Ot}from"./index.1759994645100DaL23cHt.js";import{E as Bt}from"./el-text.1759994645100D1vxNYMc.js";import{b as Nt}from"./browser.1759994645100CrXYGwN5.js";import{E as Ht}from"./el-drawer.1759994645100DYnjvnS5.js";import{s as Rt}from"./order.1759994645100CkZ2PrRY.js";import"./dropdown.1759994645100B9VH7CQw.js";const zt=Symbol("breadcrumbKey"),jt=e({separator:{type:String,default:"/"},separatorIcon:{type:t}}),Ft=l({name:"ElBreadcrumb"});var Kt=a(l({...Ft,props:jt,setup(e){const t=e,{t:a}=n(),l=o("breadcrumb"),f=i();return v(zt,t),s(()=>{const e=f.value.querySelectorAll(`.${l.e("item")}`);e.length&&e[e.length-1].setAttribute("aria-current","page")}),(e,t)=>(u(),r("div",{ref_key:"breadcrumb",ref:f,class:p(d(l).b()),"aria-label":d(a)("el.breadcrumb.label"),role:"navigation"},[c(e.$slots,"default")],10,["aria-label"]))}}),[["__file","breadcrumb.vue"]]);const Dt=e({to:{type:f([String,Object]),default:""},replace:Boolean}),Wt=l({name:"ElBreadcrumbItem"});var qt=a(l({...Wt,props:Dt,setup(e){const t=e,a=h(),l=m(zt,void 0),n=o("breadcrumb"),s=a.appContext.config.globalProperties.$router,v=i(),f=()=>{t.to&&s&&(t.replace?s.replace(t.to):s.push(t.to))};return(e,t)=>{var a,o;return u(),r("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==(a=d(l))?void 0:a.separatorIcon)?(u(),b(d(k),{key:0,class:p(d(n).e("separator"))},{default:y(()=>[(u(),b(x(d(l).separatorIcon)))]),_:1},8,["class"])):(u(),r("span",{key:1,class:p(d(n).e("separator")),role:"presentation"},_(null==(o=d(l))?void 0:o.separator),3))],2)}}}),[["__file","breadcrumb-item.vue"]]);const Ut=C(Kt,{BreadcrumbItem:qt}),Xt=w(qt),Yt=e=>V(e)||I(e)||S(e),Gt=e({accordion:Boolean,modelValue:{type:f([Array,String,Number]),default:()=>A([])},expandIconPosition:{type:f([String]),default:"right"},beforeCollapse:{type:f(Function)}}),Zt={[E]:Yt,[M]:Yt},Jt=Symbol("collapseContextKey"),Qt=l({name:"ElCollapse"});var ea=a(l({...Qt,props:Gt,emits:Zt,setup(e,{expose:t,emit:a}){const l=e,{activeNames:n,setActiveNames:s}=((e,t)=>{const a=i(T(e.modelValue)),l=l=>{a.value=l;const n=e.accordion?a.value[0]:a.value;t(E,n),t(M,n)},n=t=>{if(e.accordion)l([a.value[0]===t?"":t]);else{const e=[...a.value],n=e.indexOf(t);n>-1?e.splice(n,1):e.push(t),l(e)}};return L(()=>e.modelValue,()=>a.value=T(e.modelValue),{deep:!0}),v(Jt,{activeNames:a,handleItemClick:async t=>{const{beforeCollapse:a}=e;if(!a)return void n(t);const l=a(t);[$(l),O(l)].includes(!0)||B("ElCollapse","beforeCollapse must return type `Promise` or `boolean`"),$(l)?l.then(e=>{!1!==e&&n(t)}).catch(e=>{}):l&&n(t)}}),{activeNames:a,setActiveNames:l}})(l,a),{rootKls:f}=(e=>{const t=o("collapse");return{rootKls:P(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}})(l);return t({activeNames:n,setActiveNames:s}),(e,t)=>(u(),r("div",{class:p(d(f))},[c(e.$slots,"default")],2))}}),[["__file","collapse.vue"]]);const ta=l({name:"ElCollapseTransition"});const aa=C(a(l({...ta,setup(e){const t=o("collapse-transition"),a=e=>{e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},l={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){a(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){a(e)},leaveCancelled(e){a(e)}};return(e,a)=>(u(),b(R,N({name:d(t).b()},H(l)),{default:y(()=>[c(e.$slots,"default")]),_:3},16,["name"]))}}),[["__file","collapse-transition.vue"]])),la=e({title:{type:String,default:""},name:{type:f([String,Number]),default:void 0},icon:{type:t,default:z},disabled:Boolean}),na=l({name:"ElCollapseItem"});var oa=a(l({...na,props:la,setup(e,{expose:t}){const a=e,{focusing:l,id:n,isActive:s,handleFocus:v,handleHeaderClick:f,handleEnterClick:h}=(e=>{const t=m(Jt),{namespace:a}=o("collapse"),l=i(!1),n=i(!1),s=j(),r=P(()=>s.current++),u=P(()=>{var t;return null!=(t=e.name)?t:`${a.value}-id-${s.prefix}-${d(r)}`}),c=P(()=>null==t?void 0:t.activeNames.value.includes(d(u)));return{focusing:l,id:r,isActive:c,handleFocus:()=>{setTimeout(()=>{n.value?n.value=!1:l.value=!0},50)},handleHeaderClick:a=>{if(e.disabled)return;const o=a.target;(null==o?void 0:o.closest("input, textarea, select"))||(null==t||t.handleItemClick(d(u)),l.value=!1,n.value=!0)},handleEnterClick:e=>{const a=e.target;(null==a?void 0:a.closest("input, textarea, select"))||(e.preventDefault(),null==t||t.handleItemClick(d(u)))}}})(a),{arrowKls:w,headKls:C,rootKls:V,itemTitleKls:I,itemWrapperKls:S,itemContentKls:M,scopedContentId:E,scopedHeadId:A}=((e,{focusing:t,isActive:a,id:l})=>{const n=o("collapse"),i=P(()=>[n.b("item"),n.is("active",d(a)),n.is("disabled",e.disabled)]),s=P(()=>[n.be("item","header"),n.is("active",d(a)),{focusing:d(t)&&!e.disabled}]),r=P(()=>[n.be("item","arrow"),n.is("active",d(a))]);return{itemTitleKls:P(()=>[n.be("item","title")]),arrowKls:r,headKls:s,rootKls:i,itemWrapperKls:P(()=>n.be("item","wrap")),itemContentKls:P(()=>n.be("item","content")),scopedContentId:P(()=>n.b(`content-${d(l)}`)),scopedHeadId:P(()=>n.b(`head-${d(l)}`))}})(a,{focusing:l,isActive:s,id:n});return t({isActive:s}),(e,t)=>(u(),r("div",{class:p(d(V))},[g("div",{id:d(A),class:p(d(C)),"aria-expanded":d(s),"aria-controls":d(E),"aria-describedby":d(E),tabindex:e.disabled?-1:0,role:"button",onClick:d(f),onKeydown:D(W(d(h),["stop"]),["space","enter"]),onFocus:d(v),onBlur:e=>l.value=!1},[g("span",{class:p(d(I))},[c(e.$slots,"title",{isActive:d(s)},()=>[K(_(e.title),1)])],2),c(e.$slots,"icon",{isActive:d(s)},()=>[F(d(k),{class:p(d(w))},{default:y(()=>[(u(),b(x(e.icon)))]),_:1},8,["class"])])],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),F(d(aa),null,{default:y(()=>[q(g("div",{id:d(E),role:"region",class:p(d(S)),"aria-hidden":!d(s),"aria-labelledby":d(A)},[g("div",{class:p(d(M))},[c(e.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[U,d(s)]])]),_:3})],2))}}),[["__file","collapse-item.vue"]]);const ia=C(ea,{CollapseItem:oa}),sa=w(oa),ra=e({color:{type:f(Object),required:!0},vertical:Boolean});let ua=!1;function ca(e,t){if(!X)return;const a=function(e){var a;null==(a=t.drag)||a.call(t,e)},l=function(e){var n;document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",l),document.removeEventListener("touchmove",a),document.removeEventListener("touchend",l),document.onselectstart=null,document.ondragstart=null,ua=!1,null==(n=t.end)||n.call(t,e)},n=function(e){var n;ua||(e.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",a),document.addEventListener("mouseup",l),document.addEventListener("touchmove",a),document.addEventListener("touchend",l),ua=!0,null==(n=t.start)||n.call(t,e))};e.addEventListener("mousedown",n),e.addEventListener("touchstart",n,{passive:!1})}const da=(e,{bar:t,thumb:a,handleDrag:l})=>{const n=h(),r=o("color-alpha-slider"),u=i(0),c=i(0),d=i();function p(){u.value=function(){if(!a.value)return 0;if(e.vertical)return 0;const t=n.vnode.el,l=e.color.get("alpha");return t?Math.round(l*(t.offsetWidth-a.value.offsetWidth/2)/100):0}(),c.value=function(){if(!a.value)return 0;const t=n.vnode.el;if(!e.vertical)return 0;const l=e.color.get("alpha");return t?Math.round(l*(t.offsetHeight-a.value.offsetHeight/2)/100):0}(),d.value=function(){if(e.color&&e.color.value){const{r:t,g:a,b:l}=e.color.toRgb();return`linear-gradient(to right, rgba(${t}, ${a}, ${l}, 0) 0%, rgba(${t}, ${a}, ${l}, 1) 100%)`}return""}()}s(()=>{if(!t.value||!a.value)return;const e={drag:e=>{l(e)},end:e=>{l(e)}};ca(t.value,e),ca(a.value,e),p()}),L(()=>e.color.get("alpha"),()=>p()),L(()=>e.color.value,()=>p());const v=P(()=>[r.b(),r.is("vertical",e.vertical)]),f=P(()=>r.e("bar")),m=P(()=>r.e("thumb"));return{rootKls:v,barKls:f,barStyle:P(()=>({background:d.value})),thumbKls:m,thumbStyle:P(()=>({left:G(u.value),top:G(c.value)})),update:p}},pa=l({name:"ElColorAlphaSlider"});var va=a(l({...pa,props:ra,setup(e,{expose:t}){const a=e,{alpha:l,alphaLabel:o,bar:i,thumb:s,handleDrag:c,handleClick:v,handleKeydown:f}=(e=>{const t=h(),{t:a}=n(),l=Y(),o=Y(),i=P(()=>e.color.get("alpha")),s=P(()=>a("el.colorpicker.alphaLabel"));function r(a){if(!o.value||!l.value)return;const n=t.vnode.el.getBoundingClientRect(),{clientX:i,clientY:s}=J(a);if(e.vertical){let t=s-n.top;t=Math.max(l.value.offsetHeight/2,t),t=Math.min(t,n.height-l.value.offsetHeight/2),e.color.set("alpha",Math.round((t-l.value.offsetHeight/2)/(n.height-l.value.offsetHeight)*100))}else{let t=i-n.left;t=Math.max(l.value.offsetWidth/2,t),t=Math.min(t,n.width-l.value.offsetWidth/2),e.color.set("alpha",Math.round((t-l.value.offsetWidth/2)/(n.width-l.value.offsetWidth)*100))}}function u(t){let a=i.value+t;a=a<0?0:a>100?100:a,e.color.set("alpha",a)}return{thumb:l,bar:o,alpha:i,alphaLabel:s,handleDrag:r,handleClick:function(e){var t;e.target!==l.value&&r(e),null==(t=l.value)||t.focus()},handleKeydown:function(e){const{code:t,shiftKey:a}=e,l=a?10:1;switch(t){case Z.left:case Z.down:e.preventDefault(),e.stopPropagation(),u(-l);break;case Z.right:case Z.up:e.preventDefault(),e.stopPropagation(),u(l)}}}})(a),{rootKls:m,barKls:b,barStyle:y,thumbKls:x,thumbStyle:k,update:_}=da(a,{bar:i,thumb:s,handleDrag:c});return t({update:_,bar:i,thumb:s}),(e,t)=>(u(),r("div",{class:p(d(m))},[g("div",{ref_key:"bar",ref:i,class:p(d(b)),style:Q(d(y)),onClick:d(v)},null,14,["onClick"]),g("div",{ref_key:"thumb",ref:s,class:p(d(x)),style:Q(d(k)),"aria-label":d(o),"aria-valuenow":d(l),"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 fa=a(l({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=o("color-hue-slider"),a=h(),l=i(),n=i(),r=i(0),u=i(0),c=P(()=>e.color.get("hue"));function d(t){if(!n.value||!l.value)return;const o=a.vnode.el.getBoundingClientRect(),{clientX:i,clientY:s}=J(t);let r;if(e.vertical){let e=s-o.top;e=Math.min(e,o.height-l.value.offsetHeight/2),e=Math.max(l.value.offsetHeight/2,e),r=Math.round((e-l.value.offsetHeight/2)/(o.height-l.value.offsetHeight)*360)}else{let e=i-o.left;e=Math.min(e,o.width-l.value.offsetWidth/2),e=Math.max(l.value.offsetWidth/2,e),r=Math.round((e-l.value.offsetWidth/2)/(o.width-l.value.offsetWidth)*360)}e.color.set("hue",r)}function p(){r.value=function(){if(!l.value)return 0;const t=a.vnode.el;if(e.vertical)return 0;const n=e.color.get("hue");return t?Math.round(n*(t.offsetWidth-l.value.offsetWidth/2)/360):0}(),u.value=function(){if(!l.value)return 0;const t=a.vnode.el;if(!e.vertical)return 0;const n=e.color.get("hue");return t?Math.round(n*(t.offsetHeight-l.value.offsetHeight/2)/360):0}()}return L(()=>c.value,()=>{p()}),s(()=>{if(!n.value||!l.value)return;const e={drag:e=>{d(e)},end:e=>{d(e)}};ca(n.value,e),ca(l.value,e),p()}),{bar:n,thumb:l,thumbLeft:r,thumbTop:u,hueValue:c,handleClick:function(e){e.target!==l.value&&d(e)},update:p,ns:t}}}),[["render",function(e,t,a,l,n,o){return u(),r("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 ma=e({modelValue:{type:f(String),default:void 0},id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:ne,popperClass:{type:String,default:""},tabindex:{type:[String,Number],default:0},teleported:le.teleported,predefine:{type:f(Array)},validateEvent:{type:Boolean,default:!0},...ae,...te(["ariaLabel"])}),ha={[E]:e=>I(e)||ee(e),[M]:e=>I(e)||ee(e),activeChange:e=>I(e)||ee(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},ga=Symbol("colorPickerContextKey");class ba{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this._tiny=new oe,this._isValid=!1,this.enableAlpha=!1,this.format="",this.value="";for(const t in e)ie(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._isValid=!0,this.doOnChange();else for(const a in e)ie(e,a)&&this.set(a,e[a])}get(e){return["hue","saturation","value","alpha"].includes(e)?Math.round(this[`_${e}`]):this[`_${e}`]}toRgb(){return this._isValid?this._tiny.toRgb():{r:255,g:255,b:255,a:0}}fromString(e){const t=new oe(e);if(this._isValid=t.isValid,t.isValid){const{h:e,s:a,v:l,a:n}=t.toHsv();this._hue=e,this._saturation=100*a,this._value=100*l,this._alpha=100*n}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}compare(e){const t=new oe({h:e._hue,s:e._saturation/100,v:e._value/100,a:e._alpha/100});return this._tiny.equals(t)}doOnChange(){const{_hue:e,_saturation:t,_value:a,_alpha:l,format:n,enableAlpha:o}=this;let i=n||(o?"rgb":"hex");"hex"===n&&o&&(i="hex8"),this._tiny=new oe({h:e,s:t/100,v:a/100,a:l/100}),this.value=this._isValid?this._tiny.toString(i):""}}var ya=a(l({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0}},setup(e){const t=o("color-predefine"),{currentColor:a}=m(ga),l=i(n(e.colors,e.color));function n(e,t){return e.map(e=>{const a=new ba({value:e});return a.selected=a.compare(t),a})}return L(()=>a.value,e=>{const t=new ba({value:e});l.value.forEach(e=>{e.selected=t.compare(e)})}),ue(()=>{l.value=n(e.colors,e.color)}),{rgbaColors:l,handleSelect:function(t){e.color.fromString(e.colors[t])},ns:t}}}),[["render",function(e,t,a,l,n,o){return u(),r("div",{class:p(e.ns.b())},[g("div",{class:p(e.ns.e("colors"))},[(u(!0),r(se,null,re(e.rgbaColors,(t,a)=>(u(),r("div",{key:e.colors[a],class:p([e.ns.e("color-selector"),e.ns.is("alpha",t.get("alpha")<100),{selected:t.selected}]),onClick:t=>e.handleSelect(a)},[g("div",{style:Q({backgroundColor:t.value})},null,4)],10,["onClick"]))),128))],2)],2)}],["__file","predefine.vue"]]);var xa=a(l({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=o("color-svpanel"),a=h(),l=i(0),n=i(0),r=i("hsl(0, 100%, 50%)"),u=P(()=>({hue:e.color.get("hue"),value:e.color.get("value")}));function c(){const t=e.color.get("saturation"),o=e.color.get("value"),i=a.vnode.el,{clientWidth:s,clientHeight:u}=i;n.value=t*s/100,l.value=(100-o)*u/100,r.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function d(t){const o=a.vnode.el.getBoundingClientRect(),{clientX:i,clientY:s}=J(t);let r=i-o.left,u=s-o.top;r=Math.max(0,r),r=Math.min(r,o.width),u=Math.max(0,u),u=Math.min(u,o.height),n.value=r,l.value=u,e.color.set({saturation:r/o.width*100,value:100-u/o.height*100})}return L(()=>u.value,()=>{c()}),s(()=>{ca(a.vnode.el,{drag:e=>{d(e)},end:e=>{d(e)}}),c()}),{cursorTop:l,cursorLeft:n,background:r,colorValue:u,handleDrag:d,update:c,ns:t}}}),[["render",function(e,t,a,l,n,o){return u(),r("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 ka=l({name:"ElColorPicker"});const _a=C(a(l({...ka,props:ma,emits:ha,setup(e,{expose:t,emit:a}){const l=e,{t:c}=n(),f=o("color"),{formItem:m}=ce(),h=de(),x=pe(),{valueOnClear:w,isEmptyValue:C}=ve(l,null),{inputId:V,isLabeledByFormItem:I}=fe(l,{formItemContext:m}),S=i(),A=i(),T=i(),$=i(),O=i(),B=i(),{isFocused:H,handleFocus:R,handleBlur:z}=me(O,{disabled:x,beforeBlur(e){var t;return null==(t=$.value)?void 0:t.isFocusInsideContent(e)},afterBlur(){ne(!1),re()}});let j=!0;const W=he(new ba({enableAlpha:l.showAlpha,format:l.colorFormat||"",value:l.modelValue})),X=i(!1),Y=i(!1),G=i(""),J=P(()=>l.modelValue||Y.value?function(e,t){const{r:a,g:l,b:n,a:o}=e.toRgb();return t?`rgba(${a}, ${l}, ${n}, ${o})`:`rgb(${a}, ${l}, ${n})`}(W,l.showAlpha):"transparent"),ee=P(()=>l.modelValue||Y.value?W.value:""),te=P(()=>I.value?void 0:l.ariaLabel||c("el.colorpicker.defaultLabel")),ae=P(()=>I.value?null==m?void 0:m.labelId:void 0),le=P(()=>[f.b("picker"),f.is("disabled",x.value),f.bm("picker",h.value),f.is("focused",H.value)]);function ne(e){X.value=e}const oe=ge(ne,100,{leading:!0});function ie(){x.value||ne(!0)}function se(){oe(!1),re()}function re(){be(()=>{l.modelValue?W.fromString(l.modelValue):(W.value="",!ee.value&&G.value&&(G.value=""),be(()=>{Y.value=!1}))})}function ue(){x.value||(X.value&&re(),oe(!X.value))}function Se(){W.fromString(G.value),W.value!==G.value&&(G.value=W.value)}function Me(){const e=C(W.value)?w.value:W.value;a(E,e),a(M,e),l.validateEvent&&(null==m||m.validate("change").catch(e=>Ie())),oe(!1),be(()=>{const e=new ba({enableAlpha:l.showAlpha,format:l.colorFormat||"",value:l.modelValue});W.compare(e)||re()})}function Ee(){oe(!1),a(E,w.value),a(M,w.value),l.modelValue!==w.value&&l.validateEvent&&(null==m||m.validate("change").catch(e=>Ie())),re()}function Ae(){X.value&&(se(),H.value&&Pe())}function Te(e){e.preventDefault(),e.stopPropagation(),ne(!1),re()}function Le(e){switch(e.code){case Z.enter:case Z.numpadEnter:case Z.space:e.preventDefault(),e.stopPropagation(),ie(),B.value.focus();break;case Z.esc:Te(e)}}function Pe(){O.value.focus()}return s(()=>{l.modelValue&&(G.value=ee.value)}),L(()=>l.modelValue,e=>{e?e&&e!==W.value&&(j=!1,W.fromString(e)):Y.value=!1}),L(()=>[l.colorFormat,l.showAlpha],()=>{W.enableAlpha=l.showAlpha,W.format=l.colorFormat||W.format,W.doOnChange(),a(E,W.value)}),L(()=>ee.value,e=>{G.value=e,j&&a("activeChange",e),j=!0}),L(()=>W.value,()=>{l.modelValue||Y.value||(Y.value=!0)}),L(()=>X.value,()=>{be(()=>{var e,t,a;null==(e=S.value)||e.update(),null==(t=A.value)||t.update(),null==(a=T.value)||a.update()})}),v(ga,{currentColor:ee}),t({color:W,show:ie,hide:se,focus:Pe,blur:function(){O.value.blur()}}),(e,t)=>(u(),b(d(Ve),{ref_key:"popper",ref:$,visible:X.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=>ne(!1)},{content:y(()=>[q((u(),r("div",{onKeydown:D(Te,["esc"])},[g("div",{class:p(d(f).be("dropdown","main-wrapper"))},[F(fa,{ref_key:"hue",ref:S,class:"hue-slider",color:d(W),vertical:""},null,8,["color"]),F(xa,{ref_key:"sv",ref:A,color:d(W)},null,8,["color"])],2),e.showAlpha?(u(),b(va,{key:0,ref_key:"alpha",ref:T,color:d(W)},null,8,["color"])):ke("v-if",!0),e.predefine?(u(),b(ya,{key:1,ref:"predefine","enable-alpha":e.showAlpha,color:d(W),colors:e.predefine},null,8,["enable-alpha","color","colors"])):ke("v-if",!0),g("div",{class:p(d(f).be("dropdown","btns"))},[g("span",{class:p(d(f).be("dropdown","value"))},[F(d(_e),{ref_key:"inputRef",ref:B,modelValue:G.value,"onUpdate:modelValue":e=>G.value=e,"validate-event":!1,size:"small",onChange:Se},null,8,["modelValue","onUpdate:modelValue"])],2),F(d(we),{class:p(d(f).be("dropdown","link-btn")),text:"",size:"small",onClick:Ee},{default:y(()=>[K(_(d(c)("el.colorpicker.clear")),1)]),_:1},8,["class"]),F(d(we),{plain:"",size:"small",class:p(d(f).be("dropdown","btn")),onClick:Me},{default:y(()=>[K(_(d(c)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,["onKeydown"])),[[d(Ce),Ae,O.value]])]),default:y(()=>[g("div",N({id:d(V),ref_key:"triggerRef",ref:O},e.$attrs,{class:d(le),role:"button","aria-label":d(te),"aria-labelledby":d(ae),"aria-description":d(c)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":d(x),tabindex:d(x)?void 0:e.tabindex,onKeydown:Le,onFocus:d(R),onBlur:d(z)}),[g("div",{class:p(d(f).be("picker","trigger")),onClick:ue},[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(J)})},[q(F(d(k),{class:p([d(f).be("picker","icon"),d(f).is("icon-arrow-down")])},{default:y(()=>[F(d(ye))]),_:1},8,["class"]),[[U,e.modelValue||Y.value]]),q(F(d(k),{class:p([d(f).be("picker","empty"),d(f).is("icon-close")])},{default:y(()=>[F(d(xe))]),_:1},8,["class"]),[[U,!e.modelValue&&!Y.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"]]));let wa=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 a=!1;switch(t.code){case Z.down:this.gotoSubIndex(this.subIndex+1),a=!0;break;case Z.up:this.gotoSubIndex(this.subIndex-1),a=!0;break;case Z.tab:Se(e,"mouseleave");break;case Z.enter:case Z.numpadEnter:case Z.space:a=!0,t.currentTarget.click()}return a&&(t.preventDefault(),t.stopPropagation()),!1})})}},Ca=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 wa(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",e=>{let t=!1;switch(e.code){case Z.down:Se(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),t=!0;break;case Z.up:Se(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),t=!0;break;case Z.tab:Se(e.currentTarget,"mouseleave");break;case Z.enter:case Z.numpadEnter:case Z.space:t=!0,e.currentTarget.click()}t&&e.preventDefault()})}},Va=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 Ca(t,e)})}};const Ia=l({name:"ElMenuCollapseTransition"});var Sa=a(l({...Ia,setup(e){const t=o("menu"),a={onBeforeEnter:e=>e.style.opacity="0.2",onEnter(e,a){Me(e,`${t.namespace.value}-opacity-transition`),e.style.opacity="1",a()},onAfterEnter(e){Ae(e,`${t.namespace.value}-opacity-transition`),e.style.opacity=""},onBeforeLeave(e){e.dataset||(e.dataset={}),Ee(e,t.m("collapse"))?(Ae(e,t.m("collapse")),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth.toString(),Me(e,t.m("collapse"))):(Me(e,t.m("collapse")),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth.toString(),Ae(e,t.m("collapse"))),e.style.width=`${e.scrollWidth}px`,e.style.overflow="hidden"},onLeave(e){Me(e,"horizontal-collapse-transition"),e.style.width=`${e.dataset.scrollWidth}px`}};return(e,t)=>(u(),b(R,N({mode:"out-in"},d(a)),{default:y(()=>[c(e.$slots,"default")]),_:3},16))}}),[["__file","menu-collapse-transition.vue"]]);function Ma(e,t){const a=P(()=>{let a=e.parent;const l=[t.value];for(;"ElMenu"!==a.type.name;)a.props.index&&l.unshift(a.props.index),a=a.parent;return l});return{parentMenu:P(()=>{let t=e.parent;for(;t&&!["ElMenu","ElSubMenu"].includes(t.type.name);)t=t.parent;return t}),indexPath:a}}function Ea(e){return P(()=>{const t=e.backgroundColor;return t?new oe(t).shade(20).toString():""})}const Aa=(e,t)=>{const a=o("menu");return P(()=>a.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":Ea(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},Ta="rootMenu",La="subMenu:",Pa=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}}),$a="ElSubMenu";var Oa=l({name:$a,props:Pa,setup(e,{slots:t,expose:a}){const l=h(),{indexPath:n,parentMenu:r}=Ma(l,P(()=>e.index)),u=o("menu"),c=o("sub-menu"),d=m(Ta);d||B($a,"can not inject root menu");const p=m(`${La}${r.value.uid}`);p||B($a,"can not inject sub menu");const f=i({}),g=i({});let b;const y=i(!1),x=i(),_=i(),w=P(()=>"horizontal"===$.value&&V.value?"bottom-start":"right-start"),C=P(()=>"horizontal"===$.value&&V.value||"vertical"===$.value&&!d.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?A.value?e.expandOpenIcon:e.expandCloseIcon:ye:e.collapseCloseIcon&&e.collapseOpenIcon?A.value?e.collapseOpenIcon:e.collapseCloseIcon:z),V=P(()=>0===p.level),S=P(()=>{const t=e.teleported;return Te(t)?V.value:t}),M=P(()=>d.props.collapse?`${u.namespace.value}-zoom-in-left`:`${u.namespace.value}-zoom-in-top`),E=P(()=>"horizontal"===$.value&&V.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"]),A=P(()=>d.openedMenus.includes(e.index)),T=P(()=>[...Object.values(f.value),...Object.values(g.value)].some(({active:e})=>e)),$=P(()=>d.props.mode),O=P(()=>d.props.persistent),N=he({index:e.index,indexPath:n,active:T}),H=Aa(d.props,p.level+1),R=P(()=>{var t;return null!=(t=e.popperOffset)?t:d.props.popperOffset}),j=P(()=>{var t;return null!=(t=e.popperClass)?t:d.props.popperClass}),F=P(()=>{var t;return null!=(t=e.showTimeout)?t:d.props.showTimeout}),K=P(()=>{var t;return null!=(t=e.hideTimeout)?t:d.props.hideTimeout}),D=e=>{var t,a,l;e||null==(l=null==(a=null==(t=_.value)?void 0:t.popperRef)?void 0:a.popperInstanceRef)||l.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})},X=(t,a=F.value)=>{var l;"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}=$e(()=>{d.openMenu(e.index,n.value)},a)),S.value&&(null==(l=r.value.vnode.el)||l.dispatchEvent(new MouseEvent("mouseenter")))))},Y=(t=!1)=>{var a;"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}=$e(()=>!y.value&&d.closeMenu(e.index,n.value),K.value)),S.value&&t&&(null==(a=p.handleMouseleave)||a.call(p,!0)))};L(()=>d.props.collapse,e=>D(Boolean(e)));{const e=e=>{g.value[e.index]=e},t=e=>{delete g.value[e.index]};v(`${La}${l.uid}`,{addSubMenu:e,removeSubMenu:t,handleMouseleave:Y,mouseInChild:y,level:p.level+1})}return a({opened:A}),s(()=>{d.addSubMenu(N),p.addSubMenu(N)}),Le(()=>{p.removeSubMenu(N),d.removeSubMenu(N)}),()=>{var a;const n=[null==(a=t.title)?void 0:a.call(t),Pe(k,{class:c.e("icon-arrow"),style:{transform:A.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&d.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>I(C.value)?Pe(l.appContext.components[C.value]):Pe(C.value)})],o=d.isMenuPopup?Pe(Ve,{ref:_,visible:A.value,effect:"light",pure:!0,offset:R.value,showArrow:!1,persistent:O.value,popperClass:j.value,placement:w.value,teleported:S.value,fallbackPlacements:E.value,transition:M.value,gpuAcceleration:!1},{content:()=>{var e;return Pe("div",{class:[u.m($.value),u.m("popup-container"),j.value],onMouseenter:e=>X(e,100),onMouseleave:()=>Y(!0),onFocus:e=>X(e,100)},[Pe("ul",{class:[u.b(),u.m("popup"),u.m(`popup-${w.value}`)],style:H.value},[null==(e=t.default)?void 0:e.call(t)])])},default:()=>Pe("div",{class:c.e("title"),onClick:W},n)}):Pe(se,{},[Pe("div",{class:c.e("title"),ref:x,onClick:W},n),Pe(aa,{},{default:()=>{var e;return q(Pe("ul",{role:"menu",class:[u.b(),u.m("inline")],style:H.value},[null==(e=t.default)?void 0:e.call(t)]),[[U,A.value]])}})]);return Pe("li",{class:[c.b(),c.is("active",T.value),c.is("opened",A.value),c.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:A.value,onMouseenter:X,onMouseleave:()=>Y(),onFocus:X},[o])}}});const Ba=e({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:f(Array),default:()=>A([])},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:()=>He},popperEffect:{type:f(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),Na=e=>S(e)&&e.every(e=>I(e));var Ha=l({name:"ElMenu",props:Ba,emits:{close:(e,t)=>I(e)&&Na(t),open:(e,t)=>I(e)&&Na(t),select:(e,t,a,l)=>I(e)&&Na(t)&&Oe(a)&&(Te(l)||l instanceof Promise)},setup(e,{emit:t,slots:a,expose:l}){const n=h(),r=n.appContext.config.globalProperties.$router,u=i(),c=o("menu"),d=o("sub-menu"),p=i(-1),f=i(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),m=i(e.defaultActive),g=i({}),b=i({}),y=P(()=>"horizontal"===e.mode||"vertical"===e.mode&&e.collapse),x=(a,l)=>{f.value.includes(a)||(e.uniqueOpened&&(f.value=f.value.filter(e=>l.includes(e))),f.value.push(a),t("open",a,l))},_=e=>{const t=f.value.indexOf(e);-1!==t&&f.value.splice(t,1)},w=(e,a)=>{_(e),t("close",e,a)},C=({index:e,indexPath:t})=>{f.value.includes(e)?w(e,t):x(e,t)},V=a=>{("horizontal"===e.mode||e.collapse)&&(f.value=[]);const{index:l,indexPath:n}=a;if(!ee(l)&&!ee(n))if(e.router&&r){const e=a.route||l,o=r.push(e).then(e=>(e||(m.value=l),e));t("select",l,n,{index:l,indexPath:n,route:e},o)}else m.value=l,t("select",l,n,{index:l,indexPath:n})},I=t=>{var a;const l=g.value,n=l[t]||m.value&&l[m.value]||l[e.defaultActive];m.value=null!=(a=null==n?void 0:n.index)?a:t},S=()=>{var e,t;if(!u.value)return-1;const a=Array.from(null!=(t=null==(e=u.value)?void 0:e.childNodes)?t:[]).filter(e=>"#text"!==e.nodeName||e.nodeValue),l=getComputedStyle(u.value),n=Number.parseInt(l.paddingLeft,10),o=Number.parseInt(l.paddingRight,10),i=u.value.clientWidth-n-o;let s=0,r=0;return a.forEach((e,t)=>{"#comment"!==e.nodeName&&(s+=(e=>{const t=getComputedStyle(e),a=Number.parseInt(t.marginLeft,10),l=Number.parseInt(t.marginRight,10);return e.offsetWidth+a+l||0})(e),s<=i-64&&(r=t+1))}),r===a.length?-1:r};let M=!0;const E=()=>{if(p.value===S())return;const e=()=>{p.value=-1,be(()=>{p.value=S()})};M?e():((e,t=33.34)=>{let a;return()=>{a&&clearTimeout(a),a=setTimeout(()=>{e()},t)}})(e)(),M=!1};let A;L(()=>e.defaultActive,e=>{g.value[e]||(m.value=""),I(e)}),L(()=>e.collapse,e=>{e&&(f.value=[])}),L(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&&x(e,t.indexPath)})}),ue(()=>{"horizontal"===e.mode&&e.ellipsis?A=Be(u,E).stop:null==A||A()});const T=i(!1);{const t=e=>{b.value[e.index]=e},a=e=>{delete b.value[e.index]},l=e=>{g.value[e.index]=e},o=e=>{delete g.value[e.index]};v(Ta,he({props:e,openedMenus:f,items:g,subMenus:b,activeIndex:m,isMenuPopup:y,addMenuItem:l,removeMenuItem:o,addSubMenu:t,removeSubMenu:a,openMenu:x,closeMenu:w,handleMenuItemClick:V,handleSubMenuClick:C})),v(`${La}${n.uid}`,{addSubMenu:t,removeSubMenu:a,mouseInChild:T,level:0})}s(()=>{"horizontal"===e.mode&&new Va(n.vnode.el,c.namespace.value)});l({open:e=>{const{indexPath:t}=b.value[e];t.forEach(e=>x(e,t))},close:_,updateActiveIndex:I,handleResize:E});const $=Aa(e,0);return()=>{var l,n;let o=null!=(n=null==(l=a.default)?void 0:l.call(a))?n:[];const i=[];if("horizontal"===e.mode&&u.value){const t=Ne(o),a=-1===p.value?t:t.slice(0,p.value),l=-1===p.value?[]:t.slice(p.value);(null==l?void 0:l.length)&&e.ellipsis&&(o=a,i.push(Pe(Oa,{index:"sub-menu-more",class:d.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>Pe(k,{class:d.e("icon-more")},{default:()=>Pe(e.ellipsisIcon)}),default:()=>l})))}const s=e.closeOnClickOutside?[[Ce,()=>{f.value.length&&(T.value||(f.value.forEach(e=>{return t("close",e,(a=e,b.value[a].indexPath));var a}),f.value=[]))}]]:[],r=q(Pe("ul",{key:String(e.collapse),role:"menubar",ref:u,style:$.value,class:{[c.b()]:!0,[c.m(e.mode)]:!0,[c.m("collapse")]:e.collapse}},[...o,...i]),s);return e.collapseTransition&&"vertical"===e.mode?Pe(Sa,()=>r):r}}});const Ra=e({index:{type:f([String,null]),default:null},route:{type:f([String,Object])},disabled:Boolean}),za={click:e=>I(e.index)&&S(e.indexPath)},ja="ElMenuItem",Fa=l({name:ja});var Ka=a(l({...Fa,props:Ra,emits:za,setup(e,{expose:t,emit:a}){const l=e;Re(l.index)&&Ie();const n=h(),i=m(Ta),v=o("menu"),f=o("menu-item");i||B(ja,"can not inject root menu");const{parentMenu:x,indexPath:k}=Ma(n,ze(l,"index")),_=m(`${La}${x.value.uid}`);_||B(ja,"can not inject sub menu");const w=P(()=>l.index===i.activeIndex),C=he({index:l.index,indexPath:k,active:w}),V=()=>{l.disabled||(i.handleMenuItemClick({index:l.index,indexPath:k.value,route:l.route}),a("click",C))};return s(()=>{_.addSubMenu(C),i.addMenuItem(C)}),Le(()=>{_.removeSubMenu(C),i.removeMenuItem(C)}),t({parentMenu:x,rootMenu:i,active:w,nsMenu:v,nsMenuItem:f,handleClick:V}),(e,t)=>(u(),r("li",{class:p([d(f).b(),d(f).is("active",d(w)),d(f).is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:V},["ElMenu"===d(x).type.name&&d(i).props.collapse&&e.$slots.title?(u(),b(d(Ve),{key:0,effect:d(i).props.popperEffect,placement:"right","fallback-placements":["left"],persistent:d(i).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(),r(se,{key:1},[c(e.$slots,"default"),c(e.$slots,"title")],64))],2))}}),[["__file","menu-item.vue"]]);const Da={title:String},Wa=l({name:"ElMenuItemGroup"});var qa=a(l({...Wa,props:Da,setup(e){const t=o("menu-item-group");return(e,a)=>(u(),r("li",{class:p(d(t).b())},[g("div",{class:p(d(t).e("title"))},[e.$slots.title?c(e.$slots,"title",{key:1}):(u(),r(se,{key:0},[K(_(e.title),1)],64))],2),g("ul",null,[c(e.$slots,"default")])],2))}}),[["__file","menu-item-group.vue"]]);const Ua=C(Ha,{MenuItem:Ka,MenuItemGroup:qa,SubMenu:Oa}),Xa=w(Ka);w(qa);const Ya=w(Oa),Ga=je("tagsView",()=>{const e=i([]),t=i([]);function a(t){e.value.some(e=>e.path===t.path)||(t.affix?e.value.unshift(t):e.value.push(t))}function l(e){const a=e.name;t.value.includes(a)||e.keepAlive&&t.value.push(a)}function n(t){return new Promise(a=>{for(const[l,n]of e.value.entries())if(n.path===t.path){e.value.splice(l,1);break}a([...e.value])})}function o(e){const a=e.name;return new Promise(e=>{const l=t.value.indexOf(a);l>-1&&t.value.splice(l,1),e([...t.value])})}function s(t){return new Promise(a=>{e.value=e.value.filter(e=>(null==e?void 0:e.affix)||e.path===t.path),a([...e.value])})}function r(e){const a=e.name;return new Promise(e=>{const l=t.value.indexOf(a);t.value=l>-1?t.value.slice(l,l+1):[],e([...t.value])})}return{visitedViews:e,cachedViews:t,addVisitedView:a,addCachedView:l,delVisitedView:n,delCachedView:o,delOtherVisitedViews:s,delOtherCachedViews:r,updateVisitedView:function(t){for(let a of e.value)if(a.path===t.path){a=Object.assign(a,t);break}},addView:function(e){a(e),l(e)},delView:function(a){return new Promise(l=>{n(a),o(a),l({visitedViews:[...e.value],cachedViews:[...t.value]})})},delOtherViews:function(a){return new Promise(l=>{s(a),r(a),l({visitedViews:[...e.value],cachedViews:[...t.value]})})},delLeftViews:function(a){return new Promise(l=>{const n=e.value.findIndex(e=>e.path===a.path);-1!==n&&(e.value=e.value.filter((e,a)=>{if(a>=n||(null==e?void 0:e.affix))return!0;const l=t.value.indexOf(e.name);return l>-1&&t.value.splice(l,1),!1}),l({visitedViews:[...e.value]}))})},delRightViews:function(t){return new Promise(a=>{const l=e.value.findIndex(e=>e.path===t.path);-1!==l&&(e.value=e.value.filter((e,t)=>{if(t<=l||(null==e?void 0:e.affix))return!0}),a({visitedViews:[...e.value]}))})},delAllViews:function(){return new Promise(a=>{const l=e.value.filter(e=>null==e?void 0:e.affix);e.value=l,t.value=[],a({visitedViews:[...e.value],cachedViews:[...t.value]})})},delAllVisitedViews:function(){return new Promise(t=>{const a=e.value.filter(e=>null==e?void 0:e.affix);e.value=a,t([...e.value])})},delAllCachedViews:function(){return new Promise(e=>{t.value=[],e([...t.value])})}}}),Za="/platformApi/pay_product/all";function Ja(){return Fe({url:Za,method:"get"})}const Qa="/skfApi/payProduct/payProductList";function el(){return Fe({url:Qa,method:"get"})}const tl="/payerApi/merchanPayProductList";function al(e){return Fe({url:tl,method:"get",params:e})}const ll="/platformApi/status";function nl(e){return Fe({url:ll,method:"get",params:e})}const ol=je("pay_product",()=>{const e=Ke(),t=De(e.getLoginType()+"pay_product",{list:[],actualList:[],dictionary:{}});function a(){return new Promise(async a=>{var l;const n=e.getLoginType();if(!(null==(l=t.value.list)?void 0:l.length)){let e=Ja;"other"===n||("payee"===n?e=el:"payer"===n&&(e=al)),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 a=Ke().getLoginType();t[0]=e.map(e=>({path:"/"+a+"/channel-management/management/"+e.pass_code,component:a+"/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:"/"+a+"/channel-order/order/"+e.pass_code,component:a+"/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(["other","payee"].includes(n)){(await We().generateRoutesAppend(o[0],"channel-management")).map(e=>{qe.addRoute("channel-management",e)})}a(t.value.list||[])})}return{products:t,loadPayProducts:a,refreshAddedRoute:function(){qe.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=>{qe.removeRoute(e.name)})}),t.value.list=[],t.value.actualList=[],a())},loadStatus:function(){return new Promise(async e=>{if(!Object.keys(t.value.dictionary).length){const e=Ke().getLoginType();let a=null;if("other"===e?a=nl:"payee"===e||"payer"===e&&(a=Rt),a){const e=await a();t.value.dictionary={status:Object.keys(e.order_status).map(t=>({label:e.order_status[t],value:t.toString()})),payment_status:Object.keys(e.payment_order_status).map(t=>({label:e.payment_order_status[t],value:t.toString()}))}}}e(t.value.dictionary)})},getDictionary:function(){return t.value.dictionary}}}),il=l({__name:"index",setup(e){const{t:t}=Ue(),a=P(()=>[{label:t("sizeSelect.default"),value:Xe.DEFAULT},{label:t("sizeSelect.large"),value:Xe.LARGE},{label:t("sizeSelect.small"),value:Xe.SMALL}]),l=Ye();function n(e){l.changeSize(e),Ge.success(t("sizeSelect.message.success"))}return(e,t)=>{const o=Ot,i=$t,s=Lt,c=Pt;return u(),b(c,{trigger:"click",onCommand:n},{dropdown:y(()=>[F(s,null,{default:y(()=>[(u(!0),r(se,null,re(d(a),e=>(u(),b(i,{key:e.value,disabled:d(l).size==e.value,command:e.value},{default:y(()=>[K(_(e.label),1)]),_:2},1032,["disabled","command"]))),128))]),_:1})]),default:y(()=>[g("div",null,[F(o,{"icon-class":"size"})])]),_:1})}}});const sl={class:"flex"},rl={key:0,"r-10":"","pl-5":"","pr-5":"",class:"setting-item info"},ul={class:"flex justify-center items-center h100% p10px"},cl={key:0,class:"reds"},dl={key:0},pl=vt(l({__name:"NavbarRight",setup(e){var t;const a=i("");s(()=>{(async()=>{try{const e=location.host+"/app/payee.apk",t=await Nt.toDataURL(e,{width:256,margin:2,color:{dark:"#000000",light:"#FFFFFF"}});a.value=t}catch(e){a.value="/imgs/payee-qrcode.png"}})()});const l=Ze(),n=Ye();Ga();const o=Ke(),c=Je();dt();const v=ct(),f=i(!1),m=P(()=>n.device===Qe.MOBILE),{isFullscreen:h,toggle:x}=et(),w=he({handle_order_status:null==(t=l.data.configInfo)?void 0:t.handle_order_status,msgList:[]}),C=i([]),V=e=>{2==e.status&&("other"===o.getLoginType()?pt({id:e.id}).then(t=>{l.setUnreadNum(l.data.unreadNum>=1?l.data.unreadNum-1:0),e.status=3}):function(e){return Fe({url:"/skfApi/message/read",method:"post",data:e})}({id:e.id}).then(t=>{l.setUnreadNum(l.data.unreadNum>=1?l.data.unreadNum-1:0),e.status=3}))},I=i(!1),S=i(localStorage.getItem("msEimitateLogin")||localStorage.getItem("merEimitateLogin")||!1),M=()=>{v.push({name:"otherCenter"})},E=()=>{l.setShowRechargeDialog(!0)};function A(){ut.confirm("确定注销并退出系统吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",lockScroll:!1}).then(()=>{localStorage.removeItem(`${o.getLoginType()}accessToken`),v.push(`/login/${o.getLoginType()}`),o.user.info={}})}const T=i(null),L=i(!1),$=()=>{st({}).then(e=>{L.value=1==e})};return Le(()=>{clearInterval(T.value)}),s(()=>{I.value=!0;let e={limit:1,page:1};clearInterval(T.value),$(),T.value=setInterval(()=>{$()},3e5),"other"===o.getLoginType()?tt(e).then(e=>{l.setUnreadNum(e.unread_num||0)}):o.getLoginType()}),(e,t)=>{var a;const n=rt("Bell"),i=k,s=at,v=we,I=Pt,T=Bt,P=Ot,$=il,O=Ve,B=$t,N=Lt,H=sa,R=ia,z=Tt,j=ot,D=lt("count-up");return u(),r("div",sl,["other"===d(o).getLoginType()?(u(),r("div",rl,[F(s,{value:d(l).data.unreadNum,max:99,class:"item",onClick:t[0]||(t[0]=e=>(tt({limit:10,page:1}).then(e=>{w.msgList=e.list}).catch(()=>{}),void(f.value=!0))),"show-zero":!1},{default:y(()=>[F(i,{class:p(d(l).data.unreadNum>0?"flash":""),size:20},{default:y(()=>[F(n)]),_:1},8,["class"])]),_:1},8,["value"]),g("div",null,[t[6]||(t[6]=g("div",{class:"amount"},"账户余额",-1)),q(g("span",null,null,512),[[D,(W=null==(a=d(l).data.configInfo)?void 0:a.plat_amount,`${Number(W).toFixed(2)}`||"0.00")]])]),F(v,{type:"success",round:"",size:"small",onClick:E},{default:y(()=>t[7]||(t[7]=[K("充值")])),_:1,__:[7]})])):"payee"===d(o).getLoginType()?(u(),r(se,{key:1},[ke("",!0),d(L)?(u(),b(T,{key:1,style:{"margin-right":"12px",color:"#f32008"}},{default:y(()=>t[11]||(t[11]=[K("警告:IP流量异常")])),_:1,__:[11]})):ke("",!0),F(T,{style:{color:"#fff"}},{default:y(()=>{var e,t,a,l;return[K("超级管理员:"+_(null==(l=null==(a=null==(t=null==(e=d(o))?void 0:e.user)?void 0:t.info)?void 0:a.user)?void 0:l.username),1)]}),_:1})],64)):"payer"===d(o).getLoginType()?(u(),b(T,{key:2,style:{color:"#fff"}},{default:y(()=>{var e,t,a;return[K("商户:"+_(null==(a=null==(t=null==(e=d(o))?void 0:e.user)?void 0:t.info)?void 0:a.username),1)]}),_:1})):ke("",!0),d(m)?ke("",!0):(u(),r(se,{key:3},[g("div",{class:"setting-item",onClick:t[2]||(t[2]=(...e)=>d(x)&&d(x)(...e))},[F(P,{"icon-class":d(h)?"fullscreen-exit":"fullscreen"},null,8,["icon-class"])]),F(O,{content:e.$t("sizeSelect.tooltip"),effect:"dark",placement:"bottom"},{default:y(()=>[F($,{class:"setting-item"})]),_:1},8,["content"])],64)),F(I,{class:"setting-item",trigger:"click"},{dropdown:y(()=>[F(N,null,{default:y(()=>["other"===d(o).getLoginType()?(u(),b(B,{key:0,onClick:M},{default:y(()=>t[13]||(t[13]=[K(_("个人中心"))])),_:1,__:[13]})):ke("",!0),F(B,{onClick:A},{default:y(()=>[K(_(e.$t("navbar.logout")),1)]),_:1})]),_:1})]),default:y(()=>[g("div",ul,[t[12]||(t[12]=g("img",{src:"/img/avatar.1759994645100Dcbh69co.gif",class:"rounded-full mr-[10px] w24px w24px"},null,-1)),g("span",null,_(d(S)&&"other"!=d(o).getLoginType()?"虚拟登录":"other"===d(o).getLoginType()?d(o).user.info.username:"payee"===d(o).getLoginType()?d(o).user.info.ms_name:d(o).user.info.mer_name),1)])]),_:1}),d(nt).showSettings?(u(),r("div",{key:4,class:"setting-item",onClick:t[3]||(t[3]=e=>d(c).settingsVisible=!0)},[F(P,{"icon-class":"setting"})])):ke("",!0),F(j,{title:"消息列表","destroy-on-close":!0,"close-on-click-modal":!1,modelValue:d(f),"onUpdate:modelValue":t[5]||(t[5]=e=>it(f)?f.value=e:null),width:"30%"},{default:y(()=>{var e;return[F(R,{modelValue:d(C),"onUpdate:modelValue":t[4]||(t[4]=e=>it(C)?C.value=e:null)},{default:y(()=>[(u(!0),r(se,null,re(d(w).msgList,(e,a)=>(u(),b(H,{key:a,title:"消息通知",name:a,onClick:t=>V(e)},{title:y(()=>[2==e.status?(u(),r("span",cl)):ke("",!0),t[14]||(t[14]=K(" 消息通知 "))]),default:y(()=>[g("div",null,_(e.message),1)]),_:2},1032,["name","onClick"]))),128))]),_:1},8,["modelValue"]),0==(null==(e=d(w).msgList)?void 0:e.length)?(u(),r("div",dl,[F(z,{"image-size":50})])):ke("",!0)]}),_:1},8,["modelValue"])]);var W}}}),[["__scopeId","data-v-3d80725e"]]);function vl(e,t){void 0===t&&(t={});for(var a=function(e){for(var t=[],a=0;a=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122||95===r))break;i+=e[s++]}if(!i)throw new TypeError("Missing parameter name at ".concat(a));t.push({type:"NAME",index:a,value:i}),a=s}else t.push({type:"CLOSE",index:a,value:e[a++]});else t.push({type:"OPEN",index:a,value:e[a++]});else t.push({type:"ESCAPED_CHAR",index:a++,value:e[a++]});else t.push({type:"MODIFIER",index:a,value:e[a++]})}return t.push({type:"END",index:a,value:""}),t}(e),l=t.prefixes,n=void 0===l?"./":l,o=t.delimiter,i=void 0===o?"/#?":o,s=[],r=0,u=0,c="",d=function(e){if(u-1)return!0}return!1}(a)?"[^".concat(ml(i),"]+?"):"(?:(?!".concat(ml(a),")[^").concat(ml(i),"])+?")};ue.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)),a.value=e.filter(e=>e.meta&&e.meta.title&&!1!==e.meta.breadcrumb)}function n(e){const{redirect:a,path:l}=e;a?qe.push(a).catch(e=>{}):qe.push((e=>{const{params:a}=t;return fl(e)(a)})(l)).catch(e=>{})}return L(()=>t.path,e=>{e.startsWith("/redirect/")||l()}),mt(()=>{l()}),(e,t)=>{const l=Xt,o=Ut;return u(),b(o,{class:"flex-y-center"},{default:y(()=>[F(ht,{"enter-active-class":"animate__animated animate__fadeInRight"},{default:y(()=>[(u(!0),r(se,null,re(d(a),(e,t)=>(u(),b(l,{key:e.path},{default:y(()=>["noredirect"===e.redirect||t===d(a).length-1?(u(),r("span",gl,_(d(hl)(e.meta.title)),1)):(u(),r("a",{key:1,onClick:W(t=>n(e),["prevent"])},_(d(hl)(e.meta.title)),9,bl))]),_:2},1024))),128))]),_:1})]),_:1})}}}),[["__scopeId","data-v-8dd8e48a"]]),xl=vt(l({__name:"index",props:{isActive:{required:!0,type:Boolean,default:!1}},emits:["toggleClick"],setup(e,{emit:t}){const a=t;function l(){a("toggleClick")}return(t,a)=>{const n=Ot;return u(),r("div",{class:"px-[15px] flex items-center justify-center color-[var(--el-text-color-regular)]",onClick:l},[F(n,{class:p(["hamburger",{"is-active":e.isActive}]),"icon-class":"indent-decrease"},null,8,["class"])])}}}),[["__scopeId","data-v-17cf5f5b"]]),kl={class:"flex"},_l=l({__name:"NavbarLeft",setup(e){const t=Ye();function a(){t.toggleSidebar()}return(e,l)=>{const n=xl,o=yl;return u(),r("div",kl,[F(n,{"is-active":d(t).sidebar.opened,onToggleClick:a},null,8,["is-active"]),F(o)])}}}),wl={class:"navbar-container"};const Cl=vt({},[["render",function(e,t){const a=_l,l=pl;return u(),r("div",wl,[F(a),F(l)])}],["__scopeId","data-v-9a30edb0"]]),Vl={class:"flex flex-wrap justify-around w-full h-12"},Il=vt(l({__name:"LayoutSelect",props:{modelValue:String},emits:["update:modelValue"],setup(e,{emit:t}){const a=t;function l(e){a("update:modelValue",e)}return(t,a)=>{const n=Ve;return u(),r("div",Vl,[F(n,{content:"左侧模式",placement:"bottom"},{default:y(()=>[g("div",{class:p(["layout-item left",{"is-active":e.modelValue===d(gt).LEFT}]),onClick:a[0]||(a[0]=e=>l(d(gt).LEFT))},a[3]||(a[3]=[g("div",null,null,-1),g("div",null,null,-1)]),2)]),_:1}),F(n,{content:"顶部模式",placement:"bottom"},{default:y(()=>[g("div",{class:p(["layout-item top",{"is-active":e.modelValue===d(gt).TOP}]),onClick:a[1]||(a[1]=e=>l(d(gt).TOP))},a[4]||(a[4]=[g("div",null,null,-1),g("div",null,null,-1)]),2)]),_:1}),F(n,{content:"混合模式",placement:"bottom"},{default:y(()=>[g("div",{class:p(["layout-item mix",{"is-active":e.modelValue===d(gt).MIX}]),onClick:a[2]||(a[2]=e=>l(d(gt).MIX))},a[5]||(a[5]=[g("div",null,null,-1),g("div",null,null,-1)]),2)]),_:1})])}}}),[["__scopeId","data-v-d50a3d59"]]),Sl=vt(l({__name:"ThemeColorPicker",props:{modelValue:String},emits:["update:modelValue"],setup(e,{emit:t}){const a=t,l=["#409EFF","#ff4500","#ff8c00","#90ee90","#00ced1","#1e90ff","#c71585","rgba(255, 69, 0, 0.68)","rgb(255, 120, 0)","hsva(120, 40, 94)"],n=i(e.modelValue);return L(n,e=>{a("update:modelValue",e)}),(e,t)=>{const a=_a;return u(),b(a,{modelValue:d(n),"onUpdate:modelValue":t[0]||(t[0]=e=>it(n)?n.value=e:null),predefine:l,"popper-class":"theme-picker-dropdown"},null,8,["modelValue"])}}}),[["__scopeId","data-v-ba641afc"]]),Ml={class:"flex-center"},El={class:"settings-option"},Al={class:"text-xs"},Tl={class:"settings-option"},Ll={class:"text-xs"},Pl={class:"settings-option"},$l={class:"text-xs"},Ol={class:"settings-option"},Bl={class:"text-xs"},Nl={class:"settings-option"},Hl={class:"text-xs"},Rl=vt(l({__name:"index",setup(e){const t=dt(),a=Ye(),l=Je(),n=We(),o=P({get:()=>l.settingsVisible,set(){l.settingsVisible=!1}});function s(e){l.changeThemeColor(e)}const r=i(l.theme===bt.DARK),c=e=>{r.value=e,l.changeTheme(r.value?bt.DARK:bt.LIGHT)};function p(e){l.changeLayout(e),e===gt.MIX?t.name&&function(e){const t=function(e,t){let a={};function l(e,t){if(a[e.name]=t,e.children)for(let a=0;a{const a=yt,n=_t,i=Sl,v=Il,f=Ht;return u(),b(f,{modelValue:d(o),"onUpdate:modelValue":t[7]||(t[7]=e=>it(o)?o.value=e:null),size:"300",title:e.$t("settings.project")},{default:y(()=>[F(a,null,{default:y(()=>[K(_(e.$t("settings.theme")),1)]),_:1}),g("div",Ml,[F(n,{modelValue:d(r),"onUpdate:modelValue":t[0]||(t[0]=e=>it(r)?r.value=e:null),"active-icon":d(kt),"inactive-icon":d(xt),onChange:c},null,8,["modelValue","active-icon","inactive-icon"])]),F(a,null,{default:y(()=>[K(_(e.$t("settings.interface")),1)]),_:1}),g("div",El,[g("span",Al,_(e.$t("settings.themeColor")),1),F(i,{modelValue:d(l).themeColor,"onUpdate:modelValue":[t[1]||(t[1]=e=>d(l).themeColor=e),s]},null,8,["modelValue"])]),g("div",Tl,[g("span",Ll,_(e.$t("settings.tagsView")),1),F(n,{modelValue:d(l).tagsView,"onUpdate:modelValue":t[2]||(t[2]=e=>d(l).tagsView=e)},null,8,["modelValue"])]),g("div",Pl,[g("span",$l,_(e.$t("settings.fixedHeader")),1),F(n,{modelValue:d(l).fixedHeader,"onUpdate:modelValue":t[3]||(t[3]=e=>d(l).fixedHeader=e)},null,8,["modelValue"])]),g("div",Ol,[g("span",Bl,_(e.$t("settings.sidebarLogo")),1),F(n,{modelValue:d(l).sidebarLogo,"onUpdate:modelValue":t[4]||(t[4]=e=>d(l).sidebarLogo=e)},null,8,["modelValue"])]),g("div",Nl,[g("span",Hl,_(e.$t("settings.watermark")),1),F(n,{modelValue:d(l).watermarkEnabled,"onUpdate:modelValue":t[5]||(t[5]=e=>d(l).watermarkEnabled=e)},null,8,["modelValue"])]),F(a,null,{default:y(()=>[K(_(e.$t("settings.navigation")),1)]),_:1}),F(v,{modelValue:d(l).layout,"onUpdate:modelValue":[t[6]||(t[6]=e=>d(l).layout=e),p]},null,8,["modelValue"])]),_:1},8,["modelValue","title"])}}}),[["__scopeId","data-v-ba435d62"]]),zl={class:"app-main"},jl=vt(l({__name:"index",setup(e){const t=P(()=>Ga().cachedViews);return(e,a)=>{const l=rt("router-view");return u(),r("section",zl,[F(l,null,{default:y(({Component:e,route:a})=>[F(R,{"enter-active-class":"animate__animated animate__fadeIn",mode:"out-in"},{default:y(()=>[(u(),b(wt,{include:t.value},[(u(),b(x(e),{key:a.path}))],1032,["include"]))]),_:2},1024)]),_:1})])}}}),[["__scopeId","data-v-932329df"]]),Fl={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};const Kl={name:"ep-close",render:function(e,t){return u(),r("svg",Fl,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 Dl(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Wl(e,t){for(var a,l="",n=0,o=-1,i=0,s=0;s<=e.length;++s){if(s2){var r=l.lastIndexOf("/");if(r!==l.length-1){-1===r?(l="",n=0):n=(l=l.slice(0,r)).length-1-l.lastIndexOf("/"),o=s,i=0;continue}}else if(2===l.length||1===l.length){l="",n=0,o=s,i=0;continue}t&&(l.length>0?l+="/..":l="..",n=2)}else l.length>0?l+="/"+e.slice(o+1,s):l=e.slice(o+1,s),n=s-o-1;o=s,i=0}else 46===a&&-1!==i?++i:i=-1}return l}var ql={resolve:function(){for(var e,t="",a=!1,l=arguments.length-1;l>=-1&&!a;l--){var n;l>=0?n=arguments[l]:(void 0===e&&(e=process.cwd()),n=e),Dl(n),0!==n.length&&(t=n+"/"+t,a=47===n.charCodeAt(0))}return t=Wl(t,!a),a?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(Dl(e),0===e.length)return".";var t=47===e.charCodeAt(0),a=47===e.charCodeAt(e.length-1);return 0!==(e=Wl(e,!t)).length||t||(e="."),e.length>0&&a&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return Dl(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=a:e+="/"+a)}return void 0===e?".":ql.normalize(e)},relative:function(e,t){if(Dl(e),Dl(t),e===t)return"";if((e=ql.resolve(e))===(t=ql.resolve(t)))return"";for(var a=1;as){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(a+u)?r=u:0===u&&(r=0));break}var c=e.charCodeAt(a+u);if(c!==t.charCodeAt(o+u))break;47===c&&(r=u)}var d="";for(u=a+r+1;u<=l;++u)u!==l&&47!==e.charCodeAt(u)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(o+r):(o+=r,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(Dl(e),0===e.length)return".";for(var t=e.charCodeAt(0),a=47===t,l=-1,n=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!n){l=o;break}}else n=!1;return-1===l?a?"/":".":a&&1===l?"//":e.slice(0,l)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Dl(e);var a,l=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 i=t.length-1,s=-1;for(a=e.length-1;a>=0;--a){var r=e.charCodeAt(a);if(47===r){if(!o){l=a+1;break}}else-1===s&&(o=!1,s=a+1),i>=0&&(r===t.charCodeAt(i)?-1===--i&&(n=a):(i=-1,n=s))}return l===n?n=s:-1===n&&(n=e.length),e.slice(l,n)}for(a=e.length-1;a>=0;--a)if(47===e.charCodeAt(a)){if(!o){l=a+1;break}}else-1===n&&(o=!1,n=a+1);return-1===n?"":e.slice(l,n)},extname:function(e){Dl(e);for(var t=-1,a=0,l=-1,n=!0,o=0,i=e.length-1;i>=0;--i){var s=e.charCodeAt(i);if(47!==s)-1===l&&(n=!1,l=i+1),46===s?-1===t?t=i:1!==o&&(o=1):-1!==t&&(o=-1);else if(!n){a=i+1;break}}return-1===t||-1===l||0===o||1===o&&t===l-1&&t===a+1?"":e.slice(t,l)},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 a=t.dir||t.root,l=t.base||(t.name||"")+(t.ext||"");return a?a===t.root?a+l:a+e+l:l}("/",e)},parse:function(e){Dl(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var a,l=e.charCodeAt(0),n=47===l;n?(t.root="/",a=1):a=0;for(var o=-1,i=0,s=-1,r=!0,u=e.length-1,c=0;u>=a;--u)if(47!==(l=e.charCodeAt(u)))-1===s&&(r=!1,s=u+1),46===l?-1===o?o=u:1!==c&&(c=1):-1!==o&&(c=-1);else if(!r){i=u+1;break}return-1===o||-1===s||0===c||1===c&&o===s-1&&o===i+1?-1!==s&&(t.base=t.name=0===i&&n?e.slice(1,s):e.slice(i,s)):(0===i&&n?(t.name=e.slice(1,o),t.base=e.slice(1,s)):(t.name=e.slice(i,o),t.base=e.slice(i,s)),t.ext=e.slice(o,s)),i>0?t.dir=e.slice(0,i-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ql.posix=ql;var Ul=ql;const Xl=Ct(Ul),Yl={class:"tags-container"},Gl=vt(l({__name:"index",setup(e){const{proxy:t}=h(),a=ct(),l=dt(),n=We(),o=Ga(),c=Ye(),{visitedViews:v}=Vt(o),f=Je(),m=P(()=>f.layout),x=i({path:"",fullPath:"",name:"",title:"",affix:!1,keepAlive:!1}),k=i([]),w=i(0),C=i(0);L(l,()=>{var e,t;l.meta.title&&o.addView({name:l.name,title:l.meta.title,path:l.path,fullPath:l.fullPath,affix:null==(e=l.meta)?void 0:e.affix,keepAlive:null==(t=l.meta)?void 0:t.keepAlive}),M()},{immediate:!0});const V=i(!1);function I(e,t="/"){let a=[];return e.forEach(e=>{var l,n,o,i;const s=Ul.resolve(t,e.path);if((null==(l=e.meta)?void 0:l.affix)&&a.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==(i=e.meta)?void 0:i.keepAlive}),e.children){const l=I(e.children,t+e.path);l.length>=1&&(a=[...a,...l])}}),a}function S(){const e=I(n.routes);k.value=e;for(const t of e)t.name&&o.addVisitedView(t)}function M(){be(()=>{var e,t;for(const a of v.value)a.path===l.path&&a.fullPath!==l.fullPath&&o.updateVisitedView({name:l.name,title:l.meta.title||"",path:l.path,fullPath:l.fullPath,affix:null==(e=l.meta)?void 0:e.affix,keepAlive:null==(t=l.meta)?void 0:t.keepAlive})})}function E(e){return e.path===l.path}function A(e){return null==e?void 0:e.affix}function T(){try{return"/dashboard"===x.value.path||x.value.fullPath===o.visitedViews[1].fullPath}catch(e){return!1}}function $(){try{return x.value.fullPath===o.visitedViews[o.visitedViews.length-1].fullPath}catch(e){return!1}}function O(e,t){const l=e.slice(-1)[0];l&&l.fullPath?a.push(l.fullPath):"Dashboard"===(null==t?void 0:t.name)?a.replace({path:"/redirect"+t.fullPath}):a.push("/")}function B(e){v.value.length>1&&o.delView(e).then(t=>{E(e)&&O(t.visitedViews,e)})}function N(){o.delLeftViews(x.value).then(e=>{e.visitedViews.find(e=>e.path===l.path)||O(e.visitedViews)})}function H(){o.delRightViews(x.value).then(e=>{e.visitedViews.find(e=>e.path===l.path)||O(e.visitedViews)})}function R(){a.push(x.value),o.delOtherViews(x.value).then(()=>{M()})}function z(){V.value=!1}function j(){z()}L(V,e=>{e?document.body.addEventListener("click",z):document.body.removeEventListener("click",z)});return L(()=>l.name,e=>{e&&(e=>{if("mix"!==m.value)return;const t=function(e,t){let a={};function l(e,t){if(a[e.name]=t,e.children)for(let a=0;a{S()}),(e,l)=>{const n=Kl,i=rt("router-link"),s=It,c=Ot;return u(),r("div",Yl,[F(s,{class:"scroll-container",vertical:!1,onWheel:W(j,["prevent"])},{default:y(()=>[(u(!0),r(se,null,re(d(v),e=>(u(),b(i,{ref_for:!0,ref:"tagRef",key:e.fullPath,class:p(["tags-item",{active:E(e)}]),to:{path:e.path,query:e.query},onMouseup:W(t=>A(e)?"":B(e),["middle"]),onContextmenu:W(a=>function(e,a){const l=null==t?void 0:t.$el.getBoundingClientRect().left,n=(null==t?void 0:t.$el.offsetWidth)-105,o=a.clientX-l+15;w.value=o>n?n:o,"mix"===m.value?C.value=a.clientY-50:C.value=a.clientY,V.value=!0,x.value=e}(e,a),["prevent"])},{default:y(()=>[K(_(d(hl)(e.title))+" ",1),A(e)?ke("",!0):(u(),b(n,{key:0,class:"close-icon",size:"12px",onClick:W(t=>B(e),["prevent","stop"])},null,8,["onClick"]))]),_:2},1032,["class","to","onMouseup","onContextmenu"]))),128))]),_:1}),q(g("ul",{class:"contextmenu",style:Q({left:d(w)+"px",top:d(C)+"px"})},[g("li",{onClick:l[0]||(l[0]=e=>function(e){o.delCachedView(e);const{fullPath:t}=e;be(()=>{a.replace({path:"/redirect"+t})})}(d(x)))},[F(c,{"icon-class":"refresh"}),l[3]||(l[3]=K(" 刷新 "))]),A(d(x))?ke("",!0):(u(),r("li",{key:0,onClick:l[1]||(l[1]=e=>B(d(x)))},[F(c,{"icon-class":"close"}),l[4]||(l[4]=K(" 关闭 "))])),g("li",{onClick:R},[F(c,{"icon-class":"close_other"}),l[5]||(l[5]=K(" 关闭其它 "))]),T()?ke("",!0):(u(),r("li",{key:1,onClick:N},[F(c,{"icon-class":"close_left"}),l[6]||(l[6]=K(" 关闭左侧 "))])),$()?ke("",!0):(u(),r("li",{key:2,onClick:H},[F(c,{"icon-class":"close_right"}),l[7]||(l[7]=K(" 关闭右侧 "))])),g("li",{onClick:l[2]||(l[2]=e=>{return t=d(x),void o.delAllViews().then(e=>{O(e.visitedViews,t)});var t})},[F(c,{"icon-class":"close_all"}),l[8]||(l[8]=K(" 关闭所有 "))])],4),[[U,d(V)]])])}}}),[["__scopeId","data-v-05b66405"]]),Zl=l({name:"AppLink",inheritAttrs:!1,__name:"index",props:{to:{type:String,required:!0}},setup(e){const t=e,a=P(()=>St(t.to)),l=P(()=>a.value?"a":"router-link");return(t,n)=>{return u(),b(x(d(l)),Mt(Et((o=e.to,a.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}}}),Jl=["title"],Ql=vt(l({__name:"SidebarMenuItemTitle",props:{icon:{type:String,default:""},title:{type:String,default:""}},setup:e=>(t,a)=>{const l=k,n=Ot;return u(),r(se,null,[e.icon&&e.icon.startsWith("el-icon")?(u(),b(l,{key:0,class:"sub-el-icon"},{default:y(()=>[(u(),b(x(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(),r("span",{key:3,title:d(hl)(e.title),class:"ml-1 important-line-clamp-1 important-break-all"},_(d(hl)(e.title)),9,Jl)):ke("",!0)],64)}}),[["__scopeId","data-v-11c6191d"]]),en={key:0},tn=l({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,a=i();function l(e=[],t){return 0===e.filter(e=>{var t;return!(null==(t=e.meta)?void 0:t.hidden)&&(e.meta.hidden=!1,a.value=e,!0)}).length&&(a.value={...t,path:"",noShowingChildren:!0},!0)}function n(e){if(St(e))return e;if(St(t.basePath))return t.basePath;return Xl.resolve(t.basePath,e)}return(t,o)=>{var i;const s=Ql,c=Xa,v=Zl,f=rt("SidebarMenuItem",!0),m=Ya;return e.item.meta&&e.item.meta.hidden?ke("",!0):(u(),r("div",en,[!l(e.item.children,e.item)||d(a).children&&!d(a).noShowingChildren||(null==(i=e.item.meta)?void 0:i.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"])):ke("",!0)]),default:y(()=>[(u(!0),r(se,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(),r(se,{key:0},[d(a).meta?(u(),b(v,{key:0,to:n(d(a).path),class:"important-line-clamp-1"},{default:y(()=>[F(c,{index:n(d(a).path),class:p({"submenu-title-noDropdown":!e.isNest})},{default:y(()=>[F(s,{icon:d(a).meta.icon||e.item.meta&&e.item.meta.icon,title:d(a).meta.title},null,8,["icon","title"])]),_:1},8,["index","class"])]),_:1},8,["to"])):ke("",!0)],64))]))}}}),an={"sidebar-width":"180px","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_1nrti_13"},ln=vt(l({__name:"SidebarMenu",props:{menuList:{required:!0,default:()=>[],type:Array},basePath:{type:String,required:!0}},setup(e){const t=Je(),a=Ye();ol();const l=dt(),n=P(()=>t.layout),o=e;function i(e){if(St(e))return e;if(St(o.basePath))return o.basePath;return Xl.resolve(o.basePath,e)}function s(e){}return(t,o)=>{const c=tn,p=Ua;return u(),b(p,{"default-active":d(l).path,collapse:!d(a).sidebar.opened,"background-color":d(an)["menu-background"],"text-color":d(an)["menu-text"],"active-text-color":d(an)["menu-active-text"],"unique-opened":!1,"collapse-transition":!1,mode:"top"===d(n)?"horizontal":"vertical",onOpen:s},{default:y(()=>[(u(!0),r(se,null,re(e.menuList,e=>(u(),b(c,{key:e.path,item:e,"base-path":i(e.path),"is-collapse":!d(a).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-40be6ee0"]]),nn={key:1},on={key:0,class:"ml-1"},sn=l({__name:"SidebarMixTopMenu",setup(e){const t=Ye(),a=We(),l=ct(),n=P(()=>t.activeTopMenuPath),o=i([]),c=e=>{t.activeTopMenu(e),a.setMixLeftMenus(e);const l=a.mixLeftMenus;p(l)},p=e=>{if(0===e.length)return;const[t]=e;t.children&&t.children.length>0?p(t.children):t.name&&l.push({name:t.name})};return s(()=>{o.value=a.routes.filter(e=>!e.meta||!e.meta.hidden)}),(e,t)=>{const a=Ot,l=Xa,i=Ua,s=It;return u(),b(s,null,{default:y(()=>[F(i,{mode:"horizontal","default-active":d(n),"background-color":d(an)["menu-background"],"text-color":d(an)["menu-text"],"active-text-color":d(an)["menu-active-text"],onSelect:c},{default:y(()=>[(u(!0),r(se,null,re(d(o),e=>(u(),b(l,{key:e.path,index:e.path},{title:y(()=>[e.meta&&e.meta.icon?(u(),b(a,{key:0,"icon-class":e.meta.icon},null,8,["icon-class"])):ke("",!0),"/"===e.path?(u(),r("span",nn," 首页 ")):(u(),r(se,{key:2},[e.meta&&e.meta.title?(u(),r("span",on,_(d(hl)(e.meta.title)),1)):ke("",!0)],64))]),_:2},1032,["index"]))),128))]),_:1},8,["default-active","background-color","text-color","active-text-color"])]),_:1})}}}),rn={class:"logo-container"},un=["src"],cn=["src"],dn={class:"logo-title"},pn=vt(l({__name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},setup(e){const t=Je(),a=i(new URL("/img/logo.1759994645100w1nDwr-H.png",import.meta.url).href);return(l,n)=>{const o=rt("router-link");return u(),r("div",rn,[F(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(),r("img",{key:0,src:d(a),class:"logo-image"},null,8,un)):ke("",!0)]),_:1})):(u(),b(o,{key:1,class:"wh-full flex justify-center items-center",to:"/"},{default:y(()=>[d(t).sidebarLogo?(u(),r("img",{key:0,"ml--20px":"",src:d(a),class:"logo-image"},null,8,cn)):ke("",!0),g("span",dn,_(d(t).getSystemName),1)]),_:1}))]),_:1})])}}}),[["__scopeId","data-v-b9238b34"]]),vn={key:0,class:"flex w-full"},fn=vt(l({__name:"index",setup(e){const t=Ye(),a=Je(),l=We(),n=P(()=>a.sidebarLogo),o=P(()=>a.layout);return(e,a)=>{const i=pn,s=sn,c=pl,v=ln,f=It;return u(),r("div",{class:p({"has-logo":d(n)})},[d(o)==d(gt).MIX?(u(),r("div",vn,[d(n)?(u(),b(i,{key:0,collapse:!d(t).sidebar.opened},null,8,["collapse"])):ke("",!0),F(s,{class:"flex-1"}),F(c)])):(u(),r(se,{key:1},[d(n)?(u(),b(i,{key:0,collapse:!d(t).sidebar.opened},null,8,["collapse"])):ke("",!0),F(f,null,{default:y(()=>[F(v,{"menu-list":d(l).routes,"base-path":""},null,8,["menu-list"])]),_:1}),d(o)===d(gt).TOP?(u(),b(c,{key:1})):ke("",!0)],64))],2)}}}),[["__scopeId","data-v-4f65ed38"]]),mn={key:1,class:"mix-container"},hn={class:"mix-container__left"},gn={class:"sidebar-toggle"},bn=vt(l({__name:"index",setup(e){const t=Ye(),a=Je(),l=We(),n=At().width,o=P(()=>t.device===Qe.MOBILE),i=P(()=>t.sidebar.opened),s=P(()=>a.fixedHeader),c=P(()=>a.tagsView),v=P(()=>a.layout),f=P(()=>t.activeTopMenuPath),m=P(()=>l.mixLeftMenus);L(()=>f.value,e=>{l.setMixLeftMenus(e)},{deep:!0,immediate:!0});const h=P(()=>({hideSidebar:!t.sidebar.opened,openSidebar:t.sidebar.opened,mobile:t.device===Qe.MOBILE,[`layout-${a.layout}`]:!0}));function y(){t.closeSideBar()}function x(){t.toggleSidebar()}ue(()=>{t.toggleDevice(n.value<992?Qe.MOBILE:Qe.DESKTOP),n.value>=992?t.openSideBar():t.closeSideBar()});const k=dt();return L(k,()=>{o.value&&i.value&&t.closeSideBar()}),(e,a)=>{const l=fn,n=ln,k=xl,_=Gl,w=jl,C=Rl,V=Cl;return u(),r("div",{class:p(["wh-full",d(h)])},[d(o)&&d(i)?(u(),r("div",{key:0,class:"wh-full fixed-lt z-999 bg-black bg-opacity-30",onClick:y})):ke("",!0),F(l,{class:"sidebar-container"}),d(v)===d(gt).MIX?(u(),r("div",mn,[g("div",hn,[F(n,{"menu-list":d(m),"base-path":d(f)},null,8,["menu-list","base-path"]),g("div",gn,[F(k,{"is-active":d(t).sidebar.opened,onToggleClick:x},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(_,{key:0})):ke("",!0)],2),F(w),d(nt).showSettings?(u(),b(C,{key:0})):ke("",!0)],2)])):(u(),r("div",{key:2,class:p([{hasTagsView:d(c)},"main-container"])},[g("div",{class:p({"fixed-header":d(s)})},["left"===d(v)?(u(),b(V,{key:0})):ke("",!0),d(c)?(u(),b(_,{key:1})):ke("",!0)],2),F(w),d(nt).showSettings?(u(),b(C,{key:0})):ke("",!0)],2))],2)}}}),[["__scopeId","data-v-4691357d"]]);export{bn as default};