tg_web_dist/js/index.BRWxaeMo.js
2025-06-30 19:02:55 +08:00

2 lines
76 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 m,j as f,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 M,y as V,z as $,C as I,U as S,A,B as L,D as E,F as P,G as T,H as B,I as N,J as O,K as F,T as H,L as z,M as R,N as K,O as j,P as D,Q as W,R as q,S as U,V as G,W as X,X as Y,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 se,a7 as ie,a8 as re,a9 as ue,aa as ce,ab as de,ac as pe,ad as ve,ae as me,af as fe,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 Me,aq as Ve,ar as $e,as as Ie,at as Se,au as Ae,av as Le,aw as Ee,ax as Pe,ay as Te,az as Be,aA as Ne,aB as Oe,aC as Fe,aD as He,aE as ze,aF as Re,aG as Ke,aH as je,aI as De,aJ as We,aK as qe,aL as Ue,aM as Ge,aN as Xe,aO as Ye,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 st,aZ as it,a_ as rt,a$ as ut,b0 as ct,b1 as dt,b2 as pt,b3 as vt,b4 as mt,b5 as ft,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 Mt,bg as Vt,bh as $t,bi as It,bj as St}from"./index.UcB8_pFx.js";import{_ as At}from"./index.BLt2euAx.js";import{E as Lt,a as Et,b as Pt}from"./el-dropdown-item.CH-pypjn.js";const Tt=Symbol("breadcrumbKey"),Bt=e({separator:{type:String,default:"/"},separatorIcon:{type:t}}),Nt=l({name:"ElBreadcrumb"});var Ot=a(l({...Nt,props:Bt,setup(e){const t=e,{t:a}=n(),l=o("breadcrumb"),m=s();return v(Tt,t),i((()=>{const e=m.value.querySelectorAll(`.${l.e("item")}`);e.length&&e[e.length-1].setAttribute("aria-current","page")})),(e,t)=>(u(),r("div",{ref_key:"breadcrumb",ref:m,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 Ft=e({to:{type:m([String,Object]),default:""},replace:Boolean}),Ht=l({name:"ElBreadcrumbItem"});var zt=a(l({...Ht,props:Ft,setup(e){const t=e,a=h(),l=f(Tt,void 0),n=o("breadcrumb"),i=a.appContext.config.globalProperties.$router,v=s(),m=()=>{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:m},[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 Rt=C(Ot,{BreadcrumbItem:zt}),Kt=w(zt),jt=e=>M(e)||V(e)||$(e),Dt=e({accordion:Boolean,modelValue:{type:m([Array,String,Number]),default:()=>A([])},expandIconPosition:{type:m([String]),default:"right"},beforeCollapse:{type:m(Function)}}),Wt={[S]:jt,[I]:jt},qt=Symbol("collapseContextKey"),Ut=l({name:"ElCollapse"});var Gt=a(l({...Ut,props:Dt,emits:Wt,setup(e,{expose:t,emit:a}){const l=e,{activeNames:n,setActiveNames:i}=((e,t)=>{const a=s(L(e.modelValue)),l=l=>{a.value=l;const n=e.accordion?a.value[0]:a.value;t(S,n),t(I,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 E((()=>e.modelValue),(()=>a.value=L(e.modelValue)),{deep:!0}),v(qt,{activeNames:a,handleItemClick:async t=>{const{beforeCollapse:a}=e;if(!a)return void n(t);const l=a(t);[T(l),B(l)].includes(!0)||N("ElCollapse","beforeCollapse must return type `Promise<boolean>` or `boolean`"),T(l)?l.then((e=>{!1!==e&&n(t)})).catch((e=>{})):l&&n(t)}}),{activeNames:a,setActiveNames:l}})(l,a),{rootKls:m}=(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(m))},[c(e.$slots,"default")],2))}}),[["__file","collapse.vue"]]);const Xt=l({name:"ElCollapseTransition"});const Yt=C(a(l({...Xt,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(H,O({name:d(t).b()},F(l)),{default:y((()=>[c(e.$slots,"default")])),_:3},16,["name"]))}}),[["__file","collapse-transition.vue"]])),Zt=e({title:{type:String,default:""},name:{type:m([String,Number]),default:void 0},icon:{type:t,default:z},disabled:Boolean}),Jt=l({name:"ElCollapseItem"});var Qt=a(l({...Jt,props:Zt,setup(e,{expose:t}){const a=e,{focusing:l,id:n,isActive:i,handleFocus:v,handleHeaderClick:m,handleEnterClick:h}=(e=>{const t=f(qt),{namespace:a}=o("collapse"),l=s(!1),n=s(!1),i=R(),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:()=>{e.disabled||(null==t||t.handleItemClick(d(u)),l.value=!1,n.value=!0)},handleEnterClick:()=>{null==t||t.handleItemClick(d(u))}}})(a),{arrowKls:w,headKls:C,rootKls:M,itemTitleKls:V,itemWrapperKls:$,itemContentKls:I,scopedContentId:S,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(M))},[g("button",{id:d(A),class:p(d(C)),"aria-expanded":d(i),"aria-controls":d(S),"aria-describedby":d(S),tabindex:e.disabled?-1:0,type:"button",onClick:d(m),onKeydown:D(W(d(h),["stop","prevent"]),["space","enter"]),onFocus:d(v),onBlur:e=>l.value=!1},[g("span",{class:p(d(V))},[c(e.$slots,"title",{isActive:d(i)},(()=>[j(_(e.title),1)]))],2),c(e.$slots,"icon",{isActive:d(i)},(()=>[K(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"]),K(d(Yt),null,{default:y((()=>[q(g("div",{id:d(S),role:"region",class:p(d($)),"aria-hidden":!d(i),"aria-labelledby":d(A)},[g("div",{class:p(d(I))},[c(e.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[U,d(i)]])])),_:3})],2))}}),[["__file","collapse-item.vue"]]);const ea=C(Gt,{CollapseItem:Qt}),ta=w(Qt),aa=e({color:{type:m(Object),required:!0},vertical:{type:Boolean,default:!1}});let la=!1;function na(e,t){if(!G)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,la=!1,null==(n=t.end)||n.call(t,e)},n=function(e){var n;la||(e.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",a),document.addEventListener("mouseup",l),document.addEventListener("touchmove",a),document.addEventListener("touchend",l),la=!0,null==(n=t.start)||n.call(t,e))};e.addEventListener("mousedown",n),e.addEventListener("touchstart",n,{passive:!1})}const oa=(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)}};na(t.value,e),na(a.value,e),p()})),E((()=>e.color.get("alpha")),(()=>p())),E((()=>e.color.value),(()=>p()));const v=P((()=>[r.b(),r.is("vertical",e.vertical)])),m=P((()=>r.e("bar"))),f=P((()=>r.e("thumb")));return{rootKls:v,barKls:m,barStyle:P((()=>({background:d.value}))),thumbKls:f,thumbStyle:P((()=>({left:Y(u.value),top:Y(c.value)}))),update:p}},sa=l({name:"ElColorAlphaSlider"});var ia=a(l({...sa,props:aa,setup(e,{expose:t}){const a=e,{alpha:l,alphaLabel:o,bar:s,thumb:i,handleDrag:c,handleClick:v,handleKeydown:m}=(e=>{const t=h(),{t:a}=n(),l=X(),o=X(),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}=J(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 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:f,barKls:b,barStyle:y,thumbKls:x,thumbStyle:k,update:_}=oa(a,{bar:s,thumb:i,handleDrag:c});return t({update:_,bar:s,thumb:i}),(e,t)=>(u(),r("div",{class:p(d(f))},[g("div",{ref_key:"bar",ref:s,class:p(d(b)),style:Q(d(y)),onClick:d(v)},null,14,["onClick"]),g("div",{ref_key:"thumb",ref:i,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(m)},null,46,["aria-label","aria-valuenow","aria-orientation","onKeydown"])],2))}}),[["__file","alpha-slider.vue"]]);var ra=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}=J(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 E((()=>c.value),(()=>{p()})),i((()=>{if(!n.value||!l.value)return;const e={drag:e=>{d(e)},end:e=>{d(e)}};na(n.value,e),na(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 ua=e({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:le,popperClass:{type:String,default:""},tabindex:{type:[String,Number],default:0},teleported:ae.teleported,predefine:{type:m(Array)},validateEvent:{type:Boolean,default:!0},...te(["ariaLabel"])}),ca={[S]:e=>V(e)||ee(e),[I]:e=>V(e)||ee(e),activeChange:e=>V(e)||ee(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},da=Symbol("colorPickerContextKey"),pa=function(e,t,a){return[e,t*a/((e=(2-t)*a)<1?e:2-e)||0,e/2]},va=function(e,t){var a;V(a=e)&&a.includes(".")&&1===Number.parseFloat(a)&&(e="100%");const l=function(e){return V(e)&&e.includes("%")}(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),l&&(e=Number.parseInt(""+e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},ma={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},fa=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),a=e%16;return`${ma[t]||t}${ma[a]||a}`},ha=function({r:e,g:t,b:a}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+a)?"":`#${fa(e)}${fa(t)}${fa(a)}`},ga={A:10,B:11,C:12,D:13,E:14,F:15},ba=function(e){return 2===e.length?16*(ga[e[0].toUpperCase()]||+e[0])+(ga[e[1].toUpperCase()]||+e[1]):ga[e[1].toUpperCase()]||+e[1]},ya=(e,t,a)=>{e=va(e,255),t=va(t,255),a=va(a,255);const l=Math.max(e,t,a),n=Math.min(e,t,a);let o;const s=l,i=l-n,r=0===l?0:i/l;if(l===n)o=0;else{switch(l){case e:o=(t-a)/i+(t<a?6:0);break;case t:o=(a-e)/i+2;break;case a:o=(e-t)/i+4}o/=6}return{h:360*o,s:100*r,v:100*s}},xa=function(e,t,a){e=6*va(e,360),t=va(t,100),a=va(a,100);const l=Math.floor(e),n=e-l,o=a*(1-t),s=a*(1-n*t),i=a*(1-(1-n)*t),r=l%6,u=[a,s,o,o,i,a][r],c=[i,a,a,s,o,o][r],d=[o,o,i,a,a,s][r];return{r:Math.round(255*u),g:Math.round(255*c),b:Math.round(255*d)}};class ka{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const t in e)ne(e,t)&&(this[t]=e[t]);e.value?this.fromString(e.value):this.doOnChange()}set(e,t){if(1!==arguments.length||"object"!=typeof e)this[`_${e}`]=t,this.doOnChange();else for(const a in e)ne(e,a)&&this.set(a,e[a])}get(e){return"alpha"===e?Math.floor(this[`_${e}`]):this[`_${e}`]}toRgb(){return xa(this._hue,this._saturation,this._value)}fromString(e){if(!e)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();const t=(e,t,a)=>{this._hue=Math.max(0,Math.min(360,e)),this._saturation=Math.max(0,Math.min(100,t)),this._value=Math.max(0,Math.min(100,a)),this.doOnChange()};if(e.includes("hsl")){const a=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===a.length?this._alpha=100*Number.parseFloat(a[3]):3===a.length&&(this._alpha=100),a.length>=3){const{h:e,s:l,v:n}=function(e,t,a){a/=100;let l=t/=100;const n=Math.max(a,.01);return t*=(a*=2)<=1?a:2-a,l*=n<=1?n:2-n,{h:e,s:100*(0===a?2*l/(n+l):2*t/(a+t)),v:(a+t)/2*100}}(a[0],a[1],a[2]);t(e,l,n)}}else if(e.includes("hsv")){const a=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));4===a.length?this._alpha=100*Number.parseFloat(a[3]):3===a.length&&(this._alpha=100),a.length>=3&&t(a[0],a[1],a[2])}else if(e.includes("rgb")){const a=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===a.length?this._alpha=100*Number.parseFloat(a[3]):3===a.length&&(this._alpha=100),a.length>=3){const{h:e,s:l,v:n}=ya(a[0],a[1],a[2]);t(e,l,n)}}else if(e.includes("#")){const a=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(a))return;let l,n,o;3===a.length?(l=ba(a[0]+a[0]),n=ba(a[1]+a[1]),o=ba(a[2]+a[2])):6!==a.length&&8!==a.length||(l=ba(a.slice(0,2)),n=ba(a.slice(2,4)),o=ba(a.slice(4,6))),8===a.length?this._alpha=ba(a.slice(6))/255*100:3!==a.length&&6!==a.length||(this._alpha=100);const{h:s,s:i,v:r}=ya(l,n,o);t(s,i,r)}}compare(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1}doOnChange(){const{_hue:e,_saturation:t,_value:a,_alpha:l,format:n}=this;if(this.enableAlpha)switch(n){case"hsl":{const l=pa(e,t/100,a/100);this.value=`hsla(${e}, ${Math.round(100*l[1])}%, ${Math.round(100*l[2])}%, ${this.get("alpha")/100})`;break}case"hsv":this.value=`hsva(${e}, ${Math.round(t)}%, ${Math.round(a)}%, ${this.get("alpha")/100})`;break;case"hex":this.value=`${ha(xa(e,t,a))}${fa(255*l/100)}`;break;default:{const{r:l,g:n,b:o}=xa(e,t,a);this.value=`rgba(${l}, ${n}, ${o}, ${this.get("alpha")/100})`}}else switch(n){case"hsl":{const l=pa(e,t/100,a/100);this.value=`hsl(${e}, ${Math.round(100*l[1])}%, ${Math.round(100*l[2])}%)`;break}case"hsv":this.value=`hsv(${e}, ${Math.round(t)}%, ${Math.round(a)}%)`;break;case"rgb":{const{r:l,g:n,b:o}=xa(e,t,a);this.value=`rgb(${l}, ${n}, ${o})`;break}default:this.value=ha(xa(e,t,a))}}}var _a=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}=f(da),l=s(n(e.colors,e.color));function n(t,a){return t.map((t=>{const l=new ka;return l.enableAlpha=e.enableAlpha,l.format="rgba",l.fromString(t),l.selected=l.value===a.value,l}))}return E((()=>a.value),(e=>{const t=new ka;t.fromString(e),l.value.forEach((e=>{e.selected=t.compare(e)}))})),ie((()=>{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(oe,null,se(e.rgbaColors,((t,a)=>(u(),r("div",{key:e.colors[a],class:p([e.ns.e("color-selector"),e.ns.is("alpha",t._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 wa=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}=J(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 E((()=>u.value),(()=>{c()})),i((()=>{na(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 Ca=l({name:"ElColorPicker"});const Ma=C(a(l({...Ca,props:ua,emits:ca,setup(e,{expose:t,emit:a}){const l=e,{t:c}=n(),m=o("color"),{formItem:f}=re(),h=ue(),x=ce(),{inputId:w,isLabeledByFormItem:C}=de(l,{formItemContext:f}),M=s(),V=s(),$=s(),A=s(),L=s(),T=s(),{isFocused:B,handleFocus:N,handleBlur:F}=pe(L,{beforeFocus:()=>x.value,beforeBlur(e){var t;return null==(t=A.value)?void 0:t.isFocusInsideContent(e)},afterBlur(){ae(!1),se()}});let H=!0;const z=ve(new ka({enableAlpha:l.showAlpha,format:l.colorFormat||"",value:l.modelValue})),R=s(!1),W=s(!1),G=s(""),X=P((()=>l.modelValue||W.value?function(e,t){if(!(e instanceof ka))throw new TypeError("color should be instance of _color Class");const{r:a,g:l,b:n}=e.toRgb();return t?`rgba(${a}, ${l}, ${n}, ${e.get("alpha")/100})`:`rgb(${a}, ${l}, ${n})`}(z,l.showAlpha):"transparent")),Y=P((()=>l.modelValue||W.value?z.value:"")),J=P((()=>C.value?void 0:l.ariaLabel||c("el.colorpicker.defaultLabel"))),ee=P((()=>C.value?null==f?void 0:f.labelId:void 0)),te=P((()=>[m.b("picker"),m.is("disabled",x.value),m.bm("picker",h.value),m.is("focused",B.value)]));function ae(e){R.value=e}const le=me(ae,100,{leading:!0});function ne(){x.value||ae(!0)}function oe(){le(!1),se()}function se(){fe((()=>{l.modelValue?z.fromString(l.modelValue):(z.value="",fe((()=>{W.value=!1})))}))}function ie(){x.value||(R.value&&se(),le(!R.value))}function Ce(){z.fromString(G.value)}function Me(){const e=z.value;a(S,e),a(I,e),l.validateEvent&&(null==f||f.validate("change").catch((e=>we()))),le(!1),fe((()=>{const e=new ka({enableAlpha:l.showAlpha,format:l.colorFormat||"",value:l.modelValue});z.compare(e)||se()}))}function Ve(){le(!1),a(S,null),a(I,null),null!==l.modelValue&&l.validateEvent&&(null==f||f.validate("change").catch((e=>we()))),se()}function $e(){R.value&&(oe(),B.value&&Ae())}function Ie(e){e.preventDefault(),e.stopPropagation(),ae(!1),se()}function Se(e){switch(e.code){case Z.enter:case Z.numpadEnter:case Z.space:e.preventDefault(),e.stopPropagation(),ne(),T.value.focus();break;case Z.esc:Ie(e)}}function Ae(){L.value.focus()}return i((()=>{l.modelValue&&(G.value=Y.value)})),E((()=>l.modelValue),(e=>{e?e&&e!==z.value&&(H=!1,z.fromString(e)):W.value=!1})),E((()=>[l.colorFormat,l.showAlpha]),(()=>{z.enableAlpha=l.showAlpha,z.format=l.colorFormat||z.format,z.doOnChange(),a(S,z.value)})),E((()=>Y.value),(e=>{G.value=e,H&&a("activeChange",e),H=!0})),E((()=>z.value),(()=>{l.modelValue||W.value||(W.value=!0)})),E((()=>R.value),(()=>{fe((()=>{var e,t,a;null==(e=M.value)||e.update(),null==(t=V.value)||t.update(),null==(a=$.value)||a.update()}))})),v(da,{currentColor:Y}),t({color:z,show:ne,hide:oe,focus:Ae,blur:function(){L.value.blur()}}),(e,t)=>(u(),b(d(_e),{ref_key:"popper",ref:A,visible:R.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[d(m).be("picker","panel"),d(m).b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:e.teleported,transition:`${d(m).namespace.value}-zoom-in-top`,persistent:"",onHide:e=>ae(!1)},{content:y((()=>[q((u(),r("div",{onKeydown:D(Ie,["esc"])},[g("div",{class:p(d(m).be("dropdown","main-wrapper"))},[K(ra,{ref_key:"hue",ref:M,class:"hue-slider",color:d(z),vertical:""},null,8,["color"]),K(wa,{ref_key:"sv",ref:V,color:d(z)},null,8,["color"])],2),e.showAlpha?(u(),b(ia,{key:0,ref_key:"alpha",ref:$,color:d(z)},null,8,["color"])):he("v-if",!0),e.predefine?(u(),b(_a,{key:1,ref:"predefine","enable-alpha":e.showAlpha,color:d(z),colors:e.predefine},null,8,["enable-alpha","color","colors"])):he("v-if",!0),g("div",{class:p(d(m).be("dropdown","btns"))},[g("span",{class:p(d(m).be("dropdown","value"))},[K(d(ye),{ref_key:"inputRef",ref:T,modelValue:G.value,"onUpdate:modelValue":e=>G.value=e,"validate-event":!1,size:"small",onKeyup:D(Ce,["enter"]),onBlur:Ce},null,8,["modelValue","onUpdate:modelValue","onKeyup"])],2),K(d(xe),{class:p(d(m).be("dropdown","link-btn")),text:"",size:"small",onClick:Ve},{default:y((()=>[j(_(d(c)("el.colorpicker.clear")),1)])),_:1},8,["class"]),K(d(xe),{plain:"",size:"small",class:p(d(m).be("dropdown","btn")),onClick:Me},{default:y((()=>[j(_(d(c)("el.colorpicker.confirm")),1)])),_:1},8,["class"])],2)],40,["onKeydown"])),[[d(ke),$e,L.value]])])),default:y((()=>[g("div",O({id:d(w),ref_key:"triggerRef",ref:L},e.$attrs,{class:d(te),role:"button","aria-label":d(J),"aria-labelledby":d(ee),"aria-description":d(c)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":d(x),tabindex:d(x)?void 0:e.tabindex,onKeydown:Se,onFocus:d(N),onBlur:d(F)}),[d(x)?(u(),r("div",{key:0,class:p(d(m).be("picker","mask"))},null,2)):he("v-if",!0),g("div",{class:p(d(m).be("picker","trigger")),onClick:ie},[g("span",{class:p([d(m).be("picker","color"),d(m).is("alpha",e.showAlpha)])},[g("span",{class:p(d(m).be("picker","color-inner")),style:Q({backgroundColor:d(X)})},[q(K(d(k),{class:p([d(m).be("picker","icon"),d(m).is("icon-arrow-down")])},{default:y((()=>[K(d(ge))])),_:1},8,["class"]),[[U,e.modelValue||W.value]]),q(K(d(k),{class:p([d(m).be("picker","empty"),d(m).is("icon-close")])},{default:y((()=>[K(d(be))])),_:1},8,["class"]),[[U,!e.modelValue&&!W.value]])],6)],2)],2)],16,["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex","onFocus","onBlur"])])),_:1},8,["visible","popper-class","teleported","transition","onHide"]))}}),[["__file","color-picker.vue"]])),Va=e({...Me,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),$a=Ce,Ia=l({name:"ElDrawer",inheritAttrs:!1});const Sa=C(a(l({...Ia,props:Va,emits:$a,setup(e,{expose:t}){const a=e,l=Ve();$e({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},P((()=>!!l.title)));const i=s(),v=s(),m=o("drawer"),{t:f}=n(),{afterEnter:h,afterLeave:x,beforeLeave:w,visible:C,rendered:M,titleId:V,bodyId:$,zIndex:I,onModalClick:S,onOpenAutoFocus:A,onCloseAutoFocus:L,onFocusoutPrevented:E,onCloseRequested:T,handleClose:B}=Ie(a,i),N=P((()=>"rtl"===a.direction||"ltr"===a.direction)),F=P((()=>Y(a.size)));return t({handleClose:B,afterEnter:h,afterLeave:x}),(e,t)=>(u(),b(d(Le),{to:e.appendTo,disabled:"body"===e.appendTo&&!e.appendToBody},{default:y((()=>[K(H,{name:d(m).b("fade"),onAfterEnter:d(h),onAfterLeave:d(x),onBeforeLeave:d(w),persisted:""},{default:y((()=>[q(K(d(Se),{mask:e.modal,"overlay-class":e.modalClass,"z-index":d(I),onClick:d(S)},{default:y((()=>[K(d(Ae),{loop:"",trapped:d(C),"focus-trap-el":i.value,"focus-start-el":v.value,onFocusAfterTrapped:d(A),onFocusAfterReleased:d(L),onFocusoutPrevented:d(E),onReleaseRequested:d(T)},{default:y((()=>[g("div",O({ref_key:"drawerRef",ref:i,"aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:d(V),"aria-describedby":d($)},e.$attrs,{class:[d(m).b(),e.direction,d(C)&&"open"],style:d(N)?"width: "+d(F):"height: "+d(F),role:"dialog",onClick:W((()=>{}),["stop"])}),[g("span",{ref_key:"focusStartRef",ref:v,class:p(d(m).e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(u(),r("header",{key:0,class:p([d(m).e("header"),e.headerClass])},[e.$slots.title?c(e.$slots,"title",{key:1},(()=>[he(" DEPRECATED SLOT ")])):c(e.$slots,"header",{key:0,close:d(B),titleId:d(V),titleClass:d(m).e("title")},(()=>[e.$slots.title?he("v-if",!0):(u(),r("span",{key:0,id:d(V),role:"heading","aria-level":e.headerAriaLevel,class:p(d(m).e("title"))},_(e.title),11,["id","aria-level"]))])),e.showClose?(u(),r("button",{key:2,"aria-label":d(f)("el.drawer.close"),class:p(d(m).e("close-btn")),type:"button",onClick:d(B)},[K(d(k),{class:p(d(m).e("close"))},{default:y((()=>[K(d(be))])),_:1},8,["class"])],10,["aria-label","onClick"])):he("v-if",!0)],2)):he("v-if",!0),d(M)?(u(),r("div",{key:1,id:d($),class:p([d(m).e("body"),e.bodyClass])},[c(e.$slots,"default")],10,["id"])):he("v-if",!0),e.$slots.footer?(u(),r("div",{key:2,class:p([d(m).e("footer"),e.footerClass])},[c(e.$slots,"footer")],2)):he("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])])),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])])),_:3},8,["mask","overlay-class","z-index","onClick"]),[[U,d(C)]])])),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])])),_:3},8,["to","disabled"]))}}),[["__file","drawer.vue"]])),Aa=l({name:"ImgEmpty"});var La=a(l({...Aa,setup(e){const t=o("empty"),a=Ee();return(e,l)=>(u(),r("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[g("defs",null,[g("linearGradient",{id:`linearGradient-1-${d(a)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[g("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),g("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),g("linearGradient",{id:`linearGradient-2-${d(a)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[g("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),g("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),g("rect",{id:`path-3-${d(a)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),g("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[g("g",{transform:"translate(-1268.000000, -535.000000)"},[g("g",{transform:"translate(1268.000000, 535.000000)"},[g("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${d(t).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),g("polygon",{fill:`var(${d(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),g("g",{transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[g("polygon",{fill:`var(${d(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),g("polygon",{fill:`var(${d(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),g("rect",{fill:`url(#linearGradient-1-${d(a)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),g("polygon",{fill:`var(${d(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),g("rect",{fill:`url(#linearGradient-2-${d(a)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),g("g",{transform:"translate(53.000000, 45.000000)"},[g("use",{fill:`var(${d(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${d(a)}`},null,8,["fill","xlink:href"]),g("polygon",{fill:`var(${d(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${d(a)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),g("polygon",{fill:`var(${d(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}}),[["__file","img-empty.vue"]]);const Ea=e({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),Pa=l({name:"ElEmpty"});const Ta=C(a(l({...Pa,props:Ea,setup(e){const t=e,{t:a}=n(),l=o("empty"),s=P((()=>t.description||a("el.table.emptyText"))),i=P((()=>({width:Y(t.imageSize)})));return(e,t)=>(u(),r("div",{class:p(d(l).b())},[g("div",{class:p(d(l).e("image")),style:Q(d(i))},[e.image?(u(),r("img",{key:0,src:e.image,ondragstart:"return false"},null,8,["src"])):c(e.$slots,"image",{key:1},(()=>[K(La)]))],6),g("div",{class:p(d(l).e("description"))},[e.$slots.description?c(e.$slots,"description",{key:0}):(u(),r("p",{key:1},_(d(s)),1))],2),e.$slots.default?(u(),r("div",{key:0,class:p(d(l).e("bottom"))},[c(e.$slots,"default")],2)):he("v-if",!0)],2))}}),[["__file","empty.vue"]]));let Ba=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:Pe(e,"mouseleave");break;case Z.enter:case Z.numpadEnter:case Z.space:a=!0,t.currentTarget.click()}return a&&(t.preventDefault(),t.stopPropagation()),!1}))}))}},Na=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 Ba(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",(e=>{let t=!1;switch(e.code){case Z.down:Pe(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),t=!0;break;case Z.up:Pe(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),t=!0;break;case Z.tab:Pe(e.currentTarget,"mouseleave");break;case Z.enter:case Z.numpadEnter:case Z.space:t=!0,e.currentTarget.click()}t&&e.preventDefault()}))}},Oa=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 Na(t,e)}))}};const Fa=l({name:"ElMenuCollapseTransition"});var Ha=a(l({...Fa,setup(e){const t=o("menu"),a={onBeforeEnter:e=>e.style.opacity="0.2",onEnter(e,a){Te(e,`${t.namespace.value}-opacity-transition`),e.style.opacity="1",a()},onAfterEnter(e){Ne(e,`${t.namespace.value}-opacity-transition`),e.style.opacity=""},onBeforeLeave(e){e.dataset||(e.dataset={}),Be(e,t.m("collapse"))?(Ne(e,t.m("collapse")),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth.toString(),Te(e,t.m("collapse"))):(Te(e,t.m("collapse")),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth.toString(),Ne(e,t.m("collapse"))),e.style.width=`${e.scrollWidth}px`,e.style.overflow="hidden"},onLeave(e){Te(e,"horizontal-collapse-transition"),e.style.width=`${e.dataset.scrollWidth}px`}};return(e,t)=>(u(),b(H,O({mode:"out-in"},d(a)),{default:y((()=>[c(e.$slots,"default")])),_:3},16))}}),[["__file","menu-collapse-transition.vue"]]);function za(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 Ra(e){return P((()=>{const t=e.backgroundColor;return t?new Oe(t).shade(20).toString():""}))}const Ka=(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":Ra(e).value||"","active-color":e.activeTextColor||"",level:`${t}`})))},ja=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}}),Da="ElSubMenu";var Wa=l({name:Da,props:ja,setup(e,{slots:t,expose:a}){const l=h(),{indexPath:n,parentMenu:r}=za(l,P((()=>e.index))),u=o("menu"),c=o("sub-menu"),d=f("rootMenu");d||N(Da,"can not inject root menu");const p=f(`subMenu:${r.value.uid}`);p||N(Da,"can not inject sub menu");const m=s({}),g=s({});let b;const y=s(!1),x=s(),_=s(),w=P((()=>"horizontal"===T.value&&M.value?"bottom-start":"right-start")),C=P((()=>"horizontal"===T.value&&M.value||"vertical"===T.value&&!d.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?A.value?e.expandOpenIcon:e.expandCloseIcon:ge:e.collapseCloseIcon&&e.collapseOpenIcon?A.value?e.collapseOpenIcon:e.collapseCloseIcon:z)),M=P((()=>0===p.level)),$=P((()=>{const t=e.teleported;return Fe(t)?M.value:t})),I=P((()=>d.props.collapse?`${u.namespace.value}-zoom-in-left`:`${u.namespace.value}-zoom-in-top`)),S=P((()=>"horizontal"===T.value&&M.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))),L=P((()=>[...Object.values(m.value),...Object.values(g.value)].some((({active:e})=>e)))),T=P((()=>d.props.mode)),B=P((()=>d.props.persistent)),O=ve({index:e.index,indexPath:n,active:L}),F=Ka(d.props,p.level+1),H=P((()=>{var t;return null!=(t=e.popperOffset)?t:d.props.popperOffset})),R=P((()=>{var t;return null!=(t=e.popperClass)?t:d.props.popperClass})),K=P((()=>{var t;return null!=(t=e.showTimeout)?t:d.props.showTimeout})),j=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:L.value})},G=(t,a=K.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}=Re((()=>{d.openMenu(e.index,n.value)}),a)),$.value&&(null==(l=r.value.vnode.el)||l.dispatchEvent(new MouseEvent("mouseenter")))))},X=(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}=Re((()=>!y.value&&d.closeMenu(e.index,n.value)),j.value)),$.value&&t&&(null==(a=p.handleMouseleave)||a.call(p,!0)))};E((()=>d.props.collapse),(e=>D(Boolean(e))));{const e=e=>{g.value[e.index]=e},t=e=>{delete g.value[e.index]};v(`subMenu:${l.uid}`,{addSubMenu:e,removeSubMenu:t,handleMouseleave:X,mouseInChild:y,level:p.level+1})}return a({opened:A}),i((()=>{d.addSubMenu(O),p.addSubMenu(O)})),He((()=>{p.removeSubMenu(O),d.removeSubMenu(O)})),()=>{var a;const n=[null==(a=t.title)?void 0:a.call(t),ze(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:()=>V(C.value)?ze(l.appContext.components[C.value]):ze(C.value)})],o=d.isMenuPopup?ze(_e,{ref:_,visible:A.value,effect:"light",pure:!0,offset:H.value,showArrow:!1,persistent:B.value,popperClass:R.value,placement:w.value,teleported:$.value,fallbackPlacements:S.value,transition:I.value,gpuAcceleration:!1},{content:()=>{var e;return ze("div",{class:[u.m(T.value),u.m("popup-container"),R.value],onMouseenter:e=>G(e,100),onMouseleave:()=>X(!0),onFocus:e=>G(e,100)},[ze("ul",{class:[u.b(),u.m("popup"),u.m(`popup-${w.value}`)],style:F.value},[null==(e=t.default)?void 0:e.call(t)])])},default:()=>ze("div",{class:c.e("title"),onClick:W},n)}):ze(oe,{},[ze("div",{class:c.e("title"),ref:x,onClick:W},n),ze(Yt,{},{default:()=>{var e;return q(ze("ul",{role:"menu",class:[u.b(),u.m("inline")],style:F.value},[null==(e=t.default)?void 0:e.call(t)]),[[U,A.value]])}})]);return ze("li",{class:[c.b(),c.is("active",L.value),c.is("opened",A.value),c.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:A.value,onMouseenter:G,onMouseleave:()=>X(),onFocus:G},[o])}}});const qa=e({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:m(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:()=>We},popperEffect:{type:m(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),Ua=e=>$(e)&&e.every((e=>V(e)));var Ga=l({name:"ElMenu",props:qa,emits:{close:(e,t)=>V(e)&&Ua(t),open:(e,t)=>V(e)&&Ua(t),select:(e,t,a,l)=>V(e)&&Ua(t)&&Ke(a)&&(Fe(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),m=s(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=s(e.defaultActive),g=s({}),b=s({}),y=P((()=>"horizontal"===e.mode||"vertical"===e.mode&&e.collapse)),x=(a,l)=>{m.value.includes(a)||(e.uniqueOpened&&(m.value=m.value.filter((e=>l.includes(e)))),m.value.push(a),t("open",a,l))},_=e=>{const t=m.value.indexOf(e);-1!==t&&m.value.splice(t,1)},w=(e,a)=>{_(e),t("close",e,a)},C=({index:e,indexPath:t})=>{m.value.includes(e)?w(e,t):x(e,t)},M=a=>{("horizontal"===e.mode||e.collapse)&&(m.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||(f.value=l),e)));t("select",l,n,{index:l,indexPath:n,route:e},o)}else f.value=l,t("select",l,n,{index:l,indexPath:n})},V=t=>{var a;const l=g.value,n=l[t]||f.value&&l[f.value]||l[e.defaultActive];f.value=null!=(a=null==n?void 0:n.index)?a:t},$=()=>{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 I=!0;const S=()=>{if(p.value===$())return;const e=()=>{p.value=-1,fe((()=>{p.value=$()}))};I?e():((e,t=33.34)=>{let a;return()=>{a&&clearTimeout(a),a=setTimeout((()=>{e()}),t)}})(e)(),I=!1};let A;E((()=>e.defaultActive),(e=>{g.value[e]||(f.value=""),V(e)})),E((()=>e.collapse),(e=>{e&&(m.value=[])})),E(g.value,(()=>{const t=f.value&&g.value[f.value];if(!t||"horizontal"===e.mode||e.collapse)return;t.indexPath.forEach((e=>{const t=b.value[e];t&&x(e,t.indexPath)}))})),ie((()=>{"horizontal"===e.mode&&e.ellipsis?A=je(u,S).stop:null==A||A()}));const L=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("rootMenu",ve({props:e,openedMenus:m,items:g,subMenus:b,activeIndex:f,isMenuPopup:y,addMenuItem:l,removeMenuItem:o,addSubMenu:t,removeSubMenu:a,openMenu:x,closeMenu:w,handleMenuItemClick:M,handleSubMenuClick:C})),v(`subMenu:${n.uid}`,{addSubMenu:t,removeSubMenu:a,mouseInChild:L,level:0})}i((()=>{"horizontal"===e.mode&&new Oa(n.vnode.el,c.namespace.value)}));l({open:e=>{const{indexPath:t}=b.value[e];t.forEach((e=>x(e,t)))},close:_,updateActiveIndex:V,handleResize:S});const T=Ka(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=De(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(ze(Wa,{index:"sub-menu-more",class:d.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>ze(k,{class:d.e("icon-more")},{default:()=>ze(e.ellipsisIcon)}),default:()=>l})))}const i=e.closeOnClickOutside?[[ke,()=>{m.value.length&&(L.value||(m.value.forEach((e=>{return t("close",e,(a=e,b.value[a].indexPath));var a})),m.value=[]))}]]:[],r=q(ze("ul",{key:String(e.collapse),role:"menubar",ref:u,style:T.value,class:{[c.b()]:!0,[c.m(e.mode)]:!0,[c.m("collapse")]:e.collapse}},[...o,...s]),i);return e.collapseTransition&&"vertical"===e.mode?ze(Ha,(()=>r)):r}}});const Xa=e({index:{type:m([String,null]),default:null},route:{type:m([String,Object])},disabled:Boolean}),Ya={click:e=>V(e.index)&&$(e.indexPath)},Za="ElMenuItem",Ja=l({name:Za});var Qa=a(l({...Ja,props:Xa,emits:Ya,setup(e,{expose:t,emit:a}){const l=e,n=h(),s=f("rootMenu"),v=o("menu"),m=o("menu-item");s||N(Za,"can not inject root menu");const{parentMenu:x,indexPath:k}=za(n,qe(l,"index")),_=f(`subMenu:${x.value.uid}`);_||N(Za,"can not inject sub menu");const w=P((()=>l.index===s.activeIndex)),C=ve({index:l.index,indexPath:k,active:w}),M=()=>{l.disabled||(s.handleMenuItemClick({index:l.index,indexPath:k.value,route:l.route}),a("click",C))};return i((()=>{_.addSubMenu(C),s.addMenuItem(C)})),He((()=>{_.removeSubMenu(C),s.removeMenuItem(C)})),t({parentMenu:x,rootMenu:s,active:w,nsMenu:v,nsMenuItem:m,handleClick:M}),(e,t)=>(u(),r("li",{class:p([d(m).b(),d(m).is("active",d(w)),d(m).is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:M},["ElMenu"===d(x).type.name&&d(s).props.collapse&&e.$slots.title?(u(),b(d(_e),{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(oe,{key:1},[c(e.$slots,"default"),c(e.$slots,"title")],64))],2))}}),[["__file","menu-item.vue"]]);const el={title:String},tl=l({name:"ElMenuItemGroup"});var al=a(l({...tl,props:el,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(oe,{key:0},[j(_(e.title),1)],64))],2),g("ul",null,[c(e.$slots,"default")])],2))}}),[["__file","menu-item-group.vue"]]);const ll=C(Ga,{MenuItem:Qa,MenuItemGroup:al,SubMenu:Wa}),nl=w(Qa);w(al);const ol=w(Wa),sl=Ue("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])}))}}})),il="/platformApi/pay_product/all";function rl(){return Ge({url:il,method:"get"})}const ul="/skfApi/payProduct/payProductList";function cl(){return Ge({url:ul,method:"get"})}const dl="/platformApi/status";function pl(e){return Ge({url:dl,method:"get",params:e})}const vl=Ue("pay_product",(()=>{const e=Xe(),t=Ye(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=rl;"admin"===n||"customer"===n&&(e=cl),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=Xe().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(["admin","customer"].includes(n)){(await Ze().generateRoutesAppend(o[0],"channel-management")).map((e=>{Je.addRoute("channel-management",e)}))}a(t.value.list||[])}))}return{products:t,loadPayProducts:a,refreshAddedRoute:function(){Je.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=>{Je.removeRoute(e.name)}))})),t.value.list=[],t.value.actualList=[],a())},loadStatus:function(){return new Promise((async e=>{if(!Object.keys(t.value.dictionary).length){let e=null;if("admin"===Xe().getLoginType()&&(e=pl),e){const a=await e();t.value.dictionary={status:Object.keys(a.order_status).map((e=>({label:a.order_status[e],value:e.toString()}))),payment_status:Object.keys(a.payment_order_status).map((e=>({label:a.payment_order_status[e],value:e.toString()})))}}}e(t.value.dictionary)}))},getDictionary:function(){return t.value.dictionary}}})),ml={class:"flex"},fl={class:"flex justify-center items-center h100% p10px"},hl={key:0,class:"reds"},gl={key:0},bl=dt(l({__name:"NavbarRight",setup(e){var t;const a=Qe(),l=et();sl();const n=Xe(),o=tt();ut();const c=rt(),p=s(!1),v=P((()=>l.device===at.MOBILE));lt();const m=ve({handle_order_status:null==(t=a.data.configInfo)?void 0:t.handle_order_status,msgList:[]}),f=s([]),h=s(!1),x=s(localStorage.getItem("msEimitateLogin")||localStorage.getItem("merEimitateLogin")||!1);function k(){it.confirm("确定注销并退出系统吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",lockScroll:!1}).then((()=>{localStorage.clear(),sessionStorage.clear(),c.push(`/login/${n.getLoginType()}`),localStorage.removeItem("msEimitateLogin"),localStorage.removeItem("merEimitateLogin"),a.setConfigInfo({}),window.location.reload()}))}return i((()=>{h.value=!0})),(e,t)=>{const l=Pt,s=Et,i=Lt,c=At,h=ta,w=ea,C=Ta,M=ot;return u(),r("div",ml,[d(v)?he("",!0):(u(),r(oe,{key:0},[],64)),K(i,{class:"setting-item",trigger:"click"},{dropdown:y((()=>[K(s,null,{default:y((()=>[K(l,{onClick:k},{default:y((()=>[j(_(e.$t("navbar.logout")),1)])),_:1})])),_:1})])),default:y((()=>[g("div",fl,[t[3]||(t[3]=g("img",{src:"/img/avatar.Dcbh69co.gif",class:"rounded-full mr-[10px] w24px w24px"},null,-1)),g("span",null,_(d(x)&&"admin"!=d(n).getLoginType()?"虚拟登录":"admin"===d(n).getLoginType()?d(n).user.info.username:"customer"===d(n).getLoginType()?d(n).user.info.ms_name:d(n).user.info.mer_name),1)])])),_:1}),d(nt).showSettings?(u(),r("div",{key:1,class:"setting-item",onClick:t[0]||(t[0]=e=>d(o).settingsVisible=!0)},[K(c,{"icon-class":"setting"})])):he("",!0),K(M,{title:"消息列表","destroy-on-close":!0,"close-on-click-modal":!1,modelValue:d(p),"onUpdate:modelValue":t[2]||(t[2]=e=>st(p)?p.value=e:null),width:"30%"},{default:y((()=>{var e;return[K(w,{modelValue:d(f),"onUpdate:modelValue":t[1]||(t[1]=e=>st(f)?f.value=e:null)},{default:y((()=>[(u(!0),r(oe,null,se(d(m).msgList,((e,l)=>(u(),b(h,{key:l,title:"消息通知",name:l,onClick:t=>{var l;2==(l=e).status&&("admin"===n.getLoginType()?ct({id:l.id}).then((e=>{a.setUnreadNum(a.data.unreadNum>=1?a.data.unreadNum-1:0),l.status=3})):readMsg1({id:l.id}).then((e=>{a.setUnreadNum(a.data.unreadNum>=1?a.data.unreadNum-1:0),l.status=3})))}},{title:y((()=>[2==e.status?(u(),r("span",hl)):he("",!0),t[4]||(t[4]=j(" 消息通知 "))])),default:y((()=>[g("div",null,_(e.message),1)])),_:2},1032,["name","onClick"])))),128))])),_:1},8,["modelValue"]),0==(null==(e=d(m).msgList)?void 0:e.length)?(u(),r("div",gl,[K(C,{"image-size":50})])):he("",!0)]})),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-3fb9a686"]]);function yl(e){if(pt.global.te("route."+e)){return pt.global.t("route."+e)}return e}const xl={class:"color-gray-400"},kl=dt(l({__name:"index",setup(e){const t=ut(),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))}return E((()=>t.path),(e=>{e.startsWith("/redirect/")||l()})),vt((()=>{l()})),(e,t)=>{const l=Kt,n=Rt;return u(),b(n,{class:"flex-y-center"},{default:y((()=>[K(mt,{"enter-active-class":"animate__animated animate__fadeInRight"},{default:y((()=>[(u(!0),r(oe,null,se(d(a),((e,t)=>(u(),b(l,{key:e.path},{default:y((()=>[g("span",xl,_(d(yl)(e.meta.title)),1)])),_:2},1024)))),128))])),_:1})])),_:1})}}}),[["__scopeId","data-v-bc75d252"]]),_l=dt(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=At;return u(),r("div",{class:"px-[15px] flex items-center justify-center color-[var(--el-text-color-regular)]",onClick:l},[K(n,{class:p(["hamburger",{"is-active":e.isActive}]),"icon-class":"indent-decrease"},null,8,["class"])])}}}),[["__scopeId","data-v-17cf5f5b"]]),wl={class:"flex"},Cl=l({__name:"NavbarLeft",setup(e){const t=et();function a(){t.toggleSidebar()}return(e,l)=>{const n=_l,o=kl;return u(),r("div",wl,[K(n,{"is-active":d(t).sidebar.opened,onToggleClick:a},null,8,["is-active"]),K(o)])}}}),Ml={class:"navbar-container"};const Vl=dt({},[["render",function(e,t){const a=Cl,l=bl;return u(),r("div",Ml,[K(a),K(l)])}],["__scopeId","data-v-9a30edb0"]]),$l={class:"flex flex-wrap justify-around w-full h-12"},Il=dt(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=_e;return u(),r("div",$l,[K(n,{content:"左侧模式",placement:"bottom"},{default:y((()=>[g("div",{class:p(["layout-item left",{"is-active":e.modelValue===d(ft).LEFT}]),onClick:a[0]||(a[0]=e=>l(d(ft).LEFT))},a[3]||(a[3]=[g("div",null,null,-1),g("div",null,null,-1)]),2)])),_:1}),K(n,{content:"顶部模式",placement:"bottom"},{default:y((()=>[g("div",{class:p(["layout-item top",{"is-active":e.modelValue===d(ft).TOP}]),onClick:a[1]||(a[1]=e=>l(d(ft).TOP))},a[4]||(a[4]=[g("div",null,null,-1),g("div",null,null,-1)]),2)])),_:1}),K(n,{content:"混合模式",placement:"bottom"},{default:y((()=>[g("div",{class:p(["layout-item mix",{"is-active":e.modelValue===d(ft).MIX}]),onClick:a[2]||(a[2]=e=>l(d(ft).MIX))},a[5]||(a[5]=[g("div",null,null,-1),g("div",null,null,-1)]),2)])),_:1})])}}}),[["__scopeId","data-v-d50a3d59"]]),Sl=dt(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 E(n,(e=>{a("update:modelValue",e)})),(e,t)=>{const a=Ma;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"]]),Al={class:"flex-center"},Ll={class:"settings-option"},El={class:"text-xs"},Pl={class:"settings-option"},Tl={class:"text-xs"},Bl={class:"settings-option"},Nl={class:"text-xs"},Ol={class:"settings-option"},Fl={class:"text-xs"},Hl={class:"settings-option"},zl={class:"text-xs"},Rl=dt(l({__name:"index",setup(e){const t=ut(),a=et(),l=tt(),n=Ze(),o=P({get:()=>l.settingsVisible,set(){l.settingsVisible=!1}});function i(e){l.changeThemeColor(e)}const r=s(l.theme===ht.DARK),c=e=>{r.value=e,l.changeTheme(r.value?ht.DARK:ht.LIGHT)};function p(e){l.changeLayout(e),e===ft.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===ft.TOP&&a.openSideBar()}return(e,t)=>{const a=gt,n=xt,s=Sl,v=Il,m=Sa;return u(),b(m,{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((()=>[K(a,null,{default:y((()=>[j(_(e.$t("settings.theme")),1)])),_:1}),g("div",Al,[K(n,{modelValue:d(r),"onUpdate:modelValue":t[0]||(t[0]=e=>st(r)?r.value=e:null),"active-icon":d(yt),"inactive-icon":d(bt),onChange:c},null,8,["modelValue","active-icon","inactive-icon"])]),K(a,null,{default:y((()=>[j(_(e.$t("settings.interface")),1)])),_:1}),g("div",Ll,[g("span",El,_(e.$t("settings.themeColor")),1),K(s,{modelValue:d(l).themeColor,"onUpdate:modelValue":[t[1]||(t[1]=e=>d(l).themeColor=e),i]},null,8,["modelValue"])]),g("div",Pl,[g("span",Tl,_(e.$t("settings.tagsView")),1),K(n,{modelValue:d(l).tagsView,"onUpdate:modelValue":t[2]||(t[2]=e=>d(l).tagsView=e)},null,8,["modelValue"])]),g("div",Bl,[g("span",Nl,_(e.$t("settings.fixedHeader")),1),K(n,{modelValue:d(l).fixedHeader,"onUpdate:modelValue":t[3]||(t[3]=e=>d(l).fixedHeader=e)},null,8,["modelValue"])]),g("div",Ol,[g("span",Fl,_(e.$t("settings.sidebarLogo")),1),K(n,{modelValue:d(l).sidebarLogo,"onUpdate:modelValue":t[4]||(t[4]=e=>d(l).sidebarLogo=e)},null,8,["modelValue"])]),g("div",Hl,[g("span",zl,_(e.$t("settings.watermark")),1),K(n,{modelValue:d(l).watermarkEnabled,"onUpdate:modelValue":t[5]||(t[5]=e=>d(l).watermarkEnabled=e)},null,8,["modelValue"])]),K(a,null,{default:y((()=>[j(_(e.$t("settings.navigation")),1)])),_:1}),K(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"]]),Kl={class:"app-main"},jl=dt(l({__name:"index",setup(e){const t=P((()=>sl().cachedViews));return(e,a)=>{const l=kt("router-view");return u(),r("section",Kl,[K(l,null,{default:y((({Component:e,route:a})=>[K(H,{"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"]]),Dl={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};const Wl={name:"ep-close",render:function(e,t){return u(),r("svg",Dl,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 ql(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Ul(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 Gl={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),ql(n),0!==n.length&&(t=n+"/"+t,a=47===n.charCodeAt(0))}return t=Ul(t,!a),a?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(ql(e),0===e.length)return".";var t=47===e.charCodeAt(0),a=47===e.charCodeAt(e.length-1);return 0!==(e=Ul(e,!t)).length||t||(e="."),e.length>0&&a&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return ql(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];ql(a),a.length>0&&(void 0===e?e=a:e+="/"+a)}return void 0===e?".":Gl.normalize(e)},relative:function(e,t){if(ql(e),ql(t),e===t)return"";if((e=Gl.resolve(e))===(t=Gl.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(ql(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');ql(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){ql(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){ql(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};Gl.posix=Gl;var Xl=Gl;const Yl=wt(Xl),Zl={class:"tags-container"},Jl=dt(l({__name:"index",setup(e){const{proxy:t}=h(),a=rt(),l=ut(),n=Ze(),o=sl(),c=et(),{visitedViews:v}=Ct(o),m=tt(),f=P((()=>m.layout)),x=s({path:"",fullPath:"",name:"",title:"",affix:!1,keepAlive:!1}),k=s([]),w=s(0),C=s(0);E(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}),I()}),{immediate:!0});const M=s(!1);function V(e,t="/"){let a=[];return e.forEach((e=>{var l,n,o,s;const i=Xl.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=V(e.children,t+e.path);l.length>=1&&(a=[...a,...l])}})),a}function $(){const e=V(n.routes);k.value=e;for(const t of e)t.name&&o.addVisitedView(t)}function I(){fe((()=>{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 S(e){return e.path===l.path}function A(e){return null==e?void 0:e.affix}function L(){try{return"/dashboard"===x.value.path||x.value.fullPath===o.visitedViews[1].fullPath}catch(e){return!1}}function T(){try{return x.value.fullPath===o.visitedViews[o.visitedViews.length-1].fullPath}catch(e){return!1}}function B(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 N(e){v.value.length>1&&o.delView(e).then((t=>{S(e)&&B(t.visitedViews,e)}))}function O(){o.delLeftViews(x.value).then((e=>{e.visitedViews.find((e=>e.path===l.path))||B(e.visitedViews)}))}function F(){o.delRightViews(x.value).then((e=>{e.visitedViews.find((e=>e.path===l.path))||B(e.visitedViews)}))}function H(){a.push(x.value),o.delOtherViews(x.value).then((()=>{I()}))}function z(){M.value=!1}function R(){z()}E(M,(e=>{e?document.body.addEventListener("click",z):document.body.removeEventListener("click",z)}));return E((()=>l.name),(e=>{e&&(e=>{if("mix"!==f.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((()=>{$()})),(e,l)=>{const n=Wl,s=kt("router-link"),i=Mt,c=At;return u(),r("div",Zl,[K(i,{class:"scroll-container",vertical:!1,onWheel:W(R,["prevent"])},{default:y((()=>[(u(!0),r(oe,null,se(d(v),(e=>(u(),b(s,{ref_for:!0,ref:"tagRef",key:e.fullPath,class:p(["tags-item",{active:S(e)}]),to:{path:e.path,query:e.query},onMouseup:W((t=>A(e)?"":N(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"===f.value?C.value=a.clientY-50:C.value=a.clientY,M.value=!0,x.value=e}(e,a)),["prevent"])},{default:y((()=>[j(_(d(yl)(e.title))+" ",1),A(e)?he("",!0):(u(),b(n,{key:0,class:"close-icon",size:"12px",onClick:W((t=>N(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;fe((()=>{a.replace({path:"/redirect"+t})}))}(d(x)))},[K(c,{"icon-class":"refresh"}),l[3]||(l[3]=j(" 刷新 "))]),A(d(x))?he("",!0):(u(),r("li",{key:0,onClick:l[1]||(l[1]=e=>N(d(x)))},[K(c,{"icon-class":"close"}),l[4]||(l[4]=j(" 关闭 "))])),g("li",{onClick:H},[K(c,{"icon-class":"close_other"}),l[5]||(l[5]=j(" 关闭其它 "))]),L()?he("",!0):(u(),r("li",{key:1,onClick:O},[K(c,{"icon-class":"close_left"}),l[6]||(l[6]=j(" 关闭左侧 "))])),T()?he("",!0):(u(),r("li",{key:2,onClick:F},[K(c,{"icon-class":"close_right"}),l[7]||(l[7]=j(" 关闭右侧 "))])),g("li",{onClick:l[2]||(l[2]=e=>{return t=d(x),void o.delAllViews().then((e=>{B(e.visitedViews,t)}));var t})},[K(c,{"icon-class":"close_all"}),l[8]||(l[8]=j(" 关闭所有 "))])],4),[[U,d(M)]])])}}}),[["__scopeId","data-v-05b66405"]]),Ql=l({name:"AppLink",inheritAttrs:!1,__name:"index",props:{to:{type:String,required:!0}},setup(e){const t=e,a=P((()=>Vt(t.to))),l=P((()=>a.value?"a":"router-link"));return(t,n)=>{return u(),b(x(d(l)),$t(It((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}}}),en=["title"],tn=dt(l({__name:"SidebarMenuItemTitle",props:{icon:{type:String,default:""},title:{type:String,default:""}},setup:e=>(t,a)=>{const l=k,n=At;return u(),r(oe,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(yl)(e.title),class:"ml-1 important-line-clamp-1 important-break-all"},_(d(yl)(e.title)),9,en)):he("",!0)],64)}}),[["__scopeId","data-v-11c6191d"]]),an={key:0},ln=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(Vt(e))return e;if(Vt(t.basePath))return t.basePath;return Yl.resolve(t.basePath,e)}return(t,o)=>{var s;const i=tn,c=nl,v=Ql,m=kt("SidebarMenuItem",!0),f=ol;return e.item.meta&&e.item.meta.hidden?he("",!0):(u(),r("div",an,[!l(e.item.children,e.item)||d(a).children&&!d(a).noShowingChildren||(null==(s=e.item.meta)?void 0:s.alwaysShow)?(u(),b(f,{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"])):he("",!0)])),default:y((()=>[(u(!0),r(oe,null,se(e.item.children,(e=>(u(),b(m,{key:e.path,"is-nest":!0,item:e,"base-path":n(e.path)},null,8,["item","base-path"])))),128))])),_:1},8,["index"])):(u(),r(oe,{key:0},[d(a).meta?(u(),b(v,{key:0,to:n(d(a).path),class:"important-line-clamp-1"},{default:y((()=>[K(c,{index:n(d(a).path),class:p({"submenu-title-noDropdown":!e.isNest})},{default:y((()=>[K(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"])):he("",!0)],64))]))}}}),nn={"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"},on=dt(l({__name:"SidebarMenu",props:{menuList:{required:!0,default:()=>[],type:Array},basePath:{type:String,required:!0}},setup(e){const t=tt(),a=et();vl();const l=ut(),n=P((()=>t.layout)),o=e;function s(e){if(Vt(e))return e;if(Vt(o.basePath))return o.basePath;return Yl.resolve(o.basePath,e)}function i(e){}return(t,o)=>{const c=ln,p=ll;return u(),b(p,{"default-active":d(l).path,collapse:!d(a).sidebar.opened,"background-color":d(nn)["menu-background"],"text-color":d(nn)["menu-text"],"active-text-color":d(nn)["menu-active-text"],"unique-opened":!1,"collapse-transition":!1,mode:"top"===d(n)?"horizontal":"vertical",onOpen:i},{default:y((()=>[(u(!0),r(oe,null,se(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-afda4fea"]]),sn={key:1},rn={key:0,class:"ml-1"},un=l({__name:"SidebarMixTopMenu",setup(e){const t=et(),a=Ze(),l=rt(),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=At,l=nl,s=ll,i=Mt;return u(),b(i,null,{default:y((()=>[K(s,{mode:"horizontal","default-active":d(n),"background-color":d(nn)["menu-background"],"text-color":d(nn)["menu-text"],"active-text-color":d(nn)["menu-active-text"],onSelect:c},{default:y((()=>[(u(!0),r(oe,null,se(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"])):he("",!0),"/"===e.path?(u(),r("span",sn," 首页 ")):(u(),r(oe,{key:2},[e.meta&&e.meta.title?(u(),r("span",rn,_(d(yl)(e.meta.title)),1)):he("",!0)],64))])),_:2},1032,["index"])))),128))])),_:1},8,["default-active","background-color","text-color","active-text-color"])])),_:1})}}}),cn={class:"logo-container"},dn=["src"],pn=["src"],vn={class:"logo-title"},mn=dt(l({__name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},setup(e){const t=tt(),a=s(new URL("/img/logo.w1nDwr-H.png",import.meta.url).href);return(l,n)=>{const o=kt("router-link");return u(),r("div",cn,[K(H,{"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,dn)):he("",!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,pn)):he("",!0),g("span",vn,_(d(t).getSystemName),1)])),_:1}))])),_:1})])}}}),[["__scopeId","data-v-b9238b34"]]),fn={key:0,class:"flex w-full"},hn=dt(l({__name:"index",setup(e){const t=et(),a=tt(),l=Ze(),n=P((()=>a.sidebarLogo)),o=P((()=>a.layout));return(e,a)=>{const s=mn,i=un,c=bl,v=on,m=Mt;return u(),r("div",{class:p({"has-logo":d(n)})},[d(o)==d(ft).MIX?(u(),r("div",fn,[d(n)?(u(),b(s,{key:0,collapse:!d(t).sidebar.opened},null,8,["collapse"])):he("",!0),K(i,{class:"flex-1"}),K(c)])):(u(),r(oe,{key:1},[d(n)?(u(),b(s,{key:0,collapse:!d(t).sidebar.opened},null,8,["collapse"])):he("",!0),K(m,null,{default:y((()=>[K(v,{"menu-list":d(l).routes,"base-path":""},null,8,["menu-list"])])),_:1}),d(o)===d(ft).TOP?(u(),b(c,{key:1})):he("",!0)],64))],2)}}}),[["__scopeId","data-v-66395518"]]),gn={key:1,class:"mix-container"},bn={class:"mix-container__left"},yn={class:"sidebar-toggle"},xn=dt(l({__name:"index",setup(e){const t=et(),a=tt(),l=Ze(),n=St().width,o=P((()=>t.device===at.MOBILE)),s=P((()=>t.sidebar.opened)),i=P((()=>a.fixedHeader)),c=P((()=>a.tagsView)),v=P((()=>a.layout)),m=P((()=>t.activeTopMenuPath)),f=P((()=>l.mixLeftMenus));E((()=>m.value),(e=>{l.setMixLeftMenus(e)}),{deep:!0,immediate:!0});const h=P((()=>({hideSidebar:!t.sidebar.opened,openSidebar:t.sidebar.opened,mobile:t.device===at.MOBILE,[`layout-${a.layout}`]:!0})));function y(){t.closeSideBar()}function x(){t.toggleSidebar()}ie((()=>{t.toggleDevice(n.value<992?at.MOBILE:at.DESKTOP),n.value>=992?t.openSideBar():t.closeSideBar()}));const k=ut();return E(k,(()=>{o.value&&s.value&&t.closeSideBar()})),(e,a)=>{const l=hn,n=on,k=_l,_=Jl,w=jl,C=Rl,M=Vl;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})):he("",!0),K(l,{class:"sidebar-container"}),d(v)===d(ft).MIX?(u(),r("div",gn,[g("div",bn,[K(n,{"menu-list":d(f),"base-path":d(m)},null,8,["menu-list","base-path"]),g("div",yn,[K(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})):he("",!0)],2),K(w),d(nt).showSettings?(u(),b(C,{key:0})):he("",!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(M,{key:0})):he("",!0),d(c)?(u(),b(_,{key:1})):he("",!0)],2),K(w),d(nt).showSettings?(u(),b(C,{key:0})):he("",!0)],2))],2)}}}),[["__scopeId","data-v-4691357d"]]);export{xn as default};