ray-template/js/hooks-DNoo5Jj5.js

13 lines
110 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/en-US-D1T6JeAd.js","js/dayjs@1.11.10-C8LoRVP6.js","js/call-bind@1.0.7-Cpj98o6Y.js","js/print-js@1.6.0-BdoEj60G.js","js/vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.js","js/@vue_reactivity@3.5.12-Bs6EYLxJ.js","js/@vue_shared@3.5.12--5_uv9t5.js","js/@vue_runtime-core@3.5.12-Ds-HrVrM.js","js/lodash@4.17.21-Cw59kuJw.js","js/js-cookie@3.0.5-Z_8Sd105.js","js/screenfull@5.2.0-DmMZCkhi.js","js/jsbarcode@3.11.6-DGNGFp02.js","js/currency.js@2.0.4-9OAR_aOO.js","js/lodash-es@4.17.21-CeZG2a4n.js","js/naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js","js/date-fns@3.6.0-q9PkOyxq.js","js/seemly@0.3.8-DjGKl9dV.js","js/vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js","js/evtd@0.2.4-CI_DDEu_.js","js/@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js","js/vooks@0.2.12_vue@3.5.12-CeQQlSXI.js","js/vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js","js/@juggle_resize-observer@3.4.0-C8OzoCMD.js","js/css-render@0.15.14-C5toWlUr.js","js/@emotion_hash@0.8.0-WldOFDRm.js","js/@vue_runtime-dom@3.5.12-ewSD1rNh.js","js/treemate@0.3.11-DKekKYbv.js","js/date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js","js/async-validator@4.2.5-DKvM95Vc.js","js/@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js","js/@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js","js/@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js","js/utils-DewQlJ2W.js","js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js","js/destr@2.0.3-CVtkxrq9.js","js/deep-pick-omit@1.2.1-CegYQlcN.js","js/pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js","js/vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js","js/html-to-image@1.11.11-BOFdlgi9.js","js/vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js","js/vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js","js/@intlify_shared@9.13.1-BxU0OzX2.js","js/@intlify_core-base@9.13.1-C6DqbPB6.js","js/@intlify_message-compiler@9.13.1-GrLDMuy_.js","js/echarts@5.5.0-CezqL3m-.js","js/zrender@5.5.0-DW8ownf1.js","js/tslib@2.3.0-BDyQ-Jie.js","js/interactjs@1.10.26-DZL_TZzP.js","js/zh-CN-B5CyUpxI.js","js/index-Drj3PGgk.js","js/index-CT0XK3_m.js","css/index-D_4DGt8i.css","js/index-EwsxEsV-.js","js/instance-CZSdczlG.js","js/axios@1.7.5-C8DqakIB.js","css/index-QAd2IBUs.css","js/BarcodeDemo-jWbBfNPc.js","js/index-b8T1nLRq.js","js/index-D1JklQAF.js","js/index-Ov7I6uVL.js","js/index-Dx_gm2nu.js","css/index-DHYYVpM7.css","js/index-Dor1-zOS.js","js/index-BIEmcx8R.js","js/index-D1ZCvgoG.js","js/index-CtH5AG_t.js","js/index-BuRzBDbW.js","js/index-DSsu4ch3.js","js/index-D03MkEFA.js","js/index-C4S3Jatz.js","js/index-CrzR9VpM.js","js/vue3-next-qrcode@2.0.10_typescript@5.2.2-BJQJW2Mf.js","css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css","js/ray-dCjhX_JK.js","js/index-D1ed38ZE.js","css/index-B6yUFiKH.css","js/index-CZrqUJff.js","js/index-BaTrdXhk.js","js/index-B4VbZD3l.js","css/index-Dig957GB.css","js/index-D2Sm3Md2.js","js/index-DbfJADJ4.js","css/index-Eq1L-L2-.css","js/TablePro-DDhVUTGT.js","js/mockjs@1.1.0-CxlURkif.js","js/index-EwbgOaHC.js","js/index-nJFSuG-j.js","js/index-BVKRM6-W.js","css/index-74sXJ5VP.css","js/index-D1ThNEs9.js","css/index-b1h4j9PV.css"])))=>i.map(i=>d[i]);
var Qn=Object.defineProperty;var eo=(e,n,t)=>n in e?Qn(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var Vt=(e,n,t)=>eo(e,typeof n!="symbol"?n+"":n,t);import{s as mt,c as Xe,t as Et,i as ln,p as Fe,o as ot,f as to}from"./lodash-es@4.17.21-CeZG2a4n.js";import{z as Nt,d as Ut,f as no,g as oo,N as at,a as ao,b as lo,c as D,e as lt,m as ro,h as rn,u as so,S as zt,i as io,j as ke,k as uo,l as sn,n as Be,o as co,p as po,q as de,t as mo,r as fo,s as un,v as go,w as cn,x as Je,y as ho,A as dn,B as vo,C as yo,D as bo,E as ne,F as So,G as $t,H as I,I as Q,J as K,K as _o,L as pn,M as mn,O as Z,P as wo,Q as Co,R as Ke,T as To,U as Oo,V as ko,W as Ao,X as Ro,Y as fn,Z as Po,_ as Kt,$ as xo}from"./naive-ui@2.40.1_vue@3.5.12-DtgApL3K.js";import{o as Eo,u as je,a as zo,b as Mo,c as gn,d as ft,e as Mt,f as Io}from"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import{k as M,l as Te,e as le,n as Lo,x as Re,a as hn,s as Do,u as oe}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{n as X,f as fe,l as x,b as r,m as V,p as ge,q as pe,j as C,w as Pe,t as Fo,k as Ve,v as vn,h as rt,i as xe,x as yn,F as bn,y as Bo,z as Se,A as jo,C as gt,D as Vo,E as Ie,S as No,K as Uo,G as Wt,H as $o,I as Y}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{d as se}from"./dayjs@1.11.10-C8LoRVP6.js";import{p as Ko}from"./print-js@1.6.0-BdoEj60G.js";import{u as Sn}from"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{b as Wo}from"./jsbarcode@3.11.6-DGNGFp02.js";import{g as Ze,i as me,s as It,a as At,c as qo,u as _n,b as De,l as wn,d as Cn,e as Go,f as N,r as ye,h as B,j as Ho,k as Qe,q as et,m as Tn,p as On,n as Lt,o as qt,t as _e,v as Yo,w as Xo,x as Jo,y as Zo,z as Qo,A as ue}from"./utils-DewQlJ2W.js";import{s as ea}from"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import{d as st,c as ta}from"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import{t as na,a as oa,b as aa,c as la,d as ra,e as sa}from"./html-to-image@1.11.11-BOFdlgi9.js";import{u as it,a as ia,o as ua,c as ca,b as da}from"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import{c as pa}from"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import{r as ma,u as Le,i as fa,a as ga,b as ha,c as va,d as ya,e as ba,f as Sa,g as _a,h as wa,j as Ca,k as Ta,l as Oa,m as ka,n as Aa,o as Ra,p as Pa,q as xa,s as Ea}from"./echarts@5.5.0-CezqL3m-.js";import{g as za}from"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import{T as Ma,a as Ia}from"./@vue_runtime-dom@3.5.12-ewSD1rNh.js";import{i as Gt}from"./interactjs@1.10.26-DZL_TZzP.js";const Hs=(e,n)=>{if(typeof n!="string"||!n.trim())throw new TypeError("Expected prefix to be a non-empty string");const t={};return Object.keys(e).forEach(o=>{const l=e[o].default;let a=o.replace(`./${n}/`,"").replace(/^\.\//,"");const s=a.lastIndexOf(".");a=a.substring(0,s);const i=a.split("/"),u=i.shift(),d=i.join(".");u&&(d?(mt(t,u,t[u]||{}),mt(t[u],d,l)):mt(t,u,l||{}))}),t},La="modulepreload",Da=function(e){return"/ray-template/"+e},Ht={},L=function(n,t,o){let l=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));l=Promise.all(t.map(i=>{if(i=Da(i),i in Ht)return;Ht[i]=!0;const u=i.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${d}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":La,u||(p.as="script"),p.crossOrigin="",p.href=i,s&&p.setAttribute("nonce",s),document.head.appendChild(p),u)return new Promise((h,S)=>{p.addEventListener("load",h),p.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${i}`)))})}))}return l.then(()=>n()).catch(a=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a})},Fa=(e,n,t)=>{const o=e[n];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((l,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+n+(n.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})},Ba=async e=>{var t;const n={};for(const o of e){const l=await Fa(Object.assign({"../lang/en-US.ts":()=>L(()=>import("./en-US-D1T6JeAd.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),"../lang/zh-CN.ts":()=>L(()=>import("./zh-CN-B5CyUpxI.js"),__vite__mapDeps([48,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47]))}),`../lang/${o.key}.ts`,3),a=o.key;a&&(n[a]=((t=l==null?void 0:l.default)==null?void 0:t.message)??{})}return n},Ys=e=>{switch(e){case"zh-CN":return{locale:Nt,dateLocal:Ut};case"en-US":return{locale:null,dateLocal:null};default:return{locale:Nt,dateLocal:Ut}}},Xs={max:5,closable:!1},Js="loading",Zs="",J={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},ja=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],ae={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#dbcb02","#18A058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"},appNaiveUIThemeOverrides:{dark:{},light:{}},appNaiveUIThemeOverridesCommon:{dark:{},light:{}},echartTheme:"macarons"},kn=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Va="zh-CN",Na="zh-CN",Ua={"zh-CN":"zh-cn","en-US":"en"},$a="zh-cn",Qs={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/,cssSize:/^auto|unset|fit-content|max-content|min-content|initial|inherit|revert|revert-layer|[-\w]+-webkit-fill-available$/},ei={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},Ce=M(null),An=M(null),Ka={setupRouterLoadingBar:!0,setupRouterGuard:!0},Wa=["RLogin","ErrorPage","RayTemplateDoc"],We=[],ti=(e,n)=>{const t=M(0),o=M(0),l=M(!1),{clickOutside:a}={},s=h=>{l.value=h},i=h=>{h.preventDefault(),s(!1),X().then(()=>{const{clientX:S,clientY:f}=h;t.value=S,o.value=f,s(!0)})};a&&Eo(e,h=>{a(h)});const u=je(e,"contextmenu",i,n),d=je(e,"click",()=>{s(!1)});return{stop:()=>{u(),d()},x:Te(t),y:Te(o),show:Te(l),updateShow:s}},tt=le({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function ce(e,n,t){Object.hasOwn(tt,e)&&(tt[e]=n)}function ut(e){return Te(Lo(tt,e))}function qa(){return{...Re(Te(tt))}}let ie;const Ga=async()=>{const e=Gn(),n=await Ba(kn);return pa({legacy:!1,locale:e,messages:n,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Na})},ni=async e=>{const n=await Ga();e.use(n),ie=n},Yt=(e,n)=>n,Ne=e=>{if(!ie)return{t:a=>Yt(e,a),locale:a=>{}};const{t:n,...t}=ie.global;return{...t,t:(a,...s)=>a?!a.includes(".")&&!e?a:n(Yt(e,a),...s):"",locale:a=>{ie.mode==="legacy"?ie.global.locale=a:hn(ie.global.locale)?ie.global.locale.value=a:ie.global.locale=a}}},j=e=>e,Ha={path:"/dashboard",component:()=>L(()=>import("./index-Drj3PGgk.js"),__vite__mapDeps([49,12,1,2,3,4,5,6,7,8,9,10,11,50,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,51])),meta:{i18nKey:j("menu.Dashboard"),icon:"dashboard",order:0}},Ya=Object.freeze(Object.defineProperty({__proto__:null,default:Ha},Symbol.toStringTag,{value:"Module"})),Xa={path:"/axios",name:"RAxios",component:()=>L(()=>import("./index-EwsxEsV-.js"),__vite__mapDeps([52,4,5,6,7,8,2,9,10,53,54,1,3,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,55])),meta:{i18nKey:j("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},Ja=Object.freeze(Object.defineProperty({__proto__:null,default:Xa},Symbol.toStringTag,{value:"Module"})),Za={path:"barcode",component:()=>L(()=>import("./BarcodeDemo-jWbBfNPc.js"),__vite__mapDeps([56,12,1,2,3,4,5,6,7,8,9,10,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,11,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},Qa=Object.freeze(Object.defineProperty({__proto__:null,default:Za},Symbol.toStringTag,{value:"Module"})),el={path:"/cache-demo",component:()=>L(()=>import("./index-b8T1nLRq.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,8,9,10,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.CacheDemo"),icon:"other",order:3}},tl=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),nl={path:"/context-menu",component:()=>L(()=>import("./index-D1JklQAF.js"),__vite__mapDeps([58,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.ContextMenu"),icon:"other",order:2}},ol=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),al={path:"/directive",component:()=>L(()=>import("./index-Ov7I6uVL.js"),__vite__mapDeps([59,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{i18nKey:j("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},ll=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"})),rl={path:"/echart",component:()=>L(()=>import("./index-Dx_gm2nu.js"),__vite__mapDeps([60,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,61])),meta:{i18nKey:j("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},sl=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),il={path:"/form",component:()=>L(()=>import("./index-Dor1-zOS.js"),__vite__mapDeps([62,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},ul=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),cl={path:"/iframe",component:()=>L(()=>import("./index-BIEmcx8R.js"),__vite__mapDeps([63,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},dl=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),pl={path:"/mock-demo",component:()=>L(()=>import("./index-D1ZCvgoG.js"),__vite__mapDeps([64,12,1,2,3,11,4,5,6,7,8,9,10,53,54,32,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},ml=Object.freeze(Object.defineProperty({__proto__:null,default:pl},Symbol.toStringTag,{value:"Module"})),fl={path:"/modal-demo",component:()=>L(()=>import("./index-CtH5AG_t.js"),__vite__mapDeps([65,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.Modal"),icon:"other",order:3}},gl=Object.freeze(Object.defineProperty({__proto__:null,default:fl},Symbol.toStringTag,{value:"Module"})),Ye=()=>L(()=>Promise.resolve().then(()=>Nr),void 0),hl={path:"/multi",component:Ye,meta:{i18nKey:j("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>L(()=>import("./index-BuRzBDbW.js"),__vite__mapDeps([66,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:Ye,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>L(()=>import("./index-DSsu4ch3.js"),__vite__mapDeps([67,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:Ye,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>L(()=>import("./index-D03MkEFA.js"),__vite__mapDeps([68,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},vl=Object.freeze(Object.defineProperty({__proto__:null,default:hl},Symbol.toStringTag,{value:"Module"})),yl={path:"/precision",component:()=>L(()=>import("./index-C4S3Jatz.js"),__vite__mapDeps([69,1,2,3,4,5,6,7,8,9,10,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.CalculatePrecision"),icon:"other",order:2}},bl=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"})),Sl={path:"/qrcode",component:()=>L(()=>import("./index-CrzR9VpM.js"),__vite__mapDeps([70,71,7,5,6,72,73,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{i18nKey:j("menu.QRCode"),icon:"other",order:2}},_l=Object.freeze(Object.defineProperty({__proto__:null,default:Sl},Symbol.toStringTag,{value:"Module"})),wl={path:"rely-about",component:()=>L(()=>import("./index-D1ed38ZE.js"),__vite__mapDeps([74,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,75])),meta:{i18nKey:j("menu.RelyAbout"),icon:"rely",order:999}},Cl=Object.freeze(Object.defineProperty({__proto__:null,default:wl},Symbol.toStringTag,{value:"Module"})),Tl={path:"/router-demo",component:Ye,meta:{i18nKey:j("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>L(()=>import("./index-CZrqUJff.js"),__vite__mapDeps([76,12,1,2,3,39,5,6,7,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,4,8,9,10,32,33,34,35,36,37,38,40,41,42,43,44,45,46,47])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>L(()=>import("./index-BaTrdXhk.js"),__vite__mapDeps([77,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},Ol=Object.freeze(Object.defineProperty({__proto__:null,default:Tl},Symbol.toStringTag,{value:"Module"})),kl={path:"/scroll-reveal",component:()=>L(()=>import("./index-B4VbZD3l.js"),__vite__mapDeps([78,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,79])),meta:{i18nKey:j("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},Al=Object.freeze(Object.defineProperty({__proto__:null,default:kl},Symbol.toStringTag,{value:"Module"})),Rl={path:"/segment",component:()=>L(()=>import("./index-D2Sm3Md2.js"),__vite__mapDeps([80,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Pl=Object.freeze(Object.defineProperty({__proto__:null,default:Rl},Symbol.toStringTag,{value:"Module"})),xl={path:"/svg-icons",component:()=>L(()=>import("./index-DbfJADJ4.js"),__vite__mapDeps([81,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,82])),meta:{i18nKey:j("menu.SvgIcon"),icon:"other",order:3}},El=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),zl={path:"/table-pro",component:()=>L(()=>import("./TablePro-DDhVUTGT.js"),__vite__mapDeps([83,32,12,1,2,3,4,5,6,7,8,9,10,11,13,53,54,84,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},Ml=Object.freeze(Object.defineProperty({__proto__:null,default:zl},Symbol.toStringTag,{value:"Module"})),Il={path:"/table",component:()=>L(()=>import("./index-EwbgOaHC.js"),__vite__mapDeps([85,32,12,1,2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Ll=Object.freeze(Object.defineProperty({__proto__:null,default:Il},Symbol.toStringTag,{value:"Module"})),Dl={path:"/template-hooks",component:()=>L(()=>import("./index-nJFSuG-j.js"),__vite__mapDeps([86,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:j("menu.TemplateHooks"),icon:"other",order:1}},Fl=Object.freeze(Object.defineProperty({__proto__:null,default:Dl},Symbol.toStringTag,{value:"Module"})),Bl=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Ya,"/src/router/modules/demo/axios.ts":Ja,"/src/router/modules/demo/barcode.ts":Qa,"/src/router/modules/demo/cache-demo.ts":tl,"/src/router/modules/demo/context-menu.ts":ol,"/src/router/modules/demo/directive.ts":ll,"/src/router/modules/demo/echart.ts":sl,"/src/router/modules/demo/form.ts":ul,"/src/router/modules/demo/iframe.ts":dl,"/src/router/modules/demo/mock.ts":ml,"/src/router/modules/demo/modal.ts":gl,"/src/router/modules/demo/multi-menu.ts":vl,"/src/router/modules/demo/precision.ts":bl,"/src/router/modules/demo/qrcode.ts":_l,"/src/router/modules/demo/rely.ts":Cl,"/src/router/modules/demo/router-demo.ts":Ol,"/src/router/modules/demo/scroll-reveal.ts":Al,"/src/router/modules/demo/segment.ts":Pl,"/src/router/modules/demo/svg-icons.ts":El,"/src/router/modules/demo/table-pro.ts":Ml,"/src/router/modules/demo/table.ts":Ll,"/src/router/modules/demo/template-hooks.ts":Fl});return Object.keys(e).reduce((t,o)=>{const l=e[o].default;if(l)t.push(l);else throw new Error(`[combineRawRouteModules]: ${o} module must export default.`);return t},[])},jl=e=>e[0]==="/",Rn=(e,n=[],t="")=>{var o;if(!Array.isArray(e))return[];for(const l of e){const a=t+(jl(l.path)?l.path:"/"+l.path);if((o=l.children)!=null&&o.length){Rn(l.children,n,a);continue}else n.push({...l,path:a})}return n},Vl=e=>Array.isArray(e)?Rn(Xe(e)):[],Nl=e=>e.sort((n,t)=>{var a,s;const o=((a=n.meta)==null?void 0:a.order)??1,l=((s=t.meta)==null?void 0:s.order)??0;if(typeof o!="number"||typeof l!="number")throw new TypeError("orderRoutes error: order must be a number!");return o===l?n.name?t.name?n.name.localeCompare(t.name):-1:1:o-l}),Ul=e=>{const{beforeEach:n}=e,{getRootPath:t}=Me(),o=(l,a)=>l.path==="/"||a.path==="/login";n((l,a,s)=>{const i=Ze(J.token,"localStorage"),u=Ze(J.appMenuKey,"sessionStorage",{defaultValue:t.value}),{meta:d,name:p}=l;i!==null?o(l,a)?ht(!0):!me(p,"Symbol")&&p&&Wa.includes(p)?s():$n(d)?o(l,a)?u?s(u):ht(!0):s():ht(!0):o(l,a)?s():s("/")})},ht=(e=!0)=>{const{router:n}=Ft(),{push:t,replace:o}=n,{getRootPath:l}=Me();It(J.appMenuKey,l.value,"localStorage"),e?o(l.value):t(l.value)},$l=e=>{var t;const{meta:n}=e;n!=null&&n.ignoreAutoResetScroll||(t=Ce.value)==null||t.scrollTo({top:0,left:0,behavior:"smooth"})},Kl=e=>{e.beforeEach(()=>{var n;(n=window.$loadingBar)==null||n.start()}),e.afterEach(()=>{var n;(n=window.$loadingBar)==null||n.finish()}),e.onError(()=>{var n;(n=window.$loadingBar)==null||n.error()})},Pn=e=>{const{meta:n={}}=e,{hidden:t,sameLevel:o,env:l}=n,{MODE:a}=At();return!(o||t||l&&typeof l=="string"&&l!==a||l&&Array.isArray(l)&&!l.includes(a))};var Wl={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"5.0.3"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Ae=st("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=Wl,{locale:n}=Ne(),{locale:t}=ys(),o=le({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},_appTheme:!1,appTheme:"light",menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:Gn(),lockScreenSwitch:!1,copyrightSwitch:!0,contentTransition:"scale",watermarkSwitch:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,xGap:0,yGap:0,yOffset:60,rotate:-15,cross:!0},appRootRoute:{name:"Dashboard",path:"/dashboard"},sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},keepAliveConfig:{setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:10},menuConfig:{collapsedWidth:64,collapsedMode:"width",collapsedIconSize:16,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:16,menuWidth:272,inverted:!1,nativeScrollbar:!1},colorWeakness:!1,dynamicDocumentTitle:!0}),l=u=>{n(u),t(u),o.localeLanguage=u,It(J.localeLanguage,u,"localStorage")},a=(u,d=.3)=>{const p=qo(u,d),h={primaryColor:u,primaryColorHover:u,primaryColorPressed:u};o.primaryColorOverride.common=h;const S=document.body;S.style.setProperty("--ray-theme-primary-color",u),S.style.setProperty("--ray-theme-primary-fade-color",p)},s=(u,d,p)=>{_n(o,u,d,p)},i=u=>{const d=document.documentElement;s("colorWeakness",u),De(d,{filter:u?"invert(100%)":""})};return fe(()=>{var u;o.appTheme?o.primaryColorOverride=Object.assign({},o.primaryColorOverride,ae.appNaiveUIThemeOverrides.dark,ae.appNaiveUIThemeOverridesCommon.dark):o.primaryColorOverride=Object.assign({},o.primaryColorOverride,ae.appNaiveUIThemeOverrides.light,ae.appNaiveUIThemeOverridesCommon.light),i(o.colorWeakness),o.dynamicDocumentTitle||(document.title=((u=o.sideBarLogo)==null?void 0:u.title)||"Ray Template")}),{...Re(o),updateLocale:l,changePrimaryColor:a,updateSettingState:s,toggleColorWeakness:i}},{persist:{key:J.appPiniaSettingStore}}),xn={...no,onRegister:{type:[Function,Array],default:null}},En={actionAlign:{type:String,default:"end"},open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!0},onUpdateOpen:{type:[Function,Array],default:null},"onUpdate:open":{type:[Function,Array],default:null},...oo};function ql(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const oi=x({name:"RCollapse",props:Object.assign({},xn,{...En,open:{type:Boolean,default:!0},cols:{type:Number,default:4},bordered:{type:Boolean,default:!0}}),render(){const{$slots:e,$props:n}=this,{labelPlacement:t,showFeedback:o,...l}=n;return r(vr,V(l,{labelPlacement:"top",showFeedback:!1}),{default:()=>[r(Yl,l,ql(e)?e:{default:()=>[e]})]})}}),Gl={intersectionObserver:{type:Boolean,default:!0},intersectionObserverTarget:{type:Object,default:null},intersectionOptions:{type:Object,default:{threshold:.1}},bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},autoResize:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onFinally:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>wn()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>Cn()},onRegister:{type:[Function,Array],default:null}},Hl=Go(),Xt="__R_CHART_DOWN_LOAD_CHART__";Hl.forEach(e=>{ma(e.name,e.theme)});const ai=x({name:"RChart",props:Gl,setup(e,{expose:n}){const{getAppTheme:t}=W(),o=pe("rayChartRef"),l=pe("rayChartWrapperRef"),a=Do();let s,i;const{echartTheme:u}=ae;let d;const p=C(()=>[{label:"下载图片",key:Xt,disabled:!(a.value&&a.value.getDom())}]),h=C(()=>({"--ray-chart-width":N(e.width),"--ray-chart-height":N(e.height)})),S=M(!1);let f;const m={aria:e.showAria},_=async()=>{var O;Le([ga,ha,va,ya,ba,Sa,_a,wa]),Le([Ca,Ta,Oa,ka,Aa,Ra]),Le([Pa,xa]),Le([Ea]);try{Le((O=e.use)==null?void 0:O.filter(Boolean))}catch(R){console.error("[RChart register error]: ",R)}},g=()=>{if(a.value&&T(),e.theme==="default"){e.autoChangeTheme?c("dark"):c("");return}if(e.theme)c(e.theme);else{const O=e.autoChangeTheme&&t.value?`${u}-dark`:u;c(O)}},v=O=>{let R=oe(O);return R=(q=>Object.assign({},R,q))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),R},c=(O=u)=>{var he;const R=o.value,F=v(e.options),{height:q,width:$}=R.getBoundingClientRect(),{onSuccess:ee,onError:G}=e;try{a.value=fa(R,O,{width:$===0?200:void 0,height:q===0?200:void 0}),ee&&B(ee,a.value),e.nextTick?(a.value.setOption({}),X(()=>{var te;F&&((te=a.value)==null||te.setOption(F))})):F&&((he=a.value)==null||he.setOption(F))}catch(te){throw G&&B(G),new Error(`[RChart render error]: ${te}`)}finally{const{onFinally:te}=e;te&&B(te)}},y=()=>{var O;return!!((O=a.value)!=null&&O.isDisposed())},T=()=>{var O;y()||(O=a.value)==null||O.dispose()},w=()=>{a.value&&a.value.resize()},b=(O,R)=>{if(O===Xt&&!y()){const{filename:q,...$}=e.downloadOptions;Ho(a.value.getDataURL($),q??`${new Date().getTime()}`)}const{onDropdownSelect:F}=e;F&&B(F,O,R)},E=()=>{var R;if(e.autoResize&&(s||(s=Et(w,500)),i||(i=Mo(e.autoResizeObserverTarget||l,s))),(R=a.value)!=null&&R.getDom()||!S.value&&e.intersectionObserver)return;g(),f==null||f.stop();const{onRegister:O}=e;O&&a.value&&B(O,a.value,E,k)},k=()=>{T(),s==null||s.cancel(),i==null||i.stop(),f==null||f.stop(),f=null,s=null,i=null};return Pe(()=>t.value,()=>{e.autoChangeTheme&&(T(),g())}),fe(()=>{var O,R;e.intersectionObserver&&(f=zo(e.intersectionObserverTarget||l,([F])=>{S.value=F.isIntersecting},e.intersectionOptions)),e.watchOptions?d=za(()=>e.options,F=>{var ee;const q=v(F),$=Object.assign({},Cn(),e.setChartOptions);(ee=a.value)==null||ee.setOption(q,$)},{deep:!0,throttle:e.watchOptionsThrottleWait}):d==null||d(),e.loading?(O=a.value)==null||O.showLoading(wn(e.loadingOptions)):(R=a.value)==null||R.hideLoading(),e.showAria!==m.aria&&a.value&&(a.value.setOption(v(e.options)),m.aria=e.showAria),S.value&&!y()&&E()}),n(),Fo(async()=>{await _()}),Ve(()=>{E()}),vn(()=>{k(),d==null||d()}),{rayChartRef:o,cssVarsRef:h,rayChartWrapperRef:l,moreDropDownOptions:p,dropdownSelect:b}},render(){const{title:e,contentStyle:n,preset:t,moreDropDownOptions:o,dropdownSelect:l,bordered:a,dropdownOptions:s}=this,{cardExtra:i}=this.$slots;return t==="card"?r(at,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:n,bordered:a,embedded:!0},{default:ye(r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:ye(e,{defaultElement:r("div",{style:"display: none;"},null)}),"header-extra":ye(i,{defaultElement:r(In,{iconSize:18,cursor:"pointer",options:s||o,trigger:"click",onSelect:l.bind(this),placement:"bottom-end"},null)})}):r("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),li=()=>{let e,n,t;const o=(u,d,p)=>{u&&(e=u,n=p,t=d)},l=()=>{if(!e)throw new Error("[useChart]: echart instance is not ready yet. if you are using useChart, please make sure you have called register method in onRegister event.");return{dispose:n,render:t,echartInst:e}};return[o,{getChartInstance:l,isDisposed:()=>{var u;return!!((u=l().echartInst)!=null&&u.isDisposed())},dispose:()=>l().dispose.call(null),render:()=>l().render.call(null)}]},Yl=x({name:"RCollapseGrid",props:En,setup(e){const n=M(!e.open),t=C(()=>({"--r-collapse-grid-action-align":e.actionAlign})),o=()=>{const{onUpdateOpen:a,"onUpdate:open":s}=e;n.value=!n.value,a&&B(a,n.value),s&&B(s,n.value)},l=a=>r("div",{class:"collapse-icon",onClick:o.bind(this)},[r("span",null,[a?e.collapseToggleText[0]:e.collapseToggleText[1]]),r(P,{customClassName:`collapse-icon--arrow ${a?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)]);return fe(()=>{n.value=!e.open}),{modelCollapsed:n,collapseClick:o,CollapseIcon:l,cssVars:t}},render(){const{$slots:{collapse:e,action:n,default:t},CollapseIcon:o,$props:l,modelCollapsed:a,xGap:s,yGap:i,collapsedRows:u,cssVars:d,bordered:p}=this;return r(at,{bordered:p,style:[d]},{default:()=>r(ao,V({class:"ray-collapse-grid"},l,{collapsed:a,xGap:s||12,yGap:i||12,collapsedRows:u}),{default:()=>[t==null?void 0:t(),r(lo,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[r(D,{justify:"end",align:"center"},{default:()=>[n==null?void 0:n(),e?e(a):o(a)]})]})]})})}}),Xl={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},P=x({name:"RIcon",props:Xl,setup(e){const n=C(()=>`#${e.prefix}-${e.name}`),t=C(()=>({"--ray-icon-width":e.width?N(e.width):N(e.size),"--ray-icon-height":e.height?N(e.height):N(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor,"--ray-icon-color":e.color}));return{symbolId:n,cssVars:t,iconClick:l=>{const{onClick:a}=e;a&&B(a,l)}}},render(){return r("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[r("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[r("use",V({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),Jl={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:[Boolean,String],default:!0},iframeClass:{type:String,default:null}},ri=x({name:"RIframe",props:Jl,setup(e,{expose:n}){const t=C(()=>({"--ray-iframe-frameborder":N(e.frameborder),"--ray-iframe-width":N(e.width),"--ray-iframe-height":N(e.height)})),o=pe("iframeRef"),l=M(!0),a=i=>{l.value=!1;const{onSuccess:u}=e;u&&B(u,o.value,i)},s=i=>{l.value=!1;const{onError:u}=e;u&&B(u,i)};return je(o,"load",a),je(o,"error",s),n({iframeInst:o}),{cssVars:t,iframeRef:o,spinShow:l}},render(){return r("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[r(lt,V(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>r("iframe",{class:["ray-iframe__container",this.iframeClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title,loading:typeof this.lazy=="boolean"?"lazy":this.lazy},null)})])}}),Zl={...ro,memo:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446},dad:{type:Boolean,default:!1}},Ql=(e,n,t)=>{const{scheduler:o}=t??{};return new Promise(l=>{setTimeout(()=>{const a=n==="card"?".n-card-header__main":".n-dialog__title";if(e){const s=Gt(e).draggable({inertia:!0,autoScroll:!0,allowFrom:a,modifiers:[Gt.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:i=>{o==null||o(i)}}}).resizable(!1);l(s)}},30)})},zn=(e,n)=>{const t=typeof e=="string"?document.querySelector(e):e;return new Promise((o,l)=>{if(t){t.setAttribute("can-drag","true");const{preset:a,dargCallback:s}=n;let{x:i,y:u}=n;Ql(t,a,{scheduler:d=>{const p=d.target;i+=d.dx,u+=d.dy,p.style.transform=`translate(${i}px, ${u}px)`,s==null||s(i,u,d)}}).then(d=>{o(d)})}else l()})},er="r-modal__preset-card--fullscreen",Mn="r-modal",Oe={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},si=x({name:"RModal",props:Zl,setup(e){const n=C(()=>({[Oe.width]:N(e.width??600),[Oe.cardWidth]:N(e.cardWidth??600),[Oe.dialogWidth]:N(e.dialogWidth??446)})),t=Qe();let o;const l={x:0,y:0},a=C(()=>e.preset==="card"&&e.fullscreen);return Pe(()=>e.show,s=>{s&&e.dad&&(e.preset==="card"||e.preset==="dialog")?X(()=>{const i=document.getElementById(t);i&&zn(i,{preset:e.preset,x:l.x,y:l.y,dargCallback:(u,d)=>{l.x=u,l.y=d}}).then(u=>{o=u}),e.memo&&i&&(i.style.transform=`translate(${l.x}px, ${l.y}px)`)}):(o==null||o.unset(),o=null)},{immediate:!0}),{cssVars:n,isFullscreenCardType:a,uuidEl:t}},render(){const{$props:e,$slots:n,$attrs:t}=this,{preset:o,...l}=e,{cssVars:a,uuidEl:s,isFullscreenCardType:i}=this;return r(rn,V({class:[Mn,i?er:""],style:[a,i?"height: 100vh":""],preset:o},{id:s},l,t),{...n})}}),tr=()=>{const{create:e,destroyAll:n}=so();return{create:o=>{const{content:l,...a}=o;let s=l;a.preset==="card"&&a.fullscreen&&(s=()=>rt(zt,{themeOverrides:{color:"rgba(0, 0, 0, 0)",colorHover:"rgba(0, 0, 0, 0)"},trigger:"none",style:{width:"auto",height:"calc(100vh - 29px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))"}},{default:()=>typeof l=="function"?l():l}));const{preset:i,dad:u,fullscreen:d,width:p,cardWidth:h,dialogWidth:S}=o,f=e({...a,content:s}),{key:m}=f,_={[Oe.width]:N(p??600),[Oe.cardWidth]:N(h??600),[Oe.dialogWidth]:N(S??446)};return X(()=>{const[g]=et(`[internalkey="${m}"]`)||[];if(g){if(u&&zn(g,{preset:i,x:0,y:0}),d&&i==="card"){const v=g.querySelector(".n-card__content");v&&De(v,{maxHeight:"calc(100vh - 9px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))",overflowY:"hidden",padding:"0"}),De(g,{width:"100%",height:"100vh"})}De(g,_),Tn(g,Mn)}}),f},destroyAll:n}},nr={...io,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function or(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const In=x({name:"RMoreDropdown",props:nr,render(){let e;const{iconSize:n,cursor:t,icon:o}=this,{default:l}=this.$slots;return r(ke,V(this.$props,this.$attrs,{placement:"bottom-start"}),or(e=ye(l,{defaultElement:r(P,{name:o,size:n,cursor:t},null)}))?e:{default:()=>[e]})}}),Ee={...uo,tableFlexHeight:{type:[String,Number],default:void 0},renderWrapperHeader:{type:Boolean,default:!0},cardProps:{type:Object,default:()=>({})},tool:{type:Boolean,default:!0},downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null},onRegister:{type:[Function,Array],default:null}},re={tableIconSize:"18",tableKey:Symbol("r-table")},ar=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],lr=x({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...Ee},setup(e){return{size:M(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:l=>{const{onChangeSize:a}=e;a&&B(a,l)}}},render(){return r(sn,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(P,{name:"adjustment",size:re.tableIconSize,cursor:"pointer"},null)]})}}),rr=x({name:"TableFullscreen",setup(){const{wrapperRef:e}=xe(re.tableKey,{}),[n,{toggleFullscreen:t,isEnabled:o}]=Sn(e);return{toggleFullscreen:t,isEnabled:o}},render(){const{toggleFullscreen:e,isEnabled:n,$t:t}=this;return r(P,{name:"fullscreen",size:re.tableIconSize,cursor:"pointer",onClick:()=>{n||window.$message.warning(t("globalMessage.isEnabledFullscreen")),e()}},null)}}),sr=()=>r(P,{name:"draggable",size:14,cursor:"grab"},null),Jt=({icon:e,title:n,onClick:t,customClassName:o})=>r(Be,{showArrow:!1},{trigger:()=>r(P,{name:e,size:re.tableIconSize,cursor:"pointer",customClassName:o,onClick:t==null?void 0:t.bind(null)},null),default:()=>n}),Rt=(e,n)=>{if(!n)return[null,null];for(let t=0;t<n.length;++t){const o=n[t];if(o.key===e.key)return[n,t];const[l,a]=Rt(e,o.children);if(l&&a!==null)return[l,a]}return[null,null]},vt="r-table__c-tool-icon--active",ir=x({name:"TableC",props:{...Ee,onUpdateColumn:{type:[Function,Array],default:null}},setup(e){let n;const t=C({get:()=>Xe(e.columns).filter(u=>u.type?(n=u,!1):!0).map((u,d)=>{const{key:p,title:h,children:S,fixed:f,isResizable:m,..._}=u,g=f==="left",v=f==="right",c={..._,title:h,key:p,fixed:f,isLeftFixedActivated:g,isRightFixedActivated:v,isResizable:m};return{...c,suffix:()=>r(D,{style:"padding-left: 32px;"},{default:()=>[r(Jt,{icon:"row_head",title:"固定在列首",customClassName:g?vt:"",onClick:a.bind(this,"left",c,d)},null),r(Be,{showArrow:!1},{trigger:()=>r(P,{name:"resize_h",size:re.tableIconSize,cursor:"pointer",customClassName:m?vt:"",onClick:l.bind(this,c,d)},null),default:()=>"修改列宽"}),r(Jt,{icon:"row_end",title:"固定在列尾",customClassName:v?vt:"",onClick:a.bind(this,"right",c,d)},null)]})}}),set:()=>{}}),o=i=>{const{onUpdateColumn:u}=e;u&&B(u,i)},l=(i,u)=>{i.isResizable=!i.isResizable,i.resizable=i.isResizable,t.value[u]=i,o(t.value)},a=(i,u,d)=>{const p=`${i}FixedActivated`,h=`${i==="left"?"right":"left"}FixedActivated`;u[h]=!1,u[p]=!u[p],u[p]?u.fixed=i:u.fixed=void 0,t.value[d]=u,o(t.value)};return{treeDataSource:t,treeDrop:({node:i,dragNode:u,dropPosition:d})=>{const[p,h]=Rt(u,t.value);if(p===null||h===null)return;p.splice(h,1);const[S,f]=Rt(i,t.value);S===null||f===null||(d==="before"?S.splice(f,0,u):S.splice(f+1,0,u),ln(n)||S.unshift(n),o(S))}}},render(){return r(Be,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>r(P,{name:"setting",size:re.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>r(co,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:sr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),ur=x({name:"TablePrint",props:Ee,setup(e){const{wrapperRef:n}=xe(re.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:o={},domToImageOptions:l}={},title:a}=e;(o.documentTitle===""||o.documentTitle===void 0||o.documentTitle===null)&&(o.documentTitle=typeof a=="string"?a:""),On(n,{printOptions:o,domToImageOptions:l})}}},render(){return r(P,{name:"print",size:re.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),cr=x({name:"TablePropsSelect",props:{...Ee,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const n=M(!1),t=M([]),o=a=>{const{onPopselectChange:s}=e;s&&B(s,a)};return(()=>{const{striped:a,bordered:s,onInitialed:i}=e;a&&t.value.push("striped"),s&&t.value.push("bordered"),i&&B(i,t.value)})(),{propsPopselectValue:t,popoverShow:n,updatePopselectValue:o}},render(){return r(sn,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:ar,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(P,{name:"expanded",size:re.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function dr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const pr=x({name:"RTable",inheritAttrs:!1,props:Ee,setup(e,n){const{expose:t,emit:o}=n,l=pe("rTableInst"),a=pe("wrapperRef"),s=Qe(16),i=Qe(16),u=le({x:0,y:0,showContextMenu:!1}),d=le({size:e.size}),p=M(Object.assign({striped:!1,bordered:!1},Fe(e,"striped","bordered"))),h=(c,y)=>{const{onContextMenuClick:T}=e;T&&B(T,c,y),u.showContextMenu=!1},S=(c,y)=>{var w;return{...(w=e.rowProps)==null?void 0:w.call(e,c,y),onContextmenu:e.disabledContextMenu?void 0:b=>{b.preventDefault(),u.showContextMenu=!1,X().then(()=>{u.showContextMenu=!0,u.x=b.clientX,u.y=b.clientY})}}},f=c=>{d.size=c},m=c=>{const{onUpdateColumns:y,"onUpdate:columns":T}=e;y&&B(y,c),T&&B(T,c)},_=()=>{const{toolOptions:c}=e;return c==null?void 0:c.filter(Boolean).map(y=>typeof y=="function"?y():y)},g=c=>{Object.keys(p.value).forEach(T=>{p.value[T]=c.includes(T)})},v=c=>{const{tool:y}=c;if(!y)return;const T=()=>r(D,{align:"center"},{default:()=>[r(ur,c,null),r(lr,V(c,{onChangeSize:f.bind(this)}),null),r(rr,null,null),r(ir,V(c,{onUpdateColumn:m.bind(this)}),null),r(cr,V(c,{onPopselectChange:g.bind(this),onInitialed:g.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let w;return r(D,{align:"center"},dr(w=_())?w:{default:()=>[w]})}:()=>r(D,{align:"center"},{default:()=>[T(),_()]}):T};return Ve(()=>{const{onRegister:c}=e;c&&l.value&&B(c,l.value,{uuidTable:i,uuidWrapper:s,wrapperRef:a})}),yn(re.tableKey,{uuidTable:i,uuidWrapper:s,wrapperRef:a}),t(),{uuidWrapper:s,uuidTable:i,contextMenuReactive:u,rTableInst:l,combineRowProps:S,contextMenuSelect:h,privateReactive:d,tool:v,wrapperRef:a,propsPopselectValue:p}},render(){const{$props:e,$attrs:n,$slots:t,uuidTable:o,contextMenuReactive:l,uuidWrapper:a,privateReactive:s,propsPopselectValue:i}=this,{class:u,...d}=n,{tool:p,combineRowProps:h,contextMenuSelect:S}=this,{renderWrapperHeader:f,wrapperBordered:m,disabledContextMenu:_,contextMenuOptions:g,title:v,tableFlexHeight:c,cardProps:y,...T}=e;return r(at,V(y,{id:a},d,{ref:"wrapperRef",bordered:m,class:u}),{default:()=>r(bn,null,[r(po,V({id:o},T,i,{rowProps:h.bind(this),size:s.size,ref:"rTableInst",style:{height:c!=null?N(c):null}}),{...t}),_?null:r(ke,{show:l.showContextMenu,placement:"bottom-start",trigger:"manual",x:l.x,y:l.y,options:g,onClickoutside:()=>l.showContextMenu=!1,onSelect:S.bind(this)},null)]),header:f?ye(v,{defaultElement:r("div",{style:"display: none;"},null)}):null,"header-extra":p(e),footer:()=>{var w;return(w=t.tableFooter)==null?void 0:w.call(t)},action:()=>{var w;return(w=t.tableAction)==null?void 0:w.call(t)}})}}),mr=()=>{const e=M();let n={};const t=(f,m)=>{f&&(e.value=f,n=m)},o=()=>{if(!e.value)throw new Error("[useTable]: table instance is not ready yet. if you are using useTable, please make sure you have called register method in onRegister event.");return e.value};return[t,{getTableInstance:o,clearFilters:()=>o().clearFilters.call(null),clearSorter:()=>o().clearSorter.call(null),downloadCsv:f=>o().downloadCsv.call(null,f),filters:f=>o().filters.call(null,f),page:f=>o().page.call(null,f),scrollTo:f=>o().scrollTo(f),sort:(f,m)=>o().sort.call(null,f,m),print:f=>{const{uuidWrapper:m}=n;if(m){const _=document.getElementById(m);On(_,f)}},filter:f=>o().filter.call(null,f)}]},Ln=(e,n,t)=>{var o;if(e.length)for(const l of e){if(l[n]===t)return l;if((o=l==null?void 0:l.children)!=null&&o.length){const a=Ln(l.children,n,t);if(a)return a}}},Zt=e=>{const n=oe(e);return n?n.findIndex(o=>{const{type:l,multiple:a}=o;if(l==="selection"&&(a==null||a===!0))return!0})!==-1:!0},fr=(e,n,t,o)=>{const l=oe(e);return l?n.reduce((a,s)=>{const i=oe(t).findIndex(d=>d[o]===s);if(i!==-1)return a.push(oe(t)[i]),a;const u=l.findIndex(d=>d[o]===s);return u!==-1&&a.push(l[u]),a},[]):t},ii=(e,n,t)=>{const o=M([]),l=M([]),{rowKey:a="key",onChange:s}=t||{},i=C(()=>Zt(n)),u=(m,_,g)=>{o.value=m,l.value=oe(fr(e,m,l,a)),s==null||s(m,l.value,g),Zt(n)},d=()=>o.value,p=()=>l.value,h=()=>{o.value=[],l.value=[],s==null||s(o.value,l.value,{row:void 0,action:"uncheckAll"})},S=m=>{if(m==null)return;let _;o.value=o.value.filter(g=>g!==m),l.value=l.value.filter(g=>g[a]===m?(_=g,!1):!0),s==null||s(o.value,l.value,{row:_,action:"uncheck"})},f=m=>{if(o.value.includes(m))return;const _=!i.value&&o.value.length>=1,g=Ln(oe(e)||[],a,m);_?o.value=[m]:o.value.push(m),g&&(_?l.value=[g]:l.value.push(g),s==null||s(o.value,l.value,{row:g,action:"check"}))};return Lt(()=>{h()}),[o,{checkedRows:l,checkedRowKeysBind:u,getKeys:d,getRows:p,clearAll:h,clearKey:S,selectKey:f}]},gr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},hr=x({name:"RTransitionComponent",__name:"index",props:Bo({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},gr),setup(e){const{getKeepAliveInclude:n}=zr(),{getKeepAliveConfig:t}=W();return(o,l)=>{const a=Vo("RouterView");return Se(),jo("div",null,[r(a,null,{default:gt(({Component:s,route:i})=>[s?(Se(),Ie(Ma,{key:0,name:o.transitionPropName,mode:o.transitionMode,appear:o.transitionAppear},{default:gt(()=>[(Se(),Ie(No,null,{default:gt(()=>[oe(t).setupKeepAlive?(Se(),Ie(Uo,{key:0,max:oe(t).maxKeepAliveLength,include:oe(n),exclude:oe(t).keepAliveExclude},[(Se(),Ie(Wt(s),{key:i.fullPath}))],1032,["max","include","exclude"])):(Se(),Ie(Wt(s),{key:i.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):$o("",!0)]),_:1})])}}}),vr=x({name:"RForm",props:xn,setup(e,{expose:n}){const t=pe("formRef");return Ve(()=>{const{onRegister:o}=e;o&&t.value&&B(o,t.value)}),n(),{formRef:t}},render(){const{$attrs:e,$props:n,$slots:t}=this;return r(de,V(e,n,{ref:"formRef"}),{...t})}}),ui=(e,n)=>{const t=M(),o=d=>{d&&(t.value=d)},l=()=>{if(!t.value)throw new Error("[useForm]: form instance is not ready yet. if you are using useForm, please make sure you have called register method in onRegister event.");return t.value};return[o,{getFormInstance:l,validate:(d,p)=>l().validate.call(null,d,p),restoreValidation:()=>l().restoreValidation.call(null),formModel:()=>Xe(e)||{},formRules:()=>Xe(n)||{}}]},yr=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],br={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},Sr=ot({...mo,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...yr);function _r(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const Pt=e=>{const{icon:n,label:t}=e;return n?r(D,{align:"center",wrap:!1,size:"small"},{default:()=>{var o;return[(o=ye(n))==null?void 0:o(),r("div",null,[t])]}}):t},wr=e=>{if(typeof e.popover=="string")return r(Be,null,{trigger:()=>Pt(e),default:()=>e.popover});if(me(e.popover,"Object")){const{popover:n}=e,{label:t,...o}=n;return r(Be,o,{trigger:()=>Pt(e),default:()=>t})}},Cr=x({name:"RSegment",props:Sr,setup(e,{expose:n}){const t=C(()=>{const{width:o}=e;let l="";switch(o){case"block":l="100%";break;case"fitContent":l="fit-content";break;default:l=typeof o=="number"?N(o):"fit-content"}return{"--r-segment-width":l}});return n(),{cssVars:t}},render(){let e;const{$props:n,options:t,cssVars:o,themeOverrides:l}=this;return r(un,V(n,{ref:"segmentRef",style:[o],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},br,l)}),_r(e=t.map(a=>r(fo,{key:a.key,name:a.key,tab:a.popover?wr(a):Pt(a),disabled:a.disabled},{...a.slots})))?e:{default:()=>[e]})}}),Tr={width:{type:[String,Number],default:"auto"},height:{type:[String,Number],default:"auto"},loading:{type:Boolean,default:!1},barcodeRender:{type:String,default:"canvas",validator:e=>["canvas","svg"].includes(e)},text:{type:String},options:{type:Object,default:()=>({})},format:{type:String,default:()=>"CODE128"},watchText:{type:Boolean,default:!0},onSuccess:{type:[Function,Array]},onError:{type:[Function,Array]},onFinally:{type:[Function,Array]}},ci=x({name:"RBarcode",props:Tr,setup(e){const n=pe("barcodeRef"),t=C(()=>({"--r-barcode-width":N(e.width),"--r-barcode-height":N(e.height)}));let o;const l=()=>{try{const{format:a,text:s,options:i,onSuccess:u}=e,d=Object.assign({},i,{format:a});Wo(n.value,s!=null?s.toString():"",d),u&&B(u,s,a,i)}catch(a){const{onError:s}=e;s&&B(s,a)}finally{const{onFinally:a}=e;a&&B(a)}};return fe(()=>{e.watchText?o=Pe(()=>e.text,l):o==null||o()}),Ve(()=>{l()}),vn(()=>{o==null||o()}),{barcodeRef:n,cssVars:t}},render(){const{barcodeRender:e,loading:n,cssVars:t}=this,o=["r-barcode",{"r-barcode--loading":n}];return r(lt,{class:"r-barcode-spin",show:n},{default:()=>[e==="canvas"?r("canvas",{class:o,style:t,ref:"barcodeRef"},null):r("svg",{class:o,style:t,ref:"barcodeRef"},null)]})}}),Or={...ot(Ee,["pagination"]),paginationCount:{type:Number,default:1},onRegister:{type:Function,default:void 0},manual:{type:Boolean,default:!1},request:{type:Function},onTablePaginationUpdate:{type:Function},requestConfig:{type:Object,default:()=>({})},showPagination:{type:Boolean,default:!1},remote:{type:Boolean,default:!0}};function kr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const di=x({name:"RTablePro",props:Or,setup(e){const[n,{clearFilters:t,clearSorter:o,downloadCsv:l,filters:a,page:s,scrollTo:i,sort:u,print:d,filter:p}]=mr(),[h,{getPage:S,getPageSize:f,setCallback:m,setItemCount:_,resetPagination:g,getItemCount:v}]=_s(void 0,{prefix:k=>`${k.itemCount}`}),c=C(()=>e.request),y=()=>({getItemCount:v,getPage:S,getPageSize:f}),T=()=>{const{onTablePaginationUpdate:k}=e;k&&B(k,y())},w=k=>{const O=Object.assign({},e.requestConfig,k),{params:R,formatRangeTime:F}=O;return F!=null&&F.length&&R&&F.forEach($=>{const{key:ee,target:G}=$,he=R[ee];if(he&&(G!=null&&G.length)){const[te,dt]=he;R[G[0]]=te,R[G[1]]=dt}else R[ee]=null,R[G[0]]=null,R[G[1]]=null}),Object.assign({},R,{page:S(),pageSize:f()})},b=k=>{var R;g();const O=w(k);(R=c.value)==null||R.call(c,O)},E=k=>{var R;const O=w(k);(R=c.value)==null||R.call(c,O)};return fe(()=>{_(e.paginationCount),m(()=>{const{manual:k}=e;k||E(),T()})}),Ve(()=>{const{onRegister:k}=e;k&&B(k,{getTablePagination:y,runTableRequest:b,clearFilters:t,clearSorter:o,downloadCsv:l,filters:a,page:s,scrollTo:i,sort:u,print:d,filter:p,getCurrentTableRequestParams:w})}),{register:n,paginationRef:h}},render(){const{register:e,$props:n,paginationRef:t,$slots:o}=this,{onRegister:l,showPagination:a,...s}=n;return r(pr,V(s,{onRegister:e,pagination:a?t:void 0}),kr(o)?o:{default:()=>[o]})}}),pi=()=>{const e=M(),n=m=>{m&&(e.value=m)},t=()=>{if(!e.value)throw new Error("[useTablePro]: table instance is not ready yet. if you are using useTablePro, please make sure you have called register method in onRegister event.");return e.value};return[n,{clearFilters:()=>t().clearFilters.call(null),getTableProInstance:t,clearSorter:()=>t().clearSorter.call(null),downloadCsv:m=>t().downloadCsv.call(null,m),filters:m=>t().filters.call(null,m),page:m=>t().page.call(null,m),scrollTo:m=>t().scrollTo(m),sort:(m,_)=>t().sort.call(null,m,_),getTablePagination:()=>t().getTablePagination.call(null),runTableRequest:m=>t().runTableRequest.call(null,m),print:m=>t().print.call(null,m),getCurrentTableRequestParams:m=>t().getCurrentTableRequestParams.call(null,m)}]},Ar=(e,n,t)=>!e||typeof e!="object"?!1:e[n]===t,Dn=(e,n,t)=>{const o=[];if(Ar(e,n,t))return o.push(e),o;if(e.children&&e.children.length>0)for(const l of e.children){const a=Dn(l,n,t);a.length>0&&o.push(e,...a)}return o},Rr=(e,n,t)=>{const o=[];for(const l of e){const a=Dn(l,n,t);a.length>0&&o.push(...a)}return o},Qt=e=>{const{dynamicDocumentTitle:n}=Ae();if(!n)return;const{breadcrumbLabel:t}=e;if(!t)return;const{sideBarLogo:o}=Ae(),l=o?o.title:"";document.title=t+" - "+l},Pr=e=>{const{meta:{icon:n}}=e;if(!n)return;if(me(n,"Object"))return()=>n;const{menuConfig:t}=Ae(),{collapsed:o}=Dt(),l=rt(P,{name:n,size:o?t.collapsedIconSize:t.iconSize,cursor:"pointer"},{});return()=>l},Fn=e=>{const{meta:{extra:n}}=e;if(!n)return;const{show:t}=n;if(t===!1)return;const{t:o}=Ne(),{label:l,icon:a,type:s,i18nLabel:i}=n,u={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},d=()=>i?o(i):l||null,p=()=>a&&(i||l)||!a&&(i||l)?null:{"padding-right":"0"};if(me(n,"Object"))return()=>rt(go,{...u,type:s||"primary",style:p()},{default:()=>d(),icon:()=>a})},en=()=>{const{getRootPath:e}=Me();return Ze(J.appMenuKey,"sessionStorage",{defaultValue:e.value})},Bn=()=>Nl(Bl()),xr=()=>Vl(Bn()),xt=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let qe;const jn=(e,n)=>{var t;if(qe&&qt(qe.fullPath,n))return qe;for(const o of e){if(qt(o.fullPath,n))return qe=o,o;if((t=o.children)!=null&&t.length){jn(o.children,n);continue}}},Dt=st("menu",()=>{const{push:e,getRoutes:n}=it(),t=ia(),{t:o}=Ne(),{setKeepAliveInclude:l}=Mr(),a=le({menuKey:en(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),s=M(!0),i=(c,y,T)=>{_n(a,c,y,T)},u=c=>{const{meta:y}=c,{i18nKey:T,noLocalTitle:w}=y,b=C(()=>T?o(`${T}`):w),E={...c,key:c.fullPath,label:()=>rt(cn,null,{default:()=>b.value}),breadcrumbLabel:b.value},k=Object.assign({},E,{icon:Pr(c),extra:Fn(c)});return c.fullPath===en()&&(a.currentMenuOption=k),k.show=Pn(k),k},d=c=>{a.breadcrumbOptions=Rr(a.options,"fullPath",c)},p=(c,y=!0)=>{const w=Array.isArray(c)?[...c]:[c];y?a.menuTagOptions.push(...w):a.menuTagOptions=w},h=(c,y)=>{a.menuTagOptions.find(w=>w.fullPath===c)||a.menuTagOptions.push(y)},S=(c,y,T)=>{const{meta:w}=y;if(w.windowOpen)window.open(w.windowOpen);else{e({path:String(c),query:T});const{sameLevel:b}=w;if(l(y),Qt(y),!b)h(c,y),d(c),a.menuKey=c,a.currentMenuOption=y,It(J.appMenuKey,c);else{const E=Fe(u(y),xt);a.breadcrumbOptions.find(O=>O.key===E.key)||a.breadcrumbOptions.push({...E,fullPath:String(E.key)})}}},f=async(c,y)=>{const[T]=c.split("?"),w=n().find(b=>b.path===T);if(!((w==null?void 0:w.path)==="/"||!(w!=null&&w.path)||(w==null?void 0:w.path)==="/login")&&w){const b=Fe(w,xt);S(T,u({...b,fullPath:b.path}),y)}},m=()=>new Promise(c=>{const y=(T,w)=>{var E;const b=[];for(const k of T){let O=`${w.endsWith("/")?w:w+"/"}${k.path}`;if(O=O.replace(/\/+/g,"/"),(E=k.children)!=null&&E.length)k.children=y(k.children,O);else if(!$n(k.meta))continue;b.push(u({...k,fullPath:O}))}return b};if(a.options=y(Bn(),""),a.currentMenuOption){const{currentMenuOption:T}=a;a.breadcrumbOptions.length||d(T.key),h(T.fullPath,T),Qt(T)}c()}),_=c=>a.collapsed=c,g=(c,y=1)=>a.menuTagOptions.splice(c,y),v=async()=>{s.value&&(await m(),s.value=!1)};return Pe(()=>t.fullPath,async(c,y)=>{await v(),c!==y&&await f(c,t.query)},{immediate:!0}),{...Re(a),changeMenuModelValue:S,collapsedMenu:_,spliceMenTagOptions:g,setMenuTagOptions:p,resolveOption:u,updateMenuState:i,setupAppMenu:m}},{persist:{key:J.appPiniaMenuStore,storage:window.localStorage,pick:["breadcrumbOptions","menuKey","menuTagOptions","collapsed"]}}),Vn=st("signing",()=>{const e=le({signingCallback:{}}),n=l=>new Promise((a,s)=>{ln(l)?s({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:l.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},a({code:0,message:"登陆成功",data:e.signingCallback}))}),t=l=>{const{closeAll:a}=qn(),{appPiniaMenuStore:s,appPiniaSigningStore:i,token:u,signing:d,appMenuKey:p}=J;window.$message.info("账号退出中..."),_e("__all_sessionStorage__","sessionStorage"),_e(i,"localStorage"),_e(s,"localStorage"),_e(u,"localStorage"),_e(d,"localStorage"),_e(p,"localStorage"),a(),l&&(window.location.replace("#/"),setTimeout(()=>{window.location.reload()},0))},o=()=>{t(!0)};return{...Re(e),signing:n,logout:o,clearSigningCallback:t}},{persist:{key:J.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),Nn=st("keepAlive",()=>{const e=le({keepAliveInclude:[]}),n=()=>e.keepAliveInclude.length,t=l=>{const a=n(),{name:s,meta:{keepAlive:i}}=l,{maxKeepAliveLength:u}=Ae().keepAliveConfig;if(i){if(a<u&&!e.keepAliveInclude.includes(s)){e.keepAliveInclude.push(s);return}a>=u&&(e.keepAliveInclude.splice(0,1),e.keepAliveInclude.push(s))}},o=()=>e.keepAliveInclude;return{...Re(e),setKeepAliveInclude:t,getKeepAliveInclude:o}},{persist:{key:J.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),be=()=>{const e=Dt(),n=C(()=>e.options),t=C(()=>e.breadcrumbOptions),o=C(()=>e.menuKey),l=C(()=>{const{getRootPath:i}=Me();return e.menuTagOptions.map((u,d,p)=>(u.key===o.value&&u.key!==i.value?u.closeable=!0:u.closeable=!1,u.key===i.value&&(u.closeable=!1),p.length<=1&&(u.closeable=!1),u))}),a=C(()=>e.currentMenuOption),s=C(()=>e.collapsed);return{getMenuOptions:n,getBreadcrumbOptions:t,getMenuKey:o,getMenuTagOptions:l,getCurrentMenuOption:a,getCollapsed:s}},ze=()=>{const{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:l,updateMenuState:a,setupAppMenu:s}=Dt();return{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:l,updateMenuState:a,setupAppMenu:s}},W=()=>{const e=Ae(),n=C(()=>e.drawerPlacement),t=C(()=>e.primaryColorOverride),o=C(()=>e._appTheme),l=C(()=>e.appTheme),a=C(()=>e.menuTagSwitch),s=C(()=>e.breadcrumbSwitch),i=C(()=>e.localeLanguage),u=C(()=>e.lockScreenSwitch),d=C(()=>e.copyrightSwitch),p=C(()=>e.contentTransition),h=C(()=>e.watermarkSwitch),S=C(()=>e.watermarkConfig),f=C(()=>e.appRootRoute),m=C(()=>e.sideBarLogo),_=C(()=>e.keepAliveConfig),g=C(()=>e.menuConfig),v=C(()=>e.colorWeakness),c=C(()=>e.dynamicDocumentTitle);return{getDrawerPlacement:n,getPrimaryColorOverride:t,getAppTheme:o,getMenuTagSwitch:a,getBreadcrumbSwitch:s,getLocaleLanguage:i,getLockScreenSwitch:u,getCopyrightSwitch:d,getContentTransition:p,getWatermarkSwitch:h,getWatermarkConfig:S,getAppRootRoute:f,getSideBarLogo:m,getKeepAliveConfig:_,getMenuConfig:g,getAppThemeStr:l,getColorWeakness:v,getDynamicDocumentTitle:c}},U=()=>{const{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=Ae();return{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}},Un=()=>{const e=Vn();return{getSigningCallback:C(()=>e.signingCallback)}},Er=()=>{const{signing:e,logout:n,clearSigningCallback:t}=Vn();return{signing:e,logout:n,clearSigningCallback:t}},zr=()=>{const e=Nn();return{getKeepAliveInclude:C(()=>e.keepAliveInclude)}},Mr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:n}=Nn();return{setKeepAliveInclude:e,getKeepAliveInclude:n}},mi=e=>{const n=ta();e.use(n),n.use(ea)},$n=e=>{const{getSigningCallback:n}=Un(),{role:t}=e;return We!=null&&We.length&&We.includes(n.value.role)||!t||!(t!=null&&t.length)?!0:t?t.includes(n.value.role):!0},Ir=e=>{const{setupRouterLoadingBar:n,setupRouterGuard:t}=Ka;n&&Kl(e),t&&Ul(e)},Lr=M(),Dr=x({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=it(),{getSideBarLogo:n}=W();return{sideBarLogo:n,sideBarLogoClick:()=>{n.value&&n.value.url&&(n.value.jumpType==="station"?e.push(n.value.url):window.open(n.value.url))},TemplateLogo:({cursor:l})=>{if(!n.value)return null;if(typeof n.value.icon=="string")return r(P,{name:n.value.icon,size:"30",cursor:l},null);if(me(n.value.icon,"Object"))return ye(n.value.icon)}}},render(){const{sideBarLogo:e,collapsed:n,TemplateLogo:t,sideBarLogoClick:o}=this;return e!=null&&e.title?r("div",{class:["ray-menu__logo",e!=null&&e.url?"ray-menu__logo-url":null],onClick:o.bind(this),ref:Lr},[e!=null&&e.icon?n?r(Je,{placement:"right"},{trigger:()=>t({cursor:"pointer"}),default:()=>e.title}):t({cursor:"pointer"}):n?r(Je,{placement:"right"},{trigger:()=>{var l;return r("h1",{class:"n-menu-item-content"},[((l=e.title)==null?void 0:l[0])||null])},default:()=>e.title}):null,r(ho,{class:[n?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"'],type:"primary",size:18},{default:()=>[r(cn,null,{default:()=>[e.title]})]})]):null}}),Fr=x({name:"AppMenu",setup(){const e=M(null),{changeMenuModelValue:n,collapsedMenu:t,updateMenuState:o}=ze(),{getMenuConfig:l}=W(),{getMenuOptions:a,getCollapsed:s,getMenuKey:i}=be(),u=C({get:()=>(X().then(()=>{h()}),i.value),set:()=>{d.value&&ce("globalDrawerValue",!1)}}),{isTabletOrSmaller:d}=ct({observer:f=>{f&&o("collapsed",!1)}}),p=C({get:()=>ut("globalDrawerValue").value,set:f=>{ce("globalDrawerValue",f)}}),h=()=>{const f=u.value;f!=null&&X(()=>{var m,_;return(_=(m=e.value)==null?void 0:m.showOption)==null?void 0:_.call(m,f)})};return{isTabletOrSmaller:d,BasicMenu:()=>r(yo,{class:"app-menu__sider",showTrigger:!d.value,collapseMode:l.value.collapsedMode,collapsedWidth:l.value.collapsedWidth,onUpdateCollapsed:t.bind(this),width:l.value.menuWidth,nativeScrollbar:l.value.nativeScrollbar,ref:An,collapsed:s.value,onExpand:()=>{o("collapsed",!1)},onCollapse:()=>{o("collapsed",!0)},inverted:l.value.inverted},{default:()=>[l.value.menuSiderBarLogo?r(Dr,{collapsed:s.value},null):null,r(vo,{ref:e,class:"r-menu--app",keyField:"fullPath",value:u.value,"onUpdate:value":f=>u.value=f,options:a.value,indent:l.value.collapsedIndent,collapsed:s.value,collapsedIconSize:l.value.collapsedIconSize,collapsedWidth:l.value.collapsedWidth,onUpdateValue:(f,m)=>{n(f,m)},accordion:l.value.accordion,iconSize:l.value.iconSize,inverted:l.value.inverted},null)]}),modelGlobalDrawerValue:p}},render(){const{isTabletOrSmaller:e,BasicMenu:n}=this;return e?r(dn,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":t=>this.modelGlobalDrawerValue=t,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[r(n,null,null)]}):r(n,null,null)}});class Br{constructor(){Vt(this,"pendingRequest");this.pendingRequest=new Map}isAppending(n){var t;return((t=n.cancelConfig)==null?void 0:t.cancel)??!0}generateRequestKey(n){const{method:t,url:o}=n;return[o||"",t||"",JSON.stringify(n.params),JSON.stringify(n.data)].join("&")}addPendingRequest(n){var t;if(this.isAppending(n)){n.__CANCELER_TAG_RAY_TEMPLATE__="__CANCELER_TAG_RAY_TEMPLATE__";const o=this.generateRequestKey(n);if(this.pendingRequest.has(o))n.signal=(t=this.pendingRequest.get(o))==null?void 0:t.signal;else{const l=new AbortController;n.signal=l.signal,this.pendingRequest.set(o,l)}}}removePendingRequest(n){const t=this.generateRequestKey(n);this.pendingRequest.has(t)&&(this.pendingRequest.get(t).abort(),this.pendingRequest.delete(t))}cancelAllRequest(){this.pendingRequest.forEach(n=>{n.abort()})}}const yt={requestInstance:null,responseInstance:null},bt={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},Ge={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},jr=new Br,fi=()=>{const e=(i,u)=>{u==="requestInstance"?yt.requestInstance=i:yt.responseInstance=i},n=i=>yt[i],t=(i,u,d)=>{d==="ok"?bt[i]=u:Ge[i]=u},o=(i,u)=>u==="ok"?bt[i]:Ge[i],l=(i,...u)=>{Array.isArray(i)&&i.forEach(d=>{typeof d=="function"&&d(...u)})};return{createAxiosInstance:e,setImplement:t,getImplement:o,getAxiosInstance:n,beforeFetch:(i,u,d)=>{const p=d==="ok"?bt[u]:Ge[u],h=n(i),{MODE:S}=At();h&&l(p,h,S)},fetchError:(i,u,d)=>{const p=Ge[d],{MODE:h}=At();l(p,u,h)}}},Vr=x({name:"AppRequestCancelerProvider",setup(e,{expose:n}){ua(()=>{jr.cancelAllRequest()}),n()},render(){return r("div",{class:"app-style-provider"},null)}}),Kn=x({name:"LayoutContentWrapper",setup(){it();const{maximize:e}=Wn(),{getContentTransition:n}=W(),t=M(!1),o={opacitySpinning:"0"},{globalMainLayoutLoad:l,layoutContentMaximize:a,layoutContentSpinning:s}=qa();return{globalMainLayoutLoad:l,spinning:t,themeOverridesSpin:o,getContentTransition:n,layoutContentMaximize:a,maximize:e,layoutContentSpinning:s}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:n,layoutContentSpinning:t,maximize:o,spinning:l,themeOverridesSpin:a,getContentTransition:s}=this;return r(lt,{show:l||!e||t,description:"loading...",size:"large",themeOverrides:a,class:[n?"r-layout-full__viewer-content--maximize":null,"r-layout-full__viewer-content--maximize--light","r-layout-full__viewer-content--maximize--dark"]},{default:()=>[n?r("div",{class:"layout-content__maximize-out",onClick:()=>{o(!1)}},[r(P,{name:"out",size:"16",cursor:"pointer"},null)]):null,r(Vr,null,null),e?r(hr,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),Nr=Object.freeze(Object.defineProperty({__proto__:null,default:Kn},Symbol.toStringTag,{value:"Module"}));var Ur={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"5.0.3"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const $r=x({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=Ur;return{copyright:e}},render(){return this.copyright?r("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),Kr=x({name:"TooltipIcon",props:{...bo,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:n}){const t=l=>{n("click",l)};return{iconClick:t,Icon:()=>r(P,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:t.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?r(Je,this.$props,{trigger:()=>r(e,null,null),default:()=>this.tooltipText}):r(e,null,null)}}),Wr=x({name:"ThemeSegment",setup(){const{system:e}=gn(),{getAppThemeStr:n,getAppTheme:t}=W(),{updateSettingState:o}=U(),l=[{label:"深色",key:"dark",icon:()=>r(P,{name:"dark",size:"16"},null)},{label:"浅色",key:"light",icon:()=>r(P,{name:"light",size:"16"},null)},{label:"自动",key:"auto",icon:()=>r(P,{name:"system_os",size:"16"},null)}],a=C({get:()=>n.value==="auto"?"auto":t.value?"dark":"light",set:i=>{s(i,e.value)}}),s=(i,u)=>{if(i==="auto"){o("_appTheme",u==="dark"),o("appTheme","auto");return}o("_appTheme",i==="dark"),o("appTheme",i)};return fe(()=>{s(a.value,e.value)}),{options:l,modelAppTheme:a}},render(){const{options:e}=this;return r(Cr,{options:e,size:"small",width:"block",value:this.modelAppTheme,"onUpdate:value":n=>this.modelAppTheme=n},null)}}),qr={contentTransition:"scale",watermarkSwitch:!1,keepAliveConfig:{maxKeepAliveLength:10,setupKeepAlive:!0,keepAliveExclude:[]},menuConfig:{collapsedWidth:64,collapsedMode:"width",collapsedIconSize:16,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:16,menuWidth:272,inverted:!1,nativeScrollbar:!1},menuTagSwitch:!0,breadcrumbSwitch:!0,copyrightSwitch:!0,drawerPlacement:"right",colorWeakness:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15,xGap:0,yGap:0,cross:!0},dynamicDocumentTitle:!0},Gr=()=>qr,Ue=Symbol("segmentDrawer"),Hr=x({name:"SegmentViewsAppearance",setup(){const e=xe(Ue,{}),{changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=U();return{toggleColorWeakness:o,model:e,changePrimaryColor:n,updateSettingState:t}},render(){const{toggleColorWeakness:e,model:n,changePrimaryColor:t,updateSettingState:o}=this;return r(D,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(ne,null,{default:()=>[Y("系统主题")]}),r(Wr,null,null),r(ne,null,{default:()=>[Y("内置主题")]}),r(So,{showPreview:!0,swatches:ae.appThemeColors,value:n.primaryColorOverride.common.primaryColor,"onUpdate:value":l=>n.primaryColorOverride.common.primaryColor=l,onUpdateValue:t.bind(this)},null),r(ne,null,{default:()=>[Y("切换动画")]}),r($t,{value:n.contentTransition,"onUpdate:value":l=>n.contentTransition=l,options:ja,onUpdateValue:l=>{o("contentTransition",l)}},null),r(ne,null,{default:()=>[Y("配置入口出现位置")]}),r($t,{value:n.drawerPlacement,"onUpdate:value":l=>n.drawerPlacement=l,options:[{label:"右边",value:"right"},{label:"左边",value:"left"}],onUpdateValue:l=>{o("drawerPlacement",l)}},null),r(ne,null,{default:()=>[Y("其他设置")]}),r(de,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(I,{label:"面包屑"},{default:()=>[r(Q,{value:n.breadcrumbSwitch,"onUpdate:value":l=>n.breadcrumbSwitch=l,onUpdateValue:l=>o("breadcrumbSwitch",l)},null)]}),r(I,{label:"标签页"},{default:()=>[r(Q,{value:n.menuTagSwitch,"onUpdate:value":l=>n.menuTagSwitch=l,onUpdateValue:l=>o("menuTagSwitch",l)},null)]}),r(I,{label:"页底信息"},{default:()=>[r(Q,{value:n.copyrightSwitch,"onUpdate:value":l=>n.copyrightSwitch=l,onUpdateValue:l=>o("copyrightSwitch",l)},null)]}),r(I,{label:"色弱模式"},{default:()=>[r(Q,{value:n.colorWeakness,"onUpdate:value":l=>n.colorWeakness=l,onUpdateValue:l=>{o("colorWeakness",l),e(l)}},null)]})]})]})}}),Yr=x({name:"SegmentViewsCommon",setup(){const e=xe(Ue,{}),{updateSettingState:n}=U();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(D,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(ne,null,{default:()=>[Y("基础设置")]}),r(de,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(I,{label:"页面缓存"},{default:()=>[r(Q,{value:e.keepAliveConfig.setupKeepAlive,"onUpdate:value":t=>e.keepAliveConfig.setupKeepAlive=t,onUpdateValue:t=>n("keepAliveConfig",{setupKeepAlive:t})},null)]}),r(I,{label:"动态浏览器标题"},{default:()=>[r(Q,{value:e.dynamicDocumentTitle,"onUpdate:value":t=>e.dynamicDocumentTitle=t,onUpdateValue:t=>n("dynamicDocumentTitle",t)},null)]})]}),r(ne,null,{default:()=>[Y("缓存设置")]}),r(de,{labelPlacement:"top",showFeedback:!0,showRequireMark:!1,model:e.keepAliveConfig},{default:()=>[r(I,{label:"最大缓存数",feedback:C(()=>e.keepAliveConfig.maxKeepAliveLength<=0?"设置为【0】时缓存将会失效":"").value},{default:()=>[r(K,{disabled:!e.keepAliveConfig.setupKeepAlive,value:e.keepAliveConfig.maxKeepAliveLength,"onUpdate:value":t=>e.keepAliveConfig.maxKeepAliveLength=t,min:0,precision:0,showButton:!1,onUpdateValue:t=>n("keepAliveConfig",{maxKeepAliveLength:t})},null)]}),r(I,{label:"排除缓存"},{default:()=>[r(_o,{type:"success",value:e.keepAliveConfig.keepAliveExclude,"onUpdate:value":t=>e.keepAliveConfig.keepAliveExclude=t},null)]})]})]})}}),Xr=x({name:"SegmentViewsWatermark",setup(){const e=xe(Ue,{}),{updateSettingState:n}=U();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(D,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(ne,null,{default:()=>[Y("基础设置")]}),r(de,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(I,{label:"全屏水印"},{default:()=>[r(Q,{value:e.watermarkSwitch,"onUpdate:value":t=>e.watermarkSwitch=t,onUpdateValue:t=>n("watermarkSwitch",t)},null)]}),r(I,{label:"跨边界显示"},{default:()=>[r(Q,{value:e.watermarkConfig.cross,"onUpdate:value":t=>e.watermarkConfig.cross=t,onUpdateValue:t=>n("watermarkConfig",{cross:t})},null)]})]}),r(ne,null,{default:()=>[Y("个性化水印")]}),r(de,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(I,{label:"水印内容"},{default:()=>[r(pn,{value:e.watermarkConfig.content,"onUpdate:value":t=>e.watermarkConfig.content=t,onUpdateValue:t=>n("watermarkConfig",{content:t})},null)]}),r(I,{label:"字体尺寸"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.fontSize,"onUpdate:value":t=>e.watermarkConfig.fontSize=t,onUpdateValue:t=>n("watermarkConfig",{fontSize:t})},null)]}),r(I,{label:"字体行高"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.lineHeight,"onUpdate:value":t=>e.watermarkConfig.lineHeight=t,onUpdateValue:t=>n("watermarkConfig",{lineHeight:t})},null)]}),r(I,{label:"字体宽度"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.width,"onUpdate:value":t=>e.watermarkConfig.width=t,onUpdateValue:t=>n("watermarkConfig",{width:t})},null)]}),r(I,{label:"字体高度"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.height,"onUpdate:value":t=>e.watermarkConfig.height=t,onUpdateValue:t=>n("watermarkConfig",{height:t})},null)]}),r(I,{label:"x轴偏移"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.xOffset,"onUpdate:value":t=>e.watermarkConfig.xOffset=t,onUpdateValue:t=>n("watermarkConfig",{xOffset:t})},null)]}),r(I,{label:"x轴间隙"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.xGap,"onUpdate:value":t=>e.watermarkConfig.xGap=t,onUpdateValue:t=>n("watermarkConfig",{xGap:t})},null)]}),r(I,{label:"y轴偏移"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.yOffset,"onUpdate:value":t=>e.watermarkConfig.yOffset=t,onUpdateValue:t=>n("watermarkConfig",{yOffset:t})},null)]}),r(I,{label:"y轴间隙"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.yGap,"onUpdate:value":t=>e.watermarkConfig.yGap=t,onUpdateValue:t=>n("watermarkConfig",{yGap:t})},null)]}),r(I,{label:"旋转角度"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.rotate,"onUpdate:value":t=>e.watermarkConfig.rotate=t,onUpdateValue:t=>n("watermarkConfig",{rotate:t})},null)]})]})]})}}),Jr=x({name:"SegmentViewsCustomMenu",setup(){const e=xe(Ue,{}),{updateSettingState:n}=U();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(D,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(ne,{titlePlacement:"center"},{default:()=>[r(D,{wrap:!1,align:"center",size:[4,0]},{default:()=>[r(Je,{placement:"top",showArrow:!1},{trigger:()=>r(P,{name:"question",size:"16"},null),default:()=>"菜单更新是一个复杂、耗时的操作,请手动点击【更新菜单】按钮更新设置"}),r(mn,null,{default:()=>[Y("菜单样式")]})]})]}),r(de,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(I,{label:"每级菜单缩进"},{default:()=>[r(K,{value:e.menuConfig.collapsedIndent,"onUpdate:value":t=>e.menuConfig.collapsedIndent=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIndent:t})},null)]}),r(I,{label:"菜单图标尺寸"},{default:()=>[r(K,{value:e.menuConfig.iconSize,"onUpdate:value":t=>e.menuConfig.iconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{iconSize:t})},null)]}),r(I,{label:"折叠菜单图标尺寸"},{default:()=>[r(K,{value:e.menuConfig.collapsedIconSize,"onUpdate:value":t=>e.menuConfig.collapsedIconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIconSize:t})},null)]}),r(I,{label:"菜单宽度"},{default:()=>[r(K,{value:e.menuConfig.menuWidth,"onUpdate:value":t=>e.menuConfig.menuWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{menuWidth:t})},null)]}),r(I,{label:"折叠菜单宽度"},{default:()=>[r(K,{value:e.menuConfig.collapsedWidth,"onUpdate:value":t=>e.menuConfig.collapsedWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedWidth:t})},null)]}),r(I,{showFeedback:!1,showLabel:!1},{default:()=>[r(Z,{onClick:e.throttleSetupAppMenu,block:!0,type:"primary"},{default:()=>[Y("更新菜单")]})]})]}),r(ne,null,{default:()=>[Y("其他设置")]}),r(de,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(I,{label:"反转色菜单"},{default:()=>[r(Q,{value:e.menuConfig.inverted,"onUpdate:value":t=>e.menuConfig.inverted=t,onUpdateValue:t=>n("menuConfig",{inverted:t})},null)]}),r(I,{label:"菜单标题"},{default:()=>[r(Q,{value:e.menuConfig.menuSiderBarLogo,"onUpdate:value":t=>e.menuConfig.menuSiderBarLogo=t,onUpdateValue:t=>n("menuConfig",{menuSiderBarLogo:t})},null)]}),r(I,{label:"手风琴菜单"},{default:()=>[r(Q,{value:e.menuConfig.accordion,"onUpdate:value":t=>e.menuConfig.accordion=t,onUpdateValue:t=>n("menuConfig",{accordion:t})},null)]}),r(I,{label:"原生滚动条"},{default:()=>[r(Q,{value:e.menuConfig.nativeScrollbar,"onUpdate:value":t=>e.menuConfig.nativeScrollbar=t,onUpdateValue:t=>n("menuConfig",{nativeScrollbar:t})},null)]})]})]})}}),Zr=x({name:"SettingDrawer",props:wo,setup(){const{create:e}=tr(),{changePrimaryColor:n,updateSettingState:t}=U(),{getAppTheme:o,getPrimaryColorOverride:l,getMenuTagSwitch:a,getBreadcrumbSwitch:s,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:d,getKeepAliveConfig:p,getMenuConfig:h,getDrawerPlacement:S,getColorWeakness:f,getWatermarkConfig:m,getDynamicDocumentTitle:_}=W(),{setupAppMenu:g}=ze(),v=Et(g,300),c=le({menuTagSwitch:a.value,breadcrumbSwitch:s.value,copyrightSwitch:i.value,contentTransition:u.value,watermarkSwitch:d.value,keepAliveConfig:p.value,menuConfig:h.value,drawerPlacement:S.value,colorWeakness:f.value,primaryColorOverride:l.value,watermarkConfig:m.value,dynamicDocumentTitle:_.value,throttleSetupAppMenu:v}),y=()=>{e({preset:"dialog",title:"恢复默认配置",type:"warning",content:"点击【确认初始化】按钮会恢复默认系统配置,是否继续?",positiveText:"确认初始化",negativeText:"取消",onPositiveClick:()=>{to(Gr(),(T,w)=>{c[w]=T,t(w,T)}),v()}})};return yn(Ue,c),{changePrimaryColor:n,getAppTheme:o,getPrimaryColorOverride:l,updateSettingState:t,modelReactive:c,defaultSettingBtnClick:y}},render(){const{defaultSettingBtnClick:e,$props:n}=this,{trapFocus:t,autoFocus:o,nativeScrollbar:l,...a}=n;return r(dn,V(a,{trapFocus:!1,autoFocus:!1,width:320}),{default:()=>[r(Co,{title:"个性化配置",closable:!0},{default:()=>r(un,{type:"bar",animated:!0,defaultValue:"appearance"},{default:()=>[r(Ke,{name:"appearance",tab:"外观"},{default:()=>[r(Hr,null,null)]}),r(Ke,{name:"menu",tab:"菜单"},{default:()=>[r(Jr,null,null)]}),r(Ke,{name:"watermark",tab:"水印"},{default:()=>[r(Xr,null,null)]}),r(Ke,{name:"common",tab:"通用"},{default:()=>[r(Yr,null,null)]})]}),footer:()=>r(D,{justify:"flex-start"},{default:()=>[r(Z,{type:"warning",onClick:e},{icon:()=>r(P,{name:"reload"},null),default:()=>"初始化配置"})]})})]})}});function Qr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const es=x({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=ze(),{getBreadcrumbOptions:n}=be(),{isTabletOrSmaller:t}=ct();return{getBreadcrumbOptions:n,dropdownSelect:(a,s)=>{e(a,s)},breadcrumbItemClick:a=>{var s;if(!((s=a.children)!=null&&s.length)){const{meta:i={}}=a;i.sameLevel||e(a.fullPath,a)}},isTabletOrSmaller:t}},render(){let e;const{isTabletOrSmaller:n,getBreadcrumbOptions:t}=this,{dropdownSelect:o,breadcrumbItemClick:l}=this;return n?r("div",{style:"display: none;"},null):r(Oo,null,{default:()=>[r(Ia,{tag:"li",name:"breadcrumb",appear:!0},Qr(e=t.map(a=>r(To,{key:a.fullPath,onClick:l.bind(this,a)},{default:()=>{var s;return[r(ke,{labelField:"breadcrumbLabel",keyField:"fullPath",options:a.children&&((s=a.children)==null?void 0:s.length)>1?a.children:[],onSelect:o.bind(this)},{default:()=>r("span",null,[a.label&&typeof a.label=="function"?a.label():a.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function St(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const ts=x({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:n}){const{changeMenuModelValue:t,resolveOption:o}=ze(),{getRoutes:l}=it(),a=C({get:()=>e.show,set:b=>{n("update:show",b),b||f()}}),s=le({searchValue:null,searchOptions:[]}),i=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let u=0,d=u;const{isTabletOrSmaller:p}=ct(),h=M(!1),S="content-item--active",f=()=>{s.searchOptions=[],s.searchValue=null,u=0,d=u},m=b=>{a.value||(b.ctrlKey||b.metaKey)&&b.key==="k"&&(b.preventDefault(),b.stopPropagation(),f(),a.value=!0)},_=b=>{if(b)h.value=!0;else{h.value=!1,s.searchOptions=[];return}const E=l().reduce((k,O)=>{var $;const R=Fe(O,["children","meta","path","name"]),F=o({...R,fullPath:O.path}),{breadcrumbLabel:q}=F;return($=q==null?void 0:q.toLocaleLowerCase())!=null&&$.includes(b.toLocaleLowerCase())&&Pn(F)&&k.push(F),k},[]);setTimeout(()=>{s.searchOptions=E,X().then(()=>{v()}),h.value=!1},500)},g=b=>{if(b){const{meta:E}=b;E.windowOpen?window.open(E.windowOpen):(a.value=!1,t(b.fullPath,b),setTimeout(Yo,300))}},v=()=>{const b=s.searchOptions[u],E=s.searchOptions[d];b&&X().then(()=>{const k=et(`attr:data_path="${b.path}"`),O=E?et(`attr:data_path="${E==null?void 0:E.path}"`):null;if(O!=null&&O.length){const[R]=O;Xo(R,S)}if(k!=null&&k.length){const[R]=k;Tn(R,S)}})},c=b=>{const{icon:E}=b;return typeof E=="string"?r(P,{name:E,size:"24"},null):typeof E=="function"?()=>E:r(P,{name:"search",size:"24"},null)},y=b=>{b==="up"&&(u-=1,u<0&&(u=s.searchOptions.length-1)),b==="down"&&(u+=1,u>=s.searchOptions.length&&(u=0))},T=b=>{const E=b.key;switch((E==="ArrowUp"||E==="ArrowDown"||E==="Enter")&&(b.preventDefault(),b.stopPropagation()),d=u<=0?0:u,E){case"ArrowUp":y("up");break;case"ArrowDown":y("down");break;case"Enter":const k=s.searchOptions[u];k&&g(k);break}v()},w=({menuOption:b})=>r(D,V({align:"center",class:"content-item"},{onClick:g.bind(this,b),data_path:b.path}),{default:()=>[r("div",{class:"content-item-icon"},[c(b.meta)]),r("div",{class:"content-item-label"},[b.breadcrumbLabel]),r(P,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return fe(()=>{p.value&&(a.value=!1)}),je(window,"keydown",b=>{m(b),T(b)},!0),{...Re(s),modelShow:a,helperTipOptions:i,fuzzySearchMenuOptions:Et(_,300),searchItemClick:g,RenderPreIcon:c,isTabletOrSmaller:p,SearchItem:w,loading:h}},render(){const{isTabletOrSmaller:e,searchOptions:n,loading:t}=this,{SearchItem:o,fuzzySearchMenuOptions:l}=this;return e?r("div",{style:"display: none;"},null):r(rn,{show:this.modelShow,"onUpdate:show":a=>this.modelShow=a,transformOrigin:"center",displayDirective:"if"},{default:()=>[r("div",{class:"global-search global-search--dark global-search--light"},[r("div",{class:"global-search__wrapper"},[r(at,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>r(pn,{size:"large",value:this.searchValue,"onUpdate:value":a=>this.searchValue=a,clearable:!0,onInput:l.bind(this)},{prefix:()=>r(P,{name:"search",size:"24"},null)}),default:()=>{let a;return r(zt,null,{default:()=>[r(lt,{show:t},{default:()=>[n.length?r(D,{vertical:!0,size:[0,6],class:"global-search__card-content"},St(a=n.map((s,i)=>r(o,{menuOption:s,key:s.fullPath},null)))?a:{default:()=>[a]}):r(ko,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>r(D,{justify:"center",class:"global-search__empty-content"},{default:()=>[r(mn,null,{default:()=>[Y("没有搜索结果")]})]})})]})]})},action:()=>{let a;return r(D,{justify:"flex-start",align:"center",size:[16,0]},St(a=this.helperTipOptions.map(s=>r(D,{key:s.label,size:[4,0]},{default:()=>[s.icon.map(i=>r(D,{class:"item-icon",align:"center",justify:"center"},St(i)?i:{default:()=>[i]})),r(D,{class:"item-label",align:"center"},{default:()=>[s.label]})]})))?a:{default:()=>[a]})}})])])]})}}),ns=x({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const o=Jo();return o==="MacOS"?"⌘ + K":"CTRL + K"},click:o=>{const{onClick:l}=e;l&&B(l,o)}}},render(){const{getShortcutKeyAboutSystem:e,click:n,$t:t}=this;return r(Z,{bordered:!1,onClick:n.bind(this),round:!0,tertiary:!0,style:"margin-right: 16px"},{icon:()=>r(P,{name:"search",size:"16"},null),default:()=>r(D,{align:"center"},{default:()=>[t("headerTooltip.Search"),r("div",{class:"global-search-btn__label"},[e()])]})})}}),os=x({name:"AppAvatar",props:{...Ao,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number,Array],default:"medium"},avatarSize:{type:[String,Number],default:"medium"},vertical:{type:Boolean,default:!1}},setup(){const{getSigningCallback:e}=Un();return{getSigningCallback:e}},render(){const{getSigningCallback:e,avatarSize:n,spaceSize:t,$props:o,vertical:l}=this;return r(Z,{quaternary:!0,strong:!0,focusable:!1},{default:()=>[r(D,{align:"center",size:t,vertical:l},{default:()=>[r(Ro,V(o,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:n}),null),e==null?void 0:e.name]})]})}}),as=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],ls={logout:()=>{const{logout:e}=Er();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=U();e("lockScreenSwitch",!0)}},rs=e=>{const n=ls[e];n?n():window.$message.info("这个人很懒, 没做这个功能~")},ss=e=>{const{isTabletOrSmaller:n}=e,t=[],o=[{name:"menu",size:18,eventKey:"menu"}];return n.value?o:t},is=e=>{const{isTabletOrSmaller:n}=e,t=[{name:"fullscreen",size:18,eventKey:"screen"},{name:"github",size:18,eventKey:"github"},{name:"setting",size:18,eventKey:"setting"}],o=[...t],l=[...t];return n.value?l:o},us=x({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:n}=U(),{t}=Ne(),[o,{toggleFullscreen:l,isEnabled:a}]=Sn(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:i}=W(),u=M(!1),d=M(!1),{isTabletOrSmaller:p}=ct(),h=ut("globalDrawerValue"),S=C(()=>ss({isFullscreen:o,isTabletOrSmaller:p})),f=C(()=>is({isFullscreen:o,isTabletOrSmaller:p})),m={search:()=>{d.value=!0},setting:()=>{u.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{a||window.$message.warning(t("globalMessage.isEnabledFullscreen")),l()},lock:()=>{n("lockScreenSwitch",!0)},menu:()=>{ce("globalDrawerValue",!h.value)}};return{leftIconOptions:S,rightTooltipIconOptions:f,toolIconClick:v=>{var c;(c=m[v])==null||c.call(m)},showSettings:u,updateLocale:e,getDrawerPlacement:s,getBreadcrumbSwitch:i,globalSearchShown:d,isRenderVNode:v=>p.value?null:v}},render(){const{rightTooltipIconOptions:e,leftIconOptions:n,getDrawerPlacement:t,getBreadcrumbSwitch:o}=this,{toolIconClick:l,updateLocale:a,isRenderVNode:s}=this;return r(fn,{class:"layout-header"},{default:()=>[r(ts,{show:this.globalSearchShown,"onUpdate:show":i=>this.globalSearchShown=i},null),r(D,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[r(D,{align:"center",wrap:!1},{default:()=>[n.map(i=>r(Kr,{key:i.name,iconName:i.name,tooltipText:hn(i.tooltip)?i.tooltip.value:i.tooltip,customClassName:i.iconClass,onClick:l.bind(this,i.name)},null)),o?r(es,null,null):null]}),r(D,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[s(r(ns,{onClick:i=>{i.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(i=>r(Z,{class:"override-button__layout",quaternary:!0,size:"medium",key:i.name,onClick:l.bind(this,i.name),focusable:!1},{default:()=>[r(P,{name:i.name,size:16,cursor:"pointer"},null)]})),r(ke,{options:kn,onSelect:i=>a(String(i)),trigger:"click"},{default:()=>[r(Z,{quaternary:!0,class:"override-button__layout",focusable:!1},{default:()=>[r(P,{customClassName:"layout-header__method--icon",name:"language",size:"16",cursor:"pointer"},null)]})]}),r(ke,{options:as(),onSelect:rs.bind(this),trigger:"click"},{default:()=>[r(os,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),r(Zr,{show:this.showSettings,"onUpdate:show":i=>this.showSettings=i,placement:t},null)]})}}),cs=x({name:"LayoutHeaderWrapper",setup(){return{}},render(){return r(D,{size:[0,0]},{default:()=>[r(us,null,null)]})}});function ds(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const ps=x({name:"AppMenuTag",setup(e,{expose:n}){const t=pe("scrollRef"),{getMenuKey:o,getMenuTagOptions:l}=be(),{changeMenuModelValue:a}=ze(),{getRootPath:s}=Me(),{maximize:i}=Wn(),{reload:u}=ws(),{close:d,closeAll:p,closeRight:h,closeLeft:S,closeOther:f,checkCloseLeft:m,checkCloseRight:_}=qn(),g=["closeAll","closeRight","closeLeft","closeOther"];let v=1/0;const c={size:16},y=M([{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>r(P,{name:"close",size:c.size},null)},{label:"最大化当前页面",key:"maximizeLayoutContent",icon:()=>r(P,{name:"fullscreen_fold",size:c.size},null)},{label:"刷新当前页面",key:"reloadCurrentPage",icon:()=>r(P,{name:"reload",size:c.size},null)},{label:"新窗口打开",key:"windowOpenTab",icon:()=>r(P,{name:"shared",size:c.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>r(P,{name:"close_left",size:c.size},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>r(P,{name:"close_right",size:c.size},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>r(P,{name:"close_other",size:c.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>r(P,{name:"resize_h",size:c.size},null),disabled:!1}]),T=Qe(16),w={closeCurrentPage:()=>{o.value!==s.value&&d(v)},reloadCurrentPage:()=>{u()},closeAll:()=>{p()},closeRight:()=>{h(v)},closeLeft:()=>{S(v)},closeOther:()=>{f(v)},windowOpenTab:()=>{const A=l.value[v];if(!(A!=null&&A.fullPath))return;const z=A.fullPath.startsWith("#")?A.fullPath:`#${A.fullPath}`;window.open(z,"_blank")},maximizeLayoutContent:()=>{const A=l.value[v];i(!0),A&&ee(A)}},b=le({x:0,y:0,actionDropdownShow:!1}),E="menu_tag_data",k=ut("globalMainLayoutLoad"),O="n-scrollbar-container";let R=o.value;const F=M(!1),q=A=>{d(A)},$=(A,z)=>{for(const H of y.value)if(H.key===A){H.disabled=z;break}},ee=A=>{b.actionDropdownShow=!1,a(A.fullPath,A)},G=()=>{const A=document.getElementById(T);if(A)return Array.from(A.childNodes).find($e=>Zo($e,O).value)},he=A=>{var H;const z=G();if(z){const $e=z.scrollLeft||0,jt=A==="left"?Math.max(0,$e-200):$e+200;(H=t.value)==null||H.scrollTo({left:jt,behavior:"smooth"})}},te=A=>{b.actionDropdownShow=!1;const z=w[A];z==null||z()},dt=(A,z)=>{z.preventDefault(),v=A,b.actionDropdownShow=!1,X(()=>{b.x=z.clientX,b.y=z.clientY,b.actionDropdownShow=!0})},Bt=()=>{_(v)?$("closeRight",!1):$("closeRight",!0),m(v)?$("closeLeft",!1):$("closeLeft",!0)},Hn=()=>{v=l.value.findIndex(z=>z.fullPath===o.value),Bt()},Yn=A=>{l.value.length>1&&A.fullPath!==s.value&&(A.closeable=!0),F.value=!0},Xn=A=>{A.fullPath!==o.value&&(A.closeable=!1),F.value=!1},Jn=()=>{G()&&X().then(()=>{var z;(z=t.value)==null||z.scrollTo({left:99999,behavior:"smooth"})})},pt=()=>{X().then(()=>{const A=et(`attr:${E}="${o.value}"`);if(A!=null&&A.length){const[z]=A;X().then(()=>{var H;(H=t.value)==null||H.scrollTo({left:z.offsetLeft,behavior:"smooth"})})}})},Zn=()=>{i(!0)};return Pe(()=>l.value,(A,z)=>{y.value.forEach(H=>{g.includes(H.key)&&(A.length>1?H.disabled=!1:H.disabled=!0)}),z!=null&&z.length&&(A.length>(z==null?void 0:z.length)?Jn():A.length===(z==null?void 0:z.length)&&pt()),z===void 0&&pt()},{immediate:!0}),fe(()=>{b.actionDropdownShow&&Bt(),R!==o.value&&(R=o.value,pt())}),n(),{getMenuTagOptions:l,closeCurrentMenuTag:q,getMenuKey:o,menuTagClick:ee,moreOptions:y,scrollX:he,scrollRef:t,uuidScrollBar:T,actionDropdownSelect:te,actionState:b,menuTagContextMenu:dt,setCurrentContextmenuIndex:Hn,menuTagMouseenter:Yn,menuTagMouseleave:Xn,MENU_TAG_DATA:E,iconConfig:c,maximize:i,reload:u,globalMainLayoutLoad:k,maximizeBtnClick:Zn,isMouseInMenuTag:F}},render(){let e;const{iconConfig:n,uuidScrollBar:t,getMenuTagOptions:o,MENU_TAG_DATA:l,globalMainLayoutLoad:a,isMouseInMenuTag:s}=this,{maximizeBtnClick:i,closeCurrentMenuTag:u,scrollX:d,$t:p,menuTagClick:h,menuTagContextMenu:S,menuTagMouseenter:f,menuTagMouseleave:m,actionDropdownSelect:_,reload:g}=this;return r(fn,null,{default:()=>[r("div",{class:"menu-tag"},[r(ke,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:_.bind(this),onClickoutside:()=>{s||(this.actionState.actionDropdownShow=!1)}},null),r(D,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0},{default:()=>[r(Z,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.scrollX.bind(this,"left")},{icon:()=>r(P,{name:"expanded",width:n.size,height:n.size,customClassName:"menu-tag__left-arrow"},null)}),r(zt,V({xScrollable:!0,ref:"scrollRef"},{id:t},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[r(D,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},ds(e=o.map((v,c)=>r(Z,V({key:v.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:v.fullPath===this.getMenuKey?"primary":"default"},{onClick:h.bind(this,v),onContextmenu:S.bind(this,c),onMouseenter:f.bind(this,v),onMouseleave:m.bind(this,v),[l]:v.fullPath},{size:"small",focusable:!1}),{default:()=>r(bn,null,[r("span",null,{default:()=>{const{breadcrumbLabel:y,meta:{i18nKey:T}}=v;return T?p(T):y}}),r(Po,V({class:"menu-tag__btn-icon"},{onMousedown:u.bind(this,c)}),{default:()=>[r(P,{name:"close",size:"14"},null)]})])})))?e:{default:()=>[e]})]}),r(D,{align:"center",inline:!0,wrap:!1,size:[0,0]},{default:()=>[r(Z,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:d.bind(this,"right")},{icon:()=>r(P,{name:"expanded",width:n.size,height:n.size,style:{transform:"rotate(180deg)"}},null)}),r(Z,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:i},{icon:()=>r(P,{name:"fullscreen_fold",width:n.size,height:n.size},null)}),r(Z,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:()=>{g()}},{icon:()=>r(P,{name:"reload",width:n.size,height:n.size,customClassName:`${a?"":"menu-tag__right-setting--spinning"}`},null)}),r(In,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:18,keyboard:!1},{default:()=>[r(Z,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.setCurrentContextmenuIndex.bind(this)},{icon:()=>r(P,{name:"more",width:n.size,height:n.size},null)})]})]})]})])]})}}),ms=x({name:"LayoutFeatureWrapper",setup(){return{}},render(){return r(ps,null,null)}}),fs=e=>{const n=ft(e[0]),t=ft(e[1]),o=ft(e[2]),{height:l,width:a}=Mt();return C(()=>({"--window-width":`${a.value}px`,"--window-height":`${l.value}px`,"--layout-content-height":`calc(${l.value}px - ${n.height.value}px - ${t.height.value}px - ${o.height.value}px)`,"--layout-content-width":`${n.width.value}px`,"--layout-siderbar-height":`${n.height.value}px`,"--layout-menutag-height":`${t.height.value}px`,"--layout-footer-height":`${o.height.value}px`}))},tn=Io(J.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),gs=()=>({setLockAppScreen:t=>{tn.value=t},getLockAppScreen:()=>tn.value}),hs=x({name:"RLayout",setup(){const e=M(),n=M(),t=M(),{getMenuTagSwitch:o,getCopyrightSwitch:l}=W(),{getLockAppScreen:a}=gs(),s=fs([e,n,t]);return{getMenuTagSwitch:o,cssVarsRef:s,getLockAppScreen:a,layoutSiderBarRef:e,layoutMenuTagRef:n,layoutFooterRef:t,getCopyrightSwitch:l}},render(){const{getMenuTagSwitch:e,cssVarsRef:n,getCopyrightSwitch:t}=this,{getLockAppScreen:o}=this;return o()?null:r(xo,{class:"r-layout-full",style:[n],hasSider:!0,embedded:!0},{default:()=>[r(Fr,null,null),r(Kt,{class:"r-layout-full__viewer"},{default:()=>[r(cs,{ref:"layoutSiderBarRef"},null),e?r(ms,{ref:"layoutMenuTagRef"},null):null,r(Kt,{ref:Ce,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[r(Kn,null,null)]}),t?r($r,{ref:"layoutFooterRef"},null):null]})]})}}),vs=[{path:"/",name:"RLogin",component:()=>L(()=>import("./index-BVKRM6-W.js"),__vite__mapDeps([87,1,2,3,4,5,6,7,8,9,10,11,39,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,71,72,73,30,31,50,33,34,35,36,37,38,40,41,42,43,44,45,46,47,88]))},{path:"/",name:"RLayout",component:hs,children:[...xr(),{path:"/:catchAll(.*)",component:()=>L(()=>import("./index-D1ThNEs9.js"),__vite__mapDeps([89,1,2,3,4,5,6,7,8,9,10,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,90])),meta:{i18nKey:j("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],nt=ca({history:da(),routes:vs,scrollBehavior:e=>{$l(e)}}),gi=e=>{e.use(nt),Ir(nt)},Ft=()=>nt?{router:nt}:{router:{}},nn="YYYY-MM-DD HH:mm:ss",ys=()=>({locale:s=>{const i=Ua[s];i?se.locale(i):se.locale($a)},getStartAndEndOfDay:s=>{const{format:i=nn}=s??{},u=se(),d=u.startOf("day"),p=u.endOf("day"),h=u.format(i),S=d.format(i),f=p.format(i);return{today:u,startOfDay:d,endOfDay:p,formatToday:h,formatStartOfDay:S,formatEndOfDay:f}},format:(s,i)=>{const{format:u=nn}=i??{};return se(s).format(u)},isDayjs:s=>se.isDayjs(s),daysDiff:(s,i)=>{const u=se(s);return se(i).diff(u,"days")},isDateInRange:(s,i)=>{const{start:u,end:d}=i,p=se(s);return p.isAfter(u)&&p.isBefore(d)}});function ct(e){const{width:n,height:t}=Mt(e),o=M(!1),{observer:l}=e??{};return Qo(()=>{const{media:s=768}=e??{};o.value=n.value<=s,l==null||l(o.value,{width:n.value,height:t.value})}),{width:n,height:t,isTabletOrSmaller:Te(o)}}let _t=999,wt=!1;const ve="ELEMENT-FULLSCREEN-RAY",{width:Ct,height:Tt}=Mt(),on=document.createElement("style"),bs=(e,n)=>{const{beforeEnter:t,beforeExit:o,enter:l,exit:a,backgroundColor:s,zIndex:i,transition:u="all 0.3s var(--r-bezier)"}=n??{};let d=!1;const p={x:null,y:null},h=()=>{const g=ue(e);if(!g)return;const{left:v,top:c}=g.getBoundingClientRect();p.x===null&&p.y===null&&(p.x=-v,p.y=-c),De(document.body,{"--element-fullscreen-z-index":me(i,"Null")||me(i,"Undefined")?_t:i,"--element-fullscreen-transition":u,"--element-fullscreen-background-color":s,"--element-fullscreen-width":`${Ct.value}px`,"--element-fullscreen-height":`${Tt.value}px`,"--element-fullscreen-transform-x":`${p.x}px`,"--element-fullscreen-transform-y":`${p.y}px`});const y=`
[${ve}] {
position: fixed;
width: var(--element-fullscreen-width) !important;
height: var(--element-fullscreen-height) !important;
transform: translate(var(--element-fullscreen-transform-x), var(--element-fullscreen-transform-y)) !important;
transition: var(--element-fullscreen-transition);
z-index: var(--element-fullscreen-z-index) !important;
background-color: var(--element-fullscreen-background-color);
}
`;on.innerHTML=y,wt||document.head.appendChild(on)},S=()=>{const g=ue(e);t==null||t(),g&&(g.getAttribute(ve)||g.setAttribute(ve,ve),d||(d=!0,_t+=1),wt||(h(),wt=!0),g.style.transition=u,l==null||l())},f=()=>{o==null||o();const g=ue(e);g&&g.removeAttribute(ve),a==null||a()},m=()=>{const g=ue(e);g&&(g.getAttribute(ve)?f():S())},_=Pe(()=>[Ct.value,Tt.value],h);return Lt(()=>{const g=ue(e);g&&g.removeAttribute(ve),_t--,_()}),{enter:S,exit:f,toggleFullscreen:m,currentWindowSize:{width:Ct,height:Tt}}},Ot={svg:na,png:oa,jpeg:aa,blob:la,pixelData:ra,canvas:sa},hi=(e,n)=>{const{beforeCreate:t,created:o,createdError:l,finally:a,imageType:s}=n??{};return{create:u=>new Promise((d,p)=>{var S;const h=ue(e);if(t==null||t(h),!h)return l==null||l(),p("useDomToImage: element is undefined.");(S=Ot[u??s??"jpeg"])==null||S.call(Ot,h,n).then(f=>(o==null||o(f,h),d(f))).catch(f=>(l==null||l(f),p(f))).finally(()=>{a==null||a(h)})})}},vi=(e,n)=>({print:()=>{const o=ue(e)||e;Ko({...ot(n,["printable"]),printable:o})}}),Ss={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},_s=(e,n)=>{const t=M(e),o=ot(n,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size"]),a=M(Object.assign({},Ss,o,{onUpdatePage:c=>{var y;a.value.page=c,(y=t.value)==null||y.call(t)},onUpdatePageSize:c=>{var y;a.value.pageSize=c,a.value.page=1,(y=t.value)==null||y.call(t)}})),s=a.value.onUpdatePage,i=a.value.onUpdatePageSize,u=()=>a.value.itemCount,d=c=>{a.value.itemCount=c},p=()=>a.value.page,h=c=>{s(c)},S=()=>a.value.pageSize,f=c=>{i(c)},m=()=>a.value,_=e,g=c=>{t.value=c},v=()=>{const{pageSizes:c}=a.value;a.value.page=1,a.value.pageSize=(c==null?void 0:c[0])||10};return Lt(()=>{t.value=void 0}),[a,{getItemCount:u,setItemCount:d,getPage:p,setPage:h,getPageSize:S,setPageSize:f,getPagination:m,getCallback:_,setCallback:g,resetPagination:v}]},Wn=()=>({isLayoutContentMaximized:C(()=>ut("layoutContentMaximize").value),maximize:(t,o)=>{var i;const{scrollToOptions:l}=o??{},a=ue(Ce),{toggleFullscreen:s}=bs(a,o);ce("layoutContentMaximize",t),s(),l&&t&&((i=Ce==null?void 0:Ce.value)==null||i.scrollTo(l))}}),ws=()=>({reload:(o=800)=>{ce("globalMainLayoutLoad",!1),setTimeout(()=>ce("globalMainLayoutLoad",!0),o)},openSpin:()=>{ce("layoutContentSpinning",!0)},closeSpin:()=>{ce("layoutContentSpinning",!1)}}),yi=()=>({setWatermarkContent:l=>{const{getWatermarkConfig:a}=W(),s=Object.assign(a.value,{content:l}),{updateSettingState:i}=U();i("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:l}=U();l("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:l}=U();l("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:l}=W(),{updateSettingState:a}=U();a("watermarkSwitch",!l.value)}}),He=e=>{const{getPrimaryColorOverride:n}=W(),{updateSettingState:t}=U();t("primaryColorOverride",e?Object.assign({},n.value,ae.appNaiveUIThemeOverrides.dark,ae.appNaiveUIThemeOverridesCommon.dark):Object.assign({},n.value,ae.appNaiveUIThemeOverrides.light,ae.appNaiveUIThemeOverridesCommon.light))},bi=()=>{const e=()=>{const{getAppTheme:a}=W(),{t:s}=Ne();return{theme:a.value,themeI18nLabel:a.value?s("headerSettingOptions.ThemeOptions.Dark"):s("headerSettingOptions.ThemeOptions.Light"),themeLabel:a.value?"Dark":"Light"}};return{darkTheme:()=>{const{updateSettingState:a}=U();a("_appTheme",!0),a("appTheme","dark"),He(!0)},lightTheme:()=>{const{updateSettingState:a}=U();a("_appTheme",!1),a("appTheme","light"),He(!1)},toggleTheme:()=>{const{theme:a}=e(),{updateSettingState:s}=U();s("_appTheme",!a),s("appTheme",a?"light":"dark"),He(!a)},getAppTheme:e,syncSystemTheme:()=>{const{getAppTheme:a}=W(),{updateSettingState:s}=U(),{system:i}=gn();s("_appTheme",i.value==="dark"),s("appTheme","auto"),He(a.value)}}},we=(e,n)=>{const{getMenuTagOptions:t}=be();if(typeof e=="number"){if(isNaN(e)){console.warn(`${n}: The ${e} is NaN, expect number.`);return}if(e>t.value.length||e<-1){console.warn(`${n}: The incoming index ${e} did not match the corresponding item.`);return}return{option:t.value[e],index:e}}else if(typeof e=="string"){const o=t.value.findIndex(l=>l.fullPath===e);return o>-1?{option:t.value[o],index:o}:console.warn(`${n}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:o}=e,l=t.value.findIndex(a=>a.fullPath===o);if(l===-1){console.warn(`${n}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:l}}};function qn(){const{getMenuTagOptions:e,getMenuKey:n}=be(),{changeMenuModelValue:t,spliceMenTagOptions:o,setMenuTagOptions:l,resolveOption:a}=ze(),s=()=>e.value.findIndex(m=>m.fullPath===n.value);return{close:m=>{const _=we(m,"close");if(e.value.length!==1&&_){const{index:g,option:v}=_;if(o(g),v.fullPath===n.value){const c=e.value[g-1];c&&t(c.fullPath,c)}}},closeAll:()=>{o(0,e.value.length);const{getRootPath:m}=Me(),{router:{getRoutes:_}}=Ft(),g=_().find(v=>v.path===m.value);if(g){const v=Fe(g,xt),c=a(v);t(c.path,a({...c,fullPath:c.path}))}},closeRight:m=>{const _=we(m,"closeRight");if(_){const{option:g,index:v}=_,c=e.value.length-v,y=s();o(v+1,c),v<=y&&n.value!==g.fullPath&&t(g.fullPath,g)}},closeLeft:m=>{const _=we(m,"closeLeft");if(_){const{option:g,index:v}=_,c=s();o(0,v),c<=v&&n.value!==g.fullPath&&t(g.fullPath,g)}},closeOther:m=>{const _=we(m,"closeOther");if(_){const{option:g}=_;n.value!==g.fullPath?(o(0,e.value.length),t(g.fullPath,g)):l(g,!1)}},getCurrentTagIndex:s,checkCloseRight:m=>{const _=we(m,"checkCloseRight");if(_){const{index:g}=_,v=e.value.length-1;return!(g>=v)}return!1},checkCloseLeft:m=>{const _=we(m,"checkCloseRight");if(_){const{index:g}=_,v=e.value.length-1;return g===0?!1:g>0&&v>0}return!1}}}function Si(){return{navigationTo:(n,t)=>{const{router:{getRoutes:o,push:l,replace:a}}=Ft(),{isPush:s=!0,query:i}=t||{},u=d=>s?l({path:d,query:i}):a({path:d,query:i});if(typeof n=="number"){if(isNaN(n)){console.warn(`[navigationTo]: The ${n} is NaN, expect number.`);return}const{getMenuOptions:d}=be();if(n>d.value.length){console.warn(`[navigationTo]: The current ${n} exceeds the maximum number of menus.`);return}const p=d.value[n],h=S=>{if(S.children&&S.children.length>0){const{children:[f]}=S;h(f);return}u(S.fullPath)};h(p)}else if(typeof n=="string"){const d=o().find(p=>p.path===n);d?u(d.path):console.warn(`[navigationTo]: The path "${n}" is not found.`)}else u(n.fullPath)}}}function Me(){const{getAppRootRoute:e}=W(),{updateSettingState:n}=U(),t=e,o=C(()=>e.value.path),l=C(()=>e.value.name);return{getRootRoute:t,getRootPath:o,getRootName:l,setRootRoute:s=>{n("appRootRoute",Object.assign({},e.value,s))}}}const Cs=(e,n)=>{const{show:t,...o}=n;e.meta.extra=Object.assign({},e.meta.extra,{...o,show:t}),e.extra=Fn(e)},an=(e,n,t)=>{const o=jn(e,n);o&&Cs(o,t)},kt=(e,n,t)=>{const{getMenuOptions:o}=be();if(typeof e=="string")an(o.value,e,t);else if(me(e,"Object")){const{fullPath:l}=e;an(o.value,l,t)}else console.warn(`[useBadge ${n}]: target expect string or object.`)};function _i(){return{hidden:o=>{kt(o,"hidden",{show:!1})},show:o=>{kt(o,"show",{show:!0})},update:(o,l)=>{kt(o,"update",l)}}}const wi=()=>{const e=An.value,{scrollTo:n}=e||{};if(!n)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return n},Gn=()=>Ze(J.localeLanguage,"localStorage",{defaultValue:Va});export{Wn as $,Zs as A,ti as B,ai as C,$a as D,li as E,ui as F,vr as G,ri as H,_s as I,oi as J,pr as K,An as L,Xs as M,tr as N,Cr as O,pi as P,ii as Q,si as R,Lr as S,di as T,ys as U,jr as V,fi as W,ei as X,mr as Y,In as Z,L as _,hi as a,Si as a0,ws as a1,yi as a2,_i as a3,vi as b,wi as c,Qs as d,W as e,J as f,Ys as g,U as h,gs as i,Er as j,ct as k,os as l,ut as m,Js as n,ni as o,gi as p,Me as q,Ne as r,mi as s,P as t,bi as u,kn as v,ht as w,Ft as x,Hs as y,ci as z};