mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-04-05 19:42:07 +08:00
13 lines
113 KiB
JavaScript
13 lines
113 KiB
JavaScript
const __vite__fileDeps=["js/en-US-DgeyfTfA.js","js/dayjs@1.11.10-BYZwCyGy.js","js/awesome-qr@2.1.5-rc.0-Ds7AaOTE.js","js/canvas@2.11.2-CVRTzJty.js","js/js-binary-schema-parser@2.0.3-D0akQrQ7.js","js/print-js@1.6.0-C3lAJnMa.js","js/vue-hooks-plus@1.9.0_vue@3.4.26-C_BRgauB.js","js/lodash@4.17.21-CM7ROh5r.js","js/js-cookie@3.0.5-Z_8Sd105.js","js/screenfull@5.2.0-DuGDi0R7.js","js/currency.js@2.0.4-9OAR_aOO.js","js/lodash-es@4.17.21-Dos9GOhk.js","js/@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js","js/@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js","js/utils-XwSDXJUe.js","js/interactjs@1.10.26-DmsZVOf4.js","js/pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js","js/dom-to-image@2.6.0-CaeIWam-.js","js/echarts@5.5.0-BEyY33Zi.js","js/zrender@5.5.0-JN1hODMT.js","js/tslib@2.3.0-BDyQ-Jie.js","js/@vue_runtime-core@3.4.26-Cq5aFJKF.js","js/@vue_reactivity@3.4.26-DTbxPGxS.js","js/@vue_shared@3.4.26-DWpY0PUk.js","js/zh-CN-CTcR9C4K.js","js/index-C1hpggaq.js","js/index-43Sr2ZDd.js","css/index-DeeQXRbp.css","js/index-BKzGWUw4.js","js/instance-BO6qbDn0.js","css/index-CTOeMyqn.css","js/BarcodeDemo-BOFX6_Nj.js","js/index-BTvSaQnq.js","js/index-BDOzQ_5E.js","js/index-CQhoKKyi.js","css/index-BqPIKfai.css","js/index-S2GYVmaw.js","js/index-D5R1QIN3.js","js/index-BEi7U-O8.js","js/index-CmqwwKlx.js","js/index-Dg1u4z6U.js","js/index-Vn3F3QIB.js","js/ray-dCjhX_JK.js","js/index-BiP5R2RE.js","css/index-cMo-v_SD.css","js/index-De_lTSfk.js","js/index-E385tkq8.js","css/index-Dig957GB.css","js/index-Df2eqkZ4.js","js/index-D9LS2qde.js","css/index-CIq6_pk2.css","js/index-BPAe6vWH.js","js/index-BaFgnu5D.js","js/index-DVdoZbux.js","css/index-G2qqDeP0.css","js/index-zXJ6zOVi.js","css/index-BhnoEzFG.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
|
var Go=Object.defineProperty;var Ho=(e,t,o)=>t in e?Go(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var He=(e,t,o)=>(Ho(e,typeof t!="symbol"?t+"":t,o),o);import{s as Te,c as ve,t as $e,i as ut,o as Be,p as be}from"./lodash-es@4.17.21-Dos9GOhk.js";import{o as Yo,u as ae,a as Xo,b as Zo,c as Oe,d as Jo,e as dt}from"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import{d as K}from"./dayjs@1.11.10-BYZwCyGy.js";import{p as Qo}from"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{g as le,i as B,s as Fe,a as Ee,c as en,b as M,r as re,d as k,e as tn,u as Ve,q as Se,f as Ye,h as pt,j as on,p as nn,k as We,l as Xe,m as rn,n as an,o as ln,t as sn,v as cn,w as un,x as q}from"./utils-XwSDXJUe.js";import{l as dn}from"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import{u as mt}from"./vue-hooks-plus@1.9.0_vue@3.4.26-C_BRgauB.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import{i as Ze}from"./interactjs@1.10.26-DmsZVOf4.js";import{s as pn}from"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import{d as oe}from"./dom-to-image@2.6.0-CaeIWam-.js";import{r as mn,u as ne,i as fn,a as hn,b as gn,c as yn,d as vn,e as bn,f as Vn,g as Sn,h as _n,j as wn,k as Cn,l as Nn,m as Tn,n as On,o as kn,p as xn,q as Rn,s as An}from"./echarts@5.5.0-BEyY33Zi.js";import{f as Pn,g as Ln}from"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import{c as ft,o as ht,a as gt}from"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";const Zl=(e,t)=>{if(typeof t!="string"||!t.trim())throw new TypeError("Expected prefix to be a non-empty string");const o={};return Object.keys(e).forEach(n=>{const a=e[n].default;let r=n.replace(`./${t}/`,"").replace(/^\.\//,"");const s=r.lastIndexOf(".");r=r.substring(0,s);const l=r.split("/"),i=l.shift(),u=l.join(".");i&&(u?(Te(o,i,o[i]||{}),Te(o[i],u,a)):Te(o,i,a||{}))}),o},Mn="modulepreload",zn=function(e){return"/ray-template/"+e},Je={},T=function(t,o,n){let a=Promise.resolve();if(o&&o.length>0){const r=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));a=Promise.all(o.map(i=>{if(i=zn(i),i in Je)return;Je[i]=!0;const u=i.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!n)for(let h=r.length-1;h>=0;h--){const y=r[h];if(y.href===i&&(!u||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":Mn,u||(f.as="script",f.crossOrigin=""),f.href=i,l&&f.setAttribute("nonce",l),document.head.appendChild(f),u)return new Promise((h,y)=>{f.addEventListener("load",h),f.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${i}`)))})}))}return a.then(()=>t()).catch(r=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=r,window.dispatchEvent(s),!s.defaultPrevented)throw r})},jn=(e,t,o)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((a,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==o?". Note that variables only represent file names one level deep.":""))))})},En=async e=>{var o;const t={};for(const n of e){const a=await jn(Object.assign({"../lang/en-US.ts":()=>T(()=>import("./en-US-DgeyfTfA.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])),"../lang/zh-CN.ts":()=>T(()=>import("./zh-CN-CTcR9C4K.js"),__vite__mapDeps([24,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]))}),`../lang/${n.key}.ts`,3),r=n.key;r&&(t[r]=((o=a==null?void 0:a.default)==null?void 0:o.message)??{})}return t},Jl=e=>{switch(e){case"zh-CN":return{locale:naive.zhCN,dateLocal:naive.dateZhCN};case"en-US":return{locale:null,dateLocal:null};default:return{locale:naive.zhCN,dateLocal:naive.dateZhCN}}},Ql={max:5,closable:!1},es="loading",yt={setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:5},Y={menuCollapsedWidth:64,menuCollapsedMode:"width",menuCollapsedIconSize:22,menuCollapsedIndent:24,menuAccordion:!1},ts="",j={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},In=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],$={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"},vt=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Dn="zh-CN",$n="zh-CN",Bn={"zh-CN":"zh-cn","en-US":"en"},Fn="zh-cn",os={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)$/},ns={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},Q=Vue.ref(null),bt=Vue.ref(null),Wn={setupRouterLoadingBar:!0,setupRouterGuard:!0},Kn=["RLogin","ErrorPage","RayTemplateDoc"],me=["admin"],rs=(e,t)=>{const o=Vue.ref(0),n=Vue.ref(0),a=Vue.ref(!1),{clickOutside:r}=t??{},s=m=>{a.value=m},l=m=>{m.preventDefault(),s(!1),Vue.nextTick().then(()=>{const{clientX:f,clientY:h}=m;o.value=f,n.value=h,s(!0)})};r&&Yo(e,m=>{r(m)});const i=ae(e,"contextmenu",l,t),u=ae(e,"click",()=>{s(!1)});return{stop:()=>{i(),u()},x:Vue.readonly(o),y:Vue.readonly(n),show:Vue.readonly(a),updateShow:s}},_e=Vue.reactive({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function G(e,t,o){Object.hasOwn(_e,e)&&(_e[e]=t,o==null||o())}function Ce(e){return Vue.readonly(Vue.toRef(_e,e))}function Un(){return{...Vue.toRefs(Vue.readonly(_e))}}let U;const qn=async()=>{const e=Fo(),t=await En(vt);return VueI18n.createI18n({legacy:!1,locale:e,messages:t,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:$n})},as=async e=>{const t=await qn();e.use(t),U=t},Qe=(e,t)=>!e||t[0]===e?t:`${e}.${t}`,se=e=>{if(!U)return{t:r=>Qe(e,r),locale:r=>{}};const{t,...o}=U.global;return{...o,t:(r,...s)=>r?!r.includes(".")&&!e?r:t(Qe(e,r),...s):"",locale:r=>{U.mode==="legacy"?U.global.locale=r:Vue.isRef(U.global.locale)?U.global.locale.value=r:U.global.locale=r}}},P=e=>e,Gn={path:"/dashboard",component:()=>T(()=>import("./index-C1hpggaq.js"),__vite__mapDeps([25,1,2,3,4,5,10,6,7,8,9,26,11,12,13,14,15,16,17,18,19,20,21,22,23,27])),meta:{i18nKey:P("menu.Dashboard"),icon:"dashboard",order:0}},Hn=Object.freeze(Object.defineProperty({__proto__:null,default:Gn},Symbol.toStringTag,{value:"Module"})),Yn={path:"/axios",name:"RAxios",component:()=>T(()=>import("./index-BKzGWUw4.js"),__vite__mapDeps([28,6,7,2,3,4,8,9,29,1,5,14,11,10,12,13,15,16,17,18,19,20,21,22,23,30])),meta:{i18nKey:P("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},Xn=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"})),Zn={path:"barcode",component:()=>T(()=>import("./BarcodeDemo-BOFX6_Nj.js"),__vite__mapDeps([31,1,2,3,4,5,10,6,7,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23])),meta:{i18nKey:P("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},Jn=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"})),Qn={path:"/cache-demo",component:()=>T(()=>import("./index-BTvSaQnq.js"),__vite__mapDeps([32,1,2,3,4,5,6,7,8,9,14,11,10,12,13,15,16,17,18,19,20,21,22,23])),meta:{i18nKey:P("menu.CacheDemo"),icon:"other",order:3}},er=Object.freeze(Object.defineProperty({__proto__:null,default:Qn},Symbol.toStringTag,{value:"Module"})),tr={path:"/context-menu",component:()=>T(()=>import("./index-BDOzQ_5E.js"),__vite__mapDeps([33,10,1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23])),meta:{i18nKey:P("menu.ContextMenu"),icon:"other",order:2}},or=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"})),nr={path:"/directive",component:()=>T(()=>import("./index-5cxxl6_s.js"),[]),meta:{i18nKey:P("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},rr=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"})),ar={path:"/echart",component:()=>T(()=>import("./index-CQhoKKyi.js"),__vite__mapDeps([34,1,2,3,4,5,10,6,7,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23,35])),meta:{i18nKey:P("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},lr=Object.freeze(Object.defineProperty({__proto__:null,default:ar},Symbol.toStringTag,{value:"Module"})),sr={path:"/form",component:()=>T(()=>import("./index-S2GYVmaw.js"),__vite__mapDeps([36,1,2,3,4,5,10,6,7,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23])),meta:{i18nKey:P("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},ir=Object.freeze(Object.defineProperty({__proto__:null,default:sr},Symbol.toStringTag,{value:"Module"})),cr={path:"/iframe",component:()=>T(()=>import("./index-D5R1QIN3.js"),__vite__mapDeps([37,1,2,3,4,5,10,6,7,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},ur=Object.freeze(Object.defineProperty({__proto__:null,default:cr},Symbol.toStringTag,{value:"Module"})),dr={path:"/mock-demo",component:()=>T(()=>import("./index-BEi7U-O8.js"),__vite__mapDeps([38,1,2,3,4,5,10,6,7,8,9,29,14,11,12,13,15,16,17,18,19,20,21,22,23])),meta:{i18nKey:P("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},pr=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"})),mr={path:"/modal-demo",component:()=>T(()=>import("./index-CmqwwKlx.js"),__vite__mapDeps([39,1,2,3,4,5,10,6,7,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23])),meta:{i18nKey:P("menu.Modal"),icon:"other",order:3}},fr=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),ye=()=>T(()=>Promise.resolve().then(()=>Ua),void 0),hr={path:"/multi",component:ye,meta:{i18nKey:P("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>T(()=>import("./index-BtZPyenx.js"),[]),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:ye,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>T(()=>import("./index-B6a_PCdD.js"),[]),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:ye,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>T(()=>import("./index-Cg1Whvge.js"),[]),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},gr=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"})),yr={path:"/precision",component:()=>T(()=>import("./index-Dg1u4z6U.js"),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,14,11,10,12,13,15,16,17,18,19,20,21,22,23])),meta:{i18nKey:P("menu.CalculatePrecision"),icon:"other",order:2}},vr=Object.freeze(Object.defineProperty({__proto__:null,default:yr},Symbol.toStringTag,{value:"Module"})),br={path:"/qrcode",component:()=>T(()=>import("./index-Vn3F3QIB.js"),__vite__mapDeps([41,1,2,3,4,5,10,6,7,8,9,42,11,12,13,14,15,16,17,18,19,20,21,22,23])),meta:{i18nKey:P("menu.QRCode"),icon:"other",order:2}},Vr=Object.freeze(Object.defineProperty({__proto__:null,default:br},Symbol.toStringTag,{value:"Module"})),Sr={path:"rely-about",component:()=>T(()=>import("./index-BiP5R2RE.js"),__vite__mapDeps([43,44])),meta:{i18nKey:P("menu.RelyAbout"),icon:"rely",order:999}},_r=Object.freeze(Object.defineProperty({__proto__:null,default:Sr},Symbol.toStringTag,{value:"Module"})),wr={path:"/router-demo",component:ye,meta:{i18nKey:P("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>T(()=>import("./index-De_lTSfk.js"),__vite__mapDeps([45,1,2,3,4,5,10,11,12,13,14,6,7,8,9,15,16,17,18,19,20,21,22,23])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>T(()=>import("./index-BRGdSJVO.js"),[]),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},Cr=Object.freeze(Object.defineProperty({__proto__:null,default:wr},Symbol.toStringTag,{value:"Module"})),Nr={path:"/scroll-reveal",component:()=>T(()=>import("./index-E385tkq8.js"),__vite__mapDeps([46,47])),meta:{i18nKey:P("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},Tr=Object.freeze(Object.defineProperty({__proto__:null,default:Nr},Symbol.toStringTag,{value:"Module"})),Or={path:"/segment",component:()=>T(()=>import("./index-Df2eqkZ4.js"),__vite__mapDeps([48,1,2,3,4,5,10,6,7,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23])),meta:{i18nKey:P("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},kr=Object.freeze(Object.defineProperty({__proto__:null,default:Or},Symbol.toStringTag,{value:"Module"})),xr={path:"/svg-icons",component:()=>T(()=>import("./index-D9LS2qde.js"),__vite__mapDeps([49,1,2,3,4,5,10,6,7,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23,50])),meta:{i18nKey:P("menu.SvgIcon"),icon:"other",order:3}},Rr=Object.freeze(Object.defineProperty({__proto__:null,default:xr},Symbol.toStringTag,{value:"Module"})),Ar={path:"/table",component:()=>T(()=>import("./index-BPAe6vWH.js"),__vite__mapDeps([51,1,2,3,4,5,14,11,10,6,7,8,9,12,13,15,16,17,18,19,20,21,22,23])),meta:{i18nKey:P("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Pr=Object.freeze(Object.defineProperty({__proto__:null,default:Ar},Symbol.toStringTag,{value:"Module"})),Lr={path:"/template-hooks",component:()=>T(()=>import("./index-BaFgnu5D.js"),__vite__mapDeps([52,1,2,3,4,5,10,6,7,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23])),meta:{i18nKey:P("menu.TemplateHooks"),icon:"other",order:1}},Mr=Object.freeze(Object.defineProperty({__proto__:null,default:Lr},Symbol.toStringTag,{value:"Module"})),zr={path:"/:catchAll(.*)",component:()=>T(()=>import("./index-DVdoZbux.js"),__vite__mapDeps([53,1,2,3,4,5,6,7,8,9,14,11,10,12,13,15,16,17,18,19,20,21,22,23,54])),meta:{i18nKey:P("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}},jr=Object.freeze(Object.defineProperty({__proto__:null,default:zr},Symbol.toStringTag,{value:"Module"})),Er=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Hn,"/src/router/modules/demo/axios.ts":Xn,"/src/router/modules/demo/barcode.ts":Jn,"/src/router/modules/demo/cache-demo.ts":er,"/src/router/modules/demo/context-menu.ts":or,"/src/router/modules/demo/directive.ts":rr,"/src/router/modules/demo/echart.ts":lr,"/src/router/modules/demo/form.ts":ir,"/src/router/modules/demo/iframe.ts":ur,"/src/router/modules/demo/mock.ts":pr,"/src/router/modules/demo/modal.ts":fr,"/src/router/modules/demo/multi-menu.ts":gr,"/src/router/modules/demo/precision.ts":vr,"/src/router/modules/demo/qrcode.ts":Vr,"/src/router/modules/demo/rely.ts":_r,"/src/router/modules/demo/router-demo.ts":Cr,"/src/router/modules/demo/scroll-reveal.ts":Tr,"/src/router/modules/demo/segment.ts":kr,"/src/router/modules/demo/svg-icons.ts":Rr,"/src/router/modules/demo/table.ts":Pr,"/src/router/modules/demo/template-hooks.ts":Mr,"/src/router/modules/error-404.ts":jr});return Object.keys(e).reduce((o,n)=>{const a=e[n].default;if(a)o.push(a);else throw new Error(`[combineRawRouteModules]: ${n} module must export default.`);return o},[])},Ir=e=>e[0]==="/",Vt=(e,t=[],o="")=>{var n;if(!Array.isArray(e))return[];for(const a of e){const r=o+(Ir(a.path)?a.path:"/"+a.path);if((n=a.children)!=null&&n.length){Vt(a.children,t,r);continue}else t.push({...a,path:r})}return t},Dr=e=>Array.isArray(e)?Vt(ve(e)):[],$r=e=>e.sort((t,o)=>{var r,s;const n=((r=t.meta)==null?void 0:r.order)??1,a=((s=o.meta)==null?void 0:s.order)??0;if(typeof n!="number"||typeof a!="number")throw new TypeError("orderRoutes error: order must be a number!");return n===a?t.name?o.name?t.name.localeCompare(o.name):-1:1:n-a}),Br=e=>{const{beforeEach:t}=e,{getRootPath:o}=te(),n=(a,r)=>a.path==="/"||r.path==="/login";t((a,r,s)=>{const l=le(j.token),i=le(j.appMenuKey,"sessionStorage",{defaultValue:o.value}),{meta:u,name:c}=a;l!==null?n(a,r)?ke(!0):!B(c,"Symbol")&&c&&Kn.includes(c)?s():Do(u)?n(a,r)?i?s(i):ke(!0):s():ke(!0):n(a,r)?s():s("/")})},ke=(e=!0)=>{const{router:t}=Ke(),{push:o,replace:n}=t,{getRootPath:a}=te();Fe(j.appMenuKey,a.value),e?n(a.value):o(a.value)},Fr=e=>{var o;const{meta:t}=e;t!=null&&t.ignoreAutoResetScroll||(o=Q.value)==null||o.scrollTo({top:0,left:0,behavior:"smooth"})},Wr=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()})},St=e=>{const{meta:t={}}=e,{hidden:o,sameLevel:n,env:a}=t,{MODE:r}=Ee();return!(n||o||a&&typeof a=="string"&&a!==r||a&&Array.isArray(a)&&!a.includes(r))};var Kr={pkg:{dependencies:{"@vueuse/core":"^10.9.0","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.2",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.26","vue-demi":"0.14.6","vue-hooks-plus":"1.9.0","vue-i18n":"^9.13.1","vue-router":"^4.3.0"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.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.15",depcheck:"^1.4.5",eslint:"^8.56.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.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.2.11","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-imp":"^2.4.0","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.11"},name:"ray-template",version:"4.8.3"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const _t=Pinia.defineStore("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=Kr,{locale:t}=se(),{locale:o}=Tl(),n=Vue.reactive({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},appTheme:!1,menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:Fo(),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"}}),a=l=>{t(l),o(l),n.localeLanguage=l,Fe(j.localeLanguage,l,"localStorage")},r=(l,i=.3)=>{const u=en(l,i),c={primaryColor:l,primaryColorHover:l,primaryColorPressed:l};n.primaryColorOverride.common=c;const m=document.body;m.style.setProperty("--ray-theme-primary-color",l),m.style.setProperty("--ray-theme-primary-fade-color",u)},s=(l,i,u)=>{Object.hasOwn(n,l)&&(n[l]=i),u==null||u()};return Pn(()=>n.appTheme,l=>{l?Object.assign({},n.primaryColorOverride,$.appNaiveUIThemeOverrides.dark,$.appNaiveUIThemeOverridesCommon.dark):Object.assign({},n.primaryColorOverride,$.appNaiveUIThemeOverrides.light,$.appNaiveUIThemeOverridesCommon.light)},{immediate:!0}),{...Vue.toRefs(n),updateLocale:a,changePrimaryColor:r,updateSettingState:s}},{persist:{key:j.appPiniaSettingStore}}),wt=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],Ct="transparent",Nt={},Tt={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},Ot={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},kt={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},xt={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},Rt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},At={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Pt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Lt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Mt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},zt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},jt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Et={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},It={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"0",symbol:"circle",smooth:!0,color:["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],label:{color:"#293441"}},Dt={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},$t={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},Bt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Ft={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Wt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Kt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Ut={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},qt={textStyle:{color:"#999999"}},Gt={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},Ht={lineStyle:{color:"#87f7cf",width:1},itemStyle:{color:"#87f7cf",borderWidth:1},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},checkpointStyle:{color:"#fc97af",borderColor:"#fc97af"},label:{color:"#87f7cf"},emphasis:{itemStyle:{color:"#f7f494"},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},label:{color:"#87f7cf"}}},Yt={color:["#fc97af","#87f7cf"]},Xt={backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(114,204,255,1)",fillerColor:"rgba(114,204,255,0.2)",handleColor:"#72ccff",handleSize:"100%",textStyle:{color:"#333333"}},Zt={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},Ur={color:wt,backgroundColor:Ct,textStyle:Nt,title:Tt,line:Ot,radar:kt,bar:xt,pie:Rt,scatter:At,boxplot:Pt,parallel:Lt,sankey:Mt,funnel:zt,gauge:jt,candlestick:Et,graph:It,map:Dt,geo:$t,categoryAxis:Bt,valueAxis:Ft,logAxis:Wt,timeAxis:Kt,toolbox:Ut,legend:qt,tooltip:Gt,timeline:Ht,visualMap:Yt,dataZoom:Xt,markPoint:Zt},qr=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:Ct,bar:xt,boxplot:Pt,candlestick:Et,categoryAxis:Bt,color:wt,dataZoom:Xt,default:Ur,funnel:zt,gauge:jt,geo:$t,graph:It,legend:qt,line:Ot,logAxis:Wt,map:Dt,markPoint:Zt,parallel:Lt,pie:Rt,radar:kt,sankey:Mt,scatter:At,textStyle:Nt,timeAxis:Kt,timeline:Ht,title:Tt,toolbox:Ut,tooltip:Gt,valueAxis:Ft,visualMap:Yt},Symbol.toStringTag,{value:"Module"})),Jt=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],Qt="transparent",eo={},to={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},oo={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},no={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},ro={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},ao={itemStyle:{borderWidth:0,borderColor:"#ccc"}},lo={itemStyle:{borderWidth:0,borderColor:"#ccc"}},so={itemStyle:{borderWidth:0,borderColor:"#ccc"}},io={itemStyle:{borderWidth:0,borderColor:"#ccc"}},co={itemStyle:{borderWidth:0,borderColor:"#ccc"}},uo={itemStyle:{borderWidth:0,borderColor:"#ccc"}},po={itemStyle:{borderWidth:0,borderColor:"#ccc"}},mo={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},fo={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:3,symbol:"emptyCircle",smooth:!0,color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],label:{color:"#eee"}},ho={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},go={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},yo={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},vo={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},bo={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Vo={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},So={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},_o={textStyle:{color:"#333333"}},wo={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},Co={lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#008acd"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},No={color:["#5ab1ef","#e0ffff"]},To={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},Oo={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},Gr={color:Jt,backgroundColor:Qt,textStyle:eo,title:to,line:oo,radar:no,bar:ro,pie:ao,scatter:lo,boxplot:so,parallel:io,sankey:co,funnel:uo,gauge:po,candlestick:mo,graph:fo,map:ho,geo:go,categoryAxis:yo,valueAxis:vo,logAxis:bo,timeAxis:Vo,toolbox:So,legend:_o,tooltip:wo,timeline:Co,visualMap:No,dataZoom:To,markPoint:Oo},Hr=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:Qt,bar:ro,boxplot:so,candlestick:mo,categoryAxis:yo,color:Jt,dataZoom:To,default:Gr,funnel:uo,gauge:po,geo:go,graph:fo,legend:_o,line:oo,logAxis:bo,map:ho,markPoint:Oo,parallel:io,pie:ao,radar:no,sankey:co,scatter:lo,textStyle:eo,timeAxis:Vo,timeline:Co,title:to,toolbox:So,tooltip:wo,valueAxis:vo,visualMap:No},Symbol.toStringTag,{value:"Module"})),Yr=()=>{const e=Object.assign({"/src/app-config/echart-themes/macarons/macarons-dark.json":qr,"/src/app-config/echart-themes/macarons/macarons.json":Hr}),t=/\/([^/]+)\.json$/;return Object.keys(e).reduce((n,a)=>{var s;const r=(s=a.match(t))==null?void 0:s[1];if(r)return n.push({name:r,theme:e[a].default}),n;throw new Error(`[RChart Theme Error]: name ${a} is invalid!`)},[])},Xr=e=>Object.assign({},{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.9)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"},e),Zr={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:()=>Xr()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>({notMerge:!1,lazyUpdate:!0,silent:!1,replaceMerge:[]})},onRegister:{type:[Function,Array],default:null}},Jr={notMerge:!1,lazyUpdate:!0,silent:!1,replaceMerge:[]},Qr=Yr(),et="__R_CHART_DOWN_LOAD_CHART__";Qr.forEach(e=>{mn(e.name,e.theme)});const ls=Vue.defineComponent({name:"RChart",props:Zr,setup(e,{expose:t}){const{getAppTheme:o}=D(),n=Vue.ref(),a=Vue.ref(),r=Vue.ref();let s,l;const{echartTheme:i}=$;let u,c;const m=Vue.computed(()=>[{label:"下载图片",key:et,disabled:!(r.value&&r.value.getDom())}]),f=Vue.computed(()=>({"--ray-chart-width":M(e.width),"--ray-chart-height":M(e.height)})),h=Vue.ref(!1);let y;const v=async()=>{var O;ne([hn,gn,yn,vn,bn,Vn,Sn,_n]),ne([wn,Cn,Nn,Tn,On,kn]),ne([xn,Rn]),ne([An]);try{ne((O=e.use)==null?void 0:O.filter(Boolean))}catch(L){console.error("[RChart register error]: ",L)}},b=()=>{if(c!=null&&c.getDom()&&S(),e.theme==="default"){e.autoChangeTheme?p("dark"):p("");return}if(e.theme)p(e.theme);else{const O=e.autoChangeTheme&&o.value?`${i}-dark`:i;p(O)}},d=O=>{let L=Vue.unref(O);const A=I=>Object.assign({},L,I);return e.showAria&&(L=A({aria:{enabled:!0,decal:{show:!0}}})),L},p=(O=i)=>{const L=n.value,A=d(e.options),{height:I,width:W}=L.getBoundingClientRect(),{onSuccess:ue,onError:de}=e;try{c=fn(L,O,{width:W===0?200:void 0,height:I===0?200:void 0}),r.value=c,ue&&k(ue,c),e.nextTick?(c.setOption({}),Vue.nextTick(()=>{A&&(c==null||c.setOption(A))})):A&&(c==null||c.setOption(A))}catch(Z){throw de&&k(de),new Error(`[RChart render error]: ${Z}`)}finally{const{onFinally:Z}=e;Z&&k(Z)}},V=()=>!(c&&c.getDom()),S=()=>{V()||(c.clear(),c.dispose(),r.value=void 0,c=null)},x=()=>{c&&c.resize()},g=(O,L)=>{if(O===et&&!V()){const{filename:I,...W}=e.downloadOptions;tn(c.getDataURL(W),I??`${new Date().getTime()}`)}const{onDropdownSelect:A}=e;A&&k(A,O,L)},_=()=>{if(e.autoResize&&(s||(s=$e(x,500)),l||(l=Zo(e.autoResizeObserverTarget||a,s))),c!=null&&c.getDom()||!h.value&&e.intersectionObserver)return;b(),y==null||y.stop();const{onRegister:O}=e;O&&c&&k(O,c,_,R)};e.intersectionObserver&&(y=Xo(e.intersectionObserverTarget||a,([O])=>{h.value=O.isIntersecting},e.intersectionOptions));const R=()=>{S(),s==null||s.cancel(),l==null||l.stop(),y==null||y.stop(),y=null,s=null,l=null};return Vue.watch(()=>o.value,()=>{e.autoChangeTheme&&(S(),b())}),Vue.watch(()=>e.showAria,()=>{S(),b()}),Vue.watchEffect(()=>{e.watchOptions?u=Ln(()=>e.options,O=>{const L=d(O),A=Object.assign({},e.setChartOptions,Jr);c==null||c.setOption(L,A)},{deep:!0,throttle:e.watchOptionsThrottleWait}):u==null||u(),e.loading?c==null||c.showLoading(e.loadingOptions):c==null||c.hideLoading(),h.value&&_()}),t(),Vue.onBeforeMount(async()=>{await v()}),Vue.onMounted(()=>{_()}),Vue.onBeforeUnmount(()=>{R(),u==null||u()}),{rayChartRef:n,cssVarsRef:f,rayChartWrapperRef:a,moreDropDownOptions:m,dropdownSelect:g}},render(){const{title:e,contentStyle:t,preset:o,moreDropDownOptions:n,dropdownSelect:a,bordered:r,dropdownOptions:s}=this,{cardExtra:l}=this.$slots;return o==="card"?Vue.createVNode(naive.NCard,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:t,bordered:r},{default:re(Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:re(e,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":re(l,{defaultElement:Vue.createVNode(Ro,{iconSize:18,cursor:"pointer",options:s??n,trigger:"click",onSelect:a.bind(this),placement:"bottom-end"},null)})}):Vue.createVNode("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),ss=()=>{let e,t,o;const n=(i,u,c)=>{i&&(e=i,t=c,o=u)},a=()=>{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:o,echartInst:e}};return[n,{getChartInstance:a,isDispose:()=>!(e&&a().echartInst.getDom()),dispose:()=>a().dispose.call(null),render:()=>a().render.call(null)}]},ea={open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!1},onUpdateValue:{type:[Function,Array],default:null},"onUpdate:value":{type:[Function,Array],default:null},...naive.gridProps},is=Vue.defineComponent({name:"RCollapseGrid",props:ea,setup(e){const t=Vue.ref(!e.open),o=()=>{t.value=!t.value;const{onUpdateValue:a,"onUpdate:value":r}=e;a&&k(a,t.value),r&&k(r,t.value)};return{modelCollapsed:t,collapseClick:o,CollapseIcon:()=>Vue.createVNode("div",{class:"collapse-icon",onClick:o.bind(this)},[Vue.createVNode("span",null,[t.value?e.collapseToggleText[0]:e.collapseToggleText[1]]),Vue.createVNode(C,{customClassName:`collapse-icon--arrow ${t.value?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)])}},render(){return Vue.createVNode(naive.NCard,{bordered:this.bordered},{default:()=>Vue.createVNode(naive.NGrid,Vue.mergeProps({class:"ray-collapse-grid"},this.$props,{collapsed:this.modelCollapsed,xGap:this.xGap||12,yGap:this.yGap||18,collapsedRows:this.collapsedRows}),{default:()=>{var e,t;return[(t=(e=this.$slots).default)==null?void 0:t.call(e),Vue.createVNode(naive.NGridItem,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[Vue.createVNode(naive.NFlex,{justify:"end",align:"center"},{default:()=>{var o,n;return[(n=(o=this.$slots).action)==null?void 0:n.call(o),this.CollapseIcon()]}})]})]}})})}}),ta={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}},C=Vue.defineComponent({name:"RIcon",props:ta,setup(e){const t=Vue.computed(()=>`#${e.prefix}-${e.name}`),o=Vue.computed(()=>({"--ray-icon-width":e.width?M(e.width):M(e.size),"--ray-icon-height":e.height?M(e.height):M(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor}));return{symbolId:t,cssVars:o,iconClick:a=>{const{onClick:r}=e;r&&k(r,a)}}},render(){return Vue.createVNode("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[Vue.createVNode("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[Vue.createVNode("use",Vue.mergeProps({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),oa={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,default:!0},wrapperClass:{type:String,default:null}},cs=Vue.defineComponent({name:"RIframe",props:oa,setup(e,{expose:t}){const o=Vue.computed(()=>({"--ray-iframe-frameborder":M(e.frameborder),"--ray-iframe-width":M(e.width),"--ray-iframe-height":M(e.height)})),n=Vue.ref(),a=Vue.ref(!0),r=l=>{a.value=!1;const{onSuccess:i}=e;i&&k(i,n.value,l)},s=l=>{a.value=!1;const{onError:i}=e;i&&k(i,l)};return ae(n,"load",r),ae(n,"error",s),t({iframeInst:n}),{cssVars:o,iframeRef:n,spinShow:a}},render(){return Vue.createVNode("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[Vue.createVNode(naive.NSpin,Vue.mergeProps(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>Vue.createVNode("iframe",Vue.mergeProps({class:["ray-iframe__container",this.wrapperClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title},{loading:this.lazy?"lazy":null}),null)})])}}),na={...naive.modalProps,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}},ra=(e,t,o)=>{const{scheduler:n}=o??{};return new Promise(a=>{setTimeout(()=>{const r=t==="card"?".n-card-header__main":".n-dialog__title";if(e){const s=Ze(e).draggable({inertia:!0,autoScroll:!0,allowFrom:r,modifiers:[Ze.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:l=>{n==null||n(l)}}}).resizable(!1);a(s)}},30)})},ko=(e,t)=>{const o=typeof e=="string"?document.querySelector(e):e;return new Promise((n,a)=>{if(o){o.setAttribute("can-drag","true");const{preset:r,dargCallback:s}=t;let{x:l,y:i}=t;ra(o,r,{scheduler:u=>{const c=u.target;l+=u.dx,i+=u.dy,c.style.transform=`translate(${l}px, ${i}px)`,s==null||s(l,i,u)}}).then(u=>{n(u)})}else a()})},aa="r-modal__preset-card--fullscreen",xo="r-modal",ee={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},us=Vue.defineComponent({name:"RModal",props:na,setup(e){const t=Vue.computed(()=>({[ee.width]:M(e.width??600),[ee.cardWidth]:M(e.cardWidth??600),[ee.dialogWidth]:M(e.dialogWidth??446)})),o=Ve();let n;const a={x:0,y:0},r=Vue.computed(()=>e.preset==="card"&&e.fullscreen);return Vue.watch(()=>e.show,s=>{s&&e.dad&&(e.preset==="card"||e.preset==="dialog")?Vue.nextTick(()=>{const l=document.getElementById(o);l&&ko(l,{preset:e.preset,x:a.x,y:a.y,dargCallback:(i,u)=>{a.x=i,a.y=u}}).then(i=>{n=i}),e.memo&&l&&(l.style.transform=`translate(${a.x}px, ${a.y}px)`)}):(n==null||n.unset(),n=null)},{immediate:!0}),{cssVars:t,isFullscreenCardType:r,uuidEl:o}},render(){const{$props:e,$slots:t,$attrs:o}=this,{preset:n,...a}=e,{cssVars:r,uuidEl:s,isFullscreenCardType:l}=this;return Vue.createVNode(naive.NModal,Vue.mergeProps({class:[xo,l?aa:""],style:[r,l?"height: 100vh":""],preset:n},{id:s},a,o),{...t})}}),ds=()=>{const{create:e,destroyAll:t}=naive.useModal();return{create:n=>{const{preset:a,dad:r,fullscreen:s,width:l,cardWidth:i,dialogWidth:u}=n,c=e(n),{key:m}=c,f={[ee.width]:M(l??600),[ee.cardWidth]:M(i??600),[ee.dialogWidth]:M(u??446)};return Vue.nextTick(()=>{const[h]=Se(`[internalkey="${m}"]`)||[];h&&(r&&ko(h,{preset:a,x:0,y:0}),s&&a==="card"&&Ye(h,{width:"100%",height:"100vh"}),Ye(h,f),pt(h,xo))}),c},destroyAll:t}},la={...naive.dropdownProps,iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function sa(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Ro=Vue.defineComponent({name:"RMoreDropdown",props:la,render(){let e;const{iconSize:t,cursor:o}=this,{default:n}=this.$slots;return Vue.createVNode(naive.NDropdown,Vue.mergeProps(this.$props,this.$attrs,{placement:"bottom-start"}),sa(e=re(n,{defaultElement:Vue.createVNode(C,{name:"more",size:t,cursor:o},null)}))?e:{default:()=>[e]})}}),ia={loadingDescription:{type:String},watchText:{type:Boolean,default:!0},status:{type:String},errorDescription:{type:[String,Object],default:"二维码已过期"},errorActionDescription:{type:String,default:"重新加载"},text:{type:String,required:!0},size:{type:Number,default:160},margin:{type:Number,default:12},correctLevel:{type:Number,default:1,validator:e=>[0,1,2,3].includes(e)},maskPattern:{type:Number},version:{type:Number},components:{type:Object,default:()=>({data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}})},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#ffffff"},autoColor:{type:Boolean,default:!0},backgroundImage:{type:String},backgroundDimming:{type:String,default:"rgba(0, 0, 0, 0)"},gifBackgroundURL:{type:String},gifBackground:{type:ArrayBuffer},whiteMargin:{type:Boolean,default:!0},logoImage:{type:String},logoScale:{type:Number,default:.4},logoMargin:{type:Number,default:6},logoCornerRadius:{type:Number,default:8},dotScale:{type:Number,default:1},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onReload:{type:[Function,Array],default:null}},ca=e=>new Promise((t,o)=>{const n=new XMLHttpRequest;n.responseType="blob",n.onload=()=>{const a=new FileReader;a.onloadend=()=>{t(a.result)},a.onerror=r=>{o(r)},a.onabort=r=>{o(r)},a.readAsArrayBuffer(n.response)},n.open("GET",e),n.send()}),ps=Vue.defineComponent({name:"RQrcode",props:ia,setup(e,t){const{expose:o}=t,n=Vue.ref();let a,r;const s=async()=>{const{gifBackgroundURL:c}=e;if(c)try{a=await ca(c)}catch(m){console.error(m)}},l=()=>{const{gifBackground:c,...m}=e;new dn.AwesomeQR({...m,gifBackground:a??void 0}).draw().then(f=>{const{onSuccess:h}=e;h&&k(h,f),n.value=f}).catch(f=>{const{onError:h}=e;h&&k(h,f)})},i=()=>{if(t.slots.errorAction)return;const{onReload:c}=e;c&&k(c)},u=c=>n.value&&B(n.value,"String")?on(n.value,c||new Date().getTime()+".png"):Promise.reject();return Vue.watchEffect(()=>{e.watchText?r=Vue.watch(()=>e.text,()=>l()):r==null||r()}),o({downloadQRCode:u}),Vue.onMounted(async()=>{await s(),l()}),Vue.onBeforeUnmount(()=>{r==null||r()}),{qrcodeURL:n,errorActionClick:i}},render(){const{qrcodeURL:e,status:t,loadingDescription:o,errorDescription:n,$slots:a,errorActionDescription:r}=this,{errorActionClick:s}=this;return Vue.createVNode("div",{class:["ray-qrcode",`ray-qrcode--${t}`]},[Vue.createVNode(naive.NSpin,{show:t==="loading",description:o},{default:()=>[Vue.createVNode("img",{class:"r-qr-code__image",src:e},null)]}),t==="error"?Vue.createVNode("div",{class:"ray-qrcode__error"},[Vue.createVNode("div",{class:"ray-qrcode__error-content"},[B(n,"String")?n:()=>n]),Vue.createVNode("div",{class:"ray-qrcode__error-btn",onClick:s.bind(this)},[a.errorAction?a.errorAction():Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NButton,{text:!0,type:"primary",color:"#ffffff"},{default:()=>r,icon:()=>Vue.createVNode(C,{name:"reload",size:"16",color:"#ffffff"},null)})])])]):null])}}),ie={...naive.dataTableProps,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:!1},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}},F={tableIconSize:"18",tableKey:Symbol("r-table")},ua=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],da=Vue.defineComponent({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...ie},setup(e){return{size:Vue.ref(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:a=>{const{onChangeSize:r}=e;r&&k(r,a)}}},render(){return Vue.createVNode(naive.NPopselect,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(C,{name:"adjustment",size:F.tableIconSize,cursor:"pointer"},null)]})}}),pa=Vue.defineComponent({name:"TableFullscreen",setup(){const{wrapperRef:e}=Vue.inject(F.tableKey,{}),[t,{toggleFullscreen:o,isEnabled:n}]=mt(e);return{toggleFullscreen:o,isEnabled:n}},render(){const{toggleFullscreen:e,isEnabled:t,$t:o}=this;return Vue.createVNode(C,{name:"fullscreen",size:F.tableIconSize,cursor:"pointer",onClick:()=>{t||window.$message.warning(o("globalMessage.isEnabledFullscreen")),e()}},null)}}),ma=()=>Vue.createVNode(C,{name:"draggable",size:14,cursor:"all-scroll"},null),tt=({icon:e,title:t,onClick:o,customClassName:n})=>Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(C,{name:e,size:F.tableIconSize,cursor:"pointer",customClassName:n,onClick:o==null?void 0:o.bind(null)},null),default:()=>t}),Ie=(e,t)=>{if(!t)return[null,null];for(let o=0;o<t.length;++o){const n=t[o];if(n.key===e.key)return[t,o];const[a,r]=Ie(e,n.children);if(a&&r!==null)return[a,r]}return[null,null]},xe="r-table__c-tool-icon--active",fa=Vue.defineComponent({name:"TableC",props:{...ie,onUpdateColumn:{type:[Function,Array],default:null}},setup(e){let t;const o=Vue.computed({get:()=>ve(e.columns).filter(i=>i.type?(t=i,!1):!0).map((i,u)=>{const{key:c,title:m,children:f,fixed:h,isResizable:y,...v}=i,b=h==="left",d=h==="right",p={...v,title:m,key:c,fixed:h,isLeftFixedActivated:b,isRightFixedActivated:d,isResizable:y};return{...p,suffix:()=>Vue.createVNode(naive.NFlex,{style:"padding-left: 32px;"},{default:()=>[Vue.createVNode(tt,{icon:"row_head",title:"固定在列首",customClassName:b?xe:"",onClick:r.bind(this,"left",p,u)},null),Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(C,{name:"resize_h",size:F.tableIconSize,cursor:"pointer",customClassName:y?xe:"",onClick:a.bind(this,p,u)},null),default:()=>"修改列宽"}),Vue.createVNode(tt,{icon:"row_end",title:"固定在列尾",customClassName:d?xe:"",onClick:r.bind(this,"right",p,u)},null)]})}}),set:()=>{}}),n=l=>{const{onUpdateColumn:i}=e;i&&k(i,l)},a=(l,i)=>{l.isResizable=!l.isResizable,l.resizable=l.isResizable,o.value[i]=l,n(o.value)},r=(l,i,u)=>{const c=`${l}FixedActivated`,m=`${l==="left"?"right":"left"}FixedActivated`;i[m]=!1,i[c]=!i[c],i[c]?i.fixed=l:i.fixed=void 0,o.value[u]=i,n(o.value)};return{treeDataSource:o,treeDrop:({node:l,dragNode:i,dropPosition:u})=>{const[c,m]=Ie(i,o.value);if(c===null||m===null)return;c.splice(m,1);const[f,h]=Ie(l,o.value);f===null||h===null||(u==="before"?f.splice(h,0,i):f.splice(h+1,0,i),ut(t)||f.unshift(t),n(f))}}},render(){return Vue.createVNode(naive.NPopover,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>Vue.createVNode(C,{name:"setting",size:F.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>Vue.createVNode(naive.NTree,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:ma.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),ha=Vue.defineComponent({name:"TablePrint",props:ie,setup(e){const{wrapperRef:t}=Vue.inject(F.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:n={},domToImageOptions:a}={},title:r}=e;(n.documentTitle===""||n.documentTitle===void 0||n.documentTitle===null)&&(n.documentTitle=typeof r=="string"?r:""),nn(t,{printOptions:n,domToImageOptions:a})}}},render(){return Vue.createVNode(C,{name:"print",size:F.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),ga=Vue.defineComponent({name:"TablePropsSelect",props:{...ie,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const t=Vue.ref(!1),o=Vue.ref([]),n=r=>{const{onPopselectChange:s}=e;s&&k(s,r)};return(()=>{const{striped:r,bordered:s,onInitialed:l}=e;r&&o.value.push("striped"),s&&o.value.push("bordered"),l&&k(l,o.value)})(),{propsPopselectValue:o,popoverShow:t,updatePopselectValue:n}},render(){return Vue.createVNode(naive.NPopselect,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:ua,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(C,{name:"expanded",size:F.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function ya(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const ms=Vue.defineComponent({name:"RTable",inheritAttrs:!1,props:ie,setup(e,t){const{expose:o,emit:n}=t,a=Vue.ref(),r=Vue.ref(),s=Ve(16),l=Ve(16),i=Vue.reactive({x:0,y:0,showContextMenu:!1}),u=Vue.reactive({size:e.size}),c=Vue.ref({striped:!1,bordered:!1}),m=(p,V)=>{const{onContextMenuClick:S}=e;S&&k(S,p,V),i.showContextMenu=!1},f=(p,V)=>{var x;return{...(x=e.rowProps)==null?void 0:x.call(e,p,V),onContextmenu:e.disabledContextMenu?void 0:g=>{g.preventDefault(),i.showContextMenu=!1,Vue.nextTick().then(()=>{i.showContextMenu=!0,i.x=g.clientX,i.y=g.clientY})}}},h=p=>{u.size=p},y=p=>{const{onUpdateColumns:V,"onUpdate:columns":S}=e;V&&k(V,p),S&&k(S,p)},v=()=>{const{toolOptions:p}=e;return p==null?void 0:p.filter(()=>Boolean).map(V=>typeof V=="function"?V():V)},b=p=>{Object.keys(c.value).forEach(S=>{c.value[S]=p.includes(S)})},d=p=>{const{tool:V}=p;if(!V)return;const S=()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(ha,p,null),Vue.createVNode(da,Vue.mergeProps(p,{onChangeSize:h.bind(this)}),null),Vue.createVNode(pa,null,null),Vue.createVNode(fa,Vue.mergeProps(p,{onUpdateColumn:y.bind(this)}),null),Vue.createVNode(ga,Vue.mergeProps(p,{onPopselectChange:b.bind(this),onInitialed:b.bind(this)}),null)]});if(e.toolOptions)if(e.coverTool){let x;return Vue.createVNode(naive.NFlex,{align:"center"},ya(x=v())?x:{default:()=>[x]})}else return()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[S(),v()]});else return S};return Vue.onMounted(()=>{const{onRegister:p}=e;p&&a.value&&k(p,a.value)}),Vue.provide(F.tableKey,{uuidTable:l,uuidWrapper:s,wrapperRef:r}),o(),{uuidWrapper:s,uuidTable:l,contextMenuReactive:i,rTableInst:a,combineRowProps:f,contextMenuSelect:m,privateReactive:u,tool:d,wrapperRef:r,propsPopselectValue:c}},render(){const{$props:e,$attrs:t,wrapperBordered:o,uuidWrapper:n,privateReactive:a,disabledContextMenu:r,contextMenuReactive:s,contextMenuOptions:l,uuidTable:i,title:u,$slots:c,propsPopselectValue:m}=this,{class:f}=t,{tool:h,combineRowProps:y,contextMenuSelect:v}=this;return Vue.createVNode(naive.NCard,Vue.mergeProps(e.cardProps,{id:n},{ref:"wrapperRef",bordered:o,class:f}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NDataTable,Vue.mergeProps({id:i},t,e,m,{rowProps:y.bind(this),size:a.size,ref:"rTableInst"}),{...c}),r?null:Vue.createVNode(naive.NDropdown,{show:s.showContextMenu,placement:"bottom-start",trigger:"manual",x:s.x,y:s.y,options:l,onClickoutside:()=>s.showContextMenu=!1,onSelect:v.bind(this)},null)]),header:re(u,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":h(e),footer:()=>{var b;return(b=c.tableFooter)==null?void 0:b.call(c)},action:()=>{var b;return(b=c.tableAction)==null?void 0:b.call(c)}})}}),fs=()=>{const e=Vue.ref(),t=c=>{c&&(e.value=c)},o=()=>{if(!e.value)throw new Error("[useTable]: table instance is not ready yet. if you are using useTable, please make sure you have called register method in onRegister event.");return e.value};return[t,{getTableInstance:o,clearFilters:()=>o().clearFilters.call(null),clearSorter:()=>o().clearSorter.call(null),downloadCsv:c=>o().downloadCsv.call(null,c),filters:c=>o().filters.call(null,c),page:c=>o().page.call(null,c),scrollTo:c=>o().scrollTo(c),sort:(c,m)=>o().sort.call(null,c,m)}]},Ao=(e,t,o)=>{var n;if(e.length)for(const a of e){if(a[t]===o)return a;if((n=a==null?void 0:a.children)!=null&&n.length){const r=Ao(a.children,t,o);if(r)return r}}},hs=(e,t)=>{const o=Vue.ref([]),n=Vue.ref([]),{rowKey:a="key",onChange:r}=t||{},s=(f,h,y)=>{o.value=f,n.value=h,r==null||r(f,h,y)},l=()=>o.value,i=()=>n.value,u=()=>{o.value=[],n.value=[],r==null||r(o.value,n.value,{row:void 0,action:"uncheckAll"})},c=f=>{if(f==null)return;let h;o.value=o.value.filter(y=>y!==f),n.value=n.value.filter(y=>y[a]===f?(h=y,!1):!0),r==null||r(o.value,n.value,{row:h,action:"uncheck"})},m=f=>{if(o.value.includes(f))return;o.value.push(f);const h=Ao(Vue.unref(e)||[],a,f);h&&(n.value.push(h),r==null||r(o.value,n.value,{row:h,action:"check"}))};return We(()=>{u()}),[o,{checkedRows:n,checkedRowKeysBind:s,getKeys:l,getRows:i,clearAll:u,clearKey:c,selectKey:m}]},va={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},ba=Vue.defineComponent({name:"RTransitionComponent",__name:"index",props:Vue.mergeDefaults({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},va),setup(e){const{getKeepAliveInclude:t}=za(),{setupKeepAlive:o,maxKeepAliveLength:n,keepAliveExclude:a}=yt;return(r,s)=>{const l=Vue.resolveComponent("RouterView");return Vue.openBlock(),Vue.createBlock(l,null,{default:Vue.withCtx(({Component:i,route:u})=>[i?(Vue.openBlock(),Vue.createBlock(Vue.Transition,{key:0,name:r.transitionPropName,mode:r.transitionMode,appear:r.transitionAppear},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.Suspense,null,{default:Vue.withCtx(()=>[Vue.unref(o)?(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{key:0,max:Vue.unref(n),include:Vue.unref(t),exclude:Vue.unref(a)},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(i),{key:u.fullPath}))],1032,["max","include","exclude"])):(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(i),{key:u.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Vue.createCommentVNode("",!0)]),_:1})}}}),Va={...naive.formProps,onRegister:{type:[Function,Array],default:null}},gs=Vue.defineComponent({name:"RForm",props:Va,setup(e,{expose:t}){const o=Vue.ref();return Vue.onMounted(()=>{const{onRegister:n}=e;n&&o.value&&k(n,o.value)}),t(),{formRef:o}},render(){const{$attrs:e,$props:t,$slots:o}=this;return Vue.createVNode(naive.NForm,Vue.mergeProps(e,t,{ref:"formRef"}),{...o})}}),ys=(e,t)=>{const o=Vue.ref(),n=u=>{u&&(o.value=u)},a=()=>{if(!o.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 o.value};return[n,{getFormInstance:a,validate:(u,c)=>a().validate.call(null,u,c),restoreValidation:()=>a().restoreValidation.call(null),formModel:()=>ve(e)||{},formRules:()=>ve(t)||{}}]},Sa=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],_a={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},wa=Be({...naive.tabsProps,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...Sa);function Ca(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const De=e=>{const{icon:t,label:o}=e;return t?Vue.createVNode(naive.NFlex,{align:"center",wrap:!1,size:"small"},{default:()=>[Vue.createVNode(t,null,null),Vue.createVNode("div",null,[o])]}):o},Na=e=>{if(typeof e.popover=="string")return Vue.createVNode(naive.NPopover,null,{trigger:()=>De(e),default:()=>e.popover});if(B(e.popover,"Object")){const{popover:t}=e,{label:o,...n}=t;return Vue.createVNode(naive.NPopover,n,{trigger:()=>De(e),default:()=>o})}},vs=Vue.defineComponent({name:"RSegment",props:wa,setup(e,{expose:t}){const o=Vue.computed(()=>{const{width:n}=e;let a="";switch(n){case"block":a="100%";break;case"fitContent":a="fit-content";break;default:a=typeof n=="number"?M(n):"fit-content"}return{"--r-segment-width":a}});return t(),{cssVars:o}},render(){let e;const{$props:t,options:o,cssVars:n,themeOverrides:a}=this;return Vue.createVNode(naive.NTabs,Vue.mergeProps(t,{ref:"segmentRef",style:[n],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},_a,a)}),Ca(e=o.map(r=>Vue.createVNode(naive.NTab,{key:r.key,name:r.key,tab:r.popover?Na(r):De(r),disabled:r.disabled},{...r.slots})))?e:{default:()=>[e]})}}),Ta={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:!1},onSuccess:{type:[Function,Array]},onError:{type:[Function,Array]},onFinally:{type:[Function,Array]}},bs=Vue.defineComponent({name:"RBarcode",props:Ta,setup(e){const t=Vue.ref(),o=Vue.computed(()=>({"--r-barcode-width":M(e.width),"--r-barcode-height":M(e.height)}));let n;const a=()=>{try{const{format:r,text:s,options:l,onSuccess:i}=e,u=Object.assign({},l,{format:r});JsBarcode(t.value,s!=null?s.toString():"",u),i&&k(i,s,r,l)}catch(r){const{onError:s}=e;s&&k(s,r)}finally{const{onFinally:r}=e;r&&k(r)}};return Vue.watchEffect(()=>{e.watchText?n=Vue.watch(()=>e.text,a):n==null||n()}),Vue.onMounted(()=>{a()}),Vue.onBeforeUnmount(()=>{n==null||n()}),{barcodeRef:t,cssVars:o}},render(){const{barcodeRender:e,loading:t,cssVars:o}=this,n=["r-barcode",{"r-barcode--loading":t}];return Vue.createVNode(naive.NSpin,{class:"r-barcode-spin",show:t},{default:()=>[e==="canvas"?Vue.createVNode("canvas",{class:n,style:o,ref:"barcodeRef"},null):Vue.createVNode("svg",{class:n,style:o,ref:"barcodeRef"},null)]})}});var Oa={pkg:{dependencies:{"@vueuse/core":"^10.9.0","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.2",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.26","vue-demi":"0.14.6","vue-hooks-plus":"1.9.0","vue-i18n":"^9.13.1","vue-router":"^4.3.0"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.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.15",depcheck:"^1.4.5",eslint:"^8.56.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.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.2.11","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-imp":"^2.4.0","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.11"},name:"ray-template",version:"4.8.3"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const ka=(e,t,o)=>!e||typeof e!="object"?!1:e[t]===o,Po=(e,t,o)=>{const n=[];if(ka(e,t,o))return n.push(e),n;if(e.children&&e.children.length>0)for(const a of e.children){const r=Po(a,t,o);r.length>0&&n.push(e,...r)}return n},xa=(e,t,o)=>{const n=[];for(const a of e){const r=Po(a,t,o);r.length>0&&n.push(...r)}return n},Ra=e=>{const{breadcrumbLabel:t}=e,{layout:{sideBarLogo:o}}=Oa,n=o?o.title:"";document.title=t+" - "+n},Aa=e=>{const{meta:{icon:t}}=e;if(!t)return;if(B(t,"Object"))return()=>t;const o=Vue.h(C,{name:t,size:Y.menuCollapsedIconSize,cursor:"pointer"},{});return()=>o},Lo=e=>{const{meta:{extra:t}}=e;if(!t)return;const{show:o}=t;if(o===!1)return;const{t:n}=se(),{label:a,icon:r,type:s,i18nLabel:l}=t,i={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},u=()=>l?n(l):a||null,c=()=>r&&(l||a)||!r&&(l||a)?null:{"padding-right":"0"};if(B(t,"Object"))return()=>Vue.h(naive.NTag,{...i,type:s||"primary",style:c()},{default:()=>u(),icon:()=>r})},ot=()=>{const{getRootPath:e}=te();return le(j.appMenuKey,"sessionStorage",{defaultValue:e.value})},Mo=()=>$r(Er()),Pa=()=>Dr(Mo());let fe;const zo=(e,t)=>{var o;if(fe&&Xe(fe.fullPath,t))return fe;for(const n of e){if(Xe(n.fullPath,t))return fe=n,n;if((o=n.children)!=null&&o.length){zo(n.children,t);continue}}},jo=Pinia.defineStore("menu",()=>{const{push:e,getRoutes:t}=VueRouter.useRouter(),o=VueRouter.useRoute(),{t:n}=se(),{setKeepAliveInclude:a}=ja(),r=Vue.reactive({menuKey:ot(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),s=Vue.ref(!0),l=d=>{const{meta:p}=d,{i18nKey:V,noLocalTitle:S}=p,x=Vue.computed(()=>V?n(`${V}`):S),g={...d,key:d.fullPath,label:()=>Vue.h(naive.NEllipsis,null,{default:()=>x.value}),breadcrumbLabel:x.value},_=Object.assign({},g,{icon:Aa(d),extra:Lo(d)});return d.fullPath===ot()&&(r.currentMenuOption=_),_.show=St(_),_},i=d=>{r.breadcrumbOptions=xa(r.options,"fullPath",d)},u=(d,p=!0)=>{const S=Array.isArray(d)?[...d]:[d];p?r.menuTagOptions.push(...S):r.menuTagOptions=S},c=(d,p)=>{r.menuTagOptions.find(S=>S.fullPath===d)||r.menuTagOptions.push(p)},m=(d,p,V)=>{const{meta:S}=p;if(S.windowOpen)window.open(S.windowOpen);else{e({path:String(d),query:V});const{sameLevel:x}=S;if(a(p),Ra(p),!x)c(d,p),i(d),r.menuKey=d,r.currentMenuOption=p,Fe(j.appMenuKey,d);else{const g=be(l(p),["breadcrumbLabel","children","key","meta","name","path","show"]);r.breadcrumbOptions.find(R=>R.key===g.key)||r.breadcrumbOptions.push({...g,fullPath:String(g.key)})}}},f=async(d,p)=>{const[V]=d.split("?"),S=t().find(x=>x.path===V);if(S){const x=be(S,["children","meta","path","name","redirect"]);m(V,l({...x,fullPath:x.path}),p)}},h=()=>new Promise(d=>{const p=(V,S)=>{var g;const x=[];for(const _ of V){let R=`${S.endsWith("/")?S:S+"/"}${_.path}`;if(R=R.replace(/\/+/g,"/"),(g=_.children)!=null&&g.length)_.children=p(_.children,R);else if(!Do(_.meta))continue;x.push(l({..._,fullPath:R}))}return x};if(r.options=p(Mo(),""),r.currentMenuOption){const{currentMenuOption:V}=r;i(V.key),c(V.fullPath,V)}d()}),y=d=>r.collapsed=d,v=(d,p=1)=>r.menuTagOptions.splice(d,p),b=async()=>{s.value&&(await h(),s.value=!1)};return Vue.watch(()=>o.fullPath,async(d,p)=>{await b(),d!==p&&await f(d,o.query)},{immediate:!0}),{...Vue.toRefs(r),changeMenuModelValue:m,collapsedMenu:y,spliceMenTagOptions:v,setMenuTagOptions:u,resolveOption:l}},{persist:{key:j.appPiniaMenuStore,storage:window.sessionStorage,paths:["breadcrumbOptions","menuKey","menuTagOptions"]}}),Eo=Pinia.defineStore("signing",()=>{const e=Vue.reactive({signingCallback:{}}),t=n=>new Promise((a,r)=>{ut(n)?r({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:n.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},a({code:0,message:"登陆成功",data:e.signingCallback}))}),o=()=>{window.$message.info("账号退出中..."),rn("__all_sessionStorage__","sessionStorage"),setTimeout(()=>window.location.reload())};return{...Vue.toRefs(e),signing:t,logout:o}},{persist:{key:j.appPiniaSigningStore,paths:["signingCallback"],storage:sessionStorage}}),Io=Pinia.defineStore("keepAlive",()=>{const{maxKeepAliveLength:e}=yt,t=Vue.reactive({keepAliveInclude:[]}),o=()=>t.keepAliveInclude.length,n=r=>{const s=o(),{name:l,meta:{keepAlive:i}}=r;if(i){if(s<e&&!t.keepAliveInclude.includes(l)){t.keepAliveInclude.push(l);return}s>=e&&(t.keepAliveInclude.splice(0,1),t.keepAliveInclude.push(l))}},a=()=>t.keepAliveInclude;return{...Vue.toRefs(t),setKeepAliveInclude:n,getKeepAliveInclude:a}},{persist:{key:j.appPiniaKeepAliveStore,storage:window.sessionStorage,paths:["keepAliveInclude"]}}),X=()=>{const e=jo(),t=Vue.computed(()=>e.options),o=Vue.computed(()=>e.breadcrumbOptions),n=Vue.computed(()=>e.menuKey),a=Vue.computed(()=>{const{getRootPath:l}=te();return e.menuTagOptions.map((i,u,c)=>(i.key===n.value&&i.key!==l.value?i.closeable=!0:i.closeable=!1,i.key===l.value&&(i.closeable=!1),c.length<=1&&(i.closeable=!1),i))}),r=Vue.computed(()=>e.currentMenuOption),s=Vue.computed(()=>e.collapsed);return{getMenuOptions:t,getBreadcrumbOptions:o,getMenuKey:n,getMenuTagOptions:a,getCurrentMenuOption:r,getCollapsed:s}},ce=()=>{const{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:a}=jo();return{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:a}},D=()=>{const e=_t(),t=Vue.computed(()=>e.drawerPlacement),o=Vue.computed(()=>e.primaryColorOverride),n=Vue.computed(()=>e.appTheme),a=Vue.computed(()=>e.menuTagSwitch),r=Vue.computed(()=>e.breadcrumbSwitch),s=Vue.computed(()=>e.localeLanguage),l=Vue.computed(()=>e.lockScreenSwitch),i=Vue.computed(()=>e.copyrightSwitch),u=Vue.computed(()=>e.contentTransition),c=Vue.computed(()=>e.watermarkSwitch),m=Vue.computed(()=>e.watermarkConfig),f=Vue.computed(()=>e.appRootRoute);return{getDrawerPlacement:t,getPrimaryColorOverride:o,getAppTheme:n,getMenuTagSwitch:a,getBreadcrumbSwitch:r,getLocaleLanguage:s,getLockScreenSwitch:l,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c,getWatermarkConfig:m,getAppRootRoute:f}},E=()=>{const{updateLocale:e,changePrimaryColor:t,updateSettingState:o}=_t();return{updateLocale:e,changePrimaryColor:t,updateSettingState:o}},La=()=>{const e=Eo();return{getSigningCallback:Vue.computed(()=>e.signingCallback)}},Ma=()=>{const{signing:e,logout:t}=Eo();return{signing:e,logout:t}},za=()=>{const e=Io();return{getKeepAliveInclude:Vue.computed(()=>e.keepAliveInclude)}},ja=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:t}=Io();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},Vs=e=>{const t=Pinia.createPinia();e.use(t),t.use(pn)},Do=e=>{const{getSigningCallback:t}=La(),{role:o}=e;return me!=null&&me.length&&me.includes(t.value.role)||!o||!(o!=null&&o.length)?!0:o?o.includes(t.value.role):!0},Ea=e=>{const{setupRouterLoadingBar:t,setupRouterGuard:o}=Wn;t&&Wr(e),o&&Br(e)};var Ia={pkg:{dependencies:{"@vueuse/core":"^10.9.0","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.2",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.26","vue-demi":"0.14.6","vue-hooks-plus":"1.9.0","vue-i18n":"^9.13.1","vue-router":"^4.3.0"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.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.15",depcheck:"^1.4.5",eslint:"^8.56.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.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.2.11","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-imp":"^2.4.0","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.11"},name:"ray-template",version:"4.8.3"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Da=Vue.ref(),$a=Vue.defineComponent({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=VueRouter.useRouter(),{layout:{sideBarLogo:t}}=Ia;return{sideBarLogo:t,sideBarLogoClick:()=>{t&&t.url&&(t.jumpType==="station"?e.push(t.url):window.open(t.url))},TemplateLogo:({cursor:a})=>{if(typeof t.icon=="string")return Vue.createVNode(C,{name:t.icon,size:"30",cursor:a},null);if(B(t.icon,"Object"))return Vue.createVNode(t.icon,null,null)}}},render(){const{sideBarLogo:e,collapsed:t,TemplateLogo:o,sideBarLogoClick:n}=this;return e!=null&&e.title?Vue.createVNode("div",{class:["ray-menu__logo",e!=null&&e.url?"ray-menu__logo-url":null],onClick:n.bind(this),ref:Da},[e!=null&&e.icon?t?Vue.createVNode(naive.NTooltip,{placement:"right"},{trigger:()=>o({cursor:"pointer"}),default:()=>e.title}):o({cursor:"pointer"}):t?Vue.createVNode(naive.NTooltip,{placement:"right"},{trigger:()=>Vue.createVNode("h1",{class:"n-menu-item-content"},[e.title[0]||null]),default:()=>e.title}):null,Vue.createVNode("h1",{class:[t?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"']},[Vue.createVNode(naive.NEllipsis,null,{default:()=>[e.title]})])]):null}}),Ba=Vue.defineComponent({name:"AppMenu",setup(){const e=Vue.ref(null),{changeMenuModelValue:t,collapsedMenu:o}=ce(),{getMenuOptions:n,getCollapsed:a,getMenuKey:r}=X(),s=Vue.computed({get:()=>(Vue.nextTick().then(()=>{u()}),r.value),set:()=>{l.value&&G("globalDrawerValue",!1)}}),{isTabletOrSmaller:l}=Ne(),i=Vue.computed({get:()=>Ce("globalDrawerValue").value,set:m=>{G("globalDrawerValue",m)}}),u=()=>{const m=s.value;m!=null&&Vue.nextTick(()=>{var f,h;return(h=(f=e.value)==null?void 0:f.showOption)==null?void 0:h.call(f,m)})};return{isTabletOrSmaller:l,BasicMenu:()=>Vue.createVNode(naive.NLayoutSider,{class:"app-menu__sider",showTrigger:!l.value,collapseMode:Y.menuCollapsedMode,collapsedWidth:Y.menuCollapsedWidth,onUpdateCollapsed:o.bind(this),nativeScrollbar:!1,ref:bt},{default:()=>[Vue.createVNode($a,{collapsed:a.value},null),Vue.createVNode(naive.NMenu,{ref:e,class:"r-menu--app",keyField:"fullPath",value:s.value,"onUpdate:value":m=>s.value=m,options:n.value,indent:Y.menuCollapsedIndent,collapsed:a.value,collapsedIconSize:Y.menuCollapsedIconSize,collapsedWidth:Y.menuCollapsedWidth,onUpdateValue:(m,f)=>{t(m,f)},accordion:Y.menuAccordion},null)]}),modelGlobalDrawerValue:i}},render(){const{isTabletOrSmaller:e,BasicMenu:t}=this;return e?Vue.createVNode(naive.NDrawer,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":o=>this.modelGlobalDrawerValue=o,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[Vue.createVNode(t,null,null)]}):Vue.createVNode(t,null,null)}});class Fa{constructor(){He(this,"pendingRequest");this.pendingRequest=new Map}isAppending(t){var o;return((o=t.cancelConfig)==null?void 0:o.cancel)??!0}generateRequestKey(t){const{method:o,url:n}=t;return[n||"",o||"",JSON.stringify(t.params),JSON.stringify(t.data)].join("&")}addPendingRequest(t){var o;if(this.isAppending(t)){t.__CANCELER_TAG_RAY_TEMPLATE__="__CANCELER_TAG_RAY_TEMPLATE__";const n=this.generateRequestKey(t);if(this.pendingRequest.has(n))t.signal=(o=this.pendingRequest.get(n))==null?void 0:o.signal;else{const a=new AbortController;t.signal=a.signal,this.pendingRequest.set(n,a)}}}removePendingRequest(t){const o=this.generateRequestKey(t);this.pendingRequest.has(o)&&(this.pendingRequest.get(o).abort(),this.pendingRequest.delete(o))}cancelAllRequest(){this.pendingRequest.forEach(t=>{t.abort()})}}const Re={requestInstance:null,responseInstance:null},Ae={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},he={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},Wa=new Fa,Ss=()=>{const e=(l,i)=>{i==="requestInstance"?Re.requestInstance=l:Re.responseInstance=l},t=l=>Re[l],o=(l,i,u)=>{u==="ok"?Ae[l]=i:he[l]=i},n=(l,i)=>i==="ok"?Ae[l]:he[l],a=(l,...i)=>{Array.isArray(l)&&l.forEach(u=>{typeof u=="function"&&u(...i)})};return{createAxiosInstance:e,setImplement:o,getImplement:n,getAxiosInstance:t,beforeFetch:(l,i,u)=>{const c=u==="ok"?Ae[i]:he[i],m=t(l),{MODE:f}=Ee();m&&a(c,m,f)},fetchError:(l,i,u)=>{const c=he[u],{MODE:m}=Ee();a(c,i,m)}}},Ka=Vue.defineComponent({name:"AppRequestCancelerProvider",setup(e,{expose:t}){VueRouter.onBeforeRouteUpdate(()=>{Wa.cancelAllRequest()}),t()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),$o=Vue.defineComponent({name:"LayoutContentWrapper",setup(){VueRouter.useRouter();const{maximize:e}=Bo(),{getContentTransition:t}=D(),o=Vue.ref(!1),n={opacitySpinning:"0"},{globalMainLayoutLoad:a,layoutContentMaximize:r,layoutContentSpinning:s}=Un();return{globalMainLayoutLoad:a,spinning:o,themeOverridesSpin:n,getContentTransition:t,layoutContentMaximize:r,maximize:e,layoutContentSpinning:s}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:t,layoutContentSpinning:o,maximize:n,spinning:a,themeOverridesSpin:r,getContentTransition:s}=this;return Vue.createVNode(naive.NSpin,{show:a||!e||o,description:"loading...",size:"large",themeOverrides:r,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?Vue.createVNode("div",{class:"layout-content__maximize-out",onClick:()=>{n(!1)}},[Vue.createVNode(C,{name:"out",size:"16",cursor:"pointer"},null)]):null,Vue.createVNode(Ka,null,null),e?Vue.createVNode(ba,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),Ua=Object.freeze(Object.defineProperty({__proto__:null,default:$o},Symbol.toStringTag,{value:"Module"}));var qa={pkg:{dependencies:{"@vueuse/core":"^10.9.0","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.2",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.26","vue-demi":"0.14.6","vue-hooks-plus":"1.9.0","vue-i18n":"^9.13.1","vue-router":"^4.3.0"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.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.15",depcheck:"^1.4.5",eslint:"^8.56.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.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.2.11","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-imp":"^2.4.0","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.11"},name:"ray-template",version:"4.8.3"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Ga=Vue.defineComponent({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=qa;return{copyright:e}},render(){return this.copyright?Vue.createVNode("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),Ha=Vue.defineComponent({name:"TooltipIcon",props:{...naive.tooltipProps,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:t}){const o=a=>{t("click",a)};return{iconClick:o,Icon:()=>Vue.createVNode(C,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:o.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?Vue.createVNode(naive.NTooltip,this.$props,{trigger:()=>Vue.createVNode(e,null,null),default:()=>this.tooltipText}):Vue.createVNode(e,null,null)}}),Ya=Vue.defineComponent({name:"ThemeSwitch",setup(){const{changeDarkTheme:e,changeLightTheme:t}=Rl(),{getAppTheme:o}=D(),n=Vue.ref(o.value);return{changeDarkTheme:e,changeLightTheme:t,getAppTheme:o,railStyle:({checked:r})=>r?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:n}},render(){const{$t:e,changeDarkTheme:t,changeLightTheme:o,railStyle:n}=this;return Vue.createVNode(naive.NFlex,{justify:"center"},{default:()=>[Vue.createVNode(naive.NTooltip,null,{trigger:()=>Vue.createVNode(naive.NSwitch,{value:this.modelAppThemeRef,"onUpdate:value":a=>this.modelAppThemeRef=a,railStyle:n.bind(this),onUpdateValue:a=>a?t():o()},{"checked-icon":()=>Vue.createVNode(C,{name:"dark"},null),"unchecked-icon":()=>Vue.createVNode(C,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?e("headerSettingOptions.ThemeOptions.Dark"):e("headerSettingOptions.ThemeOptions.Light")})]})}});function ge(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Xa=Vue.defineComponent({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:o,updateSettingState:n}=E(),{getAppTheme:a,getPrimaryColorOverride:r,getMenuTagSwitch:s,getBreadcrumbSwitch:l,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c}=D(),m=Vue.computed({get:()=>e.show,set:h=>{t("update:show",h)}}),f=Vue.computed({get:()=>({getMenuTagSwitch:s.value,getBreadcrumbSwitch:l.value,getCopyrightSwitch:i.value,getContentTransition:u.value,getWatermarkSwitch:c.value}),set:h=>{}});return{modelShow:m,changePrimaryColor:o,getAppTheme:a,getPrimaryColorOverride:r,updateSettingState:n,modelSwitchReactive:f}},render(){let e,t,o,n;const{$t:a,changePrimaryColor:r,updateSettingState:s}=this;return Vue.createVNode(naive.NDrawer,{show:this.modelShow,"onUpdate:show":l=>this.modelShow=l,placement:this.placement,width:this.width},{default:()=>[Vue.createVNode(naive.NDrawerContent,{title:a("headerSettingOptions.Title")},{default:()=>[Vue.createVNode(naive.NFlex,{class:"setting-drawer__space",vertical:!0},{default:()=>[Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(e=a("headerSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),Vue.createVNode(Ya,null,null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(t=a("headerSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),Vue.createVNode(naive.NColorPicker,{swatches:$.appThemeColors,value:this.getPrimaryColorOverride.common.primaryColor,"onUpdate:value":l=>this.getPrimaryColorOverride.common.primaryColor=l,onUpdateValue:r.bind(this)},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(o=a("headerSettingOptions.ContentTransition"))?o:{default:()=>[o]}),Vue.createVNode(naive.NSelect,{value:this.modelSwitchReactive.getContentTransition,"onUpdate:value":l=>this.modelSwitchReactive.getContentTransition=l,options:In,onUpdateValue:l=>{s("contentTransition",l)}},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(n=a("headerSettingOptions.InterfaceDisplay"))?n:{default:()=>[n]}),Vue.createVNode(naive.NDescriptions,{labelPlacement:"left",column:1},{default:()=>[Vue.createVNode(naive.NDescriptionsItem,{label:"多标签"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getMenuTagSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getMenuTagSwitch=l,onUpdateValue:l=>s("menuTagSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"面包屑"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getBreadcrumbSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getBreadcrumbSwitch=l,onUpdateValue:l=>s("breadcrumbSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"水印"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getWatermarkSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getWatermarkSwitch=l,onUpdateValue:l=>s("watermarkSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"版权信息"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getCopyrightSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getCopyrightSwitch=l,onUpdateValue:l=>s("copyrightSwitch",l)},null)]})]})]})]})]})}});function Za(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Ja=Vue.defineComponent({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=ce(),{getBreadcrumbOptions:t}=X(),{isTabletOrSmaller:o}=Ne();return{getBreadcrumbOptions:t,dropdownSelect:(r,s)=>{e(r,s)},breadcrumbItemClick:r=>{var s;if(!((s=r.children)!=null&&s.length)){const{meta:l={}}=r;l.sameLevel||e(r.fullPath,r)}},isTabletOrSmaller:o}},render(){let e;const{isTabletOrSmaller:t,getBreadcrumbOptions:o}=this,{dropdownSelect:n,breadcrumbItemClick:a}=this;return t?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NBreadcrumb,null,{default:()=>[Vue.createVNode(Vue.TransitionGroup,{tag:"li",name:"breadcrumb",appear:!0},Za(e=o.map(r=>Vue.createVNode(naive.NBreadcrumbItem,{key:r.fullPath,onClick:a.bind(this,r)},{default:()=>{var s;return[Vue.createVNode(naive.NDropdown,{labelField:"breadcrumbLabel",keyField:"fullPath",options:r.children&&((s=r.children)==null?void 0:s.length)>1?r.children:[],onSelect:n.bind(this)},{default:()=>Vue.createVNode("span",null,[r.label&&typeof r.label=="function"?r.label():r.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function Pe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Qa=Vue.defineComponent({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const{changeMenuModelValue:o,resolveOption:n}=ce(),{getRoutes:a}=VueRouter.useRouter(),r=Vue.computed({get:()=>e.show,set:g=>{t("update:show",g),g||h()}}),s=Vue.reactive({searchValue:null,searchOptions:[]}),l=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let i=0,u=i;const{isTabletOrSmaller:c}=Ne(),m=Vue.ref(!1),f="content-item--active",h=()=>{s.searchOptions=[],s.searchValue=null,i=0,u=i},y=g=>{r.value||(g.ctrlKey||g.metaKey)&&g.key==="k"&&(g.preventDefault(),g.stopPropagation(),h(),r.value=!0)},v=g=>{if(g)m.value=!0;else{m.value=!1,s.searchOptions=[];return}const _=a().reduce((R,O)=>{var W;const L=be(O,["children","meta","path","name"]),A=n({...L,fullPath:O.path}),{breadcrumbLabel:I}=A;return(W=I==null?void 0:I.toLocaleLowerCase())!=null&&W.includes(g.toLocaleLowerCase())&&St(A)&&R.push(A),R},[]);setTimeout(()=>{s.searchOptions=_,Vue.nextTick().then(()=>{d()}),m.value=!1},500)},b=g=>{if(g){const{meta:_}=g;_.windowOpen?window.open(_.windowOpen):(r.value=!1,o(g.fullPath,g),setTimeout(an,300))}},d=()=>{const g=s.searchOptions[i],_=s.searchOptions[u];g&&Vue.nextTick().then(()=>{const R=Se(`attr:data_path="${g.path}"`),O=_?Se(`attr:data_path="${_==null?void 0:_.path}"`):null;if(O!=null&&O.length){const[L]=O;ln(L,f)}if(R!=null&&R.length){const[L]=R;pt(L,f)}})},p=g=>{const{icon:_}=g;return typeof _=="string"?Vue.createVNode(C,{name:_,size:"24"},null):typeof _=="function"?()=>_:Vue.createVNode(C,{name:"search",size:"24"},null)},V=g=>{g==="up"&&(i-=1,i<0&&(i=s.searchOptions.length-1)),g==="down"&&(i+=1,i>=s.searchOptions.length&&(i=0))},S=g=>{const _=g.key;switch((_==="ArrowUp"||_==="ArrowDown"||_==="Enter")&&(g.preventDefault(),g.stopPropagation()),u=i<=0?0:i,_){case"ArrowUp":V("up");break;case"ArrowDown":V("down");break;case"Enter":const R=s.searchOptions[i];R&&b(R);break}d()},x=({menuOption:g})=>Vue.createVNode(naive.NFlex,Vue.mergeProps({align:"center",class:"content-item"},{onClick:b.bind(this,g),data_path:g.path}),{default:()=>[Vue.createVNode("div",{class:"content-item-icon"},[p(g.meta)]),Vue.createVNode("div",{class:"content-item-label"},[g.breadcrumbLabel]),Vue.createVNode(C,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return Vue.watchEffect(()=>{c.value&&(r.value=!1)}),ae(window,"keydown",g=>{y(g),S(g)},!0),{...Vue.toRefs(s),modelShow:r,helperTipOptions:l,fuzzySearchMenuOptions:$e(v,300),searchItemClick:b,RenderPreIcon:p,isTabletOrSmaller:c,SearchItem:x,loading:m}},render(){const{isTabletOrSmaller:e,searchOptions:t,loading:o}=this,{SearchItem:n,fuzzySearchMenuOptions:a}=this;return e?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NModal,{show:this.modelShow,"onUpdate:show":r=>this.modelShow=r,transformOrigin:"center",displayDirective:"if"},{default:()=>[Vue.createVNode("div",{class:"global-search global-search--dark global-search--light"},[Vue.createVNode("div",{class:"global-search__wrapper"},[Vue.createVNode(naive.NCard,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>Vue.createVNode(naive.NInput,{size:"large",value:this.searchValue,"onUpdate:value":r=>this.searchValue=r,clearable:!0,onInput:a.bind(this)},{prefix:()=>Vue.createVNode(C,{name:"search",size:"24"},null)}),default:()=>{let r;return Vue.createVNode(naive.NScrollbar,null,{default:()=>[Vue.createVNode(naive.NSpin,{show:o},{default:()=>[t.length?Vue.createVNode(naive.NFlex,{vertical:!0,size:[0,6],class:"global-search__card-content"},Pe(r=t.map((s,l)=>Vue.createVNode(n,{menuOption:s,key:s.fullPath},null)))?r:{default:()=>[r]}):Vue.createVNode(naive.NResult,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>Vue.createVNode(naive.NFlex,{justify:"center",class:"global-search__empty-content"},{default:()=>[Vue.createVNode(naive.NText,null,{default:()=>[Vue.createTextVNode("没有搜索结果")]})]})})]})]})},action:()=>{let r;return Vue.createVNode(naive.NFlex,{justify:"flex-start",align:"center",size:[16,0]},Pe(r=this.helperTipOptions.map(s=>Vue.createVNode(naive.NFlex,{key:s.label,size:[4,0]},{default:()=>[s.icon.map(l=>Vue.createVNode(naive.NFlex,{class:"item-icon",align:"center",justify:"center"},Pe(l)?l:{default:()=>[l]})),Vue.createVNode(naive.NFlex,{class:"item-label",align:"center"},{default:()=>[s.label]})]})))?r:{default:()=>[r]})}})])])]})}}),el=Vue.defineComponent({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const n=sn();return n==="MacOS"?"⌘ + K":"CTRL + K"},click:n=>{const{onClick:a}=e;a&&k(a,n)}}},render(){const{getShortcutKeyAboutSystem:e,click:t,$t:o}=this;return Vue.createVNode(naive.NButton,{class:"global-search__btn-wrapper",bordered:!1,onClick:t.bind(this)},{icon:()=>Vue.createVNode(C,{name:"search",size:"16"},null),default:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[o("headerTooltip.Search"),Vue.createVNode("div",{class:"global-search-btn__label"},[e()])]})})}}),tl=Vue.defineComponent({name:"AppAvatar",props:{...naive.avatarProps,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number,Array],default:"medium"},avatarSize:{type:[String,Number],default:"medium"}},setup(e){return{signing:le(j.signing)}},render(){const{signing:e,avatarSize:t,spaceSize:o,$props:n}=this;return Vue.createVNode(naive.NButton,{quaternary:!0,strong:!0},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",size:o},{default:()=>[Vue.createVNode(naive.NAvatar,Vue.mergeProps(n,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:t}),null),e==null?void 0:e.name]})]})}}),ol=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],nl={logout:()=>{const{logout:e}=Ma();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=E();e("lockScreenSwitch",!0)}},rl=e=>{const t=nl[e];t?t():window.$message.info("这个人很懒, 没做这个功能~")},al=e=>{const{isTabletOrSmaller:t}=e,o=[],n=[{name:"menu",size:18,eventKey:"menu"}];return t.value?n:o},ll=e=>{const{isTabletOrSmaller:t}=e,o=[{name:"fullscreen",size:18,eventKey:"screen"},{name:"github",size:18,eventKey:"github"},{name:"setting",size:18,eventKey:"setting"}],n=[...o],a=[...o];return t.value?a:n},sl=Vue.defineComponent({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:t}=E(),{t:o}=se(),[n,{toggleFullscreen:a,isEnabled:r}]=mt(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:l}=D(),i=Vue.ref(!1),u=Vue.ref(!1),{isTabletOrSmaller:c}=Ne(),m=Ce("globalDrawerValue"),f=Vue.computed(()=>al({isFullscreen:n,isTabletOrSmaller:c})),h=Vue.computed(()=>ll({isFullscreen:n,isTabletOrSmaller:c})),y={search:()=>{u.value=!0},setting:()=>{i.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{r||window.$message.warning(o("globalMessage.isEnabledFullscreen")),a()},lock:()=>{t("lockScreenSwitch",!0)},menu:()=>{G("globalDrawerValue",!m.value)}};return{leftIconOptions:f,rightTooltipIconOptions:h,toolIconClick:d=>{var p;(p=y[d])==null||p.call(y)},showSettings:i,updateLocale:e,getDrawerPlacement:s,getBreadcrumbSwitch:l,globalSearchShown:u,isRenderVNode:d=>c.value?null:d}},render(){const{rightTooltipIconOptions:e,leftIconOptions:t,getDrawerPlacement:o,getBreadcrumbSwitch:n}=this,{toolIconClick:a,updateLocale:r,isRenderVNode:s}=this;return Vue.createVNode(naive.NLayoutHeader,{class:"layout-header"},{default:()=>[Vue.createVNode(Qa,{show:this.globalSearchShown,"onUpdate:show":l=>this.globalSearchShown=l},null),Vue.createVNode(naive.NFlex,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",wrap:!1},{default:()=>[t.map(l=>Vue.createVNode(Ha,{key:l.name,iconName:l.name,tooltipText:Vue.isRef(l.tooltip)?l.tooltip.value:l.tooltip,customClassName:l.iconClass,onClick:a.bind(this,l.name)},null)),n?Vue.createVNode(Ja,null,null):null]}),Vue.createVNode(naive.NFlex,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[s(Vue.createVNode(el,{onClick:l=>{l.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(l=>Vue.createVNode(naive.NButton,{class:"override-button__layout",quaternary:!0,size:"medium",key:l.name,onClick:a.bind(this,l.name)},{default:()=>[Vue.createVNode(C,{name:l.name,size:18,cursor:"pointer"},null)]})),Vue.createVNode(naive.NDropdown,{options:vt,onSelect:l=>r(String(l)),trigger:"click"},{default:()=>[Vue.createVNode(naive.NButton,{quaternary:!0,class:"override-button__layout"},{default:()=>[Vue.createVNode(C,{customClassName:"layout-header__method--icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),Vue.createVNode(naive.NDropdown,{options:ol(),onSelect:rl.bind(this),trigger:"click"},{default:()=>[Vue.createVNode(tl,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),Vue.createVNode(Xa,{show:this.showSettings,"onUpdate:show":l=>this.showSettings=l,placement:o},null)]})}}),il=Vue.defineComponent({name:"LayoutHeaderWrapper",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{size:[0,0]},{default:()=>[Vue.createVNode(sl,null,null)]})}}),cl={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},ul=gt('<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path stroke-dasharray="20" stroke-dashoffset="20" d="M21 3v18"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.3s" values="20;0"></animate></path><path stroke-dasharray="15" stroke-dashoffset="15" d="M3 12h13.5"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.4s" dur="0.2s" values="15;0"></animate></path><path stroke-dasharray="12" stroke-dashoffset="12" d="m17 12-7 7m7-7-7-7"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.6s" dur="0.2s" values="12;0"></animate></path></g>',1),dl=[ul];function pl(e,t){return ht(),ft("svg",cl,[...dl])}const ml={render:pl},fl={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},hl=gt('<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path stroke-dasharray="20" stroke-dashoffset="20" d="M3 3v18"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.3s" values="20;0"></animate></path><path stroke-dasharray="15" stroke-dashoffset="15" d="M21 12H7.5"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.4s" dur="0.2s" values="15;0"></animate></path><path stroke-dasharray="12" stroke-dashoffset="12" d="m7 12 7 7m-7-7 7-7"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.6s" dur="0.2s" values="12;0"></animate></path></g>',1),gl=[hl];function yl(e,t){return ht(),ft("svg",fl,[...gl])}const vl={render:yl};function bl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Vl=Vue.defineComponent({name:"AppMenuTag",setup(e,{expose:t}){const o=Vue.ref(null),{getMenuKey:n,getMenuTagOptions:a}=X(),{changeMenuModelValue:r}=ce(),{getRootPath:s}=te(),{maximize:l}=Bo(),{reload:i}=xl(),{close:u,closeAll:c,closeRight:m,closeLeft:f,closeOther:h,checkCloseLeft:y,checkCloseRight:v}=Al(),b=["closeAll","closeRight","closeLeft","closeOther","closeCurrentPage"];let d=1/0;const p={size:16},V=Vue.ref([{label:"刷新页面",key:"reloadCurrentPage",icon:()=>Vue.createVNode(C,{name:"reload",size:p.size},null)},{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>Vue.createVNode(C,{name:"close",size:p.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>Vue.createVNode(vl,{class:"menu-tag__icon"},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>Vue.createVNode(ml,{class:"menu-tag__icon"},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>Vue.createVNode(C,{name:"other",size:p.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>Vue.createVNode(C,{name:"resize_h",size:p.size},null),disabled:!1}]),S=Ve(16),x={closeCurrentPage:()=>{n.value!==s.value&&u(d)},reloadCurrentPage:()=>{i()},closeAll:()=>{c()},closeRight:()=>{m(d)},closeLeft:()=>{f(d)},closeOther:()=>{h(d)}},g=Vue.reactive({x:0,y:0,actionDropdownShow:!1}),_="menu_tag_data",R=Ce("globalMainLayoutLoad"),O="n-scrollbar-container",L=w=>{u(w)},A=(w,N)=>{V.value.forEach(z=>{if(z.key===w){z.disabled=N;return}})},I=w=>{g.actionDropdownShow=!1,r(w.fullPath,w)},W=()=>{const w=document.getElementById(S);if(w)return Array.from(w.childNodes).find(pe=>cn(pe,O).value)},ue=w=>{var z;const N=W();if(N){const pe=N.scrollLeft||0,Ge=w==="left"?Math.max(0,pe-200):pe+200;(z=o.value)==null||z.scrollTo({left:Ge,behavior:"smooth"})}},de=w=>{g.actionDropdownShow=!1;const N=x[w];N&&N()},Z=(w,N)=>{N.preventDefault(),g.actionDropdownShow=!1,d=w,Vue.nextTick(()=>{g.actionDropdownShow=!0,g.x=N.clientX,g.y=N.clientY})},Ue=()=>{const{closeable:w}=a.value[d]??{};A("closeCurrentPage",!w),v(d)?A("closeRight",!1):A("closeRight",!0),y(d)?A("closeLeft",!1):A("closeLeft",!0)},Wo=()=>{d=a.value.findIndex(N=>N.fullPath===n.value),Ue()},Ko=w=>{a.value.length>1&&w.fullPath!==s.value&&(w.closeable=!0)},Uo=w=>{w.fullPath!==n.value&&(w.closeable=!1)},qo=()=>{W()&&Vue.nextTick().then(()=>{var N;(N=o.value)==null||N.scrollTo({left:99999,behavior:"smooth"})})},qe=()=>{Vue.nextTick().then(()=>{const w=Se(`attr:${_}="${n.value}"`);if(w!=null&&w.length){const[N]=w;Vue.nextTick().then(()=>{var z;(z=o.value)==null||z.scrollTo({left:N.offsetLeft,behavior:"smooth"})})}})};return Vue.watch(()=>a.value,(w,N)=>{V.value.forEach(z=>{b.includes(z.key)&&(w.length>1?z.disabled=!1:z.disabled=!0)}),N!=null&&N.length&&(w.length>(N==null?void 0:N.length)?qo():w.length===(N==null?void 0:N.length)&&qe()),N===void 0&&qe()},{immediate:!0}),Vue.watch(()=>g.actionDropdownShow,w=>{var N;w&&((N=$e(Ue,100))==null||N())}),t({}),{getMenuTagOptions:a,closeCurrentMenuTag:L,getMenuKey:n,menuTagClick:I,moreOptions:V,scrollX:ue,scrollRef:o,uuidScrollBar:S,actionDropdownSelect:de,actionState:g,menuTagContextMenu:Z,setCurrentContextmenuIndex:Wo,menuTagMouseenter:Ko,menuTagMouseleave:Uo,MENU_TAG_DATA:_,iconConfig:{width:22,height:22},maximize:l,getRootPath:s,reload:i,globalMainLayoutLoad:R}},render(){let e;const{iconConfig:t,getRootPath:o,uuidScrollBar:n,getMenuTagOptions:a,MENU_TAG_DATA:r,globalMainLayoutLoad:s}=this,{maximize:l,closeCurrentMenuTag:i,scrollX:u,$t:c,menuTagClick:m,menuTagContextMenu:f,menuTagMouseenter:h,menuTagMouseleave:y,actionDropdownSelect:v,reload:b}=this;return Vue.createVNode(naive.NLayoutHeader,null,{default:()=>[Vue.createVNode("div",{class:"menu-tag"},[Vue.createVNode(naive.NDropdown,{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:v.bind(this),onClickoutside:()=>{this.actionState.actionDropdownShow=!1}},null),Vue.createVNode(naive.NFlex,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0,size:[16,0]},{default:()=>[Vue.createVNode(C,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__left-arrow",onClick:this.scrollX.bind(this,"left")},null),Vue.createVNode(naive.NScrollbar,Vue.mergeProps({xScrollable:!0,ref:"scrollRef"},{id:n}),{default:()=>[Vue.createVNode(naive.NFlex,{ref:"menuTagSpaceRef",class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},bl(e=a.map((d,p)=>Vue.createVNode(naive.NButton,Vue.mergeProps({key:d.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:d.fullPath===this.getMenuKey?"primary":"default"},{onClick:m.bind(this,d),onContextmenu:f.bind(this,p),onMouseenter:h.bind(this,d),onMouseleave:y.bind(this,d),[r]:d.path},{size:"small"}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("span",null,{default:()=>{const{breadcrumbLabel:V,meta:{i18nKey:S}}=d;return S?c(S):V}}),(d.closeable||a.length===1)&&d.fullPath!==o?Vue.createVNode(naive.NIcon,Vue.mergeProps({class:"menu-tag__btn-icon"},{onMousedown:i.bind(this,p)}),{default:()=>[Vue.createVNode(C,{name:"close",size:"14"},null)]}):Vue.createVNode(naive.NIcon,{class:[d.fullPath!==o?"menu-tag__btn-icon":"menu-tag__btn-icon--hidden"]},null)])})))?e:{default:()=>[e]})]}),Vue.createVNode(naive.NFlex,{class:"menu-tag__right-wrapper",align:"center",inline:!0,wrap:!1,size:[8,0]},{default:()=>[Vue.createVNode(C,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__right-arrow",onClick:u.bind(this,"right")},null),Vue.createVNode(C,{name:"fullscreen_fold",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:()=>{l(!0)}},null),Vue.createVNode(C,{name:"reload",width:t.width,height:t.height,customClassName:`menu-tag__right-setting ${s?"":"menu-tag__right-setting--spinning"}`,onClick:()=>{b()}},null),Vue.createVNode(Ro,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:20,keyboard:!1},{default:()=>[Vue.createVNode(C,{name:"more",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:this.setCurrentContextmenuIndex.bind(this)},null)]})]})]})])]})}}),Sl=Vue.defineComponent({name:"LayoutFeatureWrapper",setup(){return{}},render(){return Vue.createVNode(Vl,null,null)}}),_l=e=>{const t=Oe(e[0]),o=Oe(e[1]),n=Oe(e[2]);return Vue.computed(()=>({"--layout-content-height":`calc(100% - ${t.height.value}px - ${o.height.value}px - ${n.height.value}px)`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${o.height.value}px`,"--layout-footer-height":`${n.height.value}px`}))},nt=Jo(j.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),wl=()=>({setLockAppScreen:o=>{nt.value=o},getLockAppScreen:()=>nt.value}),Cl=Vue.defineComponent({name:"RLayout",setup(){const e=Vue.ref(),t=Vue.ref(),o=Vue.ref(),{getMenuTagSwitch:n,getCopyrightSwitch:a}=D(),{getLockAppScreen:r}=wl(),s=_l([e,t,o]);return{getMenuTagSwitch:n,cssVarsRef:s,getLockAppScreen:r,layoutSiderBarRef:e,layoutMenuTagRef:t,layoutFooterRef:o,getCopyrightSwitch:a}},render(){const{getMenuTagSwitch:e,cssVarsRef:t,getCopyrightSwitch:o}=this,{getLockAppScreen:n}=this;return n()?null:Vue.createVNode(naive.NLayout,{class:"r-layout-full",style:[t],hasSider:!0,embedded:!0},{default:()=>[Vue.createVNode(Ba,null,null),Vue.createVNode(naive.NLayoutContent,{class:"r-layout-full__viewer"},{default:()=>[Vue.createVNode(il,{ref:"layoutSiderBarRef"},null),e?Vue.createVNode(Sl,{ref:"layoutMenuTagRef"},null):null,Vue.createVNode(naive.NLayoutContent,{ref:Q,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[Vue.createVNode($o,null,null)]}),o?Vue.createVNode(Ga,{ref:"layoutFooterRef"},null):null]})]})}}),Nl=[{path:"/",name:"RLogin",component:()=>T(()=>import("./index-zXJ6zOVi.js"),__vite__mapDeps([55,1,2,3,4,5,6,7,8,9,14,11,10,42,12,13,26,15,16,17,18,19,20,21,22,23,56]))},{path:"/",name:"RLayout",component:Cl,children:Pa()}],we=VueRouter.createRouter({history:VueRouter.createWebHashHistory(),routes:Nl,scrollBehavior:e=>{Fr(e)}}),_s=e=>{e.use(we),Ea(we)},Ke=()=>we?{router:we}:{router:{}},rt="YYYY-MM-DD HH:mm:ss",Tl=()=>({locale:s=>{const l=Bn[s];l?K.locale(l):K.locale(Fn)},getStartAndEndOfDay:s=>{const{format:l=rt}=s??{},i=K(),u=i.startOf("day"),c=i.endOf("day"),m=i.format(l),f=u.format(l),h=c.format(l);return{today:i,startOfDay:u,endOfDay:c,formatToday:m,formatStartOfDay:f,formatEndOfDay:h}},format:(s,l)=>{const{format:i=rt}=l??{};return K(s).format(i)},isDayjs:s=>K.isDayjs(s),daysDiff:(s,l)=>{const i=K(s);return K(l).diff(i,"days")},isDateInRange:(s,l)=>{const{start:i,end:u}=l,c=K(s);return c.isAfter(i)&&c.isBefore(u)}});function Ne(e){const{width:t,height:o}=dt(e),n=Vue.ref(!1);return un(()=>{const{media:r=768}=e??{};n.value=t.value<=r}),{width:t,height:o,isTabletOrSmaller:Vue.readonly(n)}}let at=999,Le=!1;const H="ELEMENT-FULLSCREEN-RAY",{width:lt,height:st}=dt(),it=document.createElement("style"),Ol=(e,t)=>{const{beforeEnter:o,beforeExit:n,enter:a,exit:r,backgroundColor:s,zIndex:l,transition:i="all 0.3s var(--r-bezier)"}=t??{};let u=!1;const c=()=>{const v=q(e);if(!v)return;const{left:b,top:d}=v.getBoundingClientRect(),p=`
|
|
[${H}] {
|
|
position: fixed;
|
|
width: ${lt.value}px !important;
|
|
height: ${st.value}px !important;
|
|
transform: translate(-${b}px, -${d}px) !important;
|
|
transition: ${i};
|
|
z-index: ${B(l,"Null")||B(l,"Undefined")?at:l} !important;
|
|
background-color: ${s??null};
|
|
}
|
|
`;it.innerHTML=p,Le||document.head.appendChild(it)},m=()=>{const v=q(e);o==null||o(),v&&(v.getAttribute(H)||v.setAttribute(H,H),u||(u=!0,at+=1),Le||(c(),Le=!0),v.style.transition=i,a==null||a())},f=()=>{n==null||n();const v=q(e);v&&v.removeAttribute(H),r==null||r()},h=()=>{const v=q(e);v&&(v.getAttribute(H)?f():m())},y=Vue.watch(()=>[lt.value,st.value],c);return We(()=>{const v=q(e);v&&v.removeAttribute(H),y()}),{enter:m,exit:f,toggleFullscreen:h}},Me={svg:oe.toSvg,png:oe.toPng,jpeg:oe.toJpeg,blob:oe.toBlob,pixelData:oe.toPixelData},ws=(e,t)=>{const{beforeCreate:o,created:n,createdError:a,finally:r,imageType:s}=t??{};return{create:i=>new Promise((u,c)=>{var f;const m=q(e);if(o==null||o(m),!m)return a==null||a(),c("useDomToImage: element is undefined.");(f=Me[i??s??"jpeg"])==null||f.call(Me,m,t).then(h=>(n==null||n(h,m),u(h))).catch(h=>(a==null||a(h),c(h))).finally(()=>{r==null||r()})})}},Cs=(e,t)=>({print:()=>{const n=q(e)||e;Qo({...Be(t,["printable"]),printable:n})}}),kl={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},Ns=(e,t)=>{const o=Vue.ref(e),n=Be(t,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size"]),a={onUpdatePage:d=>{var p;r.value.page=d,(p=o.value)==null||p.call(o)},onUpdatePageSize:d=>{var p;r.value.pageSize=d,r.value.page=1,(p=o.value)==null||p.call(o)}},r=Vue.ref(Object.assign({},kl,n,a)),s=r.value.onUpdatePage,l=r.value.onUpdatePageSize,i=()=>r.value.itemCount,u=d=>{r.value.itemCount=d},c=()=>r.value.page,m=d=>{s(d)},f=()=>r.value.pageSize,h=d=>{l(d)},y=()=>r.value,v=e,b=d=>{o.value=d};return We(()=>{o.value=void 0}),[r,{updatePage:s,updatePageSize:l,getItemCount:i,setItemCount:u,getPage:c,setPage:m,getPageSize:f,setPageSize:h,getPagination:y,getCallback:v,setCallback:b}]},Bo=()=>({isLayoutContentMaximized:Vue.computed(()=>Ce("layoutContentMaximize").value),maximize:(o,n)=>{var l;const{scrollToOptions:a}=n??{},r=q(Q),{toggleFullscreen:s}=Ol(r,n);G("layoutContentMaximize",o),s(),a&&o&&((l=Q==null?void 0:Q.value)==null||l.scrollTo(a))}}),xl=()=>({reload:(n=800)=>{G("globalMainLayoutLoad",!1),setTimeout(()=>G("globalMainLayoutLoad",!0),n)},openSpin:()=>{G("layoutContentSpinning",!0)},closeSpin:()=>{G("layoutContentSpinning",!1)}}),Ts=()=>({setWatermarkContent:a=>{const{getWatermarkConfig:r}=D(),s=Object.assign(r.value,{content:a}),{updateSettingState:l}=E();l("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:a}=E();a("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:a}=E();a("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:a}=D(),{updateSettingState:r}=E();r("watermarkSwitch",!a.value)}}),ze=e=>{const{getPrimaryColorOverride:t}=D(),{updateSettingState:o}=E();o("primaryColorOverride",e?Object.assign({},t.value,$.appNaiveUIThemeOverrides.dark,$.appNaiveUIThemeOverridesCommon.dark):Object.assign({},t.value,$.appNaiveUIThemeOverrides.light,$.appNaiveUIThemeOverridesCommon.light))},Rl=()=>{const e=()=>{const{getAppTheme:a}=D(),{t:r}=se();return{theme:a.value,themeLabel:a.value?r("headerSettingOptions.ThemeOptions.Dark"):r("headerSettingOptions.ThemeOptions.Light")}};return{changeDarkTheme:()=>{const{updateSettingState:a}=E();a("appTheme",!0),ze(!0)},changeLightTheme:()=>{const{updateSettingState:a}=E();a("appTheme",!1),ze(!1)},toggleTheme:()=>{const{theme:a}=e(),{updateSettingState:r}=E();r("appTheme",!a),ze(!a)},getAppTheme:e}},J=(e,t)=>{const{getMenuTagOptions:o}=X();if(typeof e=="number"){if(isNaN(e)){console.warn(`${t}: The ${e} is NaN, expect number.`);return}if(e>o.value.length||e<-1){console.warn(`${t}: The incoming index ${e} did not match the corresponding item.`);return}return{option:o.value[e],index:e}}else if(typeof e=="string"){const n=o.value.findIndex(a=>a.fullPath===e);return n>-1?{option:o.value[n],index:n}:console.warn(`${t}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:n}=e,a=o.value.findIndex(r=>r.fullPath===n);if(a===-1){console.warn(`${t}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:a}}};function Al(){const{getMenuTagOptions:e,getMenuKey:t}=X(),{changeMenuModelValue:o,spliceMenTagOptions:n,setMenuTagOptions:a,resolveOption:r}=ce(),s=()=>e.value.findIndex(y=>y.fullPath===t.value);return{close:y=>{const v=J(y,"close");if(e.value.length!==1&&v){const{index:b,option:d}=v;if(n(b),d.fullPath===t.value){const p=e.value[b-1];p&&o(p.fullPath,p)}}},closeAll:()=>{n(0,e.value.length);const{getRootPath:y}=te(),{router:{getRoutes:v}}=Ke(),b=v().find(d=>d.path===y.value);if(b){const d=be(b,["children","meta","path","name","redirect"]),p=r(d);o(p.path,r({...p,fullPath:p.path}))}},closeRight:y=>{const v=J(y,"closeRight");if(v){const{option:b,index:d}=v,p=e.value.length-d,V=s();n(d+1,p),d<=V&&t.value!==b.fullPath&&o(b.fullPath,b)}},closeLeft:y=>{const v=J(y,"closeLeft");if(v){const{option:b,index:d}=v,p=s();n(0,d),p<=d&&t.value!==b.fullPath&&o(b.fullPath,b)}},closeOther:y=>{const v=J(y,"closeOther");if(v){const{option:b}=v;t.value!==b.fullPath?(n(0,e.value.length),o(b.fullPath,b)):a(b,!1)}},getCurrentTagIndex:s,checkCloseRight:y=>{const v=J(y,"checkCloseRight");if(v){const{index:b}=v,d=e.value.length-1;return!(b>=d)}return!1},checkCloseLeft:y=>{const v=J(y,"checkCloseRight");if(v){const{index:b}=v,d=e.value.length-1;return b===0?!1:b>0&&d>0}return!1}}}function Os(){return{navigationTo:(t,o)=>{const{router:{getRoutes:n,push:a,replace:r}}=Ke(),{isPush:s=!0,query:l}=o||{},i=u=>s?a({path:u,query:l}):r({path:u,query:l});if(typeof t=="number"){if(isNaN(t)){console.warn(`[navigationTo]: The ${t} is NaN, expect number.`);return}const{getMenuOptions:u}=X();if(t>u.value.length){console.warn(`[navigationTo]: The current ${t} exceeds the maximum number of menus.`);return}const c=u.value[t],m=f=>{if(f.children&&f.children.length>0){const{children:[h]}=f;m(h);return}i(f.fullPath)};m(c)}else if(typeof t=="string"){const u=n().find(c=>c.path===t);u?i(u.path):console.warn(`[navigationTo]: The path "${t}" is not found.`)}else i(t.fullPath)}}}function te(){const{getAppRootRoute:e}=D(),{updateSettingState:t}=E(),o=e,n=Vue.computed(()=>e.value.path),a=Vue.computed(()=>e.value.name);return{getRootRoute:o,getRootPath:n,getRootName:a,setRootRoute:s=>{t("appRootRoute",Object.assign({},e.value,s))}}}const Pl=(e,t)=>{const{show:o,...n}=t;e.meta.extra=Object.assign({},e.meta.extra,{...n,show:o}),e.extra=Lo(e)},ct=(e,t,o)=>{const n=zo(e,t);n&&Pl(n,o)},je=(e,t,o)=>{const{getMenuOptions:n}=X();if(typeof e=="string")ct(n.value,e,o);else if(B(e,"Object")){const{fullPath:a}=e;ct(n.value,a,o)}else console.warn(`[useBadge ${t}]: target expect string or object.`)};function ks(){return{hidden:n=>{je(n,"hidden",{show:!1})},show:n=>{je(n,"show",{show:!0})},update:(n,a)=>{je(n,"update",a)}}}const xs=()=>{const e=bt.value,{scrollTo:t}=e||{};if(!t)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return t},Fo=()=>le(j.localeLanguage,"localStorage",{defaultValue:Dn});export{Rl as $,ts as A,ss as B,ys as C,Fn as D,gs as E,cs as F,Ns as G,is as H,ms as I,Wa as J,Ss as K,bt as L,Ql as M,ns as N,ds as O,vs as P,fs as Q,us as R,Da as S,Ya as T,hs as U,Ro as V,Bo as W,Os as X,xl as Y,Ts as Z,T as _,Cs as a,ks as a0,ke as a1,Ke as a2,xs as b,os as c,D as d,j as e,E as f,Jl as g,wl as h,Ma as i,Ne as j,tl as k,Ce as l,es as m,as as n,_s as o,te as p,se as q,ps as r,Vs as s,C as t,ws as u,vt as v,Zl as w,bs as x,rs as y,ls as z};
|