import{a as e,n as t,t as n}from"./app-G6wC4CCm.js";import{t as r}from"./AppNav-TQ3fvEZa.js";import{a as i,d as a,h as o,n as s,o as c,u as l}from"./block-registry-DInqb7Su.js";import{n as u,r as d}from"./shared-DxO_QzGG.js";import{t as f}from"./PageSeo-BTD5jtJc.js";var p=n();function m(){let{auth:n,branding:s,marketing:m,landingMode:g,featured:_,kits:v,pagination:y,filter:b}=e().props,x=s?.site_name||`AppShot AI`,S=m?.nav?a(m.nav):c,C=m?.footer?l(m.footer):i,w=!!n.user&&g.mode!==`enabled`,T=!w,E=m?.templates?o(m.templates):{version:1,sections:[]},D=E.sections.filter(e=>e.enabled!==!1),O={featured:_,kits:v,pagination:y,filter:b,showRails:T};return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(t,{title:`Templates`}),(0,p.jsx)(f,{pageLabel:`Templates`,override:E.seo,sections:D}),(0,p.jsxs)(`div`,{className:`flex min-h-screen flex-col bg-background font-sans text-foreground antialiased`,children:[w?(0,p.jsx)(r,{}):(0,p.jsx)(d,{siteName:x,authed:!!n.user,branding:s,nav:S}),(0,p.jsx)(`main`,{className:`flex-1`,children:D.map(e=>(0,p.jsx)(`div`,{children:h(e,O)},e.id))}),!w&&(0,p.jsx)(u,{siteName:x,branding:s,footer:C})]})]})}function h(e,t){let n=s(e.type);if(!n)return null;let r=n.renderer;return e.type===`kit_grid`?(0,p.jsx)(r,{section:e,...t}):(0,p.jsx)(r,{section:e})}export{m as default};