PageSourceSearch

https://app.vitalityeld.com/assets/DiHXgE92.js

js vitalityeld.com collected 2026-09-24 14:56:49 UTC 2,688 bytes, 1 lines download raw bytes

1import{F as s,W as a,ar as e,bw as i,cu as t}from"./DZYn2iLo.js";import{L as o}from"./C4WhUqr3.js";import{a0 as l,a as r,o as c,a1 as n,h as m,i as j,j as d,k as p,l as h,B as x,W as u,a2 as g}from"./CmXcu67W.js";import{u as v}from"./DA8ZiHaz.js";import{C as f}from"./BAF6dEyI.js";import{g as b}from"./cuX2bMVb.js";import"./Bg2Y_5Ho.js";import"./1fkrQtyk.js";import"./OXPO6DtE.js";import"./BS7xc076.js";import"./0ES2imrZ.js";import"./VCg4fHUe.js";import"./BkzHtDqy.js";import"./CW1lZzD6.js";import"./BbCZNbO6.js";import"./DTbihnv6.js";import"./CFstkmXE.js";import"./BlPYlmHN.js";import"./BlXh1M5k.js";import"./DuLyd1h7.js";import"./CjkxeRis.js";import"./BpQVIAtX.js";import"./C1SjZvYv.js";import"./CIlsnfBz.js";import"./B6jJT4uC.js";import"./BAYV89ER.js";function N(){const N=l.useNavigate(),w=l.useSearch(),{data:y,isPending:C}=v(w),k=r(s=>s.tenantPublicInfo),P=r(s=>s.setWithSidebar);s.useEffect(()=>(P(!1),()=>P(!0)),[]);const S=(s,a)=>{N({to:".",search:e=>({...e,[s]:a})})},A=Boolean(w.search||"active"!==w.status),_=c(s=>s.hasPermission)("CREATE_COMPANY"),E=r(s=>s.showStatistics),F=b(E);return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"mb-4 flex justify-center",children:(null==k?void 0:k.logo_full_icon)?a.jsx("div",{className:"h-14",children:a.jsx("img",{src:null==k?void 0:k.logo_full_icon,alt:"system logo",className:"w-full h-full object-contain"})}):a.jsx("h1",{className:"h-10 text-3xl font-bold",children:"Drive HoS"})}),a.jsxs("div",{className:"bg-background rounded p-4",children:[a.jsxs("div",{className:"mb-4 flex flex-wrap items-center justify-between",children:[a.jsx("h2",{className:"text-2xl font-bold",children:"Companies"}),a.jsxs("div",{className:"ml-auto flex flex-wrap gap-2",children:[a.jsx(n,{placeholder:"Search company...",value:w.search,onChange:s=>S("search",s),className:"bg-background w-64 rounded-md"}),a.jsx("div",{className:"grid gap-2",children:a.jsxs(m,{value:w.status,onValueChange:s=>S("status",s),children:[a.jsx(j,{className:"bg-background w-64",children:a.jsx(d,{placeholder:"Status"})}),a.jsxs(p,{children:[a.jsx(h,{value:"all",children:"All"}),a.jsx(h,{value:"active",children:"Active"}),a.jsx(h,{value:"inactive",children:"Inactive"})]})]})}),A&&a.jsxs(x,{variant:"ghost",className:"px-2 lg:px-3",onClick:()=>{N({to:".",search:s=>({...s,status:"active",page:1,search:""})})},children:["Reset",a.jsx(e,{icon:i})]}),a.jsx(u,{queryKeys:"company-list"}),_&&a.jsx(f,{children:a.jsxs(x,{children:[a.jsx(e,{icon:t}),"Add company"]})}),a.jsx(o,{})]})]}),a.jsx(g,{page:w.page,limit:w.limit,isLoading:C,columns:F,data:(null==y?void 0:y.data.companies)||[],totalPages:null==y?void 0:y.data.paging.totalPages})]})]})}export{N as component};

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.