import{C as v}from"./app-CLawzVMq.js";import{r as l,o as n,g as r,f as d,i as x,a,b as i,w as f,n as g,h as o,t as p,c as h,L as C,j as I,F as _}from"./app-BYcXwl4U.js";import{u as y}from"./app-a6cKceqE.js";import{_ as b}from"./app-DxjODhok.js";const k=a("span",{style:{"font-size":"0.95em"}},"批量",-1),M=a("i",{class:"icon copy small"},null,-1),A={__name:"ServerConfigCopyLink",props:["v-server-id","v-config-code"],setup(e){const t=y(),s=e,{serverId:u,configCode:m}=function(){return{serverId:l(s.vServerId),configCode:l(s.vConfigCode)}}(),c=function(){t.popup("/servers/server/settings/copy?serverId="+u.value+"&configCode="+m.value,{callback:function(){t.success("批量复制成功")}})};return(V,z)=>(n(),r("a",{href:"",onClick:x(c,["prevent"]),class:"flex flex-row items-center"},[k,d(" "),M]))}},L={class:"flex"},$=["href"],S={class:"p-breadcrumb-item-label"},w={key:0,class:"flex flex-row ml-4 gap-4"},B={key:0,class:"disabled item",style:{"font-size":"0.8em"}},N={__name:"@setting_menu",props:["ctx"],setup(e){const t=e,s=l([{name:"网站列表",url:"/servers",icon:"pi pi-home"},{name:t.ctx.server.name,url:"/servers/server?serverId="+t.ctx.server.id}]);return t.ctx.leftMenuActiveItem!=null?s.value.push({name:'"'+t.ctx.leftMenuActiveItem.name+'"设置',url:t.ctx.leftMenuActiveItem.url,isLast:!0}):s.value.push({name:'"'+t.ctx.server.name+'"设置',url:"/servers/server/settings?serverId="+t.ctx.server.id,isLast:!0}),(u,m)=>(n(),r("div",null,[i(b,{items:s.value,class:"!py-0"},{item:f(({item:c})=>[a("span",L,[a("a",{href:c.url,class:"p-breadcrumb-item-link"},[c.icon?(n(),r("span",{key:0,class:g(["p-breadcrumb-item-icon",c.icon]),"data-pc-section":"itemicon"},null,2)):o("",!0),a("span",S,p(c.name),1)],8,$),c.isLast?(n(),r("span",w,[e.ctx.leftMenuActiveItem!=null&&e.ctx.leftMenuActiveItem.configCode!=null&&e.ctx.leftMenuActiveItem.configCode.length>0&&e.ctx.teaCommon.teaIsPlus?(n(),r("span",B,"|")):o("",!0),e.ctx.leftMenuActiveItem!=null&&e.ctx.leftMenuActiveItem.configCode!=null&&e.ctx.leftMenuActiveItem.configCode.length>0&&e.ctx.teaCommon.teaIsPlus?(n(),h(A,{key:1,class:"p-breadcrumb-item-link !gap-0","v-server-id":e.ctx.server.id,"v-config-code":e.ctx.leftMenuActiveItem.configCode},null,8,["v-server-id","v-config-code"])):o("",!0)])):o("",!0)])]),_:1},8,["items"]),i(C)]))}},E={__name:"ServerSettingLayout",props:["ctx"],setup(e){return(t,s)=>(n(),r(_,null,[i(N,{ctx:e.ctx},null,8,["ctx"]),i(v,{ctx:e.ctx,"has-menu":!0},{default:f(()=>[I(t.$slots,"default")]),_:3},8,["ctx"])],64))}};export{E as _};
