ray-template/js/hooks-BY0i9Xdx.js

13 lines
102 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

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

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