1import{a as d,j as e}from"./vendor-react-Bz_ZsvSD.js";import{u as N,c as k}from"./vendor-wouter-B0CVBZTb.js";import{P,B as S,V as I,E as _}from"./index-CnUkSChN.js";import{I as z,a as C}from"./IndexPagination-CwNmRbCz.js";import{u as A,f as R,s as D}from"./useBlogContent-CpfdTURP.js";import"./vendor-framer-Be2PyxnT.js";import"./ai-tools-for-customer-success-BW7KR7mH.js";import"./onboarding-management-software-DN4C-YM9.js";import"./ai-onboarding-agents-vs-product-tours-BcDnOYtF.js";import"./ai-onboarding-agent-GDCVn4vV.js";import"./ai-customer-success-agent-C-Puld2v.js";import"./best-ai-onboarding-agents-3CFnPeqZ.js";const x=8,y=[{key:"all",label:"All"},{key:"news",label:"News"},{key:"product-updates",label:"Product"},{key:"reviews",label:"Reviews"},{key:"pricing",label:"Pricing"}];function L(r){return r==="articles"?"Article":r==="reviews"?"Review":r==="pricing"?"Pricing Guide":"Article"}function E(r){if(!r)return"";try{return new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}catch{return r}}function $(r){const o=new URLSearchParams(r),s=o.get("category")||"all",l=Math.max(1,parseInt(o.get("page")||"1",10));return{category:s,page:l}}function B(){return e.jsxs("div",{className:"flex flex-row border-b border-zinc-300 animate-pulse",children:[e.jsxs("div",{className:"w-36 sm:w-44 shrink-0 flex flex-col gap-2 py-6 px-6 md:px-8 border-r border-zinc-300",children:[e.jsx("div",{className:"h-3 w-16 bg-zinc-100 rounded"}),e.jsx("div",{className:"h-3 w-20 bg-zinc-100 rounded"}),e.jsx("div",{className:"h-3 w-12 bg-zinc-100 rounded"})]}),e.jsxs("div",{className:"flex-1 flex flex-col gap-2 py-6 px-6 md:px-8",children:[e.jsx("div",{className:"h-5 bg-zinc-100 rounded w-3/4"}),e.jsx("div",{className:"h-4 bg-zinc-100 rounded"}),e.jsx("div",{className:"h-4 bg-zinc-100 rounded w-5/6"})]})]})}function K(){const[,r]=N(),o=k(),{category:s,page:l}=$(o),{items:j,loading:m}=A(),i=d.useCallback(t=>{const a={category:s,page:l,...t},n=new URLSearchParams;a.category!=="all"&&n.set("category",a.category),a.page!==1&&n.set("page",String(a.page));const b=n.toString();return b?`?${b}`:""},[s,l]),p=d.useCallback(t=>r(`/blog${i({category:t,page:1})}`),[r,i]),v=d.useCallback(t=>r(`/blog${i({page:t})}`),[r,i]),g=R(j,s),u=D(g,"date-desc"),h=Math.max(1,Math.ceil(u.length/x)),c=Math.min(l,h),f=u.slice((c-1)*x,c*x),w=m&&(s==="all"||s==="news"||s==="product-updates");return e.jsxs(e.Fragment,{children:[e.jsx(P,{path:"/blog"}),e.jsx(S,{}),e.jsxs(I,{children:[e.jsxs("section",{className:"reveal-on-scroll px-6 py-12 md:px-8 md:py-16 lg:px-12 lg:py-20 flex flex-col gap-6",children:[e.jsx(_,{children:"Blog"}),e.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-medium font-['Inter_Display'] leading-tight lg:leading-[59px] tracking-[-0.04em] text-black",children:"At the core"}),e.jsx("p",{className:"text-[19px] font-normal font-['Inter_Display'] leading-[143%] tracking-[-0.01em] text-neutral-600 max-w-2xl",children:"Practical strategies for product adoption, customer success and building AI-native experiences. Plus in-depth software reviews."})]}),e.jsx("div",{className:"md:-mx-14 border-t border-b border-zinc-300 overflow-x-auto",children:e.jsx("div",{className:"md:mx-14 grid min-w-max md:min-w-0",style:{gridTemplateColumns:`repeat(${y.length}, 1fr)`},children:y.map(t=>{const a=s===t.key;return e.jsx("button",{type:"button",onClick:()=>p(t.key),className:`w-full py-5 px-6 text-center text-base font-['Inter_Display'] border-r border-zinc-300 last:border-r-0 transition-colors ${a?"font-medium text-black shadow-[inset_0_-2px_0_0_#000]":"font-normal text-neutral-400 hover:text-neutral-600"}`,children:t.label},t.key)})})}),e.jsxs("div",{children:[w&&e.jsx("div",{children:Array.from({length:5}).map((t,a)=>e.jsx(B,{},a))}),!m&&g.length===0&&e.jsxs("div",{className:"py-24 text-center",children:[e.jsx("p",{className:"text-neutral-500 font-['Inter_Display'] text-base mb-4",children:"No content found for this filter."}),e.jsx("button",{type:"button",onClick:()=>p("all"),className:"text-sm font-semibold text-[#9400FF] hover:underline font-['Inter_Display']",children:"Clear filter"})]}),f.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{children:f.map(t=>e.jsx(z,{href:t.href,typeLabel:L(t.category),date:t.date?E(t.date):void 0,readTime:t.readTime??void 0,title:t.title,excerpt:t.excerpt??void 0,tags:t.tags},t.id))}),e.jsx("div",{className:"md:-mx-14 border-b border-zinc-300",children:e.jsx(C,{page:c,totalPages:h,onPageChange:v,buildHref:t=>{const a=new URLSearchParams;s!=="all"&&a.set("category",s),t!==1&&a.set("page",String(t));const n=a.toString();return`/blog${n?`?${n}`:""}`}})})]})]})]})]})}export{K 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.