import{_ as k}from"./rOCSnSVW.js";import{d as y,x as v,i as w,g as x,v as P,M as j,P as H,J as N,c as f,l as r,m as a,o,q as C,A as K,aP as V,aN as R,a0 as T,e as i,b as B,n as _,ae as p,t as h}from"./B08CJtNn.js";const M=y({__name:"ProjectCompareSwitcher",props:{pageKey:{default:""}},setup(b){const m=v(),n=w(),c=x(()=>{const{pid:l,sid:s}=n.params;return m.allSystems.filter(t=>t.pid!==Number(l)&&t.sid!==Number(s)).map(t=>({label:t.name,value:`${t.pid}-${t.sid}`}))}),e=P(""),d=j(),u=l=>{const s=n.name;d.push({name:s,params:{pid:l.split("-")[0],sid:l.split("-")[1]}})},{tracker:$}=H(),{t:S}=N();return(l,s)=>{const g=k;return a(c).length>=1?(o(),f(g,{key:0,modelValue:a(e),"onUpdate:modelValue":[s[0]||(s[0]=t=>K(e)?e.value=t:null),u],items:a(c),"search-input":!0,color:"primary",variant:"subtle","value-key":"value",icon:a(C).icoSuitcase,placeholder:a(S)("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"])):r("",!0)}}}),O=Object.assign(M,{__name:"ProjectCompareSwitcher"}),U={class:"o_mb-8 flex gap-4 justify-between flex-col @[1000px]/mainpage:flex-row","aria-labelledby":"page-title"},A={class:"flex-1"},E={key:0,id:"page-title",class:"text-xl md:text-2xl font-bold text-uiText-highlighted flex items-center o_gap-2"},W={key:1,class:"mt-2 text-base md:text-lg max-w-[70ch] text-pretty text-uiText-toned","aria-describedby":"page-title"},q={key:3,class:"o_mt-5"},D={key:0,class:"max-w-[420px] @[1000px]/mainpage:o_pt-8"},I=y({__name:"PageHeader",props:{pageKey:{default:""}},setup(b){const{echoComponent:m}=V(),n=m("Starting user data monitoring",{watchReactive:!0,includePropsHistory:!0,componentName:"PageHeader"});R(()=>{n&&"stopWatchers"in n&&n.stopWatchers?.()});const{inProjectSettingsAndMonitoringLevel:c}=T();return(e,d)=>{const u=O;return o(),i("header",U,[B("div",A,[e.pageKey?.length>0||e.$slots.title?(o(),i("h2",E,[_(h(e.pageKey?e.$t(`pageHeader.${e.pageKey}.title`):"")+" ",1),p(e.$slots,"title")])):r("",!0),e.pageKey?.length>0||e.$slots.subline?(o(),i("p",W,[_(h(e.pageKey?e.$t(`pageHeader.${e.pageKey}.subline`):"")+" ",1),p(e.$slots,"subline")])):r("",!0),a(c)?(o(),f(u,{key:2,class:"o_mt-4"})):r("",!0),e.$slots.default?(o(),i("div",q,[p(e.$slots,"default")])):r("",!0)]),e.$slots.side?(o(),i("div",D,[p(e.$slots,"side")])):r("",!0)])}}}),z=Object.assign(I,{__name:"PageHeader"});export{z as _};
