PageSourceSearch

https://mypremiumservice.com/assets/BrowseCompanies-I3W5vVGP.js

js mypremiumservice.com collected 2026-10-02 00:32:31 UTC 5,051 bytes, 1 lines download raw bytes

1import{a as h,r as d,d as g,j as e,g as p,S as j,B as m,q as f,c as x,C as N,U as b,f as v,e as w}from"./index-CvEPeg3_.js";import{B as y}from"./badge-tm6ABMXD.js";import{C}from"./card-_tGVuUMX.js";import{I as L}from"./input-DslCEC8W.js";import{S}from"./skeleton-BJJJ-3ys.js";import{H as _}from"./HelpDialog-Btmq8V5B.js";import{P as B}from"./PageLayout-DFYEsjmQ.js";import{A as z}from"./AdSlot-BuiDnI6w.js";import{M as P}from"./map-pin-DAP37Osq.js";import{S as k}from"./star-BocNYY0q.js";import{P as q}from"./plus-DftMvCUB.js";import"./dialog-CPzQ-dXC.js";import"./textarea-YKJcLsd3.js";import"./select-CwoDCDFn.js";import"./index-DquPUldy.js";import"./chevron-up-Dx9Pg_1s.js";import"./PromotedCard-C6AtX86f.js";import"./wrench-D8K3zTyt.js";import"./zap-CfK_NoK7.js";function Y(){const{t:a}=h(),[t,c]=d.useState(""),{data:l=[],isLoading:u}=g({queryKey:["companies"],queryFn:()=>w.entities.Company.filter({status:"active"},"-avg_rating",100)}),o=d.useMemo(()=>l.filter(s=>{var r,i;return s.name.toLowerCase().includes(t.toLowerCase())||((r=s.industry)==null?void 0:r.toLowerCase().includes(t.toLowerCase()))||((i=s.location)==null?void 0:i.toLowerCase().includes(t.toLowerCase()))}),[l,t]);return e.jsxs("div",{children:[e.jsx("div",{className:"fixed bottom-4 right-4 z-50",children:e.jsx(_,{pageKey:"companies"})}),e.jsxs(B,{title:a("bc.title"),subtitle:a("bc.subtitle"),maxWidth:"6xl",action:e.jsx(x,{to:"/create-company",children:e.jsxs(m,{className:"gap-2 bg-secondary text-white hover:bg-secondary/90",children:[e.jsx(q,{className:"w-4 h-4"})," ",a("bc.createCompany")]})}),secondaryButton:{label:a("bc.myCompanies"),icon:p,onClick:()=>window.location.href="/my-companies"},children:[e.jsx("div",{className:"mb-8",children:e.jsxs("div",{className:"relative",children:[e.jsx(j,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(L,{placeholder:a("bc.searchPlaceholder"),value:t,onChange:s=>c(s.target.value),className:"pl-10"})]})}),u?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[...Array(6)].map((s,r)=>e.jsx(S,{className:"h-64 rounded-2xl"},r))}):o.length===0?e.jsxs("div",{className:"bg-card border rounded-2xl p-12 text-center",children:[e.jsx("p",{className:"text-muted-foreground mb-4",children:l.length===0?a("bc.noCompanies"):a("bc.noResults",{query:t})}),t&&e.jsx(m,{variant:"outline",size:"sm",onClick:()=>c(""),children:a("bc.clearSearch")})]}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:o.map((s,r)=>{var i,n;return e.jsxs(f.Fragment,{children:[r===5&&e.jsx("div",{className:"md:col-span-2 lg:col-span-3",children:e.jsx(z,{placement:"companies_feed",compact:!0,className:"grid sm:grid-cols-2 gap-3"})}),e.jsx(x,{to:`/company/${s.slug}`,children:e.jsxs(C,{className:"h-full p-5 hover:shadow-lg transition-all border cursor-pointer flex flex-col",children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center overflow-hidden",children:s.logo_url?e.jsx("img",{src:s.logo_url,alt:s.name,className:"w-full h-full object-cover"}):e.jsx("span",{className:"text-sm font-bold text-primary",children:(i=s.name)==null?void 0:i[0]})}),s.is_verified&&e.jsxs(y,{variant:"secondary",className:"gap-1",children:[e.jsx(N,{className:"w-3 h-3"})," ",a("bc.verified")]})]}),e.jsx("h3",{className:"font-semibold text-lg mb-1 line-clamp-2",children:s.name}),e.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:s.bio}),e.jsxs("div",{className:"space-y-2 mb-3 mt-auto",children:[s.industry&&e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsx("span",{className:"font-medium",children:a("bc.industry")}),e.jsx("span",{children:s.industry})]}),s.location&&e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsx(P,{className:"w-3 h-3"}),e.jsx("span",{children:s.location})]}),s.company_size&&e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsx(b,{className:"w-3 h-3"}
1),e.jsx("span",{children:a("bc.size",{size:s.company_size})})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2 pt-3 border-t",children:[e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-1",children:[e.jsx(v,{className:"w-3 h-3 text-secondary"}),e.jsx("span",{className:"text-lg font-bold text-foreground",children:s.job_count||0})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:a("bc.activeJobs")})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-1",children:[e.jsx(k,{className:"w-3 h-3 fill-yellow-400 text-yellow-400"}),e.jsx("span",{className:"text-lg font-bold",children:((n=s.avg_rating)==null?void 0:n.toFixed(1))||"N/A"})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:a("bc.rating")})]})]})]})})]},s.id)})})]})]})}export{Y 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.