1import{q as h,o as b,r as o,t as x,j as e,H as k,a1 as w,C as i,w as c,z as n,bi as p,A as d,x as m,bf as a,a$ as S,be as _,a2 as u,ak as C,E as H,a3 as $}from"./index--lCEmp1k.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const A=h("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/** 7 * @license lucide-react v0.462.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const j=h("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/** 12 * @license lucide-react v0.462.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const M=h("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]),F=()=>{const{settings:r}=b(),[l,g]=o.useState({articles:[],issues:[],pages:[]}),[v,N]=o.useState(!0);o.useEffect(()=>{f()},[]);const f=async()=>{try{const[s,t,y]=await Promise.all([x.from("articles").select("id, title, custom_url, doi").order("published_date",{ascending:!1}).limit(100),x.from("issues").select("volume, issue_number, issue_number_text, year, title").order("year",{ascending:!1}).order("issue_number",{ascending:!1}),x.from("pages").select("slug, title").eq("is_published",!0).order("title")]);g({articles:s.data||[],issues:t.data||[],pages:y.data||[]})}catch(s){console.error("Error fetching sitemap data:",s)}finally{N(!1)}};return e.jsxs(e.Fragment,{children:[e.jsxs(k,{children:[e.jsx("title",{children:`Sitemap - ${(r==null?void 0:r.journal_name)||"Journal"}`}),e.jsx("meta",{name:"description",content:`Complete sitemap of all pages, articles, and issues on ${(r==null?void 0:r.journal_name)||"this journal"}`})]}),e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(w,{}),e.jsxs("main",{className:"flex-1 container mx-auto px-4 py-12 max-w-6xl",children:[e.jsxs("div",{className:"mb-12 text-center",children:[e.jsx("h1",{className:"text-4xl font-bold mb-4",children:"Sitemap"}),e.jsxs("p",{className:"text-xl text-muted-foreground",children:["Browse all pages and content available on ",r==null?void 0:r.journal_name]})]}),v?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-muted-foreground",children:"Loading sitemap..."})}):e.jsxs("div",{className:"grid gap-8",children:[e.jsxs(i,{children:[e.jsxs(c,{children:[e.jsxs(n,{className:"flex items-center gap-2",children:[e.jsx(p,{className:"w-5 h-5"}),"Main Pages"]}),e.jsx(d,{children:"Primary navigation pages"})]}),e.jsx(m,{children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[e.jsxs(a,{to:"/",className:"text-primary hover:underline flex items-center gap-2",children:[e.jsx(p,{className:"w-4 h-4"}),"Home"]}),e.jsxs(a,{to:"/current-issue",className:"text-primary hover:underline flex items-center gap-2",children:[e.jsx(j,{className:"w-4 h-4"}),"Current Issue"]}),e.jsxs(a,{to:"/archives",className:"text-primary hover:underline flex items-center gap-2",children:[e.jsx(A,{className:"w-4 h-4"}),"Archives"]}),e.jsxs(a,{to:"/search",className:"text-primary hover:underline flex items-center gap-2",children:[e.jsx(S,{className:"w-4 h-4"}),"Search"]}),e.jsxs(a,{to:"/rss",className:"text-primary hover:underline flex items-center gap-2",children:[e.jsx(_,{className:"w-4 h-4"}),"RSS Feed"]}),e.jsxs(a,{to:"/sitemap.xml",className:"text-primary hover:underline flex items-center gap-2",children:[e.jsx(M,{className:"w-4 h-4"}),"XML Sitemap"]})]})})]}),l.pages.length>0&&e.jsxs(i,{children:[e.jsxs(c,{children:[e.jsxs(n,{className:"flex items-center gap-2",children:[e.jsx(u,{className:"w-5 h-5"}),"Pages (",l.pages.length,")"]}),e.jsx(d,{children:"Additional content pages"})]}),e.jsx(m,{children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:l.pages.map(s=>e.jsx(a,{to:`/page/${s.slug}`,className:"text-primary hover:underline",children:s.title},s.slug))})})]}),l.issues.length>0&&e.jsxs(i,{children:[e.jsxs(c,{children:[e.jsxs(n,{className:"flex items-center gap-2",children:[e.jsx(j,{className:"w-5 h-5"}),"Issues (",l.issues.length,")"]}),e.jsx(d,{children:"All published journal issues"})]}),e.jsx(m,{children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:l.issues.map(s=>{const t=s.issue_number_text||s.issue_number;return e.jsxs("div",{className:"space-y-1",children:[e.jsxs(a,{to:`/${s.volume}/${t}`,className:"text-primary hover:underline font-medium block",children:["Vol. ",s.volume,", Issue ",t," (",s.year,")"]}),e.jsx(a,{to:`/${s.volume}/${t}/toc`,className:"text-sm text-muted-foreground hover:text-primary ml-4 block",children:"â Table of Contents"})]},`${s.volume}-${t}`)})})})]}),l.articles.length>0&&e.jsxs(i,{children:[e.jsxs(c,{children:[e.jsxs(n,{className:"flex items-center gap-2",children:[e.jsx(u,{className:"w-5 h-5"}),"Recent Articles (",l.articles.length,")"]}),e.jsx(d,{children:"Latest published research articles"})]}),e.jsx(m,{children:e.jsx("div",{className:"space-y-2 max-h-96 overflow-y-auto",children:l.articles.map((s,t)=>e.jsxs("div",{children:[t>0&&e.jsx(C,{className:"my-2"}),e.jsx(a,{to:H(s),className:"text-primary hover:underline block",children:s.title})]},s.id))})})]})]})]}),e.jsx($,{})]})]})};export{F as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.