import{Ct as e,F as t,H as n,It as r,Mt as i,Q as a,U as o,W as s,Z as c,_t as l,at as u,c as d,d as f,ft as p,ht as m,jt as h,l as g,mt as _,ot as v,pt as y,s as b,tt as x,wt as S,z as C}from"../chunks/BA99CCI5.js";import"../chunks/xihTtKlq.js";import"../chunks/DGo8yE5j.js";import{t as w}from"../chunks/3rupxGJ5.js";import{t as T}from"../chunks/BMmWZGEU.js";import{t as E}from"../chunks/D-E0nZEG.js";import{t as D}from"../chunks/e-haqc9Z.js";import{t as O}from"../chunks/BfBgZfCV2.js";import{t as k}from"../chunks/DSmeX4VS2.js";var A=new Set([`$$slots`,`$$events`,`$$legacy`]);function j(e,t){let n=d(t,A),r=[[`path`,{d:`M8 3 4 7l4 4`}],[`path`,{d:`M4 7h16`}],[`path`,{d:`m16 21 4-4-4-4`}],[`path`,{d:`M20 17H4`}]];w(e,g({name:`arrow-left-right`},()=>n,{get iconNode(){return r}}))}var M=new Set([`$$slots`,`$$events`,`$$legacy`]);function N(e,t){let n=d(t,M),r=[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`}]];w(e,g({name:`file-pen`},()=>n,{get iconNode(){return r}}))}var P=new Set([`$$slots`,`$$events`,`$$legacy`]);function F(e,t){let n=d(t,P),r=[[`path`,{d:`m16 6 4 14`}],[`path`,{d:`M12 6v14`}],[`path`,{d:`M8 8v12`}],[`path`,{d:`M4 4v16`}]];w(e,g({name:`library`},()=>n,{get iconNode(){return r}}))}var I=new Set([`$$slots`,`$$events`,`$$legacy`]);function L(e,t){let n=d(t,I),r=[[`path`,{d:`M15 12h-5`}],[`path`,{d:`M15 8h-5`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`}]];w(e,g({name:`scroll-text`},()=>n,{get iconNode(){return r}}))}var R=s(`<div class="overflow-x-clip px-4 pb-4 md:px-8 md:pb-8"><!> <!></div>`);function z(s,d){i(d,!1);let g=()=>S(O,`$page`,w),[w,A]=e(),M=m(),P=m(),I=m(),z=m(),B=m(),V=m(),H=m(),U=m(),W=b(d,`data`,8);u(()=>g(),()=>{l(M,g().params.id)}),u(()=>g(),()=>{l(P,g().url.pathname)}),u(()=>(a(M),a(P),F),()=>{l(I,{label:`Library`,href:`/arr/${a(M)}/library`,active:a(P).includes(`/library`),icon:F,onboarding:`arr-tab-library`})}),u(()=>(a(M),a(P),E),()=>{l(z,{label:`Sync`,href:`/arr/${a(M)}/sync`,active:a(P).includes(`/sync`),icon:E,onboarding:`arr-tab-sync`})}),u(()=>(a(M),a(P),c(W())),()=>{l(B,{label:`Drift`,href:`/arr/${a(M)}/drift`,active:a(P).includes(`/drift`),icon:j,onboarding:`arr-tab-drift`,badge:W().driftCount})}),u(()=>(a(B),a(M),a(P),D),()=>{l(V,[a(B),{label:`Upgrades`,href:`/arr/${a(M)}/upgrades`,active:a(P).includes(`/upgrades`),icon:T,onboarding:`arr-tab-upgrades`},{label:`Renames`,href:`/arr/${a(M)}/rename`,active:a(P).includes(`/rename`),icon:N,onboarding:`arr-tab-renames`},{label:`Logs`,href:`/arr/${a(M)}/logs`,active:a(P).includes(`/logs`),icon:L,onboarding:`arr-tab-logs`},{label:`Settings`,href:`/arr/${a(M)}/settings`,active:a(P).includes(`/settings`),icon:D,onboarding:`arr-tab-settings`}])}),u(()=>(c(W()),a(I),a(z),a(V)),()=>{l(H,W().hasSyncConfig?[a(I),a(z),...a(V)]:[a(z),a(I),...a(V)])}),u(()=>c(W()),()=>{l(U,{items:[{label:`Arr Instances`,href:`/arr`}],current:W().instance.name})}),v(),f();var G=R(),K=p(G);k(K,{get tabs(){return a(H)},get breadcrumb(){return a(U)},responsive:!0,mobileBreakpoint:1400});var q=_(K,2);C(q,()=>(c(W()),x(()=>W().instance.id)),e=>{var r=o(),i=y(r);t(i,d,`default`,{},null),n(e,r)}),r(G),n(s,G),h(),A()}export{z as component};