import{Ct as e,F as t,H as n,It as r,Mt as i,Q as a,W as o,Z as s,_t as c,at as l,d as u,ft as d,ht as f,jt as p,mt as m,ot as h,pt as g,s as _,wt as v}from"../chunks/BA99CCI5.js";import"../chunks/xihTtKlq.js";import"../chunks/DGo8yE5j.js";import{t as y}from"../chunks/BtIghOBA.js";import{t as b}from"../chunks/SEZzcS_o.js";import{t as x}from"../chunks/MJc6__n-.js";import{t as S}from"../chunks/BfBgZfCV2.js";import{t as C}from"../chunks/DSmeX4VS2.js";import{t as w}from"../chunks/CEQEwD8g.js";var T=o(`<div class="px-4 pb-4 md:px-8 md:pb-8"><!> <!></div> <!>`,1);function E(o,E){i(E,!1);let D=()=>v(S,`$page`,O),[O,k]=e(),A=f(),j=f(),M=f(),N=f(),P=f(),F=_(E,`data`,8);l(()=>D(),()=>{c(A,D().params.databaseId)}),l(()=>D(),()=>{c(j,D().params.id)}),l(()=>D(),()=>{c(M,D().url.pathname)}),l(()=>(a(A),a(j),a(M),s(F()),b),()=>{c(N,[{label:`General`,href:`/custom-formats/${a(A)}/${a(j)}/general`,active:a(M).includes(`/general`),icon:y},{label:`Conditions`,href:`/custom-formats/${a(A)}/${a(j)}/conditions`,active:a(M).includes(`/conditions`),icon:x},...F().parserAvailable?[{label:`Testing`,href:`/custom-formats/${a(A)}/${a(j)}/testing`,active:a(M).includes(`/testing`),icon:b}]:[]])}),l(()=>(s(F()),a(A)),()=>{c(P,{items:[{label:F().databaseName,href:`/custom-formats/${a(A)}`}],current:F().formatName})}),h(),u();var I=T(),L=g(I),R=d(L);C(R,{get tabs(){return a(N)},get breadcrumb(){return a(P)},responsive:!0});var z=m(R,2);t(z,E,`default`,{},null),r(L);var B=m(L,2);w(B,{}),n(o,I),p(),k()}export{E as component};