1import{r as a,j as e}from"./vendor-react-AugP03me.js";import{u as h}from"./seo-ZHkdkANG.js";import{w as p,x as g,L as r}from"./index-D3fM094_.js";import{N as u,F as f}from"./Footer-C2S6zklY.js";import{A as j}from"./channels-CPNMgVmo.js";import{C as b}from"./calendar-BE_eyh4J.js";import{f as N}from"./format-BBErTw00.js";import{A as o}from"./arrow-right-CUpic_yz.js";import"./vendor-tiptap-CsKdeFay.js";import"./vendor-query-ByRW6aLA.js";import"./vendor-motion-BpV5qUnZ.js";import"./chevron-down-CB9Eg5Fv.js";import"./menu-DcuD9efM.js";function M(){const[l,c]=a.useState([]),[i,d]=a.useState(!0),[t,m]=a.useState(null);return h({title:"Activity Reseller Insights & Guides | Activiter Blog",description:"Expert insights, how-to guides, and product updates for hotel concierges, OTAs, timeshare desks, and call centers selling tours and activities. Powered by Activiter.",path:"/blog"}),a.useEffect(()=>{window.scrollTo({top:0}),p.get("/blog/posts").then(s=>c(s.posts)).catch(s=>m(s.message)).finally(()=>d(!1))},[]),e.jsxs("div",{className:"min-h-screen bg-white",children:[e.jsx(u,{}),e.jsxs("main",{id:"main-content",children:[e.jsxs("section",{className:"relative pt-32 pb-20 px-4 sm:px-6 bg-slate-900 overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 z-0 overflow-hidden","aria-hidden":"true",children:e.jsx("img",{src:"/images/hero-bg.png",alt:"",role:"presentation",className:"w-full h-full object-cover opacity-70"})}),e.jsx("div",{className:"absolute inset-0 bg-black/30 pointer-events-none"}),e.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto text-center",children:[e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold font-display tracking-tight text-white mb-4",children:"Activiter Blog"}),e.jsx("p",{className:"text-lg text-white/75 leading-relaxed",children:"Insights, guides, and product updates for activity resellers."})]})]}),e.jsx("section",{className:"py-16 px-4 sm:px-6",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[i&&e.jsx("div",{className:"grid gap-8",role:"status","aria-label":"Loading blog posts","aria-busy":"true",children:[1,2,3].map(s=>e.jsx("div",{className:"animate-pulse bg-slate-100 rounded-xl h-52","aria-hidden":"true"},s))}),t&&e.jsx("p",{className:"text-center text-red-500 py-12",role:"alert",children:t}),!i&&!t&&l.length===0&&e.jsxs("div",{className:"text-center py-20 text-gray-500",children:[e.jsx("p",{className:"text-lg font-medium",children:"No posts yet."}),e.jsx("p",{className:"text-sm mt-1",children:"Check back soon for insights and updates."})]}),!i&&!t&&l.length>0&&e.jsx("div",{className:"grid gap-10",children:l.map(s=>{const n=s.featuredImageUrl?.startsWith("/objects/")?g(s.featuredImageUrl):s.featuredImageUrl,x=s.publishedAt?new Date(s.publishedAt):new Date(s.createdAt);return e.jsxs("article",{className:"group flex flex-col sm:flex-row gap-6 border border-slate-200 rounded-2xl overflow-hidden hover:shadow-md transition-shadow",children:[n&&e.jsx("div",{className:"sm:w-56 sm:shrink-0 h-48 sm:h-auto overflow-hidden bg-slate-100",children:e.jsx("img",{src:n,alt:s.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),e.jsxs("div",{className:"flex flex-col justify-center p-6 gap-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-slate-400",children:[e.jsx(b,{className:"w-4 h-4"}),e.jsx("time",{children:N(x,"MMMM d, yyyy")})]}),e.jsx(r,{href:`/blog/${s.slug}`,children:e.jsx("h2",{className:"text-xl font-bold font-display text-slate-900 group-hover:text-primary transition-colors cursor-pointer",children:s.title})}),s.excerpt&&e.jsx("p",{className:"text-slate-500 text-sm leading-relaxed line-clamp-3",children:s.excerpt}),e.jsxs(r,{href:`/blog/${s.slug}`,className:"inline-flex items-center gap-1 text-sm font-medium text-primary hover:gap-2 transition-all",children:["Read more ",e.jsx(o,{className:"w-4 h-4"})]})]})]},s.id)})})]})}),e.jsx("section",{className:"py-12 px-4 sm:px-6 bg-slate-50 border-t border-slate-100",children:e.jsxs("div",{className:"max-w-3xl mx-auto",children:[e.jsx("p",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest mb-4",children:"Platform channels"}),e.jsxs("div",{className:"flex flex-wrap gap-3",children:[j.map(s=>e.jsxs(r,{href:`/channels/${s.slug}`,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full border border-slate-200 bg-white text-sm text-slate-700 hover:border-primary/50 hover:text-primary transition-colors",children:[s.name," ",e.jsx(o,{className:"w-3 h-3"})]},s.slug)),e.jsxs(r,{href:"/contact",className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full border border-primary/30 bg-primary/5 text-sm text-primary hover:bg-primary/10 transition-colors font-medium",children:["Request a demo ",e.jsx(o,{className:"w-3 h-3"})]})]})]})})]}),e.jsx(f,{})]})}
1export{M 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.