var re=Object.defineProperty;var O=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable;var Q=(t,e,o)=>e in t?re(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,D=(t,e)=>{for(var o in e||(e={}))ie.call(e,o)&&Q(t,o,e[o]);if(O)for(var o of O(e))de.call(e,o)&&Q(t,o,e[o]);return t};var U=(t,e,o)=>new Promise((n,l)=>{var i=r=>{try{f(o.next(r))}catch(m){l(m)}},y=r=>{try{f(o.throw(r))}catch(m){l(m)}},f=r=>r.done?n(r.value):Promise.resolve(r.value).then(i,y);f((o=o.apply(t,e)).next())});import{aq as z,H as v,dq as ce,S as G,C as q,N as T,G as k,D as C,ai as fe,E as J,r as N,dr as me,I,ds as Z,dt as he,du as ge,F as pe,z as ve,dv as be,dw as Te,T as Ce,J as ye,a9 as ke,a3 as V,dn as w,v as Se,R as Ae,dx as Be,o as _,f as ee,g as H}from"./index-6OExHM45.js";function Me(){const{$storage:t,$config:e}=z(),o=()=>{var i,y,f,r,m,b,A,B,g,S,u,s,c,h,d;ce().multiTagsCache&&(!t.tags||t.tags.length===0)&&(t.tags=G),t.layout||(t.layout={layout:(i=e==null?void 0:e.Layout)!=null?i:"vertical",theme:(y=e==null?void 0:e.Theme)!=null?y:"light",darkMode:(f=e==null?void 0:e.DarkMode)!=null?f:!1,sidebarStatus:(r=e==null?void 0:e.SidebarStatus)!=null?r:!0,epThemeColor:(m=e==null?void 0:e.EpThemeColor)!=null?m:"#409EFF",themeColor:(b=e==null?void 0:e.Theme)!=null?b:"light",overallStyle:(A=e==null?void 0:e.OverallStyle)!=null?A:"light"}),t.configure||(t.configure={grey:(B=e==null?void 0:e.Grey)!=null?B:!1,weak:(g=e==null?void 0:e.Weak)!=null?g:!1,hideTabs:(S=e==null?void 0:e.HideTabs)!=null?S:!1,hideFooter:(u=e.HideFooter)!=null?u:!0,showLogo:(s=e==null?void 0:e.ShowLogo)!=null?s:!0,showModel:(c=e==null?void 0:e.ShowModel)!=null?c:"smart",multiTagsCache:(h=e==null?void 0:e.MultiTagsCache)!=null?h:!1,stretch:(d=e==null?void 0:e.Stretch)!=null?d:!1})},n=v(()=>t==null?void 0:t.layout.layout),l=v(()=>t.layout);return{layout:n,layoutTheme:l,initStorage:o}}const we=q({id:"pure-app",state:()=>{var t,e,o,n;return{sidebar:{opened:(e=(t=T().getItem(`${k()}layout`))==null?void 0:t.sidebarStatus)!=null?e:C().SidebarStatus,withoutAnimation:!1,isClickCollapse:!1},layout:(n=(o=T().getItem(`${k()}layout`))==null?void 0:o.layout)!=null?n:C().Layout,device:fe()?"mobile":"desktop",viewportSize:{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}}},getters:{getSidebarStatus(t){return t.sidebar.opened},getDevice(t){return t.device},getViewportWidth(t){return t.viewportSize.width},getViewportHeight(t){return t.viewportSize.height}},actions:{TOGGLE_SIDEBAR(t,e){const o=T().getItem(`${k()}layout`);t&&e?(this.sidebar.withoutAnimation=!0,this.sidebar.opened=!0,o.sidebarStatus=!0):!t&&e?(this.sidebar.withoutAnimation=!0,this.sidebar.opened=!1,o.sidebarStatus=!1):!t&&!e&&(this.sidebar.withoutAnimation=!1,this.sidebar.opened=!this.sidebar.opened,this.sidebar.isClickCollapse=!this.sidebar.opened,o.sidebarStatus=this.sidebar.opened),T().setItem(`${k()}layout`,o)},toggleSideBar(t,e){return U(this,null,function*(){yield this.TOGGLE_SIDEBAR(t,e)})},toggleDevice(t){this.device=t},setLayout(t){this.layout=t},setViewportSize(t){this.viewportSize=t},setSortSwap(t){this.sortSwap=t}}});function te(){return we(J)}const xe=q({id:"pure-epTheme",state:()=>{var t,e,o,n;return{epThemeColor:(e=(t=T().getItem(`${k()}layout`))==null?void 0:t.epThemeColor)!=null?e:C().EpThemeColor,epTheme:(n=(o=T().getItem(`${k()}layout`))==null?void 0:o.theme)!=null?n:C().Theme}},getters:{getEpThemeColor(t){return t.epThemeColor},fill(t){return t.epTheme==="light"?"#409eff":"#fff"}},actions:{setEpThemeColor(t){const e=T().getItem(`${k()}layout`);this.epTheme=e==null?void 0:e.theme,this.epThemeColor=t,e&&(e.epThemeColor=t,T().setItem(`${k()}layout`,e))}}});function L(){return xe(J)}const R={outputDir:"",defaultScopeName:"",includeStyleWithColors:[],extract:!0,themeLinkTagId:"theme-link-tag",themeLinkTagInjectTo:"head",removeCssScopeName:!1,customThemeCssFileName:null,arbitraryMode:!1,defaultPrimaryColor:"",customThemeOutputPath:"E:/Workspace/NodeJs/wireguard-dashboard-admin/node_modules/.pnpm/@pureadmin+theme@3.2.0/node_modules/@pureadmin/theme/setCustomTheme.js",styleTagId:"custom-theme-tagid",InjectDefaultStyleTagToHtml:!0,hueDiffControls:{low:0,high:0},multipleScopeVars:[{scopeName:"layout-theme-light",varsContent:`
        $subMenuActiveText: #000000d9 !default;
        $menuBg: #fff !default;
        $menuHover: #f6f6f6 !default;
        $subMenuBg: #fff !default;
        $subMenuActiveBg: #e0ebf6 !default;
        $menuText: rgb(0 0 0 / 60%) !default;
        $sidebarLogo: #fff !default;
        $menuTitleHover: #000 !default;
        $menuActiveBefore: #4091f7 !default;
      `},{scopeName:"layout-theme-default",varsContent:`
        $subMenuActiveText: #fff !default;
        $menuBg: #001529 !default;
        $menuHover: rgb(64 145 247 / 15%) !default;
        $subMenuBg: #0f0303 !default;
        $subMenuActiveBg: #4091f7 !default;
        $menuText: rgb(254 254 254 / 65%) !default;
        $sidebarLogo: #002140 !default;
        $menuTitleHover: #fff !default;
        $menuActiveBefore: #4091f7 !default;
      `},{scopeName:"layout-theme-saucePurple",varsContent:`
        $subMenuActiveText: #fff !default;
        $menuBg: #130824 !default;
        $menuHover: rgb(105 58 201 / 15%) !default;
        $subMenuBg: #000 !default;
        $subMenuActiveBg: #693ac9 !default;
        $menuText: #7a80b4 !default;
        $sidebarLogo: #1f0c38 !default;
        $menuTitleHover: #fff !default;
        $menuActiveBefore: #693ac9 !default;
      `},{scopeName:"layout-theme-pink",varsContent:`
        $subMenuActiveText: #fff !default;
        $menuBg: #28081a !default;
        $menuHover: rgb(216 68 147 / 15%) !default;
        $subMenuBg: #000 !default;
        $subMenuActiveBg: #d84493 !default;
        $menuText: #7a80b4 !default;
        $sidebarLogo: #3f0d29 !default;
        $menuTitleHover: #fff !default;
        $menuActiveBefore: #d84493 !default;
      `},{scopeName:"layout-theme-dusk",varsContent:`
        $subMenuActiveText: #fff !default;
        $menuBg: #2a0608 !default;
        $menuHover: rgb(225 60 57 / 15%) !default;
        $subMenuBg: #000 !default;
        $subMenuActiveBg: #e13c39 !default;
        $menuText: rgb(254 254 254 / 65.1%) !default;
        $sidebarLogo: #42090c !default;
        $menuTitleHover: #fff !default;
        $menuActiveBefore: #e13c39 !default;
      `},{scopeName:"layout-theme-volcano",varsContent:`
        $subMenuActiveText: #fff !default;
        $menuBg: #2b0e05 !default;
        $menuHover: rgb(232 95 51 / 15%) !default;
        $subMenuBg: #0f0603 !default;
        $subMenuActiveBg: #e85f33 !default;
        $menuText: rgb(254 254 254 / 65%) !default;
        $sidebarLogo: #441708 !default;
        $menuTitleHover: #fff !default;
        $menuActiveBefore: #e85f33 !default;
      `},{scopeName:"layout-theme-mingQing",varsContent:`
        $subMenuActiveText: #fff !default;
        $menuBg: #032121 !default;
        $menuHover: rgb(89 191 193 / 15%) !default;
        $subMenuBg: #000 !default;
        $subMenuActiveBg: #59bfc1 !default;
        $menuText: #7a80b4 !default;
        $sidebarLogo: #053434 !default;
        $menuTitleHover: #fff !default;
        $menuActiveBefore: #59bfc1 !default;
      `},{scopeName:"layout-theme-auroraGreen",varsContent:`
        $subMenuActiveText: #fff !default;
        $menuBg: #0b1e15 !default;
        $menuHover: rgb(96 172 128 / 15%) !default;
        $subMenuBg: #000 !default;
        $subMenuActiveBg: #60ac80 !default;
        $menuText: #7a80b4 !default;
        $sidebarLogo: #112f21 !default;
        $menuTitleHover: #fff !default;
        $menuActiveBefore: #60ac80 !default;
      `}]},He="/web/",Ee="assets",oe=t=>{let e=t.replace("#","").match(/../g);for(let o=0;o<3;o++)e[o]=parseInt(e[o],16);return e},ne=(t,e,o)=>{let n=[t.toString(16),e.toString(16),o.toString(16)];for(let l=0;l<3;l++)n[l].length==1&&(n[l]=`0${n[l]}`);return`#${n.join("")}`},Fe=(t,e)=>{let o=oe(t);for(let n=0;n<3;n++)o[n]=Math.floor(o[n]*(1-e));return ne(o[0],o[1],o[2])},Ne=(t,e)=>{let o=oe(t);for(let n=0;n<3;n++)o[n]=Math.floor((255-o[n])*e+o[n]);return ne(o[0],o[1],o[2])},$=t=>`(^${t}\\s+|\\s+${t}\\s+|\\s+${t}$|^${t}$)`,X=({scopeName:t,multipleScopeVars:e})=>{const o=Array.isArray(e)&&e.length?e:R.multipleScopeVars;let n=document.documentElement.className;new RegExp($(t)).test(n)||(o.forEach(l=>{n=n.replace(new RegExp($(l.scopeName),"g"),` ${t} `)}),document.documentElement.className=n.replace(/(^\s+|\s+$)/g,""))},K=({id:t,href:e})=>{const o=document.createElement("link");return o.rel="stylesheet",o.href=e,o.id=t,o},Le=t=>{const e=D({scopeName:"theme-default",customLinkHref:i=>i},t),o=e.themeLinkTagId||R.themeLinkTagId;let n=document.getElementById(o);const l=e.customLinkHref(`${He.replace(/\/$/,"")}${`/${Ee}/${e.scopeName}.css`.replace(/\/+(?=\/)/g,"")}`);if(n){n.id=`${o}_old`;const i=K({id:o,href:l});n.nextSibling?n.parentNode.insertBefore(i,n.nextSibling):n.parentNode.appendChild(i),i.onload=()=>{setTimeout(()=>{n.parentNode.removeChild(n),n=null},60),X(e)};return}n=K({id:o,href:l}),X(e),document[(e.themeLinkTagInjectTo||R.themeLinkTagInjectTo||"").replace("-prepend","")].appendChild(n)};function Ye(){var g,S;const{layoutTheme:t,layout:e}=Me(),o=N([{color:"#ffffff",themeColor:"light"},{color:"#1b2a47",themeColor:"default"},{color:"#722ed1",themeColor:"saucePurple"},{color:"#eb2f96",themeColor:"pink"},{color:"#f5222d",themeColor:"dusk"},{color:"#fa541c",themeColor:"volcano"},{color:"#13c2c2",themeColor:"mingQing"},{color:"#52c41a",themeColor:"auroraGreen"}]),{$storage:n}=z(),l=N((g=n==null?void 0:n.layout)==null?void 0:g.darkMode),i=N((S=n==null?void 0:n.layout)==null?void 0:S.overallStyle),y=document.documentElement;function f(u,s,c){const h=c||document.body;let{className:d}=h;d=d.replace(s,"").trim(),h.className=u?`${d} ${s}`:d}function r(u=(c=>(c=C().Theme)!=null?c:"light")(),s=!0){var d,x;t.value.theme=u,Le({scopeName:`layout-theme-${u}`});const h=n.layout.themeColor;if(n.layout={layout:e.value,theme:u,darkMode:l.value,sidebarStatus:(d=n.layout)==null?void 0:d.sidebarStatus,epThemeColor:(x=n.layout)==null?void 0:x.epThemeColor,themeColor:s?u:h,overallStyle:i.value},u==="default"||u==="light")b(C().EpThemeColor);else{const E=o.value.find(F=>F.themeColor===u);b(E.color)}}function m(u,s,c){document.documentElement.style.setProperty(`--el-color-primary-${u}-${s}`,l.value?Fe(c,s/10):Ne(c,s/10))}const b=u=>{L().setEpThemeColor(u),document.documentElement.style.setProperty("--el-color-primary",u);for(let s=1;s<=2;s++)m("dark",s,u);for(let s=1;s<=9;s++)m("light",s,u)};function A(u){i.value=u,L().epTheme==="light"&&l.value?r("default",!1):r(L().epTheme,!1),l.value?document.documentElement.classList.add("dark"):(n.layout.themeColor==="light"&&r("light",!1),document.documentElement.classList.remove("dark"))}function B(){me(),T().clear();const{Grey:u,Weak:s,MultiTagsCache:c,EpThemeColor:h,Layout:d}=C();te().setLayout(d),b(h),I().multiTagsCacheChange(c),f(u,"html-grey",document.querySelector("html")),f(s,"html-weakness",document.querySelector("html")),Z.push("/login"),I().handleTags("equal",[...G]),he()}return{body:y,dataTheme:l,overallStyle:i,layoutTheme:t,themeColors:o,onReset:B,toggleClass:f,dataThemeChange:A,setEpThemeColor:b,setLayoutThemeColor:r}}const Y=ge(),Re="data:image/jpeg;base64, ",ze="The current routing configuration is incorrect, please check the configuration";function Ge(){var W,P;const t=pe(),e=te(),o=ve().options.routes,{isFullscreen:n,toggle:l}=be(),{wholeMenus:i}=Te(Ce()),y=(P=(W=C())==null?void 0:W.TooltipEffect)!=null?P:"light",f=v(()=>({width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"})),r=v(()=>{var a,p;return V((a=w())==null?void 0:a.avatar)?Re:(p=w())==null?void 0:p.avatar}),m=v(()=>{var a,p,M;return V((a=w())==null?void 0:a.name)?(M=w())==null?void 0:M.account:(p=w())==null?void 0:p.name}),b=v(()=>m.value?{marginRight:"10px"}:""),A=v(()=>!e.getSidebarStatus),B=v(()=>e.getDevice),{$storage:g,$config:S}=z(),u=v(()=>{var a;return(a=g==null?void 0:g.layout)==null?void 0:a.layout}),s=v(()=>S.Title);function c(a){const p=C().Title;p?document.title=`${a.title} | ${p}`:document.title=a.title}function h(){w().logout().then(a=>{a.code===200&&Se("退出登陆成功",{type:"success"})})}function d(){var a;Z.push((a=Ae())==null?void 0:a.path)}function x(){Y.emit("openPanel")}function E(){e.toggleSideBar()}function F(a){a==null||a.handleResize()}function ae(a){var j;if(!a.children)return console.error(ze);const p=/^http(s?):\/\//,M=(j=a.children[0])==null?void 0:j.path;return p.test(M)?a.path+"/"+M:M}function ue(a){i.value.length===0||le(a)||Y.emit("changLayoutRoute",a)}function le(a){return Be.includes(a)}function se(){return new URL("/web/logo.svg",import.meta.url).href}return{route:t,title:s,device:B,layout:u,logout:h,routers:o,$storage:g,isFullscreen:n,Fullscreen:ye,ExitFullscreen:ke,toggle:l,backTopMenu:d,onPanel:x,getDivStyle:f,changeTitle:c,toggleSideBar:E,menuSelect:ue,handleResize:F,resolvePath:ae,getLogo:se,isCollapse:A,pureApp:e,username:m,userAvatar:r,avatarsStyle:b,tooltipEffect:y}}const We={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},Pe=H("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),je=H("path",{d:"M12 18a6 6 0 1 1 0-12 6 6 0 0 1 0 12M11 1h2v3h-2zm0 19h2v3h-2zM3.515 4.929l1.414-1.414L7.05 5.636 5.636 7.05zM16.95 18.364l1.414-1.414 2.121 2.121-1.414 1.414zm2.121-14.85 1.414 1.415-2.121 2.121-1.414-1.414 2.121-2.121zM5.636 16.95l1.414 1.414-2.121 2.121-1.414-1.414zM23 11v2h-3v-2zM4 11v2H1v-2z"},null,-1),Oe=[Pe,je];function Qe(t,e){return _(),ee("svg",We,[...Oe])}const qe={render:Qe},De={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},Ue=H("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),Ie=H("path",{d:"M11.38 2.019a7.5 7.5 0 1 0 10.6 10.6C21.662 17.854 17.316 22 12.001 22 6.477 22 2 17.523 2 12c0-5.315 4.146-9.661 9.38-9.981"},null,-1),Ve=[Ue,Ie];function $e(t,e){return _(),ee("svg",De,[...Ve])}const Je={render:$e};export{Ge as a,Ye as b,te as c,qe as d,Y as e,Je as f,Me as g,Le as t,L as u};
