import{z as e,_ as t,r as a,c as i,w as n,o,a as s,b as r,d as l,F as c,e as h,f as d,K as u,g as p,h as m,i as g,j as f,A as P,k as _,E as v,l as L,m as b}from"./vendor.c3726933.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const a of e)if("childList"===a.type)for(const e of a.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerpolicy&&(t.referrerPolicy=e.referrerpolicy),"use-credentials"===e.crossorigin?t.credentials="include":"anonymous"===e.crossorigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const y={name:"app",components:{},data:()=>({locale:e,localeEl:t}),methods:{}};y.render=function(e,t,r,l,c,h){const d=a("router-view"),u=a("a-config-provider"),p=a("el-config-provider");return o(),i(p,{locale:c.localeEl},{default:n((()=>[s(u,{locale:c.locale},{default:n((()=>[s(d)])),_:1},8,["locale"])])),_:1},8,["locale"])};const E={},T=function(e,t){return t&&0!==t.length?Promise.all(t.map((e=>{if((e=`${e}`)in E)return;E[e]=!0;const t=e.endsWith(".css"),a=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${a}`))return;const i=document.createElement("link");return i.rel=t?"stylesheet":"modulepreload",t||(i.as="script",i.crossOrigin=""),i.href=e,document.head.appendChild(i),t?new Promise(((e,t)=>{i.addEventListener("load",e),i.addEventListener("error",t)})):void 0}))).then((()=>e())):e()};const w={name:"PageTableView",components:{},data:()=>({pageList:[],linkList:[],activePage:"",multiPage:!0,ignoreParamPath:["/data/export"]}),computed:{pageTabNameMap(){return this.$store.state.pageTabNameMap}},created(){let{name:e,path:t,fullPath:a}=this.$route;this.pageList.push({name:e,path:t,fullPath:a});let i=this.getRouteRealPath(this.$route);this.linkList.push(i),this.activePage=i,this.$router.push(this.$route.fullPath)},watch:{$route:function(e,t){let a=this.getRouteRealPath(e);if(this.activePage=a,this.linkList.indexOf(a)<0){this.linkList.push(a);let{name:t,path:i,fullPath:n}=e;this.pageList.push({name:t,path:i,fullPath:n})}this.pageList.find((e=>this.getRouteRealPath(e)===a)).fullPath=e.fullPath}},methods:{isIgnoreParamPath(e){return this.ignoreParamPath.indexOf(e)>=0},getRouteRealPath(e){return this.isIgnoreParamPath(e.path)?e.path:e.fullPath},changePage(e){let t=this.pageList.find((t=>t.fullPath===e));this.activePage=this.getRouteRealPath(t),this.$router.push(t.fullPath)},editPage(e,t){this[t](e)},removePageTab(e){if(1===this.pageList.length)return void this.$message.warning("这是最后一页,不能再关闭了啦");this.pageList=this.pageList.filter((t=>this.getRouteRealPath(t)!==e)),this.linkList=this.linkList.filter((t=>t!==e));let t=this.linkList.indexOf(this.activePage);t<0&&(t=this.linkList.length-1,this.activePage=this.linkList[t],this.$router.push(this.activePage))}}},k={class:"page-layout"},R={class:"page-body"};w.render=function(e,t,p,m,g,f){const P=a("a-tab-pane"),_=a("a-tabs"),v=a("router-view");return o(),r("div",k,[s(_,{type:"editable-card","hide-add":"",activeKey:g.activePage,"onUpdate:activeKey":t[0]||(t[0]=e=>g.activePage=e),onTabClick:f.changePage,onEdit:f.removePageTab,style:{padding:"5px 10px 0"}},{default:n((()=>[(o(!0),r(c,null,h(g.pageList,(e=>(o(),i(P,{closable:"",tab:f.pageTabNameMap[e.fullPath]||e.name,name:f.getRouteRealPath(e),fullPath:e.fullPath,key:e.fullPath},null,8,["tab","name","fullPath"])))),128))])),_:1},8,["activeKey","onTabClick","onEdit"]),l("div",R,[s(v,null,{default:n((({Component:e,route:t})=>[(o(),i(u,null,[(o(),i(d(e),{key:t.fullPath}))],1024))])),_:1})])])};const D={name:"EmptyLayout",components:{},props:[],data:()=>({}),methods:{}};D.render=function(e,t,n,s,r,l){const c=a("router-view");return o(),i(c)};let O=[{path:"/",name:"主页",component:()=>T((()=>import("./GlobalLayout.990df290.js")),["assets/GlobalLayout.990df290.js","assets/custom.192c812b.js","assets/vendor.c3726933.js"]),redirect:"/doc/info",children:[{path:"/doc",name:"系统配置",component:w,children:[{path:"/doc/info",name:"文档信息",meta:{icon:"InfoCircleOutlined"},component:()=>T((()=>import("./DocInfo.ad2ee1ca.js")),["assets/DocInfo.ad2ee1ca.js","assets/vendor.c3726933.js"])},{path:"/doc/manage",name:"文档地址管理",meta:{icon:"FileTextOutlined"},component:()=>T((()=>import("./DocManage.dac69e82.js")),["assets/DocManage.dac69e82.js","assets/custom.192c812b.js","assets/vendor.c3726933.js"])},{path:"/doc/setting",name:"系统配置",meta:{icon:"SettingOutlined"},component:D,children:[{path:"/doc/setting/globalParam",name:"全局参数",component:()=>T((()=>import("./GlobalParam.276e8b3f.js")),["assets/GlobalParam.276e8b3f.js","assets/custom.192c812b.js","assets/vendor.c3726933.js"])},{path:"/doc/setting/view",name:"展示配置",meta:{hidden:!0},component:()=>T((()=>import("./SettingView.46eb4297.js")),["assets/SettingView.46eb4297.js","assets/vendor.c3726933.js"])}]},{path:"/doc/view",name:"文档展示",meta:{hidden:!0},component:()=>T((()=>import("./DocView.5608f466.js")),["assets/DocView.5608f466.js","assets/vendor.c3726933.js"])}]}]}];var I=p({state:()=>({docChangedNum:1,userInfo:{},pageTabNameMap:{},swaggerDoc:{},swaggerDefinitions:{},swaggerTreePathMap:{},methodStatistic:{}}),mutations:{setUserInfo(e,t){e.userInfo=t},addDocChangedNum(e){e.docChangedNum++},setSwaggerDoc(e,t){e.swaggerDoc=t,e.swaggerDefinitions=t.definitions||{}},setSwaggerTreePathMap(e,t){e.swaggerTreePathMap=t},setMethodStatistic(e,t){e.methodStatistic=t},addTableName(e,t){let a=Object.assign({},e.pageTabNameMap);a[t.key]=t.val,e.pageTabNameMap=a}}});const N=m({history:g(),routes:O}),M=f(y);M.config.productionTip=!1,M.use(P),M.use(N),M.use(I),M.component(_.name,_),M.component(v.name,v),M.component(L.name,L),M.mount("#app"),M.directive("highlight",{updated(e){e.querySelectorAll("pre code").forEach((e=>{b.highlightBlock(e)}))}});