1import{b3 as p,b4 as m,j as e,S as b,H as j,F as f,b5 as g}from"./app-C5yrFt3l.js";import{u as y}from"./format-DcxcnuYE.js";import{S as i,B as v}from"./skeleton-B_dzk5ex.js";import{M as N}from"./mail-DT1OL-AS.js";import"./badge-B2xjnbEP.js";async function A(){return{posts:await g()}}const I=()=>{const t=p(),r=!!t,l=(t==null?void 0:t.posts)??[],{data:u,isLoading:h,error:n}=y({queryKey:["blog-posts"],queryFn:g,initialData:r?l:void 0,enabled:!r,staleTime:6e4}),a=u??l,d=!r&&h,x=!d&&!n&&a.length===0,c=a.length?{"@context":"https://schema.org","@type":"Blog","@id":"https://sonomos.ai/blog#blog",name:"Sonomos Blog",description:"AI privacy insights, data protection strategies, and product updates from Sonomos.",url:"https://sonomos.ai/blog",publisher:{"@id":"https://sonomos.ai/#organization"},blogPost:a.map(s=>{const o=m(s);return{"@type":"BlogPosting",headline:s.title,url:`https://sonomos.ai/blog/${s.slug}`,...s.excerpt&&{description:s.excerpt},...s.published_at&&{datePublished:s.published_at},author:{"@type":o.schemaType??"Person",name:o.name,...o.url&&{url:o.url}},...s.tags&&s.tags.length>0&&{keywords:s.tags.join(", ")}}})}:null;return e.jsxs(e.Fragment,{children:[e.jsx(b,{canonical:"/blog",title:"Blog â AI Privacy Insights and Updates",description:"Articles on AI privacy, data protection strategies, and secure AI usage for professionals. Practical guidance for protecting sensitive information.",ogImage:"https://sonomos.ai/og-blog.jpg",breadcrumbs:[{name:"Blog",path:"/blog"}],additionalSchemas:c?[c]:void 0}),e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(j,{}),e.jsx("main",{id:"main-content",className:"flex-1 pt-32 pb-20",role:"main",children:e.jsxs("div",{className:"container-wide",children:[e.jsxs("header",{className:"max-w-3xl mx-auto text-center mb-12",children:[e.jsx("h1",{className:"text-display-serif mb-4",children:"AI Privacy Blog"}),e.jsx("p",{className:"text-lg text-muted-foreground",children:"Insights on privacy, AI security, and protecting your data."})]}),d&&e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:[1,2,3].map(s=>e.jsx("div",{className:"bg-card border border-border/50 rounded-2xl overflow-hidden",children:e.jsxs("div",{className:"p-6 space-y-3",children:[e.jsx(i,{className:"h-4 w-24"}),e.jsx(i,{className:"h-6 w-full"}),e.jsx(i,{className:"h-4 w-full"})]})},s))}),n&&e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-muted-foreground",children:"Unable to load posts. Please try again later."})}),x&&e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-muted-foreground",children:"No posts yet. Check back soon!"})}),a.length>0&&e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(s=>e.jsx(v,{slug:s.slug,title:s.title,excerpt:s.excerpt??void 0,publishedAt:s.published_at??void 0,authorName:m(s).name,tags:s.tags??void 0},s.id))}),e.jsx("div",{className:"mt-16 max-w-lg mx-auto text-center",children:e.jsxs("div",{className:"rounded-2xl border border-border/40 bg-card/50 p-6 sm:p-8",children:[e.jsx(N,{className:"w-6 h-6 text-muted-foreground mx-auto mb-3"}),e.jsx("h2",{className:"text-base font-semibold mb-1.5",children:"Stay informed"}),e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Get privacy insights and product updates delivered to your inbox."}),e.jsx("a",{href:"https://sonomos.substack.com/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-5 py-2.5 text-sm font-medium rounded-full border border-border/50 text-foreground hover:bg-muted transition-colors",children:"Subscribe on Substack"})]})})]})}),e.jsx(f,{})]})]})};export{I as default,A as loader};
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.