var e=Object.defineProperty,a=Object.defineProperties,r=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,n=(a,r,t)=>r in a?e(a,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[r]=t;import{k as l,d as i,m as d,o as p,s as c,v as m,G as y,c as g,y as b,aI as u,aK as f,aL as O,aN as v,A as j,aO as k,aQ as h}from"./index.5c1bd6c6.js";import{M as w,a as I,S as K}from"./Skeleton.be316f96.js";const P={class:u(["md-detail"])},D={key:2,class:"md-content-wraper"},S={key:3,class:"md-anchor-wraper"},x=i((E=((e,a)=>{for(var r in a||(a={}))o.call(a,r)&&n(e,r,a[r]);if(t)for(var r of t(a))s.call(a,r)&&n(e,r,a[r]);return e})({},{name:"MdDetail"}),a(E,r({setup(e){const a=f(),r=d(),t=p({detail:"",title:"",loading:!1,error:{config:{},isAxiosError:!1,toJSON:()=>({}),name:"",message:""}});return(()=>{const e=a.query;t.loading=!0,O.getDocDetail({appKey:e.appKey?e.appKey:r.appKey,path:e.key,lang:e.lang?e.lang:r.lang}).then((a=>{t.title=decodeURIComponent(e.title),t.detail=a.data.content,t.loading=!1})).catch((e=>{t.loading=!1,v(e).then((a=>{!1===a&&(t.error=e)}))}))})(),(e,a)=>(j(),c("div",P,[m(t).loading?(j(),y(K,{key:0})):!m(t).loading&&(m(t).error.response&&200!=m(t).error.response.status||!m(t).error.response&&m(t).error.message)?(j(),y(m(k),{key:1,error:m(t).error},null,8,["error"])):(j(),c("div",D,[g(m(w),{md:m(t).detail},null,8,["md"])])),m(r).device==m(h).MOBILE||m(t).loading?b("",!0):(j(),c("div",S,[g(m(I),{md:m(t).detail},null,8,["md"])]))]))}}))));var E,M=l(x,[["__scopeId","data-v-8aa3270a"]]);export{M as default};
