import{_ as S}from"./CVosDfjh.js";import{d as f,x,k as j,i as v,r as w,L as K,N,I as P,c as y,a as n,u as a,b as o,s as C,A as H,$ as V,f as i,e as T,n as g,ac as u,t as h}from"./B2UyoCas.js";const B=f({__name:"ProjectCompareSwitcher",props:{pageKey:{default:""}},setup(b){const m=x(),e=j(),d=v(()=>{const{pid:l,sid:s}=e.params;return m.allSystems.filter(t=>t.pid!==Number(l)&&t.sid!==Number(s)).map(t=>({label:t.name,value:`${t.pid}-${t.sid}`}))}),r=w(""),c=K(),p=l=>{const s=e.name;c.push({name:s,params:{pid:l.split("-")[0],sid:l.split("-")[1]}})},{tracker:$}=N(),{t:k}=P();return(l,s)=>{const _=S;return a(d).length>=1?(o(),y(_,{key:0,modelValue:a(r),"onUpdate:modelValue":[s[0]||(s[0]=t=>H(r)?r.value=t:null),p],items:a(d),"search-input":!0,color:"primary",variant:"subtle","value-key":"value",icon:a(C).icoSuitcase,placeholder:a(k)("switchToOtherProject"),class:"o_w-72",onChange:s[1]||(s[1]=t=>a($)("project_compare_switcher","click","Change project for comparison"))},null,8,["modelValue","items","icon","placeholder"])):n("",!0)}}}),R=Object.assign(B,{__name:"ProjectCompareSwitcher"}),M={class:"o_mb-8 flex gap-4 justify-between flex-col @[1000px]/mainpage:flex-row","aria-labelledby":"page-title"},O={class:"flex-1"},A={key:0,id:"page-title",class:"text-xl md:text-2xl font-bold text-uiText-highlighted flex items-center o_gap-2"},I={key:1,class:"mt-2 text-base md:text-lg max-w-[70ch] text-pretty text-uiText-toned","aria-describedby":"page-title"},L={key:3,class:"o_mt-5"},U={key:0,class:"max-w-[420px] @[1000px]/mainpage:o_pt-8"},D=f({__name:"PageHeader",props:{pageKey:{default:""}},setup(b){const{inProjectSettingsAndMonitoringLevel:m}=V();return(e,d)=>{var c,p;const r=R;return o(),i("header",M,[T("div",O,[((c=e.pageKey)==null?void 0:c.length)>0||e.$slots.title?(o(),i("h2",A,[g(h(e.pageKey?e.$t(`pageHeader.${e.pageKey}.title`):"")+" ",1),u(e.$slots,"title")])):n("",!0),((p=e.pageKey)==null?void 0:p.length)>0||e.$slots.subline?(o(),i("p",I,[g(h(e.pageKey?e.$t(`pageHeader.${e.pageKey}.subline`):"")+" ",1),u(e.$slots,"subline")])):n("",!0),a(m)?(o(),y(r,{key:2,class:"o_mt-4"})):n("",!0),e.$slots.default?(o(),i("div",L,[u(e.$slots,"default")])):n("",!0)]),e.$slots.side?(o(),i("div",U,[u(e.$slots,"side")])):n("",!0)])}}}),z=Object.assign(D,{__name:"PageHeader"});export{z as _};
