1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6eaad5c5-fdc0-4cae-9d80-17c4231b9b44",e._sentryDebugIdIdentifier="sentry-dbid-6eaad5c5-fdc0-4cae-9d80-17c4231b9b44")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2296],{34468:(e,t,s)=>{s.d(t,{B:()=>r,e:()=>n});let a={zero:"$0",billionDp:1,millionDp:1,small:"thousands"};function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s={...a,...t};return null==e||!Number.isFinite(e)||e<=0?s.zero:e>=1e9?`$${(e/1e9).toFixed(s.billionDp)}B`:e>=1e6?`$${(e/1e6).toFixed(s.millionDp)}M`:"force-k"===s.small?`$${(e/1e3).toFixed(0)}K`:"plain"===s.small?`$${e}`:e>=1e3?`$${(e/1e3).toFixed(0)}K`:`$${e}`}let r={LIST:{millionDp:0,small:"plain"},DETAIL:{},DETAIL_PRECISE:{zero:"â",billionDp:2},MAP:{small:"force-k"}}},43539:(e,t,s)=>{s.d(t,{GA:()=>u,IV:()=>r,Im:()=>i,MX:()=>c,O0:()=>o,bN:()=>d,pk:()=>x,u_:()=>l});var a=s(62950),n=s(62176);let r={free:a.M$.free,lite:a.M$.lite,pro:a.M$.starter,company:a.M$.pro};function l(e){return e.toLocaleString("en-US")}function i(e,t){return!Number.isFinite(e)||!Number.isFinite(t)||e<=0||t<=0?null:`$${(e/100/t).toFixed(2)} per unlock`}function o(e,t){let s=12*e,a=s>0?Math.round((s-t)/s*100):0;return{perMonth:Math.round(t/12),savedPct:Math.max(0,a)}}let d={tier:"lite",name:"Lite",priceMonthly:10,unlocks:a.M$.lite,tagline:"Try it for real"};function c(e){return"starter"===e||"pro"===e?"pro":"starter"}function u(e){return!!e?.some(e=>e?.metadata?.tier==="lite")}function x(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.lite;return"Monthly Unlocks"===e?l(s):"Investor Phone Numbers"===e||("Email Outreach Sequences"===e?(0,n.eh)(d.tier):t)}},62176:(e,t,s)=>{s.d(t,{eh:()=>r});let a={free:{daily:5,monthly:null},lite:{daily:15,monthly:null},starter:{daily:null,monthly:1e3},pro:{daily:null,monthly:5e3},company_pro:{daily:null,monthly:1e4}},n="free";function r(e){let t=e?a[e]??a[n]:a[n];return null!=t.daily?`${t.daily.toLocaleString("en-US")} / day`:null!=t.monthly?`${t.monthly.toLocaleString("en-US")} / month`:"Not included"}Object.fromEntries(Object.entries(a).map(e=>{let[t,s]=e;return[t,s.monthly??0]}))},79915:(e,t,s)=>{s.d(t,{default:()=>z});var a=s(95155),n=s(12115),r=s(30131),l=s(80549),i=s(83548),o=s(20223),d=s(27653),c=s(26991),u=s(73850),x=s(68425),m=s(47734),h=s(73697),p=s(23508),f=s(77568),g=s(68965),b=s(71830),y=s(77341),j=s(10047),v=s(34468);function N(e){let t=[[0,[226,232,240]],[.25,[148,163,184]],[.5,[71,85,105]],[.75,[30,41,59]],[1,[15,23,42]]],s=Math.max(0,Math.min(1,e));for(let e=0;e<t.length-1;e++){let[a,n]=t[e],[r,l]=t[e+1];if(s>=a&&s<=r){let e=(s-a)/(r-a),t=Math.round(n[0]+(l[0]-n[0])*e),i=Math.round(n[1]+(l[1]-n[1])*e),o=Math.round(n[2]+(l[2]-n[2])*e);return`rgb(${t}, ${i}, ${o})`}}return"rgb(253, 231, 37)"}let w={"United States":"United States of America",USA:"United States of America",UAE:"United Arab Emirates","South Korea":"Republic of Korea",Russia:"Russian Federation",Vietnam:"Viet Nam",Iran:"Iran (Islamic Republic of)",Tanzania:"United Republic of Tanzania","Czech Republic":"Czechia"};function k(e){return(w[e]||e).trim()}function S(e){let t,{data:s,onCountryClick:r,selected:l}=e,[i,o]=(0,n.useState)(null),[d,c]=(0,n.useState)(null),u=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=!1;return fetch("https://cdn.jsdelivr.net/npm/world-atlas@2/countries-110m.json").then(e=>e.json()).then(t=>{e||o((0,j.A)(t,t.objects.countries))}).catch(()=>{}),()=>{e=!0}},[]);let x=(0,n.useMemo)(()=>{let e=new Map;return s.forEach(t=>{t.country&&e.set(k(t.country),t)}),e},[s]),m=(0,n.useMemo)(()=>s.reduce((e,t)=>Math.max(e,t.totalUsd),0),[s]),h=(0,n.useMemo)(()=>m?(0,y.a6)(N).domain([1,m]):null,[m]),p=(0,n.useMemo)(()=>(0,g.A)().fitSize([600,340],i||{type:"Sphere"}),[i]),f=(0,n.useMemo)(()=>(0,b.A)(p),[p]);if(!i)return(0,a.jsx)("div",{className:"h-72 flex items-center justify-center text-slate-500 text-sm",children:"Loading mapâ¦"});let w=l?k(l):"";return(0,a.jsxs)("div",{ref:u,className:"relative","data-testid":"choropleth-map",children:[(0,a.jsxs)("svg",{viewBox:"0 0 600 340",className:"w-full h-auto",role:"img","aria-label":"World funding map",children:[(0,a.jsx)("rect",{width:600,height:340,fill:"#f8fafc"}),i.features.map(e=>{let t=e.properties?.name,s=x.get(t),n=s&&h?h(s.totalUsd):"#e2e8f0",l=w&&w===t;return(0,a.jsx)("path",{d:f(e)||"",fill:n,stroke:l?"#0f172a":"#fff",strokeWidth:l?2:.5,className:s?"cursor-pointer hover:opacity-80":"",onMouseMove:e=>{if(!u.current)return;let a=u.current.getBoundingClientRect();c({name:t,row:s,x:e.clientX-a.left,y:e.clientY-a.top})},onMouseLeave:()=>c(null),onClick:()=>s&&r?.(s.country),"data-testid":s?`map-country-${s.country.replace(/\s+/g,"-").toLowerCase()}`:void 0},e.id||t)})]}),d&&(0,a.jsxs)("div",{className:"pointer-events-none absolute z-10 bg-slate-900 text-white text-xs rounded px-2 py-1 shadow-lg whitespace-nowrap",style:{left:d.x+10,top:d.y-8},children:[(0,a.jsx)("div",{className:"font-semibold",children:d.name}),d.row?(0,a.jsxs)("div",{className:"text-white/80",children:[(t=d.row.totalUsd,(0,v.e)(t,v.B.MAP))," ⢠",d.row.count," rounds"]}):(0,a.jsx)("div",{className:"text-white/60",children:"No data"})]}),(0,a.jsxs)("div",{className:"mt-3 flex items-center justify-between text-[10px] font-mono uppercase tracking-widest text-slate-500",children:[(0,a.jsx)("span",{children:"Less"}),(0,a.jsx)("div",{className:"flex-1 mx-2 flex h-1.5",children:["#e2e8f0","#94a3b8","#475569","#1e293b","#0f172a"].map(e=>(0,a.jsx)("div",{className:"flex-1",style:{background:e}},e))}),(0,a.jsx)("span",{children:"More"})]})]})}var $=s(87216);let C=["null","undefined","n/a","na","none","nil","unknown","not specified","not disclosed","undisclosed","-","--"];function T(e){return null===function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:120;if(null==e||"string"!=typeof e)return null;let s=e.trim().replace(/\s+/g," ");return!s||C.includes(s.toLowerCase())?null:s.slice(0,t)}(e)}let A="Undisclosed";var M=s(61299),D=s(43539),L=s(45237);let F=e=>(0,v.e)(e,v.B.DETAIL);function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,L.pt)("/dashboard/login",{source:"funding_news",surface:"funding-hub",target:e,slug:t.slug??null,country:t.country??null})}let I={country:"",category:"",roundType:"",since:"90d",search:"",page:1};function R(e){let t=new URLSearchParams;
1Object.entries(e).forEach(e=>{let[s,a]=e;void 0!==a&&""!==a&&0!==a&&t.set(s,String(a))});let s=t.toString();return s?`?${s}`:""}async function U(e){let t=await fetch(e);if(!t.ok)throw Error(`${t.status} ${t.statusText}`.trim());return await t.json()}let _=["country","category","roundType","since","search"];function z(){let{initialFilters:e,initialStats:t,initialList:s,initialMap:l,initialFilterOpts:g,headerOverride:b,lockedFilter:y,seedFromUrl:j}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},v={...I,...e||{}};y&&(v[y.key]=y.value);let[N,w]=(0,n.useState)(v);(0,n.useEffect)(()=>{if(!j||y)return;let e=function(e){let t=new URLSearchParams(e),s={};for(let e of _){let a=t.get(e);a&&(s[e]=a)}return Object.keys(s).length?s:null}(window.location.search);e&&w(t=>({...t,...e,page:1}))},[]);let k=e=>w(t=>({...t,page:1,...e,...y?{[y.key]:y.value}:{}})),C=function(e,t){let[s,a]=(0,n.useState)(e);return(0,n.useEffect)(()=>{let t=setTimeout(()=>a(e),350);return()=>clearTimeout(t)},[e,350]),s}(N.search,350),T={country:N.country,category:N.category,roundType:N.roundType,since:N.since,search:C},A={...T},M=JSON.stringify({...v,page:1}),D=JSON.stringify({...N,page:1})===M&&1===N.page,L=(0,r.I)({queryKey:["funding-filters"],queryFn:()=>U("/api/public/funding-news/filters"),staleTime:6e5,initialData:g}),E=(0,r.I)({queryKey:["funding-stats",T],queryFn:()=>U(`/api/public/funding-news/stats${R(T)}`),initialData:D?t:void 0,staleTime:6e5*!!D}),z=(0,r.I)({queryKey:["funding-map",A],queryFn:()=>U(`/api/public/funding-news/map${R(A)}`),initialData:D?l:void 0,staleTime:6e5*!!D}),W=(0,r.I)({queryKey:["funding-list",{...T,page:N.page}],queryFn:()=>U(`/api/public/funding-news${R({...T,page:N.page,limit:50})}`),placeholderData:e=>e,initialData:D?s:void 0,staleTime:6e5*!!D}),G=Array.isArray(W.data?.data)?W.data.data:[],J=Number(W.data?.total)||0,X=Math.max(1,Math.ceil(J/50)),Y=E.data||(D?t:null)||{totalUsd:0,totalRounds:0,totalCountries:0,cumulativeSeries:[]},H=Number(Y?.totalRounds)||0,Q=Number(Y?.totalCountries)||0,Z=Number(Y?.totalUsd)||0,ee=L.data||{countries:[],categories:[],roundTypes:[]},et=(Array.isArray(z.data?.data)?z.data.data:[]).slice(0,8),es=(ee.categories||[]).slice(0,8),ea=ee.roundTypes||[],en=G.map(e=>e.publishedAt).filter(Boolean).sort().pop()??null,er=en?new Date(en).toLocaleDateString("en-US",{dateStyle:"medium",timeZone:"UTC"}):null;return(0,a.jsxs)("div",{className:"min-h-screen bg-white text-slate-900",children:[(0,a.jsx)(o.Navbar,{}),(0,a.jsx)("header",{className:"border-b border-slate-200 bg-white",children:(0,a.jsx)("div",{className:"container mx-auto px-4 py-6",children:(0,a.jsxs)("div",{className:"flex flex-col md:flex-row md:items-end md:justify-between gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-[11px] font-mono uppercase tracking-widest text-slate-500 mb-1",children:b?.eyebrow||"Datapile \xb7 Funding Terminal"}),(0,a.jsx)("h1",{className:"text-2xl md:text-3xl font-bold tracking-tight","data-testid":"text-hero-title",children:b?.title||"Funding News"}),(0,a.jsx)("p",{className:"text-sm text-slate-600 mt-1",children:b?.subtitle||"Every disclosed startup round, structured."}),(0,a.jsxs)("p",{className:"text-[11px] font-mono text-slate-500 mt-1",children:[er?(0,a.jsxs)(a.Fragment,{children:["Latest round \xb7 ",er," \xb7 "]}):null,(0,a.jsx)("a",{href:"/funding-news/rss.xml",className:"underline hover:text-slate-900","data-testid":"link-rss",children:"RSS"})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-3 gap-6 text-right",children:[(0,a.jsx)(V,{label:"Total raised",value:F(Z),testId:"kpi-total-usd"}),(0,a.jsx)(V,{label:"Rounds",value:H.toLocaleString(),testId:"kpi-total-rounds"}),(0,a.jsx)(V,{label:"Countries",value:String(Q),testId:"kpi-total-countries"})]})]})})}),(0,a.jsx)("div",{className:"sticky top-16 z-30 border-b border-slate-200 bg-white",children:(0,a.jsxs)("div",{className:"container mx-auto px-4 py-2 flex flex-wrap gap-2 items-center text-xs",children:[(0,a.jsxs)("div",{className:"relative w-72",children:[(0,a.jsx)("input",{type:"search",placeholder:"Search company, founder, sector, investorâ¦",value:N.search,onChange:e=>k({search:e.target.value}),className:"text-xs px-3 py-1.5 pr-7 border border-slate-300 rounded-none w-full focus:outline-none focus:border-slate-900 font-mono","data-testid":"input-hero-search"}),(W.isFetching||N.search!==C)&&(0,a.jsx)("span",{className:"absolute right-2 top-1/2 -translate-y-1/2 h-3 w-3 border border-slate-300 border-t-slate-900 rounded-full animate-spin","aria-hidden":"true","data-testid":"search-spinner"})]}),(!y||"country"!==y.key)&&(0,a.jsx)(O,{label:"Country",value:N.country,onChange:e=>k({country:e}),options:ee.countries||[],testId:"filter-country"}),(!y||"category"!==y.key)&&(0,a.jsx)(O,{label:"Sector",value:N.category,onChange:e=>k({category:e}),options:ee.categories||[],testId:"filter-category"}),(!y||"roundType"!==y.key)&&(0,a.jsx)(O,{label:"Round",value:N.roundType,onCh
1ange:e=>k({roundType:e}),options:ee.roundTypes||[],testId:"filter-round"}),(0,a.jsx)(O,{label:"Period",value:N.since,onChange:e=>k({since:e}),options:[{value:"7d",label:"7d"},{value:"30d",label:"30d"},{value:"90d",label:"90d"},{value:"1y",label:"1y"},{value:"all",label:"All"}],testId:"filter-time"}),(N.country||N.category||N.roundType||N.search||"90d"!==N.since)&&!y&&(0,a.jsx)("button",{className:"text-[11px] text-slate-500 hover:text-slate-900 underline",onClick:()=>w(I),"data-testid":"button-reset-filters",children:"Reset"}),(0,a.jsx)("span",{className:"ml-auto text-[11px] font-mono text-slate-500","data-testid":"text-result-count",children:W.isError?"â":W.data?`${J.toLocaleString()} results`:"â"})]})}),(0,a.jsxs)("div",{className:"container mx-auto px-4 py-6 space-y-6",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-px bg-slate-200 border border-slate-200",children:[(0,a.jsxs)("div",{className:"lg:col-span-3 bg-white p-4","data-testid":"card-cumulative-chart",children:[(0,a.jsx)("div",{className:"flex items-center justify-between mb-2",children:(0,a.jsx)("div",{className:"text-[11px] font-mono uppercase tracking-widest text-slate-500",children:"Cumulative USD raised \xb7 weekly"})}),(0,a.jsx)("div",{className:"h-56",children:(0,a.jsx)(c.u,{width:"100%",height:"100%",children:(0,a.jsxs)(u.Q,{data:Array.isArray(Y?.cumulativeSeries)?Y.cumulativeSeries:[],margin:{top:4,right:4,left:-10,bottom:0},children:[(0,a.jsx)(x.d,{stroke:"#f1f5f9",vertical:!1}),(0,a.jsx)(m.W,{dataKey:"weekStart",tick:{fontSize:10,fill:"#64748b"},tickFormatter:e=>String(e).slice(5),stroke:"#cbd5e1"}),(0,a.jsx)(h.h,{tick:{fontSize:10,fill:"#64748b"},tickFormatter:e=>F(Number(e)),stroke:"#cbd5e1"}),(0,a.jsx)(p.m,{contentStyle:{borderRadius:0,border:"1px solid #0f172a",fontSize:11,fontFamily:"ui-monospace, monospace"},formatter:e=>[F(Number(e)),"Cumulative"],labelFormatter:e=>`Week of ${e}`}),(0,a.jsx)(f.G,{type:"monotone",dataKey:"cumulativeUsd",stroke:"#0f172a",strokeWidth:1.5,fill:"#0f172a",fillOpacity:.08})]})})})]}),(0,a.jsxs)("div",{className:"lg:col-span-2 bg-white p-4","data-testid":"card-world-map",children:[(0,a.jsx)("div",{className:"flex items-center justify-between mb-2",children:(0,a.jsx)("div",{className:"text-[11px] font-mono uppercase tracking-widest text-slate-500",children:"Geography \xb7 click to filter"})}),(0,a.jsx)(S,{data:Array.isArray(z.data?.data)?z.data.data:[],onCountryClick:e=>k({country:e}),selected:N.country})]})]}),(0,a.jsxs)("div",{className:"border border-slate-200 p-4 space-y-3",children:[et.length>0&&(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs",children:[(0,a.jsx)("span",{className:"text-[10px] font-mono uppercase tracking-widest text-slate-500 mr-1",children:"Country âº"}),et.map(e=>(0,a.jsxs)(i.Link,{href:`/funding-news/country/${(0,$.V)(e.country)}`,className:"font-mono text-slate-700 hover:text-black hover:underline","data-testid":`browse-country-${(0,$.V)(e.country)}`,children:[e.country," ",(0,a.jsxs)("span",{className:"text-slate-500",children:["\xb7",e.count]})]},e.country)).reduce((e,t,s)=>0===s?[t]:[...e,(0,a.jsx)("span",{className:"text-slate-300",children:"|"},`sep-c-${s}`),t],[])]}),es.length>0&&(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs",children:[(0,a.jsx)("span",{className:"text-[10px] font-mono uppercase tracking-widest text-slate-500 mr-1",children:"Sector âº"}),es.map(e=>(0,a.jsx)(i.Link,{href:`/funding-news/sector/${(0,$.V)(e)}`,className:"font-mono text-slate-700 hover:text-black hover:underline","data-testid":`browse-sector-${(0,$.V)(e)}`,children:e},e)).reduce((e,t,s)=>0===s?[t]:[...e,(0,a.jsx)("span",{className:"text-slate-300",children:"|"},`sep-s-${s}`),t],[])]}),ea.length>0&&(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs",children:[(0,a.jsx)("span",{className:"text-[10px] font-mono uppercase tracking-widest text-slate-500 mr-1",children:"Round âº"}),ea.map(e=>(0,a.jsx)(i.Link,{href:`/funding-news/round/${(0,$.V)(e)}`,className:"font-mono text-slate-700 hover:text-black hover:underline","data-testid":`browse-rou
1nd-${(0,$.V)(e)}`,children:e},e)).reduce((e,t,s)=>0===s?[t]:[...e,(0,a.jsx)("span",{className:"text-slate-300",children:"|"},`sep-r-${s}`),t],[])]})]}),(0,a.jsx)("div",{className:"border border-slate-200 overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full text-xs font-mono","data-testid":"table-rounds",children:[(0,a.jsx)("thead",{className:"bg-slate-50 border-b border-slate-200 text-[10px] uppercase tracking-widest text-slate-500",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)(P,{className:"w-20",children:"Date"}),(0,a.jsx)(P,{children:"Company"}),(0,a.jsx)(P,{className:"text-right w-28",children:"Amount"}),(0,a.jsx)(P,{className:"w-24",children:"Round"}),(0,a.jsx)(P,{className:"w-32",children:"Sector"}),(0,a.jsx)(P,{className:"w-32",children:"Country"}),(0,a.jsx)(P,{children:"Lead investors"})]})}),(0,a.jsxs)("tbody",{children:[W.isLoading&&!W.data&&Array.from({length:10}).map((e,t)=>(0,a.jsx)("tr",{className:"border-b border-slate-100",children:(0,a.jsx)("td",{colSpan:7,className:"p-3",children:(0,a.jsx)("div",{className:"h-4 bg-slate-100 animate-pulse"})})},t)),W.isError&&(0,a.jsx)("tr",{"data-testid":"row-rounds-error",children:(0,a.jsxs)("td",{colSpan:7,className:"text-center py-12 font-sans text-sm",children:[(0,a.jsx)("div",{className:"text-slate-700 font-medium",children:"Couldnât load rounds."}),(0,a.jsx)("div",{className:"text-slate-500 text-xs mt-1",children:"The data service didnât answer. Your filters are still set."}),(0,a.jsx)("button",{onClick:()=>W.refetch(),disabled:W.isFetching,className:"mt-3 px-3 py-1.5 border border-slate-900 text-xs font-mono hover:bg-slate-900 hover:text-white disabled:opacity-40","data-testid":"button-retry-rounds",children:W.isFetching?"Retryingâ¦":"Retry"})]})}),!W.isError&&G.map(e=>(0,a.jsx)(q,{row:e},e.id)),!W.isError&&W.data&&0===G.length&&(0,a.jsx)("tr",{children:(0,a.jsx)("td",{colSpan:7,className:"text-center py-12 text-slate-500 font-sans text-sm","data-testid":"row-rounds-empty",children:"No rounds match these filters."})})]})]})}),X>1&&(0,a.jsxs)("div",{className:"flex justify-between items-center text-xs font-mono",children:[(0,a.jsx)("button",{disabled:N.page<=1,onClick:()=>k({page:N.page-1}),className:"px-3 py-1.5 border border-slate-300 hover:border-slate-900 disabled:opacity-30 disabled:hover:border-slate-300","data-testid":"button-page-prev",children:"â Prev"}),(0,a.jsxs)("span",{className:"text-slate-500",children:["Page ",N.page," / ",X]}),(0,a.jsx)("button",{disabled:N.page>=X,onClick:()=>k({page:N.page+1}),className:"px-3 py-1.5 border border-slate-300 hover:border-slate-900 disabled:opacity-30 disabled:hover:border-slate-300","data-testid":"button-page-next",children:"Next â"})]})]}),(0,a.jsx)(K,{totalRounds:Y.totalRounds,country:N.country||null}),(0,a.jsx)(B,{countries:ee.countries||[],categories:ee.categories||[]}),(0,a.jsx)(d.w,{})]})}function V(e){let{label:t,value:s,testId:n}=e;return(0,a.jsxs)("div",{"data-testid":n,children:[(0,a.jsx)("div",{className:"text-[10px] font-mono uppercase tracking-widest text-slate-500",children:t}),(0,a.jsx)("div",{className:"text-xl md:text-2xl font-bold tabular-nums tracking-tight",children:s})]})}function P(e){let{children:t,className:s=""}=e;return(0,a.jsx)("th",{className:`text-left px-3 py-2 font-normal ${s}`,children:t})}function O(e){let{label:t,value:s,onChange:n,options:r,testId:l}=e,i=r.map(e=>"string"==typeof e?{value:e,label:e}:e);return(0,a.jsxs)("select",{value:s,onChange:e=>n(e.target.value),className:"text-xs px-2 py-1.5 border border-slate-300 rounded-none bg-white font-mono hover:border-slate-900 focus:outline-none focus:border-slate-900","data-testid":l,children:[(0,a.jsxs)("option",{value:"",children:["All \xb7 ",t]}),i.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))]})}function q(e){var t,s;let{row:n}=e,r=Array.isArray(n.investorDetails)?n.investorDetails:[],l=Array.isArray(n.investors)?n.investors:[],o=r.length?r.slice(0,3):l.slice(0,3).map(e=>({name:e})),d=Number(n.investorsHiddenCount)||Math.max(0,(r.length||l.length)-3),c=T(t=n.country)?"":String(t).trim();return(0,a.jsxs)("tr",{className:"border-b border-slate-100 hover:bg-slate-50","data-testid":`row-round-${n.id}`,children:[(0,a.jsx)("td",{className:"px-3 py-2 text-slate-500 tabular-nums",children:(s=n.publishedAt)?new Date(s).toLocaleDateString("en-US",{year:"2-digit",month:"short",day:"2-digit"}):"â"}),(0,a.jsxs)("td",{className:"px-3 py-2",children:[(0,a.jsx)(i.Link,{href:`/funding-news/${n.slug}`,className:"font-semibold text-slate-900 hover:underline","data-testid":`link-company-${n.id}`,children:n.companyName}),n.companyDescription&&(0,a.jsx)("div",{className:"text-[11px] text-slate-500 font-sans truncate max-w-md mt-0.5",children:n.companyDescription})]}),(0,a.jsx)("td",{className:"px-3 py-2 text-right font-bold tabular-nums text-slate-900",children:n.amountRaisedUsd?F(n.amountRaisedUsd):n.amountRaw||"â"}),(0,a.jsx)("td",{className:"px-3 py-2 text-slate-700",children:T(n.roundType)?(0,a.jsx)("span",{className:"text-slate-500","data-testid":`cell-round-${n.id}`,children:A}):(0,a.jsx)(i.Link,{href:`/funding-news/round/${(0,$.V)(n.roundType)}`,className:"hover:underline","data-testid":`cell-round-${n.id}`,children:n.roundType})}),(0,a.jsx)("td",{className:"px-3 py-2 text-slate-700 truncate",children:T(n.companyCategory)?(0,a.jsx)("span",{className:"text-slate-500","data-testid":`cell-sector-${n.id}`,children:A}):(0,a.jsx)(i.Link,{href:`/funding-news/sector/${(0,$.V)(n.companyCategory)}`,className:"hover:underline","data-testid":`cell-sector-${n.id}`,children:n.companyCategory})}),(0,a.jsx)("td",{className:"px-3 py-2 text-slate-700 truncate",children:c?(0,a.jsx)(i.Link,{href:`/funding-news/country/${(0,$.V)(c)}`,className:"hover:underline","data-testid":`cell-country-${n.id}`,children:c}):(0,a.jsx)("span",{className:"text-slate-500","data-testid":`cell-country-${n.id}`,children:A})}),(0,a.jsxs)("td",{className:"px-3 py-2 text-slate-600 truncate",children:[o.map(e=>
1e.name).filter(Boolean).join(", ")||(0,a.jsx)("span",{className:"text-slate-500",children:A}),d>0&&(0,a.jsxs)("a",{href:E("masked-investors",{slug:n.slug||String(n.id),country:c}),onClick:()=>(0,M.logEvent)("public_cta_clicked",{surface:"funding-hub",target:"masked-investors",country:c||null}),className:"ml-1 text-amber-600 underline decoration-dotted underline-offset-2 hover:text-amber-700",title:`Sign up to see all ${r.length||l.length||d} investors`,"data-testid":`cta-masked-investors-${n.id}`,children:["+",d]})]})]})}function K(e){let{totalRounds:t,country:s}=e,n=Number.isFinite(t)&&t>0,r=s?` in ${s}`:"";return(0,a.jsx)("section",{className:"border-t border-slate-200 bg-white","data-testid":"funding-hub-investor-cta",children:(0,a.jsxs)("div",{className:"container mx-auto px-4 py-10 max-w-3xl",children:[(0,a.jsx)("div",{className:"text-[11px] font-mono uppercase tracking-widest text-slate-500 mb-1",children:"Who funded these rounds"}),(0,a.jsx)("h2",{className:"text-xl font-bold mb-1","data-testid":"text-hub-cta-title",children:n?(0,a.jsxs)(a.Fragment,{children:["Every investor behind these ",t.toLocaleString()," rounds",r," is in Datapile."]}):(0,a.jsxs)(a.Fragment,{children:["The investors behind these rounds",r," are in Datapile."]})}),(0,a.jsx)("p",{className:"text-sm text-slate-600 mb-5",children:"Verified emails and LinkedIn profiles, filterable by stage, sector and check size."}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 font-mono text-xs",children:[(0,a.jsx)("a",{href:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,L.pt)("/investors/by-location",{source:"funding_news",surface:"funding-hub",target:"directory",country:e.country??null})}({country:s}),onClick:()=>(0,M.logEvent)("public_cta_clicked",{surface:"funding-hub",target:"directory",country:s}),className:"inline-flex min-h-[40px] items-center justify-center px-4 py-2.5 bg-slate-900 text-white hover:bg-black no-underline text-center","data-testid":"button-hub-directory",children:"Browse the investor directory â"}),(0,a.jsxs)("a",{href:E("signup",{country:s}),onClick:()=>(0,M.logEvent)("public_cta_clicked",{surface:"funding-hub",target:"signup",country:s}),className:"inline-flex min-h-[40px] items-center justify-center px-4 py-2.5 border border-slate-300 hover:border-slate-900 no-underline text-center text-slate-700","data-testid":"button-hub-signup",children:["Start free \xb7 ",D.IV.free," unlocks / month"]})]})]})})}function B(e){let{countries:t,categories:s}=e,[r,i]=(0,n.useState)(""),[o,d]=(0,n.useState)(""),[c,u]=(0,n.use
1State)(""),[x,m]=(0,n.useState)(!1),h=(0,l.n)({mutationFn:async()=>{let e=await fetch("/api/public/funding-news/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:r,country:o||void 0,category:c||void 0})});if(!e.ok)throw Error((await e.json()).error||"Failed");return e.json()},onSuccess:()=>m(!0)});return(0,a.jsx)("section",{className:"border-t border-slate-200 bg-slate-50",children:(0,a.jsxs)("div",{className:"container mx-auto px-4 py-10 max-w-3xl",children:[(0,a.jsx)("div",{className:"text-[11px] font-mono uppercase tracking-widest text-slate-500 mb-1",children:"Weekly digest"}),(0,a.jsx)("h2",{className:"text-xl font-bold mb-1","data-testid":"text-digest-title",children:"Get the funding terminal in your inbox."}),(0,a.jsx)("p",{className:"text-sm text-slate-600 mb-5",children:"Filtered to your country and sector. One email per week."}),x?(0,a.jsx)("div",{className:"text-sm text-emerald-700 font-medium","data-testid":"text-digest-success",children:"â Subscribed. Confirm via the email we just sent."}):(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),r&&h.mutate()},className:"flex flex-col sm:flex-row gap-2 font-mono text-xs",children:[(0,a.jsx)("input",{type:"email",required:!0,placeholder:"[email protected]",value:r,onChange:e=>i(e.target.value),className:"flex-1 px-3 py-2 border border-slate-300 focus:outline-none focus:border-slate-900","data-testid":"input-digest-email"}),(0,a.jsxs)("select",{value:o,onChange:e=>d(e.target.value),className:"px-2 py-2 border border-slate-300 bg-white","data-testid":"select-digest-country",children:[(0,a.jsx)("option",{value:"",children:"All countries"}),t.map(e=>(0,a.jsx)("option",{value:e,children:e},e))]}),(0,a.jsxs)("select",{value:c,onChange:e=>u(e.target.value),className:"px-2 py-2 border border-slate-300 bg-white","data-testid":"select-digest-category",children:[(0,a.jsx)("option",{value:"",children:"All sectors"}),s.map(e=>(0,a.jsx)("option",{value:e,children:e},e))]}),(0,a.jsx)("button",{type:"submit",disabled:h.isPending,className:"px-4 py-2 bg-slate-900 text-white hover:bg-black disabled:opacity-50","data-testid":"button-digest-submit",children:h.isPending?"â¦":"Subscribe â"})]}),h.isError&&(0,a.jsx)("div",{className:"text-red-700 text-xs mt-2 font-mono",children:"Something went wrong. Try again."})]})})}},87216:(e,t,s)=>{s.d(t,{V:()=>a});function a(e){return e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}}}]);
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.