PageSourceSearch

https://bluerevolution-cc.manus.space/assets/TestHome--li7wToY.js

js bluerevolution-cc.manus.space collected 2026-10-03 05:01:01 UTC 21,404 bytes, 13 lines download raw bytes

1import{j as e}from"./editor-BhGk7_S1.js";import $ from"./Globe3D-BOKP6bZZ.js";import{S as Y}from"./Statistics-CK2aGXsn.js";import{B as G}from"./button-CK76V7Lo.js";import{C as D}from"./card-CaSmhJ1l.js";import{u as K,b as A,a as W,L as P,t as k}from"./index-BjIHAQhU.js";import{b as h}from"./leaflet-DcfcX7a_.js";import{A as J}from"./AuthModal-DOX1HBlV.js";import{t as y}from"./countryTranslations--xXtAg9U.js";import{D as Q,a as _,b as q,c as M,d as I,e as X,L as ee}from"./dropdown-menu-DcmxudBO.js";import{U as L}from"./user-DC4ZvlJI.js";import{S as ae}from"./settings-BDQalZhu.js";import{C as O}from"./check-DFqoFjW9.js";import{C as U}from"./copy-XdjMT1NJ.js";import"./mapbox-BPFQ-Sfv.js";import"./mapbox-gl-DEKaLS0d.js";import"./trpc-DqtxhgQo.js";import"./dialog-DDbhAKMR.js";import"./index-CmmlU_cv.js";import"./x-rm1_-8OE.js";import"./CityAutocomplete-t8y1NAcF.js";import"./input-BtSXPsMX.js";import"./languages-CKIgFA9r.js";import"./languageTranslations-BWtqfsq5.js";import"./log-in-CXlq96ds.js";import"./sparkles-d8zLxPkz.js";import"./refresh-cw-A4TQI-r2.js";import"./index-CHxMfpQB.js";import"./index-CinKPxzG.js";function te(){const{language:a,setLanguage:r}=K();return e.jsxs("div",{"data-loc":"client/src/components/LanguageSwitcher.tsx:7",className:"flex items-center gap-2 text-sm font-medium",children:[e.jsx("button",{"data-loc":"client/src/components/LanguageSwitcher.tsx:8",onClick:()=>r("en"),className:`transition-colors ${a==="en"?"text-white":"text-gray-500 hover:text-gray-300"}`,children:"EN"}),e.jsx("span",{"data-loc":"client/src/components/LanguageSwitcher.tsx:18",className:"text-gray-500",children:"|"}),e.jsx("button",{"data-loc":"client/src/components/LanguageSwitcher.tsx:19",onClick:()=>r("fr"),className:`transition-colors ${a==="fr"?"text-white":"text-gray-500 hover:text-gray-300"}`,children:"FR"})]})}function se(){const{data:a,isLoading:r}=A.countries.list.useQuery();return{countries:a||[],loading:r}}function ce(a){const r=a.length,c=a.filter(p=>p.participating===1).length,b=r-c,m=Math.round(c/100*100);return{totalCountries:r,countriesReached:c,countriesRemaining:b,progressPercentage:m,remainingPercentage:100-m}}function ne(a){return["Europe","North America","South America","Africa","Middle East","Asia","Oceania","Arctic","Antarctica"].map(c=>{const b=a.filter(f=>f.continent===c),m=b.length,p=b.filter(f=>f.participating===1).length,i=m>0?Math.round(p/m*100):0;return{name:c,total:m,participating:p,percentage:i}}).filter(c=>c.total>0)}function Pe(){const{t:a,language:r}=K(),{countries:c,loading:b}=se(),[m,p]=h.useState(!1),[i,f]=h.useState(["sure","very_probable","probable","uncertain"]),[R,re]=h.useState("all"),[w,C]=h.useState(null),[B,N]=h.useState(null),{data:d,refetch:E}=A.auth.me.useQuery(),V=A.auth.logout.useMutation({onSuccess:()=>{E()}}),{data:v}=A.contactLeads.byCountry.useQuery({statuses:["sure","very_probable","probable","uncertain"]}),F={AFG:"Afghanistan",ALB:"Albania",DZA:"Algeria",AND:"Andorra",AGO:"Angola",ATG:"Antigua and Barbuda",ARG:"Argentina",ARM:"Armenia",AUS:"Australia",AUT:"Austria",AZE:"Azerbaijan",BHS:"Bahamas",BHR:"Bahrain",BGD:"Bangladesh",BRB:"Barbados",BLR:"Belarus",BEL:"Belgium",BLZ:"Belize",BEN:"Benin",BTN:"Bhutan",BOL:"Bolivia",BIH:"Bosnia and Herzegovina",BWA:"Botswana",BRA:"Brazil",BRN:"Brunei",BGR:"Bulgaria",BFA:"Burkina Faso",BDI:"Burundi",CPV:"Cabo Verde",KHM:"Cambodia",CMR:"Cameroon",CAN:"Canada",CAF:"Central African Republic",TCD:"Chad",CHL:"Chile",CHN:"China",COL:"Colombia",COM:"Comoros",COG:"Congo",COD:"Democratic Republic of the Congo",CRI:"Costa Rica",HRV:"Croatia",CUB:"Cuba",CYP:"Cyprus",CZE:"Czech Republic",DNK:"Denmark",DJI:"Djibouti",DMA:"Dominica",DOM:"Dominican Republic",ECU:"Ecuador",EGY:"Egypt",SLV:"El Salvador",GNQ:"Equatorial Guinea",ERI:"Eritrea",EST:"Estonia",SWZ:"Eswatini",ETH:"Ethiopia",FJI:"Fiji",FIN:"Finland",FRA:"France",GAB:"Gabon",GMB:"Gambia",GEO:"Georgia",DEU:"Germany",GHA:"Ghana",GRC:"Greece",GRD:"Grenada",GTM:"Guatemala",GIN:"Guinea",GNB:"Guinea-Bissau",GUY:"Guyana",HTI:"Haiti",HND:"Honduras",HUN:"Hungary",ISL:"Iceland",IND:"India",IDN:"Indonesia",IRN:"Iran",IRQ:"Iraq",IRL:"Ireland",ISR:"Israel",ITA:"Italy",CIV:"Ivory Coast",JAM:"Jamaica",JPN:"Japan",JOR:"Jordan",KAZ:"Kazakhstan",KEN:"Kenya",KIR:"Kiribati",PRK:"North Korea",KOR:"South Korea",KWT:"Kuwait",KGZ:"Kyrgyzstan",LAO:"Laos",LVA:"Latvia",LBN:"Lebanon",LSO:"Lesotho",LBR:"Liberia",LBY:"Libya",LIE:"Liechtenstein",LTU:"Lithuania",LUX:"Luxembourg",MDG:"Madagascar",MWI:"Malawi",MYS:"Malaysia",MDV:"Maldives",MLI:"Mali",MLT:"Malta",MHL:"Marshall Islands",MRT:"Mauritania",MUS:"Mauritius",MEX:"Mexico",FSM:"Micronesia",MDA:"Moldova",MCO:"Monaco",MNG:"Mongolia",MNE:"Montenegro",MAR:"Morocco",MOZ:"Mozambique",MMR:"Myanmar",NAM:"Namibia",NRU:"Nauru",NPL:"Nepal",NLD:"Netherlands",NZL:"New Zealand",NIC:"Nicaragua",NER:"Niger",NGA:"Nigeria",MKD:"North Macedonia",NOR:"Norway",OMN:"Oman",PAK:"Pakistan",PLW:"Palau",PAN:"Panama",PNG:"Papua New Guinea",PRY:"Paraguay",PER:"Peru",PHL:"Philippines",POL:"Poland",PRT:"Portugal",QAT:"Qatar",ROU:"Romania",RUS:"Russia",RWA:"Rwanda",KNA:"Saint Kitts and Nevis",LCA:"Saint Lucia",VCT:"Saint Vincent and the Grenadines",WSM:"Samoa",SMR:"San Marino",STP:"Sao Tome and Principe",SAU:"Saudi Arabia",SEN:"Senegal",SRB:"Serbia",SYC:"Seychelles",SLE:"Sierra Leone",SGP:"Singapore",SVK:"Slovakia",SVN:"Slovenia",SLB:"Solomon Islands",SOM:"Somalia",ZAF:"South Africa",SSD:"South Sudan",ESP:"Spain",LKA:"Sri Lanka",SDN:"Sudan",SUR:"Suriname",SWE:"Sweden",CHE:"Switzerland",SYR:"Syria",TWN:"Taiwan",TJK:"Tajikistan",TZA:"Tanzania",THA:"Thailand",TLS:"Timor-Leste",TGO:"Togo",TON:"Tonga",TTO:"Trinidad and Tobago",TUN:"Tunisia",TUR:"Turkey",TK
1M:"Turkmenistan",TUV:"Tuvalu",UGA:"Uganda",UKR:"Ukraine",ARE:"United Arab Emirates",GBR:"United Kingdom",USA:"United States",URY:"Uruguay",UZB:"Uzbekistan",VUT:"Vanuatu",VAT:"Vatican City",VEN:"Venezuela",VNM:"Vietnam",YEM:"Yemen",ZMB:"Zambia",ZWE:"Zimbabwe",PYF:"French Polynesia",ARC:"Arctic",ANT:"Antarctica"},o=h.useMemo(()=>{if(!v||i.length===0)return{};const t={};return Object.entries(v).forEach(([s,n])=>{const l=F[s]||s;let T=n.filter(u=>i.includes(u.status));R==="me"&&d&&(T=T.filter(u=>u.userId===d.id)),T.length>0&&(t[l]=T.map(u=>({...u,city:u.city??"",content:u.content??""})))}),t},[v,i,R,d]),j=t=>{f(s=>s.includes(t)?s.filter(n=>n!==t):[...s,t])},x=h.useMemo(()=>o?c.filter(t=>t.participating!==1&&o[t.name]&&o[t.name].length>0).length:0,[c,o]);if(b)return e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:177",className:"min-h-screen flex items-center justify-center bg-background text-foreground",children:[e.jsx("div",{"data-loc":"client/src/pages/TestHome.tsx:178",className:"starfield"}),e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:179",className:"flex flex-col items-center gap-4",children:[e.jsx(W,{"data-loc":"client/src/pages/TestHome.tsx:180",className:"w-12 h-12 animate-spin text-primary"}),e.jsx("p",{"data-loc":"client/src/pages/TestHome.tsx:181",className:"text-muted-foreground",children:"Loading Blue Revolution Mission Center..."})]})]});const g=ce(c),Z=ne(c),z=["Europe","North America","South America","Africa","Middle East","Asia","Oceania","Arctic","Antarctica"],H=t=>({Europe:a("region.europe"),"North America":a("region.northAmerica"),"South America":a("region.southAmerica"),Africa:a("region.africa"),"Middle East":a("region.middleEast"),Asia:a("region.asia"),Oceania:a("region.oceania"),Arctic:a("region.arctic"),Antarctica:a("region.antarctica")})[t]||t,S=t=>{const s={};return z.forEach(n=>{s[n]=t.filter(l=>l.continent===n).sort((l,T)=>l.name.localeCompare(T.name))}),s};return e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:216",className:"min-h-screen bg-black text-foreground",children:[e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:218",className:"relative z-10",children:[e.jsx("header",{"data-loc":"client/src/pages/TestHome.tsx:220",className:"border-b border-border bg-card/50 backdrop-blur-sm",children:e.jsx("div",{"data-loc":"client/src/pages/TestHome.tsx:221",className:"container py-4 md:py-6",children:e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:222",className:"relative mb-4 flex items-start",children:[e.jsx("div",{"data-loc":"client/src/pages/TestHome.tsx:223",className:"absolute left-0 top-0",children:e.jsx(te,{"data-loc":"client/src/pages/TestHome.tsx:224"})}),e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:227",className:"flex flex-col items-center gap-3 mx-auto",children:[e.jsx("a",{"data-loc":"client/src/pages/TestHome.tsx:228",href:"https://www.onehome.org",target:"_blank",rel:"noopener noreferrer",className:"flex-shrink-0",children:e.jsx("img",{"data-loc":"client/src/pages/TestHome.tsx:229",src:"/onehome-logo-cropped.svg",alt:"OneHome",className:"h-8 md:h-10 w-auto",style:{imageRendering:"crisp-edges"}})}),e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:236",className:"text-center",children:[e.jsxs("h1",{"data-loc":"client/src/pages/TestHome.tsx:237",className:"text-lg md:text-2xl font-bold text-gradient-blue mb-1 whitespace-nowrap",children:[a("home.title")," - TEST PAGE"]}),e.jsx("p",{"data-loc":"client/src/pages/TestHome.tsx:240",className:"text-sm md:text-base text-muted-foreground whitespace-nowrap",children:"3D Globe Version"})]})]}),e.jsx("div",{"data-loc":"client/src/pages/TestHome.tsx:246",className:"absolute right-0 top-0",children:d?e.jsxs(Q,{"data-loc":"client/src/pages/TestHome.tsx:248",children:[e.jsx(_,{"data-loc":"client/src/pages/TestHome.tsx:249",asChild:!0,children:e.jsxs(G,{"data-loc":"client/src/pages/TestHome.tsx:250",variant:"outline",className:"bg-transparent text-xs md:text-sm px-2 md:px-3 py-0 md:py-2 min-h-0 md:min-
1h-[44px]",children:[e.jsx(L,{"data-loc":"client/src/pages/TestHome.tsx:251",className:"w-4 h-4 mr-1 md:mr-2"}),e.jsx("span",{"data-loc":"client/src/pages/TestHome.tsx:252",className:"hidden sm:inline",children:d.firstName||d.name||d.email}),e.jsx("span",{"data-loc":"client/src/pages/TestHome.tsx:253",className:"sm:hidden",children:"Account"})]})}),e.jsxs(q,{"data-loc":"client/src/pages/TestHome.tsx:256",align:"end",children:[e.jsx(P,{"data-loc":"client/src/pages/TestHome.tsx:257",href:`/profile/${d.id}`,children:e.jsxs(M,{"data-loc":"client/src/pages/TestHome.tsx:258",children:[e.jsx(L,{"data-loc":"client/src/pages/TestHome.tsx:259",className:"w-4 h-4 mr-2"}),a("header.myAccount")]})}),d.role==="admin"&&e.jsxs(e.Fragment,{children:[e.jsx(I,{"data-loc":"client/src/pages/TestHome.tsx:265"}),e.jsx(X,{"data-loc":"client/src/pages/TestHome.tsx:266",className:"text-xs text-muted-foreground",children:"Admin"}),e.jsx(P,{"data-loc":"client/src/pages/TestHome.tsx:267",href:"/admin",children:e.jsxs(M,{"data-loc":"client/src/pages/TestHome.tsx:268",children:[e.jsx(ae,{"data-loc":"client/src/pages/TestHome.tsx:269",className:"w-4 h-4 mr-2"}),a("header.adminPanel")]})})]}),e.jsx(I,{"data-loc":"client/src/pages/TestHome.tsx:275"}),e.jsxs(M,{"data-loc":"client/src/pages/TestHome.tsx:276",onClick:()=>V.mutate(),children:[e.jsx(ee,{"data-loc":"client/src/pages/TestHome.tsx:277",className:"w-4 h-4 mr-2"}),a("header.logout")]})]})]}):e.jsxs(G,{"data-loc":"client/src/pages/TestHome.tsx:283",variant:"outline",className:"bg-transparent text-xs md:text-sm px-2 md:px-3 py-2 min-h-[44px]",onClick:()=>p(!0),children:[e.jsx(L,{"data-loc":"client/src/pages/TestHome.tsx:288",className:"w-4 h-4 mr-1 md:mr-2"}),a("header.login")]})})]})})}),e.jsxs("main",{"data-loc":"client/src/pages/TestHome.tsx:298",className:"container py-4 md:py-8 space-y-6 md:space-y-8",children:[e.jsx("section",{"data-loc":"client/src/pages/TestHome.tsx:301",children:e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:302",className:"bg-card/50 backdrop-blur-sm rounded-lg border border-border p-4 md:p-6",children:[e.jsx("h2",{"data-loc":"client/src/pages/TestHome.tsx:303",className:"text-xl md:text-2xl font-bold mb-4 text-center",children:"🌍 Interactive 3D Globe"}),e.jsx($,{"data-loc":"client/src/pages/TestHome.tsx:304",countries:c,contactLeadsByCountry:o||{},selectedStatuses:i})]})}),e.jsx("section",{"data-loc":"client/src/pages/TestHome.tsx:313",children:e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:314",className:"bg-card/50 backdrop-blur-sm rounded-lg border border-border p-4 md:p-6",children:[e.jsx("h3",{"data-loc":"client/src/pages/TestHome.tsx:315",className:"text-sm md:text-base font-semibold mb-2",children:a("home.showPotential")}),e.jsx("p",{"data-loc":"client/src/pages/TestHome.tsx:316",className:"text-sm text-muted-foreground mb-3",children:a("home.confidenceLevel")}),e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:317",className:"flex flex-wrap gap-3",children:[e.jsxs("label",{"data-loc":"client/src/pages/TestHome.tsx:318",className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{"data-loc":"client/src/pages/TestHome.tsx:319",type:"checkbox",checked:i.includes("sure"),onChange:()=>j("sure"),className:"w-4 h-4 rounded border-border text-primary focus:ring-primary"}),e.jsx("span",{"data-loc":"client/src/pages/TestHome.tsx:325",children:a("home.sure")})]}),e.jsxs("label",{"data-loc":"client/src/pages/TestHome.tsx:327",className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{"data-loc":"client/src/pages/TestHome.tsx:328",type:"checkbox",checked:i.includes("very_probable"),onChange:()=>j("very_probable"),className:"w-4 h-4 rounded border-border text-primary focus:ring-primary"}),e.jsx("span",{"data-loc":"client/src/pages/TestHome.tsx:334",children:a("home.veryProbable")})]}),e.jsxs("label",{"data-loc":"client/src/pages/TestHome.tsx:336",className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{"data-loc":"client/src/pages/TestHome.tsx:337",type:"checkbox",checked:i.includes("probable"),onChange:()=>j("probable"),className:"w-4 h-4 rounded border-border text-primary focus:ring-primary"}),e.jsx("span",{"data-loc":"client/src/pages/TestHome.tsx:343",children:a("home.probable")})]}),e.jsxs("label",{"data-loc":"client/src/pages/TestHome.tsx:345",className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{"data-loc":"client/src/pages/TestHome.tsx:346",type:"checkbox",checked:i.includes("uncertain"),onChange:()=>j("uncertain"),className:"w-4 h-4 rounded border-border text-primary focus:ring-primary"}),e.jsx("span",{"data-loc":"client/src/pages/TestHome.tsx:352",children:a("home.uncertain")})]})]})]})}),e.jsx("section",{"data-loc":"client/src/pages/TestHome.tsx:359",children:e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:360",className:"bg-card/50 backdrop-blur-sm rounded-lg border border-border p-4 md:p-6",children:[e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:361",className:"flex justify-between items-center mb-2",children:[e.jsx("h3",{"data-loc":"client/src/pages/TestHome.tsx:362",className:"text-xs md:text-sm font-semibold",children:a("home.progressToward")}),e.jsxs("span",{"data-loc":"client/src/pages/TestHome.tsx:363",className:"text-xs md:text-sm font-mono",children:[g.countriesReached+x,"/100"]})]}),e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:367",className:"relative",onMouseLeave:()=>C(null),children:[e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:371",className:"h-8 bg-gray-700 rounded-full overflow-hidden flex",children:[e.jsx("div",{"data-loc":"client/src/pages/TestHome.tsx:373",className:"h-full bg-[#1e40af] transition-all duration-500 cursor-pointer hover:opacity-80",style:{width:`${g.countriesReached}%`},onMouseEnter:()=>C("participating")}),e.jsx("div",{"data-loc":"client/src/pages/TestHome.tsx:379",className:"h-full bg-[#60a5fa] transition-all duration-500 cursor-pointer hover:opacity-80",style:{width:`${x}%`},onMouseEnter:()=>C("potential")})]}),w==="participating"&&e.jsx("div",{"data-loc":"client/src/pages/TestHome.tsx:388",className:"absolute left-0 right-0 top-full pt-2 z-[100]",children:e.jsxs(D,{"data-loc":"client/src/pages/TestHome.tsx:389",className:"p-4 bg-card text-card-foreground shadow-2xl border-2 max-h-96 overflow-y-auto",children:[e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:390",className:"flex justify-between items-start mb-3",children:[e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:391",className:"font-semibold text-base text-[#1e40af]",children:[a("home.participating")," (",g.countriesReached,")"]}),e.jsx("button",{"data-loc":"client/src/pages/TestHome.tsx:394",onClick:()=>{const t=`${a("home.participating")} (${g.countriesReached})
2
3`+Object.entries(S(c.filter(s=>s.participating===1))).map(([s,n])=>n.length===0?"":`${H(s)}:
4`+n.map(l=>`• ${y(l.name,r)}`).join(`
5`)).filter(Boolean).join(`
6
7`);navigator.clipboard.writeText(t),N("global-bar-participating"),k.success(a("tooltip.copied")||"Copié !"),setTimeout(()=>N(null),2e3)},className:"flex-shrink-0 p-1.5 hover:bg-[#1e40af]/10 rounded transition-colors",title:a("tooltip.copy")||"Copier",children:B==="global-bar-participating"?e.jsx(O,{"data-loc":"client/src/pages/TestHome.tsx:410",className:"w-4 h-4 text-[#1e40af]"}):e.jsx(U,{"data-loc":"client/src/pages/TestHome.tsx:412",className:"w-4 h-4 text-muted-foreground hover:text-[#1e40af]"})})]}),e.jsx("div",{"data-loc":"client/src/pages/TestHome.tsx:416",className:"space-y-3",children:Object.entries(S(c.filter(t=>t.participating===1))).map(([t,s])=>s.length===0?null:e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:420",className:"space-y-1",children:[e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:421",className:"font-medium text-sm text-[#1e40af]",children:[H(t),":"]}),e.jsx("div",{"data-loc":"client/src/pages/TestHome.tsx:422",className:"text-xs space-y-0.5 pl-3",children:s.map(n=>e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:424",className:"text-foreground",children:["• ",y(n.name,r)]},n.name))})]},t))})]})}),w==="potential"&&o&&e.jsx("div",{"data-loc":"client/src/pages/TestHome.tsx:439",className:"absolute left-0 right-0 top-full pt-2 z-[100]",children:e.jsxs(D,{"data-loc":"client/src/pages/TestHome.tsx:440",className:"p-4 bg-card text-card-foreground shadow-2xl border-2 max-h-96 overflow-y-auto",children:[e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:441",className:"flex justify-between items-start mb-3",children:[e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:442",className:"font-semibold text-base text-[#60a5fa]",children:["Potential Countries (",x,")"]}),e.jsx("button",{"data-loc":"client/src/pages/TestHome.tsx:445",onClick:()=>{const t=`Potential Countries (${x})
8
9`+Object.entries(S(c.filter(s=>s.participating!==1&&o[s.name]&&o[s.name].length>0))).map(([s,n])=>n.length===0?"":`${H(s)}:
10`+n.map(l=>`• ${y(l.name,r)} (${o[l.name].length})`).join(`
11`)).filter(Boolean).join(`
12
13`);navigator.clipboard.writeText(t),N("global-bar-potential"),k.success(a("tooltip.copied")||"Copié !"),setTimeout(()=>N(null),2e3)},className:"flex-shrink-0 p-1.5 hover:bg-[#60a5fa]/10 rounded transition-colors",title:a("tooltip.copy")||"Copier",children:B==="global-bar-potential"?e.jsx(O,{"data-loc":"client/src/pages/TestHome.tsx:465",className:"w-4 h-4 text-[#60a5fa]"}):e.jsx(U,{"data-loc":"client/src/pages/TestHome.tsx:467",className:"w-4 h-4 text-muted-foreground hover:text-[#60a5fa]"})})]}),e.jsx("div",{"data-loc":"client/src/pages/TestHome.tsx:471",className:"space-y-3",children:Object.entries(S(c.filter(t=>t.participating!==1&&o[t.name]&&o[t.name].length>0))).map(([t,s])=>s.length===0?null:e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:479",className:"space-y-1",children:[e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:480",className:"font-medium text-sm text-[#60a5fa]",children:[H(t),":"]}),e.jsx("div",{"data-loc":"client/src/pages/TestHome.tsx:481",className:"text-xs space-y-0.5 pl-3",children:s.map(n=>e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:483",className:"text-foreground",children:["• ",y(n.name,r)," (",o[n.name].length,")"]},n.name))})]},t))})]})})]}),e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:496",className:"flex flex-wrap gap-3 mt-3 text-xs",children:[e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:497",className:"flex items-center gap-1.5",children:[e.jsx("div",{"data-loc":"client/src/pages/TestHome.tsx:498",className:"w-3 h-3 rounded-sm bg-[#1e40af]"}),e.jsxs("span",{"data-loc":"client/src/pages/TestHome.tsx:499",children:[g.countriesReached," ",a("home.participating")]})]}),x>0&&e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:502",className:"flex items-center gap-1.5",children:[e.jsx("div",{"data-loc":"client/src/pages/TestHome.tsx:503",className:"w-3 h-3 rounded-sm bg-[#60a5fa]"}),e.jsxs("span",{"data-loc":"client/src/pages/TestHome.tsx:504",children:[x," Potential"]})]}),e.jsxs("div",{"data-loc":"client/src/pages/TestHome.tsx:507",className:"flex items-center gap-1.5",children:[e.jsx("div",{"data-loc":"client/src/pages/TestHome.tsx:508",className:"w-3 h-3 rounded-sm bg-gray-700"}),e.jsxs("span",{"data-loc":"client/src/pages/TestHome.tsx:509",children:[100-g.countriesReached-x," ",a("home.remainingTo100")]})]})]})]})}),e.jsx("section",{"data-loc":"client/src/pages/TestHome.tsx:516",children:e.jsx(Y,{"data-loc":"client/src/pages/TestHome.tsx:517",globalStats:g,continentStats:Z,countries:c,contactLeadsByCountry:o,selectedStatuses:i})})]})]}),e.jsx(J,{"data-loc":"client/src/pages/TestHome.tsx:528",open:m,onOpenChange:p,onSuccess:()=>{E(),p(!1)}})]})}export{Pe 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.