import{_ as u}from"./Du8TCKuY.js";import{_ as p}from"./DXjXgEo6.js";import{d as b,r as f,G as v,b as a,e as s,a as x,z as o,F as k,g as y,f as _,o as n,w as g,D as h,t as w,a9 as N,cl as C,ab as F}from"./BvNnk7SS.js";const V={key:0,grid:"","h-screen":"","of-hidden":"",class:"grid-rows-[auto_1fr]"},B={flex:"~ col"},E={key:0,border:"b base",flex:"~ inline wrap items-center",class:"n-select-tabs text-xs n-bg-base"},D=b({__name:"[key]",setup(L){const e=f();v(()=>N().params.key,r=>{e.value=r},{immediate:!0});const c=[{value:"edit",label:"Edit"},{value:"frontmatter",label:"Frontmatter"},{value:"seo",label:"SEO"}];return(r,l)=>{const i=u,d=p,m=C;return a(e)?.length?(n(),s("div",V,[x("div",B,[o(i,{id:a(e),"escape-key":"","back-arrow":"",onClose:l[0]||(l[0]=t=>e.value=null)},null,8,["id"]),a(e).endsWith(".md")?(n(),s("div",E,[(n(),s(k,null,y(c,t=>o(d,{key:t.label,to:t.value,class:"relative border-r n-border-base hover:n-bg-active px2 py0.5",title:t.label},{default:g(()=>[h(w(t.label),1)]),_:2},1032,["to","title"])),64))])):_("",!0)]),o(m)])):_("",!0)}}}),G=F(D,[["__scopeId","data-v-40932dd0"]]);export{G as default};
