allinssl/build/static/js/index-DIBW3257.js

2 lines
55 KiB
JavaScript

import{d as e,H as o,O as t,E as n,F as r,S as l,r as i,I as a,K as s,ac as c,ad as d,k as u,M as v,W as m,G as h,D as p,ae as g,af as f,ag as b,A as x,ah as C,J as y,ai as w,aj as z,ak as S,al as I,am as k,p as A,an as T,ao as P,ap as _,aq as H,ar as R,as as N,at as B,au as O,av as L,aw as j,ax as M,ay as $,az as E,Y as F,Z as D,_ as V,u as K,a4 as U,f as W,aA as G,c as q,aB as Y,$ as J,x as X,o as Z,a3 as Q,aC as ee,b as oe,h as te,B as ne,a as re,aD as le,a8 as ie,T as ae}from"./main-e4AvE_no.js";import{u as se}from"./index-DCCs3mde.js";import{u as ce,a as de}from"./index-Cn0y8NcW.js";import{s as ue}from"./public-BezuuOgl.js";import{u as ve}from"./useStore-ZgYopIlW.js";import{a as me,F as he,C as pe}from"./Flow-DIGBWVZN.js";import{g as ge}from"./setting-CWaR5uTY.js";import{L as fe}from"./LogoGithub-D7OM16Qt.js";import{N as be}from"./Badge-DEig4HFv.js";import"./index-BHwZLzK4.js";import"./access-Bj6SmxYV.js";const xe=e({name:"ChevronDownFilled",render:()=>o("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o("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"}))}),Ce=t("n-layout-sider"),ye={type:String,default:"static"},we=n("layout","\n color: var(--n-text-color);\n background-color: var(--n-color);\n box-sizing: border-box;\n position: relative;\n z-index: auto;\n flex: auto;\n overflow: hidden;\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n",[n("layout-scroll-container","\n overflow-x: hidden;\n box-sizing: border-box;\n height: 100%;\n "),r("absolute-positioned","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ")]),ze={embedded:Boolean,position:ye,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},Se=t("n-layout");function Ie(t){return e({name:t?"LayoutContent":"Layout",props:Object.assign(Object.assign({},s.props),ze),setup(e){const o=i(null),t=i(null),{mergedClsPrefixRef:n,inlineThemeDisabled:r}=a(e),l=s("Layout","-layout",we,c,e,n);m(Se,e);let h=0,p=0;d((()=>{if(e.nativeScrollbar){const e=o.value;e&&(e.scrollTop=p,e.scrollLeft=h)}}));const g={scrollTo:function(n,r){if(e.nativeScrollbar){const{value:e}=o;e&&(void 0===r?e.scrollTo(n):e.scrollTo(n,r))}else{const{value:e}=t;e&&e.scrollTo(n,r)}}},f=u((()=>{const{common:{cubicBezierEaseInOut:o},self:t}=l.value;return{"--n-bezier":o,"--n-color":e.embedded?t.colorEmbedded:t.color,"--n-text-color":t.textColor}})),b=r?v("layout",u((()=>e.embedded?"e":"")),f,e):void 0;return Object.assign({mergedClsPrefix:n,scrollableElRef:o,scrollbarInstRef:t,hasSiderStyle:{display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},mergedTheme:l,handleNativeElScroll:o=>{var t;const n=o.target;h=n.scrollLeft,p=n.scrollTop,null===(t=e.onScroll)||void 0===t||t.call(e,o)},cssVars:r?void 0:f,themeClass:null==b?void 0:b.themeClass,onRender:null==b?void 0:b.onRender},g)},render(){var e;const{mergedClsPrefix:n,hasSider:r}=this;null===(e=this.onRender)||void 0===e||e.call(this);const i=r?this.hasSiderStyle:void 0,a=[this.themeClass,t&&`${n}-layout-content`,`${n}-layout`,`${n}-layout--${this.position}-positioned`];return o("div",{class:a,style:this.cssVars},this.nativeScrollbar?o("div",{ref:"scrollableElRef",class:[`${n}-layout-scroll-container`,this.contentClass],style:[this.contentStyle,i],onScroll:this.handleNativeElScroll},this.$slots):o(l,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:this.contentClass,contentStyle:[this.contentStyle,i]}),this.$slots))}})}const ke=Ie(!1),Ae=Ie(!0),Te=n("layout-header","\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n box-sizing: border-box;\n width: 100%;\n background-color: var(--n-color);\n color: var(--n-text-color);\n",[r("absolute-positioned","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n "),r("bordered","\n border-bottom: solid 1px var(--n-border-color);\n ")]),Pe={position:ye,inverted:Boolean,bordered:{type:Boolean,default:!1}},_e=e({name:"LayoutHeader",props:Object.assign(Object.assign({},s.props),Pe),setup(e){const{mergedClsPrefixRef:o,inlineThemeDisabled:t}=a(e),n=s("Layout","-layout-header",Te,c,e,o),r=u((()=>{const{common:{cubicBezierEaseInOut:o},self:t}=n.value,r={"--n-bezier":o};return e.inverted?(r["--n-color"]=t.headerColorInverted,r["--n-text-color"]=t.textColorInverted,r["--n-border-color"]=t.headerBorderColorInverted):(r["--n-color"]=t.headerColor,r["--n-text-color"]=t.textColor,r["--n-border-color"]=t.headerBorderColor),r})),l=t?v("layout-header",u((()=>e.inverted?"a":"b")),r,e):void 0;return{mergedClsPrefix:o,cssVars:t?void 0:r,themeClass:null==l?void 0:l.themeClass,onRender:null==l?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return null===(e=this.onRender)||void 0===e||e.call(this),o("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),He=n("layout-sider","\n flex-shrink: 0;\n box-sizing: border-box;\n position: relative;\n z-index: 1;\n color: var(--n-text-color);\n transition:\n color .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n min-width .3s var(--n-bezier),\n max-width .3s var(--n-bezier),\n transform .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n background-color: var(--n-color);\n display: flex;\n justify-content: flex-end;\n",[r("bordered",[h("border",'\n content: "";\n position: absolute;\n top: 0;\n bottom: 0;\n width: 1px;\n background-color: var(--n-border-color);\n transition: background-color .3s var(--n-bezier);\n ')]),h("left-placement",[r("bordered",[h("border","\n right: 0;\n ")])]),r("right-placement","\n justify-content: flex-start;\n ",[r("bordered",[h("border","\n left: 0;\n ")]),r("collapsed",[n("layout-toggle-button",[n("base-icon","\n transform: rotate(180deg);\n ")]),n("layout-toggle-bar",[p("&:hover",[h("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),h("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),n("layout-toggle-button","\n left: 0;\n transform: translateX(-50%) translateY(-50%);\n ",[n("base-icon","\n transform: rotate(0);\n ")]),n("layout-toggle-bar","\n left: -28px;\n transform: rotate(180deg);\n ",[p("&:hover",[h("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),h("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),r("collapsed",[n("layout-toggle-bar",[p("&:hover",[h("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),h("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),n("layout-toggle-button",[n("base-icon","\n transform: rotate(0);\n ")])]),n("layout-toggle-button","\n transition:\n color .3s var(--n-bezier),\n right .3s var(--n-bezier),\n left .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n cursor: pointer;\n width: 24px;\n height: 24px;\n position: absolute;\n top: 50%;\n right: 0;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n color: var(--n-toggle-button-icon-color);\n border: var(--n-toggle-button-border);\n background-color: var(--n-toggle-button-color);\n box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06);\n transform: translateX(50%) translateY(-50%);\n z-index: 1;\n ",[n("base-icon","\n transition: transform .3s var(--n-bezier);\n transform: rotate(180deg);\n ")]),n("layout-toggle-bar","\n cursor: pointer;\n height: 72px;\n width: 32px;\n position: absolute;\n top: calc(50% - 36px);\n right: -28px;\n ",[h("top, bottom","\n position: absolute;\n width: 4px;\n border-radius: 2px;\n height: 38px;\n left: 14px;\n transition: \n background-color .3s var(--n-bezier),\n transform .3s var(--n-bezier);\n "),h("bottom","\n position: absolute;\n top: 34px;\n "),p("&:hover",[h("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),h("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),h("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),p("&:hover",[h("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),h("border","\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n width: 1px;\n transition: background-color .3s var(--n-bezier);\n "),n("layout-sider-scroll-container","\n flex-grow: 1;\n flex-shrink: 0;\n box-sizing: border-box;\n height: 100%;\n opacity: 0;\n transition: opacity .3s var(--n-bezier);\n max-width: 100%;\n "),r("show-content",[n("layout-sider-scroll-container",{opacity:1})]),r("absolute-positioned","\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n ")]),Re=e({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return o("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},o("div",{class:`${e}-layout-toggle-bar__top`}),o("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),Ne=e({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return o("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},o(g,{clsPrefix:e},{default:()=>o(f,null)}))}}),Be={position:ye,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentClass:String,contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerClass:String,triggerStyle:[String,Object],collapsedTriggerClass:String,collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},Oe=e({name:"LayoutSider",props:Object.assign(Object.assign({},s.props),Be),setup(e){const o=x(Se),t=i(null),n=i(null),r=i(e.defaultCollapsed),l=C(y(e,"collapsed"),r),h=u((()=>b(l.value?e.collapsedWidth:e.width))),p=u((()=>"transform"!==e.collapseMode?{}:{minWidth:b(e.width)})),g=u((()=>o?o.siderPlacement:"left"));let f=0,z=0;d((()=>{if(e.nativeScrollbar){const e=t.value;e&&(e.scrollTop=z,e.scrollLeft=f)}})),m(Ce,{collapsedRef:l,collapseModeRef:y(e,"collapseMode")});const{mergedClsPrefixRef:S,inlineThemeDisabled:I}=a(e),k=s("Layout","-layout-sider",He,c,e,S);const A={scrollTo:function(o,r){if(e.nativeScrollbar){const{value:e}=t;e&&(void 0===r?e.scrollTo(o):e.scrollTo(o,r))}else{const{value:e}=n;e&&e.scrollTo(o,r)}}},T=u((()=>{const{common:{cubicBezierEaseInOut:o},self:t}=k.value,{siderToggleButtonColor:n,siderToggleButtonBorder:r,siderToggleBarColor:l,siderToggleBarColorHover:i}=t,a={"--n-bezier":o,"--n-toggle-button-color":n,"--n-toggle-button-border":r,"--n-toggle-bar-color":l,"--n-toggle-bar-color-hover":i};return e.inverted?(a["--n-color"]=t.siderColorInverted,a["--n-text-color"]=t.textColorInverted,a["--n-border-color"]=t.siderBorderColorInverted,a["--n-toggle-button-icon-color"]=t.siderToggleButtonIconColorInverted,a.__invertScrollbar=t.__invertScrollbar):(a["--n-color"]=t.siderColor,a["--n-text-color"]=t.textColor,a["--n-border-color"]=t.siderBorderColor,a["--n-toggle-button-icon-color"]=t.siderToggleButtonIconColor),a})),P=I?v("layout-sider",u((()=>e.inverted?"a":"b")),T,e):void 0;return Object.assign({scrollableElRef:t,scrollbarInstRef:n,mergedClsPrefix:S,mergedTheme:k,styleMaxWidth:h,mergedCollapsed:l,scrollContainerStyle:p,siderPlacement:g,handleNativeElScroll:o=>{var t;const n=o.target;f=n.scrollLeft,z=n.scrollTop,null===(t=e.onScroll)||void 0===t||t.call(e,o)},handleTransitionend:function(o){var t,n;"max-width"===o.propertyName&&(l.value?null===(t=e.onAfterLeave)||void 0===t||t.call(e):null===(n=e.onAfterEnter)||void 0===n||n.call(e))},handleTriggerClick:function(){const{"onUpdate:collapsed":o,onUpdateCollapsed:t,onExpand:n,onCollapse:i}=e,{value:a}=l;t&&w(t,!a),o&&w(o,!a),r.value=!a,a?n&&w(n):i&&w(i)},inlineThemeDisabled:I,cssVars:T,themeClass:null==P?void 0:P.themeClass,onRender:null==P?void 0:P.onRender},A)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:n,showTrigger:r}=this;return null===(e=this.onRender)||void 0===e||e.call(this),o("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,n&&`${t}-layout-sider--collapsed`,(!n||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:b(this.width)}]},this.nativeScrollbar?o("div",{class:[`${t}-layout-sider-scroll-container`,this.contentClass],onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):o(l,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,contentClass:this.contentClass,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&"true"===this.cssVars.__invertScrollbar?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),r?o("bar"===r?Re:Ne,{clsPrefix:t,class:n?this.collapsedTriggerClass:this.triggerClass,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?o("div",{class:`${t}-layout-sider__border`}):null)}}),Le=t("n-menu"),je=t("n-submenu"),Me=t("n-menu-item-group"),$e=[p("&::before","background-color: var(--n-item-color-hover);"),h("arrow","\n color: var(--n-arrow-color-hover);\n "),h("icon","\n color: var(--n-item-icon-color-hover);\n "),n("menu-item-content-header","\n color: var(--n-item-text-color-hover);\n ",[p("a","\n color: var(--n-item-text-color-hover);\n "),h("extra","\n color: var(--n-item-text-color-hover);\n ")])],Ee=[h("icon","\n color: var(--n-item-icon-color-hover-horizontal);\n "),n("menu-item-content-header","\n color: var(--n-item-text-color-hover-horizontal);\n ",[p("a","\n color: var(--n-item-text-color-hover-horizontal);\n "),h("extra","\n color: var(--n-item-text-color-hover-horizontal);\n ")])],Fe=p([n("menu","\n background-color: var(--n-color);\n color: var(--n-item-text-color);\n overflow: hidden;\n transition: background-color .3s var(--n-bezier);\n box-sizing: border-box;\n font-size: var(--n-font-size);\n padding-bottom: 6px;\n ",[r("horizontal","\n max-width: 100%;\n width: 100%;\n display: flex;\n overflow: hidden;\n padding-bottom: 0;\n ",[n("submenu","margin: 0;"),n("menu-item","margin: 0;"),n("menu-item-content","\n padding: 0 20px;\n border-bottom: 2px solid #0000;\n ",[p("&::before","display: none;"),r("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),n("menu-item-content",[r("selected",[h("icon","color: var(--n-item-icon-color-active-horizontal);"),n("menu-item-content-header","\n color: var(--n-item-text-color-active-horizontal);\n ",[p("a","color: var(--n-item-text-color-active-horizontal);"),h("extra","color: var(--n-item-text-color-active-horizontal);")])]),r("child-active","\n border-bottom: 2px solid var(--n-border-color-horizontal);\n ",[n("menu-item-content-header","\n color: var(--n-item-text-color-child-active-horizontal);\n ",[p("a","\n color: var(--n-item-text-color-child-active-horizontal);\n "),h("extra","\n color: var(--n-item-text-color-child-active-horizontal);\n ")]),h("icon","\n color: var(--n-item-icon-color-child-active-horizontal);\n ")]),z("disabled",[z("selected, child-active",[p("&:focus-within",Ee)]),r("selected",[De(null,[h("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),n("menu-item-content-header","\n color: var(--n-item-text-color-active-hover-horizontal);\n ",[p("a","color: var(--n-item-text-color-active-hover-horizontal);"),h("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),r("child-active",[De(null,[h("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),n("menu-item-content-header","\n color: var(--n-item-text-color-child-active-hover-horizontal);\n ",[p("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),h("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),De("border-bottom: 2px solid var(--n-border-color-horizontal);",Ee)]),n("menu-item-content-header",[p("a","color: var(--n-item-text-color-horizontal);")])])]),z("responsive",[n("menu-item-content-header","\n overflow: hidden;\n text-overflow: ellipsis;\n ")]),r("collapsed",[n("menu-item-content",[r("selected",[p("&::before","\n background-color: var(--n-item-color-active-collapsed) !important;\n ")]),n("menu-item-content-header","opacity: 0;"),h("arrow","opacity: 0;"),h("icon","color: var(--n-item-icon-color-collapsed);")])]),n("menu-item","\n height: var(--n-item-height);\n margin-top: 6px;\n position: relative;\n "),n("menu-item-content",'\n box-sizing: border-box;\n line-height: 1.75;\n height: 100%;\n display: grid;\n grid-template-areas: "icon content arrow";\n grid-template-columns: auto 1fr auto;\n align-items: center;\n cursor: pointer;\n position: relative;\n padding-right: 18px;\n transition:\n background-color .3s var(--n-bezier),\n padding-left .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n ',[p("> *","z-index: 1;"),p("&::before",'\n z-index: auto;\n content: "";\n background-color: #0000;\n position: absolute;\n left: 8px;\n right: 8px;\n top: 0;\n bottom: 0;\n pointer-events: none;\n border-radius: var(--n-border-radius);\n transition: background-color .3s var(--n-bezier);\n '),r("disabled","\n opacity: .45;\n cursor: not-allowed;\n "),r("collapsed",[h("arrow","transform: rotate(0);")]),r("selected",[p("&::before","background-color: var(--n-item-color-active);"),h("arrow","color: var(--n-arrow-color-active);"),h("icon","color: var(--n-item-icon-color-active);"),n("menu-item-content-header","\n color: var(--n-item-text-color-active);\n ",[p("a","color: var(--n-item-text-color-active);"),h("extra","color: var(--n-item-text-color-active);")])]),r("child-active",[n("menu-item-content-header","\n color: var(--n-item-text-color-child-active);\n ",[p("a","\n color: var(--n-item-text-color-child-active);\n "),h("extra","\n color: var(--n-item-text-color-child-active);\n ")]),h("arrow","\n color: var(--n-arrow-color-child-active);\n "),h("icon","\n color: var(--n-item-icon-color-child-active);\n ")]),z("disabled",[z("selected, child-active",[p("&:focus-within",$e)]),r("selected",[De(null,[h("arrow","color: var(--n-arrow-color-active-hover);"),h("icon","color: var(--n-item-icon-color-active-hover);"),n("menu-item-content-header","\n color: var(--n-item-text-color-active-hover);\n ",[p("a","color: var(--n-item-text-color-active-hover);"),h("extra","color: var(--n-item-text-color-active-hover);")])])]),r("child-active",[De(null,[h("arrow","color: var(--n-arrow-color-child-active-hover);"),h("icon","color: var(--n-item-icon-color-child-active-hover);"),n("menu-item-content-header","\n color: var(--n-item-text-color-child-active-hover);\n ",[p("a","color: var(--n-item-text-color-child-active-hover);"),h("extra","color: var(--n-item-text-color-child-active-hover);")])])]),r("selected",[De(null,[p("&::before","background-color: var(--n-item-color-active-hover);")])]),De(null,$e)]),h("icon","\n grid-area: icon;\n color: var(--n-item-icon-color);\n transition:\n color .3s var(--n-bezier),\n font-size .3s var(--n-bezier),\n margin-right .3s var(--n-bezier);\n box-sizing: content-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n "),h("arrow","\n grid-area: arrow;\n font-size: 16px;\n color: var(--n-arrow-color);\n transform: rotate(180deg);\n opacity: 1;\n transition:\n color .3s var(--n-bezier),\n transform 0.2s var(--n-bezier),\n opacity 0.2s var(--n-bezier);\n "),n("menu-item-content-header","\n grid-area: content;\n transition:\n color .3s var(--n-bezier),\n opacity .3s var(--n-bezier);\n opacity: 1;\n white-space: nowrap;\n color: var(--n-item-text-color);\n ",[p("a","\n outline: none;\n text-decoration: none;\n transition: color .3s var(--n-bezier);\n color: var(--n-item-text-color);\n ",[p("&::before",'\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ')]),h("extra","\n font-size: .93em;\n color: var(--n-group-text-color);\n transition: color .3s var(--n-bezier);\n ")])]),n("submenu","\n cursor: pointer;\n position: relative;\n margin-top: 6px;\n ",[n("menu-item-content","\n height: var(--n-item-height);\n "),n("submenu-children","\n overflow: hidden;\n padding: 0;\n ",[S({duration:".2s"})])]),n("menu-item-group",[n("menu-item-group-title","\n margin-top: 6px;\n color: var(--n-group-text-color);\n cursor: default;\n font-size: .93em;\n height: 36px;\n display: flex;\n align-items: center;\n transition:\n padding-left .3s var(--n-bezier),\n color .3s var(--n-bezier);\n ")])]),n("menu-tooltip",[p("a","\n color: inherit;\n text-decoration: none;\n ")]),n("menu-divider","\n transition: background-color .3s var(--n-bezier);\n background-color: var(--n-divider-color);\n height: 1px;\n margin: 6px 18px;\n ")]);function De(e,o){return[r("hover",e,o),p("&:hover",e,o)]}const Ve=e({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},isEllipsisPlaceholder:Boolean},setup(e){const{props:o}=x(Le);return{menuProps:o,style:u((()=>{const{paddingLeft:o}=e;return{paddingLeft:o&&`${o}px`}})),iconStyle:u((()=>{const{maxIconSize:o,activeIconSize:t,iconMarginRight:n}=e;return{width:`${o}px`,height:`${o}px`,fontSize:`${t}px`,marginRight:`${n}px`}}))}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:n,renderLabel:r,renderExtra:l,expandIcon:i}}=this,a=n?n(t.rawNode):I(this.icon);return o("div",{onClick:e=>{var o;null===(o=this.onClick)||void 0===o||o.call(this,e)},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},a&&o("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),o("div",{class:`${e}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:r?r(t.rawNode):I(this.title),this.extra||l?o("span",{class:`${e}-menu-item-content-header__extra`}," ",l?l(t.rawNode):I(this.extra)):null),this.showArrow?o(g,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):o(xe,null)}):null)}});function Ke(e){const o=x(Le),{props:t,mergedCollapsedRef:n}=o,r=x(je,null),l=x(Me,null),i=u((()=>"horizontal"===t.mode)),a=u((()=>i.value?t.dropdownPlacement:"tmNodes"in e?"right-start":"right")),s=u((()=>{var e;return Math.max(null!==(e=t.collapsedIconSize)&&void 0!==e?e:t.iconSize,t.iconSize)})),c=u((()=>{var o;return!i.value&&e.root&&n.value&&null!==(o=t.collapsedIconSize)&&void 0!==o?o:t.iconSize})),d=u((()=>{if(i.value)return;const{collapsedWidth:o,indent:a,rootIndent:c}=t,{root:d,isGroup:u}=e,v=void 0===c?a:c;return d?n.value?o/2-s.value/2:v:l&&"number"==typeof l.paddingLeftRef.value?a/2+l.paddingLeftRef.value:r&&"number"==typeof r.paddingLeftRef.value?(u?a/2:a)+r.paddingLeftRef.value:0})),v=u((()=>{const{collapsedWidth:o,indent:r,rootIndent:l}=t,{value:a}=s,{root:c}=e;if(i.value)return 8;if(!c)return 8;if(!n.value)return 8;return(void 0===l?r:l)+a+8-(o+a)/2}));return{dropdownPlacement:a,activeIconSize:c,maxIconSize:s,paddingLeft:d,iconMarginRight:v,NMenu:o,NSubmenu:r}}const Ue={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},We=e({name:"MenuDivider",setup(){const e=x(Le),{mergedClsPrefixRef:t,isHorizontalRef:n}=e;return()=>n.value?null:o("div",{class:`${t.value}-menu-divider`})}}),Ge=Object.assign(Object.assign({},Ue),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),qe=k(Ge),Ye=e({name:"MenuOption",props:Ge,setup(e){const o=Ke(e),{NSubmenu:t,NMenu:n}=o,{props:r,mergedClsPrefixRef:l,mergedCollapsedRef:i}=n,a=t?t.mergedDisabledRef:{value:!1},s=u((()=>a.value||e.disabled));return{mergedClsPrefix:l,dropdownPlacement:o.dropdownPlacement,paddingLeft:o.paddingLeft,iconMarginRight:o.iconMarginRight,maxIconSize:o.maxIconSize,activeIconSize:o.activeIconSize,mergedTheme:n.mergedThemeRef,menuProps:r,dropdownEnabled:T((()=>e.root&&i.value&&"horizontal"!==r.mode&&!s.value)),selected:T((()=>n.mergedValueRef.value===e.internalKey)),mergedDisabled:s,handleClick:function(o){s.value||(n.doSelect(e.internalKey,e.tmNode.rawNode),function(o){const{onClick:t}=e;t&&t(o)}(o))}}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:n,menuProps:{renderLabel:r,nodeProps:l}}=this,i=null==l?void 0:l(n.rawNode);return o("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,null==i?void 0:i.class]}),o(A,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||void 0===this.title,internalExtraClass:["menu-tooltip"]},{default:()=>r?r(n.rawNode):I(this.title),trigger:()=>o(Ve,{tmNode:n,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})}))}}),Je=Object.assign(Object.assign({},Ue),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),Xe=k(Je),Ze=e({name:"MenuOptionGroup",props:Je,setup(e){m(je,null);const t=Ke(e);m(Me,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:n,props:r}=x(Le);return function(){const{value:l}=n,i=t.paddingLeft.value,{nodeProps:a}=r,s=null==a?void 0:a(e.tmNode.rawNode);return o("div",{class:`${l}-menu-item-group`,role:"group"},o("div",Object.assign({},s,{class:[`${l}-menu-item-group-title`,null==s?void 0:s.class],style:[(null==s?void 0:s.style)||"",void 0!==i?`padding-left: ${i}px;`:""]}),I(e.title),e.extra?o(P,null," ",I(e.extra)):null),o("div",null,e.tmNodes.map((e=>eo(e,r)))))}}});function Qe(e){return"divider"===e.type||"render"===e.type}function eo(e,t){const{rawNode:n}=e,{show:r}=n;if(!1===r)return null;if(Qe(n))return function(e){return"divider"===e.type}(n)?o(We,Object.assign({key:e.key},n.props)):null;const{labelField:l}=t,{key:i,level:a,isGroup:s}=e,c=Object.assign(Object.assign({},n),{title:n.title||n[l],extra:n.titleExtra||n.extra,key:i,internalKey:i,level:a,root:0===a,isGroup:s});return e.children?e.isGroup?o(Ze,_(c,Xe,{tmNode:e,tmNodes:e.children,key:i})):o(no,_(c,to,{key:i,rawNodes:n[t.childrenField],tmNodes:e.children,tmNode:e})):o(Ye,_(c,qe,{key:i,tmNode:e}))}const oo=Object.assign(Object.assign({},Ue),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function,domId:String,virtualChildActive:{type:Boolean,default:void 0},isEllipsisPlaceholder:Boolean}),to=k(oo),no=e({name:"Submenu",props:oo,setup(e){const o=Ke(e),{NMenu:t,NSubmenu:n}=o,{props:r,mergedCollapsedRef:l,mergedThemeRef:a}=t,s=u((()=>{const{disabled:o}=e;return!!(null==n?void 0:n.mergedDisabledRef.value)||(!!r.disabled||o)})),c=i(!1);return m(je,{paddingLeftRef:o.paddingLeft,mergedDisabledRef:s}),m(Me,null),{menuProps:r,mergedTheme:a,doSelect:t.doSelect,inverted:t.invertedRef,isHorizontal:t.isHorizontalRef,mergedClsPrefix:t.mergedClsPrefixRef,maxIconSize:o.maxIconSize,activeIconSize:o.activeIconSize,iconMarginRight:o.iconMarginRight,dropdownPlacement:o.dropdownPlacement,dropdownShow:c,paddingLeft:o.paddingLeft,mergedDisabled:s,mergedValue:t.mergedValueRef,childActive:T((()=>{var o;return null!==(o=e.virtualChildActive)&&void 0!==o?o:t.activePathRef.value.includes(e.internalKey)})),collapsed:u((()=>"horizontal"!==r.mode&&(!!l.value||!t.mergedExpandedKeysRef.value.includes(e.internalKey)))),dropdownEnabled:u((()=>!s.value&&("horizontal"===r.mode||l.value))),handlePopoverShowChange:function(e){c.value=e},handleClick:function(){s.value||(l.value||t.toggleExpand(e.internalKey),function(){const{onClick:o}=e;o&&o()}())}}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:n,renderLabel:r}}=this,l=()=>{const{isHorizontal:e,paddingLeft:t,collapsed:n,mergedDisabled:r,maxIconSize:l,activeIconSize:i,title:a,childActive:s,icon:c,handleClick:d,menuProps:{nodeProps:u},dropdownShow:v,iconMarginRight:m,tmNode:h,mergedClsPrefix:p,isEllipsisPlaceholder:g,extra:f}=this,b=null==u?void 0:u(h.rawNode);return o("div",Object.assign({},b,{class:[`${p}-menu-item`,null==b?void 0:b.class],role:"menuitem"}),o(Ve,{tmNode:h,paddingLeft:t,collapsed:n,disabled:r,iconMarginRight:m,maxIconSize:l,activeIconSize:i,title:a,extra:f,showArrow:!e,childActive:s,clsPrefix:p,icon:c,hover:v,onClick:d,isEllipsisPlaceholder:g}))},i=()=>o(R,null,{default:()=>{const{tmNodes:e,collapsed:n}=this;return n?null:o("div",{class:`${t}-submenu-children`,role:"menu"},e.map((e=>eo(e,this.menuProps))))}});return this.root?o(H,Object.assign({size:"large",trigger:"hover"},null===(e=this.menuProps)||void 0===e?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:n,renderLabel:r}),{default:()=>o("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},l(),this.isHorizontal?null:i())}):o("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},l(),i())}}),ro=Object.assign(Object.assign({},s.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,dropdownPlacement:{type:String,default:"bottom"},responsive:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array}),lo=e({name:"Menu",inheritAttrs:!1,props:ro,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=a(e),r=s("Menu","-menu",Fe,B,e,t),l=x(Ce,null),c=u((()=>{var o;const{collapsed:t}=e;if(void 0!==t)return t;if(l){const{collapseModeRef:e,collapsedRef:t}=l;if("width"===e.value)return null!==(o=t.value)&&void 0!==o&&o}return!1})),d=u((()=>{const{keyField:o,childrenField:t,disabledField:n}=e;return O(e.items||e.options,{getIgnored:e=>Qe(e),getChildren:e=>e[t],getDisabled:e=>e[n],getKey(e){var t;return null!==(t=e[o])&&void 0!==t?t:e.name}})})),h=u((()=>new Set(d.value.treeNodes.map((e=>e.key))))),{watchProps:p}=e,g=i(null);(null==p?void 0:p.includes("defaultValue"))?L((()=>{g.value=e.defaultValue})):g.value=e.defaultValue;const f=y(e,"value"),b=C(f,g),z=i([]),S=()=>{z.value=e.defaultExpandAll?d.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||d.value.getPath(b.value,{includeSelf:!1}).keyPath};(null==p?void 0:p.includes("defaultExpandedKeys"))?L(S):S();const I=j(e,["expandedNames","expandedKeys"]),k=C(I,z),A=u((()=>d.value.treeNodes)),T=u((()=>d.value.getPath(b.value).keyPath));function P(o){const{"onUpdate:expandedKeys":t,onUpdateExpandedKeys:n,onExpandedNamesChange:r,onOpenNamesChange:l}=e;t&&w(t,o),n&&w(n,o),r&&w(r,o),l&&w(l,o),z.value=o}m(Le,{props:e,mergedCollapsedRef:c,mergedThemeRef:r,mergedValueRef:b,mergedExpandedKeysRef:k,activePathRef:T,mergedClsPrefixRef:t,isHorizontalRef:u((()=>"horizontal"===e.mode)),invertedRef:y(e,"inverted"),doSelect:function(o,t){const{"onUpdate:value":n,onUpdateValue:r,onSelect:l}=e;r&&w(r,o,t);n&&w(n,o,t);l&&w(l,o,t);g.value=o},toggleExpand:function(o){const t=Array.from(k.value),n=t.findIndex((e=>e===o));if(~n)t.splice(n,1);else{if(e.accordion&&h.value.has(o)){const e=t.findIndex((e=>h.value.has(e)));e>-1&&t.splice(e,1)}t.push(o)}P(t)}});const _=u((()=>{const{inverted:o}=e,{common:{cubicBezierEaseInOut:t},self:n}=r.value,{borderRadius:l,borderColorHorizontal:i,fontSize:a,itemHeight:s,dividerColor:c}=n,d={"--n-divider-color":c,"--n-bezier":t,"--n-font-size":a,"--n-border-color-horizontal":i,"--n-border-radius":l,"--n-item-height":s};return o?(d["--n-group-text-color"]=n.groupTextColorInverted,d["--n-color"]=n.colorInverted,d["--n-item-text-color"]=n.itemTextColorInverted,d["--n-item-text-color-hover"]=n.itemTextColorHoverInverted,d["--n-item-text-color-active"]=n.itemTextColorActiveInverted,d["--n-item-text-color-child-active"]=n.itemTextColorChildActiveInverted,d["--n-item-text-color-child-active-hover"]=n.itemTextColorChildActiveInverted,d["--n-item-text-color-active-hover"]=n.itemTextColorActiveHoverInverted,d["--n-item-icon-color"]=n.itemIconColorInverted,d["--n-item-icon-color-hover"]=n.itemIconColorHoverInverted,d["--n-item-icon-color-active"]=n.itemIconColorActiveInverted,d["--n-item-icon-color-active-hover"]=n.itemIconColorActiveHoverInverted,d["--n-item-icon-color-child-active"]=n.itemIconColorChildActiveInverted,d["--n-item-icon-color-child-active-hover"]=n.itemIconColorChildActiveHoverInverted,d["--n-item-icon-color-collapsed"]=n.itemIconColorCollapsedInverted,d["--n-item-text-color-horizontal"]=n.itemTextColorHorizontalInverted,d["--n-item-text-color-hover-horizontal"]=n.itemTextColorHoverHorizontalInverted,d["--n-item-text-color-active-horizontal"]=n.itemTextColorActiveHorizontalInverted,d["--n-item-text-color-child-active-horizontal"]=n.itemTextColorChildActiveHorizontalInverted,d["--n-item-text-color-child-active-hover-horizontal"]=n.itemTextColorChildActiveHoverHorizontalInverted,d["--n-item-text-color-active-hover-horizontal"]=n.itemTextColorActiveHoverHorizontalInverted,d["--n-item-icon-color-horizontal"]=n.itemIconColorHorizontalInverted,d["--n-item-icon-color-hover-horizontal"]=n.itemIconColorHoverHorizontalInverted,d["--n-item-icon-color-active-horizontal"]=n.itemIconColorActiveHorizontalInverted,d["--n-item-icon-color-active-hover-horizontal"]=n.itemIconColorActiveHoverHorizontalInverted,d["--n-item-icon-color-child-active-horizontal"]=n.itemIconColorChildActiveHorizontalInverted,d["--n-item-icon-color-child-active-hover-horizontal"]=n.itemIconColorChildActiveHoverHorizontalInverted,d["--n-arrow-color"]=n.arrowColorInverted,d["--n-arrow-color-hover"]=n.arrowColorHoverInverted,d["--n-arrow-color-active"]=n.arrowColorActiveInverted,d["--n-arrow-color-active-hover"]=n.arrowColorActiveHoverInverted,d["--n-arrow-color-child-active"]=n.arrowColorChildActiveInverted,d["--n-arrow-color-child-active-hover"]=n.arrowColorChildActiveHoverInverted,d["--n-item-color-hover"]=n.itemColorHoverInverted,d["--n-item-color-active"]=n.itemColorActiveInverted,d["--n-item-color-active-hover"]=n.itemColorActiveHoverInverted,d["--n-item-color-active-collapsed"]=n.itemColorActiveCollapsedInverted):(d["--n-group-text-color"]=n.groupTextColor,d["--n-color"]=n.color,d["--n-item-text-color"]=n.itemTextColor,d["--n-item-text-color-hover"]=n.itemTextColorHover,d["--n-item-text-color-active"]=n.itemTextColorActive,d["--n-item-text-color-child-active"]=n.itemTextColorChildActive,d["--n-item-text-color-child-active-hover"]=n.itemTextColorChildActiveHover,d["--n-item-text-color-active-hover"]=n.itemTextColorActiveHover,d["--n-item-icon-color"]=n.itemIconColor,d["--n-item-icon-color-hover"]=n.itemIconColorHover,d["--n-item-icon-color-active"]=n.itemIconColorActive,d["--n-item-icon-color-active-hover"]=n.itemIconColorActiveHover,d["--n-item-icon-color-child-active"]=n.itemIconColorChildActive,d["--n-item-icon-color-child-active-hover"]=n.itemIconColorChildActiveHover,d["--n-item-icon-color-collapsed"]=n.itemIconColorCollapsed,d["--n-item-text-color-horizontal"]=n.itemTextColorHorizontal,d["--n-item-text-color-hover-horizontal"]=n.itemTextColorHoverHorizontal,d["--n-item-text-color-active-horizontal"]=n.itemTextColorActiveHorizontal,d["--n-item-text-color-child-active-horizontal"]=n.itemTextColorChildActiveHorizontal,d["--n-item-text-color-child-active-hover-horizontal"]=n.itemTextColorChildActiveHoverHorizontal,d["--n-item-text-color-active-hover-horizontal"]=n.itemTextColorActiveHoverHorizontal,d["--n-item-icon-color-horizontal"]=n.itemIconColorHorizontal,d["--n-item-icon-color-hover-horizontal"]=n.itemIconColorHoverHorizontal,d["--n-item-icon-color-active-horizontal"]=n.itemIconColorActiveHorizontal,d["--n-item-icon-color-active-hover-horizontal"]=n.itemIconColorActiveHoverHorizontal,d["--n-item-icon-color-child-active-horizontal"]=n.itemIconColorChildActiveHorizontal,d["--n-item-icon-color-child-active-hover-horizontal"]=n.itemIconColorChildActiveHoverHorizontal,d["--n-arrow-color"]=n.arrowColor,d["--n-arrow-color-hover"]=n.arrowColorHover,d["--n-arrow-color-active"]=n.arrowColorActive,d["--n-arrow-color-active-hover"]=n.arrowColorActiveHover,d["--n-arrow-color-child-active"]=n.arrowColorChildActive,d["--n-arrow-color-child-active-hover"]=n.arrowColorChildActiveHover,d["--n-item-color-hover"]=n.itemColorHover,d["--n-item-color-active"]=n.itemColorActive,d["--n-item-color-active-hover"]=n.itemColorActiveHover,d["--n-item-color-active-collapsed"]=n.itemColorActiveCollapsed),d})),H=n?v("menu",u((()=>e.inverted?"a":"b")),_,e):void 0,R=M(),N=i(null),$=i(null);let E=!0;const F=()=>{var e;E?E=!1:null===(e=N.value)||void 0===e||e.sync({showAllItemsBeforeCalculate:!0})};const D=i(-1);const V=u((()=>{const o=D.value;return{children:-1===o?[]:e.options.slice(o)}})),K=u((()=>{const{childrenField:o,disabledField:t,keyField:n}=e;return O([V.value],{getIgnored:e=>Qe(e),getChildren:e=>e[o],getDisabled:e=>e[t],getKey(e){var o;return null!==(o=e[n])&&void 0!==o?o:e.name}})})),U=u((()=>O([{}]).treeNodes[0]));return{mergedClsPrefix:t,controlledExpandedKeys:I,uncontrolledExpanededKeys:z,mergedExpandedKeys:k,uncontrolledValue:g,mergedValue:b,activePath:T,tmNodes:A,mergedTheme:r,mergedCollapsed:c,cssVars:n?void 0:_,themeClass:null==H?void 0:H.themeClass,overflowRef:N,counterRef:$,updateCounter:()=>{},onResize:F,onUpdateOverflow:function(e){e||(D.value=-1)},onUpdateCount:function(o){D.value=e.options.length-o},renderCounter:function(){var e;if(-1===D.value)return o(no,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:U.value,domId:R,isEllipsisPlaceholder:!0});const t=K.value.treeNodes[0],n=T.value,r=!!(null===(e=t.children)||void 0===e?void 0:e.some((e=>n.includes(e.key))));return o(no,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:r,tmNode:t,domId:R,rawNodes:t.rawNode.children||[],tmNodes:t.children||[],isEllipsisPlaceholder:!0})},getCounter:function(){return document.getElementById(R)},onRender:null==H?void 0:H.onRender,showOption:o=>{const t=d.value.getPath(null!=o?o:b.value,{includeSelf:!1}).keyPath;if(!t.length)return;const n=Array.from(k.value),r=new Set([...n,...t]);e.accordion&&h.value.forEach((e=>{r.has(e)&&!t.includes(e)&&r.delete(e)})),P(Array.from(r))},deriveResponsiveState:F}},render(){const{mergedClsPrefix:e,mode:t,themeClass:n,onRender:r}=this;null==r||r();const l=()=>this.tmNodes.map((e=>eo(e,this.$props))),i="horizontal"===t&&this.responsive,a=()=>o("div",E(this.$attrs,{role:"horizontal"===t?"menubar":"menu",class:[`${e}-menu`,n,`${e}-menu--${t}`,i&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars}),i?o($,{ref:"overflowRef",onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:l,counter:this.renderCounter}):l());return i?o(N,{onResize:this.onResize},{default:a}):a()}}),io=Object.assign(Object.assign({},s.props),{trigger:String,xScrollable:Boolean,onScroll:Function,contentClass:String,contentStyle:[Object,String],size:Number,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),ao=e({name:"Scrollbar",props:io,setup(){const e=i(null),o={scrollTo:(...o)=>{var t;null===(t=e.value)||void 0===t||t.scrollTo(o[0],o[1])},scrollBy:(...o)=>{var t;null===(t=e.value)||void 0===t||t.scrollBy(o[0],o[1])}};return Object.assign(Object.assign({},o),{scrollbarInstRef:e})},render(){return o(l,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),so={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},co=e({name:"ApiOutlined",render:function(e,o){return D(),F("svg",so,o[0]||(o[0]=[V("path",{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 0 0-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 0 0 0 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3c2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4l-186.8-186.8l59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7c35.3 0 68.4 13.7 93.4 38.7c24.9 24.9 38.7 58.1 38.7 93.4c0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 0 0-11.3 0L501 613.3L410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 0 0-11.3 0L363 475.3l-43-43a7.85 7.85 0 0 0-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 0 0 0 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3c51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 0 1-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 0 1-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4l186.8 186.8l-59.4 59.4z",fill:"currentColor"},null,-1)]))}}),uo={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},vo=e({name:"MenuFoldOutlined",render:function(e,o){return D(),F("svg",uo,o[0]||(o[0]=[V("path",{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 0 0 0 13.8z",fill:"currentColor"},null,-1)]))}}),mo={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},ho=e({name:"MenuUnfoldOutlined",render:function(e,o){return D(),F("svg",mo,o[0]||(o[0]=[V("path",{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z",fill:"currentColor"},null,-1)]))}}),po={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},go=e({name:"LogOutOutline",render:function(e,o){return D(),F("svg",po,o[0]||(o[0]=[V("path",{d:"M304 336v40a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V136a40 40 0 0 1 40-40h152c22.09 0 48 17.91 48 40v40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),V("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 336l80-80l-80-80"},null,-1),V("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 256h256"},null,-1)]))}}),fo={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},bo=e({name:"SettingsOutline",render:function(e,o){return D(),F("svg",fo,o[0]||(o[0]=[V("path",{d:"M262.29 192.31a64 64 0 1 0 57.4 57.4a64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22a155.3 155.3 0 0 1-21.46-12.57a16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22a155.3 155.3 0 0 1 21.46 12.57a16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),xo={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Co=e({name:"AddSquare24Regular",render:function(e,o){return D(),F("svg",xo,o[0]||(o[0]=[V("g",{fill:"none"},[V("path",{d:"M12 7a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 12 7zm-9-.75A3.25 3.25 0 0 1 6.25 3h11.5A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25zM6.25 4.5A1.75 1.75 0 0 0 4.5 6.25v11.5c0 .966.784 1.75 1.75 1.75h11.5a1.75 1.75 0 0 0 1.75-1.75V6.25a1.75 1.75 0 0 0-1.75-1.75H6.25z",fill:"currentColor"})],-1)]))}}),yo={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},wo=e({name:"Home",render:function(e,o){return D(),F("svg",yo,o[0]||(o[0]=[V("path",{d:"M16.612 2.214a1.01 1.01 0 0 0-1.242 0L1 13.419l1.243 1.572L4 13.621V26a2.004 2.004 0 0 0 2 2h20a2.004 2.004 0 0 0 2-2V13.63L29.757 15L31 13.428zM18 26h-4v-8h4zm2 0v-8a2.002 2.002 0 0 0-2-2h-4a2.002 2.002 0 0 0-2 2v8H6V12.062l10-7.79l10 7.8V26z",fill:"currentColor"},null,-1)]))}}),zo={layoutContainer:"_layoutContainer_1a9f3_2",sider:"_sider_1a9f3_8",logoContainer:"_logoContainer_1a9f3_14",logoText:"_logoText_1a9f3_21",logoContainerText:"_logoContainerText_1a9f3_30",logoContainerActive:"_logoContainerActive_1a9f3_35",menuToggleButton:"_menuToggleButton_1a9f3_40",headerMenuToggleButton:"_headerMenuToggleButton_1a9f3_51",header:"_header_1a9f3_51",systemInfo:"_systemInfo_1a9f3_75",content:"_content_1a9f3_82",siderMobileOpen:"_siderMobileOpen_1a9f3_89",siderMobileClosed:"_siderMobileClosed_1a9f3_98",mobileMenuBackdrop:"_mobileMenuBackdrop_1a9f3_106"};const So=e({name:"UpdateLogModal",props:{show:{type:Boolean,default:!1},versionData:{type:Object,default:null}},emits:{"update:show":e=>"boolean"==typeof e},setup(e,{emit:o}){const{formattedLog:t,goToGitHub:n,handleClose:r}=function(e,o){return{formattedLog:u((()=>{var o;return(null==(o=e.versionData)?void 0:o.log)?e.versionData.log.replace(/\\r\\n/g,"\n").replace(/\\n/g,"\n").split("\n").filter((e=>""!==e.trim())):[]})),goToGitHub:()=>{window.open("https://github.com/allinssl/allinssl","_blank"),o("update:show",!1)},handleClose:()=>{o("update:show",!1)}}}(e,o);return()=>q(ee,{show:e.show,onUpdateShow:e=>o("update:show",e),preset:"card",title:"发现新版本",style:{width:"600px",maxWidth:"90vw"},maskClosable:!1,closable:!0,onClose:r},{default:()=>[e.versionData&&q("div",{class:"update-log-content"},[q("div",{class:"mb-[1.6rem]"},[q("div",{class:"flex items-center justify-between mb-[.8rem]"},[q("span",{class:"text-[1.5rem] font-medium"},[oe("当前版本: "),e.versionData.version]),q("span",{class:"text-[1.5rem] font-medium text-primary"},[oe("最新版本: "),e.versionData.new_version])]),q("div",{class:"text-[1.4rem] text-gray-500"},[oe("发布日期: "),e.versionData.date])]),q("div",{class:"mb-[2.4rem]"},[q("h3",{class:"text-[1.6rem] font-medium mb-[1.2rem]"},[oe("更新日志")]),q(ao,{style:{maxHeight:"300px"}},{default:()=>[q("div",{class:"update-log-list"},[t.value.map(((e,o)=>q("div",{key:o,class:"mb-[.8rem]"},[e.startsWith("■")?q("div",{class:"text-[1.4rem] font-medium text-primary mb-[.4rem]"},[e]):e.startsWith("新增:")||e.startsWith("调整:")?q("div",{class:"ml-[1.6rem] text-[1.3rem] text-green-600"},[e]):q("div",{class:"ml-[1.6rem] text-[1.3rem] text-gray-700"},[e])])))])]})]),q("div",{class:"flex justify-end"},[q(te,{size:"medium"},{default:()=>[q(ne,{size:"medium",onClick:r},{default:()=>[q("span",{class:"text-[1.4rem]"},[oe("稍后更新")])]}),q(ne,{size:"medium",type:"primary",onClick:n},{default:()=>[q("div",{class:"flex items-center"},[q(Q,{size:"18",class:"mr-[.8rem]"},{default:()=>[q(fe,null,null)]}),q("span",{class:"text-[1.4rem]"},[oe("前往GitHub下载")])])]})]})])])]})}}),Io=e({name:"LayoutView",setup(){const{menuItems:e,menuActive:t,isCollapsed:n,toggleCollapse:r,handleExpand:l,handleCollapse:a,updateMenuActive:s}=(()=>{const e=ve(),t=K(),n=U(),r=W(),{handleError:l}=ce(),{isCollapsed:a,menuActive:s,updateMenuActive:c,toggleCollapse:d,handleCollapse:v,handleExpand:m,resetDataInfo:h}=e,p=i(!1),g=i({}),f=e=>{const t={certManage:pe,autoDeploy:he,home:wo,certApply:Co,monitor:me,settings:bo,logout:go,authApiManage:co};return()=>o(Q,null,(()=>o(t[e]||"div")))},b=u((()=>[...G.filter((e=>{var o;return null==(o=e.meta)?void 0:o.title})).map((e=>({key:e.name,label:()=>q(Y,{to:e.path},{default:()=>{var o;return[null==(o=null==e?void 0:e.meta)?void 0:o.title]}}),icon:f(e.name)}))),{key:"logout",label:()=>q("a",{onClick:C},[J("t_15_1745457484292")]),icon:f("logout")}])),x=()=>{const e=n.path;if(p.value=e.includes("/children/"),p.value){const e=G.find((e=>e.name===s.value));if(e&&e.children){const o=e.children.find((e=>n.path.includes(e.path)));g.value=o||{}}else g.value={}}else g.value={}};X((()=>n.name),(e=>{e&&e!==s.value&&c(e),x()}),{immediate:!0});const C=async()=>{try{await de({title:J("t_15_1745457484292"),content:J("t_16_1745457491607"),onPositiveClick:async()=>{try{r.success(J("t_17_1745457488251")),await ue().fetch(),setTimeout((()=>{h(),sessionStorage.clear(),t.push("/login")}),1e3)}catch(e){l(e)}}})}catch(e){}};return Z((async()=>{x()})),{isCollapsed:a,menuActive:s,updateMenuActive:c,toggleCollapse:d,handleCollapse:v,handleExpand:m,resetDataInfo:h,handleLogout:C,menuItems:b,isChildRoute:p,childRouteConfig:g}})(),c=re(["bodyColor","headerColor","borderColor","textColorBase","textColor1","textColor2","textColorSecondary","actionColor","layoutContentBackgroundColor","siderLoginHeight","contentPadding"]),d=i(!1),v=i(null),m=i(!1),h=i(null),p=ge(),g=async()=>{try{if(await p.fetch(),p.data.value&&p.data.value.data){const e=p.data.value.data;v.value=e,d.value="1"===e.update}}catch(e){}},f=()=>{d.value&&v.value&&(m.value=!0)},b=i(200),x=i(60),C=se("(max-width: 768px)"),y=se("(max-width: 1100px)");Z((()=>{(C.value||y.value)&&(n.value=!0),g(),h.value=setInterval(g,18e5)})),le((()=>{h.value&&clearInterval(h.value)})),X(y,(e=>{e&&!C.value?n.value=!0:e||C.value||(n.value=!1)}));const w=u((()=>!C.value&&n.value)),z=u((()=>n.value)),S=u((()=>C.value?n.value?zo.siderMobileClosed:zo.siderMobileOpen:"")),I=u((()=>C.value&&!n.value));return()=>q(ke,{class:zo.layoutContainer,hasSider:!0,style:c.value},{default:()=>[q(Oe,{width:b.value,collapsed:w.value,showTrigger:!1,collapseMode:"width",collapsedWidth:x.value,onCollapse:a,onExpand:l,class:[zo.sider,S.value].join(" "),bordered:!0},{default:()=>[q("div",{class:`${zo.logoContainer} ${!C.value&&n.value?zo.logoContainerActive:""}`},[!C.value&&n.value?q("div",{class:"flex items-center justify-center w-full h-full"},[q("img",{src:"/static/images/logo.png",alt:"logo",class:"h-8 w-8"},null)]):q("div",{class:zo.logoContainerText},[q("img",{src:"/static/images/logo.png",alt:"logo",class:"h-8 w-8 mr-2 sm:mr-3"},null),q("span",{class:`${zo.logoText} ml-0 font-bold`},[J("t_1_1744164835667")])]),!n.value&&!C.value&&q(A,{placement:"right",trigger:"hover"},{trigger:()=>q("div",{class:zo.menuToggleButton,onClick:()=>r()},[q(Q,{size:20},{default:()=>[q(vo,null,null)]})," "]),default:()=>q("span",null,[J("t_4_1744098802046")])})]),q(lo,{value:t.value,onUpdateValue:(e,o)=>{s(e),C.value&&!n.value&&(n.value=!0)},options:e.value,class:"border-none",collapsed:z.value,collapsedWidth:x.value,collapsedIconSize:22},null)]}),q(ke,null,{default:()=>[q(_e,{class:zo.header},{default:()=>[(C.value||!C.value&&n.value)&&q("div",{class:"mr-auto"},[q(A,{placement:"right",trigger:"hover"},{trigger:()=>q("div",{class:zo.headerMenuToggleButton,onClick:()=>r()},[q(Q,{size:20},{default:()=>[n.value?q(ho,null,null):q(vo,null,null)]})]),default:()=>q("span",null,[oe("展开主菜单")])})]),q("div",{class:zo.systemInfo},[q(be,{value:1,show:d.value,dot:!0},{default:()=>[q("span",{class:"px-[.8rem] sm:px-[.5rem] py-[.4rem] cursor-pointer hover:text-primary transition-colors text-[1.4rem] font-medium",onClick:f},[v.value&&v.value.version])]})])]}),q(Ae,{class:zo.content},{default:()=>[q(ie,null,{default:({Component:e})=>q(ae,{name:"fade",mode:"out-in"},{default:()=>[e&&o(e)]})})]})]}),I.value&&q("div",{class:zo.mobileMenuBackdrop,onClick:()=>r()},null),q(So,{show:m.value,"onUpdate:show":e=>m.value=e,versionData:v.value},null)]})}});export{Io as default};