2 lines
72 KiB
JavaScript
2 lines
72 KiB
JavaScript
import{b as e,i as t,_ as a,d as l,u as n,a as o,r as s,o as i,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 S,z as I,C as M,U as E,A,B as T,D as L,F as P,G as O,H as $,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 J,Z as Q,$ as Z,a0 as ee,a1 as te,a2 as ae,a3 as le,a4 as ne,a5 as oe,a6 as se,a7 as ie,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 Se,ar as Ie,as as Me,at as Ee,au as Ae,av as Te,aw as Le,ax as Pe,ay as Oe,az as $e,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 Je,aQ as Qe,aR as Ze,aS as et,aT as tt,aU as at,aV as lt,aW as nt,aX as ot,aY as st,aZ as it,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 St,bh as It,bi as Mt,bj as Et}from"./index.A3RPr1Hf.js";import{E as At}from"./el-empty.CXlB373k.js";import{E as Tt,a as Lt,b as Pt}from"./el-dropdown.BedsEXRB.js";/* empty css */import{_ as Ot}from"./index.CiwYRgRZ.js";import{E as $t}from"./el-text.QeOeLtCL.js";import{b as Bt}from"./browser.CrXYGwN5.js";import{E as Nt}from"./el-drawer.CAAmbgAY.js";import{s as Ht}from"./order.CzkodH6m.js";import"./dropdown.BPtSt4RW.js";const Rt=Symbol("breadcrumbKey"),zt=e({separator:{type:String,default:"/"},separatorIcon:{type:t}}),jt=l({name:"ElBreadcrumb"});var Ft=a(l({...jt,props:zt,setup(e){const t=e,{t:a}=n(),l=o("breadcrumb"),f=s();return v(Rt,t),i(()=>{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 Kt=e({to:{type:f([String,Object]),default:""},replace:Boolean}),Dt=l({name:"ElBreadcrumbItem"});var Wt=a(l({...Dt,props:Kt,setup(e){const t=e,a=h(),l=m(Rt,void 0),n=o("breadcrumb"),i=a.appContext.config.globalProperties.$router,v=s(),f=()=>{t.to&&i&&(t.replace?i.replace(t.to):i.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 qt=C(Ft,{BreadcrumbItem:Wt}),Ut=w(Wt),Xt=e=>V(e)||S(e)||I(e),Yt=e({accordion:Boolean,modelValue:{type:f([Array,String,Number]),default:()=>A([])},expandIconPosition:{type:f([String]),default:"right"},beforeCollapse:{type:f(Function)}}),Gt={[E]:Xt,[M]:Xt},Jt=Symbol("collapseContextKey"),Qt=l({name:"ElCollapse"});var Zt=a(l({...Qt,props:Yt,emits:Gt,setup(e,{expose:t,emit:a}){const l=e,{activeNames:n,setActiveNames:i}=((e,t)=>{const a=s(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);[O(l),$(l)].includes(!0)||B("ElCollapse","beforeCollapse must return type `Promise<boolean>` or `boolean`"),O(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:i}),(e,t)=>(u(),r("div",{class:p(d(f))},[c(e.$slots,"default")],2))}}),[["__file","collapse.vue"]]);const ea=l({name:"ElCollapseTransition"});const ta=C(a(l({...ea,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"]])),aa=e({title:{type:String,default:""},name:{type:f([String,Number]),default:void 0},icon:{type:t,default:z},disabled:Boolean}),la=l({name:"ElCollapseItem"});var na=a(l({...la,props:aa,setup(e,{expose:t}){const a=e,{focusing:l,id:n,isActive:i,handleFocus:v,handleHeaderClick:f,handleEnterClick:h}=(e=>{const t=m(Jt),{namespace:a}=o("collapse"),l=s(!1),n=s(!1),i=j(),r=P(()=>i.current++),u=P(()=>{var t;return null!=(t=e.name)?t:`${a.value}-id-${i.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:S,itemWrapperKls:I,itemContentKls:M,scopedContentId:E,scopedHeadId:A}=((e,{focusing:t,isActive:a,id:l})=>{const n=o("collapse"),s=P(()=>[n.b("item"),n.is("active",d(a)),n.is("disabled",e.disabled)]),i=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:i,rootKls:s,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:i,id:n});return t({isActive:i}),(e,t)=>(u(),r("div",{class:p(d(V))},[g("div",{id:d(A),class:p(d(C)),"aria-expanded":d(i),"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(S))},[c(e.$slots,"title",{isActive:d(i)},()=>[K(_(e.title),1)])],2),c(e.$slots,"icon",{isActive:d(i)},()=>[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(ta),null,{default:y(()=>[q(g("div",{id:d(E),role:"region",class:p(d(I)),"aria-hidden":!d(i),"aria-labelledby":d(A)},[g("div",{class:p(d(M))},[c(e.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[U,d(i)]])]),_:3})],2))}}),[["__file","collapse-item.vue"]]);const oa=C(Zt,{CollapseItem:na}),sa=w(na),ia=e({color:{type:f(Object),required:!0},vertical:Boolean});let ra=!1;function ua(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,ra=!1,null==(n=t.end)||n.call(t,e)},n=function(e){var n;ra||(e.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",a),document.addEventListener("mouseup",l),document.addEventListener("touchmove",a),document.addEventListener("touchend",l),ra=!0,null==(n=t.start)||n.call(t,e))};e.addEventListener("mousedown",n),e.addEventListener("touchstart",n,{passive:!1})}const ca=(e,{bar:t,thumb:a,handleDrag:l})=>{const n=h(),r=o("color-alpha-slider"),u=s(0),c=s(0),d=s();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""}()}i(()=>{if(!t.value||!a.value)return;const e={drag:e=>{l(e)},end:e=>{l(e)}};ua(t.value,e),ua(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}},da=l({name:"ElColorAlphaSlider"});var pa=a(l({...da,props:ia,setup(e,{expose:t}){const a=e,{alpha:l,alphaLabel:o,bar:s,thumb:i,handleDrag:c,handleClick:v,handleKeydown:f}=(e=>{const t=h(),{t:a}=n(),l=Y(),o=Y(),s=P(()=>e.color.get("alpha")),i=P(()=>a("el.colorpicker.alphaLabel"));function r(a){if(!o.value||!l.value)return;const n=t.vnode.el.getBoundingClientRect(),{clientX:s,clientY:i}=Q(a);if(e.vertical){let t=i-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=s-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=s.value+t;a=a<0?0:a>100?100:a,e.color.set("alpha",a)}return{thumb:l,bar:o,alpha:s,alphaLabel:i,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 J.left:case J.down:e.preventDefault(),e.stopPropagation(),u(-l);break;case J.right:case J.up:e.preventDefault(),e.stopPropagation(),u(l)}}}})(a),{rootKls:m,barKls:b,barStyle:y,thumbKls:x,thumbStyle:k,update:_}=ca(a,{bar:s,thumb:i,handleDrag:c});return t({update:_,bar:s,thumb:i}),(e,t)=>(u(),r("div",{class:p(d(m))},[g("div",{ref_key:"bar",ref:s,class:p(d(b)),style:Z(d(y)),onClick:d(v)},null,14,["onClick"]),g("div",{ref_key:"thumb",ref:i,class:p(d(x)),style:Z(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 va=a(l({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=o("color-hue-slider"),a=h(),l=s(),n=s(),r=s(0),u=s(0),c=P(()=>e.color.get("hue"));function d(t){if(!n.value||!l.value)return;const o=a.vnode.el.getBoundingClientRect(),{clientX:s,clientY:i}=Q(t);let r;if(e.vertical){let e=i-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=s-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()}),i(()=>{if(!n.value||!l.value)return;const e={drag:e=>{d(e)},end:e=>{d(e)}};ua(n.value,e),ua(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:Z({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}],["__file","hue-slider.vue"]]);const fa=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"])}),ma={[E]:e=>S(e)||ee(e),[M]:e=>S(e)||ee(e),activeChange:e=>S(e)||ee(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},ha=Symbol("colorPickerContextKey");class ga{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)se(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)se(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 s=n||(o?"rgb":"hex");"hex"===n&&o&&(s="hex8"),this._tiny=new oe({h:e,s:t/100,v:a/100,a:l/100}),this.value=this._isValid?this._tiny.toString(s):""}}var ba=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(ha),l=s(n(e.colors,e.color));function n(e,t){return e.map(e=>{const a=new ga({value:e});return a.selected=a.compare(t),a})}return L(()=>a.value,e=>{const t=new ga({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(ie,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:Z({backgroundColor:t.value})},null,4)],10,["onClick"]))),128))],2)],2)}],["__file","predefine.vue"]]);var ya=a(l({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=o("color-svpanel"),a=h(),l=s(0),n=s(0),r=s("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"),s=a.vnode.el,{clientWidth:i,clientHeight:u}=s;n.value=t*i/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:s,clientY:i}=Q(t);let r=s-o.left,u=i-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()}),i(()=>{ua(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:Z({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:Z({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},[g("div")],6)],6)}],["__file","sv-panel.vue"]]);const xa=l({name:"ElColorPicker"});const ka=C(a(l({...xa,props:fa,emits:ma,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:S}=fe(l,{formItemContext:m}),I=s(),A=s(),T=s(),O=s(),$=s(),B=s(),{isFocused:H,handleFocus:R,handleBlur:z}=me($,{disabled:x,beforeBlur(e){var t;return null==(t=O.value)?void 0:t.isFocusInsideContent(e)},afterBlur(){ne(!1),re()}});let j=!0;const W=he(new ga({enableAlpha:l.showAlpha,format:l.colorFormat||"",value:l.modelValue})),X=s(!1),Y=s(!1),G=s(""),Q=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(()=>S.value?void 0:l.ariaLabel||c("el.colorpicker.defaultLabel")),ae=P(()=>S.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 se(){x.value||ne(!0)}function ie(){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 Ie(){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=>Se())),oe(!1),be(()=>{const e=new ga({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=>Se())),re()}function Ae(){X.value&&(ie(),H.value&&Pe())}function Te(e){e.preventDefault(),e.stopPropagation(),ne(!1),re()}function Le(e){switch(e.code){case J.enter:case J.numpadEnter:case J.space:e.preventDefault(),e.stopPropagation(),se(),B.value.focus();break;case J.esc:Te(e)}}function Pe(){$.value.focus()}return i(()=>{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=I.value)||e.update(),null==(t=A.value)||t.update(),null==(a=T.value)||a.update()})}),v(ha,{currentColor:ee}),t({color:W,show:se,hide:ie,focus:Pe,blur:function(){$.value.blur()}}),(e,t)=>(u(),b(d(Ve),{ref_key:"popper",ref:O,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(va,{ref_key:"hue",ref:I,class:"hue-slider",color:d(W),vertical:""},null,8,["color"]),F(ya,{ref_key:"sv",ref:A,color:d(W)},null,8,["color"])],2),e.showAlpha?(u(),b(pa,{key:0,ref_key:"alpha",ref:T,color:d(W)},null,8,["color"])):ke("v-if",!0),e.predefine?(u(),b(ba,{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:Ie},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,$.value]])]),default:y(()=>[g("div",N({id:d(V),ref_key:"triggerRef",ref:$},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:Z({backgroundColor:d(Q)})},[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 _a=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 J.down:this.gotoSubIndex(this.subIndex+1),a=!0;break;case J.up:this.gotoSubIndex(this.subIndex-1),a=!0;break;case J.tab:Ie(e,"mouseleave");break;case J.enter:case J.numpadEnter:case J.space:a=!0,t.currentTarget.click()}return a&&(t.preventDefault(),t.stopPropagation()),!1})})}},wa=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 _a(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",e=>{let t=!1;switch(e.code){case J.down:Ie(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),t=!0;break;case J.up:Ie(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),t=!0;break;case J.tab:Ie(e.currentTarget,"mouseleave");break;case J.enter:case J.numpadEnter:case J.space:t=!0,e.currentTarget.click()}t&&e.preventDefault()})}},Ca=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 wa(t,e)})}};const Va=l({name:"ElMenuCollapseTransition"});var Sa=a(l({...Va,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 Ia(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 Ma(e){return P(()=>{const t=e.backgroundColor;return t?new oe(t).shade(20).toString():""})}const Ea=(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":Ma(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},Aa="rootMenu",Ta="subMenu:",La=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}}),Pa="ElSubMenu";var Oa=l({name:Pa,props:La,setup(e,{slots:t,expose:a}){const l=h(),{indexPath:n,parentMenu:r}=Ia(l,P(()=>e.index)),u=o("menu"),c=o("sub-menu"),d=m(Aa);d||B(Pa,"can not inject root menu");const p=m(`${Ta}${r.value.uid}`);p||B(Pa,"can not inject sub menu");const f=s({}),g=s({});let b;const y=s(!1),x=s(),_=s(),w=P(()=>"horizontal"===O.value&&V.value?"bottom-start":"right-start"),C=P(()=>"horizontal"===O.value&&V.value||"vertical"===O.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),I=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"===O.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)),O=P(()=>d.props.mode),$=P(()=>d.props.persistent),N=he({index:e.index,indexPath:n,active:T}),H=Ea(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}=Oe(()=>{d.openMenu(e.index,n.value)},a)),I.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}=Oe(()=>!y.value&&d.closeMenu(e.index,n.value),K.value)),I.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(`${Ta}${l.uid}`,{addSubMenu:e,removeSubMenu:t,handleMouseleave:Y,mouseInChild:y,level:p.level+1})}return a({opened:A}),i(()=>{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:()=>S(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:$.value,popperClass:j.value,placement:w.value,teleported:I.value,fallbackPlacements:E.value,transition:M.value,gpuAcceleration:!1},{content:()=>{var e;return Pe("div",{class:[u.m(O.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(ie,{},[Pe("div",{class:c.e("title"),ref:x,onClick:W},n),Pe(ta,{},{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 $a=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}}),Ba=e=>I(e)&&e.every(e=>S(e));var Na=l({name:"ElMenu",props:$a,emits:{close:(e,t)=>S(e)&&Ba(t),open:(e,t)=>S(e)&&Ba(t),select:(e,t,a,l)=>S(e)&&Ba(t)&&$e(a)&&(Te(l)||l instanceof Promise)},setup(e,{emit:t,slots:a,expose:l}){const n=h(),r=n.appContext.config.globalProperties.$router,u=s(),c=o("menu"),d=o("sub-menu"),p=s(-1),f=s(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),m=s(e.defaultActive),g=s({}),b=s({}),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})},S=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},I=()=>{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),s=u.value.clientWidth-n-o;let i=0,r=0;return a.forEach((e,t)=>{"#comment"!==e.nodeName&&(i+=(e=>{const t=getComputedStyle(e),a=Number.parseInt(t.marginLeft,10),l=Number.parseInt(t.marginRight,10);return e.offsetWidth+a+l||0})(e),i<=s-64&&(r=t+1))}),r===a.length?-1:r};let M=!0;const E=()=>{if(p.value===I())return;const e=()=>{p.value=-1,be(()=>{p.value=I()})};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=""),S(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=s(!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(Aa,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(`${Ta}${n.uid}`,{addSubMenu:t,removeSubMenu:a,mouseInChild:T,level:0})}i(()=>{"horizontal"===e.mode&&new Ca(n.vnode.el,c.namespace.value)});l({open:e=>{const{indexPath:t}=b.value[e];t.forEach(e=>x(e,t))},close:_,updateActiveIndex:S,handleResize:E});const O=Ea(e,0);return()=>{var l,n;let o=null!=(n=null==(l=a.default)?void 0:l.call(a))?n:[];const s=[];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,s.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 i=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:O.value,class:{[c.b()]:!0,[c.m(e.mode)]:!0,[c.m("collapse")]:e.collapse}},[...o,...s]),i);return e.collapseTransition&&"vertical"===e.mode?Pe(Sa,()=>r):r}}});const Ha=e({index:{type:f([String,null]),default:null},route:{type:f([String,Object])},disabled:Boolean}),Ra={click:e=>S(e.index)&&I(e.indexPath)},za="ElMenuItem",ja=l({name:za});var Fa=a(l({...ja,props:Ha,emits:Ra,setup(e,{expose:t,emit:a}){const l=e;Re(l.index)&&Se();const n=h(),s=m(Aa),v=o("menu"),f=o("menu-item");s||B(za,"can not inject root menu");const{parentMenu:x,indexPath:k}=Ia(n,ze(l,"index")),_=m(`${Ta}${x.value.uid}`);_||B(za,"can not inject sub menu");const w=P(()=>l.index===s.activeIndex),C=he({index:l.index,indexPath:k,active:w}),V=()=>{l.disabled||(s.handleMenuItemClick({index:l.index,indexPath:k.value,route:l.route}),a("click",C))};return i(()=>{_.addSubMenu(C),s.addMenuItem(C)}),Le(()=>{_.removeSubMenu(C),s.removeMenuItem(C)}),t({parentMenu:x,rootMenu:s,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(s).props.collapse&&e.$slots.title?(u(),b(d(Ve),{key:0,effect:d(s).props.popperEffect,placement:"right","fallback-placements":["left"],persistent:d(s).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(ie,{key:1},[c(e.$slots,"default"),c(e.$slots,"title")],64))],2))}}),[["__file","menu-item.vue"]]);const Ka={title:String},Da=l({name:"ElMenuItemGroup"});var Wa=a(l({...Da,props:Ka,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(ie,{key:0},[K(_(e.title),1)],64))],2),g("ul",null,[c(e.$slots,"default")])],2))}}),[["__file","menu-item-group.vue"]]);const qa=C(Na,{MenuItem:Fa,MenuItemGroup:Wa,SubMenu:Oa}),Ua=w(Fa);w(Wa);const Xa=w(Oa),Ya=je("tagsView",()=>{const e=s([]),t=s([]);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 i(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:i,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=>{i(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])})}}}),Ga="/platformApi/pay_product/all";function Ja(){return Fe({url:Ga,method:"get"})}const Qa="/skfApi/payProduct/payProductList";function Za(){return Fe({url:Qa,method:"get"})}const el="/payerApi/merchanPayProductList";function tl(e){return Fe({url:el,method:"get",params:e})}const al="/platformApi/status";function ll(e){return Fe({url:al,method:"get",params:e})}const nl=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=Za:"payer"===n&&(e=tl)),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=ll:"payee"===e||"payer"===e&&(a=Ht),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}}}),ol=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,s=Pt,i=Tt,c=Lt;return u(),b(c,{trigger:"click",onCommand:n},{dropdown:y(()=>[F(i,null,{default:y(()=>[(u(!0),r(ie,null,re(d(a),e=>(u(),b(s,{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"},il={key:0,"r-10":"","pl-5":"","pr-5":"",class:"setting-item info"},rl={class:"flex justify-center items-center h100% p10px"},ul={key:0,class:"reds"},cl={key:0},dl=pt(l({__name:"NavbarRight",setup(e){var t;const a=s("");i(()=>{(async()=>{try{const e=location.host+"/app/payee.apk",t=await Bt.toDataURL(e,{width:256,margin:2,color:{dark:"#000000",light:"#FFFFFF"}});a.value=t}catch(e){a.value="/imgs/payee-qrcode.png"}})()});const l=Je(),n=Ye();Ya();const o=Ke(),c=Qe();ct();const v=ut(),f=s(!1),m=P(()=>n.device===Ze.MOBILE),{isFullscreen:h,toggle:x}=et(),w=he({handle_order_status:null==(t=l.data.configInfo)?void 0:t.handle_order_status,msgList:[]}),C=s([]),V=e=>{2==e.status&&("other"===o.getLoginType()?dt({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}))},S=s(!1),I=s(localStorage.getItem("msEimitateLogin")||localStorage.getItem("merEimitateLogin")||!1),M=()=>{v.push({name:"otherCenter"})},E=()=>{l.setShowRechargeDialog(!0)};function A(){rt.confirm("确定注销并退出系统吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",lockScroll:!1}).then(()=>{localStorage.removeItem(`${o.getLoginType()}accessToken`),v.push(`/login/${o.getLoginType()}`),o.user.info={}})}return i(()=>{S.value=!0;let e={limit:1,page:1};"other"===o.getLoginType()?tt(e).then(e=>{l.setUnreadNum(e.unread_num||0)}):o.getLoginType()}),(e,t)=>{var a;const n=it("Bell"),s=k,i=at,v=we,S=Lt,T=$t,L=Ot,P=ol,O=Ve,$=Pt,B=Tt,N=sa,H=oa,R=At,z=ot,j=lt("count-up");return u(),r("div",sl,["other"===d(o).getLoginType()?(u(),r("div",il,[F(i,{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(s,{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),[[j,(D=null==(a=d(l).data.configInfo)?void 0:a.plat_amount,`${Number(D).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(ie,{key:1},[ke("",!0),F(T,{style:{color:"#fff"}},{default:y(()=>[K("超级管理员:"+_(d(o).user.info.user.username),1)]),_:1})],64)):"payer"===d(o).getLoginType()?(u(),b(T,{key:2,style:{color:"#fff"}},{default:y(()=>[K("商户:"+_(d(o).user.info.username),1)]),_:1})):ke("",!0),d(m)?ke("",!0):(u(),r(ie,{key:3},[g("div",{class:"setting-item",onClick:t[2]||(t[2]=(...e)=>d(x)&&d(x)(...e))},[F(L,{"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(P,{class:"setting-item"})]),_:1},8,["content"])],64)),F(S,{class:"setting-item",trigger:"click"},{dropdown:y(()=>[F(B,null,{default:y(()=>["other"===d(o).getLoginType()?(u(),b($,{key:0,onClick:M},{default:y(()=>t[12]||(t[12]=[K(_("个人中心"))])),_:1,__:[12]})):ke("",!0),F($,{onClick:A},{default:y(()=>[K(_(e.$t("navbar.logout")),1)]),_:1})]),_:1})]),default:y(()=>[g("div",rl,[t[11]||(t[11]=g("img",{src:"/img/avatar.Dcbh69co.gif",class:"rounded-full mr-[10px] w24px w24px"},null,-1)),g("span",null,_(d(I)&&"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(L,{"icon-class":"setting"})])):ke("",!0),F(z,{title:"消息列表","destroy-on-close":!0,"close-on-click-modal":!1,modelValue:d(f),"onUpdate:modelValue":t[5]||(t[5]=e=>st(f)?f.value=e:null),width:"30%"},{default:y(()=>{var e;return[F(H,{modelValue:d(C),"onUpdate:modelValue":t[4]||(t[4]=e=>st(C)?C.value=e:null)},{default:y(()=>[(u(!0),r(ie,null,re(d(w).msgList,(e,a)=>(u(),b(N,{key:a,title:"消息通知",name:a,onClick:t=>V(e)},{title:y(()=>[2==e.status?(u(),r("span",ul)):ke("",!0),t[13]||(t[13]=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",cl,[F(R,{"image-size":50})])):ke("",!0)]}),_:1},8,["modelValue"])]);var D}}}),[["__scopeId","data-v-beafe4c8"]]);function pl(e,t){void 0===t&&(t={});for(var a=function(e){for(var t=[],a=0;a<e.length;){var l=e[a];if("*"!==l&&"+"!==l&&"?"!==l)if("\\"!==l)if("{"!==l)if("}"!==l)if(":"!==l)if("("!==l)t.push({type:"CHAR",index:a,value:e[a++]});else{var n=1,o="";if("?"===e[i=a+1])throw new TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<e.length;)if("\\"!==e[i]){if(")"===e[i]){if(0===--n){i++;break}}else if("("===e[i]&&(n++,"?"!==e[i+1]))throw new TypeError("Capturing groups are not allowed at ".concat(i));o+=e[i++]}else o+=e[i++]+e[i++];if(n)throw new TypeError("Unbalanced pattern at ".concat(a));if(!o)throw new TypeError("Missing pattern at ".concat(a));t.push({type:"PATTERN",index:a,value:o}),a=i}else{for(var s="",i=a+1;i<e.length;){var r=e.charCodeAt(i);if(!(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122||95===r))break;s+=e[i++]}if(!s)throw new TypeError("Missing parameter name at ".concat(a));t.push({type:"NAME",index:a,value:s}),a=i}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,s=void 0===o?"/#?":o,i=[],r=0,u=0,c="",d=function(e){if(u<a.length&&a[u].type===e)return a[u++].value},p=function(e){var t=d(e);if(void 0!==t)return t;var l=a[u],n=l.type,o=l.index;throw new TypeError("Unexpected ".concat(n," at ").concat(o,", expected ").concat(e))},v=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t},f=function(e){var t=i[i.length-1],a=e||(t&&"string"==typeof t?t:"");if(t&&!a)throw new TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!a||function(e){for(var t=0,a=s;t<a.length;t++){var l=a[t];if(e.indexOf(l)>-1)return!0}return!1}(a)?"[^".concat(fl(s),"]+?"):"(?:(?!".concat(fl(a),")[^").concat(fl(s),"])+?")};u<a.length;){var m=d("CHAR"),h=d("NAME"),g=d("PATTERN");if(h||g){var b=m||"";-1===n.indexOf(b)&&(c+=b,b=""),c&&(i.push(c),c=""),i.push({name:h||r++,prefix:b,suffix:"",pattern:g||f(b),modifier:d("MODIFIER")||""})}else{var y=m||d("ESCAPED_CHAR");if(y)c+=y;else if(c&&(i.push(c),c=""),d("OPEN")){b=v();var x=d("NAME")||"",k=d("PATTERN")||"",_=v();p("CLOSE"),i.push({name:x||(k?r++:""),pattern:x&&!k?f(b):k,prefix:b,suffix:_,modifier:d("MODIFIER")||""})}else p("END")}}return i}function vl(e,t){return function(e,t){void 0===t&&(t={});var a=function(e){return e&&e.sensitive?"":"i"}(t),l=t.encode,n=void 0===l?function(e){return e}:l,o=t.validate,s=void 0===o||o,i=e.map(function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),a)});return function(t){for(var a="",l=0;l<e.length;l++){var o=e[l];if("string"!=typeof o){var r=t?t[o.name]:void 0,u="?"===o.modifier||"*"===o.modifier,c="*"===o.modifier||"+"===o.modifier;if(Array.isArray(r)){if(!c)throw new TypeError('Expected "'.concat(o.name,'" to not repeat, but got an array'));if(0===r.length){if(u)continue;throw new TypeError('Expected "'.concat(o.name,'" to not be empty'))}for(var d=0;d<r.length;d++){var p=n(r[d],o);if(s&&!i[l].test(p))throw new TypeError('Expected all "'.concat(o.name,'" to match "').concat(o.pattern,'", but got "').concat(p,'"'));a+=o.prefix+p+o.suffix}}else if("string"!=typeof r&&"number"!=typeof r){if(!u){var v=c?"an array":"a string";throw new TypeError('Expected "'.concat(o.name,'" to be ').concat(v))}}else{p=n(String(r),o);if(s&&!i[l].test(p))throw new TypeError('Expected "'.concat(o.name,'" to match "').concat(o.pattern,'", but got "').concat(p,'"'));a+=o.prefix+p+o.suffix}}else a+=o}return a}}(pl(e,t),t)}function fl(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function ml(e){if(vt.global.te("route."+e)){return vt.global.t("route."+e)}return e}const hl={key:0,class:"color-gray-400"},gl=["onClick"],bl=pt(l({__name:"index",setup(e){const t=ct(),a=s([]);function l(){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)),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 vl(e)(a)})(l)).catch(e=>{})}return L(()=>t.path,e=>{e.startsWith("/redirect/")||l()}),ft(()=>{l()}),(e,t)=>{const l=Ut,o=qt;return u(),b(o,{class:"flex-y-center"},{default:y(()=>[F(mt,{"enter-active-class":"animate__animated animate__fadeInRight"},{default:y(()=>[(u(!0),r(ie,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",hl,_(d(ml)(e.meta.title)),1)):(u(),r("a",{key:1,onClick:W(t=>n(e),["prevent"])},_(d(ml)(e.meta.title)),9,gl))]),_:2},1024))),128))]),_:1})]),_:1})}}}),[["__scopeId","data-v-8dd8e48a"]]),yl=pt(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"]]),xl={class:"flex"},kl=l({__name:"NavbarLeft",setup(e){const t=Ye();function a(){t.toggleSidebar()}return(e,l)=>{const n=yl,o=bl;return u(),r("div",xl,[F(n,{"is-active":d(t).sidebar.opened,onToggleClick:a},null,8,["is-active"]),F(o)])}}}),_l={class:"navbar-container"};const wl=pt({},[["render",function(e,t){const a=kl,l=dl;return u(),r("div",_l,[F(a),F(l)])}],["__scopeId","data-v-9a30edb0"]]),Cl={class:"flex flex-wrap justify-around w-full h-12"},Vl=pt(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",Cl,[F(n,{content:"左侧模式",placement:"bottom"},{default:y(()=>[g("div",{class:p(["layout-item left",{"is-active":e.modelValue===d(ht).LEFT}]),onClick:a[0]||(a[0]=e=>l(d(ht).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(ht).TOP}]),onClick:a[1]||(a[1]=e=>l(d(ht).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(ht).MIX}]),onClick:a[2]||(a[2]=e=>l(d(ht).MIX))},a[5]||(a[5]=[g("div",null,null,-1),g("div",null,null,-1)]),2)]),_:1})])}}}),[["__scopeId","data-v-d50a3d59"]]),Sl=pt(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=s(e.modelValue);return L(n,e=>{a("update:modelValue",e)}),(e,t)=>{const a=ka;return u(),b(a,{modelValue:d(n),"onUpdate:modelValue":t[0]||(t[0]=e=>st(n)?n.value=e:null),predefine:l,"popper-class":"theme-picker-dropdown"},null,8,["modelValue"])}}}),[["__scopeId","data-v-ba641afc"]]),Il={class:"flex-center"},Ml={class:"settings-option"},El={class:"text-xs"},Al={class:"settings-option"},Tl={class:"text-xs"},Ll={class:"settings-option"},Pl={class:"text-xs"},Ol={class:"settings-option"},$l={class:"text-xs"},Bl={class:"settings-option"},Nl={class:"text-xs"},Hl=pt(l({__name:"index",setup(e){const t=ct(),a=Ye(),l=Qe(),n=We(),o=P({get:()=>l.settingsVisible,set(){l.settingsVisible=!1}});function i(e){l.changeThemeColor(e)}const r=s(l.theme===gt.DARK),c=e=>{r.value=e,l.changeTheme(r.value?gt.DARK:gt.LIGHT)};function p(e){l.changeLayout(e),e===ht.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<e.children.length;a++)l(e.children[a],e)}for(let o=0;o<e.length;o++)l(e[o],null);let n=a[t];for(;n;){if(!a[n.name])return n;n=a[n.name]}return null}(n.routes,e);a.activeTopMenu!==t.path&&a.activeTopMenu(t.path)}(t.name):e===ht.TOP&&a.openSideBar()}return(e,t)=>{const a=bt,n=kt,s=Sl,v=Vl,f=Nt;return u(),b(f,{modelValue:d(o),"onUpdate:modelValue":t[7]||(t[7]=e=>st(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",Il,[F(n,{modelValue:d(r),"onUpdate:modelValue":t[0]||(t[0]=e=>st(r)?r.value=e:null),"active-icon":d(xt),"inactive-icon":d(yt),onChange:c},null,8,["modelValue","active-icon","inactive-icon"])]),F(a,null,{default:y(()=>[K(_(e.$t("settings.interface")),1)]),_:1}),g("div",Ml,[g("span",El,_(e.$t("settings.themeColor")),1),F(s,{modelValue:d(l).themeColor,"onUpdate:modelValue":[t[1]||(t[1]=e=>d(l).themeColor=e),i]},null,8,["modelValue"])]),g("div",Al,[g("span",Tl,_(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",Ll,[g("span",Pl,_(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",$l,_(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",Bl,[g("span",Nl,_(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"]]),Rl={class:"app-main"},zl=pt(l({__name:"index",setup(e){const t=P(()=>Ya().cachedViews);return(e,a)=>{const l=it("router-view");return u(),r("section",Rl,[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(_t,{include:t.value},[(u(),b(x(e),{key:a.path}))],1032,["include"]))]),_:2},1024)]),_:1})])}}}),[["__scopeId","data-v-932329df"]]),jl={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};const Fl={name:"ep-close",render:function(e,t){return u(),r("svg",jl,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 Kl(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Dl(e,t){for(var a,l="",n=0,o=-1,s=0,i=0;i<=e.length;++i){if(i<e.length)a=e.charCodeAt(i);else{if(47===a)break;a=47}if(47===a){if(o===i-1||1===s);else if(o!==i-1&&2===s){if(l.length<2||2!==n||46!==l.charCodeAt(l.length-1)||46!==l.charCodeAt(l.length-2))if(l.length>2){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=i,s=0;continue}}else if(2===l.length||1===l.length){l="",n=0,o=i,s=0;continue}t&&(l.length>0?l+="/..":l="..",n=2)}else l.length>0?l+="/"+e.slice(o+1,i):l=e.slice(o+1,i),n=i-o-1;o=i,s=0}else 46===a&&-1!==s?++s:s=-1}return l}var Wl={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),Kl(n),0!==n.length&&(t=n+"/"+t,a=47===n.charCodeAt(0))}return t=Dl(t,!a),a?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(Kl(e),0===e.length)return".";var t=47===e.charCodeAt(0),a=47===e.charCodeAt(e.length-1);return 0!==(e=Dl(e,!t)).length||t||(e="."),e.length>0&&a&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return Kl(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 a=arguments[t];Kl(a),a.length>0&&(void 0===e?e=a:e+="/"+a)}return void 0===e?".":Wl.normalize(e)},relative:function(e,t){if(Kl(e),Kl(t),e===t)return"";if((e=Wl.resolve(e))===(t=Wl.resolve(t)))return"";for(var a=1;a<e.length&&47===e.charCodeAt(a);++a);for(var l=e.length,n=l-a,o=1;o<t.length&&47===t.charCodeAt(o);++o);for(var s=t.length-o,i=n<s?n:s,r=-1,u=0;u<=i;++u){if(u===i){if(s>i){if(47===t.charCodeAt(o+u))return t.slice(o+u+1);if(0===u)return t.slice(o+u)}else n>i&&(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(Kl(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');Kl(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 s=t.length-1,i=-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===i&&(o=!1,i=a+1),s>=0&&(r===t.charCodeAt(s)?-1===--s&&(n=a):(s=-1,n=i))}return l===n?n=i:-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){Kl(e);for(var t=-1,a=0,l=-1,n=!0,o=0,s=e.length-1;s>=0;--s){var i=e.charCodeAt(s);if(47!==i)-1===l&&(n=!1,l=s+1),46===i?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!n){a=s+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){Kl(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,s=0,i=-1,r=!0,u=e.length-1,c=0;u>=a;--u)if(47!==(l=e.charCodeAt(u)))-1===i&&(r=!1,i=u+1),46===l?-1===o?o=u:1!==c&&(c=1):-1!==o&&(c=-1);else if(!r){s=u+1;break}return-1===o||-1===i||0===c||1===c&&o===i-1&&o===s+1?-1!==i&&(t.base=t.name=0===s&&n?e.slice(1,i):e.slice(s,i)):(0===s&&n?(t.name=e.slice(1,o),t.base=e.slice(1,i)):(t.name=e.slice(s,o),t.base=e.slice(s,i)),t.ext=e.slice(o,i)),s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Wl.posix=Wl;var ql=Wl;const Ul=wt(ql),Xl={class:"tags-container"},Yl=pt(l({__name:"index",setup(e){const{proxy:t}=h(),a=ut(),l=ct(),n=We(),o=Ya(),c=Ye(),{visitedViews:v}=Ct(o),f=Qe(),m=P(()=>f.layout),x=s({path:"",fullPath:"",name:"",title:"",affix:!1,keepAlive:!1}),k=s([]),w=s(0),C=s(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=s(!1);function S(e,t="/"){let a=[];return e.forEach(e=>{var l,n,o,s;const i=ql.resolve(t,e.path);if((null==(l=e.meta)?void 0:l.affix)&&a.push({path:i,fullPath:i,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==(s=e.meta)?void 0:s.keepAlive}),e.children){const l=S(e.children,t+e.path);l.length>=1&&(a=[...a,...l])}}),a}function I(){const e=S(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 O(){try{return x.value.fullPath===o.visitedViews[o.visitedViews.length-1].fullPath}catch(e){return!1}}function $(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)&&$(t.visitedViews,e)})}function N(){o.delLeftViews(x.value).then(e=>{e.visitedViews.find(e=>e.path===l.path)||$(e.visitedViews)})}function H(){o.delRightViews(x.value).then(e=>{e.visitedViews.find(e=>e.path===l.path)||$(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<e.children.length;a++)l(e.children[a],e)}for(let o=0;o<e.length;o++)l(e[o],null);let n=a[t];for(;n;){if(!a[n.name])return n;n=a[n.name]}return null}(n.routes,e);c.activeTopMenu!==t.path&&c.activeTopMenu(t.path)})(e)},{deep:!0}),i(()=>{I()}),(e,l)=>{const n=Fl,s=it("router-link"),i=Vt,c=Ot;return u(),r("div",Xl,[F(i,{class:"scroll-container",vertical:!1,onWheel:W(j,["prevent"])},{default:y(()=>[(u(!0),r(ie,null,re(d(v),e=>(u(),b(s,{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(ml)(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:Z({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(" 关闭左侧 "))])),O()?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=>{$(e.visitedViews,t)});var t})},[F(c,{"icon-class":"close_all"}),l[8]||(l[8]=K(" 关闭所有 "))])],4),[[U,d(V)]])])}}}),[["__scopeId","data-v-05b66405"]]),Gl=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)),It(Mt((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=pt(l({__name:"SidebarMenuItemTitle",props:{icon:{type:String,default:""},title:{type:String,default:""}},setup:e=>(t,a)=>{const l=k,n=Ot;return u(),r(ie,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(ml)(e.title),class:"ml-1 important-line-clamp-1 important-break-all"},_(d(ml)(e.title)),9,Jl)):ke("",!0)],64)}}),[["__scopeId","data-v-11c6191d"]]),Zl={key:0},en=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=s();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 Ul.resolve(t.basePath,e)}return(t,o)=>{var s;const i=Ql,c=Ua,v=Gl,f=it("SidebarMenuItem",!0),m=Xa;return e.item.meta&&e.item.meta.hidden?ke("",!0):(u(),r("div",Zl,[!l(e.item.children,e.item)||d(a).children&&!d(a).noShowingChildren||(null==(s=e.item.meta)?void 0:s.alwaysShow)?(u(),b(m,{key:1,index:n(e.item.path),teleported:""},{title:y(()=>[e.item.meta?(u(),b(i,{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(ie,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(ie,{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(i,{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))]))}}}),tn={"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"},an=pt(l({__name:"SidebarMenu",props:{menuList:{required:!0,default:()=>[],type:Array},basePath:{type:String,required:!0}},setup(e){const t=Qe(),a=Ye();nl();const l=ct(),n=P(()=>t.layout),o=e;function s(e){if(St(e))return e;if(St(o.basePath))return o.basePath;return Ul.resolve(o.basePath,e)}function i(e){}return(t,o)=>{const c=en,p=qa;return u(),b(p,{"default-active":d(l).path,collapse:!d(a).sidebar.opened,"background-color":d(tn)["menu-background"],"text-color":d(tn)["menu-text"],"active-text-color":d(tn)["menu-active-text"],"unique-opened":!1,"collapse-transition":!1,mode:"top"===d(n)?"horizontal":"vertical",onOpen:i},{default:y(()=>[(u(!0),r(ie,null,re(e.menuList,e=>(u(),b(c,{key:e.path,item:e,"base-path":s(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"]]),ln={key:1},nn={key:0,class:"ml-1"},on=l({__name:"SidebarMixTopMenu",setup(e){const t=Ye(),a=We(),l=ut(),n=P(()=>t.activeTopMenuPath),o=s([]),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 i(()=>{o.value=a.routes.filter(e=>!e.meta||!e.meta.hidden)}),(e,t)=>{const a=Ot,l=Ua,s=qa,i=Vt;return u(),b(i,null,{default:y(()=>[F(s,{mode:"horizontal","default-active":d(n),"background-color":d(tn)["menu-background"],"text-color":d(tn)["menu-text"],"active-text-color":d(tn)["menu-active-text"],onSelect:c},{default:y(()=>[(u(!0),r(ie,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",ln," 首页 ")):(u(),r(ie,{key:2},[e.meta&&e.meta.title?(u(),r("span",nn,_(d(ml)(e.meta.title)),1)):ke("",!0)],64))]),_:2},1032,["index"]))),128))]),_:1},8,["default-active","background-color","text-color","active-text-color"])]),_:1})}}}),sn={class:"logo-container"},rn=["src"],un=["src"],cn={class:"logo-title"},dn=pt(l({__name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},setup(e){const t=Qe(),a=s(new URL("/img/logo.w1nDwr-H.png",import.meta.url).href);return(l,n)=>{const o=it("router-link");return u(),r("div",sn,[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,rn)):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,un)):ke("",!0),g("span",cn,_(d(t).getSystemName),1)]),_:1}))]),_:1})])}}}),[["__scopeId","data-v-b9238b34"]]),pn={key:0,class:"flex w-full"},vn=pt(l({__name:"index",setup(e){const t=Ye(),a=Qe(),l=We(),n=P(()=>a.sidebarLogo),o=P(()=>a.layout);return(e,a)=>{const s=dn,i=on,c=dl,v=an,f=Vt;return u(),r("div",{class:p({"has-logo":d(n)})},[d(o)==d(ht).MIX?(u(),r("div",pn,[d(n)?(u(),b(s,{key:0,collapse:!d(t).sidebar.opened},null,8,["collapse"])):ke("",!0),F(i,{class:"flex-1"}),F(c)])):(u(),r(ie,{key:1},[d(n)?(u(),b(s,{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(ht).TOP?(u(),b(c,{key:1})):ke("",!0)],64))],2)}}}),[["__scopeId","data-v-4f65ed38"]]),fn={key:1,class:"mix-container"},mn={class:"mix-container__left"},hn={class:"sidebar-toggle"},gn=pt(l({__name:"index",setup(e){const t=Ye(),a=Qe(),l=We(),n=Et().width,o=P(()=>t.device===Ze.MOBILE),s=P(()=>t.sidebar.opened),i=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===Ze.MOBILE,[`layout-${a.layout}`]:!0}));function y(){t.closeSideBar()}function x(){t.toggleSidebar()}ue(()=>{t.toggleDevice(n.value<992?Ze.MOBILE:Ze.DESKTOP),n.value>=992?t.openSideBar():t.closeSideBar()});const k=ct();return L(k,()=>{o.value&&s.value&&t.closeSideBar()}),(e,a)=>{const l=vn,n=an,k=yl,_=Yl,w=zl,C=Hl,V=wl;return u(),r("div",{class:p(["wh-full",d(h)])},[d(o)&&d(s)?(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(ht).MIX?(u(),r("div",fn,[g("div",mn,[F(n,{"menu-list":d(m),"base-path":d(f)},null,8,["menu-list","base-path"]),g("div",hn,[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(i)})},[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(i)})},["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{gn as default};
|