ray-template/assets/locales-vendor-d4120c33.js
2023-07-05 16:46:26 +08:00

2 lines
9.8 KiB
JavaScript

import{z,u as g,v as b}from"./vendor-6dafcdec.js";import{g as O,s as _}from"./utils-vendor-6e02b5fb.js";const p="modulepreload",y=function(e){return"/ray-template/"+e},f={},d=function(n,r,a){if(!r||r.length===0)return n();const l=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=y(o),o in f)return;f[o]=!0;const t=o.endsWith(".css"),s=t?'[rel="stylesheet"]':"";if(!!a)for(let m=l.length-1;m>=0;m--){const u=l[m];if(u.href===o&&(!t||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${s}`))return;const i=document.createElement("link");if(i.rel=t?"stylesheet":p,t||(i.as="script",i.crossOrigin=""),i.href=o,document.head.appendChild(i),t)return new Promise((m,u)=>{i.addEventListener("load",m),i.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>n())},P=(e,n)=>{const r=e[n];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((a,l)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(l.bind(null,new Error("Unknown variable dynamic import: "+n)))})},C=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],v="zh-CN",le="zh-cn",ae={"zh-CN":"zh-cn","en-US":"en"},ie={setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:5},se={name:"Dashboard",path:"/dashboard"},ce={MENU_COLLAPSED_WIDTH:64,MENU_COLLAPSED_MODE:"width",MENU_COLLAPSED_ICON_SIZE:22,MENU_COLLAPSED_INDENT:24,MENU_ACCORDION:!1},L={signin:"signin",localeLanguage:"localeLanguage",token:"token"},h=(e,n)=>{if(typeof n!="string"||!n.trim())throw new Error("Expected prefix to be a non-empty string");const r={};return Object.keys(e).forEach(a=>{const l=e[a].default;let o=a.replace(`./${n}/`,"").replace(/^\.\//,"");const t=o.lastIndexOf(".");o=o.substring(0,t);const s=o.split("/"),c=s.shift(),i=s.join(".");c&&(i?(_(r,c,r[c]||{}),_(r[c],i,l)):_(r,c,l||{}))}),r},D=async e=>{var r;const n={};for(const a of e){const l=await P(Object.assign({"./lang/en-US.ts":()=>d(()=>Promise.resolve().then(()=>K),void 0),"./lang/zh-CN.ts":()=>d(()=>Promise.resolve().then(()=>re),void 0)}),`./lang/${a.key}.ts`),o=a.key;o&&(n[o]=((r=l==null?void 0:l.default)==null?void 0:r.message)??{})}return n},me=e=>{switch(e){case"zh-CN":return{locale:z,dateLocal:g};case"en-US":return{locale:null,dateLocal:null};default:return{locale:z,dateLocal:g}}},T=()=>O(L.localeLanguage,"localStorage",v);let S;const E=async()=>{const e=T(),n=await D(C);return b({legacy:!1,locale:e,messages:n,sync:!0,missingWarn:!1,silentFallbackWarn:!0})},ue=async e=>{const n=await E();S=n,e.use(n)},j=(e,n)=>!e||n.startsWith(e)?n:`${e}.${n}`,_e=e=>{const{t:n,locale:r,...a}=S.global;return{...a,t:(t,...s)=>t?!t.includes(".")&&!e?t:n(j(e,t),...s):"",locale:t=>{const s=r;s.value=t}}},ze=e=>e,N={Title:e=>{const{normalize:n}=e;return n(["Configuration"])},ThemeOptions:{Title:e=>{const{normalize:n}=e;return n(["Theme"])},Dark:e=>{const{normalize:n}=e;return n(["Dark"])},Light:e=>{const{normalize:n}=e;return n(["Light"])},PrimaryColorConfig:e=>{const{normalize:n}=e;return n(["Primary Color"])}},InterfaceDisplay:e=>{const{normalize:n}=e;return n(["Display"])}},R=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"})),A={Reload:e=>{const{normalize:n}=e;return n(["Reload Current Page"])},Lock:e=>{const{normalize:n}=e;return n(["Lock"])},Setting:e=>{const{normalize:n}=e;return n(["Setting"])},Github:e=>{const{normalize:n}=e;return n(["Github"])},FullScreen:e=>{const{normalize:n}=e;return n(["Full Screen"])},CancelFullScreen:e=>{const{normalize:n}=e;return n(["Cancel Full Screen"])},Search:e=>{const{normalize:n}=e;return n(["Search"])}},M=Object.freeze(Object.defineProperty({__proto__:null,default:A},Symbol.toStringTag,{value:"Module"})),I={Dashboard:e=>{const{normalize:n}=e;return n(["Home"])},Rely:e=>{const{normalize:n}=e;return n(["Rely"])},RelyAbout:e=>{const{normalize:n}=e;return n(["Rely About"])},Error:e=>{const{normalize:n}=e;return n(["Error Page"])},Echart:e=>{const{normalize:n}=e;return n(["Chart"])},scrollReveal:e=>{const{normalize:n}=e;return n(["Scroll Reveal"])},Axios:e=>{const{normalize:n}=e;return n(["Axios Request"])},Table:e=>{const{normalize:n}=e;return n(["Table"])},MultiMenu:e=>{const{normalize:n}=e;return n(["MultiMenu(catch)"])},Doc:e=>{const{normalize:n}=e;return n(["Doc"])},DocLocal:e=>{const{normalize:n}=e;return n(["Doc (China)"])},Office:e=>{const{normalize:n}=e;return n(["Office"])},Office_Document:e=>{const{normalize:n}=e;return n(["Document"])},Office_Presentation:e=>{const{normalize:n}=e;return n(["Presentation"])},Office_Spreadsheet:e=>{const{normalize:n}=e;return n(["Spreadsheet"])},CalculatePrecision:e=>{const{normalize:n}=e;return n(["Precision"])},Directive:e=>{const{normalize:n}=e;return n(["Directive"])},RouterDemo:e=>{const{normalize:n}=e;return n(["Same Level Router Demo"])}},U=Object.freeze(Object.defineProperty({__proto__:null,default:I},Symbol.toStringTag,{value:"Module"})),$={Title:e=>{const{normalize:n}=e;return n(["Configuration"])},ThemeOptions:{Title:e=>{const{normalize:n}=e;return n(["Theme"])},Dark:e=>{const{normalize:n}=e;return n(["Dark"])},Light:e=>{const{normalize:n}=e;return n(["Light"])},PrimaryColorConfig:e=>{const{normalize:n}=e;return n(["Primary Color"])}},InterfaceDisplay:e=>{const{normalize:n}=e;return n(["Interface Display"])}},k=Object.freeze(Object.defineProperty({__proto__:null,default:$},Symbol.toStringTag,{value:"Module"})),w={Register:e=>{const{normalize:n}=e;return n(["Register"])},Signin:e=>{const{normalize:n}=e;return n(["Signin"])},QRCodeSignin:e=>{const{normalize:n}=e;return n(["QRCode Signin"])},NamePlaceholder:e=>{const{normalize:n}=e;return n(["please enter user name"])},PasswordPlaceholder:e=>{const{normalize:n}=e;return n(["please enter password"])},Login:e=>{const{normalize:n}=e;return n(["Login"])},Name:e=>{const{normalize:n}=e;return n(["User Name"])},Password:e=>{const{normalize:n}=e;return n(["User Password"])}},F=Object.freeze(Object.defineProperty({__proto__:null,default:w},Symbol.toStringTag,{value:"Module"})),x=Object.assign({"./en-US/headerSettingOptions.json":R,"./en-US/headerTooltip.json":M,"./en-US/menu.json":U,"./en-US/setting.json":k,"./en-US/views/login/index.json":F}),G={message:{...h(x,"en-US")}},K=Object.freeze(Object.defineProperty({__proto__:null,default:G},Symbol.toStringTag,{value:"Module"})),W={Title:e=>{const{normalize:n}=e;return n(["项目配置"])},ThemeOptions:{Title:e=>{const{normalize:n}=e;return n(["主题"])},Dark:e=>{const{normalize:n}=e;return n(["暗色"])},Light:e=>{const{normalize:n}=e;return n(["明亮"])},PrimaryColorConfig:e=>{const{normalize:n}=e;return n(["主题色"])}},InterfaceDisplay:e=>{const{normalize:n}=e;return n(["界面显示"])}},q=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"})),H={Reload:e=>{const{normalize:n}=e;return n(["刷新当前页面"])},Lock:e=>{const{normalize:n}=e;return n(["锁屏"])},Setting:e=>{const{normalize:n}=e;return n(["设置"])},Github:e=>{const{normalize:n}=e;return n(["Github"])},FullScreen:e=>{const{normalize:n}=e;return n(["全屏"])},CancelFullScreen:e=>{const{normalize:n}=e;return n(["退出全屏"])},Search:e=>{const{normalize:n}=e;return n(["搜索"])}},Y=Object.freeze(Object.defineProperty({__proto__:null,default:H},Symbol.toStringTag,{value:"Module"})),B={Dashboard:e=>{const{normalize:n}=e;return n(["首页"])},Rely:e=>{const{normalize:n}=e;return n(["依赖项"])},RelyAbout:e=>{const{normalize:n}=e;return n(["关于"])},Error:e=>{const{normalize:n}=e;return n(["错误页"])},Echart:e=>{const{normalize:n}=e;return n(["可视化"])},scrollReveal:e=>{const{normalize:n}=e;return n(["滚动动画"])},Axios:e=>{const{normalize:n}=e;return n(["请求"])},Table:e=>{const{normalize:n}=e;return n(["表格"])},MultiMenu:e=>{const{normalize:n}=e;return n(["多级菜单(缓存)"])},Doc:e=>{const{normalize:n}=e;return n(["文档"])},DocLocal:e=>{const{normalize:n}=e;return n(["文档 (国内地址)"])},Office:e=>{const{normalize:n}=e;return n(["办公"])},Office_Document:e=>{const{normalize:n}=e;return n(["文档"])},Office_Presentation:e=>{const{normalize:n}=e;return n(["演示"])},Office_Spreadsheet:e=>{const{normalize:n}=e;return n(["表格"])},CalculatePrecision:e=>{const{normalize:n}=e;return n(["数字精度"])},Directive:e=>{const{normalize:n}=e;return n(["指令"])},RouterDemo:e=>{const{normalize:n}=e;return n(["页面详情模式"])}},Q=Object.freeze(Object.defineProperty({__proto__:null,default:B},Symbol.toStringTag,{value:"Module"})),V={Title:e=>{const{normalize:n}=e;return n(["项目配置"])},ThemeOptions:{Title:e=>{const{normalize:n}=e;return n(["主题"])},Dark:e=>{const{normalize:n}=e;return n(["暗色"])},Light:e=>{const{normalize:n}=e;return n(["明亮"])},PrimaryColorConfig:e=>{const{normalize:n}=e;return n(["主题色"])}},InterfaceDisplay:e=>{const{normalize:n}=e;return n(["界面显示"])}},J=Object.freeze(Object.defineProperty({__proto__:null,default:V},Symbol.toStringTag,{value:"Module"})),Z={Register:e=>{const{normalize:n}=e;return n(["注册"])},Signin:e=>{const{normalize:n}=e;return n(["登陆"])},QRCodeSignin:e=>{const{normalize:n}=e;return n(["扫码登陆"])},NamePlaceholder:e=>{const{normalize:n}=e;return n(["请输入用户名"])},PasswordPlaceholder:e=>{const{normalize:n}=e;return n(["请输入密码"])},Login:e=>{const{normalize:n}=e;return n(["登 陆"])},Name:e=>{const{normalize:n}=e;return n(["用户名"])},Password:e=>{const{normalize:n}=e;return n(["密码"])}},X=Object.freeze(Object.defineProperty({__proto__:null,default:Z},Symbol.toStringTag,{value:"Module"})),ee=Object.assign({"./zh-CN/headerSettingOptions.json":q,"./zh-CN/headerTooltip.json":Y,"./zh-CN/menu.json":Q,"./zh-CN/setting.json":J,"./zh-CN/views/login/index.json":X}),ne={message:{...h(ee,"zh-CN")}},re=Object.freeze(Object.defineProperty({__proto__:null,default:ne},Symbol.toStringTag,{value:"Module"}));export{L as A,le as D,C as L,se as R,d as _,ae as a,ce as b,ie as c,T as g,me as n,ue as s,ze as t,_e as u};