PageSourceSearch

https://bluerevolution-cc.manus.space/assets/EcosystemActivity-DGfNpCun.js

js bluerevolution-cc.manus.space collected 2026-10-03 05:01:29 UTC 8,516 bytes, 1 lines download raw bytes

1import{j as t}from"./editor-BhGk7_S1.js";import{u,d as A,b as v,L as f}from"./index-BjIHAQhU.js";import{B as r}from"./button-CK76V7Lo.js";import{A as i}from"./activity-DMU-2JR7.js";import{A as n}from"./arrow-left-DCV3pRgt.js";import{P as o}from"./plus-cTouNM34.js";import{a as j,B as N}from"./building-2-B6GsHRhA.js";import{U as E}from"./user-DC4ZvlJI.js";import{C as b}from"./circle-check-big-Buk3NWu_.js";import{S as w}from"./square-pen-syxzeoxO.js";import{M as _}from"./map-pin-Cg1SEPDo.js";import{G as k}from"./globe-rpSIUeg6.js";import{f as C}from"./formatDistanceToNow-lFqu90z9.js";import"./leaflet-DcfcX7a_.js";import"./mapbox-BPFQ-Sfv.js";import"./trpc-DqtxhgQo.js";import"./en-US-DGPccpSd.js";function J(){const{t:e}=u(),[,l]=A(),{data:m,isLoading:d}=v.ecosystem.getAll.useQuery();if(d)return t.jsx("div",{"data-loc":"client/src/pages/EcosystemActivity.tsx:16",className:"min-h-screen bg-background text-foreground p-8",children:t.jsxs("div",{"data-loc":"client/src/pages/EcosystemActivity.tsx:17",className:"max-w-7xl mx-auto",children:[t.jsxs("div",{"data-loc":"client/src/pages/EcosystemActivity.tsx:18",className:"flex items-center gap-3 mb-8",children:[t.jsx(i,{"data-loc":"client/src/pages/EcosystemActivity.tsx:19",className:"w-8 h-8 text-[oklch(0.50_0.15_259)]"}),t.jsx("h1",{"data-loc":"client/src/pages/EcosystemActivity.tsx:20",className:"text-3xl font-bold",children:e("ecosystemActivity.title")})]}),t.jsx("p",{"data-loc":"client/src/pages/EcosystemActivity.tsx:22",className:"text-muted-foreground",children:e("common.loading")})]})});const a=m?.map(s=>({id:s.id,type:"contact_created",contact:s,timestamp:s.createdAt,user:`${s.creatorFirstName} ${s.creatorLastName}`}))||[];a.sort((s,c)=>new Date(c.timestamp).getTime()-new Date(s.timestamp).getTime());const x=s=>{switch(s){case"person":return t.jsx(E,{"data-loc":"client/src/pages/EcosystemActivity.tsx:43",className:"w-5 h-5 text-[oklch(0.50_0.15_259)]"});case"company":return t.jsx(N,{"data-loc":"client/src/pages/EcosystemActivity.tsx:45",className:"w-5 h-5 text-[oklch(0.50_0.15_259)]"});case"organization":return t.jsx(j,{"data-loc":"client/src/pages/EcosystemActivity.tsx:47",className:"w-5 h-5 text-[oklch(0.60_0.12_259)]"});default:return t.jsx(o,{"data-loc":"client/src/pages/EcosystemActivity.tsx:49",className:"w-5 h-5"})}},y=s=>{switch(s){case"contact_created":return t.jsx(o,{"data-loc":"client/src/pages/EcosystemActivity.tsx:56",className:"w-6 h-6 text-[oklch(0.50_0.15_259)]"});case"contact_updated":return t.jsx(w,{"data-loc":"client/src/pages/EcosystemActivity.tsx:58",className:"w-6 h-6 text-[oklch(0.50_0.15_259)]"});case"action_completed":return t.jsx(b,{"data-loc":"client/src/pages/EcosystemActivity.tsx:60",className:"w-6 h-6 text-[oklch(0.50_0.15_259)]"});default:return t.jsx(o,{"data-loc":"client/src/pages/EcosystemActivity.tsx:62",className:"w-6 h-6"})}},p=s=>{const c=s.contact.type==="person"?`${s.contact.firstName||""} ${s.contact.name}`.trim():s.contact.name,h=s.contact.type==="person"?e("ecosystemActivity.person"):s.contact.type==="company"?e("ecosystemActivity.company"):e("ecosystemActivity.organization");return t.jsxs(t.Fragment,{children:[t.jsx("span",{"data-loc":"client/src/pages/EcosystemActivity.tsx:76",className:"font-semibold text-[oklch(0.50_0.15_259)]",children:s.user})," ",e("ecosystemActivity.added")," ",t.jsx("span",{"data-loc":"client/src/pages/EcosystemActivity.tsx:78",className:"font-semibold text-foreground",children:c})," ",e("ecosystemActivity.asNew")," ",h]})},g=s=>s.scope==="national"&&s.countryId?t.jsxs("div",{"data-loc":"client/src/pages/EcosystemActivity.tsx:87",className:"flex items-center gap-1 text-sm text-muted-foreground",children:[t.jsx(_,{"data-loc":"client/src/pages/EcosystemActivity.tsx:88",className:"w-4 h-4"}),t.jsx("span",{"data-loc":"client/src/pages/EcosystemActivity.tsx:89",children:s.countryId})]}):s.scope==="international"?t.jsxs("div",{"data-loc":"client/src/pages/EcosystemActivity.tsx:95",className:"flex items-center gap-1 text-sm text-muted-foreground",children:[t.jsx(k,{"data-loc":"client/src/pages/EcosystemActivity.tsx:96",className:"w-4 h-4"}),t.jsx("span",{"data-loc":"client/src/pages/EcosystemActivity.tsx:97",children:"International"})]}):null;return!a||a.length===0?t.jsx("div",{"data-loc":"client/src/pages/EcosystemActivity.tsx:106",className:"min-h-screen bg-background text-foreground p-8",children:t.jsxs("div",{"data-loc":"client/src/pages/EcosystemActivity.tsx:107",className:"max-w-7xl mx-auto",children:[t.jsxs(r,{"data-loc":"client/src/pages/EcosystemActivity.tsx:108",variant:"outline",className:"mb-4 bg-transparent",onClick:()=>l("/all-contact-ecosystem"),children:[t.jsx(n,{"data-loc":"client/src/pages/EcosystemActivity.tsx:113",className:"w-4 h-4 mr-2"}),e("ecosystemActivity.backToContacts")]}),t.jsxs("div",{"data-loc":"client/src/pages/EcosystemActivity.tsx:116",className:"flex items-center gap-3 mb-8",children:[t.jsx(i,{"data-loc":"client/src/pages/EcosystemActivity.tsx:117",className:"w-8 h-8 text-[oklch(0.50_0.15_259)]"}),t.jsx("h1",{"data-loc":"client/src/pages/EcosystemActivity.tsx:118",className:"text-3xl font-bold",children:e("ecosystemActivity.title")})]}),t.jsx("p",{"data-loc":"client/src/pages/EcosystemActivity.tsx:120",className:"text-muted-foreground",children:e("ecosystemActivity.noActivity")})]})}):t.jsx("div",{"data-loc":"client/src/pages/EcosystemActivity.tsx:127",className:"min-h-screen bg-background text-foreground p-8",children:t.jsxs("div",{"data-loc":"client/src/pages/EcosystemActivity.tsx:128",className:"max-w-7xl mx-auto",children:[t.jsxs(r,{"data-loc":"client/src/pages/EcosystemActivity.tsx:129",variant:"outline",className:"mb-4 bg-transparent",onClick:()=>l("/all-contact-ecosystem"),children:[t.jsx(n,{"data-loc":"client/src/pages/EcosystemActivity.tsx:134",className:"w-4 h-4 mr-2"}),e("ecosystemActivity.backToContacts")]}),t.jsxs("div",{"data-loc":"client/src/pages/EcosystemActivity.tsx:138",className:"flex items-center gap-3 mb-8",children:[t.jsx(i,{"data-loc":"client/src/pages/EcosystemActivity.tsx:139",className:"w-8 h-8 text-[oklch(0.50_0.15_259)]"}),t.jsx("h1",{"data-loc":"client/src/pages/EcosystemActivity.tsx:140",className:"text-3xl font-bold",children:e("ecosystemActivity.title")})]}),t.jsx("div",{"data-loc":"client/src/pages/EcosystemActivity.tsx:143",className:"space-y-4",children:a.map(s=>{const c=s.contact.type==="person"?`${s.contact.firstName||""} ${s.contact.name}`.trim():s.contact.name;return t.jsx(f,{"data-loc":"client/src/pages/EcosystemActivity.tsx:150",href:`/ecosystem-contact/${s.contact.
1id}`,children:t.jsx("div",{"data-loc":"client/src/pages/EcosystemActivity.tsx:151",className:"bg-card/50 backdrop-blur-sm border border-border rounded-lg p-4 hover:bg-[oklch(0.33_0.18_259)]/10 transition-colors cursor-pointer",children:t.jsxs("div",{"data-loc":"client/src/pages/EcosystemActivity.tsx:152",className:"flex items-start gap-4",children:[t.jsx("div",{"data-loc":"client/src/pages/EcosystemActivity.tsx:154",className:"w-12 h-12 rounded-full bg-[oklch(0.33_0.18_259)]/20 flex items-center justify-center flex-shrink-0",children:y(s.type)}),t.jsxs("div",{"data-loc":"client/src/pages/EcosystemActivity.tsx:159",className:"flex-1 min-w-0",children:[t.jsx("p",{"data-loc":"client/src/pages/EcosystemActivity.tsx:160",className:"text-sm font-normal text-foreground mb-2",children:p(s)}),t.jsxs("div",{"data-loc":"client/src/pages/EcosystemActivity.tsx:163",className:"flex items-center gap-4 flex-wrap",children:[t.jsx("span",{"data-loc":"client/src/pages/EcosystemActivity.tsx:164",className:"text-sm text-muted-foreground",children:C(new Date(s.timestamp),{addSuffix:!0})}),t.jsxs("div",{"data-loc":"client/src/pages/EcosystemActivity.tsx:167",className:"flex items-center gap-1",children:[x(s.contact.type),t.jsx("span",{"data-loc":"client/src/pages/EcosystemActivity.tsx:169",className:"text-sm text-muted-foreground capitalize",children:s.contact.type})]}),g(s.contact)]})]}),t.jsx("div",{"data-loc":"client/src/pages/EcosystemActivity.tsx:178",className:"w-14 h-14 rounded-full overflow-hidden bg-[#002fa7] flex items-center justify-center flex-shrink-0",children:s.contact.imageUrl?t.jsx("img",{"data-loc":"client/src/pages/EcosystemActivity.tsx:180",src:s.contact.imageUrl,alt:c,className:"w-full h-full object-cover"}):t.jsx("span",{"data-loc":"client/src/pages/EcosystemActivity.tsx:186",className:"text-white text-xl font-bold",children:c.charAt(0).toUpperCase()})})]})})},`${s.type}-${s.id}`)})})]})})}export{J 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.