1import{j as e,aJ as s,aE as a,Y as t,bn as i,bo as r,K as l}from"./ui-vendor-hsOn6jWt.js";import{r as c,L as o}from"./react-vendor-B5qcedzr.js";import{s as n,N as d,O as m,e as x,f as p,g as h,i as u,Q as j}from"./index-BJYy5LxV.js";import{P as g}from"./PageBreadcrumbs-CI8dvoe0.js";import"./query-vendor-BJnq5Kmj.js";const y=()=>{const[y,N]=c.useState([]),[v,f]=c.useState([]),[b,w]=c.useState([]),[A,S]=c.useState([]),[_,P]=c.useState([]),[C,k]=c.useState(!0);c.useEffect(()=>{q()},[]);const q=async()=>{try{const[e,s,a,t,i]=await Promise.all([n.from("services").select("id, title").eq("is_active",!0).order("display_order"),n.from("case_studies").select("id, slug, title").eq("is_active",!0).order("display_order"),n.from("analytics_guides").select("slug, title, category").eq("is_published",!0).order("display_order"),n.from("blog_categories").select("name, slug").eq("is_active",!0).order("display_order"),n.from("blog_posts").select("slug, title").eq("is_published",!0).order("published_at",{ascending:!1}).limit(10)]);e.data&&N(e.data),s.data&&f(s.data),a.data&&w(a.data),t.data&&S(t.data),i.data&&P(i.data)}catch(e){}finally{k(!1)}};return e.jsxs("div",{className:"min-h-screen",children:[e.jsx(d,{title:"Sitemap - Navigate Our Website",description:"Complete sitemap of Samarth Analytics website. Browse all our services, case studies, blog posts, and resources in one organized view.",canonical:"/sitemap"}),e.jsx(m,{}),e.jsxs("main",{className:"pt-12",children:[e.jsx(g,{items:[{label:"Sitemap"}]}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-6xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:"Site Map"}),e.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Navigate through all pages and resources on our website"})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[e.jsxs(x,{children:[e.jsx(p,{children:e.jsxs(h,{className:"flex items-center gap-2",children:[e.jsx(s,{className:"h-5 w-5 text-primary"}),"Main Pages"]})}),e.jsx(u,{children:e.jsx("ul",{className:"space-y-2",children:[{title:"Home",path:"/"},{title:"About Us",path:"/about"},{title:"Our Team",path:"/team"},{title:"Contact Us",path:"/contact"},{title:"Careers",path:"/careers"}].map(s=>e.jsx("li",{children:e.jsxs(o,{to:s.path,className:"text-muted-foreground hover:text-primary transition-colors flex items-center gap-2 group",children:[e.jsx(a,{className:"h-4 w-4 opacity-0 group-hover:opacity-100 transition-opacity"}),s.title]})},s.path))})})]}),e.jsxs(x,{children:[e.jsx(p,{children:e.jsxs(h,{className:"flex items-center gap-2",children:[e.jsx(t,{className:"h-5 w-5 text-primary"}),"Our Services"]})}),e.jsxs(u,{children:[e.jsx(o,{to:"/services",className:"text-primary font-medium hover:underline mb-3 block",children:"View All Services â"}),C?e.jsx("div",{className:"space-y-2",children:[...Array(3)].map((s,a)=>e.jsx("div",{className:"h-6 bg-muted rounded animate-pulse"},a))}):e.jsx("ul",{className:"space-y-2",children:y.map(s=>e.jsx("li",{children:e.jsxs(o,{to:`/services/${s.id}`,className:"text-muted-foreground hover:text-primary transition-colors flex items-center gap-2 group",children:[e.jsx(a,{className:"h-4 w-4 opacity-0 group-hover:opacity-100 transition-opacity"}),s.title]})},s.id))})]})]}),e.jsxs(x,{children:[e.jsx(p,{children:e.jsxs(h,{className:"flex items-center gap-2",children:[e.jsx(i,{className:"h-5 w-5 text-primary"}),"Case Studies"]})}),e.jsxs(u,{children:[e.jsx(o,{to:"/case-studies",className:"text-primary font-medium hover:underline mb-3 block",children:"View All Case Studies â"}),C?e.jsx("div",{className:"space-y-2",children:[...Array(3)].map((s,a)=>e.jsx("div",{className:"h-6 bg-muted rounded animate-pulse"},a))}):v.length>0?e.jsx("ul",{className:"space-y-2",children:v.map(s=>e.jsx("li",{children:e.jsxs(o,{to:`/case-studies/${s.slug??s.id}`,className:"text-muted-foreground hover:text-primary transition-colors flex items-center gap-2 group",children:[e.jsx(a,{className:"h-4 w-4 opacity-0 group-hover:opacity-100 transition-opacity"}),s.title]})},s.id))}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"No case studies available"})]})]}),e.jsxs(x,{children:[e.jsx(p,{children:e.jsxs(h,{className:"flex items-center gap-2",children:[e.jsx(i,{className:"h-5 w-5 text-primary"}),"Analytics Guides"]})}),e.jsxs(u,{children:[e.jsx(o,{to:"/guides",className:"text-primary font-medium hover:underline mb-3 block",children:"View All Guides â"}),C?e.jsx("div",{className:"space-y-2",children:[...Array(3)].map((s,a)=>e.jsx("div",{className:"h-6 bg-muted rounded animate-pulse"},a))}):b.length>0?e.jsx("ul",{className:"space-y-2",children:b.map(s=>e.jsx("li",{children:e.jsxs(o,{to:`/guides/${s.slug}`,className:"text-muted-foreground hover:text-primary transition-colors flex items-center gap-2 group",children:[e.jsx(a,{className:"h-4 w-4 opacity-0 group-hover:opacity-100 transition-opacity"}),s.title]})},s.slug))}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"No guides available"})]})]}),e.jsxs(x,{children:[e.jsx(p,{children:e.jsxs(h,{className:"flex items-center gap-2",children:[e.jsx(i,{className:"h-5 w-5 text-primary"}),"Blog & Resources"]})}),e.jsxs(u,{children:[e.jsx(o,{to:"/blog",className:"text-primary font-medium hover:underline mb-3 block",children:"View All Blog Posts â"}),C?e.jsx("div",{className:"space-y-2",children:[...Array(3)].map((s,a)=>e.jsx("div",{className:"h-6 bg-muted rounded animate-pulse"},a))}):e.jsxs(e.Fragment,{children:[A.length>0&&e.jsxs("div",{className:"mb-4",children:[e.jsx("h4",{className:"text-sm font-semibold mb-2 text-foreground",children:"Categories"}),e.jsx("ul",{className:"space-y-2",children:A.map(s=>e.jsx("li",{children:e.jsxs(o,{to:`/blog?category=${s.slug}`,className:"text-muted-foreground hover:text-primary transition-colors flex items-center gap-2 group text-sm",children:[e.jsx(a,{className:"h-3 w-3 opacity-0 group-hover:opacity-100 transition-opacity"}),s.name]})},s.slug))})]}),_.length>0&&e.jsxs("div",{children:[e.jsx("h4",{className:"text-sm font-semibold mb-2 text-foreground",children:"Recent Posts"}),e.jsx("ul",{className:"space-y-2",children:_.map(s=>e.jsx("li",{children:e.jsxs(o,{to:`/blog/${s.slug}`,className:"text-muted-foreground hover:text-primary transition-colors flex items-center gap-2 group text-sm",children:[e.jsx(a,{className:"h-3 w-3 opacity-0 group-hover:opacity-100 transition-opacity"}),s.title]})},s.slug))})]})]})]})]}),e.jsxs(x,{children:[e.jsx(p,{children:e.jsxs(h,{className:"flex items-center gap-2",children:[e.jsx(r,{className:"h-5 w-5 text-primary"}),"Tools & Audits"]})}),e.jsx(u,{children:e.jsx("ul",{className:"space-y-2",children:[{title:"Free Analytics Audit",path:"/free-audit"},{title:"GA4 Audit Tool",path:"/ga4-audit"},{title:"Funnel.io Partnership",path:"/funnel-partner"}].map(s=>e.jsx("li",{children:e.jsxs(o,{to:s.path,className:"text-muted-foreground hover:text-primary transition-colors flex items-center gap-2 group",children:[e.jsx(a,{className:"h-4 w-4 opacity-0 group-hover:opacity-100 transition-opacity"}),s.title]})},s.path))})})]}),e.jsxs(x,{children:[e.jsx(p,{children:e.jsxs(h,{className:"flex items-center gap-2",children:[e.jsx(l,{className:"h-5 w-5 text-primary"}),"Legal & Policies"]}
1)}),e.jsx(u,{children:e.jsx("ul",{className:"space-y-2",children:[{title:"Privacy Policy",path:"/privacy"},{title:"Terms of Service",path:"/terms"},{title:"Cookie Policy",path:"/cookies"},{title:"Data Security & Compliance",path:"/security"}].map(s=>e.jsx("li",{children:e.jsxs(o,{to:s.path,className:"text-muted-foreground hover:text-primary transition-colors flex items-center gap-2 group",children:[e.jsx(a,{className:"h-4 w-4 opacity-0 group-hover:opacity-100 transition-opacity"}),s.title]})},s.path))})})]})]})]})})})]}),e.jsx(j,{})]})};export{y 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.