2 lines
76 KiB
JavaScript
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,p as i,o as r,c as u,e as c,f as d,g as p,n 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 S,U as I,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,L as H,T 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 Se,at as Ie,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 St,bj as It}from"./index.Dp_uSW6y.js";import{_ as At}from"./index.CftLazBh.js";import{E as Lt,a as Et,b as Pt}from"./el-dropdown-item.DBtzPq_3.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 i(Tt,t),r((()=>{const e=m.value.querySelectorAll(`.${l.e("item")}`);e.length&&e[e.length-1].setAttribute("aria-current","page")})),(e,t)=>(c(),u("div",{ref_key:"breadcrumb",ref:m,class:v(p(l).b()),"aria-label":p(a)("el.breadcrumb.label"),role:"navigation"},[d(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,r=s(),m=()=>{t.to&&i&&(t.replace?i.replace(t.to):i.push(t.to))};return(e,t)=>{var a,o;return c(),u("span",{class:v(p(n).e("item"))},[g("span",{ref_key:"link",ref:r,class:v([p(n).e("inner"),p(n).is("link",!!e.to)]),role:"link",onClick:m},[d(e.$slots,"default")],2),(null==(a=p(l))?void 0:a.separatorIcon)?(c(),b(p(k),{key:0,class:v(p(n).e("separator"))},{default:y((()=>[(c(),b(x(p(l).separatorIcon)))])),_:1},8,["class"])):(c(),u("span",{key:1,class:v(p(n).e("separator")),role:"presentation"},_(null==(o=p(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={[I]:jt,[S]:jt},qt=Symbol("collapseContextKey"),Ut="ElCollapse",Gt=l({name:"ElCollapse"});var Xt=a(l({...Gt,props:Dt,emits:Wt,setup(e,{expose:t,emit:a}){const l=e,{activeNames:n,setActiveNames:r}=((e,t)=>{const a=s(L(e.modelValue)),l=l=>{a.value=l;const n=e.accordion?a.value[0]:a.value;t(I,n),t(S,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}),i(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(Ut,"beforeCollapse must return type `Promise<boolean>` or `boolean`"),T(l)?l.then((e=>{!1!==e&&n(t)})).catch((e=>{O(Ut,`some error occurred: ${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:r}),(e,t)=>(c(),u("div",{class:v(p(m))},[d(e.$slots,"default")],2))}}),[["__file","collapse.vue"]]);const Yt=l({name:"ElCollapseTransition"});const Zt=C(a(l({...Yt,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)=>(c(),b(z,F({name:p(t).b()},H(l)),{default:y((()=>[d(e.$slots,"default")])),_:3},16,["name"]))}}),[["__file","collapse-transition.vue"]])),Jt=e({title:{type:String,default:""},name:{type:m([String,Number]),default:void 0},icon:{type:t,default:R},disabled:Boolean}),Qt=l({name:"ElCollapseItem"});var ea=a(l({...Qt,props:Jt,setup(e,{expose:t}){const a=e,{focusing:l,id:n,isActive:i,handleFocus:r,handleHeaderClick:m,handleEnterClick:h}=(e=>{const t=f(qt),{namespace:a}=o("collapse"),l=s(!1),n=s(!1),i=K(),r=P((()=>i.current++)),u=P((()=>{var t;return null!=(t=e.name)?t:`${a.value}-id-${i.prefix}-${p(r)}`})),c=P((()=>null==t?void 0:t.activeNames.value.includes(p(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(p(u)),l.value=!1,n.value=!0)},handleEnterClick:()=>{null==t||t.handleItemClick(p(u))}}})(a),{arrowKls:w,headKls:C,rootKls:M,itemTitleKls:V,itemWrapperKls:$,itemContentKls:S,scopedContentId:I,scopedHeadId:A}=((e,{focusing:t,isActive:a,id:l})=>{const n=o("collapse"),s=P((()=>[n.b("item"),n.is("active",p(a)),n.is("disabled",e.disabled)])),i=P((()=>[n.be("item","header"),n.is("active",p(a)),{focusing:p(t)&&!e.disabled}])),r=P((()=>[n.be("item","arrow"),n.is("active",p(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-${p(l)}`))),scopedHeadId:P((()=>n.b(`head-${p(l)}`)))}})(a,{focusing:l,isActive:i,id:n});return t({isActive:i}),(e,t)=>(c(),u("div",{class:v(p(M))},[g("button",{id:p(A),class:v(p(C)),"aria-expanded":p(i),"aria-controls":p(I),"aria-describedby":p(I),tabindex:e.disabled?-1:0,type:"button",onClick:p(m),onKeydown:W(q(p(h),["stop","prevent"]),["space","enter"]),onFocus:p(r),onBlur:e=>l.value=!1},[g("span",{class:v(p(V))},[d(e.$slots,"title",{isActive:p(i)},(()=>[D(_(e.title),1)]))],2),d(e.$slots,"icon",{isActive:p(i)},(()=>[j(p(k),{class:v(p(w))},{default:y((()=>[(c(),b(x(e.icon)))])),_:1},8,["class"])]))],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),j(p(Zt),null,{default:y((()=>[U(g("div",{id:p(I),role:"region",class:v(p($)),"aria-hidden":!p(i),"aria-labelledby":p(A)},[g("div",{class:v(p(S))},[d(e.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[G,p(i)]])])),_:3})],2))}}),[["__file","collapse-item.vue"]]);const ta=C(Xt,{CollapseItem:ea}),aa=w(ea),la=e({color:{type:m(Object),required:!0},vertical:{type:Boolean,default:!1}});let na=!1;function oa(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,na=!1,null==(n=t.end)||n.call(t,e)},n=function(e){var n;na||(e.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",a),document.addEventListener("mouseup",l),document.addEventListener("touchmove",a),document.addEventListener("touchend",l),na=!0,null==(n=t.start)||n.call(t,e))};e.addEventListener("mousedown",n),e.addEventListener("touchstart",n,{passive:!1})}const sa=(e,{bar:t,thumb:a,handleDrag:l})=>{const n=h(),i=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""}()}r((()=>{if(!t.value||!a.value)return;const e={drag:e=>{l(e)},end:e=>{l(e)}};oa(t.value,e),oa(a.value,e),p()})),E((()=>e.color.get("alpha")),(()=>p())),E((()=>e.color.value),(()=>p()));const v=P((()=>[i.b(),i.is("vertical",e.vertical)])),m=P((()=>i.e("bar"))),f=P((()=>i.e("thumb")));return{rootKls:v,barKls:m,barStyle:P((()=>({background:d.value}))),thumbKls:f,thumbStyle:P((()=>({left:Z(u.value),top:Z(c.value)}))),update:p}},ia=l({name:"ElColorAlphaSlider"});var ra=a(l({...ia,props:la,setup(e,{expose:t}){const a=e,{alpha:l,alphaLabel:o,bar:s,thumb:i,handleDrag:r,handleClick:d,handleKeydown:m}=(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:f,barKls:b,barStyle:y,thumbKls:x,thumbStyle:k,update:_}=sa(a,{bar:s,thumb:i,handleDrag:r});return t({update:_,bar:s,thumb:i}),(e,t)=>(c(),u("div",{class:v(p(f))},[g("div",{ref_key:"bar",ref:s,class:v(p(b)),style:ee(p(y)),onClick:p(d)},null,14,["onClick"]),g("div",{ref_key:"thumb",ref:i,class:v(p(x)),style:ee(p(k)),"aria-label":p(o),"aria-valuenow":p(l),"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":"0","aria-valuemax":"100",role:"slider",tabindex:"0",onKeydown:p(m)},null,46,["aria-label","aria-valuenow","aria-orientation","onKeydown"])],2))}}),[["__file","alpha-slider.vue"]]);var ua=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(),i=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(){i.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()})),r((()=>{if(!n.value||!l.value)return;const e={drag:e=>{d(e)},end:e=>{d(e)}};oa(n.value,e),oa(l.value,e),p()})),{bar:n,thumb:l,thumbLeft:i,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 c(),u("div",{class:v([e.ns.b(),e.ns.is("vertical",e.vertical)])},[g("div",{ref:"bar",class:v(e.ns.e("bar")),onClick:e.handleClick},null,10,["onClick"]),g("div",{ref:"thumb",class:v(e.ns.e("thumb")),style:ee({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}],["__file","hue-slider.vue"]]);const ca=e({modelValue:String,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:m(Array)},validateEvent:{type:Boolean,default:!0},...ae(["ariaLabel"])}),da={[I]:e=>V(e)||te(e),[S]:e=>V(e)||te(e),activeChange:e=>V(e)||te(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},pa=Symbol("colorPickerContextKey"),va=function(e,t,a){return[e,t*a/((e=(2-t)*a)<1?e:2-e)||0,e/2]},ma=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)},fa={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},ha=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),a=e%16;return`${fa[t]||t}${fa[a]||a}`},ga=function({r:e,g:t,b:a}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+a)?"":`#${ha(e)}${ha(t)}${ha(a)}`},ba={A:10,B:11,C:12,D:13,E:14,F:15},ya=function(e){return 2===e.length?16*(ba[e[0].toUpperCase()]||+e[0])+(ba[e[1].toUpperCase()]||+e[1]):ba[e[1].toUpperCase()]||+e[1]},xa=(e,t,a)=>{e=ma(e,255),t=ma(t,255),a=ma(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}},ka=function(e,t,a){e=6*ma(e,360),t=ma(t,100),a=ma(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 _a{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)oe(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)oe(e,a)&&this.set(a,e[a])}get(e){return"alpha"===e?Math.floor(this[`_${e}`]):this[`_${e}`]}toRgb(){return ka(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}=xa(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=ya(a[0]+a[0]),n=ya(a[1]+a[1]),o=ya(a[2]+a[2])):6!==a.length&&8!==a.length||(l=ya(a.slice(0,2)),n=ya(a.slice(2,4)),o=ya(a.slice(4,6))),8===a.length?this._alpha=ya(a.slice(6))/255*100:3!==a.length&&6!==a.length||(this._alpha=100);const{h:s,s:i,v:r}=xa(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=va(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=`${ga(ka(e,t,a))}${ha(255*l/100)}`;break;default:{const{r:l,g:n,b:o}=ka(e,t,a);this.value=`rgba(${l}, ${n}, ${o}, ${this.get("alpha")/100})`}}else switch(n){case"hsl":{const l=va(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}=ka(e,t,a);this.value=`rgb(${l}, ${n}, ${o})`;break}default:this.value=ga(ka(e,t,a))}}}var wa=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(pa),l=s(n(e.colors,e.color));function n(t,a){return t.map((t=>{const l=new _a;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 _a;t.fromString(e),l.value.forEach((e=>{e.selected=t.compare(e)}))})),re((()=>{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 c(),u("div",{class:v(e.ns.b())},[g("div",{class:v(e.ns.e("colors"))},[(c(!0),u(se,null,ie(e.rgbaColors,((t,a)=>(c(),u("div",{key:e.colors[a],class:v([e.ns.e("color-selector"),e.ns.is("alpha",t._alpha<100),{selected:t.selected}]),onClick:t=>e.handleSelect(a)},[g("div",{style:ee({backgroundColor:t.value})},null,4)],10,["onClick"])))),128))],2)],2)}],["__file","predefine.vue"]]);var Ca=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),i=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:r,clientHeight:u}=s;n.value=t*r/100,l.value=(100-o)*u/100,i.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 E((()=>u.value),(()=>{c()})),r((()=>{oa(a.vnode.el,{drag:e=>{d(e)},end:e=>{d(e)}}),c()})),{cursorTop:l,cursorLeft:n,background:i,colorValue:u,handleDrag:d,update:c,ns:t}}}),[["render",function(e,t,a,l,n,o){return c(),u("div",{class:v(e.ns.b()),style:ee({backgroundColor:e.background})},[g("div",{class:v(e.ns.e("white"))},null,2),g("div",{class:v(e.ns.e("black"))},null,2),g("div",{class:v(e.ns.e("cursor")),style:ee({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},[g("div")],6)],6)}],["__file","sv-panel.vue"]]);const Ma=l({name:"ElColorPicker"});const Va=C(a(l({...Ma,props:ca,emits:da,setup(e,{expose:t,emit:a}){const l=e,{t:d}=n(),m=o("color"),{formItem:f}=ue(),h=ce(),x=de(),{inputId:w,isLabeledByFormItem:C}=pe(l,{formItemContext:f}),M=s(),V=s(),$=s(),A=s(),L=s(),T=s(),{isFocused:B,handleFocus:N,handleBlur:H}=ve(L,{beforeFocus:()=>x.value,beforeBlur(e){var t;return null==(t=A.value)?void 0:t.isFocusInsideContent(e)},afterBlur(){le(!1),ie()}});let z=!0;const R=me(new _a({enableAlpha:l.showAlpha,format:l.colorFormat||"",value:l.modelValue})),K=s(!1),q=s(!1),X=s(""),Y=P((()=>l.modelValue||q.value?function(e,t){if(!(e instanceof _a))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})`}(R,l.showAlpha):"transparent")),Z=P((()=>l.modelValue||q.value?R.value:"")),Q=P((()=>C.value?void 0:l.ariaLabel||d("el.colorpicker.defaultLabel"))),te=P((()=>C.value?null==f?void 0:f.labelId:void 0)),ae=P((()=>[m.b("picker"),m.is("disabled",x.value),m.bm("picker",h.value),m.is("focused",B.value)]));function le(e){K.value=e}const ne=fe(le,100,{leading:!0});function oe(){x.value||le(!0)}function se(){ne(!1),ie()}function ie(){he((()=>{l.modelValue?R.fromString(l.modelValue):(R.value="",he((()=>{q.value=!1})))}))}function re(){x.value||(K.value&&ie(),ne(!K.value))}function Ce(){R.fromString(X.value)}function Me(){const e=R.value;a(I,e),a(S,e),l.validateEvent&&(null==f||f.validate("change").catch((e=>O(e)))),ne(!1),he((()=>{const e=new _a({enableAlpha:l.showAlpha,format:l.colorFormat||"",value:l.modelValue});R.compare(e)||ie()}))}function Ve(){ne(!1),a(I,null),a(S,null),null!==l.modelValue&&l.validateEvent&&(null==f||f.validate("change").catch((e=>O(e)))),ie()}function $e(){K.value&&(se(),B.value&&Ae())}function Se(e){e.preventDefault(),e.stopPropagation(),le(!1),ie()}function Ie(e){switch(e.code){case J.enter:case J.numpadEnter:case J.space:e.preventDefault(),e.stopPropagation(),oe(),T.value.focus();break;case J.esc:Se(e)}}function Ae(){L.value.focus()}return r((()=>{l.modelValue&&(X.value=Z.value)})),E((()=>l.modelValue),(e=>{e?e&&e!==R.value&&(z=!1,R.fromString(e)):q.value=!1})),E((()=>[l.colorFormat,l.showAlpha]),(()=>{R.enableAlpha=l.showAlpha,R.format=l.colorFormat||R.format,R.doOnChange(),a(I,R.value)})),E((()=>Z.value),(e=>{X.value=e,z&&a("activeChange",e),z=!0})),E((()=>R.value),(()=>{l.modelValue||q.value||(q.value=!0)})),E((()=>K.value),(()=>{he((()=>{var e,t,a;null==(e=M.value)||e.update(),null==(t=V.value)||t.update(),null==(a=$.value)||a.update()}))})),i(pa,{currentColor:Z}),t({color:R,show:oe,hide:se,focus:Ae,blur:function(){L.value.blur()}}),(e,t)=>(c(),b(p(we),{ref_key:"popper",ref:A,visible:K.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[p(m).be("picker","panel"),p(m).b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:e.teleported,transition:`${p(m).namespace.value}-zoom-in-top`,persistent:"",onHide:e=>le(!1)},{content:y((()=>[U((c(),u("div",{onKeydown:W(Se,["esc"])},[g("div",{class:v(p(m).be("dropdown","main-wrapper"))},[j(ua,{ref_key:"hue",ref:M,class:"hue-slider",color:p(R),vertical:""},null,8,["color"]),j(Ca,{ref_key:"sv",ref:V,color:p(R)},null,8,["color"])],2),e.showAlpha?(c(),b(ra,{key:0,ref_key:"alpha",ref:$,color:p(R)},null,8,["color"])):ge("v-if",!0),e.predefine?(c(),b(wa,{key:1,ref:"predefine","enable-alpha":e.showAlpha,color:p(R),colors:e.predefine},null,8,["enable-alpha","color","colors"])):ge("v-if",!0),g("div",{class:v(p(m).be("dropdown","btns"))},[g("span",{class:v(p(m).be("dropdown","value"))},[j(p(xe),{ref_key:"inputRef",ref:T,modelValue:X.value,"onUpdate:modelValue":e=>X.value=e,"validate-event":!1,size:"small",onKeyup:W(Ce,["enter"]),onBlur:Ce},null,8,["modelValue","onUpdate:modelValue","onKeyup"])],2),j(p(ke),{class:v(p(m).be("dropdown","link-btn")),text:"",size:"small",onClick:Ve},{default:y((()=>[D(_(p(d)("el.colorpicker.clear")),1)])),_:1},8,["class"]),j(p(ke),{plain:"",size:"small",class:v(p(m).be("dropdown","btn")),onClick:Me},{default:y((()=>[D(_(p(d)("el.colorpicker.confirm")),1)])),_:1},8,["class"])],2)],40,["onKeydown"])),[[p(_e),$e,L.value]])])),default:y((()=>[g("div",F({id:p(w),ref_key:"triggerRef",ref:L},e.$attrs,{class:p(ae),role:"button","aria-label":p(Q),"aria-labelledby":p(te),"aria-description":p(d)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":p(x),tabindex:p(x)?void 0:e.tabindex,onKeydown:Ie,onFocus:p(N),onBlur:p(H)}),[p(x)?(c(),u("div",{key:0,class:v(p(m).be("picker","mask"))},null,2)):ge("v-if",!0),g("div",{class:v(p(m).be("picker","trigger")),onClick:re},[g("span",{class:v([p(m).be("picker","color"),p(m).is("alpha",e.showAlpha)])},[g("span",{class:v(p(m).be("picker","color-inner")),style:ee({backgroundColor:p(Y)})},[U(j(p(k),{class:v([p(m).be("picker","icon"),p(m).is("icon-arrow-down")])},{default:y((()=>[j(p(be))])),_:1},8,["class"]),[[G,e.modelValue||q.value]]),U(j(p(k),{class:v([p(m).be("picker","empty"),p(m).is("icon-close")])},{default:y((()=>[j(p(ye))])),_:1},8,["class"]),[[G,!e.modelValue&&!q.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"]])),$a=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"}}),Sa=Ce,Ia=l({name:"ElDrawer",inheritAttrs:!1});const Aa=C(a(l({...Ia,props:$a,emits:Sa,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(),r=s(),m=o("drawer"),{t:f}=n(),{afterEnter:h,afterLeave:x,beforeLeave:w,visible:C,rendered:M,titleId:V,bodyId:$,zIndex:S,onModalClick:I,onOpenAutoFocus:A,onCloseAutoFocus:L,onFocusoutPrevented:E,onCloseRequested:T,handleClose:B}=Se(a,i),N=P((()=>"rtl"===a.direction||"ltr"===a.direction)),O=P((()=>Z(a.size)));return t({handleClose:B,afterEnter:h,afterLeave:x}),(e,t)=>(c(),b(p(Le),{to:e.appendTo,disabled:"body"===e.appendTo&&!e.appendToBody},{default:y((()=>[j(z,{name:p(m).b("fade"),onAfterEnter:p(h),onAfterLeave:p(x),onBeforeLeave:p(w),persisted:""},{default:y((()=>[U(j(p(Ie),{mask:e.modal,"overlay-class":e.modalClass,"z-index":p(S),onClick:p(I)},{default:y((()=>[j(p(Ae),{loop:"",trapped:p(C),"focus-trap-el":i.value,"focus-start-el":r.value,onFocusAfterTrapped:p(A),onFocusAfterReleased:p(L),onFocusoutPrevented:p(E),onReleaseRequested:p(T)},{default:y((()=>[g("div",F({ref_key:"drawerRef",ref:i,"aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:p(V),"aria-describedby":p($)},e.$attrs,{class:[p(m).b(),e.direction,p(C)&&"open"],style:p(N)?"width: "+p(O):"height: "+p(O),role:"dialog",onClick:q((()=>{}),["stop"])}),[g("span",{ref_key:"focusStartRef",ref:r,class:v(p(m).e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(c(),u("header",{key:0,class:v([p(m).e("header"),e.headerClass])},[e.$slots.title?d(e.$slots,"title",{key:1},(()=>[ge(" DEPRECATED SLOT ")])):d(e.$slots,"header",{key:0,close:p(B),titleId:p(V),titleClass:p(m).e("title")},(()=>[e.$slots.title?ge("v-if",!0):(c(),u("span",{key:0,id:p(V),role:"heading","aria-level":e.headerAriaLevel,class:v(p(m).e("title"))},_(e.title),11,["id","aria-level"]))])),e.showClose?(c(),u("button",{key:2,"aria-label":p(f)("el.drawer.close"),class:v(p(m).e("close-btn")),type:"button",onClick:p(B)},[j(p(k),{class:v(p(m).e("close"))},{default:y((()=>[j(p(ye))])),_:1},8,["class"])],10,["aria-label","onClick"])):ge("v-if",!0)],2)):ge("v-if",!0),p(M)?(c(),u("div",{key:1,id:p($),class:v([p(m).e("body"),e.bodyClass])},[d(e.$slots,"default")],10,["id"])):ge("v-if",!0),e.$slots.footer?(c(),u("div",{key:2,class:v([p(m).e("footer"),e.footerClass])},[d(e.$slots,"footer")],2)):ge("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])])),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])])),_:3},8,["mask","overlay-class","z-index","onClick"]),[[G,p(C)]])])),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])])),_:3},8,["to","disabled"]))}}),[["__file","drawer.vue"]])),La=l({name:"ImgEmpty"});var Ea=a(l({...La,setup(e){const t=o("empty"),a=Ee();return(e,l)=>(c(),u("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-${p(a)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[g("stop",{"stop-color":`var(${p(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),g("stop",{"stop-color":`var(${p(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),g("linearGradient",{id:`linearGradient-2-${p(a)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[g("stop",{"stop-color":`var(${p(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),g("stop",{"stop-color":`var(${p(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),g("rect",{id:`path-3-${p(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(${p(t).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),g("polygon",{fill:`var(${p(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(${p(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(${p(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-${p(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(${p(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-${p(a)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),g("g",{transform:"translate(53.000000, 45.000000)"},[g("use",{fill:`var(${p(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${p(a)}`},null,8,["fill","xlink:href"]),g("polygon",{fill:`var(${p(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${p(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(${p(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 Pa=e({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),Ta=l({name:"ElEmpty"});const Ba=C(a(l({...Ta,props:Pa,setup(e){const t=e,{t:a}=n(),l=o("empty"),s=P((()=>t.description||a("el.table.emptyText"))),i=P((()=>({width:Z(t.imageSize)})));return(e,t)=>(c(),u("div",{class:v(p(l).b())},[g("div",{class:v(p(l).e("image")),style:ee(p(i))},[e.image?(c(),u("img",{key:0,src:e.image,ondragstart:"return false"},null,8,["src"])):d(e.$slots,"image",{key:1},(()=>[j(Ea)]))],6),g("div",{class:v(p(l).e("description"))},[e.$slots.description?d(e.$slots,"description",{key:0}):(c(),u("p",{key:1},_(p(s)),1))],2),e.$slots.default?(c(),u("div",{key:0,class:v(p(l).e("bottom"))},[d(e.$slots,"default")],2)):ge("v-if",!0)],2))}}),[["__file","empty.vue"]]));let Na=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:Pe(e,"mouseleave");break;case J.enter:case J.numpadEnter:case J.space:a=!0,t.currentTarget.click()}return a&&(t.preventDefault(),t.stopPropagation()),!1}))}))}},Oa=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 Na(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",(e=>{let t=!1;switch(e.code){case J.down:Pe(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),t=!0;break;case J.up:Pe(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),t=!0;break;case J.tab:Pe(e.currentTarget,"mouseleave");break;case J.enter:case J.numpadEnter:case J.space:t=!0,e.currentTarget.click()}t&&e.preventDefault()}))}},Fa=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 Oa(t,e)}))}};const Ha=l({name:"ElMenuCollapseTransition"});var za=a(l({...Ha,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)=>(c(),b(z,F({mode:"out-in"},p(a)),{default:y((()=>[d(e.$slots,"default")])),_:3},16))}}),[["__file","menu-collapse-transition.vue"]]);function Ra(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 Ka(e){return P((()=>{const t=e.backgroundColor;return t?new Oe(t).shade(20).toString():""}))}const ja=(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":Ka(e).value||"","active-color":e.activeTextColor||"",level:`${t}`})))},Da=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}}),Wa="ElSubMenu";var qa=l({name:Wa,props:Da,setup(e,{slots:t,expose:a}){const l=h(),{indexPath:n,parentMenu:u}=Ra(l,P((()=>e.index))),c=o("menu"),d=o("sub-menu"),p=f("rootMenu");p||N(Wa,"can not inject root menu");const v=f(`subMenu:${u.value.uid}`);v||N(Wa,"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&&!p.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?A.value?e.expandOpenIcon:e.expandCloseIcon:be:e.collapseCloseIcon&&e.collapseOpenIcon?A.value?e.collapseOpenIcon:e.collapseCloseIcon:R)),M=P((()=>0===v.level)),$=P((()=>{const t=e.teleported;return Fe(t)?M.value:t})),S=P((()=>p.props.collapse?`${c.namespace.value}-zoom-in-left`:`${c.namespace.value}-zoom-in-top`)),I=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((()=>p.openedMenus.includes(e.index))),L=P((()=>[...Object.values(m.value),...Object.values(g.value)].some((({active:e})=>e)))),T=P((()=>p.props.mode)),B=P((()=>p.props.persistent)),O=me({index:e.index,indexPath:n,active:L}),F=ja(p.props,v.level+1),H=P((()=>{var t;return null!=(t=e.popperOffset)?t:p.props.popperOffset})),z=P((()=>{var t;return null!=(t=e.popperClass)?t:p.props.popperClass})),K=P((()=>{var t;return null!=(t=e.showTimeout)?t:p.props.showTimeout})),j=P((()=>{var t;return null!=(t=e.hideTimeout)?t:p.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"===p.props.menuTrigger&&"horizontal"===p.props.mode||p.props.collapse&&"vertical"===p.props.mode||e.disabled||p.handleSubMenuClick({index:e.index,indexPath:n.value,active:L.value})},q=(t,a=K.value)=>{var l;"focus"!==t.type&&("click"===p.props.menuTrigger&&"horizontal"===p.props.mode||!p.props.collapse&&"vertical"===p.props.mode||e.disabled?v.mouseInChild.value=!0:(v.mouseInChild.value=!0,null==b||b(),({stop:b}=Re((()=>{p.openMenu(e.index,n.value)}),a)),$.value&&(null==(l=u.value.vnode.el)||l.dispatchEvent(new MouseEvent("mouseenter")))))},X=(t=!1)=>{var a;"click"===p.props.menuTrigger&&"horizontal"===p.props.mode||!p.props.collapse&&"vertical"===p.props.mode?v.mouseInChild.value=!1:(null==b||b(),v.mouseInChild.value=!1,({stop:b}=Re((()=>!y.value&&p.closeMenu(e.index,n.value)),j.value)),$.value&&t&&(null==(a=v.handleMouseleave)||a.call(v,!0)))};E((()=>p.props.collapse),(e=>D(Boolean(e))));{const e=e=>{g.value[e.index]=e},t=e=>{delete g.value[e.index]};i(`subMenu:${l.uid}`,{addSubMenu:e,removeSubMenu:t,handleMouseleave:X,mouseInChild:y,level:v.level+1})}return a({opened:A}),r((()=>{p.addSubMenu(O),v.addSubMenu(O)})),He((()=>{v.removeSubMenu(O),p.removeSubMenu(O)})),()=>{var a;const n=[null==(a=t.title)?void 0:a.call(t),ze(k,{class:d.e("icon-arrow"),style:{transform:A.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&p.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>V(C.value)?ze(l.appContext.components[C.value]):ze(C.value)})],o=p.isMenuPopup?ze(we,{ref:_,visible:A.value,effect:"light",pure:!0,offset:H.value,showArrow:!1,persistent:B.value,popperClass:z.value,placement:w.value,teleported:$.value,fallbackPlacements:I.value,transition:S.value,gpuAcceleration:!1},{content:()=>{var e;return ze("div",{class:[c.m(T.value),c.m("popup-container"),z.value],onMouseenter:e=>q(e,100),onMouseleave:()=>X(!0),onFocus:e=>q(e,100)},[ze("ul",{class:[c.b(),c.m("popup"),c.m(`popup-${w.value}`)],style:F.value},[null==(e=t.default)?void 0:e.call(t)])])},default:()=>ze("div",{class:d.e("title"),onClick:W},n)}):ze(se,{},[ze("div",{class:d.e("title"),ref:x,onClick:W},n),ze(Zt,{},{default:()=>{var e;return U(ze("ul",{role:"menu",class:[c.b(),c.m("inline")],style:F.value},[null==(e=t.default)?void 0:e.call(t)]),[[G,A.value]])}})]);return ze("li",{class:[d.b(),d.is("active",L.value),d.is("opened",A.value),d.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:A.value,onMouseenter:q,onMouseleave:()=>X(),onFocus:q},[o])}}});const Ua=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}}),Ga=e=>$(e)&&e.every((e=>V(e)));var Xa=l({name:"ElMenu",props:Ua,emits:{close:(e,t)=>V(e)&&Ga(t),open:(e,t)=>V(e)&&Ga(t),select:(e,t,a,l)=>V(e)&&Ga(t)&&Ke(a)&&(Fe(l)||l instanceof Promise)},setup(e,{emit:t,slots:a,expose:l}){const n=h(),u=n.appContext.config.globalProperties.$router,c=s(),d=o("menu"),p=o("sub-menu"),v=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(!te(l)&&!te(n))if(e.router&&u){const e=a.route||l,o=u.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(!c.value)return-1;const a=Array.from(null!=(t=null==(e=c.value)?void 0:e.childNodes)?t:[]).filter((e=>"#text"!==e.nodeName||e.nodeValue)),l=getComputedStyle(c.value),n=Number.parseInt(l.paddingLeft,10),o=Number.parseInt(l.paddingRight,10),s=c.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 S=!0;const I=()=>{if(v.value===$())return;const e=()=>{v.value=-1,he((()=>{v.value=$()}))};S?e():((e,t=33.34)=>{let a;return()=>{a&&clearTimeout(a),a=setTimeout((()=>{e()}),t)}})(e)(),S=!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)}))})),re((()=>{"horizontal"===e.mode&&e.ellipsis?A=je(c,I).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]};i("rootMenu",me({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})),i(`subMenu:${n.uid}`,{addSubMenu:t,removeSubMenu:a,mouseInChild:L,level:0})}r((()=>{"horizontal"===e.mode&&new Fa(n.vnode.el,d.namespace.value)}));l({open:e=>{const{indexPath:t}=b.value[e];t.forEach((e=>x(e,t)))},close:_,updateActiveIndex:V,handleResize:I});const T=ja(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&&c.value){const t=De(o),a=-1===v.value?t:t.slice(0,v.value),l=-1===v.value?[]:t.slice(v.value);(null==l?void 0:l.length)&&e.ellipsis&&(o=a,s.push(ze(qa,{index:"sub-menu-more",class:p.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>ze(k,{class:p.e("icon-more")},{default:()=>ze(e.ellipsisIcon)}),default:()=>l})))}const i=e.closeOnClickOutside?[[_e,()=>{m.value.length&&(L.value||(m.value.forEach((e=>{return t("close",e,(a=e,b.value[a].indexPath));var a})),m.value=[]))}]]:[],r=U(ze("ul",{key:String(e.collapse),role:"menubar",ref:c,style:T.value,class:{[d.b()]:!0,[d.m(e.mode)]:!0,[d.m("collapse")]:e.collapse}},[...o,...s]),i);return e.collapseTransition&&"vertical"===e.mode?ze(za,(()=>r)):r}}});const Ya=e({index:{type:m([String,null]),default:null},route:{type:m([String,Object])},disabled:Boolean}),Za={click:e=>V(e.index)&&$(e.indexPath)},Ja="ElMenuItem",Qa=l({name:Ja});var el=a(l({...Qa,props:Ya,emits:Za,setup(e,{expose:t,emit:a}){const l=e,n=h(),s=f("rootMenu"),i=o("menu"),m=o("menu-item");s||N(Ja,"can not inject root menu");const{parentMenu:x,indexPath:k}=Ra(n,qe(l,"index")),_=f(`subMenu:${x.value.uid}`);_||N(Ja,"can not inject sub menu");const w=P((()=>l.index===s.activeIndex)),C=me({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 r((()=>{_.addSubMenu(C),s.addMenuItem(C)})),He((()=>{_.removeSubMenu(C),s.removeMenuItem(C)})),t({parentMenu:x,rootMenu:s,active:w,nsMenu:i,nsMenuItem:m,handleClick:M}),(e,t)=>(c(),u("li",{class:v([p(m).b(),p(m).is("active",p(w)),p(m).is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:M},["ElMenu"===p(x).type.name&&p(s).props.collapse&&e.$slots.title?(c(),b(p(we),{key:0,effect:p(s).props.popperEffect,placement:"right","fallback-placements":["left"],persistent:p(s).props.persistent},{content:y((()=>[d(e.$slots,"title")])),default:y((()=>[g("div",{class:v(p(i).be("tooltip","trigger"))},[d(e.$slots,"default")],2)])),_:3},8,["effect","persistent"])):(c(),u(se,{key:1},[d(e.$slots,"default"),d(e.$slots,"title")],64))],2))}}),[["__file","menu-item.vue"]]);const tl={title:String},al=l({name:"ElMenuItemGroup"});var ll=a(l({...al,props:tl,setup(e){const t=o("menu-item-group");return(e,a)=>(c(),u("li",{class:v(p(t).b())},[g("div",{class:v(p(t).e("title"))},[e.$slots.title?d(e.$slots,"title",{key:1}):(c(),u(se,{key:0},[D(_(e.title),1)],64))],2),g("ul",null,[d(e.$slots,"default")])],2))}}),[["__file","menu-item-group.vue"]]);const nl=C(Xa,{MenuItem:el,MenuItemGroup:ll,SubMenu:qa}),ol=w(el);w(ll);const sl=w(qa),il=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])}))}}})),rl="/platformApi/pay_product/all";function ul(){return Ge({url:rl,method:"get"})}const cl="/skfApi/payProduct/payProductList";function dl(){return Ge({url:cl,method:"get"})}const pl="/platformApi/status";function vl(e){return Ge({url:pl,method:"get",params:e})}const ml=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=ul;"admin"===n||"customer"===n&&(e=dl),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=vl),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}}})),fl={class:"flex"},hl={class:"flex justify-center items-center h100% p10px"},gl={key:0,class:"reds"},bl={key:0},yl=dt(l({__name:"NavbarRight",setup(e){var t;const a=Qe(),l=et();il();const n=Xe(),o=tt();console.log("nav-userStore",n),at();const i=lt(),d=s(!1),v=P((()=>l.device===nt.MOBILE));ot();const m=me({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(){ut.confirm("确定注销并退出系统吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",lockScroll:!1}).then((()=>{localStorage.clear(),sessionStorage.clear(),i.push(`/login/${n.getLoginType()}`),localStorage.removeItem("msEimitateLogin"),localStorage.removeItem("merEimitateLogin"),a.setConfigInfo({}),window.location.reload()}))}return r((()=>{h.value=!0})),(e,t)=>{const l=Pt,s=Et,i=Lt,r=At,h=aa,w=ta,C=Ba,M=it;return c(),u("div",fl,[p(v)?ge("",!0):(c(),u(se,{key:0},[],64)),j(i,{class:"setting-item",trigger:"click"},{dropdown:y((()=>[j(s,null,{default:y((()=>[j(l,{onClick:k},{default:y((()=>[D(_(e.$t("navbar.logout")),1)])),_:1})])),_:1})])),default:y((()=>[g("div",hl,[t[3]||(t[3]=g("img",{src:"/img/avatar.Dcbh69co.gif",class:"rounded-full mr-[10px] w24px w24px"},null,-1)),g("span",null,_(p(x)&&"admin"!=p(n).getLoginType()?"虚拟登录":"admin"===p(n).getLoginType()?p(n).user.info.username:"customer"===p(n).getLoginType()?p(n).user.info.ms_name:p(n).user.info.mer_name),1)])])),_:1}),p(st).showSettings?(c(),u("div",{key:1,class:"setting-item",onClick:t[0]||(t[0]=e=>p(o).settingsVisible=!0)},[j(r,{"icon-class":"setting"})])):ge("",!0),j(M,{title:"消息列表","destroy-on-close":!0,"close-on-click-modal":!1,modelValue:p(d),"onUpdate:modelValue":t[2]||(t[2]=e=>rt(d)?d.value=e:null),width:"30%"},{default:y((()=>{var e;return[j(w,{modelValue:p(f),"onUpdate:modelValue":t[1]||(t[1]=e=>rt(f)?f.value=e:null)},{default:y((()=>[(c(!0),u(se,null,ie(p(m).msgList,((e,l)=>(c(),b(h,{key:l,title:"消息通知",name:l,onClick:t=>{return l=e,console.log(l),void(2==l.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}))));var l}},{title:y((()=>[2==e.status?(c(),u("span",gl)):ge("",!0),t[4]||(t[4]=D(" 消息通知 "))])),default:y((()=>[g("div",null,_(e.message),1)])),_:2},1032,["name","onClick"])))),128))])),_:1},8,["modelValue"]),0==(null==(e=p(m).msgList)?void 0:e.length)?(c(),u("div",bl,[j(C,{"image-size":50})])):ge("",!0)]})),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-3fb9a686"]]);function xl(e){if(pt.global.te("route."+e)){return pt.global.t("route."+e)}return e}const kl={class:"color-gray-400"},_l=dt(l({__name:"index",setup(e){const t=at(),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 c(),b(n,{class:"flex-y-center"},{default:y((()=>[j(mt,{"enter-active-class":"animate__animated animate__fadeInRight"},{default:y((()=>[(c(!0),u(se,null,ie(p(a),((e,t)=>(c(),b(l,{key:e.path},{default:y((()=>[g("span",kl,_(p(xl)(e.meta.title)),1)])),_:2},1024)))),128))])),_:1})])),_:1})}}}),[["__scopeId","data-v-bc75d252"]]),wl=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 c(),u("div",{class:"px-[15px] flex items-center justify-center color-[var(--el-text-color-regular)]",onClick:l},[j(n,{class:v(["hamburger",{"is-active":e.isActive}]),"icon-class":"indent-decrease"},null,8,["class"])])}}}),[["__scopeId","data-v-17cf5f5b"]]),Cl={class:"flex"},Ml=l({__name:"NavbarLeft",setup(e){const t=et();function a(){t.toggleSidebar()}return(e,l)=>{const n=wl,o=_l;return c(),u("div",Cl,[j(n,{"is-active":p(t).sidebar.opened,onToggleClick:a},null,8,["is-active"]),j(o)])}}}),Vl={class:"navbar-container"};const $l=dt({},[["render",function(e,t){const a=Ml,l=yl;return c(),u("div",Vl,[j(a),j(l)])}],["__scopeId","data-v-9a30edb0"]]),Sl={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=we;return c(),u("div",Sl,[j(n,{content:"左侧模式",placement:"bottom"},{default:y((()=>[g("div",{class:v(["layout-item left",{"is-active":e.modelValue===p(ft).LEFT}]),onClick:a[0]||(a[0]=e=>l(p(ft).LEFT))},a[3]||(a[3]=[g("div",null,null,-1),g("div",null,null,-1)]),2)])),_:1}),j(n,{content:"顶部模式",placement:"bottom"},{default:y((()=>[g("div",{class:v(["layout-item top",{"is-active":e.modelValue===p(ft).TOP}]),onClick:a[1]||(a[1]=e=>l(p(ft).TOP))},a[4]||(a[4]=[g("div",null,null,-1),g("div",null,null,-1)]),2)])),_:1}),j(n,{content:"混合模式",placement:"bottom"},{default:y((()=>[g("div",{class:v(["layout-item mix",{"is-active":e.modelValue===p(ft).MIX}]),onClick:a[2]||(a[2]=e=>l(p(ft).MIX))},a[5]||(a[5]=[g("div",null,null,-1),g("div",null,null,-1)]),2)])),_:1})])}}}),[["__scopeId","data-v-d50a3d59"]]),Al=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=Va;return c(),b(a,{modelValue:p(n),"onUpdate:modelValue":t[0]||(t[0]=e=>rt(n)?n.value=e:null),predefine:l,"popper-class":"theme-picker-dropdown"},null,8,["modelValue"])}}}),[["__scopeId","data-v-ba641afc"]]),Ll={class:"flex-center"},El={class:"settings-option"},Pl={class:"text-xs"},Tl={class:"settings-option"},Bl={class:"text-xs"},Nl={class:"settings-option"},Ol={class:"text-xs"},Fl={class:"settings-option"},Hl={class:"text-xs"},zl={class:"settings-option"},Rl={class:"text-xs"},Kl=dt(l({__name:"index",setup(e){const t=at(),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),u=e=>{r.value=e,l.changeTheme(r.value?ht.DARK:ht.LIGHT)};function d(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=Al,v=Il,m=Aa;return c(),b(m,{modelValue:p(o),"onUpdate:modelValue":t[7]||(t[7]=e=>rt(o)?o.value=e:null),size:"300",title:e.$t("settings.project")},{default:y((()=>[j(a,null,{default:y((()=>[D(_(e.$t("settings.theme")),1)])),_:1}),g("div",Ll,[j(n,{modelValue:p(r),"onUpdate:modelValue":t[0]||(t[0]=e=>rt(r)?r.value=e:null),"active-icon":p(yt),"inactive-icon":p(bt),onChange:u},null,8,["modelValue","active-icon","inactive-icon"])]),j(a,null,{default:y((()=>[D(_(e.$t("settings.interface")),1)])),_:1}),g("div",El,[g("span",Pl,_(e.$t("settings.themeColor")),1),j(s,{modelValue:p(l).themeColor,"onUpdate:modelValue":[t[1]||(t[1]=e=>p(l).themeColor=e),i]},null,8,["modelValue"])]),g("div",Tl,[g("span",Bl,_(e.$t("settings.tagsView")),1),j(n,{modelValue:p(l).tagsView,"onUpdate:modelValue":t[2]||(t[2]=e=>p(l).tagsView=e)},null,8,["modelValue"])]),g("div",Nl,[g("span",Ol,_(e.$t("settings.fixedHeader")),1),j(n,{modelValue:p(l).fixedHeader,"onUpdate:modelValue":t[3]||(t[3]=e=>p(l).fixedHeader=e)},null,8,["modelValue"])]),g("div",Fl,[g("span",Hl,_(e.$t("settings.sidebarLogo")),1),j(n,{modelValue:p(l).sidebarLogo,"onUpdate:modelValue":t[4]||(t[4]=e=>p(l).sidebarLogo=e)},null,8,["modelValue"])]),g("div",zl,[g("span",Rl,_(e.$t("settings.watermark")),1),j(n,{modelValue:p(l).watermarkEnabled,"onUpdate:modelValue":t[5]||(t[5]=e=>p(l).watermarkEnabled=e)},null,8,["modelValue"])]),j(a,null,{default:y((()=>[D(_(e.$t("settings.navigation")),1)])),_:1}),j(v,{modelValue:p(l).layout,"onUpdate:modelValue":[t[6]||(t[6]=e=>p(l).layout=e),d]},null,8,["modelValue"])])),_:1},8,["modelValue","title"])}}}),[["__scopeId","data-v-ba435d62"]]),jl={class:"app-main"},Dl=dt(l({__name:"index",setup(e){const t=P((()=>il().cachedViews));return(e,a)=>{const l=kt("router-view");return c(),u("section",jl,[j(l,null,{default:y((({Component:e,route:a})=>[j(z,{"enter-active-class":"animate__animated animate__fadeIn",mode:"out-in"},{default:y((()=>[(c(),b(_t,{include:t.value},[(c(),b(x(e),{key:a.path}))],1032,["include"]))])),_:2},1024)])),_:1})])}}}),[["__scopeId","data-v-932329df"]]),Wl={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};const ql={name:"ep-close",render:function(e,t){return c(),u("svg",Wl,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 Ul(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Gl(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 Xl={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),Ul(n),0!==n.length&&(t=n+"/"+t,a=47===n.charCodeAt(0))}return t=Gl(t,!a),a?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(Ul(e),0===e.length)return".";var t=47===e.charCodeAt(0),a=47===e.charCodeAt(e.length-1);return 0!==(e=Gl(e,!t)).length||t||(e="."),e.length>0&&a&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return Ul(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];Ul(a),a.length>0&&(void 0===e?e=a:e+="/"+a)}return void 0===e?".":Xl.normalize(e)},relative:function(e,t){if(Ul(e),Ul(t),e===t)return"";if((e=Xl.resolve(e))===(t=Xl.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(Ul(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');Ul(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){Ul(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){Ul(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};Xl.posix=Xl;var Yl=Xl;const Zl=wt(Yl),Jl={class:"tags-container"},Ql=dt(l({__name:"index",setup(e){const{proxy:t}=h(),a=lt(),l=at(),n=Ze(),o=il(),i=et(),{visitedViews:d}=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}),S()}),{immediate:!0});const M=s(!1);function V(e,t="/"){let a=[];return e.forEach((e=>{var l,n,o,s;const i=Yl.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 S(){he((()=>{var e,t;for(const a of d.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 I(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){d.value.length>1&&o.delView(e).then((t=>{I(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((()=>{S()}))}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);i.activeTopMenu!==t.path&&i.activeTopMenu(t.path)})(e)}),{deep:!0}),r((()=>{$()})),(e,l)=>{const n=ql,s=kt("router-link"),i=Mt,r=At;return c(),u("div",Jl,[j(i,{class:"scroll-container",vertical:!1,onWheel:q(R,["prevent"])},{default:y((()=>[(c(!0),u(se,null,ie(p(d),(e=>(c(),b(s,{ref_for:!0,ref:"tagRef",key:e.fullPath,class:v(["tags-item",{active:I(e)}]),to:{path:e.path,query:e.query},onMouseup:q((t=>A(e)?"":N(e)),["middle"]),onContextmenu:q((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((()=>[D(_(p(xl)(e.title))+" ",1),A(e)?ge("",!0):(c(),b(n,{key:0,class:"close-icon",size:"12px",onClick:q((t=>N(e)),["prevent","stop"])},null,8,["onClick"]))])),_:2},1032,["class","to","onMouseup","onContextmenu"])))),128))])),_:1}),U(g("ul",{class:"contextmenu",style:ee({left:p(w)+"px",top:p(C)+"px"})},[g("li",{onClick:l[0]||(l[0]=e=>function(e){o.delCachedView(e);const{fullPath:t}=e;he((()=>{a.replace({path:"/redirect"+t})}))}(p(x)))},[j(r,{"icon-class":"refresh"}),l[3]||(l[3]=D(" 刷新 "))]),A(p(x))?ge("",!0):(c(),u("li",{key:0,onClick:l[1]||(l[1]=e=>N(p(x)))},[j(r,{"icon-class":"close"}),l[4]||(l[4]=D(" 关闭 "))])),g("li",{onClick:H},[j(r,{"icon-class":"close_other"}),l[5]||(l[5]=D(" 关闭其它 "))]),L()?ge("",!0):(c(),u("li",{key:1,onClick:O},[j(r,{"icon-class":"close_left"}),l[6]||(l[6]=D(" 关闭左侧 "))])),T()?ge("",!0):(c(),u("li",{key:2,onClick:F},[j(r,{"icon-class":"close_right"}),l[7]||(l[7]=D(" 关闭右侧 "))])),g("li",{onClick:l[2]||(l[2]=e=>{return t=p(x),void o.delAllViews().then((e=>{B(e.visitedViews,t)}));var t})},[j(r,{"icon-class":"close_all"}),l[8]||(l[8]=D(" 关闭所有 "))])],4),[[G,p(M)]])])}}}),[["__scopeId","data-v-05b66405"]]),en=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 c(),b(x(p(l)),$t(St((o=e.to,a.value?{href:0===o.indexOf("link:")?o.replace("link:",""):o,target:"_blank",rel:"noopener noreferrer"}:{to:o}))),{default:y((()=>[d(t.$slots,"default")])),_:3},16);var o}}}),tn=["title"],an=dt(l({__name:"SidebarMenuItemTitle",props:{icon:{type:String,default:""},title:{type:String,default:""}},setup:e=>(t,a)=>{const l=k,n=At;return c(),u(se,null,[e.icon&&e.icon.startsWith("el-icon")?(c(),b(l,{key:0,class:"sub-el-icon"},{default:y((()=>[(c(),b(x(e.icon.replace("el-icon-",""))))])),_:1})):e.icon?(c(),b(n,{key:1,"icon-class":e.icon},null,8,["icon-class"])):(c(),b(n,{key:2,"icon-class":"menu"})),e.title?(c(),u("span",{key:3,title:p(xl)(e.title),class:"ml-1 important-line-clamp-1 important-break-all"},_(p(xl)(e.title)),9,tn)):ge("",!0)],64)}}),[["__scopeId","data-v-11c6191d"]]),ln={key:0},nn=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 Zl.resolve(t.basePath,e)}return(t,o)=>{var s;const i=an,r=ol,d=en,m=kt("SidebarMenuItem",!0),f=sl;return e.item.meta&&e.item.meta.hidden?ge("",!0):(c(),u("div",ln,[!l(e.item.children,e.item)||p(a).children&&!p(a).noShowingChildren||(null==(s=e.item.meta)?void 0:s.alwaysShow)?(c(),b(f,{key:1,index:n(e.item.path),teleported:""},{title:y((()=>[e.item.meta?(c(),b(i,{key:0,icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title},null,8,["icon","title"])):ge("",!0)])),default:y((()=>[(c(!0),u(se,null,ie(e.item.children,(e=>(c(),b(m,{key:e.path,"is-nest":!0,item:e,"base-path":n(e.path)},null,8,["item","base-path"])))),128))])),_:1},8,["index"])):(c(),u(se,{key:0},[p(a).meta?(c(),b(d,{key:0,to:n(p(a).path),class:"important-line-clamp-1"},{default:y((()=>[j(r,{index:n(p(a).path),class:v({"submenu-title-noDropdown":!e.isNest})},{default:y((()=>[j(i,{icon:p(a).meta.icon||e.item.meta&&e.item.meta.icon,title:p(a).meta.title},null,8,["icon","title"])])),_:1},8,["index","class"])])),_:1},8,["to"])):ge("",!0)],64))]))}}}),on={"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"},sn=dt(l({__name:"SidebarMenu",props:{menuList:{required:!0,default:()=>[],type:Array},basePath:{type:String,required:!0}},setup(e){const t=tt(),a=et();ml();const l=at(),n=P((()=>t.layout)),o=e;function s(e){if(Vt(e))return e;if(Vt(o.basePath))return o.basePath;return Zl.resolve(o.basePath,e)}function i(e){}return(t,o)=>{const r=nn,d=nl;return c(),b(d,{"default-active":p(l).path,collapse:!p(a).sidebar.opened,"background-color":p(on)["menu-background"],"text-color":p(on)["menu-text"],"active-text-color":p(on)["menu-active-text"],"unique-opened":!1,"collapse-transition":!1,mode:"top"===p(n)?"horizontal":"vertical",onOpen:i},{default:y((()=>[(c(!0),u(se,null,ie(e.menuList,(e=>(c(),b(r,{key:e.path,item:e,"base-path":s(e.path),"is-collapse":!p(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"]]),rn={key:1},un={key:0,class:"ml-1"},cn=l({__name:"SidebarMixTopMenu",setup(e){const t=et(),a=Ze(),l=lt(),n=P((()=>t.activeTopMenuPath)),o=s([]),i=e=>{t.activeTopMenu(e),a.setMixLeftMenus(e);const l=a.mixLeftMenus;d(l)},d=e=>{if(0===e.length)return;const[t]=e;t.children&&t.children.length>0?d(t.children):t.name&&l.push({name:t.name})};return r((()=>{o.value=a.routes.filter((e=>!e.meta||!e.meta.hidden))})),(e,t)=>{const a=At,l=ol,s=nl,r=Mt;return c(),b(r,null,{default:y((()=>[j(s,{mode:"horizontal","default-active":p(n),"background-color":p(on)["menu-background"],"text-color":p(on)["menu-text"],"active-text-color":p(on)["menu-active-text"],onSelect:i},{default:y((()=>[(c(!0),u(se,null,ie(p(o),(e=>(c(),b(l,{key:e.path,index:e.path},{title:y((()=>[e.meta&&e.meta.icon?(c(),b(a,{key:0,"icon-class":e.meta.icon},null,8,["icon-class"])):ge("",!0),"/"===e.path?(c(),u("span",rn," 首页 ")):(c(),u(se,{key:2},[e.meta&&e.meta.title?(c(),u("span",un,_(p(xl)(e.meta.title)),1)):ge("",!0)],64))])),_:2},1032,["index"])))),128))])),_:1},8,["default-active","background-color","text-color","active-text-color"])])),_:1})}}}),dn={class:"logo-container"},pn=["src"],vn=["src"],mn={class:"logo-title"},fn=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 c(),u("div",dn,[j(z,{"enter-active-class":"animate__animated animate__fadeInLeft"},{default:y((()=>[e.collapse?(c(),b(o,{key:0,class:"wh-full flex justify-center items-center",to:"/"},{default:y((()=>[p(t).sidebarLogo?(c(),u("img",{key:0,src:p(a),class:"logo-image"},null,8,pn)):ge("",!0)])),_:1})):(c(),b(o,{key:1,class:"wh-full flex justify-center items-center",to:"/"},{default:y((()=>[p(t).sidebarLogo?(c(),u("img",{key:0,"ml--20px":"",src:p(a),class:"logo-image"},null,8,vn)):ge("",!0),g("span",mn,_(p(t).getSystemName),1)])),_:1}))])),_:1})])}}}),[["__scopeId","data-v-b9238b34"]]),hn={key:0,class:"flex w-full"},gn=dt(l({__name:"index",setup(e){const t=et(),a=tt(),l=Ze();console.log("permissionStore",l.routes);const n=P((()=>a.sidebarLogo)),o=P((()=>a.layout));return(e,a)=>{const s=fn,i=cn,r=yl,d=sn,m=Mt;return c(),u("div",{class:v({"has-logo":p(n)})},[p(o)==p(ft).MIX?(c(),u("div",hn,[p(n)?(c(),b(s,{key:0,collapse:!p(t).sidebar.opened},null,8,["collapse"])):ge("",!0),j(i,{class:"flex-1"}),j(r)])):(c(),u(se,{key:1},[p(n)?(c(),b(s,{key:0,collapse:!p(t).sidebar.opened},null,8,["collapse"])):ge("",!0),j(m,null,{default:y((()=>[j(d,{"menu-list":p(l).routes,"base-path":""},null,8,["menu-list"])])),_:1}),p(o)===p(ft).TOP?(c(),b(r,{key:1})):ge("",!0)],64))],2)}}}),[["__scopeId","data-v-66395518"]]),bn={key:1,class:"mix-container"},yn={class:"mix-container__left"},xn={class:"sidebar-toggle"},kn=dt(l({__name:"index",setup(e){const t=et(),a=tt(),l=Ze(),n=It().width,o=P((()=>t.device===nt.MOBILE)),s=P((()=>t.sidebar.opened)),i=P((()=>a.fixedHeader)),r=P((()=>a.tagsView)),d=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===nt.MOBILE,[`layout-${a.layout}`]:!0})));function y(){t.closeSideBar()}function x(){t.toggleSidebar()}re((()=>{t.toggleDevice(n.value<992?nt.MOBILE:nt.DESKTOP),n.value>=992?t.openSideBar():t.closeSideBar()}));const k=at();return E(k,(()=>{o.value&&s.value&&t.closeSideBar()})),(e,a)=>{const l=gn,n=sn,k=wl,_=Ql,w=Dl,C=Kl,M=$l;return c(),u("div",{class:v(["wh-full",p(h)])},[p(o)&&p(s)?(c(),u("div",{key:0,class:"wh-full fixed-lt z-999 bg-black bg-opacity-30",onClick:y})):ge("",!0),j(l,{class:"sidebar-container"}),p(d)===p(ft).MIX?(c(),u("div",bn,[g("div",yn,[j(n,{"menu-list":p(f),"base-path":p(m)},null,8,["menu-list","base-path"]),g("div",xn,[j(k,{"is-active":p(t).sidebar.opened,onToggleClick:x},null,8,["is-active"])])]),g("div",{class:v([{hasTagsView:p(r)},"main-container"])},[g("div",{class:v({"fixed-header":p(i)})},[p(r)?(c(),b(_,{key:0})):ge("",!0)],2),j(w),p(st).showSettings?(c(),b(C,{key:0})):ge("",!0)],2)])):(c(),u("div",{key:2,class:v([{hasTagsView:p(r)},"main-container"])},[g("div",{class:v({"fixed-header":p(i)})},["left"===p(d)?(c(),b(M,{key:0})):ge("",!0),p(r)?(c(),b(_,{key:1})):ge("",!0)],2),j(w),p(st).showSettings?(c(),b(C,{key:0})):ge("",!0)],2))],2)}}}),[["__scopeId","data-v-4691357d"]]);export{kn as default};
|