PageSourceSearch

https://xterns.ai/assets/ClientAccelerator-NEPkoYiH.js

js xterns.ai collected 2026-10-05 13:24:33 UTC 3,518 bytes, 1 lines download raw bytes

1import{j as e,r as a,R as r,B as l,L as c,h as m,m as x,i as u,k as f,J as j,q as g,ae as N}from"./index-DLd_kDlx.js";import{C}from"./ClientBusinessGate-CKL9R3zX.js";import{l as y}from"./acceleratorManagement-jGdrPuKl.js";import{P as v}from"./plus-0WhrdjYO.js";import{L as b}from"./loader-circle-D2miE2xB.js";import{S as w}from"./settings-2-DN7526sA.js";import"./timer-CZhDpZys.js";import"./briefcase-business-CphIeAJd.js";import"./businessManagement-BTTXtuIj.js";const A={draft:"bg-slate-100 text-slate-700 hover:bg-slate-100",open:"bg-emerald-100 text-emerald-700 hover:bg-emerald-100",closed:"bg-amber-100 text-amber-700 hover:bg-amber-100"},i=t=>new Date(`${t}T00:00:00`).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"}),q=()=>e.jsx(C,{requireAccelerator:!0,children:({business:t})=>e.jsx(S,{businessId:t.id})}),S=({businessId:t})=>{const[n,p]=a.useState([]),[h,o]=a.useState(!0);return a.useEffect(()=>{(async()=>{try{o(!0),p(await y(t))}catch(d){N({title:"Unable to load accelerator programmes",description:d instanceof Error?d.message:"Please try again.",variant:"destructive"})}finally{o(!1)}})()},[t]),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{children:[e.jsxs("h1",{className:"flex items-center gap-2 text-2xl font-bold",children:[e.jsx(r,{className:"h-6 w-6 text-primary"}),"Accelerator Programmes"]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Create programmes, complete their setup, and connect accelerator pods."})]}),e.jsx(l,{asChild:!0,className:"gap-2",children:e.jsxs(c,{to:"/client/accelerator/new",children:[e.jsx(v,{className:"h-4 w-4"}),"Create Accelerator"]})})]}),h?e.jsx("div",{className:"flex justify-center py-20",children:e.jsx(b,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):n.length===0?e.jsx(m,{children:e.jsxs(x,{className:"flex flex-col items-center gap-4 py-16 text-center",children:[e.jsx(r,{className:"h-10 w-10 text-muted-foreground"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:"No accelerator programmes yet"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Create a programme to begin configuring its applicant experience."})]}),e.jsx(l,{asChild:!0,children:e.jsx(c,{to:"/client/accelerator/new",children:"Create Accelerator"})})]})}):e.jsx("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:n.map(s=>e.jsxs(m,{className:"flex flex-col",children:[e.jsx(u,{children:e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsx(f,{className:"text-lg",children:s.name}),e.jsx(j,{className:`capitalize ${A[s.status]}`,children:s.status})]})}),e.jsxs(x,{className:"flex flex-1 flex-col gap-4",children:[e.jsx("p",{className:"line-clamp-3 text-sm text-muted-foreground",children:s.description}),e.jsxs("div",{className:"space-y-2 text-sm",children:[e.jsxs("p",{className:"flex items-center gap-2",children:[e.jsx(g,{className:"h-4 w-4 text-muted-foreground"}),"Applications: ",i(s.application_open_date)," –"," ",i(s.application_close_date)]}),e.jsxs("p",{className:"flex items-center gap-2",children:[e.jsx(r,{className:"h-4 w-4 text-muted-foreground"}),"Starts ",i(s.accelerator_start_date)]})]}),e.jsx(l,{asChild:!0,variant:"outline",className:"mt-auto gap-2",children:e.jsxs(c,{to:`/client/accelerator/${s.id}/setup`,children:[e.jsx(w,{className:"h-4 w-4"}),"Continue Setup"]})})]})]},s.id))})]})};export{q 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.