import{a as H,u as v}from"./useNav.afbe69e0.js";import{ad as E,ae as S,af as N,ag as w,S as M,e as p,ah as I,a5 as P,u as L,O as F,x as j,p as y,g as D,ai as z}from"./index.4d3e3847.js";function R(a){return function(e,n,t){var u=Object(e);if(!E(e)){var o=S(n);e=N(e),n=function(s){return o(u[s],s,u)}}var f=a(e,n,t);return f>-1?u[o?e[f]:f]:void 0}}var O=R(w);const G=O;function W(){const{$storage:a,$config:e}=M(),n=()=>{var o,f,s,d,m,c,l,r,i,h,g,T,b;I().multiTagsCache&&(!a.tags||a.tags.length===0)&&(a.tags=P),a.locale||(a.locale={locale:(o=e==null?void 0:e.Locale)!=null?o:"zh"},L().locale.value=(f=e==null?void 0:e.Locale)!=null?f:"zh"),a.layout||(a.layout={layout:(s=e==null?void 0:e.Layout)!=null?s:"vertical",theme:(d=e==null?void 0:e.Theme)!=null?d:"default",darkMode:(m=e==null?void 0:e.DarkMode)!=null?m:!1,sidebarStatus:(c=e==null?void 0:e.SidebarStatus)!=null?c:!0,epThemeColor:(l=e==null?void 0:e.EpThemeColor)!=null?l:"#409EFF"}),a.configure||(a.configure={grey:(r=e==null?void 0:e.Grey)!=null?r:!1,weak:(i=e==null?void 0:e.Weak)!=null?i:!1,hideTabs:(h=e==null?void 0:e.HideTabs)!=null?h:!1,showLogo:(g=e==null?void 0:e.ShowLogo)!=null?g:!0,showModel:(T=e==null?void 0:e.ShowModel)!=null?T:"smart",multiTagsCache:(b=e==null?void 0:e.MultiTagsCache)!=null?b:!1})},t=p(()=>a==null?void 0:a.layout.layout),u=p(()=>a.layout);return{layout:t,layoutTheme:u,initStorage:n}}function X(a){const{$storage:e,changeTitle:n,changeWangeditorLanguage:t,handleResize:u}=H(),{locale:o,t:f}=L(),s=F();function d(){e.locale={locale:"zh"},o.value="zh",a&&u(a.value)}function m(){e.locale={locale:"en"},o.value="en",a&&u(a.value)}return j(()=>o.value,()=>{n(s.meta),o.value==="en"?t(o.value):t("zh-CN")}),{t:f,route:s,locale:o,translationCh:d,translationEn:m}}const $={outputDir:"",defaultScopeName:"",includeStyleWithColors:[],extract:!0,themeLinkTagId:"head",themeLinkTagInjectTo:"head",removeCssScopeName:!1,customThemeCssFileName:null,arbitraryMode:!1,defaultPrimaryColor:"",customThemeOutputPath:"D:/work/live-telecast-vue3-ui-pc/node_modules/.pnpm/@pureadmin+theme@2.4.0/node_modules/@pureadmin/theme/setCustomTheme.js",styleTagId:"custom-theme-tagid",InjectDefaultStyleTagToHtml:!0,hueDiffControls:{low:0,high:0},multipleScopeVars:[{scopeName:"layout-theme-default",varsContent:`
        $vxe-primary-color: #409EFF !default;
        $subMenuActiveText: #fff !default;
        $menuBg: #001529 !default;
        $menuHover: #4091f7 !default;
        $subMenuBg: #0f0303 !default;
        $subMenuActiveBg: #4091f7 !default;
        $navTextColor: #fff !default;
        $menuText: rgb(254 254 254 / 65%) !default;
        $sidebarLogo: #002140 !default;
        $menuTitleHover: #fff !default;
        $menuActiveBefore: #4091f7 !default;
      `},{scopeName:"layout-theme-light",varsContent:`
        $vxe-primary-color: #409EFF !default;
        $subMenuActiveText: #409eff !default;
        $menuBg: #fff !default;
        $menuHover: #e0ebf6 !default;
        $subMenuBg: #fff !default;
        $subMenuActiveBg: #e0ebf6 !default;
        $navTextColor: #7a80b4 !default;
        $menuText: #7a80b4 !default;
        $sidebarLogo: #fff !default;
        $menuTitleHover: #000 !default;
        $menuActiveBefore: #4091f7 !default;
      `},{scopeName:"layout-theme-dusk",varsContent:`
        $vxe-primary-color: #f5222d !default;
        $subMenuActiveText: #fff !default;
        $menuBg: #2a0608 !default;
        $menuHover: #e13c39 !default;
        $subMenuBg: #000 !default;
        $subMenuActiveBg: #e13c39 !default;
        $navTextColor: #red !default;
        $menuText: rgb(254 254 254 / 65.1%) !default;
        $sidebarLogo: #42090c !default;
        $menuTitleHover: #fff !default;
        $menuActiveBefore: #e13c39 !default;
      `},{scopeName:"layout-theme-volcano",varsContent:`
        $vxe-primary-color: #fa541c !default;
        $subMenuActiveText: #fff !default;
        $menuBg: #2b0e05 !default;
        $menuHover: #e85f33 !default;
        $subMenuBg: #0f0603 !default;
        $subMenuActiveBg: #e85f33 !default;
        $navTextColor: #fff !default;
        $menuText: rgb(254 254 254 / 65%) !default;
        $sidebarLogo: #441708 !default;
        $menuTitleHover: #fff !default;
        $menuActiveBefore: #e85f33 !default;
      `},{scopeName:"layout-theme-yellow",varsContent:`
        $vxe-primary-color: #fadb14 !default;
        $subMenuActiveText: #d25f00 !default;
        $menuBg: #2b2503 !default;
        $menuHover: #f6da4d !default;
        $subMenuBg: #0f0603 !default;
        $subMenuActiveBg: #f6da4d !default;
        $navTextColor: #fff !default;
        $menuText: rgb(254 254 254 / 65%) !default;
        $sidebarLogo: #443b05 !default;
        $menuTitleHover: #fff !default;
        $menuActiveBefore: #f6da4d !default;
      `},{scopeName:"layout-theme-mingQing",varsContent:`
        $vxe-primary-color: #13c2c2 !default;
        $subMenuActiveText: #fff !default;
        $menuBg: #032121 !default;
        $menuHover: #59bfc1 !default;
        $subMenuBg: #000 !default;
        $subMenuActiveBg: #59bfc1 !default;
        $navTextColor: #7a80b4 !default;
        $menuText: #7a80b4 !default;
        $sidebarLogo: #053434 !default;
        $menuTitleHover: #fff !default;
        $menuActiveBefore: #59bfc1 !default;
      `},{scopeName:"layout-theme-auroraGreen",varsContent:`
        $vxe-primary-color: #52c41a !default;
        $subMenuActiveText: #fff !default;
        $menuBg: #0b1e15 !default;
        $menuHover: #60ac80 !default;
        $subMenuBg: #000 !default;
        $subMenuActiveBg: #60ac80 !default;
        $navTextColor: #7a80b4 !default;
        $menuText: #7a80b4 !default;
        $sidebarLogo: #112f21 !default;
        $menuTitleHover: #fff !default;
        $menuActiveBefore: #60ac80 !default;
      `},{scopeName:"layout-theme-pink",varsContent:`
        $vxe-primary-color: #eb2f96 !default;
        $subMenuActiveText: #fff !default;
        $menuBg: #28081a !default;
        $menuHover: #d84493 !default;
        $subMenuBg: #000 !default;
        $subMenuActiveBg: #d84493 !default;
        $navTextColor: #7a80b4 !default;
        $menuText: #7a80b4 !default;
        $sidebarLogo: #3f0d29 !default;
        $menuTitleHover: #fff !default;
        $menuActiveBefore: #d84493 !default;
      `},{scopeName:"layout-theme-saucePurple",varsContent:`
        $vxe-primary-color: #722ed1 !default;
        $subMenuActiveText: #fff !default;
        $menuBg: #130824 !default;
        $menuHover: #693ac9 !default;
        $subMenuBg: #000 !default;
        $subMenuActiveBg: #693ac9 !default;
        $navTextColor: #7a80b4 !default;
        $menuText: #7a80b4 !default;
        $sidebarLogo: #1f0c38 !default;
        $menuTitleHover: #fff !default;
        $menuActiveBefore: #693ac9 !default;
      `}]},_="/",Q="assets";function k(a){let e=a.replace("#","").match(/../g);for(let n=0;n<3;n++)e[n]=parseInt(e[n],16);return e}function A(a,e,n){let t=[a.toString(16),e.toString(16),n.toString(16)];for(let u=0;u<3;u++)t[u].length==1&&(t[u]=`0${t[u]}`);return`#${t.join("")}`}function V(a,e){let n=k(a);for(let t=0;t<3;t++)n[t]=Math.floor(n[t]*(1-e));return A(n[0],n[1],n[2])}function q(a,e){let n=k(a);for(let t=0;t<3;t++)n[t]=Math.floor((255-n[t])*e+n[t]);return A(n[0],n[1],n[2])}function C(a){return`(^${a}\\s+|\\s+${a}\\s+|\\s+${a}$|^${a}$)`}function x({scopeName:a,multipleScopeVars:e}){const n=Array.isArray(e)&&e.length?e:$.multipleScopeVars;let t=document.documentElement.className;new RegExp(C(a)).test(t)||(n.forEach(u=>{t=t.replace(new RegExp(C(u.scopeName),"g"),` ${a} `)}),document.documentElement.className=t.replace(/(^\s+|\s+$)/g,""))}function B({id:a,href:e}){const n=document.createElement("link");return n.rel="stylesheet",n.href=e,n.id=a,n}function J(a){const e={scopeName:"theme-default",customLinkHref:o=>o,...a},n=e.themeLinkTagId||$.themeLinkTagId;let t=document.getElementById(n);const u=e.customLinkHref(`/${_}/${Q}/${e.scopeName}.css`.replace(/\/+(?=\/)/g,""));if(t){t.id=`${n}_old`;const o=B({id:n,href:u});t.nextSibling?t.parentNode.insertBefore(o,t.nextSibling):t.parentNode.appendChild(o),o.onload=()=>{setTimeout(()=>{t.parentNode.removeChild(t),t=null},60),x(e)};return}t=B({id:n,href:u}),x(e),document[(e.themeLinkTagInjectTo||$.themeLinkTagInjectTo||"").replace("-prepend","")].appendChild(t)}function Y(){var c;const{layoutTheme:a,layout:e}=W(),n=y([{color:"#1b2a47",themeColor:"default"},{color:"#ffffff",themeColor:"light"},{color:"#f5222d",themeColor:"dusk"},{color:"#fa541c",themeColor:"volcano"},{color:"#fadb14",themeColor:"yellow"},{color:"#13c2c2",themeColor:"mingQing"},{color:"#52c41a",themeColor:"auroraGreen"},{color:"#eb2f96",themeColor:"pink"},{color:"#722ed1",themeColor:"saucePurple"}]),{$storage:t}=M(),u=y((c=t==null?void 0:t.layout)==null?void 0:c.darkMode),o=document.documentElement;function f(l="default"){var r,i;if(a.value.theme=l,J({scopeName:`layout-theme-${l}`}),t.layout={layout:e.value,theme:l,darkMode:u.value,sidebarStatus:(r=t.layout)==null?void 0:r.sidebarStatus,epThemeColor:(i=t.layout)==null?void 0:i.epThemeColor},l==="default"||l==="light")d(D().EpThemeColor);else{const h=G(n.value,{themeColor:l});d(h.color)}}const s=l=>new z(l).shade(10).toString(),d=l=>{v().setEpThemeColor(l),o.style.setProperty("--el-color-primary-active",s(l)),document.documentElement.style.setProperty("--el-color-primary",l);for(let r=1;r<=9;r++)document.documentElement.style.setProperty(`--el-color-primary-light-${r}`,q(l,r/10));for(let r=1;r<=2;r++)document.documentElement.style.setProperty(`--el-color-primary-dark-${r}`,V(l,r/10))};function m(){v().epTheme==="light"&&u.value?f("default"):f(v().epTheme),u.value?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")}return{body:o,dataTheme:u,layoutTheme:a,themeColors:n,dataThemeChange:m,setEpThemeColor:d,setLayoutThemeColor:f}}export{Y as a,W as b,J as t,X as u};
