ray-template/js/hooks-DonDO7vb.js

13 lines
104 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-D7xUZ2yk.js","js/dayjs@1.11.10-C8LoRVP6.js","js/call-bind@1.0.7-Cpj98o6Y.js","js/print-js@1.6.0-BdoEj60G.js","js/vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.js","js/@vue_reactivity@3.5.12-Bs6EYLxJ.js","js/@vue_shared@3.5.12--5_uv9t5.js","js/@vue_runtime-core@3.5.12-Ds-HrVrM.js","js/lodash@4.17.21-Cw59kuJw.js","js/js-cookie@3.0.5-Z_8Sd105.js","js/screenfull@5.2.0-DmMZCkhi.js","js/jsbarcode@3.11.6-DGNGFp02.js","js/currency.js@2.0.4-9OAR_aOO.js","js/lodash-es@4.17.21-CeZG2a4n.js","js/naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js","js/date-fns@3.6.0-q9PkOyxq.js","js/seemly@0.3.8-DjGKl9dV.js","js/vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js","js/evtd@0.2.4-CI_DDEu_.js","js/@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js","js/vooks@0.2.12_vue@3.5.12-CeQQlSXI.js","js/vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js","js/@juggle_resize-observer@3.4.0-C8OzoCMD.js","js/css-render@0.15.14-C5toWlUr.js","js/@emotion_hash@0.8.0-WldOFDRm.js","js/@vue_runtime-dom@3.5.12-ewSD1rNh.js","js/treemate@0.3.11-DKekKYbv.js","js/date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js","js/async-validator@4.2.5-DKvM95Vc.js","js/@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js","js/@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js","js/@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js","js/utils-6rpFoFAR.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-DjAImzYl.js","js/vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js","js/html-to-image@1.11.11-BOFdlgi9.js","js/vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js","js/vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js","js/@intlify_shared@9.13.1-BxU0OzX2.js","js/@intlify_core-base@9.13.1-C6DqbPB6.js","js/@intlify_message-compiler@9.13.1-GrLDMuy_.js","js/echarts@5.5.0-CezqL3m-.js","js/zrender@5.5.0-DW8ownf1.js","js/tslib@2.3.0-BDyQ-Jie.js","js/zh-CN-dOsAGuBk.js","js/index-DcajtrM6.js","js/index-CgOgVoYU.js","css/index-D_4DGt8i.css","js/index-BkbN0lKB.js","js/instance-D7APY90Q.js","js/axios@1.7.5-C8DqakIB.js","css/index-QAd2IBUs.css","js/BarcodeDemo-Cj7gPXWn.js","js/index-40P_oJMv.js","js/index-tgRTNfIG.js","js/index-Dy43M56X.js","js/index-IVPegtuP.js","css/index-DHYYVpM7.css","js/index-5V4yf9yZ.js","js/index-C9u1x56c.js","js/index-BA7MPIf6.js","js/index-ZK2gtRBB.js","js/index-Dyp40qYu.js","js/index-8F6Ug6Kd.js","js/index-TI4DwZCx.js","js/index-hU9_Mjki.js","js/index-JALWQc45.js","js/vue3-next-qrcode@2.0.10_typescript@5.2.2-BJQJW2Mf.js","css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css","js/ray-dCjhX_JK.js","js/index-CjEDU2P3.js","css/index-B6yUFiKH.css","js/index-C5l76f6e.js","js/index-3bzRwRyq.js","js/index-B-oZGJ3j.js","css/index-Dig957GB.css","js/index-LYjmBIt_.js","js/index-BlC6n-Ua.js","css/index-Eq1L-L2-.css","js/TablePro-BcQb-4h1.js","js/mockjs@1.1.0-CxlURkif.js","js/index-BG6oi-U_.js","js/index-D6uzvoU7.js","js/index-DrOZrx4m.js","css/index-74sXJ5VP.css","js/index-C296AXrg.js","css/index-b1h4j9PV.css"])))=>i.map(i=>d[i]);
var Yn=Object.defineProperty;var Xn=(e,t,n)=>t in e?Yn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var jt=(e,t,n)=>Xn(e,typeof t!="symbol"?t+"":t,n);import{s as ut,c as He,t as kt,i as nn,p as ze,o as tt,f as Jn}from"./lodash-es@4.17.21-CeZG2a4n.js";import{z as Nt,d as Ft,f as Zn,g as Qn,N as nt,a as eo,b as to,c as E,e as ot,m as no,h as on,u as oo,S as xt,i as ao,j as Oe,k as lo,l as an,n as Ie,o as so,p as ro,q as ln,t as io,r as co,s as uo,v as po,w as sn,x as Ye,y as mo,A as rn,B as fo,C as go,D as ho,E as vo,F as oe,G as yo,H as Bt,I as bo,J as de,K as pe,L as Ve,M as ke,O as cn,P as J,Q as _o,R as So,T as wo,U as Co,V as To,W as Oo,X as un,Y as Ro,Z as Vt,_ as Ao}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{o as Po,u as Le,a as ko,b as xo,c as dn,d as dt,e as Mt,f as Mo}from"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import{k as I,l as Ce,e as te,n as zo,x as Re,a as pn,s as Io,u as Z}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{n as q,w as he,l as M,b as r,m as F,p as ne,q as ie,j as w,f as ve,t as Lo,k as Ee,v as mn,h as at,i as fn,x as Eo,F as gn,y as Do,z as be,A as jo,C as pt,D as No,E as xe,S as Fo,K as Bo,G as $t,H as Vo,I as fe}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{d as ae}from"./dayjs@1.11.10-C8LoRVP6.js";import{p as $o}from"./print-js@1.6.0-BdoEj60G.js";import{u as hn}from"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{b as Ko}from"./jsbarcode@3.11.6-DGNGFp02.js";import{g as Xe,i as ce,s as zt,a as Ot,c as Uo,u as vn,l as yn,b as bn,d as Wo,e as B,r as ge,f as D,h as qo,j as Je,q as Ze,k as qe,m as _n,p as Sn,n as It,o as Kt,t as _e,v as Go,w as Ho,x as Yo,y as Xo,z as Jo,A as se}from"./utils-6rpFoFAR.js";import{i as Ut}from"./interactjs@1.10.26-DZL_TZzP.js";import{s as Zo}from"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import{d as lt,c as Qo}from"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import{t as ea,a as ta,b as na,c as oa,d as aa,e as la}from"./html-to-image@1.11.11-BOFdlgi9.js";import{u as st,a as sa,o as ra,c as ia,b as ca}from"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import{c as ua}from"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import{r as da,u as Me,i as pa,a as ma,b as fa,c as ga,d as ha,e as va,f as ya,g as ba,h as _a,j as Sa,k as wa,l as Ca,m as Ta,n as Oa,o as Ra,p as Aa,q as Pa,s as ka}from"./echarts@5.5.0-CezqL3m-.js";import{g as xa}from"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import{T as Ma,a as za}from"./@vue_runtime-dom@3.5.12-ewSD1rNh.js";const Br=(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(),d=s.join(".");c&&(d?(ut(n,c,n[c]||{}),ut(n[c],d,l)):ut(n,c,l||{}))}),n},Ia="modulepreload",La=function(e){return"/ray-template/"+e},Wt={},L=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"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${d}`))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((h,S)=>{p.addEventListener("load",h),p.addEventListener("error",()=>S(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.":""))))})},Da=async e=>{var n;const t={};for(const a of e){const l=await Ea(Object.assign({"../lang/en-US.ts":()=>L(()=>import("./en-US-D7xUZ2yk.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),"../lang/zh-CN.ts":()=>L(()=>import("./zh-CN-dOsAGuBk.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},Vr=e=>{switch(e){case"zh-CN":return{locale:Nt,dateLocal:Ft};case"en-US":return{locale:null,dateLocal:null};default:return{locale:Nt,dateLocal:Ft}}},$r={max:5,closable:!1},Kr="loading",Ur="",G={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},ja=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],Q={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"},wn=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Na="zh-CN",Fa="zh-CN",Ba={"zh-CN":"zh-cn","en-US":"en"},Va="zh-cn",Wr={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/,cssSize:/^auto|unset|fit-content|max-content|min-content|initial|inherit|revert|revert-layer|[-\w]+-webkit-fill-available$/},qr={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},we=I(null),Cn=I(null),$a={setupRouterLoadingBar:!0,setupRouterGuard:!0},Ka=["RLogin","ErrorPage","RayTemplateDoc"],$e=[],Gr=(e,t)=>{const n=I(0),a=I(0),l=I(!1),{clickOutside:o}={},i=h=>{l.value=h},s=h=>{h.preventDefault(),i(!1),q().then(()=>{const{clientX:S,clientY:g}=h;n.value=S,a.value=g,i(!0)})};o&&Po(e,h=>{o(h)});const c=Le(e,"contextmenu",s,t),d=Le(e,"click",()=>{i(!1)});return{stop:()=>{c(),d()},x:Ce(n),y:Ce(a),show:Ce(l),updateShow:i}},Qe=te({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function re(e,t,n){Object.hasOwn(Qe,e)&&(Qe[e]=t)}function rt(e){return Ce(zo(Qe,e))}function Ua(){return{...Re(Ce(Qe))}}let le;const Wa=async()=>{const e=Kn(),t=await Da(wn);return ua({legacy:!1,locale:e,messages:t,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Fa})},Hr=async e=>{const t=await Wa();e.use(t),le=t},qt=(e,t)=>t,De=e=>{if(!le)return{t:o=>qt(e,o),locale:o=>{}};const{t,...n}=le.global;return{...n,t:(o,...i)=>o?!o.includes(".")&&!e?o:t(qt(e,o),...i):"",locale:o=>{le.mode==="legacy"?le.global.locale=o:pn(le.global.locale)?le.global.locale.value=o:le.global.locale=o}}},N=e=>e,qa={path:"/dashboard",component:()=>L(()=>import("./index-DcajtrM6.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:N("menu.Dashboard"),icon:"dashboard",order:0}},Ga=Object.freeze(Object.defineProperty({__proto__:null,default:qa},Symbol.toStringTag,{value:"Module"})),Ha={path:"/axios",name:"RAxios",component:()=>L(()=>import("./index-BkbN0lKB.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:N("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},Ya=Object.freeze(Object.defineProperty({__proto__:null,default:Ha},Symbol.toStringTag,{value:"Module"})),Xa={path:"barcode",component:()=>L(()=>import("./BarcodeDemo-Cj7gPXWn.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:N("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},Ja=Object.freeze(Object.defineProperty({__proto__:null,default:Xa},Symbol.toStringTag,{value:"Module"})),Za={path:"/cache-demo",component:()=>L(()=>import("./index-40P_oJMv.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:N("menu.CacheDemo"),icon:"other",order:3}},Qa=Object.freeze(Object.defineProperty({__proto__:null,default:Za},Symbol.toStringTag,{value:"Module"})),el={path:"/context-menu",component:()=>L(()=>import("./index-tgRTNfIG.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:N("menu.ContextMenu"),icon:"other",order:2}},tl=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),nl={path:"/directive",component:()=>L(()=>import("./index-Dy43M56X.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:N("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},ol=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),al={path:"/echart",component:()=>L(()=>import("./index-IVPegtuP.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:N("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},ll=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"})),sl={path:"/form",component:()=>L(()=>import("./index-5V4yf9yZ.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:N("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},rl=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),il={path:"/iframe",component:()=>L(()=>import("./index-C9u1x56c.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"}},cl=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),ul={path:"/mock-demo",component:()=>L(()=>import("./index-BA7MPIf6.js"),__vite__mapDeps([64,12,1,2,3,11,4,5,6,7,8,9,10,53,54,32,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},dl=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"})),pl={path:"/modal-demo",component:()=>L(()=>import("./index-ZK2gtRBB.js"),__vite__mapDeps([65,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.Modal"),icon:"other",order:3}},ml=Object.freeze(Object.defineProperty({__proto__:null,default:pl},Symbol.toStringTag,{value:"Module"})),Ge=()=>L(()=>Promise.resolve().then(()=>Ns),void 0),fl={path:"/multi",component:Ge,meta:{i18nKey:N("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>L(()=>import("./index-Dyp40qYu.js"),__vite__mapDeps([66,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:Ge,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>L(()=>import("./index-8F6Ug6Kd.js"),__vite__mapDeps([67,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:Ge,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>L(()=>import("./index-TI4DwZCx.js"),__vite__mapDeps([68,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},gl=Object.freeze(Object.defineProperty({__proto__:null,default:fl},Symbol.toStringTag,{value:"Module"})),hl={path:"/precision",component:()=>L(()=>import("./index-hU9_Mjki.js"),__vite__mapDeps([69,1,2,3,4,5,6,7,8,9,10,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.CalculatePrecision"),icon:"other",order:2}},vl=Object.freeze(Object.defineProperty({__proto__:null,default:hl},Symbol.toStringTag,{value:"Module"})),yl={path:"/qrcode",component:()=>L(()=>import("./index-JALWQc45.js"),__vite__mapDeps([70,71,7,5,6,72,73,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{i18nKey:N("menu.QRCode"),icon:"other",order:2}},bl=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"})),_l={path:"rely-about",component:()=>L(()=>import("./index-CjEDU2P3.js"),__vite__mapDeps([74,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,75])),meta:{i18nKey:N("menu.RelyAbout"),icon:"rely",order:999}},Sl=Object.freeze(Object.defineProperty({__proto__:null,default:_l},Symbol.toStringTag,{value:"Module"})),wl={path:"/router-demo",component:Ge,meta:{i18nKey:N("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>L(()=>import("./index-C5l76f6e.js"),__vite__mapDeps([76,12,1,2,3,40,5,6,7,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,4,8,9,10,32,33,34,35,36,37,38,39,41,42,43,44,45,46,47])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>L(()=>import("./index-3bzRwRyq.js"),__vite__mapDeps([77,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},Cl=Object.freeze(Object.defineProperty({__proto__:null,default:wl},Symbol.toStringTag,{value:"Module"})),Tl={path:"/scroll-reveal",component:()=>L(()=>import("./index-B-oZGJ3j.js"),__vite__mapDeps([78,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,79])),meta:{i18nKey:N("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},Ol=Object.freeze(Object.defineProperty({__proto__:null,default:Tl},Symbol.toStringTag,{value:"Module"})),Rl={path:"/segment",component:()=>L(()=>import("./index-LYjmBIt_.js"),__vite__mapDeps([80,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Al=Object.freeze(Object.defineProperty({__proto__:null,default:Rl},Symbol.toStringTag,{value:"Module"})),Pl={path:"/svg-icons",component:()=>L(()=>import("./index-BlC6n-Ua.js"),__vite__mapDeps([81,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,82])),meta:{i18nKey:N("menu.SvgIcon"),icon:"other",order:3}},kl=Object.freeze(Object.defineProperty({__proto__:null,default:Pl},Symbol.toStringTag,{value:"Module"})),xl={path:"/table-pro",component:()=>L(()=>import("./TablePro-BcQb-4h1.js"),__vite__mapDeps([83,32,12,1,2,3,4,5,6,7,8,9,10,11,13,53,54,84,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},Ml=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),zl={path:"/table",component:()=>L(()=>import("./index-BG6oi-U_.js"),__vite__mapDeps([85,32,12,1,2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Il=Object.freeze(Object.defineProperty({__proto__:null,default:zl},Symbol.toStringTag,{value:"Module"})),Ll={path:"/template-hooks",component:()=>L(()=>import("./index-D6uzvoU7.js"),__vite__mapDeps([86,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.TemplateHooks"),icon:"other",order:1}},El=Object.freeze(Object.defineProperty({__proto__:null,default:Ll},Symbol.toStringTag,{value:"Module"})),Dl=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Ga,"/src/router/modules/demo/axios.ts":Ya,"/src/router/modules/demo/barcode.ts":Ja,"/src/router/modules/demo/cache-demo.ts":Qa,"/src/router/modules/demo/context-menu.ts":tl,"/src/router/modules/demo/directive.ts":ol,"/src/router/modules/demo/echart.ts":ll,"/src/router/modules/demo/form.ts":rl,"/src/router/modules/demo/iframe.ts":cl,"/src/router/modules/demo/mock.ts":dl,"/src/router/modules/demo/modal.ts":ml,"/src/router/modules/demo/multi-menu.ts":gl,"/src/router/modules/demo/precision.ts":vl,"/src/router/modules/demo/qrcode.ts":bl,"/src/router/modules/demo/rely.ts":Sl,"/src/router/modules/demo/router-demo.ts":Cl,"/src/router/modules/demo/scroll-reveal.ts":Ol,"/src/router/modules/demo/segment.ts":Al,"/src/router/modules/demo/svg-icons.ts":kl,"/src/router/modules/demo/table-pro.ts":Ml,"/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},[])},jl=e=>e[0]==="/",Tn=(e,t=[],n="")=>{var a;if(!Array.isArray(e))return[];for(const l of e){const o=n+(jl(l.path)?l.path:"/"+l.path);if((a=l.children)!=null&&a.length){Tn(l.children,t,o);continue}else t.push({...l,path:o})}return t},Nl=e=>Array.isArray(e)?Tn(He(e)):[],Fl=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}),Bl=e=>{const{beforeEach:t}=e,{getRootPath:n}=Pe(),a=(l,o)=>l.path==="/"||o.path==="/login";t((l,o,i)=>{const s=Xe(G.token,"localStorage"),c=Xe(G.appMenuKey,"sessionStorage",{defaultValue:n.value}),{meta:d,name:p}=l;s!==null?a(l,o)?mt(!0):!ce(p,"Symbol")&&p&&Ka.includes(p)?i():Fn(d)?a(l,o)?c?i(c):mt(!0):i():mt(!0):a(l,o)?i():i("/")})},mt=(e=!0)=>{const{router:t}=Et(),{push:n,replace:a}=t,{getRootPath:l}=Pe();zt(G.appMenuKey,l.value,"localStorage"),e?a(l.value):n(l.value)},Vl=e=>{var n;const{meta:t}=e;t!=null&&t.ignoreAutoResetScroll||(n=we.value)==null||n.scrollTo({top:0,left:0,behavior:"smooth"})},$l=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()})},On=e=>{const{meta:t={}}=e,{hidden:n,sameLevel:a,env:l}=t,{MODE:o}=Ot();return!(a||n||l&&typeof l=="string"&&l!==o||l&&Array.isArray(l)&&!l.includes(o))};var Kl={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.1"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const je=lt("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=Kl,{locale:t}=De(),{locale:n}=ur(),a=te({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:16,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:16}}),l=s=>{t(s),n(s),a.localeLanguage=s,zt(G.localeLanguage,s,"localStorage")},o=(s,c=.3)=>{const d=Uo(s,c),p={primaryColor:s,primaryColorHover:s,primaryColorPressed:s};a.primaryColorOverride.common=p;const h=document.body;h.style.setProperty("--ray-theme-primary-color",s),h.style.setProperty("--ray-theme-primary-fade-color",d)},i=(s,c,d)=>{vn(a,s,c,d)};return he(()=>a.appTheme,s=>{s?a.primaryColorOverride=Object.assign({},a.primaryColorOverride,Q.appNaiveUIThemeOverrides.dark,Q.appNaiveUIThemeOverridesCommon.dark):a.primaryColorOverride=Object.assign({},a.primaryColorOverride,Q.appNaiveUIThemeOverrides.light,Q.appNaiveUIThemeOverridesCommon.light)},{immediate:!0,once:!0}),{...Re(a),updateLocale:l,changePrimaryColor:o,updateSettingState:i}},{persist:{key:G.appPiniaSettingStore}}),Rn={...Zn,onRegister:{type:[Function,Array],default:null}},An={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};function Ul(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const Yr=M({name:"RCollapse",props:Object.assign({},Rn,{...An,open:{type:Boolean,default:!0},cols:{type:Number,default:4},bordered:{type:Boolean,default:!0}}),render(){const{$slots:e,$props:t}=this,{labelPlacement:n,showFeedback:a,...l}=t;return r(fs,F(l,{labelPlacement:"top",showFeedback:!1}),{default:()=>[r(Gl,l,Ul(e)?e:{default:()=>[e]})]})}}),Wl={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:()=>yn()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>bn()},onRegister:{type:[Function,Array],default:null}},ql=Wo(),Gt="__R_CHART_DOWN_LOAD_CHART__";ql.forEach(e=>{da(e.name,e.theme)});const Xr=M({name:"RChart",props:Wl,setup(e,{expose:t}){const{getAppTheme:n}=$(),a=ie("rayChartRef"),l=ie("rayChartWrapperRef"),o=Io();let i,s;const{echartTheme:c}=Q;let d;const p=w(()=>[{label:"下载图片",key:Gt,disabled:!(o.value&&o.value.getDom())}]),h=w(()=>({"--ray-chart-width":B(e.width),"--ray-chart-height":B(e.height)})),S=I(!1);let g;const m={aria:e.showAria},_=async()=>{var O;Me([ma,fa,ga,ha,va,ya,ba,_a]),Me([Sa,wa,Ca,Ta,Oa,Ra]),Me([Aa,Pa]),Me([ka]);try{Me((O=e.use)==null?void 0:O.filter(Boolean))}catch(P){console.error("[RChart register error]: ",P)}},f=()=>{if(o.value&&R(),e.theme==="default"){e.autoChangeTheme?u("dark"):u("");return}if(e.theme)u(e.theme);else{const O=e.autoChangeTheme&&n.value?`${c}-dark`:c;u(O)}},b=O=>{let P=Z(O);return P=(V=>Object.assign({},P,V))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),P},u=(O=c)=>{var ue;const P=a.value,j=b(e.options),{height:V,width:U}=P.getBoundingClientRect(),{onSuccess:Y,onError:H}=e;try{o.value=pa(P,O,{width:U===0?200:void 0,height:V===0?200:void 0}),Y&&D(Y,o.value),e.nextTick?(o.value.setOption({}),q(()=>{var X;j&&((X=o.value)==null||X.setOption(j))})):j&&((ue=o.value)==null||ue.setOption(j))}catch(X){throw H&&D(H),new Error(`[RChart render error]: ${X}`)}finally{const{onFinally:X}=e;X&&D(X)}},v=()=>{var O;return!!((O=o.value)!=null&&O.isDisposed())},R=()=>{var O;v()||(O=o.value)==null||O.dispose()},C=()=>{o.value&&o.value.resize()},y=(O,P)=>{if(O===Gt&&!v()){const{filename:V,...U}=e.downloadOptions;qo(o.value.getDataURL(U),V??`${new Date().getTime()}`)}const{onDropdownSelect:j}=e;j&&D(j,O,P)},x=()=>{var P;if(e.autoResize&&(i||(i=kt(C,500)),s||(s=xo(e.autoResizeObserverTarget||l,i))),(P=o.value)!=null&&P.getDom()||!S.value&&e.intersectionObserver)return;f(),g==null||g.stop();const{onRegister:O}=e;O&&o.value&&D(O,o.value,x,A)},A=()=>{R(),i==null||i.cancel(),s==null||s.stop(),g==null||g.stop(),g=null,i=null,s=null};return he(()=>n.value,()=>{e.autoChangeTheme&&(R(),f())}),ve(()=>{var O,P;e.intersectionObserver&&(g=ko(e.intersectionObserverTarget||l,([j])=>{S.value=j.isIntersecting},e.intersectionOptions)),e.watchOptions?d=xa(()=>e.options,j=>{var Y;const V=b(j),U=Object.assign({},bn(),e.setChartOptions);(Y=o.value)==null||Y.setOption(V,U)},{deep:!0,throttle:e.watchOptionsThrottleWait}):d==null||d(),e.loading?(O=o.value)==null||O.showLoading(yn(e.loadingOptions)):(P=o.value)==null||P.hideLoading(),e.showAria!==m.aria&&o.value&&(o.value.setOption(b(e.options)),m.aria=e.showAria),S.value&&!v()&&x()}),t(),Lo(async()=>{await _()}),Ee(()=>{x()}),mn(()=>{A(),d==null||d()}),{rayChartRef:a,cssVarsRef:h,rayChartWrapperRef:l,moreDropDownOptions:p,dropdownSelect:y}},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(nt,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:t,bordered:o,embedded:!0},{default:ge(r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:ge(e,{defaultElement:r("div",{style:"display: none;"},null)}),"header-extra":ge(s,{defaultElement:r(xn,{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)])}}),Jr=()=>{let e,t,n;const a=(c,d,p)=>{c&&(e=c,t=p,n=d)},l=()=>{if(!e)throw new Error("[useChart]: echart instance is not ready yet. if you are using useChart, please make sure you have called register method in onRegister event.");return{dispose: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)}]},Gl=M({name:"RCollapseGrid",props:An,setup(e){const t=I(!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(k,{customClassName:`collapse-icon--arrow ${o?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)]);return ve(()=>{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:d,bordered:p}=this;return r(nt,{bordered:p,style:[d]},{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)]})]})]})})}}),Hl={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}},k=M({name:"RIcon",props:Hl,setup(e){const t=w(()=>`#${e.prefix}-${e.name}`),n=w(()=>({"--ray-icon-width":e.width?B(e.width):B(e.size),"--ray-icon-height":e.height?B(e.height):B(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)])])}}),Yl={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}},Zr=M({name:"RIframe",props:Yl,setup(e,{expose:t}){const n=w(()=>({"--ray-iframe-frameborder":B(e.frameborder),"--ray-iframe-width":B(e.width),"--ray-iframe-height":B(e.height)})),a=ie("iframeRef"),l=I(!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 Le(a,"load",o),Le(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(ot,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)})])}}),Xl={...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}},Jl=(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)})},Pn=(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;Jl(n,o,{scheduler:d=>{const p=d.target;s+=d.dx,c+=d.dy,p.style.transform=`translate(${s}px, ${c}px)`,i==null||i(s,c,d)}}).then(d=>{a(d)})}else l()})},Zl="r-modal__preset-card--fullscreen",kn="r-modal",Te={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},Qr=M({name:"RModal",props:Xl,setup(e){const t=w(()=>({[Te.width]:B(e.width??600),[Te.cardWidth]:B(e.cardWidth??600),[Te.dialogWidth]:B(e.dialogWidth??446)})),n=Je();let a;const l={x:0,y:0},o=w(()=>e.preset==="card"&&e.fullscreen);return he(()=>e.show,i=>{i&&e.dad&&(e.preset==="card"||e.preset==="dialog")?q(()=>{const s=document.getElementById(n);s&&Pn(s,{preset:e.preset,x:l.x,y:l.y,dargCallback:(c,d)=>{l.x=c,l.y=d}}).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:[kn,s?Zl:""],style:[o,s?"height: 100vh":""],preset:a},{id:i},l,n),{...t})}}),ei=()=>{const{create:e,destroyAll:t}=oo();return{create:a=>{const{content:l,...o}=a;let i=l;o.preset==="card"&&o.fullscreen&&(i=()=>at(xt,{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:d,width:p,cardWidth:h,dialogWidth:S}=a,g=e({...o,content:i}),{key:m}=g,_={[Te.width]:B(p??600),[Te.cardWidth]:B(h??600),[Te.dialogWidth]:B(S??446)};return q(()=>{const[f]=Ze(`[internalkey="${m}"]`)||[];if(f){if(c&&Pn(f,{preset:s,x:0,y:0}),d&&s==="card"){const b=f.querySelector(".n-card__content");b&&qe(b,{maxHeight:"calc(100vh - 9px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))",overflowY:"hidden",padding:"0"}),qe(f,{width:"100%",height:"100vh"})}qe(f,_),_n(f,kn)}}),g},destroyAll:t}},Ql={...ao,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function es(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const xn=M({name:"RMoreDropdown",props:Ql,render(){let e;const{iconSize:t,cursor:n,icon:a}=this,{default:l}=this.$slots;return r(Oe,F(this.$props,this.$attrs,{placement:"bottom-start"}),es(e=ge(l,{defaultElement:r(k,{name:a,size:t,cursor:n},null)}))?e:{default:()=>[e]})}}),Ae={...lo,tableFlexHeight:{type:[String,Number],default:void 0},renderWrapperHeader:{type:Boolean,default:!0},cardProps:{type:Object,default:()=>({})},tool:{type:Boolean,default:!0},downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null},onRegister:{type:[Function,Array],default:null}},ee={tableIconSize:"18",tableKey:Symbol("r-table")},ts=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],ns=M({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...Ae},setup(e){return{size:I(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(k,{name:"adjustment",size:ee.tableIconSize,cursor:"pointer"},null)]})}}),os=M({name:"TableFullscreen",setup(){const{wrapperRef:e}=fn(ee.tableKey,{}),[t,{toggleFullscreen:n,isEnabled:a}]=hn(e);return{toggleFullscreen:n,isEnabled:a}},render(){const{toggleFullscreen:e,isEnabled:t,$t:n}=this;return r(k,{name:"fullscreen",size:ee.tableIconSize,cursor:"pointer",onClick:()=>{t||window.$message.warning(n("globalMessage.isEnabledFullscreen")),e()}},null)}}),as=()=>r(k,{name:"draggable",size:14,cursor:"grab"},null),Ht=({icon:e,title:t,onClick:n,customClassName:a})=>r(Ie,{showArrow:!1},{trigger:()=>r(k,{name:e,size:ee.tableIconSize,cursor:"pointer",customClassName:a,onClick:n==null?void 0:n.bind(null)},null),default:()=>t}),Rt=(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]=Rt(e,a.children);if(l&&o!==null)return[l,o]}return[null,null]},ft="r-table__c-tool-icon--active",ls=M({name:"TableC",props:{...Ae,onUpdateColumn:{type:[Function,Array],default:null}},setup(e){let t;const n=w({get:()=>He(e.columns).filter(c=>c.type?(t=c,!1):!0).map((c,d)=>{const{key:p,title:h,children:S,fixed:g,isResizable:m,..._}=c,f=g==="left",b=g==="right",u={..._,title:h,key:p,fixed:g,isLeftFixedActivated:f,isRightFixedActivated:b,isResizable:m};return{...u,suffix:()=>r(E,{style:"padding-left: 32px;"},{default:()=>[r(Ht,{icon:"row_head",title:"固定在列首",customClassName:f?ft:"",onClick:o.bind(this,"left",u,d)},null),r(Ie,{showArrow:!1},{trigger:()=>r(k,{name:"resize_h",size:ee.tableIconSize,cursor:"pointer",customClassName:m?ft:"",onClick:l.bind(this,u,d)},null),default:()=>"修改列宽"}),r(Ht,{icon:"row_end",title:"固定在列尾",customClassName:b?ft:"",onClick:o.bind(this,"right",u,d)},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,d)=>{const p=`${s}FixedActivated`,h=`${s==="left"?"right":"left"}FixedActivated`;c[h]=!1,c[p]=!c[p],c[p]?c.fixed=s:c.fixed=void 0,n.value[d]=c,a(n.value)};return{treeDataSource:n,treeDrop:({node:s,dragNode:c,dropPosition:d})=>{const[p,h]=Rt(c,n.value);if(p===null||h===null)return;p.splice(h,1);const[S,g]=Rt(s,n.value);S===null||g===null||(d==="before"?S.splice(g,0,c):S.splice(g+1,0,c),nn(t)||S.unshift(t),a(S))}}},render(){return r(Ie,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>r(k,{name:"setting",size:ee.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:as.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),ss=M({name:"TablePrint",props:Ae,setup(e){const{wrapperRef:t}=fn(ee.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:""),Sn(t,{printOptions:a,domToImageOptions:l})}}},render(){return r(k,{name:"print",size:ee.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),rs=M({name:"TablePropsSelect",props:{...Ae,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const t=I(!1),n=I([]),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:ts,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(k,{name:"expanded",size:ee.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function is(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const cs=M({name:"RTable",inheritAttrs:!1,props:Ae,setup(e,t){const{expose:n,emit:a}=t,l=ie("rTableInst"),o=ie("wrapperRef"),i=Je(16),s=Je(16),c=te({x:0,y:0,showContextMenu:!1}),d=te({size:e.size}),p=I(Object.assign({striped:!1,bordered:!1},ze(e,"striped","bordered"))),h=(u,v)=>{const{onContextMenuClick:R}=e;R&&D(R,u,v),c.showContextMenu=!1},S=(u,v)=>{var C;return{...(C=e.rowProps)==null?void 0:C.call(e,u,v),onContextmenu:e.disabledContextMenu?void 0:y=>{y.preventDefault(),c.showContextMenu=!1,q().then(()=>{c.showContextMenu=!0,c.x=y.clientX,c.y=y.clientY})}}},g=u=>{d.size=u},m=u=>{const{onUpdateColumns:v,"onUpdate:columns":R}=e;v&&D(v,u),R&&D(R,u)},_=()=>{const{toolOptions:u}=e;return u==null?void 0:u.filter(Boolean).map(v=>typeof v=="function"?v():v)},f=u=>{Object.keys(p.value).forEach(R=>{p.value[R]=u.includes(R)})},b=u=>{const{tool:v}=u;if(!v)return;const R=()=>r(E,{align:"center"},{default:()=>[r(ss,u,null),r(ns,F(u,{onChangeSize:g.bind(this)}),null),r(os,null,null),r(ls,F(u,{onUpdateColumn:m.bind(this)}),null),r(rs,F(u,{onPopselectChange:f.bind(this),onInitialed:f.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let C;return r(E,{align:"center"},is(C=_())?C:{default:()=>[C]})}:()=>r(E,{align:"center"},{default:()=>[R(),_()]}):R};return Ee(()=>{const{onRegister:u}=e;u&&l.value&&D(u,l.value,{uuidTable:s,uuidWrapper:i,wrapperRef:o})}),Eo(ee.tableKey,{uuidTable:s,uuidWrapper:i,wrapperRef:o}),n(),{uuidWrapper:i,uuidTable:s,contextMenuReactive:c,rTableInst:l,combineRowProps:S,contextMenuSelect:h,privateReactive:d,tool:b,wrapperRef:o,propsPopselectValue:p}},render(){const{$props:e,$attrs:t,$slots:n,uuidTable:a,contextMenuReactive:l,uuidWrapper:o,privateReactive:i,propsPopselectValue:s}=this,{class:c,...d}=t,{tool:p,combineRowProps:h,contextMenuSelect:S}=this,{renderWrapperHeader:g,wrapperBordered:m,disabledContextMenu:_,contextMenuOptions:f,title:b,tableFlexHeight:u,cardProps:v,...R}=e;return r(nt,F(v,{id:o},d,{ref:"wrapperRef",bordered:m,class:c}),{default:()=>r(gn,null,[r(ro,F({id:a},R,s,{rowProps:h.bind(this),size:i.size,ref:"rTableInst",style:{height:u!=null?B(u):null}}),{...n}),_?null:r(Oe,{show:l.showContextMenu,placement:"bottom-start",trigger:"manual",x:l.x,y:l.y,options:f,onClickoutside:()=>l.showContextMenu=!1,onSelect:S.bind(this)},null)]),header:g?ge(b,{defaultElement:r("div",{style:"display: none;"},null)}):null,"header-extra":p(e),footer:()=>{var C;return(C=n.tableFooter)==null?void 0:C.call(n)},action:()=>{var C;return(C=n.tableAction)==null?void 0:C.call(n)}})}}),us=()=>{const e=I();let t={};const n=(g,m)=>{g&&(e.value=g,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:g=>a().downloadCsv.call(null,g),filters:g=>a().filters.call(null,g),page:g=>a().page.call(null,g),scrollTo:g=>a().scrollTo(g),sort:(g,m)=>a().sort.call(null,g,m),print:g=>{const{uuidWrapper:m}=t;if(m){const _=document.getElementById(m);Sn(_,g)}},filter:g=>a().filter.call(null,g)}]},Mn=(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=Mn(l.children,t,n);if(o)return o}}},Yt=e=>{const t=Z(e);return t?t.findIndex(a=>{const{type:l,multiple:o}=a;if(l==="selection"&&(o==null||o===!0))return!0})!==-1:!0},ds=(e,t,n,a)=>{const l=Z(e);return l?t.reduce((o,i)=>{const s=Z(n).findIndex(d=>d[a]===i);if(s!==-1)return o.push(Z(n)[s]),o;const c=l.findIndex(d=>d[a]===i);return c!==-1&&o.push(l[c]),o},[]):n},ti=(e,t,n)=>{const a=I([]),l=I([]),{rowKey:o="key",onChange:i}=n||{},s=w(()=>Yt(t)),c=(m,_,f)=>{a.value=m,l.value=Z(ds(e,m,l,o)),i==null||i(m,l.value,f),Yt(t)},d=()=>a.value,p=()=>l.value,h=()=>{a.value=[],l.value=[],i==null||i(a.value,l.value,{row:void 0,action:"uncheckAll"})},S=m=>{if(m==null)return;let _;a.value=a.value.filter(f=>f!==m),l.value=l.value.filter(f=>f[o]===m?(_=f,!1):!0),i==null||i(a.value,l.value,{row:_,action:"uncheck"})},g=m=>{if(a.value.includes(m))return;const _=!s.value&&a.value.length>=1,f=Mn(Z(e)||[],o,m);_?a.value=[m]:a.value.push(m),f&&(_?l.value=[f]:l.value.push(f),i==null||i(a.value,l.value,{row:f,action:"check"}))};return It(()=>{h()}),[a,{checkedRows:l,checkedRowKeysBind:c,getKeys:d,getRows:p,clearAll:h,clearKey:S,selectKey:g}]},ps={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},ms=M({name:"RTransitionComponent",__name:"index",props:Do({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},ps),setup(e){const{getKeepAliveInclude:t}=ks(),{getKeepAliveConfig:n}=$();return(a,l)=>{const o=No("RouterView");return be(),jo("div",null,[r(o,null,{default:pt(({Component:i,route:s})=>[i?(be(),xe(Ma,{key:0,name:a.transitionPropName,mode:a.transitionMode,appear:a.transitionAppear},{default:pt(()=>[(be(),xe(Fo,null,{default:pt(()=>[Z(n).setupKeepAlive?(be(),xe(Bo,{key:0,max:Z(n).maxKeepAliveLength,include:Z(t),exclude:Z(n).keepAliveExclude},[(be(),xe($t(i),{key:s.fullPath}))],1032,["max","include","exclude"])):(be(),xe($t(i),{key:s.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Vo("",!0)]),_:1})])}}}),fs=M({name:"RForm",props:Rn,setup(e,{expose:t}){const n=ie("formRef");return Ee(()=>{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})}}),ni=(e,t)=>{const n=I(),a=d=>{d&&(n.value=d)},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:(d,p)=>l().validate.call(null,d,p),restoreValidation:()=>l().restoreValidation.call(null),formModel:()=>He(e)||{},formRules:()=>He(t)||{}}]},gs=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],hs={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},vs=tt({...io,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...gs);function ys(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const At=e=>{const{icon:t,label:n}=e;return t?r(E,{align:"center",wrap:!1,size:"small"},{default:()=>{var a;return[(a=ge(t))==null?void 0:a(),r("div",null,[n])]}}):n},bs=e=>{if(typeof e.popover=="string")return r(Ie,null,{trigger:()=>At(e),default:()=>e.popover});if(ce(e.popover,"Object")){const{popover:t}=e,{label:n,...a}=t;return r(Ie,a,{trigger:()=>At(e),default:()=>n})}},_s=M({name:"RSegment",props:vs,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"?B(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(uo,F(t,{ref:"segmentRef",style:[a],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},hs,l)}),ys(e=n.map(o=>r(co,{key:o.key,name:o.key,tab:o.popover?bs(o):At(o),disabled:o.disabled},{...o.slots})))?e:{default:()=>[e]})}}),Ss={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]}},oi=M({name:"RBarcode",props:Ss,setup(e){const t=ie("barcodeRef"),n=w(()=>({"--r-barcode-width":B(e.width),"--r-barcode-height":B(e.height)}));let a;const l=()=>{try{const{format:o,text:i,options:s,onSuccess:c}=e,d=Object.assign({},s,{format:o});Ko(t.value,i!=null?i.toString():"",d),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 ve(()=>{e.watchText?a=he(()=>e.text,l):a==null||a()}),Ee(()=>{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(ot,{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)]})}}),ws={...tt(Ae,["pagination"]),paginationCount:{type:Number,default:1},onRegister:{type:Function,default:void 0},manual:{type:Boolean,default:!1},request:{type:Function},onTablePaginationUpdate:{type:Function},requestConfig:{type:Object,default:()=>({})},showPagination:{type:Boolean,default:!1},remote:{type:Boolean,default:!0}};function Cs(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const ai=M({name:"RTablePro",props:ws,setup(e){const[t,{clearFilters:n,clearSorter:a,downloadCsv:l,filters:o,page:i,scrollTo:s,sort:c,print:d,filter:p}]=us(),[h,{getPage:S,getPageSize:g,setCallback:m,setItemCount:_,resetPagination:f,getItemCount:b}]=mr(void 0,{prefix:A=>`${A.itemCount}`}),u=w(()=>e.request),v=()=>({getItemCount:b,getPage:S,getPageSize:g}),R=()=>{const{onTablePaginationUpdate:A}=e;A&&D(A,v())},C=A=>{const O=Object.assign({},e.requestConfig,A),{params:P,formatRangeTime:j}=O;return j!=null&&j.length&&P&&j.forEach(U=>{const{key:Y,target:H}=U,ue=P[Y];if(ue&&(H!=null&&H.length)){const[X,Fe]=ue;P[H[0]]=X,P[H[1]]=Fe}else P[Y]=null,P[H[0]]=null,P[H[1]]=null}),Object.assign({},P,{page:S(),pageSize:g()})},y=A=>{var P;f();const O=C(A);(P=u.value)==null||P.call(u,O)},x=A=>{var P;const O=C(A);(P=u.value)==null||P.call(u,O)};return ve(()=>{_(e.paginationCount),m(()=>{const{manual:A}=e;A||x(),R()})}),Ee(()=>{const{onRegister:A}=e;A&&D(A,{getTablePagination:v,runTableRequest:y,clearFilters:n,clearSorter:a,downloadCsv:l,filters:o,page:i,scrollTo:s,sort:c,print:d,filter:p,getCurrentTableRequestParams:C})}),{register:t,paginationRef:h}},render(){const{register:e,$props:t,paginationRef:n,$slots:a}=this,{onRegister:l,showPagination:o,...i}=t;return r(cs,F(i,{onRegister:e,pagination:o?n:void 0}),Cs(a)?a:{default:()=>[a]})}}),li=()=>{const e=I(),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,_)=>n().sort.call(null,m,_),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)}]},Ts=(e,t,n)=>!e||typeof e!="object"?!1:e[t]===n,zn=(e,t,n)=>{const a=[];if(Ts(e,t,n))return a.push(e),a;if(e.children&&e.children.length>0)for(const l of e.children){const o=zn(l,t,n);o.length>0&&a.push(e,...o)}return a},Os=(e,t,n)=>{const a=[];for(const l of e){const o=zn(l,t,n);o.length>0&&a.push(...o)}return a},Xt=e=>{const{breadcrumbLabel:t}=e;if(!t)return;const{sideBarLogo:n}=je(),a=n?n.title:"";document.title=t+" - "+a},Rs=e=>{const{meta:{icon:t}}=e;if(!t)return;if(ce(t,"Object"))return()=>t;const{menuConfig:n}=je(),{collapsed:a}=Lt(),l=at(k,{name:t,size:a?n.collapsedIconSize:n.iconSize,cursor:"pointer"},{});return()=>l},In=e=>{const{meta:{extra:t}}=e;if(!t)return;const{show:n}=t;if(n===!1)return;const{t:a}=De(),{label:l,icon:o,type:i,i18nLabel:s}=t,c={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},d=()=>s?a(s):l||null,p=()=>o&&(s||l)||!o&&(s||l)?null:{"padding-right":"0"};if(ce(t,"Object"))return()=>at(po,{...c,type:i||"primary",style:p()},{default:()=>d(),icon:()=>o})},Jt=()=>{const{getRootPath:e}=Pe();return Xe(G.appMenuKey,"sessionStorage",{defaultValue:e.value})},Ln=()=>Fl(Dl()),As=()=>Nl(Ln()),Pt=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let Ke;const En=(e,t)=>{var n;if(Ke&&Kt(Ke.fullPath,t))return Ke;for(const a of e){if(Kt(a.fullPath,t))return Ke=a,a;if((n=a.children)!=null&&n.length){En(a.children,t);continue}}},Lt=lt("menu",()=>{const{push:e,getRoutes:t}=st(),n=sa(),{t:a}=De(),{setKeepAliveInclude:l}=xs(),o=te({menuKey:Jt(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),i=I(!0),s=(u,v,R)=>{vn(o,u,v,R)},c=u=>{const{meta:v}=u,{i18nKey:R,noLocalTitle:C}=v,y=w(()=>R?a(`${R}`):C),x={...u,key:u.fullPath,label:()=>at(sn,null,{default:()=>y.value}),breadcrumbLabel:y.value},A=Object.assign({},x,{icon:Rs(u),extra:In(u)});return u.fullPath===Jt()&&(o.currentMenuOption=A),A.show=On(A),A},d=u=>{o.breadcrumbOptions=Os(o.options,"fullPath",u)},p=(u,v=!0)=>{const C=Array.isArray(u)?[...u]:[u];v?o.menuTagOptions.push(...C):o.menuTagOptions=C},h=(u,v)=>{o.menuTagOptions.find(C=>C.fullPath===u)||o.menuTagOptions.push(v)},S=(u,v,R)=>{const{meta:C}=v;if(C.windowOpen)window.open(C.windowOpen);else{e({path:String(u),query:R});const{sameLevel:y}=C;if(l(v),Xt(v),!y)h(u,v),d(u),o.menuKey=u,o.currentMenuOption=v,zt(G.appMenuKey,u);else{const x=ze(c(v),Pt);o.breadcrumbOptions.find(O=>O.key===x.key)||o.breadcrumbOptions.push({...x,fullPath:String(x.key)})}}},g=async(u,v)=>{const[R]=u.split("?"),C=t().find(y=>y.path===R);if(!((C==null?void 0:C.path)==="/"||!(C!=null&&C.path)||(C==null?void 0:C.path)==="/login")&&C){const y=ze(C,Pt);S(R,c({...y,fullPath:y.path}),v)}},m=()=>new Promise(u=>{const v=(R,C)=>{var x;const y=[];for(const A of R){let O=`${C.endsWith("/")?C:C+"/"}${A.path}`;if(O=O.replace(/\/+/g,"/"),(x=A.children)!=null&&x.length)A.children=v(A.children,O);else if(!Fn(A.meta))continue;y.push(c({...A,fullPath:O}))}return y};if(o.options=v(Ln(),""),o.currentMenuOption){const{currentMenuOption:R}=o;o.breadcrumbOptions.length||d(R.key),h(R.fullPath,R),Xt(R)}u()}),_=u=>o.collapsed=u,f=(u,v=1)=>o.menuTagOptions.splice(u,v),b=async()=>{i.value&&(await m(),i.value=!1)};return he(()=>n.fullPath,async(u,v)=>{await b(),u!==v&&await g(u,n.query)},{immediate:!0}),{...Re(o),changeMenuModelValue:S,collapsedMenu:_,spliceMenTagOptions:f,setMenuTagOptions:p,resolveOption:c,updateMenuState:s}},{persist:{key:G.appPiniaMenuStore,storage:window.localStorage,pick:["breadcrumbOptions","menuKey","menuTagOptions","collapsed"]}}),Dn=lt("signing",()=>{const e=te({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:d,appMenuKey:p}=G;window.$message.info("账号退出中..."),_e("__all_sessionStorage__","sessionStorage"),_e(s,"localStorage"),_e(i,"localStorage"),_e(c,"localStorage"),_e(d,"localStorage"),_e(p,"localStorage"),o(),l&&(window.location.replace("#/"),setTimeout(()=>{window.location.reload()},0))},a=()=>{n(!0)};return{...Re(e),signing:t,logout:a,clearSigningCallback:n}},{persist:{key:G.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),jn=lt("keepAlive",()=>{const e=te({keepAliveInclude:[]}),t=()=>e.keepAliveInclude.length,n=l=>{const o=t(),{name:i,meta:{keepAlive:s}}=l,{maxKeepAliveLength:c}=je().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{...Re(e),setKeepAliveInclude:n,getKeepAliveInclude:a}},{persist:{key:G.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),ye=()=>{const e=Lt(),t=w(()=>e.options),n=w(()=>e.breadcrumbOptions),a=w(()=>e.menuKey),l=w(()=>{const{getRootPath:s}=Pe();return e.menuTagOptions.map((c,d,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}},Ne=()=>{const{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:n,setMenuTagOptions:a,resolveOption:l,updateMenuState:o}=Lt();return{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:n,setMenuTagOptions:a,resolveOption:l,updateMenuState:o}},$=()=>{const e=je(),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),d=w(()=>e.copyrightSwitch),p=w(()=>e.contentTransition),h=w(()=>e.watermarkSwitch),S=w(()=>e.watermarkConfig),g=w(()=>e.appRootRoute),m=w(()=>e.sideBarLogo),_=w(()=>e.keepAliveConfig),f=w(()=>e.menuConfig);return{getDrawerPlacement:t,getPrimaryColorOverride:n,getAppTheme:a,getMenuTagSwitch:o,getBreadcrumbSwitch:i,getLocaleLanguage:s,getLockScreenSwitch:c,getCopyrightSwitch:d,getContentTransition:p,getWatermarkSwitch:h,getWatermarkConfig:S,getAppRootRoute:g,getSideBarLogo:m,getKeepAliveConfig:_,getMenuConfig:f,getAppThemeStr:l}},K=()=>{const{updateLocale:e,changePrimaryColor:t,updateSettingState:n}=je();return{updateLocale:e,changePrimaryColor:t,updateSettingState:n}},Nn=()=>{const e=Dn();return{getSigningCallback:w(()=>e.signingCallback)}},Ps=()=>{const{signing:e,logout:t,clearSigningCallback:n}=Dn();return{signing:e,logout:t,clearSigningCallback:n}},ks=()=>{const e=jn();return{getKeepAliveInclude:w(()=>e.keepAliveInclude)}},xs=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:t}=jn();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},si=e=>{const t=Qo();e.use(t),t.use(Zo)},Fn=e=>{const{getSigningCallback:t}=Nn(),{role:n}=e;return $e!=null&&$e.length&&$e.includes(t.value.role)||!n||!(n!=null&&n.length)?!0:n?n.includes(t.value.role):!0},Ms=e=>{const{setupRouterLoadingBar:t,setupRouterGuard:n}=$a;t&&$l(e),n&&Bl(e)},zs=I(),Is=M({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=st(),{getSideBarLogo:t}=$();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(k,{name:t.value.icon,size:"30",cursor:l},null);if(ce(t.value.icon,"Object"))return ge(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:zs},[e!=null&&e.icon?t?r(Ye,{placement:"right"},{trigger:()=>n({cursor:"pointer"}),default:()=>e.title}):n({cursor:"pointer"}):t?r(Ye,{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(mo,{class:[t?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"'],type:"primary",size:18},{default:()=>[r(sn,null,{default:()=>[e.title]})]})]):null}}),Ls=M({name:"AppMenu",setup(){const e=I(null),{changeMenuModelValue:t,collapsedMenu:n,updateMenuState:a}=Ne(),{getMenuConfig:l}=$(),{getMenuOptions:o,getCollapsed:i,getMenuKey:s}=ye(),c=w({get:()=>(q().then(()=>{h()}),s.value),set:()=>{d.value&&re("globalDrawerValue",!1)}}),{isTabletOrSmaller:d}=it({observer:g=>{g&&a("collapsed",!1)}}),p=w({get:()=>rt("globalDrawerValue").value,set:g=>{re("globalDrawerValue",g)}}),h=()=>{const g=c.value;g!=null&&q(()=>{var m,_;return(_=(m=e.value)==null?void 0:m.showOption)==null?void 0:_.call(m,g)})};return{isTabletOrSmaller:d,BasicMenu:()=>r(go,{class:"app-menu__sider",showTrigger:!d.value,collapseMode:l.value.collapsedMode,collapsedWidth:l.value.collapsedWidth,onUpdateCollapsed:n.bind(this),nativeScrollbar:!1,ref:Cn,collapsed:i.value,onExpand:()=>{a("collapsed",!1)},onCollapse:()=>{a("collapsed",!0)}},{default:()=>[l.value.menuSiderBarLogo?r(Is,{collapsed:i.value},null):null,r(fo,{ref:e,class:"r-menu--app",keyField:"fullPath",value:c.value,"onUpdate:value":g=>c.value=g,options:o.value,indent:l.value.collapsedIndent,collapsed:i.value,collapsedIconSize:l.value.collapsedIconSize,collapsedWidth:l.value.collapsedWidth,onUpdateValue:(g,m)=>{t(g,m)},accordion:l.value.accordion,iconSize:l.value.iconSize},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 Es{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 gt={requestInstance:null,responseInstance:null},ht={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},Ue={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},Ds=new Es,ri=()=>{const e=(s,c)=>{c==="requestInstance"?gt.requestInstance=s:gt.responseInstance=s},t=s=>gt[s],n=(s,c,d)=>{d==="ok"?ht[s]=c:Ue[s]=c},a=(s,c)=>c==="ok"?ht[s]:Ue[s],l=(s,...c)=>{Array.isArray(s)&&s.forEach(d=>{typeof d=="function"&&d(...c)})};return{createAxiosInstance:e,setImplement:n,getImplement:a,getAxiosInstance:t,beforeFetch:(s,c,d)=>{const p=d==="ok"?ht[c]:Ue[c],h=t(s),{MODE:S}=Ot();h&&l(p,h,S)},fetchError:(s,c,d)=>{const p=Ue[d],{MODE:h}=Ot();l(p,c,h)}}},js=M({name:"AppRequestCancelerProvider",setup(e,{expose:t}){ra(()=>{Ds.cancelAllRequest()}),t()},render(){return r("div",{class:"app-style-provider"},null)}}),Bn=M({name:"LayoutContentWrapper",setup(){st();const{maximize:e}=Vn(),{getContentTransition:t}=$(),n=I(!1),a={opacitySpinning:"0"},{globalMainLayoutLoad:l,layoutContentMaximize:o,layoutContentSpinning:i}=Ua();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(ot,{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(k,{name:"out",size:"16",cursor:"pointer"},null)]):null,r(js,null,null),e?r(ms,{class:"content-wrapper",transitionPropName:i+"-transform"},null):null]})}}),Ns=Object.freeze(Object.defineProperty({__proto__:null,default:Bn},Symbol.toStringTag,{value:"Module"}));var Fs={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.1"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Bs=M({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=Fs;return{copyright:e}},render(){return this.copyright?r("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),Vs=M({name:"TooltipIcon",props:{...ho,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(k,{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(Ye,this.$props,{trigger:()=>r(e,null,null),default:()=>this.tooltipText}):r(e,null,null)}}),$s=M({name:"ThemeSegment",setup(){const{system:e}=dn(),{getAppThemeStr:t,getAppTheme:n}=$(),{updateSettingState:a}=K(),l=[{label:"深色",key:"dark",icon:()=>r(k,{name:"dark",size:"16"},null)},{label:"浅色",key:"light",icon:()=>r(k,{name:"light",size:"16"},null)},{label:"自动",key:"auto",icon:()=>r(k,{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 ve(()=>{i(o.value,e.value)}),{options:l,modelAppTheme:o}},render(){const{options:e}=this;return r(_s,{options:e,size:"small",width:"block",value:this.modelAppTheme,"onUpdate:value":t=>this.modelAppTheme=t},null)}}),Ks={contentTransition:"scale",watermarkSwitch:!1,keepAliveConfig:{maxKeepAliveLength:10,setupKeepAlive:!0},menuConfig:{collapsedWidth:64,collapsedMode:"width",collapsedIconSize:16,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:16},menuTagSwitch:!0,breadcrumbSwitch:!0,copyrightSwitch:!0,drawerPlacement:"right"};function vt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const Us=M({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:d,getWatermarkSwitch:p,getKeepAliveConfig:h,getMenuConfig:S,getDrawerPlacement:g}=$(),m=w({get:()=>e.show,set:b=>{t("update:show",b)}}),_=w({get:()=>({getMenuTagSwitch:i.value,getBreadcrumbSwitch:s.value,getCopyrightSwitch:c.value,getContentTransition:d.value,getWatermarkSwitch:p.value,getKeepAliveConfig:h.value,getMenuConfig:S.value,getDrawerPlacement:g.value}),set:b=>{}});return{modelShow:m,changePrimaryColor:n,getAppTheme:l,getPrimaryColorOverride:o,updateSettingState:a,modelReactive:_,defaultSettingBtnClick:()=>{Jn(Ks,(b,u)=>{a(u,b)})}}},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(oe,{titlePlacement:"center"},vt(e=a("headerSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),r($s,null,null),r(oe,{titlePlacement:"center"},vt(t=a("headerSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),r(yo,{swatches:Q.appThemeColors,value:this.getPrimaryColorOverride.common.primaryColor,"onUpdate:value":s=>this.getPrimaryColorOverride.common.primaryColor=s,onUpdateValue:l.bind(this)},null),r(oe,{titlePlacement:"center"},vt(n=a("headerSettingOptions.ContentTransition"))?n:{default:()=>[n]}),r(Bt,{value:this.modelReactive.getContentTransition,"onUpdate:value":s=>this.modelReactive.getContentTransition=s,options:ja,onUpdateValue:s=>{o("contentTransition",s)}},null),r(oe,{titlePlacement:"center"},{default:()=>[fe("抽屉位置")]}),r(Bt,{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(oe,{titlePlacement:"center"},{default:()=>[fe("系统设置")]}),r(bo,{labelPlacement:"left",column:1},{default:()=>[r(de,{label:"菜单页头"},{default:()=>[r(pe,{value:this.modelReactive.getMenuConfig.menuSiderBarLogo,"onUpdate:value":s=>this.modelReactive.getMenuConfig.menuSiderBarLogo=s,onUpdateValue:s=>o("menuConfig",{menuSiderBarLogo:s})},null)]}),r(de,{label:"菜单手风琴"},{default:()=>[r(pe,{value:this.modelReactive.getMenuConfig.accordion,"onUpdate:value":s=>this.modelReactive.getMenuConfig.accordion=s,onUpdateValue:s=>o("menuConfig",{accordion:s})},null)]}),r(de,{label:"页面缓存"},{default:()=>[r(pe,{value:this.modelReactive.getKeepAliveConfig.setupKeepAlive,"onUpdate:value":s=>this.modelReactive.getKeepAliveConfig.setupKeepAlive=s,onUpdateValue:s=>o("keepAliveConfig",{setupKeepAlive:s})},null)]}),r(de,{label:"多标签"},{default:()=>[r(pe,{value:this.modelReactive.getMenuTagSwitch,"onUpdate:value":s=>this.modelReactive.getMenuTagSwitch=s,onUpdateValue:s=>o("menuTagSwitch",s)},null)]}),r(de,{label:"面包屑"},{default:()=>[r(pe,{value:this.modelReactive.getBreadcrumbSwitch,"onUpdate:value":s=>this.modelReactive.getBreadcrumbSwitch=s,onUpdateValue:s=>o("breadcrumbSwitch",s)},null)]}),r(de,{label:"水印"},{default:()=>[r(pe,{value:this.modelReactive.getWatermarkSwitch,"onUpdate:value":s=>this.modelReactive.getWatermarkSwitch=s,onUpdateValue:s=>o("watermarkSwitch",s)},null)]}),r(de,{label:"页底信息"},{default:()=>[r(pe,{value:this.modelReactive.getCopyrightSwitch,"onUpdate:value":s=>this.modelReactive.getCopyrightSwitch=s,onUpdateValue:s=>o("copyrightSwitch",s)},null)]})]}),r(oe,{titlePlacement:"center"},{default:()=>[fe("菜单样式")]}),r(ln,{showFeedback:!0,showRequireMark:!1},{default:()=>[r(Ve,{label:"每级菜单缩进"},{default:()=>[r(ke,{value:this.modelReactive.getMenuConfig.collapsedIndent,"onUpdate:value":s=>this.modelReactive.getMenuConfig.collapsedIndent=s,min:0,precision:0,onUpdateValue:s=>{s!==null&&o("menuConfig",{collapsedIndent:s})}},null)]}),r(Ve,{label:"菜单图标尺寸"},{default:()=>[r(ke,{value:this.modelReactive.getMenuConfig.iconSize,"onUpdate:value":s=>this.modelReactive.getMenuConfig.iconSize=s,min:0,precision:0,onUpdateValue:s=>{s!==null&&o("menuConfig",{iconSize:s})}},null)]}),r(Ve,{label:"折叠菜单图标尺寸"},{default:()=>[r(ke,{value:this.modelReactive.getMenuConfig.collapsedIconSize,"onUpdate:value":s=>this.modelReactive.getMenuConfig.collapsedIconSize=s,min:0,precision:0,onUpdateValue:s=>{s!==null&&o("menuConfig",{collapsedIconSize:s})}},null)]}),r(Ve,{label:"折叠菜单宽度",showFeedback:!1},{default:()=>[r(ke,{value:this.modelReactive.getMenuConfig.collapsedWidth,"onUpdate:value":s=>this.modelReactive.getMenuConfig.collapsedWidth=s,min:0,precision:0,onUpdateValue:s=>{s!==null&&o("menuConfig",{collapsedWidth:s})}},null)]})]}),r(oe,{titlePlacement:"center"},{default:()=>[r(E,{wrap:!1,align:"center",size:[4,0]},{default:()=>[r(Ye,{placement:"top",showArrow:!1},{trigger:()=>r(k,{name:"question",size:"16"},null),default:()=>"当设置为【0】时缓存将会失效"}),r(cn,null,{default:()=>[fe("最大缓存数")]})]})]}),r(ke,{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(oe,{titlePlacement:"center"},{default:()=>[fe("操作")]}),r(E,null,{default:()=>[r(J,{type:"primary",block:!0,onClick:i},{default:()=>[fe("清除设置")]})]})]})]})]})}});function Ws(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const qs=M({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=Ne(),{getBreadcrumbOptions:t}=ye(),{isTabletOrSmaller:n}=it();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(za,{tag:"li",name:"breadcrumb",appear:!0},Ws(e=n.map(o=>r(_o,{key:o.fullPath,onClick:l.bind(this,o)},{default:()=>{var i;return[r(Oe,{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 yt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const Gs=M({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const{changeMenuModelValue:n,resolveOption:a}=Ne(),{getRoutes:l}=st(),o=w({get:()=>e.show,set:y=>{t("update:show",y),y||g()}}),i=te({searchValue:null,searchOptions:[]}),s=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let c=0,d=c;const{isTabletOrSmaller:p}=it(),h=I(!1),S="content-item--active",g=()=>{i.searchOptions=[],i.searchValue=null,c=0,d=c},m=y=>{o.value||(y.ctrlKey||y.metaKey)&&y.key==="k"&&(y.preventDefault(),y.stopPropagation(),g(),o.value=!0)},_=y=>{if(y)h.value=!0;else{h.value=!1,i.searchOptions=[];return}const x=l().reduce((A,O)=>{var U;const P=ze(O,["children","meta","path","name"]),j=a({...P,fullPath:O.path}),{breadcrumbLabel:V}=j;return(U=V==null?void 0:V.toLocaleLowerCase())!=null&&U.includes(y.toLocaleLowerCase())&&On(j)&&A.push(j),A},[]);setTimeout(()=>{i.searchOptions=x,q().then(()=>{b()}),h.value=!1},500)},f=y=>{if(y){const{meta:x}=y;x.windowOpen?window.open(x.windowOpen):(o.value=!1,n(y.fullPath,y),setTimeout(Go,300))}},b=()=>{const y=i.searchOptions[c],x=i.searchOptions[d];y&&q().then(()=>{const A=Ze(`attr:data_path="${y.path}"`),O=x?Ze(`attr:data_path="${x==null?void 0:x.path}"`):null;if(O!=null&&O.length){const[P]=O;Ho(P,S)}if(A!=null&&A.length){const[P]=A;_n(P,S)}})},u=y=>{const{icon:x}=y;return typeof x=="string"?r(k,{name:x,size:"24"},null):typeof x=="function"?()=>x:r(k,{name:"search",size:"24"},null)},v=y=>{y==="up"&&(c-=1,c<0&&(c=i.searchOptions.length-1)),y==="down"&&(c+=1,c>=i.searchOptions.length&&(c=0))},R=y=>{const x=y.key;switch((x==="ArrowUp"||x==="ArrowDown"||x==="Enter")&&(y.preventDefault(),y.stopPropagation()),d=c<=0?0:c,x){case"ArrowUp":v("up");break;case"ArrowDown":v("down");break;case"Enter":const A=i.searchOptions[c];A&&f(A);break}b()},C=({menuOption:y})=>r(E,F({align:"center",class:"content-item"},{onClick:f.bind(this,y),data_path:y.path}),{default:()=>[r("div",{class:"content-item-icon"},[u(y.meta)]),r("div",{class:"content-item-label"},[y.breadcrumbLabel]),r(k,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return ve(()=>{p.value&&(o.value=!1)}),Le(window,"keydown",y=>{m(y),R(y)},!0),{...Re(i),modelShow:o,helperTipOptions:s,fuzzySearchMenuOptions:kt(_,300),searchItemClick:f,RenderPreIcon:u,isTabletOrSmaller:p,SearchItem:C,loading:h}},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(nt,{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(k,{name:"search",size:"24"},null)}),default:()=>{let o;return r(xt,null,{default:()=>[r(ot,{show:n},{default:()=>[t.length?r(E,{vertical:!0,size:[0,6],class:"global-search__card-content"},yt(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:()=>[fe("没有搜索结果")]})]})})]})]})},action:()=>{let o;return r(E,{justify:"flex-start",align:"center",size:[16,0]},yt(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"},yt(s)?s:{default:()=>[s]})),r(E,{class:"item-label",align:"center"},{default:()=>[i.label]})]})))?o:{default:()=>[o]})}})])])]})}}),Hs=M({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const a=Yo();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(J,{bordered:!1,onClick:t.bind(this),round:!0,tertiary:!0,style:"margin-right: 16px"},{icon:()=>r(k,{name:"search",size:"16"},null),default:()=>r(E,{align:"center"},{default:()=>[n("headerTooltip.Search"),r("div",{class:"global-search-btn__label"},[e()])]})})}}),Ys=M({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(J,{quaternary:!0,strong:!0,focusable:!1},{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]})]})}}),Xs=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],Js={logout:()=>{const{logout:e}=Ps();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=K();e("lockScreenSwitch",!0)}},Zs=e=>{const t=Js[e];t?t():window.$message.info("这个人很懒, 没做这个功能~")},Qs=e=>{const{isTabletOrSmaller:t}=e,n=[],a=[{name:"menu",size:18,eventKey:"menu"}];return t.value?a:n},er=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},tr=M({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:t}=K(),{t:n}=De(),[a,{toggleFullscreen:l,isEnabled:o}]=hn(document.getElementsByTagName("html")[0]),{getDrawerPlacement:i,getBreadcrumbSwitch:s}=$(),c=I(!1),d=I(!1),{isTabletOrSmaller:p}=it(),h=rt("globalDrawerValue"),S=w(()=>Qs({isFullscreen:a,isTabletOrSmaller:p})),g=w(()=>er({isFullscreen:a,isTabletOrSmaller:p})),m={search:()=>{d.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:()=>{re("globalDrawerValue",!h.value)}};return{leftIconOptions:S,rightTooltipIconOptions:g,toolIconClick:b=>{var u;(u=m[b])==null||u.call(m)},showSettings:c,updateLocale:e,getDrawerPlacement:i,getBreadcrumbSwitch:s,globalSearchShown:d,isRenderVNode:b=>p.value?null:b}},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(Gs,{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(Vs,{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(qs,null,null):null]}),r(E,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[i(r(Hs,{onClick:s=>{s.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(s=>r(J,{class:"override-button__layout",quaternary:!0,size:"medium",key:s.name,onClick:l.bind(this,s.name),focusable:!1},{default:()=>[r(k,{name:s.name,size:16,cursor:"pointer"},null)]})),r(Oe,{options:wn,onSelect:s=>o(String(s)),trigger:"click"},{default:()=>[r(J,{quaternary:!0,class:"override-button__layout",focusable:!1},{default:()=>[r(k,{customClassName:"layout-header__method--icon",name:"language",size:"16",cursor:"pointer"},null)]})]}),r(Oe,{options:Xs(),onSelect:Zs.bind(this),trigger:"click"},{default:()=>[r(Ys,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),r(Us,{show:this.showSettings,"onUpdate:show":s=>this.showSettings=s,placement:n},null)]})}}),nr=M({name:"LayoutHeaderWrapper",setup(){return{}},render(){return r(E,{size:[0,0]},{default:()=>[r(tr,null,null)]})}});function or(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const ar=M({name:"AppMenuTag",setup(e,{expose:t}){const n=ie("scrollRef"),{getMenuKey:a,getMenuTagOptions:l}=ye(),{changeMenuModelValue:o}=Ne(),{getRootPath:i}=Pe(),{maximize:s}=Vn(),{reload:c}=fr(),{close:d,closeAll:p,closeRight:h,closeLeft:S,closeOther:g,checkCloseLeft:m,checkCloseRight:_}=$n(),f=["closeAll","closeRight","closeLeft","closeOther","closeCurrentPage"];let b=1/0;const u={size:16},v=I([{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>r(k,{name:"close",size:u.size},null)},{label:"最大化当前页面",key:"maximizeLayoutContent",icon:()=>r(k,{name:"fullscreen_fold",size:u.size},null)},{label:"刷新当前页面",key:"reloadCurrentPage",icon:()=>r(k,{name:"reload",size:u.size},null)},{label:"新窗口打开",key:"windowOpenTab",icon:()=>r(k,{name:"shared",size:u.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>r(k,{name:"close_left",size:u.size},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>r(k,{name:"close_right",size:u.size},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>r(k,{name:"close_other",size:u.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>r(k,{name:"resize_h",size:u.size},null),disabled:!1}]),R=Je(16),C={closeCurrentPage:()=>{a.value!==i.value&&d(b)},reloadCurrentPage:()=>{c()},closeAll:()=>{p()},closeRight:()=>{h(b)},closeLeft:()=>{S(b)},closeOther:()=>{g(b)},windowOpenTab:()=>{const T=l.value[b];if(!(T!=null&&T.fullPath))return;const z=T.fullPath.startsWith("#")?T.fullPath:`#${T.fullPath}`;window.open(z,"_blank")},maximizeLayoutContent:()=>{const T=l.value[b];s(!0),T&&U(T)}},y=te({x:0,y:0,actionDropdownShow:!1}),x="menu_tag_data",A=rt("globalMainLayoutLoad"),O="n-scrollbar-container";let P=a.value;const j=T=>{d(T)},V=(T,z)=>{for(const W of v.value)if(W.key===T){W.disabled=z;break}},U=T=>{y.actionDropdownShow=!1,o(T.fullPath,T)},Y=()=>{const T=document.getElementById(R);if(T)return Array.from(T.childNodes).find(Be=>Xo(Be,O).value)},H=T=>{var W;const z=Y();if(z){const Be=z.scrollLeft||0,Dt=T==="left"?Math.max(0,Be-200):Be+200;(W=n.value)==null||W.scrollTo({left:Dt,behavior:"smooth"})}},ue=T=>{y.actionDropdownShow=!1;const z=C[T];z==null||z()},X=(T,z)=>{z.preventDefault(),b=T,y.actionDropdownShow=!1,q(()=>{y.actionDropdownShow=!0,y.x=z.clientX,y.y=z.clientY})},Fe=()=>{const{closeable:T}=l.value[b]??{};V("closeCurrentPage",!T),_(b)?V("closeRight",!1):V("closeRight",!0),m(b)?V("closeLeft",!1):V("closeLeft",!0)},Un=()=>{b=l.value.findIndex(z=>z.fullPath===a.value),Fe()},Wn=T=>{l.value.length>1&&T.fullPath!==i.value&&(T.closeable=!0)},qn=T=>{T.fullPath!==a.value&&(T.closeable=!1)},Gn=()=>{Y()&&q().then(()=>{var z;(z=n.value)==null||z.scrollTo({left:99999,behavior:"smooth"})})},ct=()=>{q().then(()=>{const T=Ze(`attr:${x}="${a.value}"`);if(T!=null&&T.length){const[z]=T;q().then(()=>{var W;(W=n.value)==null||W.scrollTo({left:z.offsetLeft,behavior:"smooth"})})}})},Hn=()=>{s(!0)};return he(()=>l.value,(T,z)=>{v.value.forEach(W=>{f.includes(W.key)&&(T.length>1?W.disabled=!1:W.disabled=!0)}),z!=null&&z.length&&(T.length>(z==null?void 0:z.length)?Gn():T.length===(z==null?void 0:z.length)&&ct()),z===void 0&&ct()},{immediate:!0}),ve(()=>{var T;y.actionDropdownShow&&((T=kt(Fe,300))==null||T()),P!==a.value&&(P=a.value,ct())}),t(),{getMenuTagOptions:l,closeCurrentMenuTag:j,getMenuKey:a,menuTagClick:U,moreOptions:v,scrollX:H,scrollRef:n,uuidScrollBar:R,actionDropdownSelect:ue,actionState:y,menuTagContextMenu:X,setCurrentContextmenuIndex:Un,menuTagMouseenter:Wn,menuTagMouseleave:qn,MENU_TAG_DATA:x,iconConfig:u,maximize:s,reload:c,globalMainLayoutLoad:A,maximizeBtnClick:Hn}},render(){let e;const{iconConfig:t,uuidScrollBar:n,getMenuTagOptions:a,MENU_TAG_DATA:l,globalMainLayoutLoad:o}=this,{maximizeBtnClick:i,closeCurrentMenuTag:s,scrollX:c,$t:d,menuTagClick:p,menuTagContextMenu:h,menuTagMouseenter:S,menuTagMouseleave:g,actionDropdownSelect:m,reload:_}=this;return r(un,null,{default:()=>[r("div",{class:"menu-tag"},[r(Oe,{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)},null),r(E,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.scrollX.bind(this,"left")},{icon:()=>r(k,{name:"expanded",width:t.size,height:t.size,customClassName:"menu-tag__left-arrow"},null)}),r(xt,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"},or(e=a.map((f,b)=>r(J,F({key:f.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:f.fullPath===this.getMenuKey?"primary":"default"},{onClick:p.bind(this,f),onContextmenu:h.bind(this,b),onMouseenter:S.bind(this,f),onMouseleave:g.bind(this,f),onBlur:()=>{this.actionState.actionDropdownShow=!1},[l]:f.fullPath},{size:"small"}),{default:()=>r(gn,null,[r("span",null,{default:()=>{const{breadcrumbLabel:u,meta:{i18nKey:v}}=f;return v?d(v):u}}),r(Ro,F({class:"menu-tag__btn-icon"},{onMousedown:s.bind(this,b)}),{default:()=>[r(k,{name:"close",size:"14"},null)]})])})))?e:{default:()=>[e]})]}),r(E,{align:"center",inline:!0,wrap:!1,size:[0,0]},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:c.bind(this,"right")},{icon:()=>r(k,{name:"expanded",width:t.size,height:t.size,style:{transform:"rotate(180deg)"}},null)}),r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:i},{icon:()=>r(k,{name:"fullscreen_fold",width:t.size,height:t.size},null)}),r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:()=>{_()}},{icon:()=>r(k,{name:"reload",width:t.size,height:t.size,customClassName:`${o?"":"menu-tag__right-setting--spinning"}`},null)}),r(xn,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:18,keyboard:!1},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.setCurrentContextmenuIndex.bind(this)},{icon:()=>r(k,{name:"more",width:t.size,height:t.size},null)})]})]})]})])]})}}),lr=M({name:"LayoutFeatureWrapper",setup(){return{}},render(){return r(ar,null,null)}}),sr=e=>{const t=dt(e[0]),n=dt(e[1]),a=dt(e[2]),{height:l,width:o}=Mt();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}),rr=()=>({setLockAppScreen:n=>{Zt.value=n},getLockAppScreen:()=>Zt.value}),ir=M({name:"RLayout",setup(){const e=I(),t=I(),n=I(),{getMenuTagSwitch:a,getCopyrightSwitch:l}=$(),{getLockAppScreen:o}=rr(),i=sr([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(Ao,{class:"r-layout-full",style:[t],hasSider:!0,embedded:!0},{default:()=>[r(Ls,null,null),r(Vt,{class:"r-layout-full__viewer"},{default:()=>[r(nr,{ref:"layoutSiderBarRef"},null),e?r(lr,{ref:"layoutMenuTagRef"},null):null,r(Vt,{ref:we,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[r(Bn,null,null)]}),n?r(Bs,{ref:"layoutFooterRef"},null):null]})]})}}),cr=[{path:"/",name:"RLogin",component:()=>L(()=>import("./index-DrOZrx4m.js"),__vite__mapDeps([87,1,2,3,4,5,6,7,8,9,10,11,40,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,71,72,73,30,31,50,33,34,35,36,37,38,39,41,42,43,44,45,46,47,88]))},{path:"/",name:"RLayout",component:ir,children:[...As(),{path:"/:catchAll(.*)",component:()=>L(()=>import("./index-C296AXrg.js"),__vite__mapDeps([89,1,2,3,4,5,6,7,8,9,10,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,90])),meta:{i18nKey:N("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],et=ia({history:ca(),routes:cr,scrollBehavior:e=>{Vl(e)}}),ii=e=>{e.use(et),Ms(et)},Et=()=>et?{router:et}:{router:{}},Qt="YYYY-MM-DD HH:mm:ss",ur=()=>({locale:i=>{const s=Ba[i];s?ae.locale(s):ae.locale(Va)},getStartAndEndOfDay:i=>{const{format:s=Qt}=i??{},c=ae(),d=c.startOf("day"),p=c.endOf("day"),h=c.format(s),S=d.format(s),g=p.format(s);return{today:c,startOfDay:d,endOfDay:p,formatToday:h,formatStartOfDay:S,formatEndOfDay:g}},format:(i,s)=>{const{format:c=Qt}=s??{};return ae(i).format(c)},isDayjs:i=>ae.isDayjs(i),daysDiff:(i,s)=>{const c=ae(i);return ae(s).diff(c,"days")},isDateInRange:(i,s)=>{const{start:c,end:d}=s,p=ae(i);return p.isAfter(c)&&p.isBefore(d)}});function it(e){const{width:t,height:n}=Mt(e),a=I(!1),{observer:l}=e??{};return Jo(()=>{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:Ce(a)}}let bt=999,_t=!1;const me="ELEMENT-FULLSCREEN-RAY",{width:St,height:wt}=Mt(),en=document.createElement("style"),dr=(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 d=!1;const p={x:null,y:null},h=()=>{const f=se(e);if(!f)return;const{left:b,top:u}=f.getBoundingClientRect();p.x===null&&p.y===null&&(p.x=-b,p.y=-u),qe(document.body,{"--element-fullscreen-z-index":ce(s,"Null")||ce(s,"Undefined")?bt:s,"--element-fullscreen-transition":c,"--element-fullscreen-background-color":i,"--element-fullscreen-width":`${St.value}px`,"--element-fullscreen-height":`${wt.value}px`,"--element-fullscreen-transform-x":`${p.x}px`,"--element-fullscreen-transform-y":`${p.y}px`});const v=`
[${me}] {
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,_t||document.head.appendChild(en)},S=()=>{const f=se(e);n==null||n(),f&&(f.getAttribute(me)||f.setAttribute(me,me),d||(d=!0,bt+=1),_t||(h(),_t=!0),f.style.transition=c,l==null||l())},g=()=>{a==null||a();const f=se(e);f&&f.removeAttribute(me),o==null||o()},m=()=>{const f=se(e);f&&(f.getAttribute(me)?g():S())},_=he(()=>[St.value,wt.value],h);return It(()=>{const f=se(e);f&&f.removeAttribute(me),bt--,_()}),{enter:S,exit:g,toggleFullscreen:m,currentWindowSize:{width:St,height:wt}}},Ct={svg:ea,png:ta,jpeg:na,blob:oa,pixelData:aa,canvas:la},ci=(e,t)=>{const{beforeCreate:n,created:a,createdError:l,finally:o,imageType:i}=t??{};return{create:c=>new Promise((d,p)=>{var S;const h=se(e);if(n==null||n(h),!h)return l==null||l(),p("useDomToImage: element is undefined.");(S=Ct[c??i??"jpeg"])==null||S.call(Ct,h,t).then(g=>(a==null||a(g,h),d(g))).catch(g=>(l==null||l(g),p(g))).finally(()=>{o==null||o(h)})})}},ui=(e,t)=>({print:()=>{const a=se(e)||e;$o({...tt(t,["printable"]),printable:a})}}),pr={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},mr=(e,t)=>{const n=I(e),a=tt(t,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size"]),o=I(Object.assign({},pr,a,{onUpdatePage:u=>{var v;o.value.page=u,(v=n.value)==null||v.call(n)},onUpdatePageSize:u=>{var v;o.value.pageSize=u,o.value.page=1,(v=n.value)==null||v.call(n)}})),i=o.value.onUpdatePage,s=o.value.onUpdatePageSize,c=()=>o.value.itemCount,d=u=>{o.value.itemCount=u},p=()=>o.value.page,h=u=>{i(u)},S=()=>o.value.pageSize,g=u=>{s(u)},m=()=>o.value,_=e,f=u=>{n.value=u},b=()=>{const{pageSizes:u}=o.value;o.value.page=1,o.value.pageSize=(u==null?void 0:u[0])||10};return It(()=>{n.value=void 0}),[o,{getItemCount:c,setItemCount:d,getPage:p,setPage:h,getPageSize:S,setPageSize:g,getPagination:m,getCallback:_,setCallback:f,resetPagination:b}]},Vn=()=>({isLayoutContentMaximized:w(()=>rt("layoutContentMaximize").value),maximize:(n,a)=>{var s;const{scrollToOptions:l}=a??{},o=se(we),{toggleFullscreen:i}=dr(o,a);re("layoutContentMaximize",n),i(),l&&n&&((s=we==null?void 0:we.value)==null||s.scrollTo(l))}}),fr=()=>({reload:(a=800)=>{re("globalMainLayoutLoad",!1),setTimeout(()=>re("globalMainLayoutLoad",!0),a)},openSpin:()=>{re("layoutContentSpinning",!0)},closeSpin:()=>{re("layoutContentSpinning",!1)}}),di=()=>({setWatermarkContent:l=>{const{getWatermarkConfig:o}=$(),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}=$(),{updateSettingState:o}=K();o("watermarkSwitch",!l.value)}}),We=e=>{const{getPrimaryColorOverride:t}=$(),{updateSettingState:n}=K();n("primaryColorOverride",e?Object.assign({},t.value,Q.appNaiveUIThemeOverrides.dark,Q.appNaiveUIThemeOverridesCommon.dark):Object.assign({},t.value,Q.appNaiveUIThemeOverrides.light,Q.appNaiveUIThemeOverridesCommon.light))},pi=()=>{const e=()=>{const{getAppTheme:o}=$(),{t:i}=De();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"),We(!0)},lightTheme:()=>{const{updateSettingState:o}=K();o("_appTheme",!1),o("appTheme","light"),We(!1)},toggleTheme:()=>{const{theme:o}=e(),{updateSettingState:i}=K();i("_appTheme",!o),i("appTheme",o?"light":"dark"),We(!o)},getAppTheme:e,syncSystemTheme:()=>{const{getAppTheme:o}=$(),{updateSettingState:i}=K(),{system:s}=dn();i("_appTheme",s.value==="dark"),i("appTheme","auto"),We(o.value)}}},Se=(e,t)=>{const{getMenuTagOptions:n}=ye();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}=ye(),{changeMenuModelValue:n,spliceMenTagOptions:a,setMenuTagOptions:l,resolveOption:o}=Ne(),i=()=>e.value.findIndex(m=>m.fullPath===t.value);return{close:m=>{const _=Se(m,"close");if(e.value.length!==1&&_){const{index:f,option:b}=_;if(a(f),b.fullPath===t.value){const u=e.value[f-1];u&&n(u.fullPath,u)}}},closeAll:()=>{a(0,e.value.length);const{getRootPath:m}=Pe(),{router:{getRoutes:_}}=Et(),f=_().find(b=>b.path===m.value);if(f){const b=ze(f,Pt),u=o(b);n(u.path,o({...u,fullPath:u.path}))}},closeRight:m=>{const _=Se(m,"closeRight");if(_){const{option:f,index:b}=_,u=e.value.length-b,v=i();a(b+1,u),b<=v&&t.value!==f.fullPath&&n(f.fullPath,f)}},closeLeft:m=>{const _=Se(m,"closeLeft");if(_){const{option:f,index:b}=_,u=i();a(0,b),u<=b&&t.value!==f.fullPath&&n(f.fullPath,f)}},closeOther:m=>{const _=Se(m,"closeOther");if(_){const{option:f}=_;t.value!==f.fullPath?(a(0,e.value.length),n(f.fullPath,f)):l(f,!1)}},getCurrentTagIndex:i,checkCloseRight:m=>{const _=Se(m,"checkCloseRight");if(_){const{index:f}=_,b=e.value.length-1;return!(f>=b)}return!1},checkCloseLeft:m=>{const _=Se(m,"checkCloseRight");if(_){const{index:f}=_,b=e.value.length-1;return f===0?!1:f>0&&b>0}return!1}}}function mi(){return{navigationTo:(t,n)=>{const{router:{getRoutes:a,push:l,replace:o}}=Et(),{isPush:i=!0,query:s}=n||{},c=d=>i?l({path:d,query:s}):o({path:d,query:s});if(typeof t=="number"){if(isNaN(t)){console.warn(`[navigationTo]: The ${t} is NaN, expect number.`);return}const{getMenuOptions:d}=ye();if(t>d.value.length){console.warn(`[navigationTo]: The current ${t} exceeds the maximum number of menus.`);return}const p=d.value[t],h=S=>{if(S.children&&S.children.length>0){const{children:[g]}=S;h(g);return}c(S.fullPath)};h(p)}else if(typeof t=="string"){const d=a().find(p=>p.path===t);d?c(d.path):console.warn(`[navigationTo]: The path "${t}" is not found.`)}else c(t.fullPath)}}}function Pe(){const{getAppRootRoute:e}=$(),{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 gr=(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&&gr(a,n)},Tt=(e,t,n)=>{const{getMenuOptions:a}=ye();if(typeof e=="string")tn(a.value,e,n);else if(ce(e,"Object")){const{fullPath:l}=e;tn(a.value,l,n)}else console.warn(`[useBadge ${t}]: target expect string or object.`)};function fi(){return{hidden:a=>{Tt(a,"hidden",{show:!1})},show:a=>{Tt(a,"show",{show:!0})},update:(a,l)=>{Tt(a,"update",l)}}}const gi=()=>{const e=Cn.value,{scrollTo:t}=e||{};if(!t)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return t},Kn=()=>Xe(G.localeLanguage,"localStorage",{defaultValue:Na});export{Vn as $,Ur as A,Gr as B,Xr as C,Va as D,Jr as E,ni as F,fs as G,Zr as H,mr as I,Yr as J,cs as K,Cn as L,$r as M,ei as N,_s as O,li as P,ti as Q,Qr as R,zs as S,ai as T,ur as U,Ds as V,ri as W,qr as X,us as Y,xn as Z,L as _,ci as a,mi as a0,fr as a1,di as a2,fi as a3,ui as b,gi as c,Wr as d,$ as e,G as f,Vr as g,K as h,rr as i,Ps as j,it as k,Ys as l,rt as m,Kr as n,Hr as o,ii as p,Pe as q,De as r,si as s,k as t,pi as u,wn as v,mt as w,Et as x,Br as y,oi as z};