const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/en-US-CwlGQXIX.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-CDC3yd1M.js","js/@vue_reactivity@3.5.12-IcmYCeX3.js","js/@vue_shared@3.5.12--5_uv9t5.js","js/@vue_runtime-core@3.5.12-o4JnKqGq.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-DHsO9NF4.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-C5OYL2zc.js","js/evtd@0.2.4-CI_DDEu_.js","js/@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js","js/vooks@0.2.12_vue@3.5.12-fnTfirhD.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-CgYSV3BI.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-DcbFWgSD.js","js/@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js","js/utils-CozJMALc.js","js/interactjs@1.10.26-DZL_TZzP.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-DcSddqfC.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-DofREeSi.js","js/vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.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/zh-CN-CvShabvr.js","js/index-Y-FcIns6.js","js/index-CnbvNhnT.js","css/index-D_4DGt8i.css","js/index-DWx8AyMg.js","js/instance-nIExQa9a.js","js/axios@1.7.5-C8DqakIB.js","css/index-QAd2IBUs.css","js/BarcodeDemo-BXJroooI.js","js/index-CkpHVUoU.js","js/index-Dl1wA0be.js","js/index-C-If8jHb.js","js/index-Br4Wy2RB.js","css/index-DHYYVpM7.css","js/index-Bt0hNJeI.js","js/index-ma7T1XPs.js","js/index-RLmFcqh0.js","js/index-Cw1cSW0X.js","js/index-CyTGAiVw.js","js/index-mffIYrJp.js","js/index-3_6mCYvY.js","js/index-Gxtc1_K9.js","js/index-CXKTRpfx.js","js/vue3-next-qrcode@2.0.10_typescript@5.2.2-jc-XBHxJ.js","css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css","js/ray-dCjhX_JK.js","js/index-B-DmbCNN.js","css/index-B6yUFiKH.css","js/index-DKQ0UgNK.js","js/index-f23H9wre.js","js/index-B6Vex0Vv.js","css/index-Dig957GB.css","js/index-DHuxv_PD.js","js/index-BMHAQ_2t.js","css/index-Eq1L-L2-.css","js/TablePro-Bvcdca-s.js","js/mockjs@1.1.0-CxlURkif.js","js/index-CjTD2K12.js","js/index-DhmVa7aC.js","js/index-CChanisz.js","css/index-74sXJ5VP.css","js/index-CnxKNshD.js","css/index-b1h4j9PV.css"])))=>i.map(i=>d[i]); var Kn=Object.defineProperty;var Un=(e,t,n)=>t in e?Kn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Et=(e,t,n)=>Un(e,typeof t!="symbol"?t+"":t,n);import{s as st,c as Ue,t as Tt,i as Qt,p as Oe,o as Ot}from"./lodash-es@4.17.21-CeZG2a4n.js";import{z as zt,d as jt,N as Xe,g as Wn,a as qn,b as Gn,c as z,e as Je,m as Hn,f as Zt,u as Yn,S as Rt,h as Xn,i as ye,j as Jn,k as en,l as Re,n as Qn,o as Zn,p as eo,q as to,t as no,r as oo,s as ao,v as so,w as tn,x as We,y as nn,A as ro,B as lo,C as io,D as Te,E as co,F as je,G as uo,H as po,I as mo,J as De,K as ho,L as go,M as fo,O as yo,P as vo,Q as ke,R as bo,T as _o,U as on,V as So,W as Dt,X as wo}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{o as Co,u as Ae,a as To,b as Oo,c as rt,d as kt,e as Ro}from"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import{k as x,l as he,e as Q,q as ko,v as ve,a as an,s as Ao,u as H}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import{n as W,l as P,m as ae,j as w,w as be,f as xe,p as Po,k as Qe,q as sn,b as i,t as $,h as Ze,v as ce,i as rn,x as xo,F as ln,y as Mo,z as te,A as At,C as lt,D as Lo,E as we,S as Io,K as Eo,G as Nt,H as zo,I as jo,J as cn}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{d as Z}from"./dayjs@1.11.10-C8LoRVP6.js";import{p as Do}from"./print-js@1.6.0-BdoEj60G.js";import{u as un}from"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.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 No}from"./jsbarcode@3.11.6-DGNGFp02.js";import{g as Pe,i as se,s as Pt,a as _t,c as Vo,l as dn,b as pn,d as $o,e as V,r as ge,f as j,h as Bo,u as qe,q as Ge,j as Fe,k as mn,p as hn,m as xt,n as Vt,o as de,t as Fo,v as Ko,w as Uo,x as Wo,y as qo,z as ne}from"./utils-CozJMALc.js";import{i as $t}from"./interactjs@1.10.26-DZL_TZzP.js";import{s as Go}from"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import{d as et,c as Ho}from"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import{t as Yo,a as Xo,b as Jo,c as Qo,d as Zo,e as ea}from"./html-to-image@1.11.11-BOFdlgi9.js";import{u as tt,a as ta,o as na,c as oa,b as aa}from"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import{c as sa}from"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import{f as ra,g as la}from"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import{r as ia,u as Ce,i as ca,a as ua,b as da,c as pa,d as ma,e as ha,f as ga,g as fa,h as ya,j as va,k as ba,l as _a,m as Sa,n as wa,o as Ca,p as Ta,q as Oa,s as Ra}from"./echarts@5.5.0-CezqL3m-.js";import{T as ka,a as Aa}from"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";const Fl=(e,t)=>{if(typeof t!="string"||!t.trim())throw new TypeError("Expected prefix to be a non-empty string");const n={};return Object.keys(e).forEach(o=>{const s=e[o].default;let a=o.replace(`./${t}/`,"").replace(/^\.\//,"");const l=a.lastIndexOf(".");a=a.substring(0,l);const r=a.split("/"),c=r.shift(),u=r.join(".");c&&(u?(st(n,c,n[c]||{}),st(n[c],u,s)):st(n,c,s||{}))}),n},Pa="modulepreload",xa=function(e){return"/ray-template/"+e},Bt={},L=function(t,n,o){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=Promise.all(n.map(r=>{if(r=xa(r),r in Bt)return;Bt[r]=!0;const c=r.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${u}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":Pa,c||(p.as="script"),p.crossOrigin="",p.href=r,l&&p.setAttribute("nonce",l),document.head.appendChild(p),c)return new Promise((f,y)=>{p.addEventListener("load",f),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${r}`)))})}))}return s.then(()=>t()).catch(a=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a})},Ma=(e,t,n)=>{const o=e[t];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((s,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},La=async e=>{var n;const t={};for(const o of e){const s=await Ma(Object.assign({"../lang/en-US.ts":()=>L(()=>import("./en-US-CwlGQXIX.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-CvShabvr.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&&(t[a]=((n=s==null?void 0:s.default)==null?void 0:n.message)??{})}return t},Kl=e=>{switch(e){case"zh-CN":return{locale:zt,dateLocal:jt};case"en-US":return{locale:null,dateLocal:null};default:return{locale:zt,dateLocal:jt}}},Ul={max:5,closable:!1},Wl="loading",gn={setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:5},Ia={icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},ie={menuCollapsedWidth:64,menuCollapsedMode:"width",menuCollapsedIconSize:22,menuCollapsedIndent:24,menuAccordion:!1},ql="",F={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},Ea=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],Y={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#a6e4f7","#dbcb02","#18A058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"},appNaiveUIThemeOverrides:{dark:{},light:{}},appNaiveUIThemeOverridesCommon:{dark:{},light:{}},echartTheme:"macarons"},fn=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],za="zh-CN",ja="zh-CN",Da={"zh-CN":"zh-cn","en-US":"en"},Na="zh-cn",Gl={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)$/},Hl={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},me=x(null),yn=x(null),Va={setupRouterLoadingBar:!0,setupRouterGuard:!0},$a=["RLogin","ErrorPage","RayTemplateDoc"],Ne=["admin"],Yl=(e,t)=>{const n=x(0),o=x(0),s=x(!1),{clickOutside:a}={},l=f=>{s.value=f},r=f=>{f.preventDefault(),l(!1),W().then(()=>{const{clientX:y,clientY:g}=f;n.value=y,o.value=g,l(!0)})};a&&Co(e,f=>{a(f)});const c=Ae(e,"contextmenu",r,t),u=Ae(e,"click",()=>{l(!1)});return{stop:()=>{c(),u()},x:he(n),y:he(o),show:he(s),updateShow:l}},He=Q({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function oe(e,t,n){Object.hasOwn(He,e)&&(He[e]=t)}function nt(e){return he(ko(He,e))}function Ba(){return{...ve(he(He))}}let ee;const Fa=async()=>{const e=jn(),t=await La(fn);return sa({legacy:!1,locale:e,messages:t,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:ja})},Xl=async e=>{const t=await Fa();e.use(t),ee=t},Ft=(e,t)=>t,Me=e=>{if(!ee)return{t:a=>Ft(e,a),locale:a=>{}};const{t,...n}=ee.global;return{...n,t:(a,...l)=>a?!a.includes(".")&&!e?a:t(Ft(e,a),...l):"",locale:a=>{ee.mode==="legacy"?ee.global.locale=a:an(ee.global.locale)?ee.global.locale.value=a:ee.global.locale=a}}},D=e=>e,Ka={path:"/dashboard",component:()=>L(()=>import("./index-Y-FcIns6.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:D("menu.Dashboard"),icon:"dashboard",order:0}},Ua=Object.freeze(Object.defineProperty({__proto__:null,default:Ka},Symbol.toStringTag,{value:"Module"})),Wa={path:"/axios",name:"RAxios",component:()=>L(()=>import("./index-DWx8AyMg.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:D("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},qa=Object.freeze(Object.defineProperty({__proto__:null,default:Wa},Symbol.toStringTag,{value:"Module"})),Ga={path:"barcode",component:()=>L(()=>import("./BarcodeDemo-BXJroooI.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:D("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},Ha=Object.freeze(Object.defineProperty({__proto__:null,default:Ga},Symbol.toStringTag,{value:"Module"})),Ya={path:"/cache-demo",component:()=>L(()=>import("./index-CkpHVUoU.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:D("menu.CacheDemo"),icon:"other",order:3}},Xa=Object.freeze(Object.defineProperty({__proto__:null,default:Ya},Symbol.toStringTag,{value:"Module"})),Ja={path:"/context-menu",component:()=>L(()=>import("./index-Dl1wA0be.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:D("menu.ContextMenu"),icon:"other",order:2}},Qa=Object.freeze(Object.defineProperty({__proto__:null,default:Ja},Symbol.toStringTag,{value:"Module"})),Za={path:"/directive",component:()=>L(()=>import("./index-C-If8jHb.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:D("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},es=Object.freeze(Object.defineProperty({__proto__:null,default:Za},Symbol.toStringTag,{value:"Module"})),ts={path:"/echart",component:()=>L(()=>import("./index-Br4Wy2RB.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:D("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},ns=Object.freeze(Object.defineProperty({__proto__:null,default:ts},Symbol.toStringTag,{value:"Module"})),os={path:"/form",component:()=>L(()=>import("./index-Bt0hNJeI.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:D("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},as=Object.freeze(Object.defineProperty({__proto__:null,default:os},Symbol.toStringTag,{value:"Module"})),ss={path:"/iframe",component:()=>L(()=>import("./index-ma7T1XPs.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"}},rs=Object.freeze(Object.defineProperty({__proto__:null,default:ss},Symbol.toStringTag,{value:"Module"})),ls={path:"/mock-demo",component:()=>L(()=>import("./index-RLmFcqh0.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:D("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},is=Object.freeze(Object.defineProperty({__proto__:null,default:ls},Symbol.toStringTag,{value:"Module"})),cs={path:"/modal-demo",component:()=>L(()=>import("./index-Cw1cSW0X.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:D("menu.Modal"),icon:"other",order:3}},us=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"})),Ke=()=>L(()=>Promise.resolve().then(()=>Mr),void 0),ds={path:"/multi",component:Ke,meta:{i18nKey:D("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>L(()=>import("./index-CyTGAiVw.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:Ke,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>L(()=>import("./index-mffIYrJp.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:Ke,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>L(()=>import("./index-3_6mCYvY.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}}]}]}]},ps=Object.freeze(Object.defineProperty({__proto__:null,default:ds},Symbol.toStringTag,{value:"Module"})),ms={path:"/precision",component:()=>L(()=>import("./index-Gxtc1_K9.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:D("menu.CalculatePrecision"),icon:"other",order:2}},hs=Object.freeze(Object.defineProperty({__proto__:null,default:ms},Symbol.toStringTag,{value:"Module"})),gs={path:"/qrcode",component:()=>L(()=>import("./index-CXKTRpfx.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:D("menu.QRCode"),icon:"other",order:2}},fs=Object.freeze(Object.defineProperty({__proto__:null,default:gs},Symbol.toStringTag,{value:"Module"})),ys={path:"rely-about",component:()=>L(()=>import("./index-B-DmbCNN.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:D("menu.RelyAbout"),icon:"rely",order:999}},vs=Object.freeze(Object.defineProperty({__proto__:null,default:ys},Symbol.toStringTag,{value:"Module"})),bs={path:"/router-demo",component:Ke,meta:{i18nKey:D("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>L(()=>import("./index-DKQ0UgNK.js"),__vite__mapDeps([76,12,1,2,3,40,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,39,41,42,43,44,45,46,47])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>L(()=>import("./index-f23H9wre.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}}]},_s=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"})),Ss={path:"/scroll-reveal",component:()=>L(()=>import("./index-B6Vex0Vv.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:D("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},ws=Object.freeze(Object.defineProperty({__proto__:null,default:Ss},Symbol.toStringTag,{value:"Module"})),Cs={path:"/segment",component:()=>L(()=>import("./index-DHuxv_PD.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:D("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Ts=Object.freeze(Object.defineProperty({__proto__:null,default:Cs},Symbol.toStringTag,{value:"Module"})),Os={path:"/svg-icons",component:()=>L(()=>import("./index-BMHAQ_2t.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:D("menu.SvgIcon"),icon:"other",order:3}},Rs=Object.freeze(Object.defineProperty({__proto__:null,default:Os},Symbol.toStringTag,{value:"Module"})),ks={path:"/table-pro",component:()=>L(()=>import("./TablePro-Bvcdca-s.js"),__vite__mapDeps([83,12,1,2,3,4,5,6,7,8,9,10,11,32,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:D("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},As=Object.freeze(Object.defineProperty({__proto__:null,default:ks},Symbol.toStringTag,{value:"Module"})),Ps={path:"/table",component:()=>L(()=>import("./index-CjTD2K12.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:D("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},xs=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"})),Ms={path:"/template-hooks",component:()=>L(()=>import("./index-DhmVa7aC.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:D("menu.TemplateHooks"),icon:"other",order:1}},Ls=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"})),Is=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Ua,"/src/router/modules/demo/axios.ts":qa,"/src/router/modules/demo/barcode.ts":Ha,"/src/router/modules/demo/cache-demo.ts":Xa,"/src/router/modules/demo/context-menu.ts":Qa,"/src/router/modules/demo/directive.ts":es,"/src/router/modules/demo/echart.ts":ns,"/src/router/modules/demo/form.ts":as,"/src/router/modules/demo/iframe.ts":rs,"/src/router/modules/demo/mock.ts":is,"/src/router/modules/demo/modal.ts":us,"/src/router/modules/demo/multi-menu.ts":ps,"/src/router/modules/demo/precision.ts":hs,"/src/router/modules/demo/qrcode.ts":fs,"/src/router/modules/demo/rely.ts":vs,"/src/router/modules/demo/router-demo.ts":_s,"/src/router/modules/demo/scroll-reveal.ts":ws,"/src/router/modules/demo/segment.ts":Ts,"/src/router/modules/demo/svg-icons.ts":Rs,"/src/router/modules/demo/table-pro.ts":As,"/src/router/modules/demo/table.ts":xs,"/src/router/modules/demo/template-hooks.ts":Ls});return Object.keys(e).reduce((n,o)=>{const s=e[o].default;if(s)n.push(s);else throw new Error(`[combineRawRouteModules]: ${o} module must export default.`);return n},[])},Es=e=>e[0]==="/",vn=(e,t=[],n="")=>{var o;if(!Array.isArray(e))return[];for(const s of e){const a=n+(Es(s.path)?s.path:"/"+s.path);if((o=s.children)!=null&&o.length){vn(s.children,t,a);continue}else t.push({...s,path:a})}return t},zs=e=>Array.isArray(e)?vn(Ue(e)):[],js=e=>e.sort((t,n)=>{var a,l;const o=((a=t.meta)==null?void 0:a.order)??1,s=((l=n.meta)==null?void 0:l.order)??0;if(typeof o!="number"||typeof s!="number")throw new TypeError("orderRoutes error: order must be a number!");return o===s?t.name?n.name?t.name.localeCompare(n.name):-1:1:o-s}),Ds=e=>{const{beforeEach:t}=e,{getRootPath:n}=_e(),o=(s,a)=>s.path==="/"||a.path==="/login";t((s,a,l)=>{const r=Pe(F.token,"localStorage"),c=Pe(F.appMenuKey,"sessionStorage",{defaultValue:n.value}),{meta:u,name:p}=s;r!==null?o(s,a)?it(!0):!se(p,"Symbol")&&p&&$a.includes(p)?l():Ln(u)?o(s,a)?c?l(c):it(!0):l():it(!0):o(s,a)?l():l("/")})},it=(e=!0)=>{const{router:t}=Mt(),{push:n,replace:o}=t,{getRootPath:s}=_e();Pt(F.appMenuKey,s.value,"localStorage"),e?o(s.value):n(s.value)},Ns=e=>{var n;const{meta:t}=e;t!=null&&t.ignoreAutoResetScroll||(n=me.value)==null||n.scrollTo({top:0,left:0,behavior:"smooth"})},Vs=e=>{e.beforeEach(()=>{var t;(t=window.$loadingBar)==null||t.start()}),e.afterEach(()=>{var t;(t=window.$loadingBar)==null||t.finish()}),e.onError(()=>{var t;(t=window.$loadingBar)==null||t.error()})},bn=e=>{const{meta:t={}}=e,{hidden:n,sameLevel:o,env:s}=t,{MODE:a}=_t();return!(o||n||s&&typeof s=="string"&&s!==a||s&&Array.isArray(s)&&!s.includes(a))};var $s={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:"4.9.7"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const _n=et("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=$s,{locale:t}=Me(),{locale:n}=pl(),o=Q({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},appTheme:!1,menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:jn(),lockScreenSwitch:!1,copyrightSwitch:!0,contentTransition:"scale",watermarkSwitch:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15},appRootRoute:{name:"Dashboard",path:"/dashboard"},sideBarLogo:Object.assign({},Ia)}),s=r=>{t(r),n(r),o.localeLanguage=r,Pt(F.localeLanguage,r,"localStorage")},a=(r,c=.3)=>{const u=Vo(r,c),p={primaryColor:r,primaryColorHover:r,primaryColorPressed:r};o.primaryColorOverride.common=p;const f=document.body;f.style.setProperty("--ray-theme-primary-color",r),f.style.setProperty("--ray-theme-primary-fade-color",u)},l=(r,c,u)=>{Object.hasOwn(o,r)&&(o[r]=c),u==null||u()};return ra(()=>o.appTheme,r=>{r?o.primaryColorOverride=Object.assign({},o.primaryColorOverride,Y.appNaiveUIThemeOverrides.dark,Y.appNaiveUIThemeOverridesCommon.dark):o.primaryColorOverride=Object.assign({},o.primaryColorOverride,Y.appNaiveUIThemeOverrides.light,Y.appNaiveUIThemeOverridesCommon.light)},{immediate:!0}),{...ve(o),updateLocale:s,changePrimaryColor:a,updateSettingState:l}},{persist:{key:F.appPiniaSettingStore}}),Bs={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:()=>dn()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>pn()},onRegister:{type:[Function,Array],default:null}},Fs=$o(),Kt="__R_CHART_DOWN_LOAD_CHART__";Fs.forEach(e=>{ia(e.name,e.theme)});const Jl=P({name:"RChart",props:Bs,setup(e,{expose:t}){const{getAppTheme:n}=G(),o=ae("rayChartRef"),s=ae("rayChartWrapperRef"),a=Ao();let l,r;const{echartTheme:c}=Y;let u;const p=w(()=>[{label:"下载图片",key:Kt,disabled:!(a.value&&a.value.getDom())}]),f=w(()=>({"--ray-chart-width":V(e.width),"--ray-chart-height":V(e.height)})),y=x(!1);let g;const h={aria:e.showAria},_=async()=>{var O;Ce([ua,da,pa,ma,ha,ga,fa,ya]),Ce([va,ba,_a,Sa,wa,Ca]),Ce([Ta,Oa]),Ce([Ra]);try{Ce((O=e.use)==null?void 0:O.filter(Boolean))}catch(E){console.error("[RChart register error]: ",E)}},m=()=>{if(a.value&&R(),e.theme==="default"){e.autoChangeTheme?d("dark"):d("");return}if(e.theme)d(e.theme);else{const O=e.autoChangeTheme&&n.value?`${c}-dark`:c;d(O)}},S=O=>{let E=H(O);return E=(K=>Object.assign({},E,K))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),E},d=(O=c)=>{var Ee;const E=o.value,N=S(e.options),{height:K,width:B}=E.getBoundingClientRect(),{onSuccess:re,onError:Se}=e;try{a.value=ca(E,O,{width:B===0?200:void 0,height:K===0?200:void 0}),re&&j(re,a.value),e.nextTick?(a.value.setOption({}),W(()=>{var J;N&&((J=a.value)==null||J.setOption(N))})):N&&((Ee=a.value)==null||Ee.setOption(N))}catch(J){throw Se&&j(Se),new Error(`[RChart render error]: ${J}`)}finally{const{onFinally:J}=e;J&&j(J)}},v=()=>{var O;return!!((O=a.value)!=null&&O.isDisposed())},R=()=>{var O;v()||(O=a.value)==null||O.dispose()},T=()=>{a.value&&a.value.resize()},b=(O,E)=>{if(O===Kt&&!v()){const{filename:K,...B}=e.downloadOptions;Bo(a.value.getDataURL(B),K??`${new Date().getTime()}`)}const{onDropdownSelect:N}=e;N&&j(N,O,E)},C=()=>{var E;if(e.autoResize&&(l||(l=Tt(T,500)),r||(r=Oo(e.autoResizeObserverTarget||s,l))),(E=a.value)!=null&&E.getDom()||!y.value&&e.intersectionObserver)return;m(),g==null||g.stop();const{onRegister:O}=e;O&&a.value&&j(O,a.value,C,I)},I=()=>{R(),l==null||l.cancel(),r==null||r.stop(),g==null||g.stop(),g=null,l=null,r=null};return be(()=>n.value,()=>{e.autoChangeTheme&&(R(),m())}),xe(()=>{var O,E;e.intersectionObserver&&(g=To(e.intersectionObserverTarget||s,([N])=>{y.value=N.isIntersecting},e.intersectionOptions)),e.watchOptions?u=la(()=>e.options,N=>{var re;const K=S(N),B=Object.assign({},pn(),e.setChartOptions);(re=a.value)==null||re.setOption(K,B)},{deep:!0,throttle:e.watchOptionsThrottleWait}):u==null||u(),e.loading?(O=a.value)==null||O.showLoading(dn(e.loadingOptions)):(E=a.value)==null||E.hideLoading(),e.showAria!==h.aria&&a.value&&(a.value.setOption(S(e.options)),h.aria=e.showAria),y.value&&!v()&&C()}),t(),Po(async()=>{await _()}),Qe(()=>{C()}),sn(()=>{I(),u==null||u()}),{rayChartRef:o,cssVarsRef:f,rayChartWrapperRef:s,moreDropDownOptions:p,dropdownSelect:b}},render(){const{title:e,contentStyle:t,preset:n,moreDropDownOptions:o,dropdownSelect:s,bordered:a,dropdownOptions:l}=this,{cardExtra:r}=this.$slots;return n==="card"?i(Xe,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:t,bordered:a,embedded:!0},{default:ge(i("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:ge(e,{defaultElement:i("div",{style:"display: none;"},null)}),"header-extra":ge(r,{defaultElement:i(Cn,{iconSize:18,cursor:"pointer",options:l||o,trigger:"click",onSelect:s.bind(this),placement:"bottom-end"},null)})}):i("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[i("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),Ql=()=>{let e,t,n;const o=(c,u,p)=>{c&&(e=c,t=p,n=u)},s=()=>{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:t,render:n,echartInst:e}};return[o,{getChartInstance:s,isDisposed:()=>{var c;return!!((c=s().echartInst)!=null&&c.isDisposed())},dispose:()=>s().dispose.call(null),render:()=>s().render.call(null)}]},Ks={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},...Wn},Zl=P({name:"RCollapseGrid",props:Ks,setup(e){const t=x(!e.open),n=w(()=>({"--r-collapse-grid-action-align":e.actionAlign})),o=()=>{const{onUpdateOpen:a,"onUpdate:open":l}=e;t.value=!t.value,a&&j(a,t.value),l&&j(l,t.value)},s=a=>i("div",{class:"collapse-icon",onClick:o.bind(this)},[i("span",null,[a?e.collapseToggleText[0]:e.collapseToggleText[1]]),i(A,{customClassName:`collapse-icon--arrow ${a?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)]);return xe(()=>{t.value=!e.open}),{modelCollapsed:t,collapseClick:o,CollapseIcon:s,cssVars:n}},render(){const{$slots:{collapse:e,action:t,default:n},CollapseIcon:o,$props:s,modelCollapsed:a,xGap:l,yGap:r,collapsedRows:c,cssVars:u}=this;return i(Xe,{bordered:this.bordered,style:[u]},{default:()=>i(qn,$({class:"ray-collapse-grid"},s,{collapsed:a,xGap:l||12,yGap:r||12,collapsedRows:c}),{default:()=>[n==null?void 0:n(),i(Gn,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[i(z,{justify:"end",align:"center"},{default:()=>[t==null?void 0:t(),e?e(a):o(a)]})]})]})})}}),Us={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}},A=P({name:"RIcon",props:Us,setup(e){const t=w(()=>`#${e.prefix}-${e.name}`),n=w(()=>({"--ray-icon-width":e.width?V(e.width):V(e.size),"--ray-icon-height":e.height?V(e.height):V(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor,"--ray-icon-color":e.color}));return{symbolId:t,cssVars:n,iconClick:s=>{const{onClick:a}=e;a&&j(a,s)}}},render(){return i("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[i("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[i("use",$({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),Ws={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}},ei=P({name:"RIframe",props:Ws,setup(e,{expose:t}){const n=w(()=>({"--ray-iframe-frameborder":V(e.frameborder),"--ray-iframe-width":V(e.width),"--ray-iframe-height":V(e.height)})),o=ae("iframeRef"),s=x(!0),a=r=>{s.value=!1;const{onSuccess:c}=e;c&&j(c,o.value,r)},l=r=>{s.value=!1;const{onError:c}=e;c&&j(c,r)};return Ae(o,"load",a),Ae(o,"error",l),t({iframeInst:o}),{cssVars:n,iframeRef:o,spinShow:s}},render(){return i("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[i(Je,$(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>i("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)})])}}),qs={...Hn,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}},Gs=(e,t,n)=>{const{scheduler:o}=n??{};return new Promise(s=>{setTimeout(()=>{const a=t==="card"?".n-card-header__main":".n-dialog__title";if(e){const l=$t(e).draggable({inertia:!0,autoScroll:!0,allowFrom:a,modifiers:[$t.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:r=>{o==null||o(r)}}}).resizable(!1);s(l)}},30)})},Sn=(e,t)=>{const n=typeof e=="string"?document.querySelector(e):e;return new Promise((o,s)=>{if(n){n.setAttribute("can-drag","true");const{preset:a,dargCallback:l}=t;let{x:r,y:c}=t;Gs(n,a,{scheduler:u=>{const p=u.target;r+=u.dx,c+=u.dy,p.style.transform=`translate(${r}px, ${c}px)`,l==null||l(r,c,u)}}).then(u=>{o(u)})}else s()})},Hs="r-modal__preset-card--fullscreen",wn="r-modal",fe={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},ti=P({name:"RModal",props:qs,setup(e){const t=w(()=>({[fe.width]:V(e.width??600),[fe.cardWidth]:V(e.cardWidth??600),[fe.dialogWidth]:V(e.dialogWidth??446)})),n=qe();let o;const s={x:0,y:0},a=w(()=>e.preset==="card"&&e.fullscreen);return be(()=>e.show,l=>{l&&e.dad&&(e.preset==="card"||e.preset==="dialog")?W(()=>{const r=document.getElementById(n);r&&Sn(r,{preset:e.preset,x:s.x,y:s.y,dargCallback:(c,u)=>{s.x=c,s.y=u}}).then(c=>{o=c}),e.memo&&r&&(r.style.transform=`translate(${s.x}px, ${s.y}px)`)}):(o==null||o.unset(),o=null)},{immediate:!0}),{cssVars:t,isFullscreenCardType:a,uuidEl:n}},render(){const{$props:e,$slots:t,$attrs:n}=this,{preset:o,...s}=e,{cssVars:a,uuidEl:l,isFullscreenCardType:r}=this;return i(Zt,$({class:[wn,r?Hs:""],style:[a,r?"height: 100vh":""],preset:o},{id:l},s,n),{...t})}}),ni=()=>{const{create:e,destroyAll:t}=Yn();return{create:o=>{const{content:s,...a}=o;let l=s;a.preset==="card"&&a.fullscreen&&(l=()=>Ze(Rt,{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 s=="function"?s():s}));const{preset:r,dad:c,fullscreen:u,width:p,cardWidth:f,dialogWidth:y}=o,g=e({...a,content:l}),{key:h}=g,_={[fe.width]:V(p??600),[fe.cardWidth]:V(f??600),[fe.dialogWidth]:V(y??446)};return W(()=>{const[m]=Ge(`[internalkey="${h}"]`)||[];if(m){if(c&&Sn(m,{preset:r,x:0,y:0}),u&&r==="card"){const S=m.querySelector(".n-card__content");S&&Fe(S,{maxHeight:"calc(100vh - 9px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))",overflowY:"hidden",padding:"0"}),Fe(m,{width:"100%",height:"100vh"})}Fe(m,_),mn(m,wn)}}),g},destroyAll:t}},Ys={...Xn,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function Xs(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ce(e)}const Cn=P({name:"RMoreDropdown",props:Ys,render(){let e;const{iconSize:t,cursor:n,icon:o}=this,{default:s}=this.$slots;return i(ye,$(this.$props,this.$attrs,{placement:"bottom-start"}),Xs(e=ge(s,{defaultElement:i(A,{name:o,size:t,cursor:n},null)}))?e:{default:()=>[e]})}}),Le={...Jn,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}},X={tableIconSize:"18",tableKey:Symbol("r-table")},Js=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],Qs=P({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...Le},setup(e){return{size:x(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:s=>{const{onChangeSize:a}=e;a&&j(a,s)}}},render(){return i(en,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[i(A,{name:"adjustment",size:X.tableIconSize,cursor:"pointer"},null)]})}}),Zs=P({name:"TableFullscreen",setup(){const{wrapperRef:e}=rn(X.tableKey,{}),[t,{toggleFullscreen:n,isEnabled:o}]=un(e);return{toggleFullscreen:n,isEnabled:o}},render(){const{toggleFullscreen:e,isEnabled:t,$t:n}=this;return i(A,{name:"fullscreen",size:X.tableIconSize,cursor:"pointer",onClick:()=>{t||window.$message.warning(n("globalMessage.isEnabledFullscreen")),e()}},null)}}),er=()=>i(A,{name:"draggable",size:14,cursor:"grab"},null),Ut=({icon:e,title:t,onClick:n,customClassName:o})=>i(Re,{showArrow:!1},{trigger:()=>i(A,{name:e,size:X.tableIconSize,cursor:"pointer",customClassName:o,onClick:n==null?void 0:n.bind(null)},null),default:()=>t}),St=(e,t)=>{if(!t)return[null,null];for(let n=0;nUe(e.columns).filter(c=>c.type?(t=c,!1):!0).map((c,u)=>{const{key:p,title:f,children:y,fixed:g,isResizable:h,..._}=c,m=g==="left",S=g==="right",d={..._,title:f,key:p,fixed:g,isLeftFixedActivated:m,isRightFixedActivated:S,isResizable:h};return{...d,suffix:()=>i(z,{style:"padding-left: 32px;"},{default:()=>[i(Ut,{icon:"row_head",title:"固定在列首",customClassName:m?ct:"",onClick:a.bind(this,"left",d,u)},null),i(Re,{showArrow:!1},{trigger:()=>i(A,{name:"resize_h",size:X.tableIconSize,cursor:"pointer",customClassName:h?ct:"",onClick:s.bind(this,d,u)},null),default:()=>"修改列宽"}),i(Ut,{icon:"row_end",title:"固定在列尾",customClassName:S?ct:"",onClick:a.bind(this,"right",d,u)},null)]})}}),set:()=>{}}),o=r=>{const{onUpdateColumn:c}=e;c&&j(c,r)},s=(r,c)=>{r.isResizable=!r.isResizable,r.resizable=r.isResizable,n.value[c]=r,o(n.value)},a=(r,c,u)=>{const p=`${r}FixedActivated`,f=`${r==="left"?"right":"left"}FixedActivated`;c[f]=!1,c[p]=!c[p],c[p]?c.fixed=r:c.fixed=void 0,n.value[u]=c,o(n.value)};return{treeDataSource:n,treeDrop:({node:r,dragNode:c,dropPosition:u})=>{const[p,f]=St(c,n.value);if(p===null||f===null)return;p.splice(f,1);const[y,g]=St(r,n.value);y===null||g===null||(u==="before"?y.splice(g,0,c):y.splice(g+1,0,c),Qt(t)||y.unshift(t),o(y))}}},render(){return i(Re,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>i(A,{name:"setting",size:X.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>i(Qn,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:er.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),nr=P({name:"TablePrint",props:Le,setup(e){const{wrapperRef:t}=rn(X.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:o={},domToImageOptions:s}={},title:a}=e;(o.documentTitle===""||o.documentTitle===void 0||o.documentTitle===null)&&(o.documentTitle=typeof a=="string"?a:""),hn(t,{printOptions:o,domToImageOptions:s})}}},render(){return i(A,{name:"print",size:X.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),or=P({name:"TablePropsSelect",props:{...Le,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const t=x(!1),n=x([]),o=a=>{const{onPopselectChange:l}=e;l&&j(l,a)};return(()=>{const{striped:a,bordered:l,onInitialed:r}=e;a&&n.value.push("striped"),l&&n.value.push("bordered"),r&&j(r,n.value)})(),{propsPopselectValue:n,popoverShow:t,updatePopselectValue:o}},render(){return i(en,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:Js,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[i(A,{name:"expanded",size:X.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function ar(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ce(e)}const oi=P({name:"RTable",inheritAttrs:!1,props:Le,setup(e,t){const{expose:n,emit:o}=t,s=ae("rTableInst"),a=ae("wrapperRef"),l=qe(16),r=qe(16),c=Q({x:0,y:0,showContextMenu:!1}),u=Q({size:e.size}),p=x(Object.assign({striped:!1,bordered:!1},Oe(e,"striped","bordered"))),f=(d,v)=>{const{onContextMenuClick:R}=e;R&&j(R,d,v),c.showContextMenu=!1},y=(d,v)=>{var T;return{...(T=e.rowProps)==null?void 0:T.call(e,d,v),onContextmenu:e.disabledContextMenu?void 0:b=>{b.preventDefault(),c.showContextMenu=!1,W().then(()=>{c.showContextMenu=!0,c.x=b.clientX,c.y=b.clientY})}}},g=d=>{u.size=d},h=d=>{const{onUpdateColumns:v,"onUpdate:columns":R}=e;v&&j(v,d),R&&j(R,d)},_=()=>{const{toolOptions:d}=e;return d==null?void 0:d.filter(Boolean).map(v=>typeof v=="function"?v():v)},m=d=>{Object.keys(p.value).forEach(R=>{p.value[R]=d.includes(R)})},S=d=>{const{tool:v}=d;if(!v)return;const R=()=>i(z,{align:"center"},{default:()=>[i(nr,d,null),i(Qs,$(d,{onChangeSize:g.bind(this)}),null),i(Zs,null,null),i(tr,$(d,{onUpdateColumn:h.bind(this)}),null),i(or,$(d,{onPopselectChange:m.bind(this),onInitialed:m.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let T;return i(z,{align:"center"},ar(T=_())?T:{default:()=>[T]})}:()=>i(z,{align:"center"},{default:()=>[R(),_()]}):R};return Qe(()=>{const{onRegister:d}=e;d&&s.value&&j(d,s.value,{uuidTable:r,uuidWrapper:l,wrapperRef:a})}),xo(X.tableKey,{uuidTable:r,uuidWrapper:l,wrapperRef:a}),n(),{uuidWrapper:l,uuidTable:r,contextMenuReactive:c,rTableInst:s,combineRowProps:y,contextMenuSelect:f,privateReactive:u,tool:S,wrapperRef:a,propsPopselectValue:p}},render(){const{$props:e,$attrs:t,wrapperBordered:n,uuidWrapper:o,privateReactive:s,disabledContextMenu:a,contextMenuReactive:l,contextMenuOptions:r,uuidTable:c,title:u,$slots:p,propsPopselectValue:f,renderWrapperHeader:y}=this,{class:g}=t,{tool:h,combineRowProps:_,contextMenuSelect:m}=this;return i(Xe,$(e.cardProps,{id:o},{ref:"wrapperRef",bordered:n,class:g}),{default:()=>i(ln,null,[i(Zn,$({id:c},t,e,f,{rowProps:_.bind(this),size:s.size,ref:"rTableInst"}),{...p}),a?null:i(ye,{show:l.showContextMenu,placement:"bottom-start",trigger:"manual",x:l.x,y:l.y,options:r,onClickoutside:()=>l.showContextMenu=!1,onSelect:m.bind(this)},null)]),header:y?ge(u,{defaultElement:i("div",{style:"display: none;"},null)}):null,"header-extra":h(e),footer:()=>{var S;return(S=p.tableFooter)==null?void 0:S.call(p)},action:()=>{var S;return(S=p.tableAction)==null?void 0:S.call(p)}})}}),ai=()=>{const e=x();let t={};const n=(g,h)=>{g&&(e.value=g,t=h)},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[n,{getTableInstance:o,clearFilters:()=>o().clearFilters.call(null),clearSorter:()=>o().clearSorter.call(null),downloadCsv:g=>o().downloadCsv.call(null,g),filters:g=>o().filters.call(null,g),page:g=>o().page.call(null,g),scrollTo:g=>o().scrollTo(g),sort:(g,h)=>o().sort.call(null,g,h),print:g=>{const{uuidWrapper:h}=t;if(h){const _=document.getElementById(h);hn(_,g)}},filter:g=>o().filter.call(null,g)}]},Tn=(e,t,n)=>{var o;if(e.length)for(const s of e){if(s[t]===n)return s;if((o=s==null?void 0:s.children)!=null&&o.length){const a=Tn(s.children,t,n);if(a)return a}}},Wt=e=>{const t=H(e);return t?t.findIndex(o=>{const{type:s,multiple:a}=o;if(s==="selection"&&(a==null||a===!0))return!0})!==-1:!0},sr=(e,t,n,o)=>{const s=H(e);return s?t.reduce((a,l)=>{const r=H(n).findIndex(u=>u[o]===l);if(r!==-1)return a.push(H(n)[r]),a;const c=s.findIndex(u=>u[o]===l);return c!==-1&&a.push(s[c]),a},[]):n},si=(e,t,n)=>{const o=x([]),s=x([]),{rowKey:a="key",onChange:l}=n||{},r=w(()=>Wt(t)),c=(h,_,m)=>{o.value=h,s.value=H(sr(e,h,s,a)),l==null||l(h,s.value,m),Wt(t)},u=()=>o.value,p=()=>s.value,f=()=>{o.value=[],s.value=[],l==null||l(o.value,s.value,{row:void 0,action:"uncheckAll"})},y=h=>{if(h==null)return;let _;o.value=o.value.filter(m=>m!==h),s.value=s.value.filter(m=>m[a]===h?(_=m,!1):!0),l==null||l(o.value,s.value,{row:_,action:"uncheck"})},g=h=>{if(o.value.includes(h))return;const _=!r.value&&o.value.length>=1,m=Tn(H(e)||[],a,h);_?o.value=[h]:o.value.push(h),m&&(_?s.value=[m]:s.value.push(m),l==null||l(o.value,s.value,{row:m,action:"check"}))};return xt(()=>{f()}),[o,{checkedRows:s,checkedRowKeysBind:c,getKeys:u,getRows:p,clearAll:f,clearKey:y,selectKey:g}]},rr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},lr=P({name:"RTransitionComponent",__name:"index",props:Mo({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},rr),setup(e){const{getKeepAliveInclude:t}=wr(),{setupKeepAlive:n,maxKeepAliveLength:o,keepAliveExclude:s}=gn;return(a,l)=>{const r=Lo("RouterView");return te(),At("div",null,[i(r,null,{default:lt(({Component:c,route:u})=>[c?(te(),we(ka,{key:0,name:a.transitionPropName,mode:a.transitionMode,appear:a.transitionAppear},{default:lt(()=>[(te(),we(Io,null,{default:lt(()=>[H(n)?(te(),we(Eo,{key:0,max:H(o),include:H(t),exclude:H(s)},[(te(),we(Nt(c),{key:u.fullPath}))],1032,["max","include","exclude"])):(te(),we(Nt(c),{key:u.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):zo("",!0)]),_:1})])}}}),ir={...eo,onRegister:{type:[Function,Array],default:null}},ri=P({name:"RForm",props:ir,setup(e,{expose:t}){const n=ae("formRef");return Qe(()=>{const{onRegister:o}=e;o&&n.value&&j(o,n.value)}),t(),{formRef:n}},render(){const{$attrs:e,$props:t,$slots:n}=this;return i(to,$(e,t,{ref:"formRef"}),{...n})}}),li=(e,t)=>{const n=x(),o=u=>{u&&(n.value=u)},s=()=>{if(!n.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 n.value};return[o,{getFormInstance:s,validate:(u,p)=>s().validate.call(null,u,p),restoreValidation:()=>s().restoreValidation.call(null),formModel:()=>Ue(e)||{},formRules:()=>Ue(t)||{}}]},cr=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],ur={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},dr=Ot({...no,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...cr);function pr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ce(e)}const wt=e=>{const{icon:t,label:n}=e;return t?i(z,{align:"center",wrap:!1,size:"small"},{default:()=>[i(t,null,null),i("div",null,[n])]}):n},mr=e=>{if(typeof e.popover=="string")return i(Re,null,{trigger:()=>wt(e),default:()=>e.popover});if(se(e.popover,"Object")){const{popover:t}=e,{label:n,...o}=t;return i(Re,o,{trigger:()=>wt(e),default:()=>n})}},ii=P({name:"RSegment",props:dr,setup(e,{expose:t}){const n=w(()=>{const{width:o}=e;let s="";switch(o){case"block":s="100%";break;case"fitContent":s="fit-content";break;default:s=typeof o=="number"?V(o):"fit-content"}return{"--r-segment-width":s}});return t(),{cssVars:n}},render(){let e;const{$props:t,options:n,cssVars:o,themeOverrides:s}=this;return i(ao,$(t,{ref:"segmentRef",style:[o],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},ur,s)}),pr(e=n.map(a=>i(oo,{key:a.key,name:a.key,tab:a.popover?mr(a):wt(a),disabled:a.disabled},{...a.slots})))?e:{default:()=>[e]})}}),hr={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=P({name:"RBarcode",props:hr,setup(e){const t=ae("barcodeRef"),n=w(()=>({"--r-barcode-width":V(e.width),"--r-barcode-height":V(e.height)}));let o;const s=()=>{try{const{format:a,text:l,options:r,onSuccess:c}=e,u=Object.assign({},r,{format:a});No(t.value,l!=null?l.toString():"",u),c&&j(c,l,a,r)}catch(a){const{onError:l}=e;l&&j(l,a)}finally{const{onFinally:a}=e;a&&j(a)}};return xe(()=>{e.watchText?o=be(()=>e.text,s):o==null||o()}),Qe(()=>{s()}),sn(()=>{o==null||o()}),{barcodeRef:t,cssVars:n}},render(){const{barcodeRender:e,loading:t,cssVars:n}=this,o=["r-barcode",{"r-barcode--loading":t}];return i(Je,{class:"r-barcode-spin",show:t},{default:()=>[e==="canvas"?i("canvas",{class:o,style:n,ref:"barcodeRef"},null):i("svg",{class:o,style:n,ref:"barcodeRef"},null)]})}});var gr={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:"4.9.7"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const fr=(e,t,n)=>!e||typeof e!="object"?!1:e[t]===n,On=(e,t,n)=>{const o=[];if(fr(e,t,n))return o.push(e),o;if(e.children&&e.children.length>0)for(const s of e.children){const a=On(s,t,n);a.length>0&&o.push(e,...a)}return o},yr=(e,t,n)=>{const o=[];for(const s of e){const a=On(s,t,n);a.length>0&&o.push(...a)}return o},qt=e=>{const{breadcrumbLabel:t}=e;if(!t)return;const{layout:{sideBarLogo:n}}=gr,o=n?n.title:"";document.title=t+" - "+o},vr=e=>{const{meta:{icon:t}}=e;if(!t)return;if(se(t,"Object"))return()=>t;const n=Ze(A,{name:t,size:ie.menuCollapsedIconSize,cursor:"pointer"},{});return()=>n},Rn=e=>{const{meta:{extra:t}}=e;if(!t)return;const{show:n}=t;if(n===!1)return;const{t:o}=Me(),{label:s,icon:a,type:l,i18nLabel:r}=t,c={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},u=()=>r?o(r):s||null,p=()=>a&&(r||s)||!a&&(r||s)?null:{"padding-right":"0"};if(se(t,"Object"))return()=>Ze(so,{...c,type:l||"primary",style:p()},{default:()=>u(),icon:()=>a})},Gt=()=>{const{getRootPath:e}=_e();return Pe(F.appMenuKey,"sessionStorage",{defaultValue:e.value})},kn=()=>js(Is()),br=()=>zs(kn()),Ct=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let Ve;const An=(e,t)=>{var n;if(Ve&&Vt(Ve.fullPath,t))return Ve;for(const o of e){if(Vt(o.fullPath,t))return Ve=o,o;if((n=o.children)!=null&&n.length){An(o.children,t);continue}}},Pn=et("menu",()=>{const{push:e,getRoutes:t}=tt(),n=ta(),{t:o}=Me(),{setKeepAliveInclude:s}=Cr(),a=Q({menuKey:Gt(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),l=x(!0),r=(d,v)=>{Object.hasOwn(a,d)&&(a[d]=v)},c=d=>{const{meta:v}=d,{i18nKey:R,noLocalTitle:T}=v,b=w(()=>R?o(`${R}`):T),C={...d,key:d.fullPath,label:()=>Ze(tn,null,{default:()=>b.value}),breadcrumbLabel:b.value},I=Object.assign({},C,{icon:vr(d),extra:Rn(d)});return d.fullPath===Gt()&&(a.currentMenuOption=I),I.show=bn(I),I},u=d=>{a.breadcrumbOptions=yr(a.options,"fullPath",d)},p=(d,v=!0)=>{const T=Array.isArray(d)?[...d]:[d];v?a.menuTagOptions.push(...T):a.menuTagOptions=T},f=(d,v)=>{a.menuTagOptions.find(T=>T.fullPath===d)||a.menuTagOptions.push(v)},y=(d,v,R)=>{const{meta:T}=v;if(T.windowOpen)window.open(T.windowOpen);else{e({path:String(d),query:R});const{sameLevel:b}=T;if(s(v),qt(v),!b)f(d,v),u(d),a.menuKey=d,a.currentMenuOption=v,Pt(F.appMenuKey,d);else{const C=Oe(c(v),Ct);a.breadcrumbOptions.find(O=>O.key===C.key)||a.breadcrumbOptions.push({...C,fullPath:String(C.key)})}}},g=async(d,v)=>{const[R]=d.split("?"),T=t().find(b=>b.path===R);if(!((T==null?void 0:T.path)==="/"||!(T!=null&&T.path)||(T==null?void 0:T.path)==="/login")&&T){const b=Oe(T,Ct);y(R,c({...b,fullPath:b.path}),v)}},h=()=>new Promise(d=>{const v=(R,T)=>{var C;const b=[];for(const I of R){let O=`${T.endsWith("/")?T:T+"/"}${I.path}`;if(O=O.replace(/\/+/g,"/"),(C=I.children)!=null&&C.length)I.children=v(I.children,O);else if(!Ln(I.meta))continue;b.push(c({...I,fullPath:O}))}return b};if(a.options=v(kn(),""),a.currentMenuOption){const{currentMenuOption:R}=a;a.breadcrumbOptions.length||u(R.key),f(R.fullPath,R),qt(R)}d()}),_=d=>a.collapsed=d,m=(d,v=1)=>a.menuTagOptions.splice(d,v),S=async()=>{l.value&&(await h(),l.value=!1)};return be(()=>n.fullPath,async(d,v)=>{await S(),d!==v&&await g(d,n.query)},{immediate:!0}),{...ve(a),changeMenuModelValue:y,collapsedMenu:_,spliceMenTagOptions:m,setMenuTagOptions:p,resolveOption:c,updateMenuState:r}},{persist:{key:F.appPiniaMenuStore,storage:window.localStorage,pick:["breadcrumbOptions","menuKey","menuTagOptions","collapsed"]}}),xn=et("signing",()=>{const e=Q({signingCallback:{}}),t=s=>new Promise((a,l)=>{Qt(s)?l({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:s.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},a({code:0,message:"登陆成功",data:e.signingCallback}))}),n=s=>{const{closeAll:a}=zn(),{appPiniaMenuStore:l,appPiniaSigningStore:r,token:c,signing:u,appMenuKey:p}=F;window.$message.info("账号退出中..."),de("__all_sessionStorage__","sessionStorage"),de(r,"localStorage"),de(l,"localStorage"),de(c,"localStorage"),de(u,"localStorage"),de(p,"localStorage"),a(),s&&(window.location.replace("#/"),setTimeout(()=>{window.location.reload()},0))},o=()=>{n(!0)};return{...ve(e),signing:t,logout:o,clearSigningCallback:n}},{persist:{key:F.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),Mn=et("keepAlive",()=>{const{maxKeepAliveLength:e}=gn,t=Q({keepAliveInclude:[]}),n=()=>t.keepAliveInclude.length,o=a=>{const l=n(),{name:r,meta:{keepAlive:c}}=a;if(c){if(l=e&&(t.keepAliveInclude.splice(0,1),t.keepAliveInclude.push(r))}},s=()=>t.keepAliveInclude;return{...ve(t),setKeepAliveInclude:o,getKeepAliveInclude:s}},{persist:{key:F.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),ue=()=>{const e=Pn(),t=w(()=>e.options),n=w(()=>e.breadcrumbOptions),o=w(()=>e.menuKey),s=w(()=>{const{getRootPath:r}=_e();return e.menuTagOptions.map((c,u,p)=>(c.key===o.value&&c.key!==r.value?c.closeable=!0:c.closeable=!1,c.key===r.value&&(c.closeable=!1),p.length<=1&&(c.closeable=!1),c))}),a=w(()=>e.currentMenuOption),l=w(()=>e.collapsed);return{getMenuOptions:t,getBreadcrumbOptions:n,getMenuKey:o,getMenuTagOptions:s,getCurrentMenuOption:a,getCollapsed:l}},Ie=()=>{const{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:n,setMenuTagOptions:o,resolveOption:s,updateMenuState:a}=Pn();return{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:n,setMenuTagOptions:o,resolveOption:s,updateMenuState:a}},G=()=>{const e=_n(),t=w(()=>e.drawerPlacement),n=w(()=>e.primaryColorOverride),o=w(()=>e.appTheme),s=w(()=>e.menuTagSwitch),a=w(()=>e.breadcrumbSwitch),l=w(()=>e.localeLanguage),r=w(()=>e.lockScreenSwitch),c=w(()=>e.copyrightSwitch),u=w(()=>e.contentTransition),p=w(()=>e.watermarkSwitch),f=w(()=>e.watermarkConfig),y=w(()=>e.appRootRoute),g=w(()=>e.sideBarLogo);return{getDrawerPlacement:t,getPrimaryColorOverride:n,getAppTheme:o,getMenuTagSwitch:s,getBreadcrumbSwitch:a,getLocaleLanguage:l,getLockScreenSwitch:r,getCopyrightSwitch:c,getContentTransition:u,getWatermarkSwitch:p,getWatermarkConfig:f,getAppRootRoute:y,getSideBarLogo:g}},q=()=>{const{updateLocale:e,changePrimaryColor:t,updateSettingState:n}=_n();return{updateLocale:e,changePrimaryColor:t,updateSettingState:n}},_r=()=>{const e=xn();return{getSigningCallback:w(()=>e.signingCallback)}},Sr=()=>{const{signing:e,logout:t,clearSigningCallback:n}=xn();return{signing:e,logout:t,clearSigningCallback:n}},wr=()=>{const e=Mn();return{getKeepAliveInclude:w(()=>e.keepAliveInclude)}},Cr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:t}=Mn();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},ui=e=>{const t=Ho();e.use(t),t.use(Go)},Ln=e=>{const{getSigningCallback:t}=_r(),{role:n}=e;return Ne!=null&&Ne.length&&Ne.includes(t.value.role)||!n||!(n!=null&&n.length)?!0:n?n.includes(t.value.role):!0},Tr=e=>{const{setupRouterLoadingBar:t,setupRouterGuard:n}=Va;t&&Vs(e),n&&Ds(e)},Or=x(),Rr=P({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=tt(),{getSideBarLogo:t}=G();return{sideBarLogo:t,sideBarLogoClick:()=>{t.value&&t.value.url&&(t.value.jumpType==="station"?e.push(t.value.url):window.open(t.value.url))},TemplateLogo:({cursor:s})=>{if(!t.value)return null;if(typeof t.value.icon=="string")return i(A,{name:t.value.icon,size:"30",cursor:s},null);if(se(t.value.icon,"Object"))return ge(t.value.icon)}}},render(){const{sideBarLogo:e,collapsed:t,TemplateLogo:n,sideBarLogoClick:o}=this;return e!=null&&e.title?i("div",{class:["ray-menu__logo",e!=null&&e.url?"ray-menu__logo-url":null],onClick:o.bind(this),ref:Or},[e!=null&&e.icon?t?i(We,{placement:"right"},{trigger:()=>n({cursor:"pointer"}),default:()=>e.title}):n({cursor:"pointer"}):t?i(We,{placement:"right"},{trigger:()=>{var s;return i("h1",{class:"n-menu-item-content"},[((s=e.title)==null?void 0:s[0])||null])},default:()=>e.title}):null,i("h1",{class:[t?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"']},[i(tn,null,{default:()=>[e.title]})])]):null}}),kr=P({name:"AppMenu",setup(){const e=x(null),{changeMenuModelValue:t,collapsedMenu:n,updateMenuState:o}=Ie(),{getMenuOptions:s,getCollapsed:a,getMenuKey:l}=ue(),r=w({get:()=>(W().then(()=>{p()}),l.value),set:()=>{c.value&&oe("globalDrawerValue",!1)}}),{isTabletOrSmaller:c}=ot({observer:y=>{y&&o("collapsed",!1)}}),u=w({get:()=>nt("globalDrawerValue").value,set:y=>{oe("globalDrawerValue",y)}}),p=()=>{const y=r.value;y!=null&&W(()=>{var g,h;return(h=(g=e.value)==null?void 0:g.showOption)==null?void 0:h.call(g,y)})};return{isTabletOrSmaller:c,BasicMenu:()=>i(lo,{class:"app-menu__sider",showTrigger:!c.value,collapseMode:ie.menuCollapsedMode,collapsedWidth:ie.menuCollapsedWidth,onUpdateCollapsed:n.bind(this),nativeScrollbar:!1,ref:yn,collapsed:a.value,onExpand:()=>{o("collapsed",!1)},onCollapse:()=>{o("collapsed",!0)}},{default:()=>[i(Rr,{collapsed:a.value},null),i(ro,{ref:e,class:"r-menu--app",keyField:"fullPath",value:r.value,"onUpdate:value":y=>r.value=y,options:s.value,indent:ie.menuCollapsedIndent,collapsed:a.value,collapsedIconSize:ie.menuCollapsedIconSize,collapsedWidth:ie.menuCollapsedWidth,onUpdateValue:(y,g)=>{t(y,g)},accordion:ie.menuAccordion},null)]}),modelGlobalDrawerValue:u}},render(){const{isTabletOrSmaller:e,BasicMenu:t}=this;return e?i(nn,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":n=>this.modelGlobalDrawerValue=n,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[i(t,null,null)]}):i(t,null,null)}});class Ar{constructor(){Et(this,"pendingRequest");this.pendingRequest=new Map}isAppending(t){var n;return((n=t.cancelConfig)==null?void 0:n.cancel)??!0}generateRequestKey(t){const{method:n,url:o}=t;return[o||"",n||"",JSON.stringify(t.params),JSON.stringify(t.data)].join("&")}addPendingRequest(t){var n;if(this.isAppending(t)){t.__CANCELER_TAG_RAY_TEMPLATE__="__CANCELER_TAG_RAY_TEMPLATE__";const o=this.generateRequestKey(t);if(this.pendingRequest.has(o))t.signal=(n=this.pendingRequest.get(o))==null?void 0:n.signal;else{const s=new AbortController;t.signal=s.signal,this.pendingRequest.set(o,s)}}}removePendingRequest(t){const n=this.generateRequestKey(t);this.pendingRequest.has(n)&&(this.pendingRequest.get(n).abort(),this.pendingRequest.delete(n))}cancelAllRequest(){this.pendingRequest.forEach(t=>{t.abort()})}}const ut={requestInstance:null,responseInstance:null},dt={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},$e={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},Pr=new Ar,di=()=>{const e=(r,c)=>{c==="requestInstance"?ut.requestInstance=r:ut.responseInstance=r},t=r=>ut[r],n=(r,c,u)=>{u==="ok"?dt[r]=c:$e[r]=c},o=(r,c)=>c==="ok"?dt[r]:$e[r],s=(r,...c)=>{Array.isArray(r)&&r.forEach(u=>{typeof u=="function"&&u(...c)})};return{createAxiosInstance:e,setImplement:n,getImplement:o,getAxiosInstance:t,beforeFetch:(r,c,u)=>{const p=u==="ok"?dt[c]:$e[c],f=t(r),{MODE:y}=_t();f&&s(p,f,y)},fetchError:(r,c,u)=>{const p=$e[u],{MODE:f}=_t();s(p,c,f)}}},xr=P({name:"AppRequestCancelerProvider",setup(e,{expose:t}){na(()=>{Pr.cancelAllRequest()}),t()},render(){return i("div",{class:"app-style-provider"},null)}}),In=P({name:"LayoutContentWrapper",setup(){tt();const{maximize:e}=En(),{getContentTransition:t}=G(),n=x(!1),o={opacitySpinning:"0"},{globalMainLayoutLoad:s,layoutContentMaximize:a,layoutContentSpinning:l}=Ba();return{globalMainLayoutLoad:s,spinning:n,themeOverridesSpin:o,getContentTransition:t,layoutContentMaximize:a,maximize:e,layoutContentSpinning:l}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:t,layoutContentSpinning:n,maximize:o,spinning:s,themeOverridesSpin:a,getContentTransition:l}=this;return i(Je,{show:s||!e||n,description:"loading...",size:"large",themeOverrides:a,class:[t?"r-layout-full__viewer-content--maximize":null,"r-layout-full__viewer-content--maximize--light","r-layout-full__viewer-content--maximize--dark"]},{default:()=>[t?i("div",{class:"layout-content__maximize-out",onClick:()=>{o(!1)}},[i(A,{name:"out",size:"16",cursor:"pointer"},null)]):null,i(xr,null,null),e?i(lr,{class:"content-wrapper",transitionPropName:l+"-transform"},null):null]})}}),Mr=Object.freeze(Object.defineProperty({__proto__:null,default:In},Symbol.toStringTag,{value:"Module"}));var Lr={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:"4.9.7"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Ir=P({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=Lr;return{copyright:e}},render(){return this.copyright?i("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),Er=P({name:"TooltipIcon",props:{...io,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:t}){const n=s=>{t("click",s)};return{iconClick:n,Icon:()=>i(A,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:n.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?i(We,this.$props,{trigger:()=>i(e,null,null),default:()=>this.tooltipText}):i(e,null,null)}}),zr=P({name:"ThemeSwitch",setup(){const{darkTheme:e,lightTheme:t}=fl(),{getAppTheme:n}=G(),o=x(n.value);return{darkTheme:e,lightTheme:t,getAppTheme:n,railStyle:({checked:a})=>a?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:o}},render(){const{$t:e,darkTheme:t,lightTheme:n,railStyle:o}=this;return i(z,{justify:"center"},{default:()=>[i(We,null,{trigger:()=>i(Te,{value:this.modelAppThemeRef,"onUpdate:value":s=>this.modelAppThemeRef=s,railStyle:o.bind(this),onUpdateValue:s=>s?t():n()},{"checked-icon":()=>i(A,{name:"dark"},null),"unchecked-icon":()=>i(A,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?e("headerSettingOptions.ThemeOptions.Dark"):e("headerSettingOptions.ThemeOptions.Light")})]})}});function Be(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ce(e)}const jr=P({name:"SettingDrawer",props:{show:{type:Boolean,default:!1},placement:{type:String,default:"right"},width:{type:Number,default:280}},emits:["update:show"],setup(e,{emit:t}){const{changePrimaryColor:n,updateSettingState:o}=q(),{getAppTheme:s,getPrimaryColorOverride:a,getMenuTagSwitch:l,getBreadcrumbSwitch:r,getCopyrightSwitch:c,getContentTransition:u,getWatermarkSwitch:p}=G(),f=w({get:()=>e.show,set:g=>{t("update:show",g)}}),y=w({get:()=>({getMenuTagSwitch:l.value,getBreadcrumbSwitch:r.value,getCopyrightSwitch:c.value,getContentTransition:u.value,getWatermarkSwitch:p.value}),set:g=>{}});return{modelShow:f,changePrimaryColor:n,getAppTheme:s,getPrimaryColorOverride:a,updateSettingState:o,modelSwitchReactive:y}},render(){let e,t,n,o;const{$t:s,changePrimaryColor:a,updateSettingState:l}=this;return i(nn,{show:this.modelShow,"onUpdate:show":r=>this.modelShow=r,placement:this.placement,width:this.width},{default:()=>[i(co,{title:s("headerSettingOptions.Title")},{default:()=>[i(z,{class:"setting-drawer__space",vertical:!0},{default:()=>[i(je,{titlePlacement:"center"},Be(e=s("headerSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),i(zr,null,null),i(je,{titlePlacement:"center"},Be(t=s("headerSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),i(uo,{swatches:Y.appThemeColors,value:this.getPrimaryColorOverride.common.primaryColor,"onUpdate:value":r=>this.getPrimaryColorOverride.common.primaryColor=r,onUpdateValue:a.bind(this)},null),i(je,{titlePlacement:"center"},Be(n=s("headerSettingOptions.ContentTransition"))?n:{default:()=>[n]}),i(po,{value:this.modelSwitchReactive.getContentTransition,"onUpdate:value":r=>this.modelSwitchReactive.getContentTransition=r,options:Ea,onUpdateValue:r=>{l("contentTransition",r)}},null),i(je,{titlePlacement:"center"},Be(o=s("headerSettingOptions.InterfaceDisplay"))?o:{default:()=>[o]}),i(mo,{labelPlacement:"left",column:1},{default:()=>[i(De,{label:"多标签"},{default:()=>[i(Te,{value:this.modelSwitchReactive.getMenuTagSwitch,"onUpdate:value":r=>this.modelSwitchReactive.getMenuTagSwitch=r,onUpdateValue:r=>l("menuTagSwitch",r)},null)]}),i(De,{label:"面包屑"},{default:()=>[i(Te,{value:this.modelSwitchReactive.getBreadcrumbSwitch,"onUpdate:value":r=>this.modelSwitchReactive.getBreadcrumbSwitch=r,onUpdateValue:r=>l("breadcrumbSwitch",r)},null)]}),i(De,{label:"水印"},{default:()=>[i(Te,{value:this.modelSwitchReactive.getWatermarkSwitch,"onUpdate:value":r=>this.modelSwitchReactive.getWatermarkSwitch=r,onUpdateValue:r=>l("watermarkSwitch",r)},null)]}),i(De,{label:"版权信息"},{default:()=>[i(Te,{value:this.modelSwitchReactive.getCopyrightSwitch,"onUpdate:value":r=>this.modelSwitchReactive.getCopyrightSwitch=r,onUpdateValue:r=>l("copyrightSwitch",r)},null)]})]})]})]})]})}});function Dr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ce(e)}const Nr=P({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=Ie(),{getBreadcrumbOptions:t}=ue(),{isTabletOrSmaller:n}=ot();return{getBreadcrumbOptions:t,dropdownSelect:(a,l)=>{e(a,l)},breadcrumbItemClick:a=>{var l;if(!((l=a.children)!=null&&l.length)){const{meta:r={}}=a;r.sameLevel||e(a.fullPath,a)}},isTabletOrSmaller:n}},render(){let e;const{isTabletOrSmaller:t,getBreadcrumbOptions:n}=this,{dropdownSelect:o,breadcrumbItemClick:s}=this;return t?i("div",{style:"display: none;"},null):i(go,null,{default:()=>[i(Aa,{tag:"li",name:"breadcrumb",appear:!0},Dr(e=n.map(a=>i(ho,{key:a.fullPath,onClick:s.bind(this,a)},{default:()=>{var l;return[i(ye,{labelField:"breadcrumbLabel",keyField:"fullPath",options:a.children&&((l=a.children)==null?void 0:l.length)>1?a.children:[],onSelect:o.bind(this)},{default:()=>i("span",null,[a.label&&typeof a.label=="function"?a.label():a.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function pt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ce(e)}const Vr=P({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const{changeMenuModelValue:n,resolveOption:o}=Ie(),{getRoutes:s}=tt(),a=w({get:()=>e.show,set:b=>{t("update:show",b),b||g()}}),l=Q({searchValue:null,searchOptions:[]}),r=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let c=0,u=c;const{isTabletOrSmaller:p}=ot(),f=x(!1),y="content-item--active",g=()=>{l.searchOptions=[],l.searchValue=null,c=0,u=c},h=b=>{a.value||(b.ctrlKey||b.metaKey)&&b.key==="k"&&(b.preventDefault(),b.stopPropagation(),g(),a.value=!0)},_=b=>{if(b)f.value=!0;else{f.value=!1,l.searchOptions=[];return}const C=s().reduce((I,O)=>{var B;const E=Oe(O,["children","meta","path","name"]),N=o({...E,fullPath:O.path}),{breadcrumbLabel:K}=N;return(B=K==null?void 0:K.toLocaleLowerCase())!=null&&B.includes(b.toLocaleLowerCase())&&bn(N)&&I.push(N),I},[]);setTimeout(()=>{l.searchOptions=C,W().then(()=>{S()}),f.value=!1},500)},m=b=>{if(b){const{meta:C}=b;C.windowOpen?window.open(C.windowOpen):(a.value=!1,n(b.fullPath,b),setTimeout(Fo,300))}},S=()=>{const b=l.searchOptions[c],C=l.searchOptions[u];b&&W().then(()=>{const I=Ge(`attr:data_path="${b.path}"`),O=C?Ge(`attr:data_path="${C==null?void 0:C.path}"`):null;if(O!=null&&O.length){const[E]=O;Ko(E,y)}if(I!=null&&I.length){const[E]=I;mn(E,y)}})},d=b=>{const{icon:C}=b;return typeof C=="string"?i(A,{name:C,size:"24"},null):typeof C=="function"?()=>C:i(A,{name:"search",size:"24"},null)},v=b=>{b==="up"&&(c-=1,c<0&&(c=l.searchOptions.length-1)),b==="down"&&(c+=1,c>=l.searchOptions.length&&(c=0))},R=b=>{const C=b.key;switch((C==="ArrowUp"||C==="ArrowDown"||C==="Enter")&&(b.preventDefault(),b.stopPropagation()),u=c<=0?0:c,C){case"ArrowUp":v("up");break;case"ArrowDown":v("down");break;case"Enter":const I=l.searchOptions[c];I&&m(I);break}S()},T=({menuOption:b})=>i(z,$({align:"center",class:"content-item"},{onClick:m.bind(this,b),data_path:b.path}),{default:()=>[i("div",{class:"content-item-icon"},[d(b.meta)]),i("div",{class:"content-item-label"},[b.breadcrumbLabel]),i(A,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return xe(()=>{p.value&&(a.value=!1)}),Ae(window,"keydown",b=>{h(b),R(b)},!0),{...ve(l),modelShow:a,helperTipOptions:r,fuzzySearchMenuOptions:Tt(_,300),searchItemClick:m,RenderPreIcon:d,isTabletOrSmaller:p,SearchItem:T,loading:f}},render(){const{isTabletOrSmaller:e,searchOptions:t,loading:n}=this,{SearchItem:o,fuzzySearchMenuOptions:s}=this;return e?i("div",{style:"display: none;"},null):i(Zt,{show:this.modelShow,"onUpdate:show":a=>this.modelShow=a,transformOrigin:"center",displayDirective:"if"},{default:()=>[i("div",{class:"global-search global-search--dark global-search--light"},[i("div",{class:"global-search__wrapper"},[i(Xe,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>i(fo,{size:"large",value:this.searchValue,"onUpdate:value":a=>this.searchValue=a,clearable:!0,onInput:s.bind(this)},{prefix:()=>i(A,{name:"search",size:"24"},null)}),default:()=>{let a;return i(Rt,null,{default:()=>[i(Je,{show:n},{default:()=>[t.length?i(z,{vertical:!0,size:[0,6],class:"global-search__card-content"},pt(a=t.map((l,r)=>i(o,{menuOption:l,key:l.fullPath},null)))?a:{default:()=>[a]}):i(yo,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>i(z,{justify:"center",class:"global-search__empty-content"},{default:()=>[i(vo,null,{default:()=>[jo("没有搜索结果")]})]})})]})]})},action:()=>{let a;return i(z,{justify:"flex-start",align:"center",size:[16,0]},pt(a=this.helperTipOptions.map(l=>i(z,{key:l.label,size:[4,0]},{default:()=>[l.icon.map(r=>i(z,{class:"item-icon",align:"center",justify:"center"},pt(r)?r:{default:()=>[r]})),i(z,{class:"item-label",align:"center"},{default:()=>[l.label]})]})))?a:{default:()=>[a]})}})])])]})}}),$r=P({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const o=Uo();return o==="MacOS"?"⌘ + K":"CTRL + K"},click:o=>{const{onClick:s}=e;s&&j(s,o)}}},render(){const{getShortcutKeyAboutSystem:e,click:t,$t:n}=this;return i(ke,{class:"global-search__btn-wrapper",bordered:!1,onClick:t.bind(this)},{icon:()=>i(A,{name:"search",size:"16"},null),default:()=>i(z,{align:"center"},{default:()=>[n("headerTooltip.Search"),i("div",{class:"global-search-btn__label"},[e()])]})})}}),Br=P({name:"AppAvatar",props:{...bo,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number,Array],default:"medium"},avatarSize:{type:[String,Number],default:"medium"},vertical:{type:Boolean,default:!1}},setup(e){return{signing:Pe(F.signing,"localStorage")}},render(){const{signing:e,avatarSize:t,spaceSize:n,$props:o,vertical:s}=this;return i(ke,{quaternary:!0,strong:!0},{default:()=>[i(z,{align:"center",size:n,vertical:s},{default:()=>[i(_o,$(o,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:t}),null),e==null?void 0:e.name]})]})}}),Fr=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],Kr={logout:()=>{const{logout:e}=Sr();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=q();e("lockScreenSwitch",!0)}},Ur=e=>{const t=Kr[e];t?t():window.$message.info("这个人很懒, 没做这个功能~")},Wr=e=>{const{isTabletOrSmaller:t}=e,n=[],o=[{name:"menu",size:18,eventKey:"menu"}];return t.value?o:n},qr=e=>{const{isTabletOrSmaller:t}=e,n=[{name:"fullscreen",size:18,eventKey:"screen"},{name:"github",size:18,eventKey:"github"},{name:"setting",size:18,eventKey:"setting"}],o=[...n],s=[...n];return t.value?s:o},Gr=P({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:t}=q(),{t:n}=Me(),[o,{toggleFullscreen:s,isEnabled:a}]=un(document.getElementsByTagName("html")[0]),{getDrawerPlacement:l,getBreadcrumbSwitch:r}=G(),c=x(!1),u=x(!1),{isTabletOrSmaller:p}=ot(),f=nt("globalDrawerValue"),y=w(()=>Wr({isFullscreen:o,isTabletOrSmaller:p})),g=w(()=>qr({isFullscreen:o,isTabletOrSmaller:p})),h={search:()=>{u.value=!0},setting:()=>{c.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{a||window.$message.warning(n("globalMessage.isEnabledFullscreen")),s()},lock:()=>{t("lockScreenSwitch",!0)},menu:()=>{oe("globalDrawerValue",!f.value)}};return{leftIconOptions:y,rightTooltipIconOptions:g,toolIconClick:S=>{var d;(d=h[S])==null||d.call(h)},showSettings:c,updateLocale:e,getDrawerPlacement:l,getBreadcrumbSwitch:r,globalSearchShown:u,isRenderVNode:S=>p.value?null:S}},render(){const{rightTooltipIconOptions:e,leftIconOptions:t,getDrawerPlacement:n,getBreadcrumbSwitch:o}=this,{toolIconClick:s,updateLocale:a,isRenderVNode:l}=this;return i(on,{class:"layout-header"},{default:()=>[i(Vr,{show:this.globalSearchShown,"onUpdate:show":r=>this.globalSearchShown=r},null),i(z,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[i(z,{align:"center",wrap:!1},{default:()=>[t.map(r=>i(Er,{key:r.name,iconName:r.name,tooltipText:an(r.tooltip)?r.tooltip.value:r.tooltip,customClassName:r.iconClass,onClick:s.bind(this,r.name)},null)),o?i(Nr,null,null):null]}),i(z,{justify:"end",align:"center",size:[4,0],wrap:!1},{default:()=>[l(i($r,{onClick:r=>{r.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(r=>i(ke,{class:"override-button__layout",quaternary:!0,size:"medium",key:r.name,onClick:s.bind(this,r.name)},{default:()=>[i(A,{name:r.name,size:18,cursor:"pointer"},null)]})),i(ye,{options:fn,onSelect:r=>a(String(r)),trigger:"click"},{default:()=>[i(ke,{quaternary:!0,class:"override-button__layout"},{default:()=>[i(A,{customClassName:"layout-header__method--icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),i(ye,{options:Fr(),onSelect:Ur.bind(this),trigger:"click"},{default:()=>[i(Br,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),i(jr,{show:this.showSettings,"onUpdate:show":r=>this.showSettings=r,placement:n},null)]})}}),Hr=P({name:"LayoutHeaderWrapper",setup(){return{}},render(){return i(z,{size:[0,0]},{default:()=>[i(Gr,null,null)]})}}),Yr={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},Xr=cn('',1),Jr=[Xr];function Qr(e,t){return te(),At("svg",Yr,[...Jr])}const Zr={render:Qr},el={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},tl=cn('',1),nl=[tl];function ol(e,t){return te(),At("svg",el,[...nl])}const al={render:ol};function sl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ce(e)}const rl=P({name:"AppMenuTag",setup(e,{expose:t}){const n=ae("scrollRef"),{getMenuKey:o,getMenuTagOptions:s}=ue(),{changeMenuModelValue:a}=Ie(),{getRootPath:l}=_e(),{maximize:r,isLayoutContentMaximized:c}=En(),{reload:u}=gl(),{close:p,closeAll:f,closeRight:y,closeLeft:g,closeOther:h,checkCloseLeft:_,checkCloseRight:m}=zn(),S=["closeAll","closeRight","closeLeft","closeOther","closeCurrentPage"];let d=1/0;const v={size:16},R=x([{label:"刷新页面",key:"reloadCurrentPage",icon:()=>i(A,{name:"reload",size:v.size},null)},{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>i(A,{name:"close",size:v.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>i(al,{class:"menu-tag__icon"},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>i(Zr,{class:"menu-tag__icon"},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>i(A,{name:"other",size:v.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>i(A,{name:"resize_h",size:v.size},null),disabled:!1}]),T=qe(16),b={closeCurrentPage:()=>{o.value!==l.value&&p(d)},reloadCurrentPage:()=>{u()},closeAll:()=>{f()},closeRight:()=>{y(d)},closeLeft:()=>{g(d)},closeOther:()=>{h(d)}},C=Q({x:0,y:0,actionDropdownShow:!1}),I="menu_tag_data",O=nt("globalMainLayoutLoad"),E="n-scrollbar-container";let N=o.value;const K=k=>{p(k)},B=(k,M)=>{for(const U of R.value)if(U.key===k){U.disabled=M;break}},re=k=>{C.actionDropdownShow=!1,a(k.fullPath,k)},Se=()=>{const k=document.getElementById(T);if(k)return Array.from(k.childNodes).find(ze=>Wo(ze,E).value)},Ee=k=>{var U;const M=Se();if(M){const ze=M.scrollLeft||0,It=k==="left"?Math.max(0,ze-200):ze+200;(U=n.value)==null||U.scrollTo({left:It,behavior:"smooth"})}},J=k=>{C.actionDropdownShow=!1;const M=b[k];M==null||M()},Dn=(k,M)=>{M.preventDefault(),C.actionDropdownShow=!1,d=k,W(()=>{C.actionDropdownShow=!0,C.x=M.clientX,C.y=M.clientY})},Lt=()=>{const{closeable:k}=s.value[d]??{};B("closeCurrentPage",!k),m(d)?B("closeRight",!1):B("closeRight",!0),_(d)?B("closeLeft",!1):B("closeLeft",!0)},Nn=()=>{d=s.value.findIndex(M=>M.fullPath===o.value),Lt()},Vn=k=>{s.value.length>1&&k.fullPath!==l.value&&(k.closeable=!0)},$n=k=>{k.fullPath!==o.value&&(k.closeable=!1)},Bn=()=>{Se()&&W().then(()=>{var M;(M=n.value)==null||M.scrollTo({left:99999,behavior:"smooth"})})},at=()=>{W().then(()=>{const k=Ge(`attr:${I}="${o.value}"`);if(k!=null&&k.length){const[M]=k;W().then(()=>{var U;(U=n.value)==null||U.scrollTo({left:M.offsetLeft,behavior:"smooth"})})}})},Fn=()=>{r(!0)};return be(()=>s.value,(k,M)=>{R.value.forEach(U=>{S.includes(U.key)&&(k.length>1?U.disabled=!1:U.disabled=!0)}),M!=null&&M.length&&(k.length>(M==null?void 0:M.length)?Bn():k.length===(M==null?void 0:M.length)&&at()),M===void 0&&at()},{immediate:!0}),xe(()=>{var k;C.actionDropdownShow&&((k=Tt(Lt,300))==null||k()),N!==o.value&&(N=o.value,at())}),t({}),{getMenuTagOptions:s,closeCurrentMenuTag:K,getMenuKey:o,menuTagClick:re,moreOptions:R,scrollX:Ee,scrollRef:n,uuidScrollBar:T,actionDropdownSelect:J,actionState:C,menuTagContextMenu:Dn,setCurrentContextmenuIndex:Nn,menuTagMouseenter:Vn,menuTagMouseleave:$n,MENU_TAG_DATA:I,iconConfig:{width:22,height:22},maximize:r,reload:u,globalMainLayoutLoad:O,maximizeBtnClick:Fn}},render(){let e;const{iconConfig:t,uuidScrollBar:n,getMenuTagOptions:o,MENU_TAG_DATA:s,globalMainLayoutLoad:a}=this,{maximizeBtnClick:l,closeCurrentMenuTag:r,scrollX:c,$t:u,menuTagClick:p,menuTagContextMenu:f,menuTagMouseenter:y,menuTagMouseleave:g,actionDropdownSelect:h,reload:_}=this;return i(on,null,{default:()=>[i("div",{class:"menu-tag"},[i(ye,{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:h.bind(this),onClickoutside:()=>{this.actionState.actionDropdownShow=!1}},null),i(z,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0,size:[16,0]},{default:()=>[i(A,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__left-arrow",onClick:this.scrollX.bind(this,"left")},null),i(Rt,$({xScrollable:!0,ref:"scrollRef"},{id:n},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[i(z,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},sl(e=o.map((m,S)=>i(ke,$({key:m.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:m.fullPath===this.getMenuKey?"primary":"default"},{onClick:p.bind(this,m),onContextmenu:f.bind(this,S),onMouseenter:y.bind(this,m),onMouseleave:g.bind(this,m),[s]:m.fullPath},{size:"small"}),{default:()=>i(ln,null,[i("span",null,{default:()=>{const{breadcrumbLabel:d,meta:{i18nKey:v}}=m;return v?u(v):d}}),i(So,$({class:"menu-tag__btn-icon"},{onMousedown:r.bind(this,S)}),{default:()=>[i(A,{name:"close",size:"14"},null)]})])})))?e:{default:()=>[e]})]}),i(z,{class:"menu-tag__right-wrapper",align:"center",inline:!0,wrap:!1,size:[8,0]},{default:()=>[i(A,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__right-arrow",onClick:c.bind(this,"right")},null),i(A,{name:"fullscreen_fold",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:l},null),i(A,{name:"reload",width:t.width,height:t.height,customClassName:`menu-tag__right-setting ${a?"":"menu-tag__right-setting--spinning"}`,onClick:()=>{_()}},null),i(Cn,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:20,keyboard:!1},{default:()=>[i(A,{name:"more",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:this.setCurrentContextmenuIndex.bind(this)},null)]})]})]})])]})}}),ll=P({name:"LayoutFeatureWrapper",setup(){return{}},render(){return i(rl,null,null)}}),il=e=>{const t=rt(e[0]),n=rt(e[1]),o=rt(e[2]),{height:s,width:a}=kt();return w(()=>({"--window-width":`${a.value}px`,"--window-height":`${s.value}px`,"--layout-content-height":`calc(${s.value}px - ${t.height.value}px - ${n.height.value}px - ${o.height.value}px)`,"--layout-content-width":`${t.width.value}px`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${n.height.value}px`,"--layout-footer-height":`${o.height.value}px`}))},Ht=Ro(F.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),cl=()=>({setLockAppScreen:n=>{Ht.value=n},getLockAppScreen:()=>Ht.value}),ul=P({name:"RLayout",setup(){const e=x(),t=x(),n=x(),{getMenuTagSwitch:o,getCopyrightSwitch:s}=G(),{getLockAppScreen:a}=cl(),l=il([e,t,n]);return{getMenuTagSwitch:o,cssVarsRef:l,getLockAppScreen:a,layoutSiderBarRef:e,layoutMenuTagRef:t,layoutFooterRef:n,getCopyrightSwitch:s}},render(){const{getMenuTagSwitch:e,cssVarsRef:t,getCopyrightSwitch:n}=this,{getLockAppScreen:o}=this;return o()?null:i(wo,{class:"r-layout-full",style:[t],hasSider:!0,embedded:!0},{default:()=>[i(kr,null,null),i(Dt,{class:"r-layout-full__viewer"},{default:()=>[i(Hr,{ref:"layoutSiderBarRef"},null),e?i(ll,{ref:"layoutMenuTagRef"},null):null,i(Dt,{ref:me,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[i(In,null,null)]}),n?i(Ir,{ref:"layoutFooterRef"},null):null]})]})}}),dl=[{path:"/",name:"RLogin",component:()=>L(()=>import("./index-CChanisz.js"),__vite__mapDeps([87,1,2,3,4,5,6,7,8,9,10,11,40,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,39,41,42,43,44,45,46,47,88]))},{path:"/",name:"RLayout",component:ul,children:[...br(),{path:"/:catchAll(.*)",component:()=>L(()=>import("./index-CnxKNshD.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:D("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],Ye=oa({history:aa(),routes:dl,scrollBehavior:e=>{Ns(e)}}),pi=e=>{e.use(Ye),Tr(Ye)},Mt=()=>Ye?{router:Ye}:{router:{}},Yt="YYYY-MM-DD HH:mm:ss",pl=()=>({locale:l=>{const r=Da[l];r?Z.locale(r):Z.locale(Na)},getStartAndEndOfDay:l=>{const{format:r=Yt}=l??{},c=Z(),u=c.startOf("day"),p=c.endOf("day"),f=c.format(r),y=u.format(r),g=p.format(r);return{today:c,startOfDay:u,endOfDay:p,formatToday:f,formatStartOfDay:y,formatEndOfDay:g}},format:(l,r)=>{const{format:c=Yt}=r??{};return Z(l).format(c)},isDayjs:l=>Z.isDayjs(l),daysDiff:(l,r)=>{const c=Z(l);return Z(r).diff(c,"days")},isDateInRange:(l,r)=>{const{start:c,end:u}=r,p=Z(l);return p.isAfter(c)&&p.isBefore(u)}});function ot(e){const{width:t,height:n}=kt(e),o=x(!1),{observer:s}=e??{};return qo(()=>{const{media:l=768}=e??{};o.value=t.value<=l,s==null||s(o.value,{width:t.value,height:n.value})}),{width:t,height:n,isTabletOrSmaller:he(o)}}let mt=999,ht=!1;const le="ELEMENT-FULLSCREEN-RAY",{width:gt,height:ft}=kt(),Xt=document.createElement("style"),ml=(e,t)=>{const{beforeEnter:n,beforeExit:o,enter:s,exit:a,backgroundColor:l,zIndex:r,transition:c="all 0.3s var(--r-bezier)"}=t??{};let u=!1;const p={x:null,y:null},f=()=>{const m=ne(e);if(!m)return;const{left:S,top:d}=m.getBoundingClientRect();p.x===null&&p.y===null&&(p.x=-S,p.y=-d),Fe(document.body,{"--element-fullscreen-z-index":se(r,"Null")||se(r,"Undefined")?mt:r,"--element-fullscreen-transition":c,"--element-fullscreen-background-color":l,"--element-fullscreen-width":`${gt.value}px`,"--element-fullscreen-height":`${ft.value}px`,"--element-fullscreen-transform-x":`${p.x}px`,"--element-fullscreen-transform-y":`${p.y}px`});const v=` [${le}] { 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); } `;Xt.innerHTML=v,ht||document.head.appendChild(Xt)},y=()=>{const m=ne(e);n==null||n(),m&&(m.getAttribute(le)||m.setAttribute(le,le),u||(u=!0,mt+=1),ht||(f(),ht=!0),m.style.transition=c,s==null||s())},g=()=>{o==null||o();const m=ne(e);m&&m.removeAttribute(le),a==null||a()},h=()=>{const m=ne(e);m&&(m.getAttribute(le)?g():y())},_=be(()=>[gt.value,ft.value],f);return xt(()=>{const m=ne(e);m&&m.removeAttribute(le),mt--,_()}),{enter:y,exit:g,toggleFullscreen:h,currentWindowSize:{width:gt,height:ft}}},yt={svg:Yo,png:Xo,jpeg:Jo,blob:Qo,pixelData:Zo,canvas:ea},mi=(e,t)=>{const{beforeCreate:n,created:o,createdError:s,finally:a,imageType:l}=t??{};return{create:c=>new Promise((u,p)=>{var y;const f=ne(e);if(n==null||n(f),!f)return s==null||s(),p("useDomToImage: element is undefined.");(y=yt[c??l??"jpeg"])==null||y.call(yt,f,t).then(g=>(o==null||o(g,f),u(g))).catch(g=>(s==null||s(g),p(g))).finally(()=>{a==null||a(f)})})}},hi=(e,t)=>({print:()=>{const o=ne(e)||e;Do({...Ot(t,["printable"]),printable:o})}}),hl={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},gi=(e,t)=>{const n=x(e),o=Ot(t,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size"]),a=x(Object.assign({},hl,o,{onUpdatePage:d=>{var v;a.value.page=d,(v=n.value)==null||v.call(n)},onUpdatePageSize:d=>{var v;a.value.pageSize=d,a.value.page=1,(v=n.value)==null||v.call(n)}})),l=a.value.onUpdatePage,r=a.value.onUpdatePageSize,c=()=>a.value.itemCount,u=d=>{a.value.itemCount=d},p=()=>a.value.page,f=d=>{l(d)},y=()=>a.value.pageSize,g=d=>{r(d)},h=()=>a.value,_=e,m=d=>{n.value=d},S=()=>{const{pageSizes:d}=a.value;a.value.page=1,a.value.pageSize=(d==null?void 0:d[0])||10};return xt(()=>{n.value=void 0}),[a,{getItemCount:c,setItemCount:u,getPage:p,setPage:f,getPageSize:y,setPageSize:g,getPagination:h,getCallback:_,setCallback:m,resetPagination:S}]},En=()=>({isLayoutContentMaximized:w(()=>nt("layoutContentMaximize").value),maximize:(n,o)=>{var r;const{scrollToOptions:s}=o??{},a=ne(me),{toggleFullscreen:l}=ml(a,o);oe("layoutContentMaximize",n),l(),s&&n&&((r=me==null?void 0:me.value)==null||r.scrollTo(s))}}),gl=()=>({reload:(o=800)=>{oe("globalMainLayoutLoad",!1),setTimeout(()=>oe("globalMainLayoutLoad",!0),o)},openSpin:()=>{oe("layoutContentSpinning",!0)},closeSpin:()=>{oe("layoutContentSpinning",!1)}}),fi=()=>({setWatermarkContent:s=>{const{getWatermarkConfig:a}=G(),l=Object.assign(a.value,{content:s}),{updateSettingState:r}=q();r("watermarkConfig",l)},showWatermark:()=>{const{updateSettingState:s}=q();s("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:s}=q();s("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:s}=G(),{updateSettingState:a}=q();a("watermarkSwitch",!s.value)}}),vt=e=>{const{getPrimaryColorOverride:t}=G(),{updateSettingState:n}=q();n("primaryColorOverride",e?Object.assign({},t.value,Y.appNaiveUIThemeOverrides.dark,Y.appNaiveUIThemeOverridesCommon.dark):Object.assign({},t.value,Y.appNaiveUIThemeOverrides.light,Y.appNaiveUIThemeOverridesCommon.light))},fl=()=>{const e=()=>{const{getAppTheme:s}=G(),{t:a}=Me();return{theme:s.value,themeI18nLabel:s.value?a("headerSettingOptions.ThemeOptions.Dark"):a("headerSettingOptions.ThemeOptions.Light"),themeLabel:s.value?"Dark":"Light"}};return{darkTheme:()=>{const{updateSettingState:s}=q();s("appTheme",!0),vt(!0)},lightTheme:()=>{const{updateSettingState:s}=q();s("appTheme",!1),vt(!1)},toggleTheme:()=>{const{theme:s}=e(),{updateSettingState:a}=q();a("appTheme",!s),vt(!s)},getAppTheme:e}},pe=(e,t)=>{const{getMenuTagOptions:n}=ue();if(typeof e=="number"){if(isNaN(e)){console.warn(`${t}: The ${e} is NaN, expect number.`);return}if(e>n.value.length||e<-1){console.warn(`${t}: The incoming index ${e} did not match the corresponding item.`);return}return{option:n.value[e],index:e}}else if(typeof e=="string"){const o=n.value.findIndex(s=>s.fullPath===e);return o>-1?{option:n.value[o],index:o}:console.warn(`${t}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:o}=e,s=n.value.findIndex(a=>a.fullPath===o);if(s===-1){console.warn(`${t}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:s}}};function zn(){const{getMenuTagOptions:e,getMenuKey:t}=ue(),{changeMenuModelValue:n,spliceMenTagOptions:o,setMenuTagOptions:s,resolveOption:a}=Ie(),l=()=>e.value.findIndex(h=>h.fullPath===t.value);return{close:h=>{const _=pe(h,"close");if(e.value.length!==1&&_){const{index:m,option:S}=_;if(o(m),S.fullPath===t.value){const d=e.value[m-1];d&&n(d.fullPath,d)}}},closeAll:()=>{o(0,e.value.length);const{getRootPath:h}=_e(),{router:{getRoutes:_}}=Mt(),m=_().find(S=>S.path===h.value);if(m){const S=Oe(m,Ct),d=a(S);n(d.path,a({...d,fullPath:d.path}))}},closeRight:h=>{const _=pe(h,"closeRight");if(_){const{option:m,index:S}=_,d=e.value.length-S,v=l();o(S+1,d),S<=v&&t.value!==m.fullPath&&n(m.fullPath,m)}},closeLeft:h=>{const _=pe(h,"closeLeft");if(_){const{option:m,index:S}=_,d=l();o(0,S),d<=S&&t.value!==m.fullPath&&n(m.fullPath,m)}},closeOther:h=>{const _=pe(h,"closeOther");if(_){const{option:m}=_;t.value!==m.fullPath?(o(0,e.value.length),n(m.fullPath,m)):s(m,!1)}},getCurrentTagIndex:l,checkCloseRight:h=>{const _=pe(h,"checkCloseRight");if(_){const{index:m}=_,S=e.value.length-1;return!(m>=S)}return!1},checkCloseLeft:h=>{const _=pe(h,"checkCloseRight");if(_){const{index:m}=_,S=e.value.length-1;return m===0?!1:m>0&&S>0}return!1}}}function yi(){return{navigationTo:(t,n)=>{const{router:{getRoutes:o,push:s,replace:a}}=Mt(),{isPush:l=!0,query:r}=n||{},c=u=>l?s({path:u,query:r}):a({path:u,query:r});if(typeof t=="number"){if(isNaN(t)){console.warn(`[navigationTo]: The ${t} is NaN, expect number.`);return}const{getMenuOptions:u}=ue();if(t>u.value.length){console.warn(`[navigationTo]: The current ${t} exceeds the maximum number of menus.`);return}const p=u.value[t],f=y=>{if(y.children&&y.children.length>0){const{children:[g]}=y;f(g);return}c(y.fullPath)};f(p)}else if(typeof t=="string"){const u=o().find(p=>p.path===t);u?c(u.path):console.warn(`[navigationTo]: The path "${t}" is not found.`)}else c(t.fullPath)}}}function _e(){const{getAppRootRoute:e}=G(),{updateSettingState:t}=q(),n=e,o=w(()=>e.value.path),s=w(()=>e.value.name);return{getRootRoute:n,getRootPath:o,getRootName:s,setRootRoute:l=>{t("appRootRoute",Object.assign({},e.value,l))}}}const yl=(e,t)=>{const{show:n,...o}=t;e.meta.extra=Object.assign({},e.meta.extra,{...o,show:n}),e.extra=Rn(e)},Jt=(e,t,n)=>{const o=An(e,t);o&&yl(o,n)},bt=(e,t,n)=>{const{getMenuOptions:o}=ue();if(typeof e=="string")Jt(o.value,e,n);else if(se(e,"Object")){const{fullPath:s}=e;Jt(o.value,s,n)}else console.warn(`[useBadge ${t}]: target expect string or object.`)};function vi(){return{hidden:o=>{bt(o,"hidden",{show:!1})},show:o=>{bt(o,"show",{show:!0})},update:(o,s)=>{bt(o,"update",s)}}}const bi=()=>{const e=yn.value,{scrollTo:t}=e||{};if(!t)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return t},jn=()=>Pe(F.localeLanguage,"localStorage",{defaultValue:za}),_i=()=>{const e=x(),t=h=>{h&&(e.value=h)},n=()=>{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[t,{clearFilters:()=>n().clearFilters.call(null),getTableProInstance:n,clearSorter:()=>n().clearSorter.call(null),downloadCsv:h=>n().downloadCsv.call(null,h),filters:h=>n().filters.call(null,h),page:h=>n().page.call(null,h),scrollTo:h=>n().scrollTo(h),sort:(h,_)=>n().sort.call(null,h,_),getTablePagination:()=>n().getTablePagination.call(null),runTableRequest:h=>n().runTableRequest.call(null,h),print:h=>n().print.call(null,h),getCurrentTableRequestParams:h=>n().getCurrentTableRequestParams.call(null,h)}]};export{di as $,ql as A,Yl as B,Jl as C,Na as D,Ql as E,li as F,ri as G,ei as H,gi as I,Zl as J,oi as K,yn as L,Ul as M,ni as N,ii as O,Ks as P,ir as Q,ti as R,Or as S,zr as T,Le as U,ai as V,_i as W,si as X,pl as Y,Pr as Z,L as _,mi as a,Hl as a0,Cn as a1,En as a2,yi as a3,gl as a4,fi as a5,vi as a6,hi as b,bi as c,Gl as d,G as e,F as f,Kl as g,q as h,cl as i,Sr as j,ot as k,Br as l,nt as m,Wl as n,Xl as o,pi as p,_e as q,Me as r,ui as s,A as t,fl as u,fn as v,it as w,Mt as x,Fl as y,ci as z};