PageSourceSearch

https://app.takehome.ai/assets/CompaniesList-HOYooHDc.js

js takehome.ai collected 2026-10-05 15:18:37 UTC 1,825 bytes, 1 lines download raw bytes

1import{j as e,B as r,L as a,C as n,A as d}from"./index-CIkQR4wZ.js";import{u as l}from"./useCompanies-CIdkCfF_.js";import{P as o}from"./PageHead-DfhRYyhW.js";function c(i){return i.replace(/\b(ltd|limited|llc|lda|inc)\b/gi,"").trim().split(/\s+/).slice(0,2).map(t=>{var s;return((s=t[0])==null?void 0:s.toUpperCase())??""}).join("")||"?"}function u(){var t;const i=l();return e.jsxs("div",{className:"space-y-6",children:[e.jsx(o,{title:"Companies",sub:"Each company is the container for its financials, payroll and a shareable dashboard.",actions:e.jsx(r,{asChild:!0,size:"sm",children:e.jsx(a,{to:"/companies/new",children:"Add company"})})}),i.isLoading?e.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading…"}):(t=i.data)!=null&&t.length?e.jsx(n,{pad:!1,children:e.jsx("ul",{children:i.data.map(s=>e.jsxs("li",{className:"flex min-h-[44px] items-center gap-3 border-t px-4 py-3 first:border-t-0",children:[e.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg border bg-secondary text-[11px] font-bold text-foreground/70",children:c(s.name)}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx(a,{to:`/companies/${s.id}`,className:"font-medium hover:underline",children:s.name}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:[s.country," · ",s.company_type," · ",s.currency]})]}),e.jsxs(a,{to:`/companies/${s.id}/financials`,className:"inline-flex shrink-0 items-center gap-1 text-xs font-medium text-primary hover:underline",children:["Financials",e.jsx(d,{className:"h-3 w-3"})]})]},s.id))})}):e.jsxs(n,{pad:!1,className:"p-8 text-center text-sm text-muted-foreground",children:["No companies yet."," ",e.jsx(a,{to:"/companies/new",className:"font-medium text-primary hover:underline",children:"Add your first"})]})]})}export{u 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.