vendor: 4,135 bytes, lines 1-12
1import{j as t}from"./editor-BhGk7_S1.js";import{b as i}from"./leaflet-DcfcX7a_.js";import{c as rt,k as K,h as nt,j as it,J as dt,g,u as _,d as mt,b as u,L as H,x as R,y as P,z as L}from"./index-BjIHAQhU.js";import{b as W,B as E}from"./button-CK76V7Lo.js";import{C as pt}from"./card-CaSmhJ1l.js";import{g as V,R as gt,W as xt,C as ut,T as At,h as yt,f as Z,P as ft,O as ht,i as Ct}from"./dialog-DDbhAKMR.js";import{E as Nt}from"./EcosystemContactForm-CXmPcDBq.js";import{A as Et}from"./activity-DMU-2JR7.js";import{g as jt}from"./countryUtils-Dpgj6xvN.js";import{A as vt}from"./arrow-left-DCV3pRgt.js";import{P as bt}from"./plus-cTouNM34.js";import{U as Ft}from"./users-CXg3PGFq.js";import{B as Dt,a as St}from"./building-2-B6GsHRhA.js";import{M as Mt}from"./map-pin-Cg1SEPDo.js";import{G as Tt}from"./globe-rpSIUeg6.js";import{U as wt}from"./user-plus-2mc1g1Y7.js";import"./mapbox-BPFQ-Sfv.js";import"./trpc-DqtxhgQo.js";import"./index-CmmlU_cv.js";import"./x-rm1_-8OE.js";import"./input-BtSXPsMX.js";import"./label-DwWfObJM.js";import"./CountryCombobox-D-DmjyR9.js";import"./countryTranslations--xXtAg9U.js";import"./search-DBs4wGfH.js";import"./chevrons-up-down-nO4j0qv-.js";import"./check-DFqoFjW9.js";import"./upload-B4mJ3u4C.js";import"./user-DC4ZvlJI.js";/** 2 * @license lucide-react v0.453.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const Rt=rt("UserMinus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);var J="AlertDialog",[Pt]=nt(J,[V]),p=V(),Y=e=>{const{__scopeAlertDialog:s,...a}=e,l=p(s);return t.jsx(gt,{...l,...a,modal:!0})};Y.displayName=J;var Lt="AlertDialogTrigger",Bt=i.forwardRef((e,s)=>{const{__scopeAlertDialog:a,...l}=e,o=p(a);return t.jsx(Ct,{...o,...l,ref:s})});Bt.displayName=Lt;var $t="AlertDialogPortal",z=e=>{const{__scopeAlertDialog:s,...a}=e,l=p(s);return t.jsx(ft,{...l,...a})};z.displayName=$t;var It="AlertDialogOverlay",Q=i.forwardRef((e,s)=>{const{__scopeAlertDialog:a,...l}=e,o=p(a);return t.jsx(ht,{...o,...l,ref:s})});Q.displayName=It;var C="AlertDialogContent",[Gt,Ot]=Pt(C),kt=dt("AlertDialogContent"),X=i.forwardRef((e,s)=>{const{__scopeAlertDialog:a,children:l,...o}=e,n=p(a),d=i.useRef(null),A=K(s,d),x=i.useRef(null);return t.jsx(xt,{contentName:C,titleName:q,docsSlug:"alert-dialog",children:t.jsx(Gt,{scope:a,cancelRef:x,children:t.jsxs(ut,{role:"alertdialog",...n,...o,ref:A,onOpenAutoFocus:it(o.onOpenAutoFocus,m=>{m.preventDefault(),x.current?.focus({preventScroll:!0})}),onPointerDownOutside:m=>m.preventDefault(),onInteractOutside:m=>m.preventDefault(),children:[t.jsx(kt,{children:l}),t.jsx(Ht,{contentRef:d})]})})})});X.displayName=C;var q="AlertDialogTitle",tt=i.forwardRef((e,s)=>{const{__scopeAlertDialog:a,...l}=e,o=p(a);return t.jsx(At,{...o,...l,ref:s})});tt.displayName=q;var et="AlertDialogDescription",st=i.forwardRef((e,s)=>{const{__scopeAlertDialog:a,...l}=e,o=p(a);return t.jsx(yt,{...o,...l,ref:s})});st.displayName=et;var Ut="AlertDialogAction",at=i.forwardRef((e,s)=>{const{__scopeAlertDialog:a,...l}=e,o=p(a);return t.jsx(Z,{...o,...l,ref:s})});at.displayName=Ut;var ot="AlertDialogCancel",ct=i.forwardRef((e,s)=>{const{__scopeAlertDialog:a,...l}=e,{cancelRef:o}=Ot(ot,a),n=p(a),d=K(s,o);return t.jsx(Z,{...n,...l,ref:d})});ct.displayName=ot;var Ht=({contentRef:e})=>{const s=`\`${C}\` requires a description for the component to be accessible for screen reader users. 7 8You can add a description to the \`${C}\` by passing a \`${et}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 9 10Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${C}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. 11 12For more information, see https://radix-ui.com/primitives/docs/components/
12alert-dialog`;return i.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(s)},[s,e]),null},Kt=Y,_t=z,Wt=Q,Vt=X,Zt=at,Jt=ct,Yt=tt,zt=st;function Qt({...e}){return t.jsx(Kt,{"data-loc":"client/src/components/ui/alert-dialog.tsx:10","data-slot":"alert-dialog",...e})}function Xt({...e}){return t.jsx(_t,{"data-loc":"client/src/components/ui/alert-dialog.tsx:25","data-slot":"alert-dialog-portal",...e})}function qt({className:e,...s}){return t.jsx(Wt,{"data-loc":"client/src/components/ui/alert-dialog.tsx:34","data-slot":"alert-dialog-overlay",className:g("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...s})}function te({className:e,...s}){return t.jsxs(Xt,{"data-loc":"client/src/components/ui/alert-dialog.tsx:50",children:[t.jsx(qt,{"data-loc":"client/src/components/ui/alert-dialog.tsx:51"}),t.jsx(Vt,{"data-loc":"client/src/components/ui/alert-dialog.tsx:52","data-slot":"alert-dialog-content",className:g("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...s})]})}function ee({className:e,...s}){return t.jsx("div",{"data-loc":"client/src/components/ui/alert-dialog.tsx:69","data-slot":"alert-dialog-header",className:g("flex flex-col gap-2 text-center sm:text-left",e),...s})}function se({className:e,...s}){return t.jsx("div",{"data-loc":"client/src/components/ui/alert-dialog.tsx:82","data-slot":"alert-dialog-footer",className:g("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...s})}function ae({className:e,...s}){return t.jsx(Yt,{"data-loc":"client/src/components/ui/alert-dialog.tsx:98","data-slot":"alert-dialog-title",className:g("text-lg font-semibold",e),...s})}function oe({className:e,...s}){return t.jsx(zt,{"data-loc":"client/src/components/ui/alert-dialog.tsx:111","data-slot":"alert-dialog-description",className:g("text-muted-foreground text-sm",e),...s})}function ce({className:e,...s}){return t.jsx(Zt,{"data-loc":"client/src/components/ui/alert-dialog.tsx:124",className:g(W(),e),...s})}function le({className:e,...s}){return t.jsx(Jt,{"data-loc":"client/src/components/ui/alert-dialog.tsx:136",className:g(W({variant:"outline"}),e),...s})}const re=e=>{const a={FRA:"FR",USA:"US",GBR:"GB",DEU:"DE",ITA:"IT",ESP:"ES",CAN:"CA",AUS:"AU",BRA:"BR",MEX:"MX",ARG:"AR",CHL:"CL",CHN:"CN",JPN:"JP",KOR:"KR",IND:"IN",RUS:"RU",ZAF:"ZA",EGY:"EG",MAR:"MA",NGA:"NG",KEN:"KE",GHA:"GH",SEN:"SN",TUN:"TN",DZA:"DZ",CMR:"CM",CIV:"CI",BFA:"BF",TGO:"TG",BEN:"BJ",NER:"NE",MLI:"ML",TCD:"TD",CAF:"CF",COG:"CG",COD:"CD",AGO:"AO",ZMB:"ZM",ZWE:"ZW",MOZ:"MZ",TZA:"TZ",UGA:"UG",RWA:"RW",BDI:"BI",ETH:"ET",SOM:"SO",SDN:"SD",SSD:"SS",ERI:"ER",DJI:"DJ",BWA:"BW",NAM:"NA",LSO:"LS",SWZ:"SZ",MWI:"MW",MDG:"MG",MUS:"MU",SYC:"SC",COM:"KM",CPV:"CV",STP:"ST",GNQ:"GQ",GAB:"GA",LBR:"LR",SLE:"SL",GIN:"GN",GMB:"GM",GNB:"GW",MRT:"MR",SAU:"SA",ARE:"AE",QAT:"QA",KWT:"KW",BHR:"BH",OMN:"OM",YEM:"YE",JOR:"JO",LBN:"LB",SYR:"SY",IRQ:"IQ",IRN:"IR",ISR:"IL",PSE:"PS",TUR:"TR",GRC:"GR",CYP:"CY",ARM:"AM",AZE:"AZ",GEO:"GE",AFG:"AF",PAK:"PK",BGD:"BD",NPL:"NP",BTN:"BT",LKA:"LK",MDV:"MV",THA:"TH",VNM:"VN",LAO:"LA",KHM:"KH",MMR:"MM",MYS:"MY",SGP:"SG",IDN:"ID",PHL:"PH",BRN:"BN",TLS:"TL",PNG:"PG",FJI:"FJ",SLB:"SB",VUT:"VU",NCL:"NC",PYF:"PF",NZL:"NZ",WSM:"WS",TON:"TO",KIR:"KI",TUV:"TV",NRU:"NR",PLW:"PW",FSM:"FM",MHL:"MH",POL:"PL",CZE:"CZ",SVK:"SK",HUN:"HU",ROU:"RO",BGR:"BG",HRV:"HR",SVN:"SI",BIH:"BA",SRB:"RS",MNE:"ME",MKD:"MK",ALB:"AL",UKR:"UA",BLR:"BY",MDA:"MD",LTU:"LT",LVA:"LV",EST:"EE",FIN:"FI",SWE:"SE",NOR:"NO",DNK:"DK",ISL:"IS",IRL:"IE",NLD:"NL",BEL:"BE",LUX:"LU",CHE:"CH",AUT:"AT",PRT:"PT",AND:"AD",MCO:"MC",LIE:"LI",SMR:"SM",VAT:"VA",MLT:"MT",KAZ:"KZ",UZB:"UZ",TKM:"TM",TJK:"TJ",KGZ:"KG",MNG:"MN",PRK:"KP",TWN:"TW",HKG:"HK",MAC:"MO",PAN:"PA",CRI:"CR",NIC:"NI",HND:"HN",SLV:"SV",GTM:"GT",BLZ:"BZ",CUB:"CU",HTI:"HT",DOM:"DO",JAM:"JM",TTO:"TT",BHS:"BS",BRB:"BB",GRD:"GD",LCA:"LC",VCT:"VC",ATG:"AG",DMA:"DM",KNA:"KN",COL:"CO",VEN:"VE",GUY:"GY",SUR:"SR",ECU:"EC",PER:"PE",BOL:"BO",PRY:"PY",URY:"UY"}[e?.toUpperCase()];if(!a)return"";const l=a.toUpperCase().split("").map(o=>
12127397+o.charCodeAt(0));return String.fromCodePoint(...l)},ne=(e,s)=>{const a=new Date(e),l=a.getDate(),o=s==="fr"?["Jan","Fév","Mar","Avr","Mai","Jun","Jul","Aoû","Sep","Oct","Nov","Déc"][a.getMonth()]:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][a.getMonth()],n=a.getHours().toString().padStart(2,"0"),d=a.getMinutes().toString().padStart(2,"0");return`${l} ${o} ${n}:${d}`},ie=e=>{switch(e){case"person":return"ð¤";case"company":return"ð¢";case"organization":return"ðï¸";default:return"ð"}},de=(e,s)=>{const a=e.userName.split(" ")[0],l=e.countryId?re(e.countryId):"";e.countryName;const o=ne(e.timestamp,s),n=e.contactType?ie(e.contactType):"";switch(e.type){case"new_ecosystem_contact":return s==="fr"?`${o} · ${a} a ajouté ${n} ${e.contactName} ${l}`:`${o} · ${a} added ${n} ${e.contactName} ${l}`;case"ecosystem_contact_update":return s==="fr"?`${o} · ${a} a mis à jour ${n} ${e.contactName} ${l}`:`${o} · ${a} updated ${n} ${e.contactName} ${l}`;case"ecosystem_contact_follow":return s==="fr"?`${o} · ${a} suit maintenant ${n} ${e.contactName} ${l}`:`${o} · ${a} is now following ${n} ${e.contactName} ${l}`;default:return`${o} · ${e.details}`}};function me(){const{language:e}=_(),[,s]=mt(),[a,l]=i.useState(0),{data:o}=u.ecosystem.getRecentActivity.useQuery(void 0,{refetchInterval:3e4}),n=o?.slice(0,15)||[];return i.useEffect(()=>{if(n.length===0)return;const d=setInterval(()=>{l(A=>{const x=A+1,y=n.length*30;return x>=y?0:x})},50);return()=>clearInterval(d)},[n.length]),!o||o.length===0?null:t.jsxs("div",{"data-loc":"client/src/components/EcosystemActivityTicker.tsx:170",className:"w-full flex items-center gap-4 p-4 rounded-lg backdrop-blur-md bg-white/10 border border-white/20",children:[t.jsx("div",{"data-loc":"client/src/components/EcosystemActivityTicker.tsx:172",className:"flex-1 h-[60px] overflow-hidden relative",children:t.jsx("div",{"data-loc":"client/src/components/EcosystemActivityTicker.tsx:173",className:"absolute w-full transition-transform duration-100 ease-linear",style:{transform:`translateY(-${a}px)`},children:[...n,...n].map((d,A)=>t.jsx("div",{"data-loc":"client/src/components/EcosystemActivityTicker.tsx:179",className:"py-1.5 text-white font-mono text-sm whitespace-nowrap",style:{fontFamily:"'Share Tech Mono', 'Courier New', monospace"},children:de(d,e)},`${d.id}-${A}`))})}),t.jsxs(E,{"data-loc":"client/src/components/EcosystemActivityTicker.tsx:191",onClick:()=>s("/ecosystem-activity"),variant:"outline",className:"bg-gradient-to-r from-[#002FA7] to-[#0047FF] hover:from-[#0047FF] hover:to-[#00A3FF] text-white border-none flex items-center gap-2 whitespace-nowrap",children:[t.jsx(Et,{"data-loc":"client/src/components/EcosystemActivityTicker.tsx:196",className:"w-4 h-4"}),e==="fr"?"Voir toutes les actualités":"View All News"]})]})}function Ue(){const{t:e}=_(),{data:s,isLoading:a,error:l}=u.ecosystem.getAll.useQuery(),{data:o}=u.auth.me.useQuery(),{data:n}=u.countries.list.useQuery(),[d,A]=i.useState("all"),[x,m]=i.useState(!1),[y,B]=i.useState("all"),[v,b]=i.useState(null),$=u.useUtils(),I=u.ecosystem.follow.useMutation({onSuccess:()=>{$.ecosystem.getAll.invalidate()}}),G=u.ecosystem.unfollow.useMutation({onSuccess:()=>{$.ecosystem.getAll.invalidate()}}),F=i.useMemo(()=>!s||!o?[]:y==="mine"?s.filter(c=>c.createdBy===o.id||c.followers?.some(N=>N.id===o.id)):s,[s,o,y]),D=F?.filter(c=>c.type==="person")||[],S=F?.filter(c=>c.type==="company")||[],M=F?.filter(c=>c.type==="organization")||[];if(a)return t.jsxs("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:70",className:"min-h-screen bg-background text-foreground flex items-center justify-center",children:[t.jsx("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:71",className:"starfield"}),t.jsx("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:72",className:"text-muted-foreground",children:"Loading ecosystem contacts..."})]});if(l)return t.jsxs("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:79",className:"min-h-screen bg-background text-foreground flex items-center justify-center",children:[t.jsx("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:80",className:"starfield"}),t.jsxs("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:81",className:"relative z-10 text-center",children:[t.jsx("h2",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:82",className:"text-2xl font-bold mb-4",children:"Accès refusé"}),t.jsx("p",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:83",className:"text-muted-foreground mb-4",children:l.message||"Vous n'avez pas accès aux contacts écosystème."}),t.jsx("p",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:86",className:"text-sm text-muted-foreground",children:"Contactez un administrateur pour obtenir les droits d'accès."})]})]});const T=c=>{const N=c.type==="person"?`${c.firstName||""} ${c.name}`.trim():c.name,O=r=>{if(!r)return null;const f=jt(r);return f?`https://flagcdn.com/20x15/${f}.png`:null},j=r=>!r||!n?null:n.find(w=>w.id===r)?.name||r;return t.jsx(H,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:113",href:`/ecosystem-contact/${c.id}`,children:t.jsx(pt,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:114",className:`p-4 backdrop-blur-md border transition-all cursor-pointer rounded-xl relative ${c.followers?.some(r=>r.id===o?.id)?"bg-blue-600/25 border-blue-400/60 hover:bg-blue-500/30 hover:border-blue-300/70":"bg-white/5 border-white/10 hover:bg-white/10 hover:border-[#0047FF]/50"}`,children:t.jsxs("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:119",className:"flex items-center gap-3",children:[t.jsx("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:121",className:"w-12 h-12 rounded-full bg-blue-600 flex items-center justify-center overflow-hidden flex-shrink-0",children:c.imageUrl?t.jsx("img",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:123",src:c.imageUrl,alt:N,className:"w-full h-full object-cover"}):t.jsx("span",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:129",className:"text-white text-lg font-bold",children:N.charAt(0).toUpperCase()})}),t.jsxs("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:136",className:"min-w-0",children:[t.jsx("h3",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:137",className:"font-semibold text-base truncate",children:N}),t.jsx("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:138",className:"flex items-center gap-2 text-xs text-muted-foreground mt-0.5",children:c.scope==="national"&&c.countryId?t.jsxs("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:140",className:"flex items-center gap-1",children:[t.jsx(Mt,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:141",className:"w-4 h-4"}),t.jsxs(R,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:142",children:[t.jsx(P,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:143",children:(()=>{const r=O(c.countryId);return r?t.jsx("img",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:144",src:r,alt:c.countryId||"",width:20,height:15,className:"object-contain inline-block",onError:f=>{f.target.style.display="none"}}):null})()}),t.jsx(L,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:146",children:t.jsx("p",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:147",children:j(c.countryId)})})]}),t.jsx("span",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:150",children:j(c.countryId)})]}):t.jsxs("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:153",className:"flex items-center gap-1",children:[t.jsx(Tt,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:154",className:"w-4 h-4"}),t.jsx("span",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:155",children:e("ecosystem.international")}),c.countries&&(()=>{try{const r=JSON.parse(c.countries);if(Array.isArray(r)&&r.length>0){const w=r.slice(0,3),k=r.length-3;return t.jsxs("span",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:164",className:"flex items-center gap-1",children:[w.map(h=>t.jsxs(R,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:166",children:[t.jsx(P,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:167",children:(()=>{const U=O(h);return U?t.jsx("img",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:168",src:U,alt:h,width:20,height:15,className:"object-contain inline-block",onError:lt=>{lt.target.style.display="none"}}):null})()}),t.jsx(L,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:170",children:t.jsx("p",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:171",children:j(h)})})]},h)),k>0&&t.jsxs(R,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:176",children:[t.jsx(P,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:177",children:t.jsxs("span",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:178",className:"text-xs text-muted-foreground",children:["+",k]})}),t.jsx(L,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:180",children:t.jsx("p",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:181",children:r.slice(3).map(h=>j(h)).join(", ")})})]})]})}}catch{return null}return null})()]})}),t.jsxs("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:196",className:"text-xs text-muted-foreground mt-0.5",children:[e("ecosystem.createdBy")," ",c.creatorFirstName," ",c.creatorLastName]}),c.followers&&c.followers.length>0&&t.jsxs("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:200",className:"text-xs text-muted-foreground mt-0.5 flex items-center gap-1",children:[t.jsx("span",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:201",children:e("ecosystem.followedBy")}),t.jsx("span",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:202",className:"font-medium",children:c.followers.map(r=>`${r.firstName} ${r.lastName}`).join(", ")})]})]}),o&&(o.isEcosystemAmbassador||o.role==="admin")&&t.jsx("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:211",className:"absolute top-4 right-4",children:c.followers?.some(r=>r.id===o.id)?t.jsx(E,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:213",variant:"outline",size:"icon",onClick:r=>{r.preventDefault(),r.stopPropagation(),G.mutate({contactId:c.id})},disabled:G.isPending,className:"bg-gradient-to-r from-[#FF3000] via-[#FF4500] to-[#FF6B00] hover:from-[#FF4500] hover:via-[#FF5500] hover:to-[#FF8000] border-0 text-white h-8 w-8 shadow-lg",children:t.jsx(Rt,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:224",className:"w-4 h-4"})}):t.jsx(E,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:227",variant:"outline",size:"icon",onClick:r=>{r.preventDefault(),r.stopPropagation(),b(c.id)},disabled:I.isPending,className:"bg-gradient-to-r from-[#0047FF] to-[#00A3FF] hover:from-[#00A3FF] hover:to-[#4AC3FF] border-0 text-white h-8 w-8",children:t.jsx(wt,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:238",className:"w-4 h-4"})})})]})})},c.id)};return t.jsxs("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:250",className:"min-h-screen bg-background text-foreground",children:[t.jsx("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:251",className:"starfield"}),t.jsxs("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:253",className:"relative z-10",children:[t.jsx("header",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:255",className:"border-b border-white/10 bg-[#0a0e27]/95 backdrop-blur-sm",children:t.jsxs("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:256",className:"container py-4",children:[t.jsx("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:257",className:"flex items-center gap-4 mb-3",children:t.jsx(H,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:258",href:"/",children:t.jsxs(E,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:259",variant:"ghost",size:"sm",children:[t.jsx(vt,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:260",className:"w-4 h-4 mr-2"}),e("ecosystem.back")]})})}),t.jsx("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:265",className:"flex justify-between items-center",children:t.jsxs("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:266",children:[t.jsx("h1",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:267",className:"text-3xl font-bold mb-1",style:{background:"linear-gradient(90deg, #0047FF 0%, #00A3FF 50%, #4AC3FF 100%)",WebkitBackgroun
12dClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"},children:e("ecosystem.title")}),t.jsx("p",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:270",className:"text-base text-muted-foreground",children:e("ecosystem.subtitle")})]})})]})}),t.jsxs("main",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:279",className:"container py-6 space-y-8",children:[t.jsx("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:281",children:t.jsx(me,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:282"})}),t.jsxs("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:286",className:"flex items-center justify-center gap-4",children:[t.jsxs("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:288",className:"flex items-center gap-2 bg-white/5 backdrop-blur-md rounded-lg p-1 border border-white/10",children:[t.jsx("button",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:289",onClick:()=>B("all"),className:`px-4 py-2 rounded-md font-medium transition-all ${y==="all"?"bg-gradient-to-r from-[#0047FF] to-[#00A3FF] text-white shadow-sm":"text-muted-foreground hover:text-foreground hover:bg-white/5"}`,children:e("ecosystem.all")}),t.jsx("button",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:299",onClick:()=>B("mine"),className:`px-4 py-2 rounded-md font-medium transition-all ${y==="mine"?"bg-gradient-to-r from-[#0047FF] to-[#00A3FF] text-white shadow-sm":"text-muted-foreground hover:text-foreground hover:bg-white/5"}`,children:e("ecosystem.mine")})]}),t.jsxs(E,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:310",className:"bg-gradient-to-r from-[#002FA7] to-[#0047FF] hover:from-[#0047FF] hover:to-[#00A3FF] text-white border-0",onClick:()=>m(!0),children:[t.jsx(bt,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:314",className:"w-4 h-4 mr-2"}),e("ecosystem.addContact")]})]}),t.jsxs("section",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:320",children:[t.jsxs("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:321",className:"flex items-center gap-3 mb-4",children:[t.jsx(Ft,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:322",className:"w-6 h-6 text-primary"}),t.jsxs("h2",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:323",className:"text-2xl font-bold",style:{background:"linear-gradient(90deg, #0047FF 0%, #00A3FF 50%, #4AC3FF 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"},children:[e("ecosystem.persons")," (",D.length,")"]})]}),D.length===0?t.jsx("p",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:326",className:"text-muted-foreground",children:e("ecosystem.noPersons")}):t.jsx("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:328",className:"grid grid-cols-1 lg:grid-cols-3 gap-3 items-start",children:D.map(T)})]}),t.jsxs("section",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:335",children:[t.jsxs("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:336",className:"flex items-center gap-3 mb-4",children:[t.jsx(Dt,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:337",className:"w-6 h-6 text-primary"}),t.jsxs("h2",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:338",className:"text-2xl font-bold",style:{background:"linear-gradient(90deg, #0047FF 0%, #00A3FF 50%, #4AC3FF 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"},children:[e("ecosystem.companies")," (",S.length,")"]})]}),S.length===0?t.jsx("p",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:341",className:"text-muted-foreground",children:e("ecosystem.noCompanies")}):t.jsx("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:343",className:"grid grid-cols-1 lg:grid-cols-3 gap-3 items-start",children:S.map(T)})]}),t.jsxs("section",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:350",children:[t.jsxs("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:351",className:"flex items-center gap-3 mb-4",children:[t.jsx(St,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:352",className:"w-6 h-6 text-primary"}),t.jsxs("h2",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:353",className:"text-2xl font-bold",style:{background:"linear-gradient(90deg, #0047FF 0%, #00A3FF 50%, #4AC3FF 100%)",WebkitBackgroun
12dClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"},children:[e("ecosystem.organizations")," (",M.length,")"]})]}),M.length===0?t.jsx("p",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:356",className:"text-muted-foreground",children:e("ecosystem.noOrganizations")}):t.jsx("div",{"data-loc":"client/src/pages/AllContactEcosystem.tsx:358",className:"grid grid-cols-1 lg:grid-cols-3 gap-3 items-start",children:M.map(T)})]})]})]}),t.jsx(Nt,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:367",open:x,onOpenChange:m,onSuccess:()=>{m(!1)}}),t.jsx(Qt,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:376",open:v!==null,onOpenChange:c=>!c&&b(null),children:t.jsxs(te,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:377",children:[t.jsxs(ee,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:378",children:[t.jsx(ae,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:379",children:e("ecosystem.confirmFollow")}),t.jsx(oe,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:380",children:e("ecosystem.confirmFollowDesc")})]}),t.jsxs(se,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:384",children:[t.jsx(le,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:385",children:e("ecosystem.cancel")}),t.jsx(ce,{"data-loc":"client/src/pages/AllContactEcosystem.tsx:386",onClick:()=>{v&&(I.mutate({contactId:v}),b(null))},children:e("ecosystem.confirm")})]})]})})]})}export{Ue 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.