Files
nuxt-mongoose/_nuxt/DocsPrevNext.ab66fcdd.js

2 lines
1.3 KiB
JavaScript

import{d as x,V as y,J as t,b as a,c as r,X as h,w as u,g as m,e as p,t as i,f as d,af as k,a9 as g,E as w,ag as N,k as C}from"./entry.3e6aff8a.js";const B={key:0,class:"docs-prev-next"},D={class:"wrapper"},V={key:0,class:"directory"},P={class:"title"},E={key:1},F={class:"wrapper"},I={key:0,class:"directory"},b={class:"title"},j=x({__name:"DocsPrevNext",setup(H){const{prev:e,next:s,navigation:f}=y(),{navDirFromPath:v}=N(),_=l=>{var n;const c=v(l._path,f.value||[]);if(c&&c[0])return((n=c[0])==null?void 0:n._path)??"";{const o=l.split("/");return(o.length>1?o[o.length-2]:"").split("-").map(k).join(" ")}};return(l,c)=>{const n=g,o=w;return t(e)||t(s)?(a(),r("div",B,[t(e)&&t(e)._path?(a(),h(o,{key:0,to:t(e)._path,class:"prev"},{default:u(()=>[m(n,{name:"heroicons-outline:arrow-sm-left",class:"icon"}),p("div",D,[_(t(e)._path)?(a(),r("span",V,i(_(t(e)._path)),1)):d("",!0),p("span",P,i(t(e).title),1)])]),_:1},8,["to"])):(a(),r("span",E)),t(s)&&t(s)._path?(a(),h(o,{key:2,to:t(s)._path,class:"next"},{default:u(()=>[p("div",F,[_(t(s)._path)?(a(),r("span",I,i(_(t(s)._path)),1)):d("",!0),p("span",b,i(t(s).title),1)]),m(n,{name:"heroicons-outline:arrow-sm-right",class:"icon"})]),_:1},8,["to"])):d("",!0)])):d("",!0)}}});const S=C(j,[["__scopeId","data-v-dfad58f5"]]);export{S as default};