1import{eh as T,j as e,L as g,ei as P,ej as C,g as L,i as F}from"./main-Bo0oayNO.js";import"./country-visa-Cppajoww.js";import{P as v,C as y}from"./PageLayout-BjI6KKxV.js";import{P as k}from"./PostCard-DUwjTgtE.js";import{P as S}from"./Pagination-DVpyy6RE.js";import{C as V}from"./ContentWithForms-BI8t0fYU.js";import{p as B}from"./utils-_EDrtQdd.js";import{P as D}from"./PuckRenderer-D0XjDRCm.js";import{b as H,t as R}from"./professional-navy-BCkGFNz5.js";import{J as N}from"./HomepageSections-4WnTbsUT.js";import"./Header-Ba4WgGVg.js";import"./ui-utils-CNoARbDA.js";import"./ContactForm-BhbxkAyh.js";import"./index-BY97ucj0.js";function W({title:s,subtitle:a,ctaText:n,ctaLink:l,secondaryCtaText:r,secondaryCtaLink:o,backgroundImage:c,variant:u,highlightedTitle:d,quickLinks:t}){const m=T(),i=u??m,b={default:"bg-background-alt",minimal:"bg-background",gradient:"bg-linear-to-br from-primary/10 via-background to-accent/10",navy:"hero-navy"},p=()=>{const h=d||s;return i!=="navy"||!h.includes("{")?h:h.split(/(\{[^}]+\})/g).map((f,$)=>f.startsWith("{")&&f.endsWith("}")?e.jsx("span",{className:"text-highlight",children:f.slice(1,-1)},$):f)},x=i==="navy",j=c||x;return e.jsxs("section",{className:`relative overflow-hidden ${b[i]}`,style:c?{backgroundImage:`url(${c})`,backgroundSize:"cover",backgroundPosition:"center"}:void 0,children:[c&&!x&&e.jsx("div",{className:"absolute inset-0 bg-foreground
1/60"}),i==="gradient"&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"absolute -top-24 -right-24 w-96 h-96 bg-primary/20 rounded-full blur-3xl"}),e.jsx("div",{className:"absolute -bottom-24 -left-24 w-96 h-96 bg-accent/20 rounded-full blur-3xl"})]}),x&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"hero-blur-circle hero-blur-circle-1"}),e.jsx("div",{className:"hero-blur-circle hero-blur-circle-2"}),e.jsx("div",{className:"hero-blur-circle hero-blur-circle-3"})]}),e.jsx("div",{className:"relative max-w-layout mx-auto px-4 sm:px-6 lg:px-8 py-20 sm:py-28",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[e.jsx("h1",{className:`text-4xl sm:text-5xl lg:text-6xl font-bold font-heading mb-6 leading-tight ${j?"text-white":"text-foreground"} ${x?"animate-fade-in":""}`,children:p()}),a&&e.jsx("p",{className:`text-lg sm:text-xl mb-10 max-w-2xl mx-auto ${j?"text-white/85":"text-foreground-muted"} ${x?"animate-fade-in animation-delay-200":""}`,children:a}),(n||r)&&e.jsxs("div",{className:`flex flex-wrap justify-center gap-4 mb-8 ${x?"animate-slide-up animation-delay-400":""}`,children:[n&&l&&e.jsxs(g,{to:l,className:x?"btn-accent":"inline-flex items-center gap-2 px-6 py-3 bg-primary text-white rounded-theme font-medium hover:bg-primary-dark transition-colors shadow-lg shadow-primary/25",children:[n,e.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 8l4 4m0 0l-4 4m4-4H3"})})]}),r&&o&&e.jsx(g,{to:o,className:x?"btn-outline-light":"inline-flex items-center gap-2 px-6 py-3 border-2 border-primary text-primary rounded-theme font-medium hover:bg-primary hover:text-white transition-colors",children:r})]}),t&&t.length>0&&e.jsx("div",{className:"flex flex-wrap justify-center gap-3",children:t.map((h,w)=>e.jsx(g,{to:h.href,className:`text-sm font-medium transition-colors ${j?"text-white/80 hover:text-white underline underline-offset-2":"text-foreground-muted hover:text-primary underline underline-offset-2"}`,children:h.label},w))})]})})]})}function E({title:s,subtitle:a,ctaText:n,ctaLink:l,secondaryCtaText:r,secondaryCtaLink:o,variant:c}){const u=T(),d=c??u,t={default:"cta-band",navy:"cta-band-navy",accent:"py-16 text-center bg-accent relative overflow-hidden"},m=d==="default",i=d==="accent";return e.jsx("section",{className:t[d],children:e.jsxs("div",{className:"relative max-w-layout mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx("h2",{className:`text-2xl sm:text-3xl font-bold font-heading mb-4 ${m?"text-foreground":"text-white"}`,children:s}),a&&e.jsx("p",{className:`text-lg mb-8 max-w-2xl mx-auto ${m?"text-foreground-muted":"text-white/85"}`,children:a}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[e.jsx(g,{to:l,className:m?"btn-accent":i?"inline-flex items-center justify-center px-6 py-3 text-sm font-semibold rounded-md bg-white text-accent hover:bg-gray-100 transition-colors":"btn-accent",children:n}),r&&o&&e.jsx(g,{to:o,className:m?"btn-outline-primary":"btn-outline-light",children:r})]})]})})}function q(){const s=P.useLoaderData();P.useSearch();const a=C(),n=s.jeffsDeskNotes??[];if(s.type==="page"){const{siteTitle:t,pageTemplate:m}=s;if(m==="homepage"){const i=B(s.page.content);if(i){if(s.cachedYouTubeVideos)for(const p of i.content)p.type==="YouTubePlaylistSection"&&(p.props.videos=s.cachedYouTubeVideos);const b=H(R);return e.jsx(N,{value:n,children:e.jsx(v,{siteTitle:t,showHeroImage:!0,children:e.jsx(D,{config:b,data:i})})})}}return e.jsx(N,{value:n,children:e.jsx(v,{siteTitle:t,showHeroImage:!0,children:e.jsx("section",{className:"bg-background py-16 sm:py-20",children:e.jsx(y,{size:"narrow",children:e.jsx(V,{className:"prose prose-lg max-w-none",html:L(F(typeof s.page.content=="string"?s.page.content:""))})})})})})}const{posts:l,pagination:r,siteTitle:o,siteTagline:c}=s,u=a.featuredPosts?l.filter(t=>t.isFeatured):[],d=a.featuredPosts?l.filter(t=>!t.isFeatured):l;return e.jsx(N,{value:n,children:e.jsxs(v,{siteTitle:o,children:[a.heroSection&&e.jsx(W,{title:o,highlightedTitle:`Welcome to {${o}}
1`,subtitle:c||"Discover our latest articles and insights",ctaText:"Explore Posts",ctaLink:"/posts",secondaryCtaText:"Learn More",secondaryCtaLink:"/about"}),a.featuredPosts&&u.length>0&&e.jsx("section",{className:"bg-cream dark:bg-background-alt py-16 sm:py-20",children:e.jsxs(y,{children:[e.jsxs("div",{className:"text-center mb-10",children:[e.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-foreground mb-3 font-heading",children:"Featured"}),e.jsx("p",{className:"text-foreground-muted max-w-2xl mx-auto",children:"Our top picks and most popular articles"})]}),e.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:u.map(t=>e.jsx(k,{post:t,variant:"card"},t.id))})]})}),e.jsx("section",{className:"bg-background py-16 sm:py-20",children:e.jsxs(y,{children:[e.jsxs("div",{className:"text-center mb-10",children:[e.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-foreground mb-3 font-heading",children:a.featuredPosts&&u.length>0?"Latest Posts":"Posts"}),e.jsx("p",{className:"text-foreground-muted max-w-2xl mx-auto",children:"Stay up to date with our latest articles and insights"})]}),d.length===0?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-foreground-muted",children:"No posts yet. Check back later!"})}):e.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:d.map(t=>e.jsx(k,{post:t,variant:"card"},t.id))}),r.totalPages>1&&e.jsx("div",{className:"mt-12",children:e.jsx(S,{currentPage:r.page,totalPages:r.totalPages,basePath:"/",searchParams:{}})})]})}),e.jsx(E,{title:"Ready to get started?",subtitle:"Explore our collection of articles and stay up to date with the latest insights.",ctaText:"Browse All Posts",ctaLink:"/posts",secondaryCtaText:"Subscribe",secondaryCtaLink:"/newsletter"})]})})}export{q as component};
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.