import{d as v,D as N,c as x,b as t,a as r,g as k,w as o,Z as D,u as d,F as B,i as E,a4 as X,P as S,o as u,h as n,a5 as F,t as w,a6 as T,a7 as I,a8 as M,C as P,G as V}from"./index-DqVhJ65C.js";/* empty css                         *//* empty css                  *//* empty css                     *//* empty css                  */const j={class:"bg-white border-b border-gray-100 sticky top-0 z-50"},z={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},A={class:"flex justify-between h-16 items-center"},Y={class:"hidden md:ml-6 md:flex md:space-x-8"},G={class:"flex items-center space-x-4"},L={class:"flex items-center cursor-pointer"},O={class:"ml-2 text-sm text-gray-700"},et=v({__name:"Navbar",setup(c){const a=N(),f=S(),s=()=>{M.confirm("确定要退出登录吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{a.logOut(),f.push("/login"),P({message:"登出完成",type:"success",plain:!0})})};return(l,e)=>{const p=k("router-link"),b=F,m=I,$=T,C=X,g=E;return u(),x("nav",j,[t("div",z,[t("div",A,[e[12]||(e[12]=t("div",{class:"flex-shrink-0 flex items-center"},[t("span",{class:"ml-2 text-xl font-bold text-gray-800"},"NewDNS")],-1)),t("div",Y,[r(p,{to:"/",class:"text-gray-600 hover:text-primary px-3 py-2 rounded-md text-sm font-medium"},{default:o(()=>[...e[4]||(e[4]=[n(" 首页 ",-1)])]),_:1}),r(p,{to:"/store",class:"text-gray-600 hover:text-primary px-3 py-2 rounded-md text-sm font-medium"},{default:o(()=>[...e[5]||(e[5]=[n(" 域名商城 ",-1)])]),_:1}),r(p,{to:"/help",class:"text-gray-600 hover:text-primary px-3 py-2 rounded-md text-sm font-medium"},{default:o(()=>[...e[6]||(e[6]=[n(" 帮助中心 ",-1)])]),_:1})]),t("div",G,[d(a).accessToken?(u(),D(C,{key:0,trigger:"click"},{dropdown:o(()=>[r($,null,{default:o(()=>[r(m,{onClick:e[0]||(e[0]=i=>l.$router.push("/dashboard"))},{default:o(()=>[...e[7]||(e[7]=[n(" 个人中心 ",-1)])]),_:1}),r(m,{onClick:e[1]||(e[1]=i=>l.$router.push("/dashboard/domains"))},{default:o(()=>[...e[8]||(e[8]=[n(" 域名管理 ",-1)])]),_:1}),r(m,{divided:"",onClick:s},{default:o(()=>[...e[9]||(e[9]=[n(" 退出登录 ",-1)])]),_:1})]),_:1})]),default:o(()=>{var i,y,_;return[t("div",L,[r(b,{size:32,src:(i=d(a).info)==null?void 0:i.avatar},null,8,["src"]),t("span",O,w(((y=d(a).info)==null?void 0:y.nickname)||((_=d(a).info)==null?void 0:_.userName)),1)])]}),_:1})):(u(),x(B,{key:1},[r(g,{onClick:e[2]||(e[2]=i=>l.$router.push("/login")),plain:""},{default:o(()=>[...e[10]||(e[10]=[n("登录",-1)])]),_:1}),r(g,{type:"primary",onClick:e[3]||(e[3]=i=>l.$router.push("/register"))},{default:o(()=>[...e[11]||(e[11]=[n("注册",-1)])]),_:1})],64))])])])])}}}),R={class:"bg-gray-50 border-t border-gray-100 py-12"},U={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},Z={class:"grid grid-cols-1 md:grid-cols-4 gap-8"},q={class:"mt-4 space-y-2 text-sm text-gray-500"},H={class:"mt-4 space-y-2 text-sm text-gray-500"},J={class:"mt-8 border-t border-gray-100 pt-8 flex flex-col md:flex-row justify-between items-center text-sm text-gray-400"},st=v({__name:"Footer",setup(c){const a=V(()=>new Date().getFullYear());return(f,s)=>{const l=k("router-link");return u(),x("footer",R,[t("div",U,[t("div",Z,[s[8]||(s[8]=t("div",{class:"col-span-1 md:col-span-2"},[t("h3",{class:"text-xl font-bold text-gray-800"},"NewDNS"),t("p",{class:"mt-4 text-gray-500 text-sm leading-relaxed max-w-xs"}," 专业的二级域名分发平台，提供稳定、快速、易用的域名解析服务。助您快速上线您的项目。 ")],-1)),t("div",null,[s[3]||(s[3]=t("h4",{class:"text-sm font-semibold text-gray-900 uppercase tracking-wider"}," 产品信息 ",-1)),t("ul",q,[t("li",null,[r(l,{to:"/store"},{default:o(()=>[...s[0]||(s[0]=[n("域名商城",-1)])]),_:1})]),t("li",null,[r(l,{to:"/pricing"},{default:o(()=>[...s[1]||(s[1]=[n("定价方案",-1)])]),_:1})]),t("li",null,[r(l,{to:"/api-doc"},{default:o(()=>[...s[2]||(s[2]=[n("API文档",-1)])]),_:1})])])]),t("div",null,[s[7]||(s[7]=t("h4",{class:"text-sm font-semibold text-gray-900 uppercase tracking-wider"}," 支持与声明 ",-1)),t("ul",H,[t("li",null,[r(l,{to:"/tos"},{default:o(()=>[...s[4]||(s[4]=[n("用户协议",-1)])]),_:1})]),t("li",null,[r(l,{to:"/privacy"},{default:o(()=>[...s[5]||(s[5]=[n("隐私政策",-1)])]),_:1})]),t("li",null,[r(l,{to:"/tickets"},{default:o(()=>[...s[6]||(s[6]=[n("工单系统",-1)])]),_:1})])])])]),t("div",J,[t("p",null,"Copyright © "+w(a.value)+" 新云DNS系统",1),s[9]||(s[9]=t("p",null,"备案号: 粤ICP备XXXXXXXX号",-1))])])])}}});export{et as _,st as a};
