734 lines
133 KiB
JavaScript
734 lines
133 KiB
JavaScript
import{d as L,r as K,u as un,h as b,i as hn,a as Qe,b as pn,c as mn,e as vn,f,g as fn,j as z,k as w,l as Ce,w as He,m as re,t as le,n as B,o as bn,p as se,q as ot,s as no,v as Pe,x as ro,L as ao,T as Ct,y as $t,z as lo,N as zt,A as Re,B as A,C as _n,D as he,E as Fe,F as io,G as gn,H as de,I as fe,J as xn,K as Z,M as kt,O as yn,P as wn,Q as Cn,R as $n,S as zn,U as kn,V as Be,W as et,X as Sn,Y as St,Z as nt,_ as Tn,$ as Rn,a0 as Bn,a1 as Mn,a2 as te,a3 as In,a4 as so,a5 as co,a6 as we,a7 as gt,a8 as Pn,a9 as mt,aa as Tt,ab as Fn,ac as En,ad as An,ae as Ln,af as vt,ag as pe,ah as qe,ai as Vt,aj as Kt,ak as Dn,al as Hn,am as ce,an as q,ao as Nn,ap as On,aq as Un,ar as v,as as N,at as I,au as D,av as g,aw as n,ax as oe,ay as Ne,az as Q,aA as Me,aB as d,aC as ie,aD as V,aE as be,aF as ne,aG as uo,aH as ho,aI as me,aJ as po,aK as rt,aL as jn,aM as mo,aN as Wn,aO as Vn,aP as vo,aQ as fo,aR as Ee,aS as Kn,aT as Xn,aU as Ze,aV as Gn,aW as bo,aX as $e,aY as Oe,aZ as xt,a_ as Rt,a$ as Yn,b0 as qn,b1 as _o,b2 as Xt,b3 as Bt,b4 as Zn,b5 as Jn,b6 as Qn,b7 as er,b8 as go,b9 as tr,ba as or,bb as nr}from"./index-e7476adc.js";import{_ as xo}from"./setting-outlined-da9e4a67.js";import{_ as rr,a as ar,b as lr}from"./dark-mode-switch.vue_vue_type_script_setup_true_lang-252e30ae.js";import{_ as Mt}from"./Switch-51a9c7a6.js";import{N as Ae}from"./Space-70cacec1.js";import{C as ir,B as sr,_ as cr}from"./index.vue_vue_type_script_setup_true_lang-c5d2825f.js";import{c as dr,a as Gt,N as It,u as yt,o as ur}from"./Tooltip-15ee251f.js";import{_ as _e}from"./_plugin-vue_export-helper-c27b6911.js";import{_ as hr}from"./GradientText-116ee24d.js";import{_ as yo,a as wo}from"./Grid-fde6ebda.js";import{A as pr}from"./Add-bec77709.js";import{u as Ie}from"./Eye-aa255ab4.js";import{_ as mr,a as vr}from"./ColorPicker-ce694e75.js";import{c as fr,_ as Co,a as br}from"./Select-24ba44f4.js";import{_ as _r}from"./InputNumber-ce3500c7.js";import{f as tt}from"./format-length-c9d165c6.js";import{_ as gr}from"./Input-5c51dd0a.js";import{_ as at,a as xr}from"./refresh-92333034.js";/* empty css */import{N as yr}from"./Image-b645358c.js";import{u as wr}from"./use-loading-ce4e05eb.js";import"./next-frame-once-7035a838.js";import"./Tag-4d6be00a.js";import"./utils-0d1ba756.js";function Cr(e){return e.nodeType===9?null:e.parentNode}function $o(e){if(e===null)return null;const t=Cr(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:o,overflowX:a,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(o+r+a))return t}return $o(t)}function $r(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}const zr=Gt(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[Gt("&::-webkit-scrollbar",{width:0,height:0})]),kr=L({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=K(null);function t(r){!(r.currentTarget.offsetWidth<r.currentTarget.scrollWidth)||r.deltaY===0||(r.currentTarget.scrollLeft+=r.deltaY+r.deltaX,r.preventDefault())}const o=un();return zr.mount({id:"vueuc/x-scroll",head:!0,anchorMetaName:dr,ssr:o}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...r){var i;(i=e.value)===null||i===void 0||i.scrollTo(...r)}})},render(){return b("div",{ref:"selfRef",onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:"v-x-scroll"},this.$slots)}});function Yt(e){return e.nodeName==="#document"}var Sr=/\s/;function Tr(e){for(var t=e.length;t--&&Sr.test(e.charAt(t)););return t}var Rr=/^\s+/;function Br(e){return e&&e.slice(0,Tr(e)+1).replace(Rr,"")}var qt=0/0,Mr=/^[-+]0x[0-9a-f]+$/i,Ir=/^0b[01]+$/i,Pr=/^0o[0-7]+$/i,Fr=parseInt;function Zt(e){if(typeof e=="number")return e;if(hn(e))return qt;if(Qe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Qe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Br(e);var o=Ir.test(e);return o||Pr.test(e)?Fr(e.slice(2),o?2:8):Mr.test(e)?qt:+e}var Er=function(){return pn.Date.now()};const ft=Er;var Ar="Expected a function",Lr=Math.max,Dr=Math.min;function Hr(e,t,o){var a,r,i,l,s,c,p=0,_=!1,h=!1,u=!0;if(typeof e!="function")throw new TypeError(Ar);t=Zt(t)||0,Qe(o)&&(_=!!o.leading,h="maxWait"in o,i=h?Lr(Zt(o.maxWait)||0,t):i,u="trailing"in o?!!o.trailing:u);function x(k){var G=a,U=r;return a=r=void 0,p=k,l=e.apply(U,G),l}function T(k){return p=k,s=setTimeout(E,t),_?x(k):l}function R(k){var G=k-c,U=k-p,P=t-G;return h?Dr(P,i-U):P}function M(k){var G=k-c,U=k-p;return c===void 0||G>=t||G<0||h&&U>=i}function E(){var k=ft();if(M(k))return F(k);s=setTimeout(E,R(k))}function F(k){return s=void 0,u&&a?x(k):(a=r=void 0,l)}function H(){s!==void 0&&clearTimeout(s),p=0,a=c=r=s=void 0}function O(){return s===void 0?l:F(ft())}function y(){var k=ft(),G=M(k);if(a=arguments,r=this,c=k,G){if(s===void 0)return T(c);if(h)return clearTimeout(s),s=setTimeout(E,t),x(c)}return s===void 0&&(s=setTimeout(E,t)),l}return y.cancel=H,y.flush=O,y}var Nr="Expected a function";function bt(e,t,o){var a=!0,r=!0;if(typeof e!="function")throw new TypeError(Nr);return Qe(o)&&(a="leading"in o?!!o.leading:a,r="trailing"in o?!!o.trailing:r),Hr(e,t,{leading:a,maxWait:t,trailing:r})}const Or=L({name:"ChevronDownFilled",render(){return b("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),Ur=e=>{const{popoverColor:t,textColor2:o,primaryColorHover:a,primaryColorPressed:r}=e;return Object.assign(Object.assign({},vn),{color:t,textColor:o,iconColor:o,iconColorHover:a,iconColorPressed:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})},jr={name:"BackTop",common:mn,self:Ur},Wr=jr,Vr=b("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},b("g",{transform:"translate(120.000000, 4285.000000)"},b("g",{transform:"translate(7.000000, 126.000000)"},b("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},b("g",{transform:"translate(4.000000, 2.000000)"},b("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),b("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),Kr=f("back-top",`
|
||
position: fixed;
|
||
right: 40px;
|
||
bottom: 40px;
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: var(--n-text-color);
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
box-shadow .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier);
|
||
border-radius: var(--n-border-radius);
|
||
height: var(--n-height);
|
||
min-width: var(--n-width);
|
||
box-shadow: var(--n-box-shadow);
|
||
background-color: var(--n-color);
|
||
`,[fn(),z("transition-disabled",{transition:"none !important"}),f("base-icon",`
|
||
font-size: var(--n-icon-size);
|
||
color: var(--n-icon-color);
|
||
transition: color .3s var(--n-bezier);
|
||
`),w("svg",{pointerEvents:"none"}),w("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[f("base-icon",{color:"var(--n-icon-color-hover)"})]),w("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[f("base-icon",{color:"var(--n-icon-color-pressed)"})])]),Xr=Object.assign(Object.assign({},se.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:Function,onShow:Function,onHide:Function}),Gr=L({name:"BackTop",inheritAttrs:!1,props:Xr,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ce(e),a=K(null),r=K(!1);He(()=>{const{value:O}=a;if(O===null){r.value=!1;return}r.value=O>=e.visibilityHeight});const i=K(!1);re(r,O=>{var y;i.value&&((y=e["onUpdate:show"])===null||y===void 0||y.call(e,O))});const l=le(e,"show"),s=Ie(l,r),c=K(!0),p=K(null),_=B(()=>({right:`calc(${tt(e.right)} + ${bn.value})`,bottom:tt(e.bottom)}));let h,u;re(s,O=>{var y,k;i.value&&(O&&((y=e.onShow)===null||y===void 0||y.call(e)),(k=e.onHide)===null||k===void 0||k.call(e))});const x=se("BackTop","-back-top",Kr,Wr,e,t);function T(){var O;if(u)return;u=!0;const y=((O=e.target)===null||O===void 0?void 0:O.call(e))||$r(e.listenTo)||$o(p.value);if(!y)return;h=y===document.documentElement?document:y;const{to:k}=e;typeof k=="string"&&document.querySelector(k),h.addEventListener("scroll",M),M()}function R(){(Yt(h)?document.documentElement:h).scrollTo({top:0,behavior:"smooth"})}function M(){a.value=(Yt(h)?document.documentElement:h).scrollTop,i.value||Re(()=>{i.value=!0})}function E(){c.value=!1}ot(()=>{T(),c.value=s.value}),no(()=>{h&&h.removeEventListener("scroll",M)});const F=B(()=>{const{self:{color:O,boxShadow:y,boxShadowHover:k,boxShadowPressed:G,iconColor:U,iconColorHover:P,iconColorPressed:m,width:j,height:Y,iconSize:ee,borderRadius:ge,textColor:xe},common:{cubicBezierEaseInOut:C}}=x.value;return{"--n-bezier":C,"--n-border-radius":ge,"--n-height":Y,"--n-width":j,"--n-box-shadow":y,"--n-box-shadow-hover":k,"--n-box-shadow-pressed":G,"--n-color":O,"--n-icon-size":ee,"--n-icon-color":U,"--n-icon-color-hover":P,"--n-icon-color-pressed":m,"--n-text-color":xe}}),H=o?Pe("back-top",void 0,F,e):void 0;return{placeholderRef:p,style:_,mergedShow:s,isMounted:ro(),scrollElement:K(null),scrollTop:a,DomInfoReady:i,transitionDisabled:c,mergedClsPrefix:t,handleAfterEnter:E,handleScroll:M,handleClick:R,cssVars:o?void 0:F,themeClass:H==null?void 0:H.themeClass,onRender:H==null?void 0:H.onRender}},render(){const{mergedClsPrefix:e}=this;return b("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},b(ao,{to:this.to,show:this.mergedShow},{default:()=>b(Ct,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),this.mergedShow?b("div",$t(this.$attrs,{class:[`${e}-back-top`,this.themeClass,this.transitionDisabled&&`${e}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),lo(this.$slots.default,()=>[b(zt,{clsPrefix:e},{default:()=>Vr})])):null}})}))}}),Yr=f("breadcrumb",`
|
||
white-space: nowrap;
|
||
cursor: default;
|
||
line-height: var(--n-item-line-height);
|
||
`,[w("ul",`
|
||
list-style: none;
|
||
padding: 0;
|
||
margin: 0;
|
||
`),w("a",`
|
||
color: inherit;
|
||
text-decoration: inherit;
|
||
`),f("breadcrumb-item",`
|
||
font-size: var(--n-font-size);
|
||
transition: color .3s var(--n-bezier);
|
||
display: inline-flex;
|
||
align-items: center;
|
||
`,[f("icon",`
|
||
font-size: 18px;
|
||
vertical-align: -.2em;
|
||
transition: color .3s var(--n-bezier);
|
||
color: var(--n-item-text-color);
|
||
`),w("&:not(:last-child)",[z("clickable",[A("link",`
|
||
cursor: pointer;
|
||
`,[w("&:hover",`
|
||
background-color: var(--n-item-color-hover);
|
||
`),w("&:active",`
|
||
background-color: var(--n-item-color-pressed);
|
||
`)])])]),A("link",`
|
||
padding: 4px;
|
||
border-radius: var(--n-item-border-radius);
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
color: var(--n-item-text-color);
|
||
position: relative;
|
||
`,[w("&:hover",`
|
||
color: var(--n-item-text-color-hover);
|
||
`,[f("icon",`
|
||
color: var(--n-item-text-color-hover);
|
||
`)]),w("&:active",`
|
||
color: var(--n-item-text-color-pressed);
|
||
`,[f("icon",`
|
||
color: var(--n-item-text-color-pressed);
|
||
`)])]),A("separator",`
|
||
margin: 0 8px;
|
||
color: var(--n-separator-color);
|
||
transition: color .3s var(--n-bezier);
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
`),w("&:last-child",[A("link",`
|
||
font-weight: var(--n-font-weight-active);
|
||
cursor: unset;
|
||
color: var(--n-item-text-color-active);
|
||
`,[f("icon",`
|
||
color: var(--n-item-text-color-active);
|
||
`)]),A("separator",`
|
||
display: none;
|
||
`)])])]),zo=Fe("n-breadcrumb"),qr=Object.assign(Object.assign({},se.props),{separator:{type:String,default:"/"}}),Zr=L({name:"Breadcrumb",props:qr,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ce(e),a=se("Breadcrumb","-breadcrumb",Yr,_n,e,t);he(zo,{separatorRef:le(e,"separator"),mergedClsPrefixRef:t});const r=B(()=>{const{common:{cubicBezierEaseInOut:l},self:{separatorColor:s,itemTextColor:c,itemTextColorHover:p,itemTextColorPressed:_,itemTextColorActive:h,fontSize:u,fontWeightActive:x,itemBorderRadius:T,itemColorHover:R,itemColorPressed:M,itemLineHeight:E}}=a.value;return{"--n-font-size":u,"--n-bezier":l,"--n-item-text-color":c,"--n-item-text-color-hover":p,"--n-item-text-color-pressed":_,"--n-item-text-color-active":h,"--n-separator-color":s,"--n-item-color-hover":R,"--n-item-color-pressed":M,"--n-item-border-radius":T,"--n-font-weight-active":x,"--n-item-line-height":E}}),i=o?Pe("breadcrumb",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),b("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},b("ul",null,this.$slots))}}),Jr=(e=gn?window:null)=>{const t=()=>{const{hash:r,host:i,hostname:l,href:s,origin:c,pathname:p,port:_,protocol:h,search:u}=(e==null?void 0:e.location)||{};return{hash:r,host:i,hostname:l,href:s,origin:c,pathname:p,port:_,protocol:h,search:u}},o=()=>{a.value=t()},a=K(t());return ot(()=>{e&&(e.addEventListener("popstate",o),e.addEventListener("hashchange",o))}),io(()=>{e&&(e.removeEventListener("popstate",o),e.removeEventListener("hashchange",o))}),a},Qr={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},ea=L({name:"BreadcrumbItem",props:Qr,setup(e,{slots:t}){const o=de(zo,null);if(!o)return()=>null;const{separatorRef:a,mergedClsPrefixRef:r}=o,i=Jr(),l=B(()=>e.href?"a":"span"),s=B(()=>i.value.href===e.href?"location":null);return()=>{const{value:c}=r;return b("li",{class:[`${c}-breadcrumb-item`,e.clickable&&`${c}-breadcrumb-item--clickable`]},b(l.value,{class:`${c}-breadcrumb-item__link`,"aria-current":s.value,href:e.href,onClick:e.onClick},t),b("span",{class:`${c}-breadcrumb-item__separator`,"aria-hidden":"true"},lo(t.separator,()=>{var p;return[(p=e.separator)!==null&&p!==void 0?p:a.value]})))}}}),ta=f("divider",`
|
||
position: relative;
|
||
display: flex;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
font-size: 16px;
|
||
color: var(--n-text-color);
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier);
|
||
`,[fe("vertical",`
|
||
margin-top: 24px;
|
||
margin-bottom: 24px;
|
||
`,[fe("no-title",`
|
||
display: flex;
|
||
align-items: center;
|
||
`)]),A("title",`
|
||
display: flex;
|
||
align-items: center;
|
||
margin-left: 12px;
|
||
margin-right: 12px;
|
||
white-space: nowrap;
|
||
font-weight: var(--n-font-weight);
|
||
`),z("title-position-left",[A("line",[z("left",{width:"28px"})])]),z("title-position-right",[A("line",[z("right",{width:"28px"})])]),z("dashed",[A("line",`
|
||
background-color: #0000;
|
||
height: 0px;
|
||
width: 100%;
|
||
border-style: dashed;
|
||
border-width: 1px 0 0;
|
||
`)]),z("vertical",`
|
||
display: inline-block;
|
||
height: 1em;
|
||
margin: 0 8px;
|
||
vertical-align: middle;
|
||
width: 1px;
|
||
`),A("line",`
|
||
border: none;
|
||
transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier);
|
||
height: 1px;
|
||
width: 100%;
|
||
margin: 0;
|
||
`),fe("dashed",[A("line",{backgroundColor:"var(--n-color)"})]),z("dashed",[A("line",{borderColor:"var(--n-color)"})]),z("vertical",{backgroundColor:"var(--n-color)"})]),oa=Object.assign(Object.assign({},se.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),Le=L({name:"Divider",props:oa,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ce(e),a=se("Divider","-divider",ta,xn,e,t),r=B(()=>{const{common:{cubicBezierEaseInOut:l},self:{color:s,textColor:c,fontWeight:p}}=a.value;return{"--n-bezier":l,"--n-color":s,"--n-text-color":c,"--n-font-weight":p}}),i=o?Pe("divider",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:o,vertical:a,dashed:r,cssVars:i,mergedClsPrefix:l}=this;return(e=this.onRender)===null||e===void 0||e.call(this),b("div",{role:"separator",class:[`${l}-divider`,this.themeClass,{[`${l}-divider--vertical`]:a,[`${l}-divider--no-title`]:!t.default,[`${l}-divider--dashed`]:r,[`${l}-divider--title-position-${o}`]:t.default&&o}],style:i},a?null:b("div",{class:`${l}-divider__line ${l}-divider__line--left`}),!a&&t.default?b(Z,null,b("div",{class:`${l}-divider__title`},this.$slots),b("div",{class:`${l}-divider__line ${l}-divider__line--right`})):null)}}),na=L({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=K(!!e.show),o=K(null),a=de(kt);let r=0,i="",l=null;const s=K(!1),c=K(!1),p=B(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:_,mergedRtlRef:h}=Ce(e),u=yn("Drawer",h,_),x=P=>{c.value=!0,r=p.value?P.clientY:P.clientX,i=document.body.style.cursor,document.body.style.cursor=p.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",O),document.body.addEventListener("mouseleave",k),document.body.addEventListener("mouseup",y)},T=()=>{l!==null&&(window.clearTimeout(l),l=null),c.value?s.value=!0:l=window.setTimeout(()=>{s.value=!0},300)},R=()=>{l!==null&&(window.clearTimeout(l),l=null),s.value=!1},{doUpdateHeight:M,doUpdateWidth:E}=a,F=P=>{const{maxWidth:m}=e;if(m&&P>m)return m;const{minWidth:j}=e;return j&&P<j?j:P},H=P=>{const{maxHeight:m}=e;if(m&&P>m)return m;const{minHeight:j}=e;return j&&P<j?j:P},O=P=>{var m,j;if(c.value)if(p.value){let Y=((m=o.value)===null||m===void 0?void 0:m.offsetHeight)||0;const ee=r-P.clientY;Y+=e.placement==="bottom"?ee:-ee,Y=H(Y),M(Y),r=P.clientY}else{let Y=((j=o.value)===null||j===void 0?void 0:j.offsetWidth)||0;const ee=r-P.clientX;Y+=e.placement==="right"?ee:-ee,Y=F(Y),E(Y),r=P.clientX}},y=()=>{c.value&&(r=0,c.value=!1,document.body.style.cursor=i,document.body.removeEventListener("mousemove",O),document.body.removeEventListener("mouseup",y),document.body.removeEventListener("mouseleave",k))},k=y;He(()=>{e.show&&(t.value=!0)}),re(()=>e.show,P=>{P||y()}),no(()=>{y()});const G=B(()=>{const{show:P}=e,m=[[et,P]];return e.showMask||m.push([wn,e.onClickoutside,void 0,{capture:!0}]),m});function U(){var P;t.value=!1,(P=e.onAfterLeave)===null||P===void 0||P.call(e)}return Cn(B(()=>e.blockScroll&&t.value)),he($n,o),he(zn,null),he(kn,null),{bodyRef:o,rtlEnabled:u,mergedClsPrefix:a.mergedClsPrefixRef,isMounted:a.isMountedRef,mergedTheme:a.mergedThemeRef,displayed:t,transitionName:B(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:U,bodyDirectives:G,handleMousedownResizeTrigger:x,handleMouseenterResizeTrigger:T,handleMouseleaveResizeTrigger:R,isDragging:c,isHoverOnResizeTrigger:s}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?Be(b("div",{role:"none"},b(Sn,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>b(Ct,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>Be(b("div",$t(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?b("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?b("div",{class:`${t}-drawer-content-wrapper`,style:this.contentStyle,role:"none"},e):b(St,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:`${t}-drawer-content-wrapper`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[et,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:ra,cubicBezierEaseOut:aa}=nt;function la({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-right"}={}){return[w(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${ra}`}),w(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${aa}`}),w(`&.${o}-transition-enter-to`,{transform:"translateX(0)"}),w(`&.${o}-transition-enter-from`,{transform:"translateX(100%)"}),w(`&.${o}-transition-leave-from`,{transform:"translateX(0)"}),w(`&.${o}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:ia,cubicBezierEaseOut:sa}=nt;function ca({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-left"}={}){return[w(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${ia}`}),w(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${sa}`}),w(`&.${o}-transition-enter-to`,{transform:"translateX(0)"}),w(`&.${o}-transition-enter-from`,{transform:"translateX(-100%)"}),w(`&.${o}-transition-leave-from`,{transform:"translateX(0)"}),w(`&.${o}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:da,cubicBezierEaseOut:ua}=nt;function ha({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-top"}={}){return[w(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${da}`}),w(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${ua}`}),w(`&.${o}-transition-enter-to`,{transform:"translateY(0)"}),w(`&.${o}-transition-enter-from`,{transform:"translateY(-100%)"}),w(`&.${o}-transition-leave-from`,{transform:"translateY(0)"}),w(`&.${o}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:pa,cubicBezierEaseOut:ma}=nt;function va({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-bottom"}={}){return[w(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${pa}`}),w(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${ma}`}),w(`&.${o}-transition-enter-to`,{transform:"translateY(0)"}),w(`&.${o}-transition-enter-from`,{transform:"translateY(100%)"}),w(`&.${o}-transition-leave-from`,{transform:"translateY(0)"}),w(`&.${o}-transition-leave-to`,{transform:"translateY(100%)"})]}const fa=w([f("drawer",`
|
||
word-break: break-word;
|
||
line-height: var(--n-line-height);
|
||
position: absolute;
|
||
pointer-events: all;
|
||
box-shadow: var(--n-box-shadow);
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
background-color: var(--n-color);
|
||
color: var(--n-text-color);
|
||
box-sizing: border-box;
|
||
`,[la(),ca(),ha(),va(),z("unselectable",`
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
`),z("native-scrollbar",[f("drawer-content-wrapper",`
|
||
overflow: auto;
|
||
height: 100%;
|
||
`)]),A("resize-trigger",`
|
||
position: absolute;
|
||
background-color: #0000;
|
||
transition: background-color .3s var(--n-bezier);
|
||
`,[z("hover",`
|
||
background-color: var(--n-resize-trigger-color-hover);
|
||
`)]),f("drawer-content-wrapper",`
|
||
box-sizing: border-box;
|
||
`),f("drawer-content",`
|
||
height: 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
`,[z("native-scrollbar",[f("drawer-body-content-wrapper",`
|
||
height: 100%;
|
||
overflow: auto;
|
||
`)]),f("drawer-body",`
|
||
flex: 1 0 0;
|
||
overflow: hidden;
|
||
`),f("drawer-body-content-wrapper",`
|
||
box-sizing: border-box;
|
||
padding: var(--n-body-padding);
|
||
`),f("drawer-header",`
|
||
font-weight: var(--n-title-font-weight);
|
||
line-height: 1;
|
||
font-size: var(--n-title-font-size);
|
||
color: var(--n-title-text-color);
|
||
padding: var(--n-header-padding);
|
||
transition: border .3s var(--n-bezier);
|
||
border-bottom: 1px solid var(--n-divider-color);
|
||
border-bottom: var(--n-header-border-bottom);
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
`,[A("close",`
|
||
margin-left: 6px;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
`)]),f("drawer-footer",`
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
border-top: var(--n-footer-border-top);
|
||
transition: border .3s var(--n-bezier);
|
||
padding: var(--n-footer-padding);
|
||
`)]),z("right-placement",`
|
||
top: 0;
|
||
bottom: 0;
|
||
right: 0;
|
||
`,[A("resize-trigger",`
|
||
width: 3px;
|
||
height: 100%;
|
||
top: 0;
|
||
left: 0;
|
||
transform: translateX(-1.5px);
|
||
cursor: ew-resize;
|
||
`)]),z("left-placement",`
|
||
top: 0;
|
||
bottom: 0;
|
||
left: 0;
|
||
`,[A("resize-trigger",`
|
||
width: 3px;
|
||
height: 100%;
|
||
top: 0;
|
||
right: 0;
|
||
transform: translateX(1.5px);
|
||
cursor: ew-resize;
|
||
`)]),z("top-placement",`
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
`,[A("resize-trigger",`
|
||
width: 100%;
|
||
height: 3px;
|
||
bottom: 0;
|
||
left: 0;
|
||
transform: translateY(1.5px);
|
||
cursor: ns-resize;
|
||
`)]),z("bottom-placement",`
|
||
left: 0;
|
||
bottom: 0;
|
||
right: 0;
|
||
`,[A("resize-trigger",`
|
||
width: 100%;
|
||
height: 3px;
|
||
top: 0;
|
||
left: 0;
|
||
transform: translateY(-1.5px);
|
||
cursor: ns-resize;
|
||
`)])]),w("body",[w(">",[f("drawer-container",{position:"fixed"})])]),f("drawer-container",`
|
||
position: relative;
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
pointer-events: none;
|
||
`,[w("> *",{pointerEvents:"all"})]),f("drawer-mask",`
|
||
background-color: rgba(0, 0, 0, .3);
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
`,[z("invisible",`
|
||
background-color: rgba(0, 0, 0, 0)
|
||
`),Tn({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),ba=Object.assign(Object.assign({},se.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),_a=L({name:"Drawer",inheritAttrs:!1,props:ba,setup(e){const{mergedClsPrefixRef:t,namespaceRef:o,inlineThemeDisabled:a}=Ce(e),r=ro(),i=se("Drawer","-drawer",fa,Rn,e,t),l=K(e.defaultWidth),s=K(e.defaultHeight),c=Ie(le(e,"width"),l),p=Ie(le(e,"height"),s),_=B(()=>{const{placement:y}=e;return y==="top"||y==="bottom"?"":tt(c.value)}),h=B(()=>{const{placement:y}=e;return y==="left"||y==="right"?"":tt(p.value)}),u=y=>{const{onUpdateWidth:k,"onUpdate:width":G}=e;k&&te(k,y),G&&te(G,y),l.value=y},x=y=>{const{onUpdateHeight:k,"onUpdate:width":G}=e;k&&te(k,y),G&&te(G,y),s.value=y},T=B(()=>[{width:_.value,height:h.value},e.drawerStyle||""]);function R(y){const{onMaskClick:k,maskClosable:G}=e;G&&F(!1),k&&k(y)}const M=Bn();function E(y){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&In(y)&&!M.value&&F(!1)}function F(y){const{onHide:k,onUpdateShow:G,"onUpdate:show":U}=e;G&&te(G,y),U&&te(U,y),k&&!y&&te(k,y)}he(kt,{isMountedRef:r,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:F,doUpdateHeight:x,doUpdateWidth:u});const H=B(()=>{const{common:{cubicBezierEaseInOut:y,cubicBezierEaseIn:k,cubicBezierEaseOut:G},self:{color:U,textColor:P,boxShadow:m,lineHeight:j,headerPadding:Y,footerPadding:ee,bodyPadding:ge,titleFontSize:xe,titleTextColor:C,titleFontWeight:We,headerBorderBottom:Ve,footerBorderTop:lt,closeIconColor:it,closeIconColorHover:st,closeIconColorPressed:Ke,closeColorHover:Xe,closeColorPressed:ct,closeIconSize:dt,closeSize:ke,closeBorderRadius:ut,resizableTriggerColorHover:ht}}=i.value;return{"--n-line-height":j,"--n-color":U,"--n-text-color":P,"--n-box-shadow":m,"--n-bezier":y,"--n-bezier-out":G,"--n-bezier-in":k,"--n-header-padding":Y,"--n-body-padding":ge,"--n-footer-padding":ee,"--n-title-text-color":C,"--n-title-font-size":xe,"--n-title-font-weight":We,"--n-header-border-bottom":Ve,"--n-footer-border-top":lt,"--n-close-icon-color":it,"--n-close-icon-color-hover":st,"--n-close-icon-color-pressed":Ke,"--n-close-size":ke,"--n-close-color-hover":Xe,"--n-close-color-pressed":ct,"--n-close-icon-size":dt,"--n-close-border-radius":ut,"--n-resize-trigger-color-hover":ht}}),O=a?Pe("drawer",void 0,H,e):void 0;return{mergedClsPrefix:t,namespace:o,mergedBodyStyle:T,handleMaskClick:R,handleEsc:E,mergedTheme:i,cssVars:a?void 0:H,themeClass:O==null?void 0:O.themeClass,onRender:O==null?void 0:O.onRender,isMounted:r}},render(){const{mergedClsPrefix:e}=this;return b(ao,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),Be(b("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?b(Ct,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?b("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,b(na,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,maxHeight:this.maxHeight,minHeight:this.minHeight,maxWidth:this.maxWidth,minWidth:this.minWidth,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleMaskClick}),this.$slots)),[[Mn,{zIndex:this.zIndex,enabled:this.show}]])}})}}),ga={title:{type:String},headerStyle:[Object,String],footerStyle:[Object,String],bodyStyle:[Object,String],bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},xa=L({name:"DrawerContent",props:ga,setup(){const e=de(kt,null);e||so("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function o(){t(!1)}return{handleCloseClick:o,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:o,mergedTheme:a,bodyStyle:r,bodyContentStyle:i,headerStyle:l,footerStyle:s,scrollbarProps:c,closable:p,$slots:_}=this;return b("div",{role:"none",class:[`${t}-drawer-content`,o&&`${t}-drawer-content--native-scrollbar`]},_.header||e||p?b("div",{class:`${t}-drawer-header`,style:l,role:"none"},b("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},_.header!==void 0?_.header():e),p&&b(co,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,o?b("div",{class:`${t}-drawer-body`,style:r,role:"none"},b("div",{class:`${t}-drawer-body-content-wrapper`,style:i,role:"none"},_)):b(St,Object.assign({themeOverrides:a.peerOverrides.Scrollbar,theme:a.peers.Scrollbar},c,{class:`${t}-drawer-body`,contentClass:`${t}-drawer-body-content-wrapper`,contentStyle:i}),_),_.footer?b("div",{class:`${t}-drawer-footer`,style:s,role:"none"},_.footer()):null)}}),ya=Fe("n-layout-sider"),Ue=Fe("n-menu"),Pt=Fe("n-submenu"),Ft=Fe("n-menu-item-group"),Je=8;function Et(e){const t=de(Ue),{props:o,mergedCollapsedRef:a}=t,r=de(Pt,null),i=de(Ft,null),l=B(()=>o.mode==="horizontal"),s=B(()=>l.value?o.dropdownPlacement:"tmNodes"in e?"right-start":"right"),c=B(()=>{var u;return Math.max((u=o.collapsedIconSize)!==null&&u!==void 0?u:o.iconSize,o.iconSize)}),p=B(()=>{var u;return!l.value&&e.root&&a.value&&(u=o.collapsedIconSize)!==null&&u!==void 0?u:o.iconSize}),_=B(()=>{if(l.value)return;const{collapsedWidth:u,indent:x,rootIndent:T}=o,{root:R,isGroup:M}=e,E=T===void 0?x:T;if(R)return a.value?u/2-c.value/2:E;if(i)return x/2+i.paddingLeftRef.value;if(r)return(M?x/2:x)+r.paddingLeftRef.value}),h=B(()=>{const{collapsedWidth:u,indent:x,rootIndent:T}=o,{value:R}=c,{root:M}=e;return l.value||!M||!a.value?Je:(T===void 0?x:T)+R+Je-(u+R)/2});return{dropdownPlacement:s,activeIconSize:p,maxIconSize:c,paddingLeft:_,iconMarginRight:h,NMenu:t,NSubmenu:r}}const At={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},ko=Object.assign(Object.assign({},At),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),wa=L({name:"MenuOptionGroup",props:ko,setup(e){he(Pt,null);const t=Et(e);he(Ft,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:o,props:a}=de(Ue);return function(){const{value:r}=o,i=t.paddingLeft.value,{nodeProps:l}=a,s=l==null?void 0:l(e.tmNode.rawNode);return b("div",{class:`${r}-menu-item-group`,role:"group"},b("div",Object.assign({},s,{class:[`${r}-menu-item-group-title`,s==null?void 0:s.class],style:[(s==null?void 0:s.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),we(e.title),e.extra?b(Z,null," ",we(e.extra)):null),b("div",null,e.tmNodes.map(c=>Lt(c,a))))}}}),So=L({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0}},setup(e){const{props:t}=de(Ue);return{menuProps:t,style:B(()=>{const{paddingLeft:o}=e;return{paddingLeft:o&&`${o}px`}}),iconStyle:B(()=>{const{maxIconSize:o,activeIconSize:a,iconMarginRight:r}=e;return{width:`${o}px`,height:`${o}px`,fontSize:`${a}px`,marginRight:`${r}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:o,renderLabel:a,renderExtra:r,expandIcon:i}}=this,l=o?o(t.rawNode):we(this.icon);return b("div",{onClick:s=>{var c;(c=this.onClick)===null||c===void 0||c.call(this,s)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},l&&b("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[l]),b("div",{class:`${e}-menu-item-content-header`,role:"none"},a?a(t.rawNode):we(this.title),this.extra||r?b("span",{class:`${e}-menu-item-content-header__extra`}," ",r?r(t.rawNode):we(this.extra)):null),this.showArrow?b(zt,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):b(Or,null)}):null)}}),To=Object.assign(Object.assign({},At),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:{type:Boolean,default:!1},icon:Function,onClick:Function}),Ca=L({name:"Submenu",props:To,setup(e){const t=Et(e),{NMenu:o,NSubmenu:a}=t,{props:r,mergedCollapsedRef:i,mergedThemeRef:l}=o,s=B(()=>{const{disabled:u}=e;return a!=null&&a.mergedDisabledRef.value||r.disabled?!0:u}),c=K(!1);he(Pt,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:s}),he(Ft,null);function p(){const{onClick:u}=e;u&&u()}function _(){s.value||(i.value||o.toggleExpand(e.internalKey),p())}function h(u){c.value=u}return{menuProps:r,mergedTheme:l,doSelect:o.doSelect,inverted:o.invertedRef,isHorizontal:o.isHorizontalRef,mergedClsPrefix:o.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:c,paddingLeft:t.paddingLeft,mergedDisabled:s,mergedValue:o.mergedValueRef,childActive:gt(()=>o.activePathRef.value.includes(e.internalKey)),collapsed:B(()=>r.mode==="horizontal"?!1:i.value?!0:!o.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:B(()=>!s.value&&(r.mode==="horizontal"||i.value)),handlePopoverShowChange:h,handleClick:_}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:o,renderLabel:a}}=this,r=()=>{const{isHorizontal:l,paddingLeft:s,collapsed:c,mergedDisabled:p,maxIconSize:_,activeIconSize:h,title:u,childActive:x,icon:T,handleClick:R,menuProps:{nodeProps:M},dropdownShow:E,iconMarginRight:F,tmNode:H,mergedClsPrefix:O}=this,y=M==null?void 0:M(H.rawNode);return b("div",Object.assign({},y,{class:[`${O}-menu-item`,y==null?void 0:y.class],role:"menuitem"}),b(So,{tmNode:H,paddingLeft:s,collapsed:c,disabled:p,iconMarginRight:F,maxIconSize:_,activeIconSize:h,title:u,extra:this.extra,showArrow:!l,childActive:x,clsPrefix:O,icon:T,hover:E,onClick:R}))},i=()=>b(Pn,null,{default:()=>{const{tmNodes:l,collapsed:s}=this;return s?null:b("div",{class:`${t}-submenu-children`,role:"menu"},l.map(c=>Lt(c,this.menuProps)))}});return this.root?b(at,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:o,renderLabel:a}),{default:()=>b("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},r(),this.isHorizontal?null:i())}):b("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},r(),i())}}),Ro=Object.assign(Object.assign({},At),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),$a=L({name:"MenuOption",props:Ro,setup(e){const t=Et(e),{NSubmenu:o,NMenu:a}=t,{props:r,mergedClsPrefixRef:i,mergedCollapsedRef:l}=a,s=o?o.mergedDisabledRef:{value:!1},c=B(()=>s.value||e.disabled);function p(h){const{onClick:u}=e;u&&u(h)}function _(h){c.value||(a.doSelect(e.internalKey,e.tmNode.rawNode),p(h))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:a.mergedThemeRef,menuProps:r,dropdownEnabled:gt(()=>e.root&&l.value&&r.mode!=="horizontal"&&!c.value),selected:gt(()=>a.mergedValueRef.value===e.internalKey),mergedDisabled:c,handleClick:_}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:o,menuProps:{renderLabel:a,nodeProps:r}}=this,i=r==null?void 0:r(o.rawNode);return b("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),b(It,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>a?a(o.rawNode):we(this.title),trigger:()=>b(So,{tmNode:o,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),za=L({name:"MenuDivider",setup(){const e=de(Ue),{mergedClsPrefixRef:t,isHorizontalRef:o}=e;return()=>o.value?null:b("div",{class:`${t.value}-menu-divider`})}}),ka=Tt(ko),Sa=Tt(Ro),Ta=Tt(To);function Bo(e){return e.type==="divider"||e.type==="render"}function Ra(e){return e.type==="divider"}function Lt(e,t){const{rawNode:o}=e,{show:a}=o;if(a===!1)return null;if(Bo(o))return Ra(o)?b(za,Object.assign({key:e.key},o.props)):null;const{labelField:r}=t,{key:i,level:l,isGroup:s}=e,c=Object.assign(Object.assign({},o),{title:o.title||o[r],extra:o.titleExtra||o.extra,key:i,internalKey:i,level:l,root:l===0,isGroup:s});return e.children?e.isGroup?b(wa,mt(c,ka,{tmNode:e,tmNodes:e.children,key:i})):b(Ca,mt(c,Ta,{key:i,rawNodes:o[t.childrenField],tmNodes:e.children,tmNode:e})):b($a,mt(c,Sa,{key:i,tmNode:e}))}const Jt=[w("&::before","background-color: var(--n-item-color-hover);"),A("arrow",`
|
||
color: var(--n-arrow-color-hover);
|
||
`),A("icon",`
|
||
color: var(--n-item-icon-color-hover);
|
||
`),f("menu-item-content-header",`
|
||
color: var(--n-item-text-color-hover);
|
||
`,[w("a",`
|
||
color: var(--n-item-text-color-hover);
|
||
`),A("extra",`
|
||
color: var(--n-item-text-color-hover);
|
||
`)])],Qt=[A("icon",`
|
||
color: var(--n-item-icon-color-hover-horizontal);
|
||
`),f("menu-item-content-header",`
|
||
color: var(--n-item-text-color-hover-horizontal);
|
||
`,[w("a",`
|
||
color: var(--n-item-text-color-hover-horizontal);
|
||
`),A("extra",`
|
||
color: var(--n-item-text-color-hover-horizontal);
|
||
`)])],Ba=w([f("menu",`
|
||
background-color: var(--n-color);
|
||
color: var(--n-item-text-color);
|
||
overflow: hidden;
|
||
transition: background-color .3s var(--n-bezier);
|
||
box-sizing: border-box;
|
||
font-size: var(--n-font-size);
|
||
padding-bottom: 6px;
|
||
`,[z("horizontal",`
|
||
display: inline-flex;
|
||
padding-bottom: 0;
|
||
`,[f("submenu","margin: 0;"),f("menu-item","margin: 0;"),f("menu-item-content",`
|
||
padding: 0 20px;
|
||
border-bottom: 2px solid #0000;
|
||
`,[w("&::before","display: none;"),z("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),f("menu-item-content",[z("selected",[A("icon","color: var(--n-item-icon-color-active-horizontal);"),f("menu-item-content-header",`
|
||
color: var(--n-item-text-color-active-horizontal);
|
||
`,[w("a","color: var(--n-item-text-color-active-horizontal);"),A("extra","color: var(--n-item-text-color-active-horizontal);")])]),z("child-active",`
|
||
border-bottom: 2px solid var(--n-border-color-horizontal);
|
||
`,[f("menu-item-content-header",`
|
||
color: var(--n-item-text-color-child-active-horizontal);
|
||
`,[w("a",`
|
||
color: var(--n-item-text-color-child-active-horizontal);
|
||
`),A("extra",`
|
||
color: var(--n-item-text-color-child-active-horizontal);
|
||
`)]),A("icon",`
|
||
color: var(--n-item-icon-color-child-active-horizontal);
|
||
`)]),fe("disabled",[fe("selected, child-active",[w("&:focus-within",Qt)]),z("selected",[ye(null,[A("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),f("menu-item-content-header",`
|
||
color: var(--n-item-text-color-active-hover-horizontal);
|
||
`,[w("a","color: var(--n-item-text-color-active-hover-horizontal);"),A("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),z("child-active",[ye(null,[A("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),f("menu-item-content-header",`
|
||
color: var(--n-item-text-color-child-active-hover-horizontal);
|
||
`,[w("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),A("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),ye("border-bottom: 2px solid var(--n-border-color-horizontal);",Qt)]),f("menu-item-content-header",[w("a","color: var(--n-item-text-color-horizontal);")])])]),z("collapsed",[f("menu-item-content",[z("selected",[w("&::before",`
|
||
background-color: var(--n-item-color-active-collapsed) !important;
|
||
`)]),f("menu-item-content-header","opacity: 0;"),A("arrow","opacity: 0;"),A("icon","color: var(--n-item-icon-color-collapsed);")])]),f("menu-item",`
|
||
height: var(--n-item-height);
|
||
margin-top: 6px;
|
||
position: relative;
|
||
`),f("menu-item-content",`
|
||
box-sizing: border-box;
|
||
line-height: 1.75;
|
||
height: 100%;
|
||
display: grid;
|
||
grid-template-areas: "icon content arrow";
|
||
grid-template-columns: auto 1fr auto;
|
||
align-items: center;
|
||
cursor: pointer;
|
||
position: relative;
|
||
padding-right: 18px;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
padding-left .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier);
|
||
`,[w("> *","z-index: 1;"),w("&::before",`
|
||
z-index: auto;
|
||
content: "";
|
||
background-color: #0000;
|
||
position: absolute;
|
||
left: 8px;
|
||
right: 8px;
|
||
top: 0;
|
||
bottom: 0;
|
||
pointer-events: none;
|
||
border-radius: var(--n-border-radius);
|
||
transition: background-color .3s var(--n-bezier);
|
||
`),z("disabled",`
|
||
opacity: .45;
|
||
cursor: not-allowed;
|
||
`),z("collapsed",[A("arrow","transform: rotate(0);")]),z("selected",[w("&::before","background-color: var(--n-item-color-active);"),A("arrow","color: var(--n-arrow-color-active);"),A("icon","color: var(--n-item-icon-color-active);"),f("menu-item-content-header",`
|
||
color: var(--n-item-text-color-active);
|
||
`,[w("a","color: var(--n-item-text-color-active);"),A("extra","color: var(--n-item-text-color-active);")])]),z("child-active",[f("menu-item-content-header",`
|
||
color: var(--n-item-text-color-child-active);
|
||
`,[w("a",`
|
||
color: var(--n-item-text-color-child-active);
|
||
`),A("extra",`
|
||
color: var(--n-item-text-color-child-active);
|
||
`)]),A("arrow",`
|
||
color: var(--n-arrow-color-child-active);
|
||
`),A("icon",`
|
||
color: var(--n-item-icon-color-child-active);
|
||
`)]),fe("disabled",[fe("selected, child-active",[w("&:focus-within",Jt)]),z("selected",[ye(null,[A("arrow","color: var(--n-arrow-color-active-hover);"),A("icon","color: var(--n-item-icon-color-active-hover);"),f("menu-item-content-header",`
|
||
color: var(--n-item-text-color-active-hover);
|
||
`,[w("a","color: var(--n-item-text-color-active-hover);"),A("extra","color: var(--n-item-text-color-active-hover);")])])]),z("child-active",[ye(null,[A("arrow","color: var(--n-arrow-color-child-active-hover);"),A("icon","color: var(--n-item-icon-color-child-active-hover);"),f("menu-item-content-header",`
|
||
color: var(--n-item-text-color-child-active-hover);
|
||
`,[w("a","color: var(--n-item-text-color-child-active-hover);"),A("extra","color: var(--n-item-text-color-child-active-hover);")])])]),z("selected",[ye(null,[w("&::before","background-color: var(--n-item-color-active-hover);")])]),ye(null,Jt)]),A("icon",`
|
||
grid-area: icon;
|
||
color: var(--n-item-icon-color);
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
font-size .3s var(--n-bezier),
|
||
margin-right .3s var(--n-bezier);
|
||
box-sizing: content-box;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
`),A("arrow",`
|
||
grid-area: arrow;
|
||
font-size: 16px;
|
||
color: var(--n-arrow-color);
|
||
transform: rotate(180deg);
|
||
opacity: 1;
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
transform 0.2s var(--n-bezier),
|
||
opacity 0.2s var(--n-bezier);
|
||
`),f("menu-item-content-header",`
|
||
grid-area: content;
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
opacity .3s var(--n-bezier);
|
||
opacity: 1;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
color: var(--n-item-text-color);
|
||
`,[w("a",`
|
||
outline: none;
|
||
text-decoration: none;
|
||
transition: color .3s var(--n-bezier);
|
||
color: var(--n-item-text-color);
|
||
`,[w("&::before",`
|
||
content: "";
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
`)]),A("extra",`
|
||
font-size: .93em;
|
||
color: var(--n-group-text-color);
|
||
transition: color .3s var(--n-bezier);
|
||
`)])]),f("submenu",`
|
||
cursor: pointer;
|
||
position: relative;
|
||
margin-top: 6px;
|
||
`,[f("menu-item-content",`
|
||
height: var(--n-item-height);
|
||
`),f("submenu-children",`
|
||
overflow: hidden;
|
||
padding: 0;
|
||
`,[Fn({duration:".2s"})])]),f("menu-item-group",[f("menu-item-group-title",`
|
||
margin-top: 6px;
|
||
color: var(--n-group-text-color);
|
||
cursor: default;
|
||
font-size: .93em;
|
||
height: 36px;
|
||
display: flex;
|
||
align-items: center;
|
||
transition:
|
||
padding-left .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
`)])]),f("menu-tooltip",[w("a",`
|
||
color: inherit;
|
||
text-decoration: none;
|
||
`)]),f("menu-divider",`
|
||
transition: background-color .3s var(--n-bezier);
|
||
background-color: var(--n-divider-color);
|
||
height: 1px;
|
||
margin: 6px 18px;
|
||
`)]);function ye(e,t){return[z("hover",e,t),w("&:hover",e,t)]}const Ma=Object.assign(Object.assign({},se.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,default:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array,dropdownPlacement:{type:String,default:"bottom"}}),Dt=L({name:"Menu",props:Ma,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ce(e),a=se("Menu","-menu",Ba,En,e,t),r=de(ya,null),i=B(()=>{var U;const{collapsed:P}=e;if(P!==void 0)return P;if(r){const{collapseModeRef:m,collapsedRef:j}=r;if(m.value==="width")return(U=j.value)!==null&&U!==void 0?U:!1}return!1}),l=B(()=>{const{keyField:U,childrenField:P,disabledField:m}=e;return fr(e.items||e.options,{getIgnored(j){return Bo(j)},getChildren(j){return j[P]},getDisabled(j){return j[m]},getKey(j){var Y;return(Y=j[U])!==null&&Y!==void 0?Y:j.name}})}),s=B(()=>new Set(l.value.treeNodes.map(U=>U.key))),{watchProps:c}=e,p=K(null);c!=null&&c.includes("defaultValue")?He(()=>{p.value=e.defaultValue}):p.value=e.defaultValue;const _=le(e,"value"),h=Ie(_,p),u=K([]),x=()=>{u.value=e.defaultExpandAll?l.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||l.value.getPath(h.value,{includeSelf:!1}).keyPath};c!=null&&c.includes("defaultExpandedKeys")?He(x):x();const T=yt(e,["expandedNames","expandedKeys"]),R=Ie(T,u),M=B(()=>l.value.treeNodes),E=B(()=>l.value.getPath(h.value).keyPath);he(Ue,{props:e,mergedCollapsedRef:i,mergedThemeRef:a,mergedValueRef:h,mergedExpandedKeysRef:R,activePathRef:E,mergedClsPrefixRef:t,isHorizontalRef:B(()=>e.mode==="horizontal"),invertedRef:le(e,"inverted"),doSelect:F,toggleExpand:O});function F(U,P){const{"onUpdate:value":m,onUpdateValue:j,onSelect:Y}=e;j&&te(j,U,P),m&&te(m,U,P),Y&&te(Y,U,P),p.value=U}function H(U){const{"onUpdate:expandedKeys":P,onUpdateExpandedKeys:m,onExpandedNamesChange:j,onOpenNamesChange:Y}=e;P&&te(P,U),m&&te(m,U),j&&te(j,U),Y&&te(Y,U),u.value=U}function O(U){const P=Array.from(R.value),m=P.findIndex(j=>j===U);if(~m)P.splice(m,1);else{if(e.accordion&&s.value.has(U)){const j=P.findIndex(Y=>s.value.has(Y));j>-1&&P.splice(j,1)}P.push(U)}H(P)}const y=U=>{const P=l.value.getPath(U??h.value,{includeSelf:!1}).keyPath;if(!P.length)return;const m=Array.from(R.value),j=new Set([...m,...P]);e.accordion&&s.value.forEach(Y=>{j.has(Y)&&!P.includes(Y)&&j.delete(Y)}),H(Array.from(j))},k=B(()=>{const{inverted:U}=e,{common:{cubicBezierEaseInOut:P},self:m}=a.value,{borderRadius:j,borderColorHorizontal:Y,fontSize:ee,itemHeight:ge,dividerColor:xe}=m,C={"--n-divider-color":xe,"--n-bezier":P,"--n-font-size":ee,"--n-border-color-horizontal":Y,"--n-border-radius":j,"--n-item-height":ge};return U?(C["--n-group-text-color"]=m.groupTextColorInverted,C["--n-color"]=m.colorInverted,C["--n-item-text-color"]=m.itemTextColorInverted,C["--n-item-text-color-hover"]=m.itemTextColorHoverInverted,C["--n-item-text-color-active"]=m.itemTextColorActiveInverted,C["--n-item-text-color-child-active"]=m.itemTextColorChildActiveInverted,C["--n-item-text-color-child-active-hover"]=m.itemTextColorChildActiveInverted,C["--n-item-text-color-active-hover"]=m.itemTextColorActiveHoverInverted,C["--n-item-icon-color"]=m.itemIconColorInverted,C["--n-item-icon-color-hover"]=m.itemIconColorHoverInverted,C["--n-item-icon-color-active"]=m.itemIconColorActiveInverted,C["--n-item-icon-color-active-hover"]=m.itemIconColorActiveHoverInverted,C["--n-item-icon-color-child-active"]=m.itemIconColorChildActiveInverted,C["--n-item-icon-color-child-active-hover"]=m.itemIconColorChildActiveHoverInverted,C["--n-item-icon-color-collapsed"]=m.itemIconColorCollapsedInverted,C["--n-item-text-color-horizontal"]=m.itemTextColorHorizontalInverted,C["--n-item-text-color-hover-horizontal"]=m.itemTextColorHoverHorizontalInverted,C["--n-item-text-color-active-horizontal"]=m.itemTextColorActiveHorizontalInverted,C["--n-item-text-color-child-active-horizontal"]=m.itemTextColorChildActiveHorizontalInverted,C["--n-item-text-color-child-active-hover-horizontal"]=m.itemTextColorChildActiveHoverHorizontalInverted,C["--n-item-text-color-active-hover-horizontal"]=m.itemTextColorActiveHoverHorizontalInverted,C["--n-item-icon-color-horizontal"]=m.itemIconColorHorizontalInverted,C["--n-item-icon-color-hover-horizontal"]=m.itemIconColorHoverHorizontalInverted,C["--n-item-icon-color-active-horizontal"]=m.itemIconColorActiveHorizontalInverted,C["--n-item-icon-color-active-hover-horizontal"]=m.itemIconColorActiveHoverHorizontalInverted,C["--n-item-icon-color-child-active-horizontal"]=m.itemIconColorChildActiveHorizontalInverted,C["--n-item-icon-color-child-active-hover-horizontal"]=m.itemIconColorChildActiveHoverHorizontalInverted,C["--n-arrow-color"]=m.arrowColorInverted,C["--n-arrow-color-hover"]=m.arrowColorHoverInverted,C["--n-arrow-color-active"]=m.arrowColorActiveInverted,C["--n-arrow-color-active-hover"]=m.arrowColorActiveHoverInverted,C["--n-arrow-color-child-active"]=m.arrowColorChildActiveInverted,C["--n-arrow-color-child-active-hover"]=m.arrowColorChildActiveHoverInverted,C["--n-item-color-hover"]=m.itemColorHoverInverted,C["--n-item-color-active"]=m.itemColorActiveInverted,C["--n-item-color-active-hover"]=m.itemColorActiveHoverInverted,C["--n-item-color-active-collapsed"]=m.itemColorActiveCollapsedInverted):(C["--n-group-text-color"]=m.groupTextColor,C["--n-color"]=m.color,C["--n-item-text-color"]=m.itemTextColor,C["--n-item-text-color-hover"]=m.itemTextColorHover,C["--n-item-text-color-active"]=m.itemTextColorActive,C["--n-item-text-color-child-active"]=m.itemTextColorChildActive,C["--n-item-text-color-child-active-hover"]=m.itemTextColorChildActiveHover,C["--n-item-text-color-active-hover"]=m.itemTextColorActiveHover,C["--n-item-icon-color"]=m.itemIconColor,C["--n-item-icon-color-hover"]=m.itemIconColorHover,C["--n-item-icon-color-active"]=m.itemIconColorActive,C["--n-item-icon-color-active-hover"]=m.itemIconColorActiveHover,C["--n-item-icon-color-child-active"]=m.itemIconColorChildActive,C["--n-item-icon-color-child-active-hover"]=m.itemIconColorChildActiveHover,C["--n-item-icon-color-collapsed"]=m.itemIconColorCollapsed,C["--n-item-text-color-horizontal"]=m.itemTextColorHorizontal,C["--n-item-text-color-hover-horizontal"]=m.itemTextColorHoverHorizontal,C["--n-item-text-color-active-horizontal"]=m.itemTextColorActiveHorizontal,C["--n-item-text-color-child-active-horizontal"]=m.itemTextColorChildActiveHorizontal,C["--n-item-text-color-child-active-hover-horizontal"]=m.itemTextColorChildActiveHoverHorizontal,C["--n-item-text-color-active-hover-horizontal"]=m.itemTextColorActiveHoverHorizontal,C["--n-item-icon-color-horizontal"]=m.itemIconColorHorizontal,C["--n-item-icon-color-hover-horizontal"]=m.itemIconColorHoverHorizontal,C["--n-item-icon-color-active-horizontal"]=m.itemIconColorActiveHorizontal,C["--n-item-icon-color-active-hover-horizontal"]=m.itemIconColorActiveHoverHorizontal,C["--n-item-icon-color-child-active-horizontal"]=m.itemIconColorChildActiveHorizontal,C["--n-item-icon-color-child-active-hover-horizontal"]=m.itemIconColorChildActiveHoverHorizontal,C["--n-arrow-color"]=m.arrowColor,C["--n-arrow-color-hover"]=m.arrowColorHover,C["--n-arrow-color-active"]=m.arrowColorActive,C["--n-arrow-color-active-hover"]=m.arrowColorActiveHover,C["--n-arrow-color-child-active"]=m.arrowColorChildActive,C["--n-arrow-color-child-active-hover"]=m.arrowColorChildActiveHover,C["--n-item-color-hover"]=m.itemColorHover,C["--n-item-color-active"]=m.itemColorActive,C["--n-item-color-active-hover"]=m.itemColorActiveHover,C["--n-item-color-active-collapsed"]=m.itemColorActiveCollapsed),C}),G=o?Pe("menu",B(()=>e.inverted?"a":"b"),k,e):void 0;return{mergedClsPrefix:t,controlledExpandedKeys:T,uncontrolledExpanededKeys:u,mergedExpandedKeys:R,uncontrolledValue:p,mergedValue:h,activePath:E,tmNodes:M,mergedTheme:a,mergedCollapsed:i,cssVars:o?void 0:k,themeClass:G==null?void 0:G.themeClass,onRender:G==null?void 0:G.onRender,showOption:y}},render(){const{mergedClsPrefix:e,mode:t,themeClass:o,onRender:a}=this;return a==null||a(),b("div",{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,o,`${e}-menu--${t}`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},this.tmNodes.map(r=>Lt(r,this.$props)))}}),Ia=Object.assign(Object.assign({},se.props),{trigger:String,xScrollable:Boolean,onScroll:Function,size:Number}),Pa=L({name:"Scrollbar",props:Ia,setup(){const e=K(null);return Object.assign(Object.assign({},{scrollTo:(...o)=>{var a;(a=e.value)===null||a===void 0||a.scrollTo(o[0],o[1])},scrollBy:(...o)=>{var a;(a=e.value)===null||a===void 0||a.scrollBy(o[0],o[1])}}),{scrollbarInstRef:e})},render(){return b(St,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),je=Pa,Ht=Fe("n-tabs"),Mo={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},Fa=L({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:Mo,setup(e){const t=de(Ht,null);return t||so("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return b("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),Ea=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},An(Mo,["displayDirective"])),wt=L({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:Ea,setup(e){const{mergedClsPrefixRef:t,valueRef:o,typeRef:a,closableRef:r,tabStyleRef:i,tabChangeIdRef:l,onBeforeLeaveRef:s,triggerRef:c,handleAdd:p,activateTab:_,handleClose:h}=de(Ht);return{trigger:c,mergedClosable:B(()=>{if(e.internalAddable)return!1;const{closable:u}=e;return u===void 0?r.value:u}),style:i,clsPrefix:t,value:o,type:a,handleClose(u){u.stopPropagation(),!e.disabled&&h(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){p();return}const{name:u}=e,x=++l.id;if(u!==o.value){const{value:T}=s;T?Promise.resolve(T(e.name,o.value)).then(R=>{R&&l.id===x&&_(u)}):_(u)}}}},render(){const{internalAddable:e,clsPrefix:t,name:o,disabled:a,label:r,tab:i,value:l,mergedClosable:s,style:c,trigger:p,$slots:{default:_}}=this,h=r??i;return b("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?b("div",{class:`${t}-tabs-tab-pad`}):null,b("div",Object.assign({key:o,"data-name":o,"data-disabled":a?!0:void 0},$t({class:[`${t}-tabs-tab`,l===o&&`${t}-tabs-tab--active`,a&&`${t}-tabs-tab--disabled`,s&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`],onClick:p==="click"?this.activateTab:void 0,onMouseenter:p==="hover"?this.activateTab:void 0,style:e?void 0:c},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),b("span",{class:`${t}-tabs-tab__label`},e?b(Z,null,b("div",{class:`${t}-tabs-tab__height-placeholder`}," "),b(zt,{clsPrefix:t},{default:()=>b(pr,null)})):_?_():typeof h=="object"?h:we(h??o)),s&&this.type==="card"?b(co,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:a}):null))}}),Aa=f("tabs",`
|
||
box-sizing: border-box;
|
||
width: 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier);
|
||
`,[z("segment-type",[f("tabs-rail",[w("&.transition-disabled","color: red;",[f("tabs-tab",`
|
||
transition: none;
|
||
`)])])]),z("top",[f("tab-pane",`
|
||
padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left);
|
||
`)]),z("left",[f("tab-pane",`
|
||
padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top);
|
||
`)]),z("left, right",`
|
||
flex-direction: row;
|
||
`,[f("tabs-bar",`
|
||
width: 2px;
|
||
right: 0;
|
||
transition:
|
||
top .2s var(--n-bezier),
|
||
max-height .2s var(--n-bezier),
|
||
background-color .3s var(--n-bezier);
|
||
`),f("tabs-tab",`
|
||
padding: var(--n-tab-padding-vertical);
|
||
`)]),z("right",`
|
||
flex-direction: row-reverse;
|
||
`,[f("tab-pane",`
|
||
padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom);
|
||
`),f("tabs-bar",`
|
||
left: 0;
|
||
`)]),z("bottom",`
|
||
flex-direction: column-reverse;
|
||
justify-content: flex-end;
|
||
`,[f("tab-pane",`
|
||
padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left);
|
||
`),f("tabs-bar",`
|
||
top: 0;
|
||
`)]),f("tabs-rail",`
|
||
padding: 3px;
|
||
border-radius: var(--n-tab-border-radius);
|
||
width: 100%;
|
||
background-color: var(--n-color-segment);
|
||
transition: background-color .3s var(--n-bezier);
|
||
display: flex;
|
||
align-items: center;
|
||
`,[f("tabs-tab-wrapper",`
|
||
flex-basis: 0;
|
||
flex-grow: 1;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
`,[f("tabs-tab",`
|
||
overflow: hidden;
|
||
border-radius: var(--n-tab-border-radius);
|
||
width: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
`,[z("active",`
|
||
font-weight: var(--n-font-weight-strong);
|
||
color: var(--n-tab-text-color-active);
|
||
background-color: var(--n-tab-color-segment);
|
||
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
|
||
`),w("&:hover",`
|
||
color: var(--n-tab-text-color-hover);
|
||
`)])])]),z("flex",[f("tabs-nav",{width:"100%"},[f("tabs-wrapper",{width:"100%"},[f("tabs-tab",{marginRight:0})])])]),f("tabs-nav",`
|
||
box-sizing: border-box;
|
||
line-height: 1.5;
|
||
display: flex;
|
||
transition: border-color .3s var(--n-bezier);
|
||
`,[A("prefix, suffix",`
|
||
display: flex;
|
||
align-items: center;
|
||
`),A("prefix","padding-right: 16px;"),A("suffix","padding-left: 16px;")]),z("top, bottom",[f("tabs-nav-scroll-wrapper",[w("&::before",`
|
||
top: 0;
|
||
bottom: 0;
|
||
left: 0;
|
||
width: 20px;
|
||
`),w("&::after",`
|
||
top: 0;
|
||
bottom: 0;
|
||
right: 0;
|
||
width: 20px;
|
||
`),z("shadow-start",[w("&::before",`
|
||
box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
|
||
`)]),z("shadow-end",[w("&::after",`
|
||
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
|
||
`)])])]),z("left, right",[f("tabs-nav-scroll-wrapper",[w("&::before",`
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
height: 20px;
|
||
`),w("&::after",`
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0;
|
||
height: 20px;
|
||
`),z("shadow-start",[w("&::before",`
|
||
box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12);
|
||
`)]),z("shadow-end",[w("&::after",`
|
||
box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12);
|
||
`)])])]),f("tabs-nav-scroll-wrapper",`
|
||
flex: 1;
|
||
position: relative;
|
||
overflow: hidden;
|
||
`,[f("tabs-nav-y-scroll",`
|
||
height: 100%;
|
||
width: 100%;
|
||
overflow-y: auto;
|
||
scrollbar-width: none;
|
||
`,[w("&::-webkit-scrollbar",`
|
||
width: 0;
|
||
height: 0;
|
||
`)]),w("&::before, &::after",`
|
||
transition: box-shadow .3s var(--n-bezier);
|
||
pointer-events: none;
|
||
content: "";
|
||
position: absolute;
|
||
z-index: 1;
|
||
`)]),f("tabs-nav-scroll-content",`
|
||
display: flex;
|
||
position: relative;
|
||
min-width: 100%;
|
||
width: fit-content;
|
||
box-sizing: border-box;
|
||
`),f("tabs-wrapper",`
|
||
display: inline-flex;
|
||
flex-wrap: nowrap;
|
||
position: relative;
|
||
`),f("tabs-tab-wrapper",`
|
||
display: flex;
|
||
flex-wrap: nowrap;
|
||
flex-shrink: 0;
|
||
flex-grow: 0;
|
||
`),f("tabs-tab",`
|
||
cursor: pointer;
|
||
white-space: nowrap;
|
||
flex-wrap: nowrap;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
color: var(--n-tab-text-color);
|
||
font-size: var(--n-tab-font-size);
|
||
background-clip: padding-box;
|
||
padding: var(--n-tab-padding);
|
||
transition:
|
||
box-shadow .3s var(--n-bezier),
|
||
color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier);
|
||
`,[z("disabled",{cursor:"not-allowed"}),A("close",`
|
||
margin-left: 6px;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
`),A("label",`
|
||
display: flex;
|
||
align-items: center;
|
||
`)]),f("tabs-bar",`
|
||
position: absolute;
|
||
bottom: 0;
|
||
height: 2px;
|
||
border-radius: 1px;
|
||
background-color: var(--n-bar-color);
|
||
transition:
|
||
left .2s var(--n-bezier),
|
||
max-width .2s var(--n-bezier),
|
||
background-color .3s var(--n-bezier);
|
||
`,[w("&.transition-disabled",`
|
||
transition: none;
|
||
`),z("disabled",`
|
||
background-color: var(--n-tab-text-color-disabled)
|
||
`)]),f("tabs-pane-wrapper",`
|
||
position: relative;
|
||
overflow: hidden;
|
||
transition: max-height .2s var(--n-bezier);
|
||
`),f("tab-pane",`
|
||
color: var(--n-pane-text-color);
|
||
width: 100%;
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
opacity .2s var(--n-bezier);
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
`,[w("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",`
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
transform .2s var(--n-bezier),
|
||
opacity .2s var(--n-bezier);
|
||
`),w("&.next-transition-leave-active, &.prev-transition-leave-active",`
|
||
position: absolute;
|
||
`),w("&.next-transition-enter-from, &.prev-transition-leave-to",`
|
||
transform: translateX(32px);
|
||
opacity: 0;
|
||
`),w("&.next-transition-leave-to, &.prev-transition-enter-from",`
|
||
transform: translateX(-32px);
|
||
opacity: 0;
|
||
`),w("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",`
|
||
transform: translateX(0);
|
||
opacity: 1;
|
||
`)]),f("tabs-tab-pad",`
|
||
box-sizing: border-box;
|
||
width: var(--n-tab-gap);
|
||
flex-grow: 0;
|
||
flex-shrink: 0;
|
||
`),z("line-type, bar-type",[f("tabs-tab",`
|
||
font-weight: var(--n-tab-font-weight);
|
||
box-sizing: border-box;
|
||
vertical-align: bottom;
|
||
`,[w("&:hover",{color:"var(--n-tab-text-color-hover)"}),z("active",`
|
||
color: var(--n-tab-text-color-active);
|
||
font-weight: var(--n-tab-font-weight-active);
|
||
`),z("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),f("tabs-nav",[z("line-type",[z("top",[A("prefix, suffix",`
|
||
border-bottom: 1px solid var(--n-tab-border-color);
|
||
`),f("tabs-nav-scroll-content",`
|
||
border-bottom: 1px solid var(--n-tab-border-color);
|
||
`),f("tabs-bar",`
|
||
bottom: -1px;
|
||
`)]),z("left",[A("prefix, suffix",`
|
||
border-right: 1px solid var(--n-tab-border-color);
|
||
`),f("tabs-nav-scroll-content",`
|
||
border-right: 1px solid var(--n-tab-border-color);
|
||
`),f("tabs-bar",`
|
||
right: -1px;
|
||
`)]),z("right",[A("prefix, suffix",`
|
||
border-left: 1px solid var(--n-tab-border-color);
|
||
`),f("tabs-nav-scroll-content",`
|
||
border-left: 1px solid var(--n-tab-border-color);
|
||
`),f("tabs-bar",`
|
||
left: -1px;
|
||
`)]),z("bottom",[A("prefix, suffix",`
|
||
border-top: 1px solid var(--n-tab-border-color);
|
||
`),f("tabs-nav-scroll-content",`
|
||
border-top: 1px solid var(--n-tab-border-color);
|
||
`),f("tabs-bar",`
|
||
top: -1px;
|
||
`)]),A("prefix, suffix",`
|
||
transition: border-color .3s var(--n-bezier);
|
||
`),f("tabs-nav-scroll-content",`
|
||
transition: border-color .3s var(--n-bezier);
|
||
`),f("tabs-bar",`
|
||
border-radius: 0;
|
||
`)]),z("card-type",[A("prefix, suffix",`
|
||
transition: border-color .3s var(--n-bezier);
|
||
border-bottom: 1px solid var(--n-tab-border-color);
|
||
`),f("tabs-pad",`
|
||
flex-grow: 1;
|
||
transition: border-color .3s var(--n-bezier);
|
||
border-bottom: 1px solid var(--n-tab-border-color);
|
||
`),f("tabs-tab-pad",`
|
||
transition: border-color .3s var(--n-bezier);
|
||
`),f("tabs-tab",`
|
||
font-weight: var(--n-tab-font-weight);
|
||
border: 1px solid var(--n-tab-border-color);
|
||
background-color: var(--n-tab-color);
|
||
box-sizing: border-box;
|
||
position: relative;
|
||
vertical-align: bottom;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
font-size: var(--n-tab-font-size);
|
||
color: var(--n-tab-text-color);
|
||
`,[z("addable",`
|
||
padding-left: 8px;
|
||
padding-right: 8px;
|
||
font-size: 16px;
|
||
`,[A("height-placeholder",`
|
||
width: 0;
|
||
font-size: var(--n-tab-font-size);
|
||
`),fe("disabled",[w("&:hover",`
|
||
color: var(--n-tab-text-color-hover);
|
||
`)])]),z("closable","padding-right: 8px;"),z("active",`
|
||
background-color: #0000;
|
||
font-weight: var(--n-tab-font-weight-active);
|
||
color: var(--n-tab-text-color-active);
|
||
`),z("disabled","color: var(--n-tab-text-color-disabled);")]),f("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")]),z("left, right",[f("tabs-wrapper",`
|
||
flex-direction: column;
|
||
`,[f("tabs-tab-wrapper",`
|
||
flex-direction: column;
|
||
`,[f("tabs-tab-pad",`
|
||
height: var(--n-tab-gap-vertical);
|
||
width: 100%;
|
||
`)])])]),z("top",[z("card-type",[f("tabs-tab",`
|
||
border-top-left-radius: var(--n-tab-border-radius);
|
||
border-top-right-radius: var(--n-tab-border-radius);
|
||
`,[z("active",`
|
||
border-bottom: 1px solid #0000;
|
||
`)]),f("tabs-tab-pad",`
|
||
border-bottom: 1px solid var(--n-tab-border-color);
|
||
`)])]),z("left",[z("card-type",[f("tabs-tab",`
|
||
border-top-left-radius: var(--n-tab-border-radius);
|
||
border-bottom-left-radius: var(--n-tab-border-radius);
|
||
`,[z("active",`
|
||
border-right: 1px solid #0000;
|
||
`)]),f("tabs-tab-pad",`
|
||
border-right: 1px solid var(--n-tab-border-color);
|
||
`)])]),z("right",[z("card-type",[f("tabs-tab",`
|
||
border-top-right-radius: var(--n-tab-border-radius);
|
||
border-bottom-right-radius: var(--n-tab-border-radius);
|
||
`,[z("active",`
|
||
border-left: 1px solid #0000;
|
||
`)]),f("tabs-tab-pad",`
|
||
border-left: 1px solid var(--n-tab-border-color);
|
||
`)])]),z("bottom",[z("card-type",[f("tabs-tab",`
|
||
border-bottom-left-radius: var(--n-tab-border-radius);
|
||
border-bottom-right-radius: var(--n-tab-border-radius);
|
||
`,[z("active",`
|
||
border-top: 1px solid #0000;
|
||
`)]),f("tabs-tab-pad",`
|
||
border-top: 1px solid var(--n-tab-border-color);
|
||
`)])])])]),La=Object.assign(Object.assign({},se.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),Da=L({name:"Tabs",props:La,setup(e,{slots:t}){var o,a,r,i;const{mergedClsPrefixRef:l,inlineThemeDisabled:s}=Ce(e),c=se("Tabs","-tabs",Aa,Ln,e,l),p=K(null),_=K(null),h=K(null),u=K(null),x=K(null),T=K(!0),R=K(!0),M=yt(e,["labelSize","size"]),E=yt(e,["activeName","value"]),F=K((a=(o=E.value)!==null&&o!==void 0?o:e.defaultValue)!==null&&a!==void 0?a:t.default?(i=(r=vt(t.default())[0])===null||r===void 0?void 0:r.props)===null||i===void 0?void 0:i.name:null),H=Ie(E,F),O={id:0},y=B(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});re(H,()=>{O.id=0,P(),m()});function k(){var $;const{value:S}=H;return S===null?null:($=p.value)===null||$===void 0?void 0:$.querySelector(`[data-name="${S}"]`)}function G($){if(e.type==="card")return;const{value:S}=_;if(S&&$){const W=`${l.value}-tabs-bar--disabled`,{barWidth:X,placement:ae}=e;if($.dataset.disabled==="true"?S.classList.add(W):S.classList.remove(W),["top","bottom"].includes(ae)){if(U(["top","maxHeight","height"]),typeof X=="number"&&$.offsetWidth>=X){const ue=Math.floor(($.offsetWidth-X)/2)+$.offsetLeft;S.style.left=`${ue}px`,S.style.maxWidth=`${X}px`}else S.style.left=`${$.offsetLeft}px`,S.style.maxWidth=`${$.offsetWidth}px`;S.style.width="8192px",S.offsetWidth}else{if(U(["left","maxWidth","width"]),typeof X=="number"&&$.offsetHeight>=X){const ue=Math.floor(($.offsetHeight-X)/2)+$.offsetTop;S.style.top=`${ue}px`,S.style.maxHeight=`${X}px`}else S.style.top=`${$.offsetTop}px`,S.style.maxHeight=`${$.offsetHeight}px`;S.style.height="8192px",S.offsetHeight}}}function U($){const{value:S}=_;if(S)for(const W of $)S.style[W]=""}function P(){if(e.type==="card")return;const $=k();$&&G($)}function m($){var S;const W=(S=x.value)===null||S===void 0?void 0:S.$el;if(!W)return;const X=k();if(!X)return;const{scrollLeft:ae,offsetWidth:ue}=W,{offsetLeft:Te,offsetWidth:Ge}=X;ae>Te?W.scrollTo({top:0,left:Te,behavior:"smooth"}):Te+Ge>ae+ue&&W.scrollTo({top:0,left:Te+Ge-ue,behavior:"smooth"})}const j=K(null);let Y=0,ee=null;function ge($){const S=j.value;if(S){Y=$.getBoundingClientRect().height;const W=`${Y}px`,X=()=>{S.style.height=W,S.style.maxHeight=W};ee?(X(),ee(),ee=null):ee=X}}function xe($){const S=j.value;if(S){const W=$.getBoundingClientRect().height,X=()=>{document.body.offsetHeight,S.style.maxHeight=`${W}px`,S.style.height=`${Math.max(Y,W)}px`};ee?(ee(),ee=null,X()):ee=X}}function C(){const $=j.value;if($){$.style.maxHeight="",$.style.height="";const{paneWrapperStyle:S}=e;if(typeof S=="string")$.style.cssText=S;else if(S){const{maxHeight:W,height:X}=S;W!==void 0&&($.style.maxHeight=W),X!==void 0&&($.style.height=X)}}}const We={value:[]},Ve=K("next");function lt($){const S=H.value;let W="next";for(const X of We.value){if(X===S)break;if(X===$){W="prev";break}}Ve.value=W,it($)}function it($){const{onActiveNameChange:S,onUpdateValue:W,"onUpdate:value":X}=e;S&&te(S,$),W&&te(W,$),X&&te(X,$),F.value=$}function st($){const{onClose:S}=e;S&&te(S,$)}function Ke(){const{value:$}=_;if(!$)return;const S="transition-disabled";$.classList.add(S),P(),$.classList.remove(S)}let Xe=0;function ct($){var S;if($.contentRect.width===0&&$.contentRect.height===0||Xe===$.contentRect.width)return;Xe=$.contentRect.width;const{type:W}=e;(W==="line"||W==="bar")&&Ke(),W!=="segment"&&pt((S=x.value)===null||S===void 0?void 0:S.$el)}const dt=bt(ct,64);re([()=>e.justifyContent,()=>e.size],()=>{Re(()=>{const{type:$}=e;($==="line"||$==="bar")&&Ke()})});const ke=K(!1);function ut($){var S;const{target:W,contentRect:{width:X}}=$,ae=W.parentElement.offsetWidth;if(!ke.value)ae<X&&(ke.value=!0);else{const{value:ue}=u;if(!ue)return;ae-X>ue.$el.offsetWidth&&(ke.value=!1)}pt((S=x.value)===null||S===void 0?void 0:S.$el)}const ht=bt(ut,64);function Lo(){const{onAdd:$}=e;$&&$(),Re(()=>{const S=k(),{value:W}=x;!S||!W||W.scrollTo({left:S.offsetLeft,top:0,behavior:"smooth"})})}function pt($){if(!$)return;const{placement:S}=e;if(S==="top"||S==="bottom"){const{scrollLeft:W,scrollWidth:X,offsetWidth:ae}=$;T.value=W<=0,R.value=W+ae>=X}else{const{scrollTop:W,scrollHeight:X,offsetHeight:ae}=$;T.value=W<=0,R.value=W+ae>=X}}const Do=bt($=>{pt($.target)},64);he(Ht,{triggerRef:le(e,"trigger"),tabStyleRef:le(e,"tabStyle"),paneClassRef:le(e,"paneClass"),paneStyleRef:le(e,"paneStyle"),mergedClsPrefixRef:l,typeRef:le(e,"type"),closableRef:le(e,"closable"),valueRef:H,tabChangeIdRef:O,onBeforeLeaveRef:le(e,"onBeforeLeave"),activateTab:lt,handleClose:st,handleAdd:Lo}),ur(()=>{P(),m()}),He(()=>{const{value:$}=h;if(!$)return;const{value:S}=l,W=`${S}-tabs-nav-scroll-wrapper--shadow-start`,X=`${S}-tabs-nav-scroll-wrapper--shadow-end`;T.value?$.classList.remove(W):$.classList.add(W),R.value?$.classList.remove(X):$.classList.add(X)});const jt=K(null);re(H,()=>{if(e.type==="segment"){const $=jt.value;$&&Re(()=>{$.classList.add("transition-disabled"),$.offsetWidth,$.classList.remove("transition-disabled")})}});const Ho={syncBarPosition:()=>{P()}},Wt=B(()=>{const{value:$}=M,{type:S}=e,W={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[S],X=`${$}${W}`,{self:{barColor:ae,closeIconColor:ue,closeIconColorHover:Te,closeIconColorPressed:Ge,tabColor:No,tabBorderColor:Oo,paneTextColor:Uo,tabFontWeight:jo,tabBorderRadius:Wo,tabFontWeightActive:Vo,colorSegment:Ko,fontWeightStrong:Xo,tabColorSegment:Go,closeSize:Yo,closeIconSize:qo,closeColorHover:Zo,closeColorPressed:Jo,closeBorderRadius:Qo,[pe("panePadding",$)]:Ye,[pe("tabPadding",X)]:en,[pe("tabPaddingVertical",X)]:tn,[pe("tabGap",X)]:on,[pe("tabGap",`${X}Vertical`)]:nn,[pe("tabTextColor",S)]:rn,[pe("tabTextColorActive",S)]:an,[pe("tabTextColorHover",S)]:ln,[pe("tabTextColorDisabled",S)]:sn,[pe("tabFontSize",$)]:cn},common:{cubicBezierEaseInOut:dn}}=c.value;return{"--n-bezier":dn,"--n-color-segment":Ko,"--n-bar-color":ae,"--n-tab-font-size":cn,"--n-tab-text-color":rn,"--n-tab-text-color-active":an,"--n-tab-text-color-disabled":sn,"--n-tab-text-color-hover":ln,"--n-pane-text-color":Uo,"--n-tab-border-color":Oo,"--n-tab-border-radius":Wo,"--n-close-size":Yo,"--n-close-icon-size":qo,"--n-close-color-hover":Zo,"--n-close-color-pressed":Jo,"--n-close-border-radius":Qo,"--n-close-icon-color":ue,"--n-close-icon-color-hover":Te,"--n-close-icon-color-pressed":Ge,"--n-tab-color":No,"--n-tab-font-weight":jo,"--n-tab-font-weight-active":Vo,"--n-tab-padding":en,"--n-tab-padding-vertical":tn,"--n-tab-gap":on,"--n-tab-gap-vertical":nn,"--n-pane-padding-left":qe(Ye,"left"),"--n-pane-padding-right":qe(Ye,"right"),"--n-pane-padding-top":qe(Ye,"top"),"--n-pane-padding-bottom":qe(Ye,"bottom"),"--n-font-weight-strong":Xo,"--n-tab-color-segment":Go}}),Se=s?Pe("tabs",B(()=>`${M.value[0]}${e.type[0]}`),Wt,e):void 0;return Object.assign({mergedClsPrefix:l,mergedValue:H,renderedNames:new Set,tabsRailElRef:jt,tabsPaneWrapperRef:j,tabsElRef:p,barElRef:_,addTabInstRef:u,xScrollInstRef:x,scrollWrapperElRef:h,addTabFixed:ke,tabWrapperStyle:y,handleNavResize:dt,mergedSize:M,handleScroll:Do,handleTabsResize:ht,cssVars:s?void 0:Wt,themeClass:Se==null?void 0:Se.themeClass,animationDirection:Ve,renderNameListRef:We,onAnimationBeforeLeave:ge,onAnimationEnter:xe,onAnimationAfterEnter:C,onRender:Se==null?void 0:Se.onRender},Ho)},render(){const{mergedClsPrefix:e,type:t,placement:o,addTabFixed:a,addable:r,mergedSize:i,renderNameListRef:l,onRender:s,paneWrapperClass:c,paneWrapperStyle:p,$slots:{default:_,prefix:h,suffix:u}}=this;s==null||s();const x=_?vt(_()).filter(y=>y.type.__TAB_PANE__===!0):[],T=_?vt(_()).filter(y=>y.type.__TAB__===!0):[],R=!T.length,M=t==="card",E=t==="segment",F=!M&&!E&&this.justifyContent;l.value=[];const H=()=>{const y=b("div",{style:this.tabWrapperStyle,class:[`${e}-tabs-wrapper`]},F?null:b("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),R?x.map((k,G)=>(l.value.push(k.props.name),_t(b(wt,Object.assign({},k.props,{internalCreatedByPane:!0,internalLeftPadded:G!==0&&(!F||F==="center"||F==="start"||F==="end")}),k.children?{default:k.children.tab}:void 0)))):T.map((k,G)=>(l.value.push(k.props.name),_t(G!==0&&!F?oo(k):k))),!a&&r&&M?to(r,(R?x.length:T.length)!==0):null,F?null:b("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return b("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},M&&r?b(Kt,{onResize:this.handleTabsResize},{default:()=>y}):y,M?b("div",{class:`${e}-tabs-pad`}):null,M?null:b("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},O=E?"top":o;return b("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,F&&`${e}-tabs--flex`,`${e}-tabs--${O}`],style:this.cssVars},b("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${O}`,`${e}-tabs-nav`]},Vt(h,y=>y&&b("div",{class:`${e}-tabs-nav__prefix`},y)),E?b("div",{class:`${e}-tabs-rail`,ref:"tabsRailElRef"},R?x.map((y,k)=>(l.value.push(y.props.name),b(wt,Object.assign({},y.props,{internalCreatedByPane:!0,internalLeftPadded:k!==0}),y.children?{default:y.children.tab}:void 0))):T.map((y,k)=>(l.value.push(y.props.name),k===0?y:oo(y)))):b(Kt,{onResize:this.handleNavResize},{default:()=>b("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(O)?b(kr,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:H}):b("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll},H()))}),a&&r&&M?to(r,!0):null,Vt(u,y=>y&&b("div",{class:`${e}-tabs-nav__suffix`},y))),R&&(this.animated&&(O==="top"||O==="bottom")?b("div",{ref:"tabsPaneWrapperRef",style:p,class:[`${e}-tabs-pane-wrapper`,c]},eo(x,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):eo(x,this.mergedValue,this.renderedNames)))}});function eo(e,t,o,a,r,i,l){const s=[];return e.forEach(c=>{const{name:p,displayDirective:_,"display-directive":h}=c.props,u=T=>_===T||h===T,x=t===p;if(c.key!==void 0&&(c.key=p),x||u("show")||u("show:lazy")&&o.has(p)){o.has(p)||o.add(p);const T=!u("if");s.push(T?Be(c,[[et,x]]):c)}}),l?b(Dn,{name:`${l}-transition`,onBeforeLeave:a,onEnter:r,onAfterEnter:i},{default:()=>s}):s}function to(e,t){return b(wt,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function oo(e){const t=Hn(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function _t(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}function Nt(){const e=ce(),t=q(),o=Nn(On),a=B(()=>{const _="vertical",h="horizontal";return t.layout.mode.includes(_)?_:h}),r=o.smaller("sm"),i={vertical:{showLogo:!1,showHeaderMenu:!1,showMenuCollapse:!0},"vertical-mix":{showLogo:!1,showHeaderMenu:!1,showMenuCollapse:!1},horizontal:{showLogo:!0,showHeaderMenu:!0,showMenuCollapse:!1},"horizontal-mix":{showLogo:!0,showHeaderMenu:!1,showMenuCollapse:!0}},l=B(()=>i[t.layout.mode]),s=B(()=>t.layout.mode!=="horizontal"),c=B(()=>{const{width:_,mixWidth:h,mixChildMenuWidth:u}=t.sider,x=t.layout.mode==="vertical-mix";let T=x?h:_;return x&&e.mixSiderFixed&&(T+=u),T}),p=B(()=>{const{collapsedWidth:_,mixCollapsedWidth:h,mixChildMenuWidth:u}=t.sider,x=t.layout.mode==="vertical-mix";let T=x?h:_;return x&&e.mixSiderFixed&&(T+=u),T});return re(r,_=>{_&&e.setSiderCollapse(!0)},{immediate:!0}),{mode:a,isMobile:r,headerProps:l,siderVisible:s,siderWidth:c,siderCollapsedWidth:p}}function Ha(e,t,o){return Na(e,t).map(i=>Po(i,o))}function Na(e,t){const o=[],a=Un(e,t),r=a?Io(e,a):[];return o.push(...r),o}function Io(e,t){const o=[];return e===t.routeName&&o.push(t),e.includes(t.routeName)&&t.children&&t.children.length&&(o.push(t),o.push(...t.children.map(a=>Io(e,a)).flat(1))),o}function Po(e,t){var r;const o=!!(e.children&&e.children.length),a={key:e.routeName,label:e.label,routeName:e.routeName,disabled:e.routePath===t,hasChildren:o,i18nTitle:e.i18nTitle};return e.icon&&(a.icon=e.icon),o&&(a.options=(r=e.children)==null?void 0:r.map(i=>Po(i,t))),a}const Oa=[{label:"红色系",data:[{label:"绾",color:"#A98175"},{label:"檀",color:"#B36D61"},{label:"栗色",color:"#60281E"},{label:"玄",color:"#622A1D"},{label:"胭脂",color:"#9D2933"},{label:"殷红",color:"#BE002F"},{label:"枣红",color:"#C32136"},{label:"赤",color:"#C3272B"},{label:"绯红",color:"#C83C23"},{label:"赫赤",color:"#C91F37"},{label:"樱桃红",color:"#C93756"},{label:"茜色",color:"#CB3A56"},{label:"海棠红",color:"#DB5A6B"},{label:"酡红",color:"#DC3023"},{label:"妃色",color:"#ED5736"},{label:"嫣红",color:"#EF7A82"},{label:"品红",color:"#F00056"},{label:"石榴红",color:"#F20C00"},{label:"银红",color:"#F05654"},{label:"彤",color:"#F35336"},{label:"桃红",color:"#F47983"},{label:"酡颜",color:"#F9906F"},{label:"洋红",color:"#FF0097"},{label:"大红",color:"#FF2121"},{label:"火红",color:"#FF2D51"},{label:"炎",color:"#FF3300"},{label:"朱红",color:"#FF4C00"},{label:"丹",color:"#FF4E20"},{label:"粉红",color:"#FFB3A7"},{label:"藕荷",color:"#E4C6D0"},{label:"藕",color:"#EDD1D8"},{label:"水红",color:"#F3D3E7"},{label:"鱼肚白",color:"#FCEFE8"}]},{label:"橙色系",data:[{label:"褐色",color:"#6E511E"},{label:"棕黑",color:"#7C4B00"},{label:"赭色",color:"#955539"},{label:"棕红",color:"#9B4400"},{label:"赭",color:"#9C5333"},{label:"驼色",color:"#A88462"},{label:"棕色",color:"#B25D25"},{label:"茶色",color:"#B35C44"},{label:"琥珀",color:"#CA6924"},{label:"黄栌",color:"#E29C45"},{label:"橙色",color:"#FA8C35"},{label:"橘红",color:"#FF7500"},{label:"橘黄",color:"#FF8936"},{label:"杏红",color:"#FF8C31"},{label:"橙黄",color:"#FFA400"},{label:"杏黄",color:"#FFA631"},{label:"姜黄",color:"#FFC773"}]},{label:"黄色系",data:[{label:"黧",color:"#5D513C"},{label:"黎",color:"#75664D"},{label:"棕绿",color:"#827100"},{label:"秋色",color:"#896C39"},{label:"苍黄",color:"#A29B7C"},{label:"乌金",color:"#A78E44"},{label:"棕黄",color:"#AE7000"},{label:"昏黄",color:"#C89B40"},{label:"枯黄",color:"#D3B17D"},{label:"秋香色",color:"#D9B611"},{label:"金",color:"#EACD76"},{label:"牙",color:"#EEDEB0"},{label:"缃色",color:"#F0C239"},{label:"赤金",color:"#F2BE45"},{label:"鸭黄",color:"#FAFF72"},{label:"鹅黄",color:"#FFF143"},{label:"缟",color:"#F2ECDE"},{label:"象牙白",color:"#FFFBF0"}]},{label:"绿色系",data:[{label:"竹青",color:"#789262"},{label:"黯",color:"#41555D"},{label:"黛绿",color:"#426666"},{label:"松花绿",color:"#057748"},{label:"绿沈",color:"#0C8918"},{label:"深绿",color:"#009900"},{label:"青葱",color:"#0AA344"},{label:"铜绿",color:"#549688"},{label:"苍翠",color:"#519A73"},{label:"松柏绿",color:"#21A675"},{label:"葱青",color:"#0EB83A"},{label:"油绿",color:"#00BC12"},{label:"绿",color:"#00E500"},{label:"草绿",color:"#40DE5A"},{label:"豆青",color:"#96CE54"},{label:"豆绿",color:"#9ED048"},{label:"葱绿",color:"#9ED900"},{label:"葱黄",color:"#A3D900"},{label:"柳绿",color:"#AFDD22"},{label:"嫩绿",color:"#BDDD22"},{label:"柳黄",color:"#C9DD22"},{label:"松花",color:"#BCE672"},{label:"樱草色",color:"#EAFF56"}]},{label:"青色系",data:[{label:"水",color:"#88ADA6"},{label:"青碧",color:"#48C0A3"},{label:"碧",color:"#1BD1A5"},{label:"石青",color:"#7BCFA6"},{label:"青翠",color:"#00E079"},{label:"青",color:"#00E09E"},{label:"碧绿",color:"#2ADD9C"},{label:"玉",color:"#2EDFA3"},{label:"翡翠",color:"#3DE1AD"},{label:"缥",color:"#7FECAD"},{label:"碧蓝",color:"#3EEDE7"},{label:"湖绿",color:"#25F8CD"},{label:"艾绿",color:"#A4E2C6"},{label:"青白",color:"#C0EBD7"},{label:"水绿",color:"#D4F2E7"},{label:"鸭卵青",color:"#E0EEE8"},{label:"素",color:"#E0F0E9"},{label:"荼白",color:"#F3F9F1"}]},{label:"蓝色系",data:[{label:"藏蓝",color:"#3B2E7E"},{label:"宝蓝",color:"#4B5CC4"},{label:"绀青",color:"#003371"},{label:"藏青",color:"#2E4E7E"},{label:"靛蓝",color:"#065279"},{label:"靛青",color:"#177CB0"},{label:"群青",color:"#4C8DAE"},{label:"蓝",color:"#44CEF6"},{label:"湖蓝",color:"#30DFF3"},{label:"蔚蓝",color:"#70F3FF"},{label:"月白",color:"#D6ECF0"},{label:"水蓝",color:"#D2F0F4"},{label:"莹白",color:"#E3F9FD"},{label:"雪白",color:"#F0FCFF"}]},{label:"紫色系",data:[{label:"黛",color:"#4A4266"},{label:"紫檀",color:"#4C211B"},{label:"紫棠",color:"#56004F"},{label:"黛紫",color:"#574266"},{label:"绛紫",color:"#8C4356"},{label:"紫酱",color:"#815463"},{label:"酱紫",color:"#815476"},{label:"黝",color:"#6B6882"},{label:"青莲",color:"#801DAE"},{label:"紫",color:"#8D4BBB"},{label:"雪青",color:"#B0A4E3"},{label:"丁香",color:"#CCA4E3"}]},{label:"灰色系",data:[{label:"黑",color:"#000000"},{label:"漆黑",color:"#161823"},{label:"象牙黑",color:"#312520"},{label:"乌黑",color:"#392F41"},{label:"玄青",color:"#3D3B4F"},{label:"缁",color:"#493131"},{label:"黝黑",color:"#665757"},{label:"鸦青",color:"#424C50"},{label:"黛蓝",color:"#425066"},{label:"苍黑",color:"#395260"},{label:"墨",color:"#50616D"},{label:"灰",color:"#808080"},{label:"苍",color:"#75878A"},{label:"墨灰",color:"#758A99"},{label:"苍青",color:"#7397AB"},{label:"蓝灰",color:"#A1AFC9"},{label:"老银",color:"#BACAC6"},{label:"蟹壳青",color:"#BBCDC5"},{label:"苍白",color:"#D1D9E0"},{label:"淡青",color:"#D3E0F3"},{label:"银白",color:"#E9E7EF"},{label:"霜",color:"#E9F1F6"},{label:"铅白",color:"#F0F0F4"},{label:"精白",color:"#FFFFFF"}]}],Fo=Oa;function Ua(e){return Fo.some(t=>t.data.some(a=>a.color===e))}const ja={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},Wa=I("path",{fill:"currentColor","fill-rule":"evenodd",d:"M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926L224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512L166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"},null,-1),Va=[Wa];function Ka(e,t){return v(),N("svg",ja,Va)}const Xa={name:"ant-design-close-outlined",render:Ka},Ga=L({name:"DrawerButton",__name:"index",setup(e){const t=ce();return(o,a)=>{const r=Xa,i=xo,l=Ne;return v(),D(l,{type:"primary",class:oe([[{"!right-330px":n(t).settingDrawerVisible},n(t).settingDrawerVisible?"ease-out":"ease-in"],"fixed top-360px right-14px z-10000 w-42px h-42px !p-0 transition-all duration-300"]),onClick:n(t).toggleSettingDrawerVisible},{default:g(()=>[n(t).settingDrawerVisible?(v(),D(r,{key:0,class:"text-24px"})):(v(),D(i,{key:1,class:"text-24px"}))]),_:1},8,["class","onClick"])}}}),Ya={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},qa=I("path",{fill:"currentColor",d:"M12.04 8.04h-.09l-1.6 4.55h3.29z"},null,-1),Za=I("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm3 14.41l-.78-2.22H9.78l-.79 2.22c-.12.35-.46.59-.83.59a.887.887 0 0 1-.83-1.2l3.34-8.88a1.42 1.42 0 0 1 2.66 0l3.34 8.88c.22.58-.21 1.2-.83 1.2c-.38 0-.72-.24-.84-.59z"},null,-1),Ja=[qa,Za];function Qa(e,t){return v(),N("svg",Ya,Ja)}const el={name:"ic-round-hdr-auto",render:Qa},tl={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},ol=I("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8c0-1.85.63-3.55 1.69-4.9L16.9 18.31A7.902 7.902 0 0 1 12 20zm6.31-3.1L7.1 5.69A7.902 7.902 0 0 1 12 4c4.42 0 8 3.58 8 8c0 1.85-.63 3.55-1.69 4.9z"},null,-1),nl=[ol];function rl(e,t){return v(),N("svg",tl,nl)}const al={name:"ic-baseline-do-not-disturb",render:rl},ll={class:"flex-y-center justify-between"},J=L({name:"SettingMenu",__name:"index",props:{label:{}},setup(e){return(t,o)=>(v(),N("div",ll,[I("span",null,Q(t.label),1),Me(t.$slots,"default")]))}}),il=L({name:"DarkMode",__name:"index",setup(e){const t=q();return(o,a)=>{const r=Le,i=rr,l=ar,s=Mt,c=al,p=el,_=Ae;return v(),N(Z,null,[d(r,{"title-placement":"center"},{default:g(()=>[ie(Q(n(V)("layout.settingDrawer.themeModeTitle")),1)]),_:1}),d(_,{vertical:"",size:"large"},{default:g(()=>[d(J,{label:n(V)("layout.settingDrawer.darkMode")},{default:g(()=>[d(s,{value:n(t).darkMode,"onUpdate:value":n(t).setDarkMode},{checked:g(()=>[d(i,{class:"text-14px text-white"})]),unchecked:g(()=>[d(l,{class:"text-14px text-white"})]),_:1},8,["value","onUpdate:value"])]),_:1},8,["label"]),d(J,{label:n(V)("layout.settingDrawer.followSystemTheme")},{default:g(()=>[d(s,{value:n(t).followSystemTheme,"onUpdate:value":n(t).setFollowSystemTheme},{checked:g(()=>[d(c,{class:"text-14px text-white"})]),unchecked:g(()=>[d(p,{class:"text-14px text-white"})]),_:1},8,["value","onUpdate:value"])]),_:1},8,["label"]),d(J,{label:n(V)("layout.settingDrawer.isCustomizeDarkModeTransition")},{default:g(()=>[d(s,{value:n(t).isCustomizeDarkModeTransition,"onUpdate:value":n(t).setIsCustomizeDarkModeTransition},{checked:g(()=>[d(c,{class:"text-14px text-white"})]),unchecked:g(()=>[d(p,{class:"text-14px text-white"})]),_:1},8,["value","onUpdate:value"])]),_:1},8,["label"]),d(J,{label:n(V)("layout.settingDrawer.sider.inverted")},{default:g(()=>[d(s,{value:n(t).sider.inverted,"onUpdate:value":n(t).setSiderInverted},null,8,["value","onUpdate:value"])]),_:1},8,["label"]),d(J,{label:n(V)("layout.settingDrawer.header.inverted")},{default:g(()=>[d(s,{value:n(t).header.inverted,"onUpdate:value":n(t).setHeaderInverted},null,8,["value","onUpdate:value"])]),_:1},8,["label"]),d(J,{label:n(V)("layout.settingDrawer.footer.inverted")},{default:g(()=>[d(s,{value:n(t).footer.inverted,"onUpdate:value":n(t).setFooterInverted},null,8,["value","onUpdate:value"])]),_:1},8,["label"])]),_:1})],64)}}}),sl=L({name:"LayoutCard",__name:"layout-card",props:{mode:{},label:{},checked:{type:Boolean}},setup(e){const t=e,o={vertical:{placement:"bottom-start",headerClass:"",menuClass:"w-1/3 h-full",mainClass:"w-2/3 h-3/4"},"vertical-mix":{placement:"bottom",headerClass:"",menuClass:"w-1/4 h-full",mainClass:"w-2/3 h-3/4"},horizontal:{placement:"bottom",headerClass:"",menuClass:"w-full h-1/4",mainClass:"w-full h-3/4"},"horizontal-mix":{placement:"bottom-end",headerClass:"",menuClass:"w-full h-1/4",mainClass:"w-2/3 h-3/4"}},a=B(()=>o[t.mode]);return(r,i)=>{const l=It;return v(),N("div",{class:oe(["border-2px rounded-6px cursor-pointer hover:border-primary",[r.checked?"border-primary":"border-transparent"]])},[d(l,{placement:a.value.placement,trigger:"hover"},{trigger:g(()=>[I("div",{class:oe(["layout-card__shadow gap-6px w-96px h-64px p-6px rd-4px",[r.mode.includes("vertical")?"flex":"flex-col"]])},[Me(r.$slots,"default",{},void 0,!0)],2)]),default:g(()=>[I("span",null,Q(r.label),1)]),_:3},8,["placement"])],2)}}}),cl=_e(sl,[["__scopeId","data-v-e2b400d3"]]),ve=e=>(uo("data-v-3f56b2fa"),e=e(),ho(),e),dl=ve(()=>I("div",{class:"w-18px h-full bg-primary:50 rd-4px"},null,-1)),ul=ve(()=>I("div",{class:"flex-1 flex-col gap-6px"},[I("div",{class:"h-16px bg-primary rd-4px"}),I("div",{class:"flex-1 bg-primary:25 rd-4px"})],-1)),hl=ve(()=>I("div",{class:"w-8px h-full bg-primary:50 rd-4px"},null,-1)),pl=ve(()=>I("div",{class:"w-16px h-full bg-primary:50 rd-4px"},null,-1)),ml=ve(()=>I("div",{class:"flex-1 flex-col gap-6px"},[I("div",{class:"h-16px bg-primary rd-4px"}),I("div",{class:"flex-1 bg-primary:25 rd-4px"})],-1)),vl=ve(()=>I("div",{class:"h-16px bg-primary rd-4px"},null,-1)),fl=ve(()=>I("div",{class:"flex-1 flex gap-6px"},[I("div",{class:"flex-1 bg-primary:25 rd-4px"})],-1)),bl=ve(()=>I("div",{class:"h-16px bg-primary rd-4px"},null,-1)),_l=ve(()=>I("div",{class:"flex-1 flex gap-6px"},[I("div",{class:"w-18px bg-primary:50 rd-4px"}),I("div",{class:"flex-1 bg-primary:25 rd-4px"})],-1)),gl=L({name:"LayoutMode",__name:"index",setup(e){const t=q();return(o,a)=>{const r=Le,i=Ae;return v(),N(Z,null,[d(r,{"title-placement":"center"},{default:g(()=>[ie(Q(n(V)("layout.settingDrawer.layoutModelTitle")),1)]),_:1}),d(i,{justify:"space-around",wrap:!0,size:24,class:"px-12px"},{default:g(()=>[(v(!0),N(Z,null,be(n(t).layout.modeList,l=>(v(),D(n(cl),{key:l.value,mode:l.value,label:l.label,checked:l.value===n(t).layout.mode,onClick:s=>n(t).setLayoutMode(l.value)},{default:g(()=>[l.value==="vertical"?(v(),N(Z,{key:0},[dl,ul],64)):ne("",!0),l.value==="vertical-mix"?(v(),N(Z,{key:1},[hl,pl,ml],64)):ne("",!0),l.value==="horizontal"?(v(),N(Z,{key:2},[vl,fl],64)):ne("",!0),l.value==="horizontal-mix"?(v(),N(Z,{key:3},[bl,_l],64)):ne("",!0)]),_:2},1032,["mode","label","checked","onClick"]))),128))]),_:1})],64)}}}),xl=_e(gl,[["__scopeId","data-v-3f56b2fa"]]),yl={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},wl=I("path",{fill:"currentColor",d:"M9 16.17L4.83 12l-1.42 1.41L9 19L21 7l-1.41-1.41L9 16.17z"},null,-1),Cl=[wl];function $l(e,t){return v(),N("svg",yl,Cl)}const zl={name:"ic-outline-check",render:$l},Eo=L({name:"ColorCheckbox",__name:"color-checkbox",props:{color:{},checked:{type:Boolean},iconClass:{default:"text-14px"}},setup(e){const t=e,o=["#ffffff","#fff","rgb(255,255,255)"],a=B(()=>o.includes(t.color));return(r,i)=>{const l=zl;return v(),N("div",{class:"flex-center w-20px h-20px rounded-2px shadow cursor-pointer",style:me({backgroundColor:r.color})},[r.checked?(v(),D(l,{key:0,class:oe([r.iconClass,a.value?"text-gray-700":"text-white"])},null,8,["class"])):ne("",!0)],4)}}}),kl={class:"flex-x-center"},Sl={class:"text-center"},Tl=L({name:"ColorModal",__name:"color-modal",props:{visible:{type:Boolean}},emits:["close"],setup(e,{emit:t}){const o=q();function a(){t("close")}return(r,i)=>{const l=hr,s=yo,c=wo,p=Fa,_=Da,h=po;return v(),D(h,{show:r.visible,preset:"card",class:"w-640px h-480px","z-index":10001,onClose:a},{default:g(()=>[I("div",kl,[d(l,{type:"primary",size:24},{default:g(()=>[ie("中国传统颜色")]),_:1})]),d(_,null,{default:g(()=>[(v(!0),N(Z,null,be(n(Fo),u=>(v(),D(p,{key:u.label,name:u.label,tab:u.label},{default:g(()=>[d(c,{cols:8,"x-gap":16,"y-gap":8},{default:g(()=>[(v(!0),N(Z,null,be(u.data,x=>(v(),D(s,{key:x.label},{default:g(()=>[d(Eo,{class:"!w-full !h-36px !rounded-4px",color:x.color,checked:x.color===n(o).themeColor,"icon-class":"text-20px",onClick:T=>n(o).setThemeColor(x.color)},null,8,["color","checked","onClick"]),I("p",Sl,Q(x.label),1)]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["name","tab"]))),128))]),_:1})]),_:1},8,["show"])}}}),Rl=L({name:"ThemeColorSelect",__name:"index",setup(e){const t=q(),{bool:o,setTrue:a,setFalse:r}=rt(),i=B(()=>Ua(t.themeColor)),l=B(()=>i.value?"primary":"default");return(s,c)=>{const p=Le,_=yo,h=wo,u=mr,x=Ne,T=Ae;return v(),N(Z,null,[d(p,{"title-placement":"center"},{default:g(()=>[ie(Q(n(V)("layout.settingDrawer.systemThemeTitle")),1)]),_:1}),d(h,{cols:8,"x-gap":8,"y-gap":12},{default:g(()=>[(v(!0),N(Z,null,be(n(t).themeColorList,R=>(v(),D(_,{key:R,class:"flex-x-center"},{default:g(()=>[d(n(Eo),{color:R,checked:R===n(t).themeColor,onClick:M=>n(t).setThemeColor(R)},null,8,["color","checked","onClick"])]),_:2},1024))),128))]),_:1}),d(T,{vertical:!0,class:"pt-12px"},{default:g(()=>[d(u,{value:n(t).themeColor,"show-alpha":!1,onUpdateValue:n(t).setThemeColor},null,8,["value","onUpdateValue"]),d(x,{block:!0,type:l.value,onClick:n(a)},{default:g(()=>[ie(Q(n(V)("layout.settingDrawer.systemTheme.moreColors")),1)]),_:1},8,["type","onClick"])]),_:1}),d(n(Tl),{visible:n(o),onClose:n(r)},null,8,["visible","onClose"])],64)}}}),Bl=L({name:"PageFunc",__name:"index",setup(e){const t=q();return(o,a)=>{const r=Le,i=Co,l=Mt,s=_r,c=Ae;return v(),N(Z,null,[d(r,{"title-placement":"center"},{default:g(()=>[ie(Q(n(V)("layout.settingDrawer.pageFunctionsTitle")),1)]),_:1}),d(c,{vertical:"",size:"large"},{default:g(()=>[d(J,{label:n(V)("layout.settingDrawer.scrollMode")},{default:g(()=>[d(i,{class:"w-120px",size:"small",value:n(t).scrollMode,options:n(t).scrollModeList,"onUpdate:value":n(t).setScrollMode},null,8,["value","options","onUpdate:value"])]),_:1},8,["label"]),d(J,{label:n(V)("layout.settingDrawer.fixedHeaderAndTab")},{default:g(()=>[d(l,{value:n(t).fixedHeaderAndTab,"onUpdate:value":n(t).setIsFixedHeaderAndTab},null,8,["value","onUpdate:value"])]),_:1},8,["label"]),d(J,{label:n(V)("layout.settingDrawer.menu.horizontalPosition")},{default:g(()=>[d(i,{class:"w-120px",size:"small",value:n(t).menu.horizontalPosition,options:n(t).menu.horizontalPositionList,"onUpdate:value":n(t).setHorizontalMenuPosition},null,8,["value","options","onUpdate:value"])]),_:1},8,["label"]),d(J,{label:n(V)("layout.settingDrawer.header.height")},{default:g(()=>[d(s,{class:"w-120px",size:"small",value:n(t).header.height,step:1,"onUpdate:value":n(t).setHeaderHeight},null,8,["value","onUpdate:value"])]),_:1},8,["label"]),d(J,{label:n(V)("layout.settingDrawer.tab.height")},{default:g(()=>[d(s,{class:"w-120px",size:"small",value:n(t).tab.height,step:1,"onUpdate:value":n(t).setTabHeight},null,8,["value","onUpdate:value"])]),_:1},8,["label"]),d(J,{label:n(V)("layout.settingDrawer.tab.isCache")},{default:g(()=>[d(l,{value:n(t).tab.isCache,"onUpdate:value":n(t).setTabIsCache},null,8,["value","onUpdate:value"])]),_:1},8,["label"]),d(J,{label:n(V)("layout.settingDrawer.sider.width")},{default:g(()=>[d(s,{class:"w-120px",size:"small",value:n(t).sider.width,step:10,"onUpdate:value":n(t).setSiderWidth},null,8,["value","onUpdate:value"])]),_:1},8,["label"]),d(J,{label:n(V)("layout.settingDrawer.sider.mixWidth")},{default:g(()=>[d(s,{class:"w-120px",size:"small",value:n(t).sider.mixWidth,step:5,"onUpdate:value":n(t).setMixSiderWidth},null,8,["value","onUpdate:value"])]),_:1},8,["label"]),d(J,{label:n(V)("layout.settingDrawer.footer.visible")},{default:g(()=>[d(l,{value:n(t).footer.visible,"onUpdate:value":n(t).setFooterVisible},null,8,["value","onUpdate:value"])]),_:1},8,["label"]),d(J,{label:n(V)("layout.settingDrawer.footer.fixed")},{default:g(()=>[d(l,{value:n(t).footer.fixed,"onUpdate:value":n(t).setFooterIsFixed},null,8,["value","onUpdate:value"])]),_:1},8,["label"]),d(J,{label:n(V)("layout.settingDrawer.footer.right")},{default:g(()=>[d(l,{value:n(t).footer.right,"onUpdate:value":n(t).setFooterIsRight},null,8,["value","onUpdate:value"])]),_:1},8,["label"])]),_:1})],64)}}}),Ml=L({name:"PageView",__name:"index",setup(e){const t=q();return(o,a)=>{const r=Le,i=Mt,l=Co,s=Ae;return v(),N(Z,null,[d(r,{"title-placement":"center"},{default:g(()=>[ie(Q(n(V)("layout.settingDrawer.pageViewTitle")),1)]),_:1}),d(s,{vertical:"",size:"large"},{default:g(()=>[d(J,{label:n(V)("layout.settingDrawer.header.crumb.visible")},{default:g(()=>[d(i,{value:n(t).header.crumb.visible,"onUpdate:value":n(t).setHeaderCrumbVisible},null,8,["value","onUpdate:value"])]),_:1},8,["label"]),d(J,{label:n(V)("layout.settingDrawer.header.crumb.icon")},{default:g(()=>[d(i,{value:n(t).header.crumb.showIcon,"onUpdate:value":n(t).setHeaderCrumbIconVisible},null,8,["value","onUpdate:value"])]),_:1},8,["label"]),d(J,{label:n(V)("layout.settingDrawer.tab.visible")},{default:g(()=>[d(i,{value:n(t).tab.visible,"onUpdate:value":n(t).setTabVisible},null,8,["value","onUpdate:value"])]),_:1},8,["label"]),d(J,{label:n(V)("layout.settingDrawer.tab.modeList.mode")},{default:g(()=>[d(l,{class:"w-120px",size:"small",value:n(t).tab.mode,options:n(t).tab.modeList,"onUpdate:value":n(t).setTabMode},null,8,["value","options","onUpdate:value"])]),_:1},8,["label"]),d(J,{label:n(V)("layout.settingDrawer.page.animate")},{default:g(()=>[d(i,{value:n(t).page.animate,"onUpdate:value":n(t).setPageIsAnimate},null,8,["value","onUpdate:value"])]),_:1},8,["label"]),d(J,{label:n(V)("layout.settingDrawer.page.animateMode")},{default:g(()=>[d(l,{class:"w-120px",size:"small",value:n(t).page.animateMode,options:n(t).page.animateModeList,"onUpdate:value":n(t).setPageAnimateMode},null,8,["value","options","onUpdate:value"])]),_:1},8,["label"])]),_:1})],64)}}}),Il=L({name:"ThemeConfig",__name:"index",setup(e){const t=q(),o=K(),a=K(r());function r(){return JSON.stringify(t.$state)}function i(){var c;t.resetThemeStore(),(c=window.$message)==null||c.success(V("layout.settingDrawer.themeConfiguration.resetSuccess"))}function l(){if(!o.value)return;new ir(o.value).on("success",()=>{var p;(p=window.$dialog)==null||p.success({title:V("layout.settingDrawer.themeConfiguration.operateSuccess"),content:V("layout.settingDrawer.themeConfiguration.copySuccess"),positiveText:V("layout.settingDrawer.themeConfiguration.confirmCopy")})})}const s=re(()=>t.$state,()=>{a.value=r()},{deep:!0});return ot(()=>{l()}),io(()=>{s()}),(c,p)=>{const _=Le,h=Ne,u=Ae;return v(),N(Z,null,[d(_,{"title-placement":"center"},{default:g(()=>[ie(Q(n(V)("layout.settingDrawer.themeConfiguration.title")),1)]),_:1}),Be(I("textarea",{id:"themeConfigCopyTarget","onUpdate:modelValue":p[0]||(p[0]=x=>a.value=x),class:"absolute opacity-0"},null,512),[[jn,a.value]]),d(u,{vertical:""},{default:g(()=>[I("div",{ref_key:"copyRef",ref:o,"data-clipboard-target":"#themeConfigCopyTarget"},[d(h,{type:"primary",block:!0},{default:g(()=>[ie(Q(n(V)("layout.settingDrawer.themeConfiguration.copy")),1)]),_:1})],512),d(h,{type:"warning",block:!0,onClick:i},{default:g(()=>[ie(Q(n(V)("layout.settingDrawer.themeConfiguration.reset")),1)]),_:1})]),_:1})],64)}}}),Pl=L({name:"SettingDrawer",__name:"index",setup(e){const t=ce(),o={}.VITE_VERCEL==="Y";return(a,r)=>{const i=xa,l=_a;return v(),N(Z,null,[d(l,{show:n(t).settingDrawerVisible,"display-directive":"show",width:330,onMaskClick:n(t).closeSettingDrawer},{default:g(()=>[d(i,{title:n(V)("layout.settingDrawer.title"),"native-scrollbar":!1},{default:g(()=>[d(n(il)),d(n(xl)),d(n(Rl)),d(n(Bl)),d(n(Ml)),d(n(Il))]),_:1},8,["title"])]),_:1},8,["show","onMaskClick"]),n(o)?(v(),D(n(Ga),{key:0})):ne("",!0)],64)}}}),De=L({name:"DarkModeContainer",__name:"dark-mode-container",props:{inverted:{type:Boolean,default:!1}},setup(e){return(t,o)=>(v(),N("div",{class:oe(["dark:bg-dark dark:text-white dark:text-opacity-82 transition-all",t.inverted?"bg-#001428 text-white":"bg-white text-#333639"])},[Me(t.$slots,"default")],2))}}),Ot=L({name:"GlobalLogo",__name:"index",props:{showTitle:{type:Boolean}},setup(e){const t=mo("root");return(o,a)=>{const r=Vn,i=Wn("router-link");return v(),D(i,{to:n(t),class:"flex-center w-full nowrap-hidden"},{default:g(()=>[d(r,{class:"text-32px text-primary"}),Be(I("h2",{class:"pl-8px text-16px font-bold text-primary transition duration-300 ease-in-out"},Q(n(V)("system.title")),513),[[et,o.showTitle]])]),_:1},8,["to"])}}}),Fl={key:0},ze=L({name:"HoverContainer",__name:"hover-container",props:{tooltipContent:{default:""},placement:{default:"bottom"},contentClass:{default:""},inverted:{type:Boolean,default:!1}},setup(e){const t=e,o=B(()=>!!t.tooltipContent),a=B(()=>`${t.contentClass} ${t.inverted?"hover:bg-primary":"hover:bg-#f6f6f6"}`);return(r,i)=>{const l=It;return o.value?(v(),N("div",Fl,[d(l,{placement:r.placement,trigger:"hover"},{trigger:g(()=>[I("div",{class:oe(["flex-center h-full cursor-pointer dark:hover:bg-#333",a.value])},[Me(r.$slots,"default")],2)]),default:g(()=>[ie(" "+Q(r.tooltipContent),1)]),_:3},8,["placement"])])):(v(),N("div",{key:1,class:oe(["flex-center cursor-pointer dark:hover:bg-#333",a.value])},[Me(r.$slots,"default")],2))}}}),El={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},Al=I("path",{fill:"currentColor",d:"M21.71 20.29L18 16.61A9 9 0 1 0 16.61 18l3.68 3.68a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.39ZM11 18a7 7 0 1 1 7-7a7 7 0 0 1-7 7Z"},null,-1),Ll=[Al];function Dl(e,t){return v(),N("svg",El,Ll)}const Ao={name:"uil-search",render:Dl},Hl={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},Nl=I("path",{fill:"currentColor",d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"},null,-1),Ol=[Nl];function Ul(e,t){return v(),N("svg",Hl,Ol)}const jl={name:"ant-design-enter-outlined",render:Ul},Wl={class:"pb-12px"},Vl=["onMouseenter"],Kl={class:"flex-1 ml-5px"},Xl=L({name:"SearchResult",__name:"search-result",props:{value:{},options:{}},emits:["update:value","enter"],setup(e,{emit:t}){const o=e,a=q(),r=B({get(){return o.value},set(s){t("update:value",s)}});async function i(s){r.value=s.path}function l(){t("enter")}return(s,c)=>{const p=vo,_=jl,h=je;return v(),D(h,null,{default:g(()=>[I("div",Wl,[(v(!0),N(Z,null,be(s.options,u=>{var x,T,R;return v(),N("div",{key:u.path,class:"bg-#e5e7eb dark:bg-dark h-56px mt-8px px-14px rounded-4px cursor-pointer flex-y-center justify-between",style:me({background:u.path===r.value?n(a).themeColor:"",color:u.path===r.value?"#fff":""}),onClick:l,onMouseenter:M=>i(u)},[d(p,{icon:u.meta.icon,"local-icon":u.meta.localIcon},null,8,["icon","local-icon"]),I("span",Kl,Q(((x=u.meta)==null?void 0:x.i18nTitle)&&n(V)((T=u.meta)==null?void 0:T.i18nTitle)||((R=u.meta)==null?void 0:R.title)),1),d(_,{class:"icon text-20px p-2px mr-3px"})],44,Vl)}),128))])]),_:1})}}}),Gl={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},Yl=I("path",{fill:"currentColor",d:"M1 7h6v2H3v2h4v2H3v2h4v2H1V7m10 0h4v2h-4v2h2a2 2 0 0 1 2 2v2c0 1.11-.89 2-2 2H9v-2h4v-2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2m8 0h2a2 2 0 0 1 2 2v1h-2V9h-2v6h2v-1h2v1c0 1.11-.89 2-2 2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2Z"},null,-1),ql=[Yl];function Zl(e,t){return v(),N("svg",Gl,ql)}const Jl={name:"mdi-keyboard-esc",render:Zl},Ql={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},ei=I("path",{fill:"currentColor",d:"M7.03 13.92h4V5l2.01-.03v8.95h3.99l-5 5Z"},null,-1),ti=[ei];function oi(e,t){return v(),N("svg",Ql,ti)}const ni={name:"mdi-arrow-down-thin",render:oi},ri={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},ai=I("path",{fill:"currentColor",d:"M7.03 9.97h4v8.92l2.01.03V9.97h3.99l-5-5Z"},null,-1),li=[ai];function ii(e,t){return v(),N("svg",ri,li)}const si={name:"mdi-arrow-up-thin",render:ii},ci={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},di=I("path",{fill:"currentColor",d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6l6 6l1.41-1.42L5.83 13H21V7h-2Z"},null,-1),ui=[di];function hi(e,t){return v(),N("svg",ci,ui)}const pi={name:"mdi-keyboard-return",render:hi},Ut=e=>(uo("data-v-2cb6cc30"),e=e(),ho(),e),mi={class:"px-24px h-44px flex-y-center"},vi={class:"mr-14px flex-y-center"},fi=Ut(()=>I("span",null,"确认",-1)),bi={class:"mr-14px flex-y-center"},_i=Ut(()=>I("span",null,"切换",-1)),gi={class:"flex-y-center"},xi=Ut(()=>I("span",null,"关闭",-1)),yi=L({name:"SearchFooter",__name:"search-footer",setup(e){return(t,o)=>{const a=pi,r=si,i=ni,l=Jl;return v(),N("div",mi,[I("span",vi,[d(a,{class:"icon text-20px p-2px mr-6px"}),fi]),I("span",bi,[d(r,{class:"icon text-20px p-2px mr-5px"}),d(i,{class:"icon text-20px p-2px mr-6px"}),_i]),I("span",gi,[d(l,{class:"icon text-20px p-2px mr-6px"}),xi])])}}}),wi=_e(yi,[["__scopeId","data-v-2cb6cc30"]]),Ci={class:"mt-20px"},$i=L({name:"SearchModal",__name:"search-modal",props:{value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const o=e,{isMobile:a}=Nt(),r=fo(),i=Ee(),l=K(""),s=K(""),c=Kn([]),p=K(),_=Xn(u,300),h=B({get(){return o.value},set(E){t("update:value",E)}});re(h,async E=>{var F;E&&(await Re(),(F=p.value)==null||F.focus())});function u(){var E;c.value=i.searchMenus.filter(F=>{const H=l.value.toLocaleLowerCase().trim(),O=(F.meta.i18nTitle?V(F.meta.i18nTitle):F.meta.title).toLocaleLowerCase();return H&&O.includes(H)}),s.value=((E=c.value[0])==null?void 0:E.path)??""}function x(){h.value=!1,setTimeout(()=>{c.value=[],l.value=""},200)}function T(){const{length:E}=c.value;if(E===0)return;const F=c.value.findIndex(H=>H.path===s.value);F===0?s.value=c.value[E-1].path:s.value=c.value[F-1].path}function R(){const{length:E}=c.value;if(E===0)return;const F=c.value.findIndex(H=>H.path===s.value);F+1===E?s.value=c.value[0].path:s.value=c.value[F+1].path}function M(){var H;const{length:E}=c.value;if(E===0||s.value==="")return;const F=c.value.find(O=>O.path===s.value);(H=F==null?void 0:F.meta)!=null&&H.href?window.open(s.value,"__blank"):(r.push(s.value),x())}return Ze("Escape",x),Ze("Enter",M),Ze("ArrowUp",T),Ze("ArrowDown",R),(E,F)=>{const H=Ao,O=gr,y=Ne,k=vr,G=br,U=po;return v(),D(U,{show:h.value,"onUpdate:show":F[2]||(F[2]=P=>h.value=P),segmented:{footer:"soft"},closable:!1,preset:"card","footer-style":"padding: 0; margin: 0",class:oe(["fixed left-0 right-0",[n(a)?"wh-full top-0px rounded-0":"w-630px top-50px"]]),onAfterLeave:x},{footer:g(()=>[n(a)?ne("",!0):(v(),D(wi,{key:0}))]),default:g(()=>[d(k,null,{default:g(()=>[d(O,{ref_key:"inputRef",ref:p,value:l.value,"onUpdate:value":F[0]||(F[0]=P=>l.value=P),clearable:"",placeholder:"请输入关键词搜索",onInput:n(_)},{prefix:g(()=>[d(H,{class:"text-15px text-#c2c2c2"})]),_:1},8,["value","onInput"]),n(a)?(v(),D(y,{key:0,type:"primary",ghost:"",onClick:x},{default:g(()=>[ie("取消")]),_:1})):ne("",!0)]),_:1}),I("div",Ci,[c.value.length===0?(v(),D(G,{key:0,description:"暂无搜索结果"})):(v(),D(Xl,{key:1,value:s.value,"onUpdate:value":F[1]||(F[1]=P=>s.value=P),options:c.value,onEnter:M},null,8,["value","options"]))])]),_:1},8,["show","class"])}}}),zi=L({name:"GlobalSearch",__name:"index",setup(e){const{bool:t,toggle:o}=rt(),a=q();function r(){o()}return(i,l)=>{const s=Ao,c=ze;return v(),N("div",null,[d(c,{class:"w-40px h-full","tooltip-content":"搜索",inverted:n(a).header.inverted,onClick:r},{default:g(()=>[d(s,{class:"text-20px"})]),_:1},8,["inverted"]),d(n($i),{value:n(t),"onUpdate:value":l[0]||(l[0]=p=>Gn(t)?t.value=p:null)},null,8,["value"])])}}}),ki={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},Si=bo('<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="2"><path stroke-dasharray="10" stroke-dashoffset="10" d="M7 9L4 12L7 15"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.6s" dur="0.2s" values="10;0"></animate></path><path stroke-dasharray="16" stroke-dashoffset="16" d="M19 5H5"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.2s" values="16;0"></animate></path><path stroke-dasharray="12" stroke-dashoffset="12" d="M19 12H10"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.2s" dur="0.2s" values="12;0"></animate></path><path stroke-dasharray="16" stroke-dashoffset="16" d="M19 19H5"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.4s" dur="0.2s" values="16;0"></animate></path></g>',1),Ti=[Si];function Ri(e,t){return v(),N("svg",ki,Ti)}const Bi={name:"line-md-menu-fold-left",render:Ri},Mi={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},Ii=bo('<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="2"><path stroke-dasharray="10" stroke-dashoffset="10" d="M21 9L18 12L21 15"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.2s" values="10;0"></animate></path><path stroke-dasharray="16" stroke-dashoffset="16" d="M19 5H5"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.2s" dur="0.2s" values="16;0"></animate></path><path stroke-dasharray="12" stroke-dashoffset="12" d="M14 12H5"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.4s" dur="0.2s" values="12;0"></animate></path><path stroke-dasharray="16" stroke-dashoffset="16" d="M19 19H5"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.6s" dur="0.2s" values="16;0"></animate></path></g>',1),Pi=[Ii];function Fi(e,t){return v(),N("svg",Mi,Pi)}const Ei={name:"line-md-menu-unfold-left",render:Fi},Ai=L({name:"MenuCollapse",__name:"menu-collapse",setup(e){const t=ce(),o=q();return(a,r)=>{const i=Ei,l=Bi,s=ze;return v(),D(s,{class:"w-40px h-full",inverted:n(o).header.inverted,onClick:n(t).toggleSiderCollapse},{default:g(()=>[n(t).siderCollapse?(v(),D(i,{key:0,class:"text-16px"})):(v(),D(l,{key:1,class:"text-16px"}))]),_:1},8,["inverted","onClick"])}}}),Li=L({name:"GlobalBreadcrumb",__name:"global-breadcrumb",setup(e){const t=$e(),o=q(),a=Ee(),{routerPush:r}=Oe(),i=B(()=>Ha(t.name,a.menus,mo("root")).map(s=>{var c;return{...s,label:s.i18nTitle?V(s.i18nTitle):s.label,options:(c=s.options)==null?void 0:c.map(p=>({...p,label:p.i18nTitle?V(p.i18nTitle):p.label}))}}));function l(s){r({name:s})}return(s,c)=>{const p=at,_=ea,h=Zr;return v(),D(h,{class:"px-12px"},{default:g(()=>[(v(!0),N(Z,null,be(i.value,u=>(v(),D(_,{key:u.key},{default:g(()=>[u.hasChildren?(v(),D(p,{key:0,options:u.options,onSelect:l},{default:g(()=>[I("span",null,[n(o).header.crumb.showIcon?(v(),D(xt(u.icon),{key:0,class:"inline-block align-text-bottom mr-4px text-16px"})):ne("",!0),I("span",null,Q(u.label),1)])]),_:2},1032,["options"])):(v(),N(Z,{key:1},[n(o).header.crumb.showIcon?(v(),D(xt(u.icon),{key:0,class:oe(["inline-block align-text-bottom mr-4px text-16px",{"text-#BBBBBB":n(o).header.inverted}])},null,8,["class"])):ne("",!0),I("span",{class:oe({"text-#BBBBBB":n(o).header.inverted})},Q(u.label),3)],64))]),_:2},1024))),128))]),_:1})}}}),Di={class:"flex-1-hidden h-full px-10px"},Hi=L({name:"HeaderMenu",__name:"header-menu",setup(e){const t=$e(),o=Ee(),a=q(),{routerPush:r}=Oe(),i=B(()=>Rt(o.menus)),l=B(()=>{var c;return(c=t.meta)!=null&&c.activeMenu?t.meta.activeMenu:t.name});function s(c,p){r(p.routePath)}return(c,p)=>{const _=Dt,h=je;return v(),N("div",Di,[d(h,{"x-scrollable":!0,class:"flex-1-hidden h-full","content-class":"h-full"},{default:g(()=>[I("div",{class:"flex-y-center h-full",style:me({justifyContent:n(a).menu.horizontalPosition})},[d(_,{value:l.value,mode:"horizontal",options:i.value,inverted:n(a).header.inverted,"onUpdate:value":s},null,8,["value","options","inverted"])],4)]),_:1})])}}}),Ni=_e(Hi,[["__scopeId","data-v-bd84ad3a"]]),Oi={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},Ui=I("path",{fill:"currentColor",d:"M21 3v6h-2V6.41l-3.29 3.3l-1.42-1.42L17.59 5H15V3zM3 3v6h2V6.41l3.29 3.3l1.42-1.42L6.41 5H9V3zm18 18v-6h-2v2.59l-3.29-3.29l-1.41 1.41L17.59 19H15v2zM9 21v-2H6.41l3.29-3.29l-1.41-1.42L5 17.59V15H3v6z"},null,-1),ji=[Ui];function Wi(e,t){return v(),N("svg",Oi,ji)}const Vi={name:"gridicons-fullscreen",render:Wi},Ki={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},Xi=I("path",{fill:"currentColor",d:"M14 10V4h2v2.59l3.29-3.29l1.41 1.41L17.41 8H20v2zM4 10V8h2.59l-3.3-3.29l1.42-1.42L8 6.59V4h2v6zm16 4v2h-2.59l3.29 3.29l-1.41 1.41L16 17.41V20h-2v-6zm-10 0v6H8v-2.59l-3.29 3.3l-1.42-1.42L6.59 16H4v-2z"},null,-1),Gi=[Xi];function Yi(e,t){return v(),N("svg",Ki,Gi)}const qi={name:"gridicons-fullscreen-exit",render:Yi},Zi=L({name:"FullScreen",__name:"full-screen",setup(e){const{isFullscreen:t,toggle:o}=Yn(),a=q();return(r,i)=>{const l=qi,s=Vi,c=ze;return v(),D(c,{class:"w-40px h-full","tooltip-content":"全屏",inverted:n(a).header.inverted,onClick:n(o)},{default:g(()=>[n(t)?(v(),D(l,{key:0,class:"text-18px"})):(v(),D(s,{key:1,class:"text-18px"}))]),_:1},8,["inverted","onClick"])}}}),Ji=L({name:"ThemeMode",__name:"theme-mode",setup(e){const t=q();return(o,a)=>{const r=lr,i=ze;return v(),D(i,{class:"w-40px",inverted:n(t).header.inverted,"tooltip-content":"主题模式"},{default:g(()=>[d(r,{dark:n(t).darkMode,"customize-transition":n(t).isCustomizeDarkModeTransition,class:"wh-full","onUpdate:dark":n(t).setDarkMode},null,8,["dark","customize-transition","onUpdate:dark"])]),_:1},8,["inverted"])}}}),Qi={class:"pl-8px text-16px font-medium"},es=L({name:"UserAvatar",__name:"user-avatar",setup(e){const t=fo(),o=qn(),a=ce(),r=o.$state.userInfo,i=q(),{iconRender:l}=_o(),s=B(()=>{const h=a.$state.fileUrl+"/public/avatar.svg";return r.avatar||h}),c=[{type:"divider",key:"divider"},{label:"退出登录",key:"logout",icon:l({icon:"carbon:logout"})}];function p(_){var u;const h=_;h==="logout"?(u=window.$dialog)==null||u.info({title:"提示",content:"您确定要退出登录吗?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{o.resetAuthStore()}}):h==="user-center"&&t.push({name:"management_user"})}return(_,h)=>{const u=yr,x=ze,T=at;return v(),D(T,{options:c,onSelect:p},{default:g(()=>[d(x,{class:"px-12px",inverted:n(i).header.inverted},{default:g(()=>[d(u,{class:"rounded-full","preview-disabled":"",src:s.value,width:"32",height:"32",objectFit:"cover"},null,8,["src"]),I("span",Qi,Q(n(r).nickname),1)]),_:1},8,["inverted"])]),_:1})}}}),ts=L({name:"SettingButton",__name:"setting-button",setup(e){const t=ce(),o=q();return(a,r)=>{const i=xo,l=ze;return v(),D(l,{class:"w-40px h-full","tooltip-content":"主题配置",inverted:n(o).header.inverted,onClick:n(t).toggleSettingDrawerVisible},{default:g(()=>[d(i,{class:"text-20px"})]),_:1},8,["inverted","onClick"])}}}),os={key:1,class:"flex-1-hidden flex-y-center h-full"},ns={class:"flex justify-end h-full"},rs=L({name:"GlobalHeader",__name:"index",props:{showLogo:{},showHeaderMenu:{},showMenuCollapse:{}},setup(e){const t=q(),{isMobile:o}=Nt(),a={}.VITE_VERCEL!=="Y";return(r,i)=>{const l=De;return v(),D(l,{class:"global-header flex-y-center h-full",inverted:n(t).header.inverted},{default:g(()=>[r.showLogo?(v(),D(Ot,{key:0,"show-title":!0,class:"h-full",style:me({width:n(t).sider.width+"px"})},null,8,["style"])):ne("",!0),r.showHeaderMenu?(v(),D(n(Ni),{key:2})):(v(),N("div",os,[r.showMenuCollapse||n(o)?(v(),D(n(Ai),{key:0})):ne("",!0),n(t).header.crumb.visible&&!n(o)?(v(),D(n(Li),{key:1})):ne("",!0)])),I("div",ns,[d(zi),d(n(Zi)),d(n(Ji)),n(a)?(v(),D(n(ts),{key:0})):ne("",!0),d(n(es))])]),_:1},8,["inverted"])}}}),as=_e(rs,[["__scopeId","data-v-853cc43e"]]),ls=L({name:"BetterScroll",__name:"better-scroll",props:{options:{}},setup(e,{expose:t}){const o=e,a=K(),r=K(),i=K(),l=B(()=>!!o.options.scrollY);function s(){a.value&&(r.value=new sr(a.value,o.options))}const{width:c}=Xt(a),{width:p,height:_}=Xt(i);return re([()=>c.value,()=>p.value,()=>_.value],()=>{r.value&&r.value.refresh()}),ot(()=>{s()}),t({instance:r}),(h,u)=>(v(),N("div",{ref_key:"bsWrap",ref:a,class:"h-full text-left"},[I("div",{ref_key:"bsContent",ref:i,class:oe(["inline-block",{"h-full":!l.value}])},[Me(h.$slots,"default")],2)],512))}}),is=L({name:"ContextMenu",__name:"context-menu",props:{visible:{type:Boolean,default:!1},currentPath:{default:""},affix:{type:Boolean},x:{},y:{}},emits:["update:visible"],setup(e,{emit:t}){const o=e,a=ce(),r=Bt(),{iconRender:i}=_o(),l=B({get(){return o.visible},set(h){t("update:visible",h)}});function s(){l.value=!1}const c=B(()=>[{label:"内容全屏",key:"full-content",icon:i({icon:"gridicons-fullscreen"})},{label:"重新加载",key:"reload-current",disabled:o.currentPath!==r.activeTab,icon:i({icon:"ant-design:reload-outlined"})},{label:"关闭",key:"close-current",disabled:o.currentPath===r.homeTab.fullPath||!!o.affix,icon:i({icon:"ant-design:close-outlined"})},{label:"关闭其他",key:"close-other",icon:i({icon:"ant-design:column-width-outlined"})},{label:"关闭左侧",key:"close-left",icon:i({icon:"mdi:format-horizontal-align-left"})},{label:"关闭右侧",key:"close-right",icon:i({icon:"mdi:format-horizontal-align-right"})},{label:"关闭所有",key:"close-all",icon:i({icon:"ant-design:line-outlined"})}]),p=new Map([["full-content",()=>{a.setContentFull(!0)}],["reload-current",()=>{a.reloadPage()}],["close-current",()=>{r.removeTab(o.currentPath)}],["close-other",()=>{r.clearTab([o.currentPath])}],["close-left",()=>{r.clearLeftTab(o.currentPath)}],["close-right",()=>{r.clearRightTab(o.currentPath)}],["close-all",()=>{r.clearAllTab()}]]);function _(h){const u=h,x=p.get(u);x&&x(),s()}return(h,u)=>{const x=at;return v(),D(x,{show:l.value,options:c.value,placement:"bottom-start",x:h.x,y:h.y,onClickoutside:s,onSelect:_},null,8,["show","options","x","y"])}}}),ss=L({name:"TabDetail",__name:"index",emits:["scroll"],setup(e,{emit:t}){const o=q(),a=Bt(),r=B(()=>o.tab.mode==="chrome"),i=K();async function l(){if(await Re(),i.value&&i.value.children.length&&i.value.children[a.activeTabIndex]){const u=i.value.children[a.activeTabIndex],{x,width:T}=u.getBoundingClientRect(),R=x+T/2;setTimeout(()=>{t("scroll",R)},50)}}const s=Zn({visible:!1,affix:!1,x:0,y:0,currentPath:""});function c(u){Object.assign(s,u)}let p=!1;function _(u){p||c({visible:u})}async function h(u,x,T){u.preventDefault();const{clientX:R,clientY:M}=u;p=!0;const E=s.visible?150:0;c({visible:!1}),setTimeout(()=>{c({visible:!0,x:R,y:M,currentPath:x,affix:T}),p=!1},E)}return re(()=>a.activeTabIndex,()=>{l()},{immediate:!0}),(u,x)=>{const T=vo;return v(),N(Z,null,[I("div",{ref_key:"tabRef",ref:i,class:oe(["flex h-full pr-18px",[r.value?"items-end":"items-center gap-12px"]])},[(v(!0),N(Z,null,be(n(a).tabs,R=>(v(),D(n(Jn),{key:R.fullPath,mode:n(o).tab.mode,"dark-mode":n(o).darkMode,active:n(a).activeTab===R.fullPath,"active-color":n(o).themeColor,closable:!(R.name===n(a).homeTab.name||R.meta.affix),onClick:M=>n(a).handleClickTab(R.fullPath),onClose:M=>n(a).removeTab(R.fullPath),onContextmenu:M=>h(M,R.fullPath,R.meta.affix)},{prefix:g(()=>[d(T,{icon:R.meta.icon,"local-icon":R.meta.localIcon,class:"inline-block align-text-bottom text-16px"},null,8,["icon","local-icon"])]),default:g(()=>[ie(" "+Q(R.meta.i18nTitle?n(V)(R.meta.i18nTitle):R.meta.title),1)]),_:2},1032,["mode","dark-mode","active","active-color","closable","onClick","onClose","onContextmenu"]))),128))],2),d(n(is),{visible:s.visible,"current-path":s.currentPath,affix:s.affix,x:s.x,y:s.y,"onUpdate:visible":_},null,8,["visible","current-path","affix","x","y"])],64)}}}),cs=L({name:"ReloadButton",__name:"index",setup(e){const{reCacheRoute:t}=Ee(),o=$e(),{loading:a,startLoading:r,endLoading:i}=wr();async function l(){r(),await t(o.name),setTimeout(()=>{i()},1e3)}return(s,c)=>{const p=xr,_=ze;return v(),D(_,{class:"w-64px h-full","tooltip-content":"重新加载",placement:"bottom-end",onClick:l},{default:g(()=>[d(p,{class:oe(["text-22px",{"animate-spin":n(a)}])},null,8,["class"])]),_:1})}}}),ds=L({name:"GlobalTab",__name:"index",setup(e){const t=$e(),o=q(),a=Bt(),r=Qn(),i=K(),{width:l,left:s}=er(i),c=K(),p=!!r.device.type;function _(u){var R;const T=u-s.value-l.value/2;if(c.value){const{maxScrollX:M,x:E}=c.value.instance,F=M-E,H=T>0?Math.max(-T,F):Math.min(-T,-E);(R=c.value)==null||R.instance.scrollBy(H,0,300)}}function h(){a.iniTabStore(t)}return re(()=>t.fullPath,()=>{a.addTab(t),a.setActiveTab(t.fullPath)}),h(),(u,x)=>{const T=ls,R=De;return v(),D(R,{class:"global-tab flex-y-center w-full pl-16px",style:me({height:n(o).tab.height+"px"})},{default:g(()=>[I("div",{ref_key:"bsWrapper",ref:i,class:"flex-1-hidden h-full"},[d(T,{ref_key:"bsScroll",ref:c,options:{scrollX:!0,scrollY:!1,click:n(p)}},{default:g(()=>[d(n(ss),{onScroll:_})]),_:1},8,["options"])],512),d(n(cs))]),_:1},8,["style"])}}}),us=_e(ds,[["__scopeId","data-v-2aed69b2"]]),hs=L({name:"VerticalMenu",__name:"vertical-menu",setup(e){const t=$e(),o=ce(),a=q(),r=Ee(),{routerPush:i}=Oe(),l=B(()=>Rt(r.menus)),s=B(()=>{var h;return(h=t.meta)!=null&&h.activeMenu?t.meta.activeMenu:t.name}),c=K([]);function p(h,u){i(u.routePath)}function _(h){c.value=h}return re(()=>t.name,()=>{c.value=go(s.value,l.value)},{immediate:!0}),(h,u)=>{const x=Dt,T=je;return v(),D(T,{class:"flex-1-hidden"},{default:g(()=>[d(x,{value:s.value,collapsed:n(o).siderCollapse,"collapsed-width":n(a).sider.collapsedWidth,"collapsed-icon-size":22,options:l.value,"expanded-keys":c.value,indent:18,inverted:!n(a).darkMode&&n(a).sider.inverted,"onUpdate:value":p,"onUpdate:expandedKeys":_},null,8,["value","collapsed","collapsed-width","options","expanded-keys","inverted"])]),_:1})}}}),ps=L({name:"VerticalSider",__name:"index",setup(e){const t=ce(),o=q(),a=B(()=>o.layout.mode==="horizontal-mix"),r=B(()=>!t.siderCollapse&&o.layout.mode!=="vertical-mix");return(i,l)=>{const s=De;return v(),D(s,{class:"flex-col-stretch h-full",inverted:n(o).sider.inverted},{default:g(()=>[a.value?ne("",!0):(v(),D(n(Ot),{key:0,"show-title":r.value,style:me({height:n(o).header.height+"px"})},null,8,["show-title","style"])),d(n(hs))]),_:1},8,["inverted"])}}}),ms=L({name:"MixMenuDetail",__name:"mix-menu-detail",props:{routeName:{},label:{},activeRouteName:{},icon:{type:[Object,Function],default:void 0},isMini:{type:Boolean,default:!1}},setup(e){const t=e,{bool:o,setTrue:a,setFalse:r}=rt(),i=B(()=>t.routeName===t.activeRouteName);return(l,s)=>(v(),N("div",{class:"mb-6px px-4px cursor-pointer",onMouseenter:s[0]||(s[0]=(...c)=>n(a)&&n(a)(...c)),onMouseleave:s[1]||(s[1]=(...c)=>n(r)&&n(r)(...c))},[I("div",{class:oe(["flex-center flex-col py-12px rounded-2px bg-transparent transition-colors duration-300 ease-in-out",{"text-primary !bg-primary_active":i.value,"text-primary":n(o)}])},[(v(),D(xt(l.icon),{class:oe([l.isMini?"text-16px":"text-20px"])},null,8,["class"])),I("p",{class:oe(["w-full text-center ellipsis-text text-12px transition-height duration-300 ease-in-out",[l.isMini?"h-0 pt-0":"h-24px pt-4px"]])},Q(l.label),3)],2)],32))}}),vs={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},fs=I("path",{fill:"currentColor",d:"M16 12V4h1V2H7v2h1v8l-2 2v2h5.2v6h1.6v-6H18v-2l-2-2Z"},null,-1),bs=[fs];function _s(e,t){return v(),N("svg",vs,bs)}const gs={name:"mdi-pin",render:_s},xs={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},ys=I("path",{fill:"currentColor",d:"M2 5.27L3.28 4L20 20.72L18.73 22l-5.93-5.93V22h-1.6v-6H6v-2l2-2v-.73l-6-6M16 12l2 2v2h-.18L8 6.18V4H7V2h10v2h-1v8Z"},null,-1),ws=[ys];function Cs(e,t){return v(),N("svg",xs,ws)}const $s={name:"mdi-pin-off",render:Cs},zs={class:"text-primary pl-8px text-16px font-bold"},ks=L({name:"MixMenuDrawer",__name:"mix-menu-drawer",props:{visible:{type:Boolean},menus:{}},setup(e){const t=e,o=$e(),a=ce(),r=q(),{routerPush:i}=Oe(),l=B(()=>t.visible&&t.menus.length||a.mixSiderFixed),s=B(()=>{var h;return(h=o.meta)!=null&&h.activeMenu?o.meta.activeMenu:o.name}),c=K([]);function p(h,u){i(u.routePath)}function _(h){c.value=h}return re(()=>o.name,()=>{c.value=go(s.value,t.menus)},{immediate:!0}),(h,u)=>{const x=$s,T=gs,R=Dt,M=je,E=De;return v(),N("div",{class:"relative h-full transition-width duration-300 ease-in-out",style:me({width:n(a).mixSiderFixed?n(r).sider.mixChildMenuWidth+"px":"0px"})},[d(E,{class:"drawer-shadow absolute-lt flex-col-stretch h-full nowrap-hidden",inverted:n(r).sider.inverted,style:me({width:l.value?n(r).sider.mixChildMenuWidth+"px":"0px"})},{default:g(()=>[I("header",{class:"header-height flex-y-center justify-between",style:me({height:n(r).header.height+"px"})},[I("h2",zs,Q(n(V)("system.title")),1),I("div",{class:"px-8px text-16px text-gray-600 cursor-pointer",onClick:u[0]||(u[0]=(...F)=>n(a).toggleMixSiderFixed&&n(a).toggleMixSiderFixed(...F))},[n(a).mixSiderFixed?(v(),D(x,{key:0})):(v(),D(T,{key:1}))])],4),d(M,{class:"flex-1-hidden"},{default:g(()=>[d(R,{value:s.value,options:h.menus,"expanded-keys":c.value,indent:18,inverted:!n(r).darkMode&&n(r).sider.inverted,"onUpdate:value":p,"onUpdate:expandedKeys":_},null,8,["value","options","expanded-keys","inverted"])]),_:1})]),_:1},8,["inverted","style"])],4)}}}),Ss=_e(ks,[["__scopeId","data-v-5c7ea91b"]]),Ts={class:"inline-block",viewBox:"0 0 256 256",width:"1em",height:"1em"},Rs=I("path",{fill:"currentColor",d:"M208.49 199.51a12 12 0 0 1-17 17l-80-80a12 12 0 0 1 0-17l80-80a12 12 0 0 1 17 17L137 128ZM57 128l71.52-71.51a12 12 0 0 0-17-17l-80 80a12 12 0 0 0 0 17l80 80a12 12 0 0 0 17-17Z"},null,-1),Bs=[Rs];function Ms(e,t){return v(),N("svg",Ts,Bs)}const Is={name:"ph-caret-double-left-bold",render:Ms},Ps={class:"inline-block",viewBox:"0 0 256 256",width:"1em",height:"1em"},Fs=I("path",{fill:"currentColor",d:"m144.49 136.49l-80 80a12 12 0 0 1-17-17L119 128L47.51 56.49a12 12 0 0 1 17-17l80 80a12 12 0 0 1-.02 17Zm80-17l-80-80a12 12 0 1 0-17 17L199 128l-71.52 71.51a12 12 0 0 0 17 17l80-80a12 12 0 0 0 .01-17Z"},null,-1),Es=[Fs];function As(e,t){return v(),N("svg",Ps,Es)}const Ls={name:"ph-caret-double-right-bold",render:As},Ds=L({name:"MixMenuCollapse",__name:"mix-menu-collapse",setup(e){const t=ce();return(o,a)=>{const r=Ls,i=Is,l=Ne;return v(),D(l,{text:!0,class:"h-36px",onClick:n(t).toggleSiderCollapse},{default:g(()=>[n(t).siderCollapse?(v(),D(r,{key:0,class:"text-16px"})):(v(),D(i,{key:1,class:"text-16px"}))]),_:1},8,["onClick"])}}}),Hs={class:"flex-1-hidden flex-col-stretch h-full"},Ns=L({name:"VerticalMixSider",__name:"index",setup(e){const t=$e(),o=ce(),a=q(),r=Ee(),{routerPush:i}=Oe(),{bool:l,setTrue:s,setFalse:c}=rt(),p=K("");function _(M){p.value=M}const h=B(()=>r.menus.map(M=>{const{routeName:E,label:F,i18nTitle:H}=M,O=M==null?void 0:M.icon,y=!!(M.children&&M.children.length);return{routeName:E,label:H?V(H):F,icon:O,hasChildren:y}}));function u(){h.value.some(M=>{var H;const E=(H=t.meta)!=null&&H.activeMenu?t.meta.activeMenu:t.name,F=E==null?void 0:E.includes(M.routeName);return F&&_(M.routeName),F})}function x(M,E){_(M),E?s():i({name:M})}function T(){u(),c()}const R=B(()=>{const M=[];return r.menus.some(E=>{var H;const F=E.routeName===p.value&&!!((H=E.children)!=null&&H.length);return F&&M.push(...Rt(E.children||[])),F}),M});return re(()=>t.name,()=>{u()},{immediate:!0}),(M,E)=>{const F=je,H=De;return v(),D(H,{class:"flex h-full",inverted:n(a).sider.inverted,onMouseleave:T},{default:g(()=>[I("div",Hs,[d(n(Ot),{"show-title":!1,style:me({height:n(a).header.height+"px"})},null,8,["style"]),d(F,{class:"flex-1-hidden"},{default:g(()=>[(v(!0),N(Z,null,be(h.value,O=>(v(),D(n(ms),{key:O.routeName,"route-name":O.routeName,"active-route-name":p.value,label:O.label,icon:O.icon,"is-mini":n(o).siderCollapse,onClick:y=>x(O.routeName,O.hasChildren)},null,8,["route-name","active-route-name","label","icon","is-mini","onClick"]))),128))]),_:1}),d(n(Ds))]),d(n(Ss),{visible:n(l),menus:R.value},null,8,["visible","menus"])]),_:1},8,["inverted"])}}}),Os=L({name:"GlobalSider",__name:"index",setup(e){const t=q(),o=B(()=>t.layout.mode==="vertical-mix");return(a,r)=>o.value?(v(),D(n(Ns),{key:0,class:"global-sider"})):(v(),D(n(ps),{key:1,class:"global-sider"}))}}),Us=_e(Os,[["__scopeId","data-v-afe6955b"]]),js=I("span",null,"Copyright ©2023 x-cms",-1),Ws=L({name:"GlobalFooter",__name:"index",setup(e){const t=q();return(o,a)=>{const r=De;return v(),D(r,{class:"flex-center h-full",inverted:n(t).footer.inverted},{default:g(()=>[js]),_:1},8,["inverted"])}}}),vc=L({name:"BasicLayout",__name:"index",setup(e){const t=ce(),o=q(),{mode:a,isMobile:r,headerProps:i,siderVisible:l,siderWidth:s,siderCollapsedWidth:c}=Nt();return(p,_)=>{const h=Gr;return v(),N(Z,null,[d(n(nr),{mode:n(a),"is-mobile":n(r),"scroll-mode":n(o).scrollMode,"scroll-el-id":n(t).scrollElId,"full-content":n(t).contentFull,"fixed-top":n(o).fixedHeaderAndTab,"header-height":n(o).header.height,"tab-visible":n(o).tab.visible,"tab-height":n(o).tab.height,"content-class":n(t).disableMainXScroll?"overflow-x-hidden":"","sider-visible":n(l),"sider-collapse":n(t).siderCollapse,"sider-width":n(s),"sider-collapsed-width":n(c),"footer-visible":n(o).footer.visible,"fixed-footer":n(o).footer.fixed,"right-footer":n(o).footer.right,onClickMobileSiderMask:_[0]||(_[0]=u=>n(t).setSiderCollapse(!0))},{header:g(()=>[d(n(as),tr(or(n(i))),null,16)]),tab:g(()=>[d(n(us))]),sider:g(()=>[d(n(Us))]),footer:g(()=>[d(n(Ws))]),default:g(()=>[d(n(cr))]),_:1},8,["mode","is-mobile","scroll-mode","scroll-el-id","full-content","fixed-top","header-height","tab-visible","tab-height","content-class","sider-visible","sider-collapse","sider-width","sider-collapsed-width","footer-visible","fixed-footer","right-footer"]),(v(),D(h,{key:n(o).scrollMode,"listen-to":`#${n(t).scrollElId}`,class:"z-100"},null,8,["listen-to"])),d(n(Pl))],64)}}});export{vc as default};
|
||
//# sourceMappingURL=index-ac9d8280.js.map
|