vue-pure-admin/static/js/dark-BwlnWo3j.js

2 lines
4.7 KiB
JavaScript

import{ag as K,gk as O,gl as Y,a7 as q,ax as x,p as a,a_ as T,gm as l,gb as G,f_ as J,g7 as Q,aa as y,gg as C,g3 as W,gn as X,R as tt,ac as et,n as nt,Y as ot,f as w,k as z,g as i}from"./index-cKOnyEGi.js";import{e as H}from"./mitt-E5P-NQ8u.js";import{u as at}from"./user-DNtD0Fqa.js";import{u as rt}from"./app-COTWeksR.js";import{u as st}from"./epTheme-IwZz68nE.js";const Mt={width:24,height:24,body:'<path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16ZM11 7h2v2h-2V7Zm0 4h2v6h-2v-6Z"/>'},lt="The current routing configuration is incorrect, please check the configuration";function it(){var M,k;const o=rt(),n=K().options.routes,{isFullscreen:f,toggle:u}=O(),{wholeMenus:r}=Y(q()),m=(k=(M=x())==null?void 0:M.TooltipEffect)!=null?k:"light",c=a(()=>({width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"})),v=a(()=>{var t,e;return T((t=l())==null?void 0:t.avatar)?at:(e=l())==null?void 0:e.avatar}),h=a(()=>{var t,e,s;return T((t=l())==null?void 0:t.nickname)?(e=l())==null?void 0:e.username:(s=l())==null?void 0:s.nickname}),g=a(()=>(t,e)=>({background:t===e?st().epThemeColor:"",color:t===e?"#f4f4f5":"#000"})),d=a(()=>(t,e)=>t===e?"":"dark:hover:!text-primary"),$=a(()=>h.value?{marginRight:"10px"}:""),b=a(()=>!o.getSidebarStatus),B=a(()=>o.getDevice),{$storage:p,$config:A}=G(),I=a(()=>{var t;return(t=p==null?void 0:p.layout)==null?void 0:t.layout}),R=a(()=>A.Title);function _(t){const e=x().Title;e?document.title=`${y(t.title)} | ${e}`:document.title=y(t.title)}function E(){l().logOut()}function L(){var t;C.push((t=W())==null?void 0:t.path)}function P(){H.emit("openPanel")}function D(){C.push({name:"AccountSettings"})}function F(){o.toggleSideBar()}function Z(t){t==null||t.handleResize()}function V(t){var S;if(!t.children)return console.error(lt);const e=/^http(s?):\/\//,s=(S=t.children[0])==null?void 0:S.path;return e.test(s)?t.path+"/"+s:s}function j(t){r.value.length===0||N(t)||H.emit("changLayoutRoute",t)}function N(t){return X.includes(t)}function U(){return new URL("/vue-pure-admin/logo.svg",import.meta.url).href}return{title:R,device:B,layout:I,logout:E,routers:n,$storage:p,isFullscreen:f,Fullscreen:J,ExitFullscreen:Q,toggle:u,backTopMenu:L,onPanel:P,getDivStyle:c,changeTitle:_,toggleSideBar:F,menuSelect:j,handleResize:Z,resolvePath:V,getLogo:U,isCollapse:b,pureApp:o,username:h,userAvatar:v,avatarsStyle:$,tooltipEffect:m,toAccountSettings:D,getDropdownItemStyle:g,getDropdownItemClass:d}}function kt(o){const{$storage:n,changeTitle:f,handleResize:u}=it(),{locale:r,t:m}=tt(),c=et();function v(){n.locale={locale:"zh"},r.value="zh",o&&u(o.value)}function h(){n.locale={locale:"en"},r.value="en",o&&u(o.value)}return nt(()=>r.value,()=>{f(c.meta)}),ot(()=>{var g,d;r.value=(d=(g=n.locale)==null?void 0:g.locale)!=null?d:"zh"}),{t:m,route:c,locale:r,translationCh:v,translationEn:h}}const ut={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",class:"globalization",viewBox:"0 0 512 512"};function ct(o,n){return w(),z("svg",ut,n[0]||(n[0]=[i("path",{fill:"currentColor",d:"m478.33 433.6-90-218a22 22 0 0 0-40.67 0l-90 218a22 22 0 1 0 40.67 16.79L316.66 406h102.67l18.33 44.39A22 22 0 0 0 458 464a22 22 0 0 0 20.32-30.4zM334.83 362 368 281.65 401.17 362zm-66.99-19.08a22 22 0 0 0-4.89-30.7c-.2-.15-15-11.13-36.49-34.73 39.65-53.68 62.11-114.75 71.27-143.49H330a22 22 0 0 0 0-44H214V70a22 22 0 0 0-44 0v20H54a22 22 0 0 0 0 44h197.25c-9.52 26.95-27.05 69.5-53.79 108.36-31.41-41.68-43.08-68.65-43.17-68.87a22 22 0 0 0-40.58 17c.58 1.38 14.55 34.23 52.86 83.93.92 1.19 1.83 2.35 2.74 3.51-39.24 44.35-77.74 71.86-93.85 80.74a22 22 0 1 0 21.07 38.63c2.16-1.18 48.6-26.89 101.63-85.59 22.52 24.08 38 35.44 38.93 36.1a22 22 0 0 0 30.75-4.9z"},null,-1)]))}const St={render:ct},ht={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"};function gt(o,n){return w(),z("svg",ht,n[0]||(n[0]=[i("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),i("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)]))}const xt={render:gt},dt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"};function pt(o,n){return w(),z("svg",dt,n[0]||(n[0]=[i("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),i("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)]))}const Tt={render:pt};export{kt as a,xt as b,Tt as c,Mt as d,St as g,it as u};