1import{r as f,t as N,j as e}from"./app-BPL8QQLe.js";import{H as P,a as y}from"./Footer-CVUJlHQy.js";import{P as w}from"./PageSeo-o9rkb7i3.js";import{R as k,a as I,P as C,b as M,c as u,d as S,e as A,f as E,g as R}from"./ResourceHero-jm-_KXJq.js";import{B as h}from"./book-open-gUKRTHh9.js";import"./proxy-BypZPoV2.js";import"./arrow-right-C5BDa1Os.js";import"./chevron-left-DCNS0I6I.js";const d=10,g=["from-primary via-primary/90 to-accent","from-emerald-600 via-emerald-500 to-teal-500","from-blue-600 via-blue-500 to-cyan-500","from-purple-600 via-violet-500 to-fuchsia-500","from-orange-600 via-orange-500 to-amber-500","from-pink-600 via-rose-500 to-red-500"],H=s=>s?s.startsWith("http")?s:`${"https://backend.umwelt.ai/api".replace("/api","")}${s}`:null,L=(s,m)=>{var n,r,o,i;const l=((o=(r=(n=s.coverImage)==null?void 0:n.formats)==null?void 0:r.medium)==null?void 0:o.url)||((i=s.coverImage)==null?void 0:i.url),c=H(l)||void 0;return{id:s.documentId,title:s.title,description:s.description,path:`/resources/playbooks/${s.slug??s.documentId}`,color:g[m%g.length],image:c}},T=()=>{const[s,m]=f.useState(1),l=N(),c=l.items,n=c.length,r=Math.max(1,Math.ceil(n/d)),o=f.useMemo(()=>c.slice((s-1)*d,s*d),[c,s]),i=t=>{m(t),window.scrollTo({top:400,behavior:"smooth"})},b=()=>{const t=[];if(r<=7)for(let a=1;a<=r;a++)t.push(a);else{t.push(1),s>3&&t.push("ellipsis");const a=Math.max(2,s-1),p=Math.min(r-1,s+1);for(let x=a;x<=p;x++)t.push(x);s<r-2&&t.push("ellipsis"),t.push(r)}return t},j=(s-1)*d+1,v=Math.min(s*d,n);return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(w,{seo:l.seo}),e.jsx(P,{}),e.jsxs("main",{children:[e.jsx(k,{icon:h,badge:"Playbooks",title:"Step-by-Step Guides for HR Leaders",description:"Actionable step-by-step guides with proven frameworks and strategies to help leaders transform their employee experience."}),e.jsxs("section",{className:"py-16 md:py-24 relative",children:[e.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[e.jsx("div",{className:"absolute top-1/4 -left-32 w-64 h-64 bg-primary/5 rounded-full blur-3xl"}),e.jsx("div",{className:"absolute top-2/3 -right-32 w-96 h-96 bg-accent/5 rounded-full blur-3xl"})]}),e.jsxs("div",{className:"container max-w-6xl relative",children:[o.length===0&&e.jsxs("div",{className:"flex flex-col items-center justify-center py-20",children:[e.jsx("div",{className:"w-16 h-16 bg-muted rounded-full flex items-center justify-center mb-4",children:e.jsx(h,{className:"w-8 h-8 text-muted-foreground"})}),e.jsx("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"No playbooks yet"}),e.jsx("p",{className:"text-muted-foreground",children:"Check back soon for new content!"})]}),o.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"mb-10 flex items-center justify-between",children:e.jsxs("p",{className:"text-sm text-muted-foreground bg-muted/50 px-4 py-2 rounded-full",children:["Showing"," ",e.jsxs("span",{className:"font-semibold text-foreground",children:[j,"-",v]})," ","of ",e.jsx("span",{className:"font-semibold text-foreground",children:n})," playbooks"]})}),e.jsx("div",{className:"space-y-20 md:space-y-28",children:o.map((t,a)=>{const p=L(t,a);return e.jsxs("div",{className:"relative",children:[e.jsx(I,{...p,icon:h,index:a,alternate:!0}),a<o.length-1&&e.jsxs("div",{className:"mt-20 md:mt-28 flex items-center justify-center",children:[e.jsx("div",{className:"w-24 h-px bg-gradient-to-r from-transparent via-border to-transparent"}),e.jsx("div",{className:"w-2 h-2 rounded-full bg-border mx-4"}),e.jsx("div",{className:"w-24 h-px bg-gradient-to-r from-transparent via-border to-transparent"})]})]},t.documentId)})}),r>1&&e.jsx("div",{className:"mt-20 pt-10 border-t border-border",children:e.jsx(C,{children:e.jsxs(M,{children:[e.jsx(u,{children:e.jsx(S,{onClick:()=>s>1&&i(s-1),className:s===1?"pointer-events-none opacity-50":"cursor-pointer"})}),b().map((t,a)=>t==="ellipsis"?e.jsx(u,{children:e.jsx(A,{})},`ellipsis-${a}`):e.jsx(u,{children:e.jsx(E,{onClick:()=>i(t),isActive:s===t,className:"cursor-pointer",children:t})},t)),e.jsx(u,{children:e.jsx(R,{onClick:()=>s<r&&i(s+1),className:s===r?"pointer-events-none opacity-50":"cursor-pointer"})})]})})})]})]})]})]}),e.jsx(y,{})]})};export{T 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.