import{z as R,_ as T,r as h,o as l,c as p,w as m,a as f,b as P,F as $,d as O,e as x,f as v,K as b,g as C,h as N,i as A,j as D,A as I,k as y,E as L,l as k,m as S}from"./vendor.d375296a.js";const M=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const n of a)if(n.type==="childList")for(const i of n.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function o(a){const n={};return a.integrity&&(n.integrity=a.integrity),a.referrerpolicy&&(n.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?n.credentials="include":a.crossorigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function r(a){if(a.ep)return;a.ep=!0;const n=o(a);fetch(a.href,n)}};M();var _=(e,t)=>{for(const[o,r]of t)e[o]=r;return e};const V={name:"app",components:{},data(){return{locale:R,localeEl:T}},methods:{}};function j(e,t,o,r,a,n){const i=h("router-view"),u=h("a-config-provider"),d=h("el-config-provider");return l(),p(d,{locale:a.localeEl},{default:m(()=>[f(u,{locale:a.locale},{default:m(()=>[f(i)]),_:1},8,["locale"])]),_:1},8,["locale"])}var K=_(V,[["render",j]]);const B="modulepreload",E={},F="",g=function(t,o){return!o||o.length===0?t():Promise.all(o.map(r=>{if(r=`${F}${r}`,r in E)return;E[r]=!0;const a=r.endsWith(".css"),n=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${n}`))return;const i=document.createElement("link");if(i.rel=a?"stylesheet":B,a||(i.as="script",i.crossOrigin=""),i.href=r,document.head.appendChild(i),a)return new Promise((u,d)=>{i.addEventListener("load",u),i.addEventListener("error",d)})})).then(()=>t())};const q={name:"PageTableView",components:{},data(){return{pageList:[],linkList:[],activePage:"",multiPage:!0,ignoreParamPath:["/data/export"]}},computed:{pageTabNameMap(){return this.$store.state.pageTabNameMap}},created(){let{name:e,path:t,fullPath:o}=this.$route;this.pageList.push({name:e,path:t,fullPath:o});let r=this.getRouteRealPath(this.$route);this.linkList.push(r),this.activePage=r,this.$router.push(this.$route.fullPath)},watch:{$route:function(e,t){let o=this.getRouteRealPath(e);if(this.activePage=o,this.linkList.indexOf(o)<0){this.linkList.push(o);let{name:a,path:n,fullPath:i}=e;this.pageList.push({name:a,path:n,fullPath:i})}let r=this.pageList.find(a=>this.getRouteRealPath(a)===o);r.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(o=>o.fullPath===e);this.activePage=this.getRouteRealPath(t),this.$router.push(t.fullPath)},editPage(e,t){this[t](e)},removePageTab(e){if(this.pageList.length===1){this.$message.warning("\u8FD9\u662F\u6700\u540E\u4E00\u9875\uFF0C\u4E0D\u80FD\u518D\u5173\u95ED\u4E86\u5566");return}this.pageList=this.pageList.filter(o=>this.getRouteRealPath(o)!==e),this.linkList=this.linkList.filter(o=>o!==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))}}},G={class:"page-layout"},z={class:"page-body"};function H(e,t,o,r,a,n){const i=h("a-tab-pane"),u=h("a-tabs"),d=h("router-view");return l(),P("div",G,[f(u,{type:"editable-card","hide-add":"",activeKey:a.activePage,"onUpdate:activeKey":t[0]||(t[0]=s=>a.activePage=s),onTabClick:n.changePage,onEdit:n.removePageTab,style:{padding:"5px 10px 0"}},{default:m(()=>[(l(!0),P($,null,O(a.pageList,s=>(l(),p(i,{closable:"",tab:n.pageTabNameMap[s.fullPath]||s.name,name:n.getRouteRealPath(s),fullPath:s.fullPath,key:s.fullPath},null,8,["tab","name","fullPath"]))),128))]),_:1},8,["activeKey","onTabClick","onEdit"]),x("div",z,[f(d,null,{default:m(({Component:s,route:w})=>[(l(),p(b,null,[(l(),p(v(s),{key:w.fullPath}))],1024))]),_:1})])])}var U=_(q,[["render",H]]);const W={name:"EmptyLayout",components:{},props:[],data(){return{}},methods:{}};function J(e,t,o,r,a,n){const i=h("router-view");return l(),p(i,null,{default:m(({Component:u,route:d})=>[(l(),p(b,null,[(l(),p(v(u),{key:d.fullPath}))],1024))]),_:1})}var Q=_(W,[["render",J]]);let X=[{path:"/",name:"\u4E3B\u9875",component:()=>g(()=>import("./GlobalLayout.6188fd10.js"),["assets/GlobalLayout.6188fd10.js","assets/custom.b89cb45f.js","assets/vendor.d375296a.js"]),redirect:"/doc/info",children:[{path:"/doc",name:"\u7CFB\u7EDF\u914D\u7F6E",component:U,children:[{path:"/doc/info",name:"\u6587\u6863\u4FE1\u606F",meta:{icon:"InfoCircleOutlined"},component:()=>g(()=>import("./DocInfo.b16861f1.js"),["assets/DocInfo.b16861f1.js","assets/vendor.d375296a.js"])},{path:"/doc/manage",name:"\u6587\u6863\u5730\u5740\u7BA1\u7406",meta:{icon:"FileTextOutlined"},component:()=>g(()=>import("./DocManage.0c890068.js"),["assets/DocManage.0c890068.js","assets/custom.b89cb45f.js","assets/vendor.d375296a.js"])},{path:"/doc/setting",name:"\u7CFB\u7EDF\u914D\u7F6E",meta:{icon:"SettingOutlined"},component:Q,children:[{path:"/doc/setting/globalParam",name:"\u5168\u5C40\u53C2\u6570",component:()=>g(()=>import("./GlobalParam.179cba30.js"),["assets/GlobalParam.179cba30.js","assets/custom.b89cb45f.js","assets/vendor.d375296a.js"])},{path:"/doc/setting/view",name:"\u5C55\u793A\u914D\u7F6E",meta:{hidden:!0},component:()=>g(()=>import("./SettingView.345fc0c8.js"),["assets/SettingView.345fc0c8.js","assets/vendor.d375296a.js"])}]},{path:"/doc/view",name:"\u6587\u6863\u5C55\u793A",meta:{hidden:!0},component:()=>g(()=>import("./DocView.af54dda0.js"),["assets/DocView.af54dda0.js","assets/vendor.d375296a.js","assets/custom.b89cb45f.js"])}]}]}];var Y=C({state(){return{docChangedNum:1,userInfo:{},pageTabNameMap:{},swaggerDoc:{},swaggerDefinitions:{},swaggerTreePathMap:{},methodStatistic:{},swaggerResource:{},globalParam:[]}},mutations:{setUserInfo(e,t){e.userInfo=t},setGlobalParam(e,t){e.globalParam=t},setSwaggerResource(e,t){e.swaggerResource=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 o=Object.assign({},e.pageTabNameMap);o[t.key]=t.val,e.pageTabNameMap=o}}});const Z=N({history:A(),routes:X}),c=D(K);c.config.productionTip=!1;c.use(I);c.use(Z);c.use(Y);c.component(y.name,y);c.component(L.name,L);c.component(k.name,k);c.mount("#app");c.directive("highlight",{updated(e){e.querySelectorAll("pre code").forEach(o=>{S.highlightBlock(o)})}});export{_};