import{s as x}from"./app-BXOcK_o1.js";import{T as g}from"./app-CNHjdV6U.js";import{_ as p,r as f,o as c,c as h,w as d,a as e,g as o,t as r,b as a,h as _,u as b,M as $,N,f as L,L as y,F as v,j as I}from"./app-SC54XQDl.js";import{T as n}from"./app-CS3AUTAk.js";const m={hostURL(t){return t},assetURL(t){return"/portal/"+t},url(t){return t==""?"/":t=="/"?"/portal":(t[0]=="/"&&(t=t.substring(1)),"/portal/"+t)}},M=t=>($("data-v-b8aaff51"),t=t(),N(),t),S={class:"pl-4"},k={key:0,class:"font-bold"},w={key:1,href:"/portal"},T=["src"],O={class:"flex flex-wrap items-center gap-4"},j=M(()=>e("a",{href:"/dashboard"},[e("span",null,"控制台")],-1)),B={href:"/login"},C={key:0},D={key:1},F={__name:"MainMenu",props:{ctx:Object,active:String},setup(t){const s=t,l=f([{label:"网站首页",url:m.url("/"),class:s.active=="index"?"active":""},{label:"产品",class:s.active=="products"?"active":"",items:[{label:"CDN",url:m.url("/products/cdn"),class:window.location.toString().indexOf("cdn")>0?"active":""}]},{label:"文档",url:"/docs",class:s.active=="docs"?"active":""}]);return(u,i)=>(c(),h(b(x),{text:"",model:l.value},{start:d(()=>[e("div",S,[t.ctx.logoURL.length==0?(c(),o("span",k,r(t.ctx.productName),1)):(c(),o("a",w,[e("img",{src:t.ctx.logoURL,alt:"[LOGO]",class:"logo-image"},null,8,T)]))])]),end:d(()=>[e("div",null,[e("div",O,[j,e("a",B,[a(g,null,{default:d(()=>[t.ctx.userIsLogged?_("",!0):(c(),o("span",C,"登录/注册")),t.ctx.userIsLogged?(c(),o("span",D,"进入")):_("",!0)]),_:1})])])])]),_:1},8,["model"]))}},R=p(F,[["__scopeId","data-v-b8aaff51"]]),U={class:"page-footer"},V={class:"site-map grid grid-cols-4"},P={class:"col"},E={class:"col"},G={class:"col"},Y={class:"col"},q={class:"copyright-box"},z={__name:"Footer",props:{data:null,ctx:Object},setup(t){const s=f("");return s.value=new Date().getFullYear().toString(),(l,u)=>(c(),o(v,null,[L(r(t.ctx.supportPosts.value)+" ",1),e("div",U,[e("div",V,[e("div",P,[a(n,{items:[{label:"产品",items:[{label:"CDN",url:"/portal/products/cdn"}]}]})]),e("div",E,[a(n,{model:[{label:"价格",items:[{label:"CDN套餐",url:"/plans"}]}]})]),e("div",G,[a(n,{items:[{label:"文档",items:[{label:"文档中心",url:"/docs"}]}]})]),e("div",Y,[a(n,{items:[{label:"支持与服务",items:t.ctx.supportPosts.map(function(i){return{label:i.subject,url:"/portal/post?postId="+i.id}})}]},null,8,["items"])])]),a(y),e("div",q," © "+r(s.value)+" "+r(t.ctx.productName),1)])],64))}},A=p(z,[["__scopeId","data-v-6022ba6c"]]),W={__name:"PortalLayout",props:{activeTopMenu:null,ctx:Object},setup(t){const s=t;return(l,u)=>(c(),o(v,null,[a(R,{active:s.activeTopMenu,ctx:t.ctx},null,8,["active","ctx"]),e("div",null,[I(l.$slots,"default")]),a(A,{ctx:t.ctx},null,8,["ctx"])],64))}};export{W as _,m as c};
