mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-04-06 03:57:49 +08:00
13 lines
105 KiB
JavaScript
13 lines
105 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/en-US-kuHs-KnU.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-S0J9kMkU.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-BvBR3SlX.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-D9w4k3vo.js","js/index-B-g8tG7K.js","js/index-2lWBKoiq.js","css/index-D_4DGt8i.css","js/index-DCSGS0fX.js","js/instance-_AoK-7-_.js","js/axios@1.7.5-C8DqakIB.js","css/index-QAd2IBUs.css","js/BarcodeDemo-BEpfsirt.js","js/index-DT78SV6J.js","js/index-DDm0KxCm.js","js/index-Bv-ZoPHL.js","js/index-BNL7US1N.js","css/index-DHYYVpM7.css","js/index-CxYrOniq.js","js/index-vSwqeH-1.js","js/index-DJlOet97.js","js/index-GfRP_Izk.js","js/index-CPdEOCC2.js","js/index-B1y7IB92.js","js/index-SBc90cMw.js","js/index-Cs_4j77B.js","js/index-I9v4fVPd.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-BdJwXouh.js","css/index-B6yUFiKH.css","js/index-DhpTzH6d.js","js/index-Bt-EC2y-.js","js/index-DbAQZpVN.js","css/index-Dig957GB.css","js/index-CVDY37Yi.js","js/index-C-b-gGDU.js","css/index-Eq1L-L2-.css","js/TablePro-D_-Zxaa_.js","js/mockjs@1.1.0-CxlURkif.js","js/index-DPtaassS.js","js/index-Xx5IoaRU.js","js/index-BxSh1D3V.js","css/index-74sXJ5VP.css","js/index-DPphVKho.js","css/index-b1h4j9PV.css"])))=>i.map(i=>d[i]);
|
||
var Xn=Object.defineProperty;var Jn=(e,t,n)=>t in e?Xn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ft=(e,t,n)=>Jn(e,typeof t!="symbol"?t+"":t,n);import{s as ut,c as He,t as xt,i as an,p as Le,o as et,f as Zn}from"./lodash-es@4.17.21-CeZG2a4n.js";import{z as Bt,d as Vt,f as Qn,g as eo,N as tt,a as to,b as no,c as E,e as nt,m as oo,h as ln,u as ao,S as Mt,i as lo,j as Oe,k as so,l as sn,n as Ee,o as ro,p as io,q as rn,t as co,r as uo,s as po,v as mo,w as cn,x as De,y as fo,A as un,B as go,C as ho,D as vo,E as yo,F as oe,G as bo,H as $t,I as _o,J as de,K as pe,L as Ot,M as xe,O as Me,P as Y,Q as So,R as wo,T as Co,U as To,V as Oo,W as Ro,X as dn,Y as Ao,Z as Kt,_ as ko}from"./naive-ui@2.40.1_vue@3.5.12-S0J9kMkU.js";import{o as Po,u as je,a as xo,b as Mo,c as pn,d as dt,e as zt,f as zo}from"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import{k as I,l as Ce,e as te,n as Io,x as Re,a as mn,s as Lo,u as Z}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{n as G,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 Eo,k as Ne,v as fn,h as ot,i as gn,x as Do,F as hn,y as jo,z as be,A as No,C as pt,D as Fo,E as ze,S as Bo,K as Vo,G as Ut,H as $o,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 Ko}from"./print-js@1.6.0-BdoEj60G.js";import{u as vn}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 Uo}from"./jsbarcode@3.11.6-DGNGFp02.js";import{g as Ye,i as ce,s as It,a as Rt,c as Wo,u as yn,l as bn,b as _n,d as qo,e as B,r as ge,f as j,h as Go,j as Xe,q as Je,k as qe,m as Sn,p as wn,n as Lt,o as Wt,t as _e,v as Ho,w as Yo,x as Xo,y as Jo,z as Zo,A as se}from"./utils-BvBR3SlX.js";import{i as qt}from"./interactjs@1.10.26-DZL_TZzP.js";import{s as Qo}from"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import{d as at,c as ea}from"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import{t as ta,a as na,b as oa,c as aa,d as la,e as sa}from"./html-to-image@1.11.11-BOFdlgi9.js";import{u as lt,a as ra,o as ia,c as ca,b as ua}from"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import{c as da}from"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import{r as pa,u as Ie,i as ma,a as fa,b as ga,c as ha,d as va,e as ya,f as ba,g as _a,h as Sa,j as wa,k as Ca,l as Ta,m as Oa,n as Ra,o as Aa,p as ka,q as Pa,s as xa}from"./echarts@5.5.0-CezqL3m-.js";import{g as Ma}from"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import{T as za,a as Ia}from"./@vue_runtime-dom@3.5.12-ewSD1rNh.js";const Vr=(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 c=o.split("/"),s=c.shift(),d=c.join(".");s&&(d?(ut(n,s,n[s]||{}),ut(n[s],d,l)):ut(n,s,l||{}))}),n},La="modulepreload",Ea=function(e){return"/ray-template/"+e},Gt={},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(c=>{if(c=Ea(c),c in Gt)return;Gt[c]=!0;const s=c.endsWith(".css"),d=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const p=document.createElement("link");if(p.rel=s?"stylesheet":La,s||(p.as="script"),p.crossOrigin="",p.href=c,i&&p.setAttribute("nonce",i),document.head.appendChild(p),s)return new Promise((h,S)=>{p.addEventListener("load",h),p.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${c}`)))})}))}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})},Da=(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.":""))))})},ja=async e=>{var n;const t={};for(const a of e){const l=await Da(Object.assign({"../lang/en-US.ts":()=>L(()=>import("./en-US-kuHs-KnU.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-D9w4k3vo.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},$r=e=>{switch(e){case"zh-CN":return{locale:Bt,dateLocal:Vt};case"en-US":return{locale:null,dateLocal:null};default:return{locale:Bt,dateLocal:Vt}}},Kr={max:5,closable:!1},Ur="loading",Wr="",H={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},Na=[{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"},Cn=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Fa="zh-CN",Ba="zh-CN",Va={"zh-CN":"zh-cn","en-US":"en"},$a="zh-cn",qr={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$/},Gr={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},we=I(null),Tn=I(null),Ka={setupRouterLoadingBar:!0,setupRouterGuard:!0},Ua=["RLogin","ErrorPage","RayTemplateDoc"],$e=[],Hr=(e,t)=>{const n=I(0),a=I(0),l=I(!1),{clickOutside:o}={},i=h=>{l.value=h},c=h=>{h.preventDefault(),i(!1),G().then(()=>{const{clientX:S,clientY:f}=h;n.value=S,a.value=f,i(!0)})};o&&Po(e,h=>{o(h)});const s=je(e,"contextmenu",c,t),d=je(e,"click",()=>{i(!1)});return{stop:()=>{s(),d()},x:Ce(n),y:Ce(a),show:Ce(l),updateShow:i}},Ze=te({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function re(e,t,n){Object.hasOwn(Ze,e)&&(Ze[e]=t)}function st(e){return Ce(Io(Ze,e))}function Wa(){return{...Re(Ce(Ze))}}let le;const qa=async()=>{const e=Un(),t=await ja(Cn);return da({legacy:!1,locale:e,messages:t,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Ba})},Yr=async e=>{const t=await qa();e.use(t),le=t},Ht=(e,t)=>t,Fe=e=>{if(!le)return{t:o=>Ht(e,o),locale:o=>{}};const{t,...n}=le.global;return{...n,t:(o,...i)=>o?!o.includes(".")&&!e?o:t(Ht(e,o),...i):"",locale:o=>{le.mode==="legacy"?le.global.locale=o:mn(le.global.locale)?le.global.locale.value=o:le.global.locale=o}}},N=e=>e,Ga={path:"/dashboard",component:()=>L(()=>import("./index-B-g8tG7K.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}},Ha=Object.freeze(Object.defineProperty({__proto__:null,default:Ga},Symbol.toStringTag,{value:"Module"})),Ya={path:"/axios",name:"RAxios",component:()=>L(()=>import("./index-DCSGS0fX.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}},Xa=Object.freeze(Object.defineProperty({__proto__:null,default:Ya},Symbol.toStringTag,{value:"Module"})),Ja={path:"barcode",component:()=>L(()=>import("./BarcodeDemo-BEpfsirt.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"}}},Za=Object.freeze(Object.defineProperty({__proto__:null,default:Ja},Symbol.toStringTag,{value:"Module"})),Qa={path:"/cache-demo",component:()=>L(()=>import("./index-DT78SV6J.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}},el=Object.freeze(Object.defineProperty({__proto__:null,default:Qa},Symbol.toStringTag,{value:"Module"})),tl={path:"/context-menu",component:()=>L(()=>import("./index-DDm0KxCm.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}},nl=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),ol={path:"/directive",component:()=>L(()=>import("./index-Bv-ZoPHL.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"}}},al=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),ll={path:"/echart",component:()=>L(()=>import("./index-BNL7US1N.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"}}},sl=Object.freeze(Object.defineProperty({__proto__:null,default:ll},Symbol.toStringTag,{value:"Module"})),rl={path:"/form",component:()=>L(()=>import("./index-CxYrOniq.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"}}},il=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),cl={path:"/iframe",component:()=>L(()=>import("./index-vSwqeH-1.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"}},ul=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),dl={path:"/mock-demo",component:()=>L(()=>import("./index-DJlOet97.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"}}},pl=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"})),ml={path:"/modal-demo",component:()=>L(()=>import("./index-GfRP_Izk.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}},fl=Object.freeze(Object.defineProperty({__proto__:null,default:ml},Symbol.toStringTag,{value:"Module"})),Ge=()=>L(()=>Promise.resolve().then(()=>Fs),void 0),gl={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-CPdEOCC2.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-B1y7IB92.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-SBc90cMw.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}}]}]}]},hl=Object.freeze(Object.defineProperty({__proto__:null,default:gl},Symbol.toStringTag,{value:"Module"})),vl={path:"/precision",component:()=>L(()=>import("./index-Cs_4j77B.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}},yl=Object.freeze(Object.defineProperty({__proto__:null,default:vl},Symbol.toStringTag,{value:"Module"})),bl={path:"/qrcode",component:()=>L(()=>import("./index-I9v4fVPd.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}},_l=Object.freeze(Object.defineProperty({__proto__:null,default:bl},Symbol.toStringTag,{value:"Module"})),Sl={path:"rely-about",component:()=>L(()=>import("./index-BdJwXouh.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}},wl=Object.freeze(Object.defineProperty({__proto__:null,default:Sl},Symbol.toStringTag,{value:"Module"})),Cl={path:"/router-demo",component:Ge,meta:{i18nKey:N("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>L(()=>import("./index-DhpTzH6d.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-Bt-EC2y-.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}}]},Tl=Object.freeze(Object.defineProperty({__proto__:null,default:Cl},Symbol.toStringTag,{value:"Module"})),Ol={path:"/scroll-reveal",component:()=>L(()=>import("./index-DbAQZpVN.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}},Rl=Object.freeze(Object.defineProperty({__proto__:null,default:Ol},Symbol.toStringTag,{value:"Module"})),Al={path:"/segment",component:()=>L(()=>import("./index-CVDY37Yi.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"}}},kl=Object.freeze(Object.defineProperty({__proto__:null,default:Al},Symbol.toStringTag,{value:"Module"})),Pl={path:"/svg-icons",component:()=>L(()=>import("./index-C-b-gGDU.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}},xl=Object.freeze(Object.defineProperty({__proto__:null,default:Pl},Symbol.toStringTag,{value:"Module"})),Ml={path:"/table-pro",component:()=>L(()=>import("./TablePro-D_-Zxaa_.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"}}},zl=Object.freeze(Object.defineProperty({__proto__:null,default:Ml},Symbol.toStringTag,{value:"Module"})),Il={path:"/table",component:()=>L(()=>import("./index-DPtaassS.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"}}},Ll=Object.freeze(Object.defineProperty({__proto__:null,default:Il},Symbol.toStringTag,{value:"Module"})),El={path:"/template-hooks",component:()=>L(()=>import("./index-Xx5IoaRU.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}},Dl=Object.freeze(Object.defineProperty({__proto__:null,default:El},Symbol.toStringTag,{value:"Module"})),jl=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Ha,"/src/router/modules/demo/axios.ts":Xa,"/src/router/modules/demo/barcode.ts":Za,"/src/router/modules/demo/cache-demo.ts":el,"/src/router/modules/demo/context-menu.ts":nl,"/src/router/modules/demo/directive.ts":al,"/src/router/modules/demo/echart.ts":sl,"/src/router/modules/demo/form.ts":il,"/src/router/modules/demo/iframe.ts":ul,"/src/router/modules/demo/mock.ts":pl,"/src/router/modules/demo/modal.ts":fl,"/src/router/modules/demo/multi-menu.ts":hl,"/src/router/modules/demo/precision.ts":yl,"/src/router/modules/demo/qrcode.ts":_l,"/src/router/modules/demo/rely.ts":wl,"/src/router/modules/demo/router-demo.ts":Tl,"/src/router/modules/demo/scroll-reveal.ts":Rl,"/src/router/modules/demo/segment.ts":kl,"/src/router/modules/demo/svg-icons.ts":xl,"/src/router/modules/demo/table-pro.ts":zl,"/src/router/modules/demo/table.ts":Ll,"/src/router/modules/demo/template-hooks.ts":Dl});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},[])},Nl=e=>e[0]==="/",On=(e,t=[],n="")=>{var a;if(!Array.isArray(e))return[];for(const l of e){const o=n+(Nl(l.path)?l.path:"/"+l.path);if((a=l.children)!=null&&a.length){On(l.children,t,o);continue}else t.push({...l,path:o})}return t},Fl=e=>Array.isArray(e)?On(He(e)):[],Bl=e=>e.sort((t,n)=>{var o,i;const a=((o=t.meta)==null?void 0:o.order)??1,l=((i=n.meta)==null?void 0:i.order)??0;if(typeof a!="number"||typeof l!="number")throw new TypeError("orderRoutes error: order must be a number!");return a===l?t.name?n.name?t.name.localeCompare(n.name):-1:1:a-l}),Vl=e=>{const{beforeEach:t}=e,{getRootPath:n}=Pe(),a=(l,o)=>l.path==="/"||o.path==="/login";t((l,o,i)=>{const c=Ye(H.token,"localStorage"),s=Ye(H.appMenuKey,"sessionStorage",{defaultValue:n.value}),{meta:d,name:p}=l;c!==null?a(l,o)?mt(!0):!ce(p,"Symbol")&&p&&Ua.includes(p)?i():Bn(d)?a(l,o)?s?i(s):mt(!0):i():mt(!0):a(l,o)?i():i("/")})},mt=(e=!0)=>{const{router:t}=Dt(),{push:n,replace:a}=t,{getRootPath:l}=Pe();It(H.appMenuKey,l.value,"localStorage"),e?a(l.value):n(l.value)},$l=e=>{var n;const{meta:t}=e;t!=null&&t.ignoreAutoResetScroll||(n=we.value)==null||n.scrollTo({top:0,left:0,behavior:"smooth"})},Kl=e=>{e.beforeEach(()=>{var t;(t=window.$loadingBar)==null||t.start()}),e.afterEach(()=>{var t;(t=window.$loadingBar)==null||t.finish()}),e.onError(()=>{var t;(t=window.$loadingBar)==null||t.error()})},Rn=e=>{const{meta:t={}}=e,{hidden:n,sameLevel:a,env:l}=t,{MODE:o}=Rt();return!(a||n||l&&typeof l=="string"&&l!==o||l&&Array.isArray(l)&&!l.includes(o))};var Ul={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.2"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Be=at("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=Ul,{locale:t}=Fe(),{locale:n}=dr(),a=te({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},_appTheme:!1,appTheme:"light",menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:Un(),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=c=>{t(c),n(c),a.localeLanguage=c,It(H.localeLanguage,c,"localStorage")},o=(c,s=.3)=>{const d=Wo(c,s),p={primaryColor:c,primaryColorHover:c,primaryColorPressed:c};a.primaryColorOverride.common=p;const h=document.body;h.style.setProperty("--ray-theme-primary-color",c),h.style.setProperty("--ray-theme-primary-fade-color",d)},i=(c,s,d)=>{yn(a,c,s,d)};return he(()=>a.appTheme,c=>{c?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:H.appPiniaSettingStore}}),An={...Qn,onRegister:{type:[Function,Array],default:null}},kn={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},...eo};function Wl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const Xr=M({name:"RCollapse",props:Object.assign({},An,{...kn,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(gs,F(l,{labelPlacement:"top",showFeedback:!1}),{default:()=>[r(Hl,l,Wl(e)?e:{default:()=>[e]})]})}}),ql={intersectionObserver:{type:Boolean,default:!0},intersectionObserverTarget:{type:Object,default:null},intersectionOptions:{type:Object,default:{threshold:.1}},bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},autoResize:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onFinally:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>bn()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>_n()},onRegister:{type:[Function,Array],default:null}},Gl=qo(),Yt="__R_CHART_DOWN_LOAD_CHART__";Gl.forEach(e=>{pa(e.name,e.theme)});const Jr=M({name:"RChart",props:ql,setup(e,{expose:t}){const{getAppTheme:n}=$(),a=ie("rayChartRef"),l=ie("rayChartWrapperRef"),o=Lo();let i,c;const{echartTheme:s}=Q;let d;const p=w(()=>[{label:"下载图片",key:Yt,disabled:!(o.value&&o.value.getDom())}]),h=w(()=>({"--ray-chart-width":B(e.width),"--ray-chart-height":B(e.height)})),S=I(!1);let f;const m={aria:e.showAria},_=async()=>{var O;Ie([fa,ga,ha,va,ya,ba,_a,Sa]),Ie([wa,Ca,Ta,Oa,Ra,Aa]),Ie([ka,Pa]),Ie([xa]);try{Ie((O=e.use)==null?void 0:O.filter(Boolean))}catch(P){console.error("[RChart register error]: ",P)}},g=()=>{if(o.value&&C(),e.theme==="default"){e.autoChangeTheme?u("dark"):u("");return}if(e.theme)u(e.theme);else{const O=e.autoChangeTheme&&n.value?`${s}-dark`:s;u(O)}},y=O=>{let P=Z(O);return P=(K=>Object.assign({},P,K))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),P},u=(O=s)=>{var ue;const P=a.value,D=y(e.options),{height:K,width:V}=P.getBoundingClientRect(),{onSuccess:X,onError:W}=e;try{o.value=ma(P,O,{width:V===0?200:void 0,height:K===0?200:void 0}),X&&j(X,o.value),e.nextTick?(o.value.setOption({}),G(()=>{var J;D&&((J=o.value)==null||J.setOption(D))})):D&&((ue=o.value)==null||ue.setOption(D))}catch(J){throw W&&j(W),new Error(`[RChart render error]: ${J}`)}finally{const{onFinally:J}=e;J&&j(J)}},v=()=>{var O;return!!((O=o.value)!=null&&O.isDisposed())},C=()=>{var O;v()||(O=o.value)==null||O.dispose()},T=()=>{o.value&&o.value.resize()},b=(O,P)=>{if(O===Yt&&!v()){const{filename:K,...V}=e.downloadOptions;Go(o.value.getDataURL(V),K??`${new Date().getTime()}`)}const{onDropdownSelect:D}=e;D&&j(D,O,P)},x=()=>{var P;if(e.autoResize&&(i||(i=xt(T,500)),c||(c=Mo(e.autoResizeObserverTarget||l,i))),(P=o.value)!=null&&P.getDom()||!S.value&&e.intersectionObserver)return;g(),f==null||f.stop();const{onRegister:O}=e;O&&o.value&&j(O,o.value,x,R)},R=()=>{C(),i==null||i.cancel(),c==null||c.stop(),f==null||f.stop(),f=null,i=null,c=null};return he(()=>n.value,()=>{e.autoChangeTheme&&(C(),g())}),ve(()=>{var O,P;e.intersectionObserver&&(f=xo(e.intersectionObserverTarget||l,([D])=>{S.value=D.isIntersecting},e.intersectionOptions)),e.watchOptions?d=Ma(()=>e.options,D=>{var X;const K=y(D),V=Object.assign({},_n(),e.setChartOptions);(X=o.value)==null||X.setOption(K,V)},{deep:!0,throttle:e.watchOptionsThrottleWait}):d==null||d(),e.loading?(O=o.value)==null||O.showLoading(bn(e.loadingOptions)):(P=o.value)==null||P.hideLoading(),e.showAria!==m.aria&&o.value&&(o.value.setOption(y(e.options)),m.aria=e.showAria),S.value&&!v()&&x()}),t(),Eo(async()=>{await _()}),Ne(()=>{x()}),fn(()=>{R(),d==null||d()}),{rayChartRef:a,cssVarsRef:h,rayChartWrapperRef:l,moreDropDownOptions:p,dropdownSelect:b}},render(){const{title:e,contentStyle:t,preset:n,moreDropDownOptions:a,dropdownSelect:l,bordered:o,dropdownOptions:i}=this,{cardExtra:c}=this.$slots;return n==="card"?r(tt,{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(c,{defaultElement:r(Mn,{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)])}}),Zr=()=>{let e,t,n;const a=(s,d,p)=>{s&&(e=s,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 s;return!!((s=l().echartInst)!=null&&s.isDisposed())},dispose:()=>l().dispose.call(null),render:()=>l().render.call(null)}]},Hl=M({name:"RCollapseGrid",props:kn,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&&j(o,t.value),i&&j(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:c,collapsedRows:s,cssVars:d,bordered:p}=this;return r(tt,{bordered:p,style:[d]},{default:()=>r(to,F({class:"ray-collapse-grid"},l,{collapsed:o,xGap:i||12,yGap:c||12,collapsedRows:s}),{default:()=>[n==null?void 0:n(),r(no,{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)]})]})]})})}}),Yl={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:Yl,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&&j(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)])])}}),Xl={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}},Qr=M({name:"RIframe",props:Xl,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=c=>{l.value=!1;const{onSuccess:s}=e;s&&j(s,a.value,c)},i=c=>{l.value=!1;const{onError:s}=e;s&&j(s,c)};return je(a,"load",o),je(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(nt,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)})])}}),Jl={...oo,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}},Zl=(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=qt(e).draggable({inertia:!0,autoScroll:!0,allowFrom:o,modifiers:[qt.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:c=>{a==null||a(c)}}}).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:c,y:s}=t;Zl(n,o,{scheduler:d=>{const p=d.target;c+=d.dx,s+=d.dy,p.style.transform=`translate(${c}px, ${s}px)`,i==null||i(c,s,d)}}).then(d=>{a(d)})}else l()})},Ql="r-modal__preset-card--fullscreen",xn="r-modal",Te={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},ei=M({name:"RModal",props:Jl,setup(e){const t=w(()=>({[Te.width]:B(e.width??600),[Te.cardWidth]:B(e.cardWidth??600),[Te.dialogWidth]:B(e.dialogWidth??446)})),n=Xe();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")?G(()=>{const c=document.getElementById(n);c&&Pn(c,{preset:e.preset,x:l.x,y:l.y,dargCallback:(s,d)=>{l.x=s,l.y=d}}).then(s=>{a=s}),e.memo&&c&&(c.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:c}=this;return r(ln,F({class:[xn,c?Ql:""],style:[o,c?"height: 100vh":""],preset:a},{id:i},l,n),{...t})}}),ti=()=>{const{create:e,destroyAll:t}=ao();return{create:a=>{const{content:l,...o}=a;let i=l;o.preset==="card"&&o.fullscreen&&(i=()=>ot(Mt,{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:c,dad:s,fullscreen:d,width:p,cardWidth:h,dialogWidth:S}=a,f=e({...o,content:i}),{key:m}=f,_={[Te.width]:B(p??600),[Te.cardWidth]:B(h??600),[Te.dialogWidth]:B(S??446)};return G(()=>{const[g]=Je(`[internalkey="${m}"]`)||[];if(g){if(s&&Pn(g,{preset:c,x:0,y:0}),d&&c==="card"){const y=g.querySelector(".n-card__content");y&&qe(y,{maxHeight:"calc(100vh - 9px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))",overflowY:"hidden",padding:"0"}),qe(g,{width:"100%",height:"100vh"})}qe(g,_),Sn(g,xn)}}),f},destroyAll:t}},es={...lo,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function ts(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const Mn=M({name:"RMoreDropdown",props:es,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"}),ts(e=ge(l,{defaultElement:r(k,{name:a,size:t,cursor:n},null)}))?e:{default:()=>[e]})}}),Ae={...so,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")},ns=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],os=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&&j(o,l)}}},render(){return r(sn,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(k,{name:"adjustment",size:ee.tableIconSize,cursor:"pointer"},null)]})}}),as=M({name:"TableFullscreen",setup(){const{wrapperRef:e}=gn(ee.tableKey,{}),[t,{toggleFullscreen:n,isEnabled:a}]=vn(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)}}),ls=()=>r(k,{name:"draggable",size:14,cursor:"grab"},null),Xt=({icon:e,title:t,onClick:n,customClassName:a})=>r(Ee,{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}),At=(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]=At(e,a.children);if(l&&o!==null)return[l,o]}return[null,null]},ft="r-table__c-tool-icon--active",ss=M({name:"TableC",props:{...Ae,onUpdateColumn:{type:[Function,Array],default:null}},setup(e){let t;const n=w({get:()=>He(e.columns).filter(s=>s.type?(t=s,!1):!0).map((s,d)=>{const{key:p,title:h,children:S,fixed:f,isResizable:m,..._}=s,g=f==="left",y=f==="right",u={..._,title:h,key:p,fixed:f,isLeftFixedActivated:g,isRightFixedActivated:y,isResizable:m};return{...u,suffix:()=>r(E,{style:"padding-left: 32px;"},{default:()=>[r(Xt,{icon:"row_head",title:"固定在列首",customClassName:g?ft:"",onClick:o.bind(this,"left",u,d)},null),r(Ee,{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(Xt,{icon:"row_end",title:"固定在列尾",customClassName:y?ft:"",onClick:o.bind(this,"right",u,d)},null)]})}}),set:()=>{}}),a=c=>{const{onUpdateColumn:s}=e;s&&j(s,c)},l=(c,s)=>{c.isResizable=!c.isResizable,c.resizable=c.isResizable,n.value[s]=c,a(n.value)},o=(c,s,d)=>{const p=`${c}FixedActivated`,h=`${c==="left"?"right":"left"}FixedActivated`;s[h]=!1,s[p]=!s[p],s[p]?s.fixed=c:s.fixed=void 0,n.value[d]=s,a(n.value)};return{treeDataSource:n,treeDrop:({node:c,dragNode:s,dropPosition:d})=>{const[p,h]=At(s,n.value);if(p===null||h===null)return;p.splice(h,1);const[S,f]=At(c,n.value);S===null||f===null||(d==="before"?S.splice(f,0,s):S.splice(f+1,0,s),an(t)||S.unshift(t),a(S))}}},render(){return r(Ee,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>r(k,{name:"setting",size:ee.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>r(ro,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:ls.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),rs=M({name:"TablePrint",props:Ae,setup(e){const{wrapperRef:t}=gn(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:""),wn(t,{printOptions:a,domToImageOptions:l})}}},render(){return r(k,{name:"print",size:ee.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),is=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&&j(i,o)};return(()=>{const{striped:o,bordered:i,onInitialed:c}=e;o&&n.value.push("striped"),i&&n.value.push("bordered"),c&&j(c,n.value)})(),{propsPopselectValue:n,popoverShow:t,updatePopselectValue:a}},render(){return r(sn,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:ns,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 cs(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const us=M({name:"RTable",inheritAttrs:!1,props:Ae,setup(e,t){const{expose:n,emit:a}=t,l=ie("rTableInst"),o=ie("wrapperRef"),i=Xe(16),c=Xe(16),s=te({x:0,y:0,showContextMenu:!1}),d=te({size:e.size}),p=I(Object.assign({striped:!1,bordered:!1},Le(e,"striped","bordered"))),h=(u,v)=>{const{onContextMenuClick:C}=e;C&&j(C,u,v),s.showContextMenu=!1},S=(u,v)=>{var T;return{...(T=e.rowProps)==null?void 0:T.call(e,u,v),onContextmenu:e.disabledContextMenu?void 0:b=>{b.preventDefault(),s.showContextMenu=!1,G().then(()=>{s.showContextMenu=!0,s.x=b.clientX,s.y=b.clientY})}}},f=u=>{d.size=u},m=u=>{const{onUpdateColumns:v,"onUpdate:columns":C}=e;v&&j(v,u),C&&j(C,u)},_=()=>{const{toolOptions:u}=e;return u==null?void 0:u.filter(Boolean).map(v=>typeof v=="function"?v():v)},g=u=>{Object.keys(p.value).forEach(C=>{p.value[C]=u.includes(C)})},y=u=>{const{tool:v}=u;if(!v)return;const C=()=>r(E,{align:"center"},{default:()=>[r(rs,u,null),r(os,F(u,{onChangeSize:f.bind(this)}),null),r(as,null,null),r(ss,F(u,{onUpdateColumn:m.bind(this)}),null),r(is,F(u,{onPopselectChange:g.bind(this),onInitialed:g.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let T;return r(E,{align:"center"},cs(T=_())?T:{default:()=>[T]})}:()=>r(E,{align:"center"},{default:()=>[C(),_()]}):C};return Ne(()=>{const{onRegister:u}=e;u&&l.value&&j(u,l.value,{uuidTable:c,uuidWrapper:i,wrapperRef:o})}),Do(ee.tableKey,{uuidTable:c,uuidWrapper:i,wrapperRef:o}),n(),{uuidWrapper:i,uuidTable:c,contextMenuReactive:s,rTableInst:l,combineRowProps:S,contextMenuSelect:h,privateReactive:d,tool:y,wrapperRef:o,propsPopselectValue:p}},render(){const{$props:e,$attrs:t,$slots:n,uuidTable:a,contextMenuReactive:l,uuidWrapper:o,privateReactive:i,propsPopselectValue:c}=this,{class:s,...d}=t,{tool:p,combineRowProps:h,contextMenuSelect:S}=this,{renderWrapperHeader:f,wrapperBordered:m,disabledContextMenu:_,contextMenuOptions:g,title:y,tableFlexHeight:u,cardProps:v,...C}=e;return r(tt,F(v,{id:o},d,{ref:"wrapperRef",bordered:m,class:s}),{default:()=>r(hn,null,[r(io,F({id:a},C,c,{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:g,onClickoutside:()=>l.showContextMenu=!1,onSelect:S.bind(this)},null)]),header:f?ge(y,{defaultElement:r("div",{style:"display: none;"},null)}):null,"header-extra":p(e),footer:()=>{var T;return(T=n.tableFooter)==null?void 0:T.call(n)},action:()=>{var T;return(T=n.tableAction)==null?void 0:T.call(n)}})}}),ds=()=>{const e=I();let t={};const n=(f,m)=>{f&&(e.value=f,t=m)},a=()=>{if(!e.value)throw new Error("[useTable]: table instance is not ready yet. if you are using useTable, please make sure you have called register method in onRegister event.");return e.value};return[n,{getTableInstance:a,clearFilters:()=>a().clearFilters.call(null),clearSorter:()=>a().clearSorter.call(null),downloadCsv:f=>a().downloadCsv.call(null,f),filters:f=>a().filters.call(null,f),page:f=>a().page.call(null,f),scrollTo:f=>a().scrollTo(f),sort:(f,m)=>a().sort.call(null,f,m),print:f=>{const{uuidWrapper:m}=t;if(m){const _=document.getElementById(m);wn(_,f)}},filter:f=>a().filter.call(null,f)}]},zn=(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=zn(l.children,t,n);if(o)return o}}},Jt=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},ps=(e,t,n,a)=>{const l=Z(e);return l?t.reduce((o,i)=>{const c=Z(n).findIndex(d=>d[a]===i);if(c!==-1)return o.push(Z(n)[c]),o;const s=l.findIndex(d=>d[a]===i);return s!==-1&&o.push(l[s]),o},[]):n},ni=(e,t,n)=>{const a=I([]),l=I([]),{rowKey:o="key",onChange:i}=n||{},c=w(()=>Jt(t)),s=(m,_,g)=>{a.value=m,l.value=Z(ps(e,m,l,o)),i==null||i(m,l.value,g),Jt(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(g=>g!==m),l.value=l.value.filter(g=>g[o]===m?(_=g,!1):!0),i==null||i(a.value,l.value,{row:_,action:"uncheck"})},f=m=>{if(a.value.includes(m))return;const _=!c.value&&a.value.length>=1,g=zn(Z(e)||[],o,m);_?a.value=[m]:a.value.push(m),g&&(_?l.value=[g]:l.value.push(g),i==null||i(a.value,l.value,{row:g,action:"check"}))};return Lt(()=>{h()}),[a,{checkedRows:l,checkedRowKeysBind:s,getKeys:d,getRows:p,clearAll:h,clearKey:S,selectKey:f}]},ms={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},fs=M({name:"RTransitionComponent",__name:"index",props:jo({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},ms),setup(e){const{getKeepAliveInclude:t}=xs(),{getKeepAliveConfig:n}=$();return(a,l)=>{const o=Fo("RouterView");return be(),No("div",null,[r(o,null,{default:pt(({Component:i,route:c})=>[i?(be(),ze(za,{key:0,name:a.transitionPropName,mode:a.transitionMode,appear:a.transitionAppear},{default:pt(()=>[(be(),ze(Bo,null,{default:pt(()=>[Z(n).setupKeepAlive?(be(),ze(Vo,{key:0,max:Z(n).maxKeepAliveLength,include:Z(t),exclude:Z(n).keepAliveExclude},[(be(),ze(Ut(i),{key:c.fullPath}))],1032,["max","include","exclude"])):(be(),ze(Ut(i),{key:c.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):$o("",!0)]),_:1})])}}}),gs=M({name:"RForm",props:An,setup(e,{expose:t}){const n=ie("formRef");return Ne(()=>{const{onRegister:a}=e;a&&n.value&&j(a,n.value)}),t(),{formRef:n}},render(){const{$attrs:e,$props:t,$slots:n}=this;return r(rn,F(e,t,{ref:"formRef"}),{...n})}}),oi=(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)||{}}]},hs=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],vs={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},ys=et({...co,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...hs);function bs(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const kt=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},_s=e=>{if(typeof e.popover=="string")return r(Ee,null,{trigger:()=>kt(e),default:()=>e.popover});if(ce(e.popover,"Object")){const{popover:t}=e,{label:n,...a}=t;return r(Ee,a,{trigger:()=>kt(e),default:()=>n})}},Ss=M({name:"RSegment",props:ys,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(po,F(t,{ref:"segmentRef",style:[a],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},vs,l)}),bs(e=n.map(o=>r(uo,{key:o.key,name:o.key,tab:o.popover?_s(o):kt(o),disabled:o.disabled},{...o.slots})))?e:{default:()=>[e]})}}),ws={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]}},ai=M({name:"RBarcode",props:ws,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:c,onSuccess:s}=e,d=Object.assign({},c,{format:o});Uo(t.value,i!=null?i.toString():"",d),s&&j(s,i,o,c)}catch(o){const{onError:i}=e;i&&j(i,o)}finally{const{onFinally:o}=e;o&&j(o)}};return ve(()=>{e.watchText?a=he(()=>e.text,l):a==null||a()}),Ne(()=>{l()}),fn(()=>{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(nt,{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)]})}}),Cs={...et(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 Ts(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const li=M({name:"RTablePro",props:Cs,setup(e){const[t,{clearFilters:n,clearSorter:a,downloadCsv:l,filters:o,page:i,scrollTo:c,sort:s,print:d,filter:p}]=ds(),[h,{getPage:S,getPageSize:f,setCallback:m,setItemCount:_,resetPagination:g,getItemCount:y}]=fr(void 0,{prefix:R=>`共 ${R.itemCount} 条`}),u=w(()=>e.request),v=()=>({getItemCount:y,getPage:S,getPageSize:f}),C=()=>{const{onTablePaginationUpdate:R}=e;R&&j(R,v())},T=R=>{const O=Object.assign({},e.requestConfig,R),{params:P,formatRangeTime:D}=O;return D!=null&&D.length&&P&&D.forEach(V=>{const{key:X,target:W}=V,ue=P[X];if(ue&&(W!=null&&W.length)){const[J,it]=ue;P[W[0]]=J,P[W[1]]=it}else P[X]=null,P[W[0]]=null,P[W[1]]=null}),Object.assign({},P,{page:S(),pageSize:f()})},b=R=>{var P;g();const O=T(R);(P=u.value)==null||P.call(u,O)},x=R=>{var P;const O=T(R);(P=u.value)==null||P.call(u,O)};return ve(()=>{_(e.paginationCount),m(()=>{const{manual:R}=e;R||x(),C()})}),Ne(()=>{const{onRegister:R}=e;R&&j(R,{getTablePagination:v,runTableRequest:b,clearFilters:n,clearSorter:a,downloadCsv:l,filters:o,page:i,scrollTo:c,sort:s,print:d,filter:p,getCurrentTableRequestParams:T})}),{register:t,paginationRef:h}},render(){const{register:e,$props:t,paginationRef:n,$slots:a}=this,{onRegister:l,showPagination:o,...i}=t;return r(us,F(i,{onRegister:e,pagination:o?n:void 0}),Ts(a)?a:{default:()=>[a]})}}),si=()=>{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)}]},Os=(e,t,n)=>!e||typeof e!="object"?!1:e[t]===n,In=(e,t,n)=>{const a=[];if(Os(e,t,n))return a.push(e),a;if(e.children&&e.children.length>0)for(const l of e.children){const o=In(l,t,n);o.length>0&&a.push(e,...o)}return a},Rs=(e,t,n)=>{const a=[];for(const l of e){const o=In(l,t,n);o.length>0&&a.push(...o)}return a},Zt=e=>{const{breadcrumbLabel:t}=e;if(!t)return;const{sideBarLogo:n}=Be(),a=n?n.title:"";document.title=t+" - "+a},As=e=>{const{meta:{icon:t}}=e;if(!t)return;if(ce(t,"Object"))return()=>t;const{menuConfig:n}=Be(),{collapsed:a}=Et(),l=ot(k,{name:t,size:a?n.collapsedIconSize:n.iconSize,cursor:"pointer"},{});return()=>l},Ln=e=>{const{meta:{extra:t}}=e;if(!t)return;const{show:n}=t;if(n===!1)return;const{t:a}=Fe(),{label:l,icon:o,type:i,i18nLabel:c}=t,s={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},d=()=>c?a(c):l||null,p=()=>o&&(c||l)||!o&&(c||l)?null:{"padding-right":"0"};if(ce(t,"Object"))return()=>ot(mo,{...s,type:i||"primary",style:p()},{default:()=>d(),icon:()=>o})},Qt=()=>{const{getRootPath:e}=Pe();return Ye(H.appMenuKey,"sessionStorage",{defaultValue:e.value})},En=()=>Bl(jl()),ks=()=>Fl(En()),Pt=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let Ke;const Dn=(e,t)=>{var n;if(Ke&&Wt(Ke.fullPath,t))return Ke;for(const a of e){if(Wt(a.fullPath,t))return Ke=a,a;if((n=a.children)!=null&&n.length){Dn(a.children,t);continue}}},Et=at("menu",()=>{const{push:e,getRoutes:t}=lt(),n=ra(),{t:a}=Fe(),{setKeepAliveInclude:l}=Ms(),o=te({menuKey:Qt(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),i=I(!0),c=(u,v,C)=>{yn(o,u,v,C)},s=u=>{const{meta:v}=u,{i18nKey:C,noLocalTitle:T}=v,b=w(()=>C?a(`${C}`):T),x={...u,key:u.fullPath,label:()=>ot(cn,null,{default:()=>b.value}),breadcrumbLabel:b.value},R=Object.assign({},x,{icon:As(u),extra:Ln(u)});return u.fullPath===Qt()&&(o.currentMenuOption=R),R.show=Rn(R),R},d=u=>{o.breadcrumbOptions=Rs(o.options,"fullPath",u)},p=(u,v=!0)=>{const T=Array.isArray(u)?[...u]:[u];v?o.menuTagOptions.push(...T):o.menuTagOptions=T},h=(u,v)=>{o.menuTagOptions.find(T=>T.fullPath===u)||o.menuTagOptions.push(v)},S=(u,v,C)=>{const{meta:T}=v;if(T.windowOpen)window.open(T.windowOpen);else{e({path:String(u),query:C});const{sameLevel:b}=T;if(l(v),Zt(v),!b)h(u,v),d(u),o.menuKey=u,o.currentMenuOption=v,It(H.appMenuKey,u);else{const x=Le(s(v),Pt);o.breadcrumbOptions.find(O=>O.key===x.key)||o.breadcrumbOptions.push({...x,fullPath:String(x.key)})}}},f=async(u,v)=>{const[C]=u.split("?"),T=t().find(b=>b.path===C);if(!((T==null?void 0:T.path)==="/"||!(T!=null&&T.path)||(T==null?void 0:T.path)==="/login")&&T){const b=Le(T,Pt);S(C,s({...b,fullPath:b.path}),v)}},m=()=>new Promise(u=>{const v=(C,T)=>{var x;const b=[];for(const R of C){let O=`${T.endsWith("/")?T:T+"/"}${R.path}`;if(O=O.replace(/\/+/g,"/"),(x=R.children)!=null&&x.length)R.children=v(R.children,O);else if(!Bn(R.meta))continue;b.push(s({...R,fullPath:O}))}return b};if(o.options=v(En(),""),o.currentMenuOption){const{currentMenuOption:C}=o;o.breadcrumbOptions.length||d(C.key),h(C.fullPath,C),Zt(C)}u()}),_=u=>o.collapsed=u,g=(u,v=1)=>o.menuTagOptions.splice(u,v),y=async()=>{i.value&&(await m(),i.value=!1)};return he(()=>n.fullPath,async(u,v)=>{await y(),u!==v&&await f(u,n.query)},{immediate:!0}),{...Re(o),changeMenuModelValue:S,collapsedMenu:_,spliceMenTagOptions:g,setMenuTagOptions:p,resolveOption:s,updateMenuState:c,setupAppMenu:m}},{persist:{key:H.appPiniaMenuStore,storage:window.localStorage,pick:["breadcrumbOptions","menuKey","menuTagOptions","collapsed"]}}),jn=at("signing",()=>{const e=te({signingCallback:{}}),t=l=>new Promise((o,i)=>{an(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}=Kn(),{appPiniaMenuStore:i,appPiniaSigningStore:c,token:s,signing:d,appMenuKey:p}=H;window.$message.info("账号退出中..."),_e("__all_sessionStorage__","sessionStorage"),_e(c,"localStorage"),_e(i,"localStorage"),_e(s,"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:H.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),Nn=at("keepAlive",()=>{const e=te({keepAliveInclude:[]}),t=()=>e.keepAliveInclude.length,n=l=>{const o=t(),{name:i,meta:{keepAlive:c}}=l,{maxKeepAliveLength:s}=Be().keepAliveConfig;if(c){if(o<s&&!e.keepAliveInclude.includes(i)){e.keepAliveInclude.push(i);return}o>=s&&(e.keepAliveInclude.splice(0,1),e.keepAliveInclude.push(i))}},a=()=>e.keepAliveInclude;return{...Re(e),setKeepAliveInclude:n,getKeepAliveInclude:a}},{persist:{key:H.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),ye=()=>{const e=Et(),t=w(()=>e.options),n=w(()=>e.breadcrumbOptions),a=w(()=>e.menuKey),l=w(()=>{const{getRootPath:c}=Pe();return e.menuTagOptions.map((s,d,p)=>(s.key===a.value&&s.key!==c.value?s.closeable=!0:s.closeable=!1,s.key===c.value&&(s.closeable=!1),p.length<=1&&(s.closeable=!1),s))}),o=w(()=>e.currentMenuOption),i=w(()=>e.collapsed);return{getMenuOptions:t,getBreadcrumbOptions:n,getMenuKey:a,getMenuTagOptions:l,getCurrentMenuOption:o,getCollapsed:i}},ke=()=>{const{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:n,setMenuTagOptions:a,resolveOption:l,updateMenuState:o,setupAppMenu:i}=Et();return{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:n,setMenuTagOptions:a,resolveOption:l,updateMenuState:o,setupAppMenu:i}},$=()=>{const e=Be(),t=w(()=>e.drawerPlacement),n=w(()=>e.primaryColorOverride),a=w(()=>e._appTheme),l=w(()=>e.appTheme),o=w(()=>e.menuTagSwitch),i=w(()=>e.breadcrumbSwitch),c=w(()=>e.localeLanguage),s=w(()=>e.lockScreenSwitch),d=w(()=>e.copyrightSwitch),p=w(()=>e.contentTransition),h=w(()=>e.watermarkSwitch),S=w(()=>e.watermarkConfig),f=w(()=>e.appRootRoute),m=w(()=>e.sideBarLogo),_=w(()=>e.keepAliveConfig),g=w(()=>e.menuConfig);return{getDrawerPlacement:t,getPrimaryColorOverride:n,getAppTheme:a,getMenuTagSwitch:o,getBreadcrumbSwitch:i,getLocaleLanguage:c,getLockScreenSwitch:s,getCopyrightSwitch:d,getContentTransition:p,getWatermarkSwitch:h,getWatermarkConfig:S,getAppRootRoute:f,getSideBarLogo:m,getKeepAliveConfig:_,getMenuConfig:g,getAppThemeStr:l}},U=()=>{const{updateLocale:e,changePrimaryColor:t,updateSettingState:n}=Be();return{updateLocale:e,changePrimaryColor:t,updateSettingState:n}},Fn=()=>{const e=jn();return{getSigningCallback:w(()=>e.signingCallback)}},Ps=()=>{const{signing:e,logout:t,clearSigningCallback:n}=jn();return{signing:e,logout:t,clearSigningCallback:n}},xs=()=>{const e=Nn();return{getKeepAliveInclude:w(()=>e.keepAliveInclude)}},Ms=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:t}=Nn();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},ri=e=>{const t=ea();e.use(t),t.use(Qo)},Bn=e=>{const{getSigningCallback:t}=Fn(),{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},zs=e=>{const{setupRouterLoadingBar:t,setupRouterGuard:n}=Ka;t&&Kl(e),n&&Vl(e)},Is=I(),Ls=M({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=lt(),{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:Is},[e!=null&&e.icon?t?r(De,{placement:"right"},{trigger:()=>n({cursor:"pointer"}),default:()=>e.title}):n({cursor:"pointer"}):t?r(De,{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(fo,{class:[t?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"'],type:"primary",size:18},{default:()=>[r(cn,null,{default:()=>[e.title]})]})]):null}}),Es=M({name:"AppMenu",setup(){const e=I(null),{changeMenuModelValue:t,collapsedMenu:n,updateMenuState:a}=ke(),{getMenuConfig:l}=$(),{getMenuOptions:o,getCollapsed:i,getMenuKey:c}=ye(),s=w({get:()=>(G().then(()=>{h()}),c.value),set:()=>{d.value&&re("globalDrawerValue",!1)}}),{isTabletOrSmaller:d}=rt({observer:f=>{f&&a("collapsed",!1)}}),p=w({get:()=>st("globalDrawerValue").value,set:f=>{re("globalDrawerValue",f)}}),h=()=>{const f=s.value;f!=null&&G(()=>{var m,_;return(_=(m=e.value)==null?void 0:m.showOption)==null?void 0:_.call(m,f)})};return{isTabletOrSmaller:d,BasicMenu:()=>r(ho,{class:"app-menu__sider",showTrigger:!d.value,collapseMode:l.value.collapsedMode,collapsedWidth:l.value.collapsedWidth,onUpdateCollapsed:n.bind(this),nativeScrollbar:!1,ref:Tn,collapsed:i.value,onExpand:()=>{a("collapsed",!1)},onCollapse:()=>{a("collapsed",!0)}},{default:()=>[l.value.menuSiderBarLogo?r(Ls,{collapsed:i.value},null):null,r(go,{ref:e,class:"r-menu--app",keyField:"fullPath",value:s.value,"onUpdate:value":f=>s.value=f,options:o.value,indent:l.value.collapsedIndent,collapsed:i.value,collapsedIconSize:l.value.collapsedIconSize,collapsedWidth:l.value.collapsedWidth,onUpdateValue:(f,m)=>{t(f,m)},accordion:l.value.accordion,iconSize:l.value.iconSize},null)]}),modelGlobalDrawerValue:p}},render(){const{isTabletOrSmaller:e,BasicMenu:t}=this;return e?r(un,{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 Ds{constructor(){Ft(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:[]},js=new Ds,ii=()=>{const e=(c,s)=>{s==="requestInstance"?gt.requestInstance=c:gt.responseInstance=c},t=c=>gt[c],n=(c,s,d)=>{d==="ok"?ht[c]=s:Ue[c]=s},a=(c,s)=>s==="ok"?ht[c]:Ue[c],l=(c,...s)=>{Array.isArray(c)&&c.forEach(d=>{typeof d=="function"&&d(...s)})};return{createAxiosInstance:e,setImplement:n,getImplement:a,getAxiosInstance:t,beforeFetch:(c,s,d)=>{const p=d==="ok"?ht[s]:Ue[s],h=t(c),{MODE:S}=Rt();h&&l(p,h,S)},fetchError:(c,s,d)=>{const p=Ue[d],{MODE:h}=Rt();l(p,s,h)}}},Ns=M({name:"AppRequestCancelerProvider",setup(e,{expose:t}){ia(()=>{js.cancelAllRequest()}),t()},render(){return r("div",{class:"app-style-provider"},null)}}),Vn=M({name:"LayoutContentWrapper",setup(){lt();const{maximize:e}=$n(),{getContentTransition:t}=$(),n=I(!1),a={opacitySpinning:"0"},{globalMainLayoutLoad:l,layoutContentMaximize:o,layoutContentSpinning:i}=Wa();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(nt,{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(Ns,null,null),e?r(fs,{class:"content-wrapper",transitionPropName:i+"-transform"},null):null]})}}),Fs=Object.freeze(Object.defineProperty({__proto__:null,default:Vn},Symbol.toStringTag,{value:"Module"}));var Bs={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.2"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Vs=M({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=Bs;return{copyright:e}},render(){return this.copyright?r("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),$s=M({name:"TooltipIcon",props:{...vo,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(De,this.$props,{trigger:()=>r(e,null,null),default:()=>this.tooltipText}):r(e,null,null)}}),Ks=M({name:"ThemeSegment",setup(){const{system:e}=pn(),{getAppThemeStr:t,getAppTheme:n}=$(),{updateSettingState:a}=U(),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:c=>{i(c,e.value)}}),i=(c,s)=>{if(c==="auto"){a("_appTheme",s==="dark"),a("appTheme","auto");return}a("_appTheme",c==="dark"),a("appTheme",c)};return ve(()=>{i(o.value,e.value)}),{options:l,modelAppTheme:o}},render(){const{options:e}=this;return r(Ss,{options:e,size:"small",width:"block",value:this.modelAppTheme,"onUpdate:value":t=>this.modelAppTheme=t},null)}}),Us={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 Ws=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}=U(),{getAppTheme:l,getPrimaryColorOverride:o,getMenuTagSwitch:i,getBreadcrumbSwitch:c,getCopyrightSwitch:s,getContentTransition:d,getWatermarkSwitch:p,getKeepAliveConfig:h,getMenuConfig:S,getDrawerPlacement:f}=$(),{setupAppMenu:m}=ke(),_=w({get:()=>e.show,set:v=>{t("update:show",v)}}),g=w({get:()=>({getMenuTagSwitch:i.value,getBreadcrumbSwitch:c.value,getCopyrightSwitch:s.value,getContentTransition:d.value,getWatermarkSwitch:p.value,getKeepAliveConfig:h.value,getMenuConfig:S.value,getDrawerPlacement:f.value}),set:v=>{}}),y=xt(m,300);return{modelShow:_,changePrimaryColor:n,getAppTheme:l,getPrimaryColorOverride:o,updateSettingState:a,modelReactive:g,defaultSettingBtnClick:()=>{Zn(Us,(v,C)=>{a(C,v)}),y()},throttleSetupAppMenu:y}},render(){let e,t,n;const{$t:a,changePrimaryColor:l,updateSettingState:o,defaultSettingBtnClick:i,throttleSetupAppMenu:c}=this;return r(un,{show:this.modelShow,"onUpdate:show":s=>this.modelShow=s,placement:this.placement,width:this.width,trapFocus:!1,autoFocus:!1},{default:()=>[r(yo,{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(Ks,null,null),r(oe,{titlePlacement:"center"},vt(t=a("headerSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),r(bo,{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($t,{value:this.modelReactive.getContentTransition,"onUpdate:value":s=>this.modelReactive.getContentTransition=s,options:Na,onUpdateValue:s=>{o("contentTransition",s)}},null),r(oe,{titlePlacement:"center"},{default:()=>[fe("抽屉位置")]}),r($t,{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(_o,{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:()=>[r(E,{wrap:!1,align:"center",size:[4,0]},{default:()=>[r(De,{placement:"top",showArrow:!1},{trigger:()=>r(k,{name:"question",size:"16"},null),default:()=>"菜单渲染是一个复杂、耗时的操作,请手动更新"}),r(Ot,null,{default:()=>[fe("菜单样式")]})]})]}),r(rn,{showFeedback:!0,showRequireMark:!1},{default:()=>[r(xe,{label:"每级菜单缩进"},{default:()=>[r(Me,{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(xe,{label:"菜单图标尺寸"},{default:()=>[r(Me,{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(xe,{label:"折叠菜单图标尺寸"},{default:()=>[r(Me,{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(xe,{label:"折叠菜单宽度"},{default:()=>[r(Me,{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(xe,{showFeedback:!1,showLabel:!1},{default:()=>[r(Y,{onClick:c,block:!0,type:"info",secondary:!0},{icon:()=>r(k,{name:"question",size:"16"},null),default:()=>"点击刷新"})]})]}),r(oe,{titlePlacement:"center"},{default:()=>[r(E,{wrap:!1,align:"center",size:[4,0]},{default:()=>[r(De,{placement:"top",showArrow:!1},{trigger:()=>r(k,{name:"question",size:"16"},null),default:()=>"当设置为【0】时,缓存将会失效"}),r(Ot,null,{default:()=>[fe("最大缓存数")]})]})]}),r(Me,{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(Y,{type:"primary",block:!0,onClick:i},{default:()=>[fe("清除设置")]})]})]})]})]})}});function qs(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const Gs=M({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=ke(),{getBreadcrumbOptions:t}=ye(),{isTabletOrSmaller:n}=rt();return{getBreadcrumbOptions:t,dropdownSelect:(o,i)=>{e(o,i)},breadcrumbItemClick:o=>{var i;if(!((i=o.children)!=null&&i.length)){const{meta:c={}}=o;c.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(wo,null,{default:()=>[r(Ia,{tag:"li",name:"breadcrumb",appear:!0},qs(e=n.map(o=>r(So,{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 Hs=M({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const{changeMenuModelValue:n,resolveOption:a}=ke(),{getRoutes:l}=lt(),o=w({get:()=>e.show,set:b=>{t("update:show",b),b||f()}}),i=te({searchValue:null,searchOptions:[]}),c=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let s=0,d=s;const{isTabletOrSmaller:p}=rt(),h=I(!1),S="content-item--active",f=()=>{i.searchOptions=[],i.searchValue=null,s=0,d=s},m=b=>{o.value||(b.ctrlKey||b.metaKey)&&b.key==="k"&&(b.preventDefault(),b.stopPropagation(),f(),o.value=!0)},_=b=>{if(b)h.value=!0;else{h.value=!1,i.searchOptions=[];return}const x=l().reduce((R,O)=>{var V;const P=Le(O,["children","meta","path","name"]),D=a({...P,fullPath:O.path}),{breadcrumbLabel:K}=D;return(V=K==null?void 0:K.toLocaleLowerCase())!=null&&V.includes(b.toLocaleLowerCase())&&Rn(D)&&R.push(D),R},[]);setTimeout(()=>{i.searchOptions=x,G().then(()=>{y()}),h.value=!1},500)},g=b=>{if(b){const{meta:x}=b;x.windowOpen?window.open(x.windowOpen):(o.value=!1,n(b.fullPath,b),setTimeout(Ho,300))}},y=()=>{const b=i.searchOptions[s],x=i.searchOptions[d];b&&G().then(()=>{const R=Je(`attr:data_path="${b.path}"`),O=x?Je(`attr:data_path="${x==null?void 0:x.path}"`):null;if(O!=null&&O.length){const[P]=O;Yo(P,S)}if(R!=null&&R.length){const[P]=R;Sn(P,S)}})},u=b=>{const{icon:x}=b;return typeof x=="string"?r(k,{name:x,size:"24"},null):typeof x=="function"?()=>x:r(k,{name:"search",size:"24"},null)},v=b=>{b==="up"&&(s-=1,s<0&&(s=i.searchOptions.length-1)),b==="down"&&(s+=1,s>=i.searchOptions.length&&(s=0))},C=b=>{const x=b.key;switch((x==="ArrowUp"||x==="ArrowDown"||x==="Enter")&&(b.preventDefault(),b.stopPropagation()),d=s<=0?0:s,x){case"ArrowUp":v("up");break;case"ArrowDown":v("down");break;case"Enter":const R=i.searchOptions[s];R&&g(R);break}y()},T=({menuOption:b})=>r(E,F({align:"center",class:"content-item"},{onClick:g.bind(this,b),data_path:b.path}),{default:()=>[r("div",{class:"content-item-icon"},[u(b.meta)]),r("div",{class:"content-item-label"},[b.breadcrumbLabel]),r(k,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return ve(()=>{p.value&&(o.value=!1)}),je(window,"keydown",b=>{m(b),C(b)},!0),{...Re(i),modelShow:o,helperTipOptions:c,fuzzySearchMenuOptions:xt(_,300),searchItemClick:g,RenderPreIcon:u,isTabletOrSmaller:p,SearchItem:T,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(ln,{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(tt,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>r(Co,{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(Mt,null,{default:()=>[r(nt,{show:n},{default:()=>[t.length?r(E,{vertical:!0,size:[0,6],class:"global-search__card-content"},yt(o=t.map((i,c)=>r(a,{menuOption:i,key:i.fullPath},null)))?o:{default:()=>[o]}):r(To,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>r(E,{justify:"center",class:"global-search__empty-content"},{default:()=>[r(Ot,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(c=>r(E,{class:"item-icon",align:"center",justify:"center"},yt(c)?c:{default:()=>[c]})),r(E,{class:"item-label",align:"center"},{default:()=>[i.label]})]})))?o:{default:()=>[o]})}})])])]})}}),Ys=M({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const a=Xo();return a==="MacOS"?"⌘ + K":"CTRL + K"},click:a=>{const{onClick:l}=e;l&&j(l,a)}}},render(){const{getShortcutKeyAboutSystem:e,click:t,$t:n}=this;return r(Y,{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()])]})})}}),Xs=M({name:"AppAvatar",props:{...Oo,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}=Fn();return{getSigningCallback:e}},render(){const{getSigningCallback:e,avatarSize:t,spaceSize:n,$props:a,vertical:l}=this;return r(Y,{quaternary:!0,strong:!0,focusable:!1},{default:()=>[r(E,{align:"center",size:n,vertical:l},{default:()=>[r(Ro,F(a,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:t}),null),e==null?void 0:e.name]})]})}}),Js=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],Zs={logout:()=>{const{logout:e}=Ps();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=U();e("lockScreenSwitch",!0)}},Qs=e=>{const t=Zs[e];t?t():window.$message.info("这个人很懒, 没做这个功能~")},er=e=>{const{isTabletOrSmaller:t}=e,n=[],a=[{name:"menu",size:18,eventKey:"menu"}];return t.value?a:n},tr=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},nr=M({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:t}=U(),{t:n}=Fe(),[a,{toggleFullscreen:l,isEnabled:o}]=vn(document.getElementsByTagName("html")[0]),{getDrawerPlacement:i,getBreadcrumbSwitch:c}=$(),s=I(!1),d=I(!1),{isTabletOrSmaller:p}=rt(),h=st("globalDrawerValue"),S=w(()=>er({isFullscreen:a,isTabletOrSmaller:p})),f=w(()=>tr({isFullscreen:a,isTabletOrSmaller:p})),m={search:()=>{d.value=!0},setting:()=>{s.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:f,toolIconClick:y=>{var u;(u=m[y])==null||u.call(m)},showSettings:s,updateLocale:e,getDrawerPlacement:i,getBreadcrumbSwitch:c,globalSearchShown:d,isRenderVNode:y=>p.value?null:y}},render(){const{rightTooltipIconOptions:e,leftIconOptions:t,getDrawerPlacement:n,getBreadcrumbSwitch:a}=this,{toolIconClick:l,updateLocale:o,isRenderVNode:i}=this;return r(dn,{class:"layout-header"},{default:()=>[r(Hs,{show:this.globalSearchShown,"onUpdate:show":c=>this.globalSearchShown=c},null),r(E,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[r(E,{align:"center",wrap:!1},{default:()=>[t.map(c=>r($s,{key:c.name,iconName:c.name,tooltipText:mn(c.tooltip)?c.tooltip.value:c.tooltip,customClassName:c.iconClass,onClick:l.bind(this,c.name)},null)),a?r(Gs,null,null):null]}),r(E,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[i(r(Ys,{onClick:c=>{c.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(c=>r(Y,{class:"override-button__layout",quaternary:!0,size:"medium",key:c.name,onClick:l.bind(this,c.name),focusable:!1},{default:()=>[r(k,{name:c.name,size:16,cursor:"pointer"},null)]})),r(Oe,{options:Cn,onSelect:c=>o(String(c)),trigger:"click"},{default:()=>[r(Y,{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:Js(),onSelect:Qs.bind(this),trigger:"click"},{default:()=>[r(Xs,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),r(Ws,{show:this.showSettings,"onUpdate:show":c=>this.showSettings=c,placement:n},null)]})}}),or=M({name:"LayoutHeaderWrapper",setup(){return{}},render(){return r(E,{size:[0,0]},{default:()=>[r(nr,null,null)]})}});function ar(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const lr=M({name:"AppMenuTag",setup(e,{expose:t}){const n=ie("scrollRef"),{getMenuKey:a,getMenuTagOptions:l}=ye(),{changeMenuModelValue:o}=ke(),{getRootPath:i}=Pe(),{maximize:c}=$n(),{reload:s}=gr(),{close:d,closeAll:p,closeRight:h,closeLeft:S,closeOther:f,checkCloseLeft:m,checkCloseRight:_}=Kn(),g=["closeAll","closeRight","closeLeft","closeOther"];let y=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}]),C=Xe(16),T={closeCurrentPage:()=>{a.value!==i.value&&d(y)},reloadCurrentPage:()=>{s()},closeAll:()=>{p()},closeRight:()=>{h(y)},closeLeft:()=>{S(y)},closeOther:()=>{f(y)},windowOpenTab:()=>{const A=l.value[y];if(!(A!=null&&A.fullPath))return;const z=A.fullPath.startsWith("#")?A.fullPath:`#${A.fullPath}`;window.open(z,"_blank")},maximizeLayoutContent:()=>{const A=l.value[y];c(!0),A&&X(A)}},b=te({x:0,y:0,actionDropdownShow:!1}),x="menu_tag_data",R=st("globalMainLayoutLoad"),O="n-scrollbar-container";let P=a.value;const D=I(!1),K=A=>{d(A)},V=(A,z)=>{for(const q of v.value)if(q.key===A){q.disabled=z;break}},X=A=>{b.actionDropdownShow=!1,o(A.fullPath,A)},W=()=>{const A=document.getElementById(C);if(A)return Array.from(A.childNodes).find(Ve=>Jo(Ve,O).value)},ue=A=>{var q;const z=W();if(z){const Ve=z.scrollLeft||0,Nt=A==="left"?Math.max(0,Ve-200):Ve+200;(q=n.value)==null||q.scrollTo({left:Nt,behavior:"smooth"})}},J=A=>{b.actionDropdownShow=!1;const z=T[A];z==null||z()},it=(A,z)=>{z.preventDefault(),y=A,b.actionDropdownShow=!1,G(()=>{b.x=z.clientX,b.y=z.clientY,b.actionDropdownShow=!0})},jt=()=>{_(y)?V("closeRight",!1):V("closeRight",!0),m(y)?V("closeLeft",!1):V("closeLeft",!0)},Wn=()=>{y=l.value.findIndex(z=>z.fullPath===a.value),jt()},qn=A=>{l.value.length>1&&A.fullPath!==i.value&&(A.closeable=!0),D.value=!0},Gn=A=>{A.fullPath!==a.value&&(A.closeable=!1),D.value=!1},Hn=()=>{W()&&G().then(()=>{var z;(z=n.value)==null||z.scrollTo({left:99999,behavior:"smooth"})})},ct=()=>{G().then(()=>{const A=Je(`attr:${x}="${a.value}"`);if(A!=null&&A.length){const[z]=A;G().then(()=>{var q;(q=n.value)==null||q.scrollTo({left:z.offsetLeft,behavior:"smooth"})})}})},Yn=()=>{c(!0)};return he(()=>l.value,(A,z)=>{v.value.forEach(q=>{g.includes(q.key)&&(A.length>1?q.disabled=!1:q.disabled=!0)}),z!=null&&z.length&&(A.length>(z==null?void 0:z.length)?Hn():A.length===(z==null?void 0:z.length)&&ct()),z===void 0&&ct()},{immediate:!0}),ve(()=>{b.actionDropdownShow&&jt(),P!==a.value&&(P=a.value,ct())}),t(),{getMenuTagOptions:l,closeCurrentMenuTag:K,getMenuKey:a,menuTagClick:X,moreOptions:v,scrollX:ue,scrollRef:n,uuidScrollBar:C,actionDropdownSelect:J,actionState:b,menuTagContextMenu:it,setCurrentContextmenuIndex:Wn,menuTagMouseenter:qn,menuTagMouseleave:Gn,MENU_TAG_DATA:x,iconConfig:u,maximize:c,reload:s,globalMainLayoutLoad:R,maximizeBtnClick:Yn,isMouseInMenuTag:D}},render(){let e;const{iconConfig:t,uuidScrollBar:n,getMenuTagOptions:a,MENU_TAG_DATA:l,globalMainLayoutLoad:o,isMouseInMenuTag:i}=this,{maximizeBtnClick:c,closeCurrentMenuTag:s,scrollX:d,$t:p,menuTagClick:h,menuTagContextMenu:S,menuTagMouseenter:f,menuTagMouseleave:m,actionDropdownSelect:_,reload:g}=this;return r(dn,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:_.bind(this),onClickoutside:()=>{i||(this.actionState.actionDropdownShow=!1)}},null),r(E,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0},{default:()=>[r(Y,{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(Mt,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"},ar(e=a.map((y,u)=>r(Y,F({key:y.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:y.fullPath===this.getMenuKey?"primary":"default"},{onClick:h.bind(this,y),onContextmenu:S.bind(this,u),onMouseenter:f.bind(this,y),onMouseleave:m.bind(this,y),[l]:y.fullPath},{size:"small",focusable:!1}),{default:()=>r(hn,null,[r("span",null,{default:()=>{const{breadcrumbLabel:v,meta:{i18nKey:C}}=y;return C?p(C):v}}),r(Ao,F({class:"menu-tag__btn-icon"},{onMousedown:s.bind(this,u)}),{default:()=>[r(k,{name:"close",size:"14"},null)]})])})))?e:{default:()=>[e]})]}),r(E,{align:"center",inline:!0,wrap:!1,size:[0,0]},{default:()=>[r(Y,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:d.bind(this,"right")},{icon:()=>r(k,{name:"expanded",width:t.size,height:t.size,style:{transform:"rotate(180deg)"}},null)}),r(Y,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:c},{icon:()=>r(k,{name:"fullscreen_fold",width:t.size,height:t.size},null)}),r(Y,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:()=>{g()}},{icon:()=>r(k,{name:"reload",width:t.size,height:t.size,customClassName:`${o?"":"menu-tag__right-setting--spinning"}`},null)}),r(Mn,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:18,keyboard:!1},{default:()=>[r(Y,{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)})]})]})]})])]})}}),sr=M({name:"LayoutFeatureWrapper",setup(){return{}},render(){return r(lr,null,null)}}),rr=e=>{const t=dt(e[0]),n=dt(e[1]),a=dt(e[2]),{height:l,width:o}=zt();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`}))},en=zo(H.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),ir=()=>({setLockAppScreen:n=>{en.value=n},getLockAppScreen:()=>en.value}),cr=M({name:"RLayout",setup(){const e=I(),t=I(),n=I(),{getMenuTagSwitch:a,getCopyrightSwitch:l}=$(),{getLockAppScreen:o}=ir(),i=rr([e,t,n]);return{getMenuTagSwitch:a,cssVarsRef:i,getLockAppScreen:o,layoutSiderBarRef:e,layoutMenuTagRef:t,layoutFooterRef:n,getCopyrightSwitch:l}},render(){const{getMenuTagSwitch:e,cssVarsRef:t,getCopyrightSwitch:n}=this,{getLockAppScreen:a}=this;return a()?null:r(ko,{class:"r-layout-full",style:[t],hasSider:!0,embedded:!0},{default:()=>[r(Es,null,null),r(Kt,{class:"r-layout-full__viewer"},{default:()=>[r(or,{ref:"layoutSiderBarRef"},null),e?r(sr,{ref:"layoutMenuTagRef"},null):null,r(Kt,{ref:we,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[r(Vn,null,null)]}),n?r(Vs,{ref:"layoutFooterRef"},null):null]})]})}}),ur=[{path:"/",name:"RLogin",component:()=>L(()=>import("./index-BxSh1D3V.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:cr,children:[...ks(),{path:"/:catchAll(.*)",component:()=>L(()=>import("./index-DPphVKho.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}}]}],Qe=ca({history:ua(),routes:ur,scrollBehavior:e=>{$l(e)}}),ci=e=>{e.use(Qe),zs(Qe)},Dt=()=>Qe?{router:Qe}:{router:{}},tn="YYYY-MM-DD HH:mm:ss",dr=()=>({locale:i=>{const c=Va[i];c?ae.locale(c):ae.locale($a)},getStartAndEndOfDay:i=>{const{format:c=tn}=i??{},s=ae(),d=s.startOf("day"),p=s.endOf("day"),h=s.format(c),S=d.format(c),f=p.format(c);return{today:s,startOfDay:d,endOfDay:p,formatToday:h,formatStartOfDay:S,formatEndOfDay:f}},format:(i,c)=>{const{format:s=tn}=c??{};return ae(i).format(s)},isDayjs:i=>ae.isDayjs(i),daysDiff:(i,c)=>{const s=ae(i);return ae(c).diff(s,"days")},isDateInRange:(i,c)=>{const{start:s,end:d}=c,p=ae(i);return p.isAfter(s)&&p.isBefore(d)}});function rt(e){const{width:t,height:n}=zt(e),a=I(!1),{observer:l}=e??{};return Zo(()=>{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}=zt(),nn=document.createElement("style"),pr=(e,t)=>{const{beforeEnter:n,beforeExit:a,enter:l,exit:o,backgroundColor:i,zIndex:c,transition:s="all 0.3s var(--r-bezier)"}=t??{};let d=!1;const p={x:null,y:null},h=()=>{const g=se(e);if(!g)return;const{left:y,top:u}=g.getBoundingClientRect();p.x===null&&p.y===null&&(p.x=-y,p.y=-u),qe(document.body,{"--element-fullscreen-z-index":ce(c,"Null")||ce(c,"Undefined")?bt:c,"--element-fullscreen-transition":s,"--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);
|
||
}
|
||
`;nn.innerHTML=v,_t||document.head.appendChild(nn)},S=()=>{const g=se(e);n==null||n(),g&&(g.getAttribute(me)||g.setAttribute(me,me),d||(d=!0,bt+=1),_t||(h(),_t=!0),g.style.transition=s,l==null||l())},f=()=>{a==null||a();const g=se(e);g&&g.removeAttribute(me),o==null||o()},m=()=>{const g=se(e);g&&(g.getAttribute(me)?f():S())},_=he(()=>[St.value,wt.value],h);return Lt(()=>{const g=se(e);g&&g.removeAttribute(me),bt--,_()}),{enter:S,exit:f,toggleFullscreen:m,currentWindowSize:{width:St,height:wt}}},Ct={svg:ta,png:na,jpeg:oa,blob:aa,pixelData:la,canvas:sa},ui=(e,t)=>{const{beforeCreate:n,created:a,createdError:l,finally:o,imageType:i}=t??{};return{create:s=>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[s??i??"jpeg"])==null||S.call(Ct,h,t).then(f=>(a==null||a(f,h),d(f))).catch(f=>(l==null||l(f),p(f))).finally(()=>{o==null||o(h)})})}},di=(e,t)=>({print:()=>{const a=se(e)||e;Ko({...et(t,["printable"]),printable:a})}}),mr={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},fr=(e,t)=>{const n=I(e),a=et(t,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size"]),o=I(Object.assign({},mr,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,c=o.value.onUpdatePageSize,s=()=>o.value.itemCount,d=u=>{o.value.itemCount=u},p=()=>o.value.page,h=u=>{i(u)},S=()=>o.value.pageSize,f=u=>{c(u)},m=()=>o.value,_=e,g=u=>{n.value=u},y=()=>{const{pageSizes:u}=o.value;o.value.page=1,o.value.pageSize=(u==null?void 0:u[0])||10};return Lt(()=>{n.value=void 0}),[o,{getItemCount:s,setItemCount:d,getPage:p,setPage:h,getPageSize:S,setPageSize:f,getPagination:m,getCallback:_,setCallback:g,resetPagination:y}]},$n=()=>({isLayoutContentMaximized:w(()=>st("layoutContentMaximize").value),maximize:(n,a)=>{var c;const{scrollToOptions:l}=a??{},o=se(we),{toggleFullscreen:i}=pr(o,a);re("layoutContentMaximize",n),i(),l&&n&&((c=we==null?void 0:we.value)==null||c.scrollTo(l))}}),gr=()=>({reload:(a=800)=>{re("globalMainLayoutLoad",!1),setTimeout(()=>re("globalMainLayoutLoad",!0),a)},openSpin:()=>{re("layoutContentSpinning",!0)},closeSpin:()=>{re("layoutContentSpinning",!1)}}),pi=()=>({setWatermarkContent:l=>{const{getWatermarkConfig:o}=$(),i=Object.assign(o.value,{content:l}),{updateSettingState:c}=U();c("watermarkConfig",i)},showWatermark:()=>{const{updateSettingState:l}=U();l("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:l}=U();l("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:l}=$(),{updateSettingState:o}=U();o("watermarkSwitch",!l.value)}}),We=e=>{const{getPrimaryColorOverride:t}=$(),{updateSettingState:n}=U();n("primaryColorOverride",e?Object.assign({},t.value,Q.appNaiveUIThemeOverrides.dark,Q.appNaiveUIThemeOverridesCommon.dark):Object.assign({},t.value,Q.appNaiveUIThemeOverrides.light,Q.appNaiveUIThemeOverridesCommon.light))},mi=()=>{const e=()=>{const{getAppTheme:o}=$(),{t:i}=Fe();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}=U();o("_appTheme",!0),o("appTheme","dark"),We(!0)},lightTheme:()=>{const{updateSettingState:o}=U();o("_appTheme",!1),o("appTheme","light"),We(!1)},toggleTheme:()=>{const{theme:o}=e(),{updateSettingState:i}=U();i("_appTheme",!o),i("appTheme",o?"light":"dark"),We(!o)},getAppTheme:e,syncSystemTheme:()=>{const{getAppTheme:o}=$(),{updateSettingState:i}=U(),{system:c}=pn();i("_appTheme",c.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 Kn(){const{getMenuTagOptions:e,getMenuKey:t}=ye(),{changeMenuModelValue:n,spliceMenTagOptions:a,setMenuTagOptions:l,resolveOption:o}=ke(),i=()=>e.value.findIndex(m=>m.fullPath===t.value);return{close:m=>{const _=Se(m,"close");if(e.value.length!==1&&_){const{index:g,option:y}=_;if(a(g),y.fullPath===t.value){const u=e.value[g-1];u&&n(u.fullPath,u)}}},closeAll:()=>{a(0,e.value.length);const{getRootPath:m}=Pe(),{router:{getRoutes:_}}=Dt(),g=_().find(y=>y.path===m.value);if(g){const y=Le(g,Pt),u=o(y);n(u.path,o({...u,fullPath:u.path}))}},closeRight:m=>{const _=Se(m,"closeRight");if(_){const{option:g,index:y}=_,u=e.value.length-y,v=i();a(y+1,u),y<=v&&t.value!==g.fullPath&&n(g.fullPath,g)}},closeLeft:m=>{const _=Se(m,"closeLeft");if(_){const{option:g,index:y}=_,u=i();a(0,y),u<=y&&t.value!==g.fullPath&&n(g.fullPath,g)}},closeOther:m=>{const _=Se(m,"closeOther");if(_){const{option:g}=_;t.value!==g.fullPath?(a(0,e.value.length),n(g.fullPath,g)):l(g,!1)}},getCurrentTagIndex:i,checkCloseRight:m=>{const _=Se(m,"checkCloseRight");if(_){const{index:g}=_,y=e.value.length-1;return!(g>=y)}return!1},checkCloseLeft:m=>{const _=Se(m,"checkCloseRight");if(_){const{index:g}=_,y=e.value.length-1;return g===0?!1:g>0&&y>0}return!1}}}function fi(){return{navigationTo:(t,n)=>{const{router:{getRoutes:a,push:l,replace:o}}=Dt(),{isPush:i=!0,query:c}=n||{},s=d=>i?l({path:d,query:c}):o({path:d,query:c});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:[f]}=S;h(f);return}s(S.fullPath)};h(p)}else if(typeof t=="string"){const d=a().find(p=>p.path===t);d?s(d.path):console.warn(`[navigationTo]: The path "${t}" is not found.`)}else s(t.fullPath)}}}function Pe(){const{getAppRootRoute:e}=$(),{updateSettingState:t}=U(),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 hr=(e,t)=>{const{show:n,...a}=t;e.meta.extra=Object.assign({},e.meta.extra,{...a,show:n}),e.extra=Ln(e)},on=(e,t,n)=>{const a=Dn(e,t);a&&hr(a,n)},Tt=(e,t,n)=>{const{getMenuOptions:a}=ye();if(typeof e=="string")on(a.value,e,n);else if(ce(e,"Object")){const{fullPath:l}=e;on(a.value,l,n)}else console.warn(`[useBadge ${t}]: target expect string or object.`)};function gi(){return{hidden:a=>{Tt(a,"hidden",{show:!1})},show:a=>{Tt(a,"show",{show:!0})},update:(a,l)=>{Tt(a,"update",l)}}}const hi=()=>{const e=Tn.value,{scrollTo:t}=e||{};if(!t)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return t},Un=()=>Ye(H.localeLanguage,"localStorage",{defaultValue:Fa});export{$n as $,Wr as A,Hr as B,Jr as C,$a as D,Zr as E,oi as F,gs as G,Qr as H,fr as I,Xr as J,us as K,Tn as L,Kr as M,ti as N,Ss as O,si as P,ni as Q,ei as R,Is as S,li as T,dr as U,js as V,ii as W,Gr as X,ds as Y,Mn as Z,L as _,ui as a,fi as a0,gr as a1,pi as a2,gi as a3,di as b,hi as c,qr as d,$ as e,H as f,$r as g,U as h,ir as i,Ps as j,rt as k,Xs as l,st as m,Ur as n,Yr as o,ci as p,Pe as q,Fe as r,ri as s,k as t,mi as u,Cn as v,mt as w,Dt as x,Vr as y,ai as z};
|