import{a as e,n as t,t as n}from"./app-G6wC4CCm.js";import{a as r,d as i,n as a,o,u as s}from"./block-registry-DInqb7Su.js";import{n as c,r as l}from"./shared-DxO_QzGG.js";import{t as u}from"./PageSeo-BTD5jtJc.js";var d=n();function f(){let{auth:n,branding:a,marketing:f,page:m}=e().props,h=a?.site_name||`AppShot AI`,g=f?.nav?i(f.nav):o,_=f?.footer?s(f.footer):r,v=(m?.sections??[]).filter(e=>e.enabled!==!1);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(t,{title:m?.title||`Page`}),(0,d.jsx)(u,{pageLabel:m?.title||`Page`,override:m?.seo,sections:v}),(0,d.jsxs)(`div`,{className:`flex min-h-screen flex-col bg-background font-sans text-foreground antialiased`,children:[(0,d.jsx)(l,{siteName:h,authed:!!n.user,branding:a,nav:g}),(0,d.jsxs)(`main`,{className:`flex-1`,children:[v.length===0&&(0,d.jsx)(`div`,{className:`mx-auto max-w-3xl px-6 py-24 text-center text-muted-foreground`,children:`This page doesn't have any sections yet.`}),v.map(e=>(0,d.jsx)(`div`,{children:p(e)},e.id))]}),(0,d.jsx)(c,{siteName:h,branding:a,footer:_})]})]})}function p(e){let t=a(e.type);if(!t)return null;let n=t.renderer;return(0,d.jsx)(n,{section:e})}export{f as default};