PageSourceSearch

https://www.grafterr.com/_next/static/chunks/pages/admin/investors-cd60439b36651797.js

js grafterr.com collected 2026-09-24 10:14:38 UTC 26,451 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[18886],{98501:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/investors",function(){return c(32634)}])},69179:function(a,b,c){"use strict";var d=c(26042),e=c(99534),f=c(85893),g=c(67294),h=c(68415),i=c.n(h),j=g.forwardRef(function(a,b){var c=a.type,g=void 0===c?"text":c,h=a.label,j=a.error,k=a.required,l=void 0!==k&&k,m=a.className,n=(0,e.Z)(a,["type","label","error","required","className"]),o=[i().input,j?i().error:"",void 0===m?"":m,].filter(Boolean).join(" ");return"textarea"===g?(0,f.jsxs)("div",{className:i().inputGroup,children:[h&&(0,f.jsxs)("label",{className:i().label,children:[h,l&&(0,f.jsx)("span",{className:i().required,children:"*"})]}),(0,f.jsx)("textarea",(0,d.Z)({ref:b,className:o,required:l,"aria-invalid":j?"true":"false","aria-describedby":j?"".concat(n.name||"field","-error"):void 0},n)),j&&(0,f.jsx)("span",{id:n.name?"".concat(n.name,"-error"):"field-error",className:i().errorMessage,children:j})]}):(0,f.jsxs)("div",{className:i().inputGroup,children:[h&&(0,f.jsxs)("label",{className:i().label,children:[h,l&&(0,f.jsx)("span",{className:i().required,children:"*"})]}),(0,f.jsx)("input",(0,d.Z)({ref:b,type:g,className:o,required:l,"aria-invalid":j?"true":"false","aria-describedby":j?"".concat(n.name||"field","-error"):void 0},n)),j&&(0,f.jsx)("span",{id:n.name?"".concat(n.name,"-error"):"field-error",className:i().errorMessage,children:j})]})});j.displayName="Input",b.Z=j},92439:function(a,b,c){"use strict";var d=c(85893),e=c(67294),f=c(83721),g=c.n(f),h=function(a){var b=a.isOpen,c=a.onClose,f=a.children,h=a.title,i=a.size,j=a.showCloseButton;return((0,e.useEffect)(function(){var a=function(a){"Escape"===a.key&&b&&c()};return b&&(document.addEventListener("keydown",a),document.body.style.overflow="hidden"),function(){document.removeEventListener("keydown",a),document.body.style.overflow="unset"}},[b,c]),b)?(0,d.jsx)("div",{className:g().overlay,onClick:c,children:(0,d.jsxs)("div",{className:"".concat(g().modal," ").concat(g()[void 0===i?"medium":i]),onClick:function(a){return a.stopPropagation()},children:[h&&(0,d.jsxs)("div",{className:g().header,children:[(0,d.jsx)("h2",{className:g().title,children:h}),(void 0===j||j)&&(0,d.jsx)("button",{className:g().closeButton,onClick:c,"aria-label":"Close modal",children:(0,d.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,d.jsx)("div",{className:g().content,children:f})]})}):null};b.Z=h},67958:function(a,b,c){"use strict";var d=c(26042),e=c(69396),f=c(99534),g=c(85893),h=c(67294),i=c(82623),j=c.n(i),k=h.forwardRef(function(a,b){var c=a.label,h=a.options,i=a.error,k=a.required,l=void 0!==k&&k,m=a.className,n=a.placeholder,o=(0,f.Z)(a,["label","options","error","required","className","placeholder"]),p=[j().select,i&&j().error,void 0===m?"":m,].filter(Boolean).join(" ");return(0,g.jsxs)("div",{className:j().selectGroup,children:[c&&(0,g.jsxs)("label",{className:j().label,children:[c,l&&(0,g.jsx)("span",{className:j().required,children:"*"})]}),(0,g.jsxs)("select",(0,e.Z)((0,d.Z)({ref:b,className:p,required:l},o),{children:[(0,g.jsx)("option",{value:"",children:void 0===n?"Select an option":n}),(void 0===h?[]:h).map(function(a){return(0,g.jsx)("option",{value:a.value,children:a.label},a.value)})]})),i&&(0,g.jsx)("span",{className:j().errorMessage,children:i})]})});k.displayName="Select",b.Z=k},32634:function(a,b,c){"use strict";c.r(b),c.d(b,{default:function(){return C}});var d=c(47568),e=c(34051),f=c.n(e),g=c(85893),h=c(67294),i=c(9008),j=c.n(i),k=c(41664),l=c.n(k),m=c(59803),n=c(95756),o=c(68770),p=c(14924),q=c(26042),r=c(69396),s=c(92439),t=c(69179),u=c(67958),v=c(50069),w=c.n(v),x=function(a){var b,c=a.isOpen,e=a.onClose,i=a.onSuccess,j=(0,h.useState)({name:"",email:"",phone:"",accountType:"individual",investorType:"",niNumber:"",companyRegistrationNumber:"",company:"",address:{street:"",city:"",postcode:"",country:"United Kingdom"},investmentAmount:""}),k=j[0],l=j[1],m=(0,h.useState)(0),o=m[0],v=m[1],x=(0,h.useState)(2),y=x[0],z=x[1],A=(0,h.useState)(!1),B=A[0],C=A[1],D=(0,h.useState)(""),E=D[0],F=D[1],G=(0,h.useState)(!1),H=G[0],I=G[1];(0,h.useEffect)(function(){c&&K()},[c]),(0,h.useEffect)(function(){if(k.investmentAmount&&y>0){var a=Math.floor((parseFloat(k.investmentAmount)||0)/y);v(a)}else v(0)},[k.investmentAmount,y]);var J,K=(b=(0,d.Z)(f().mark(function a(){var b,c;return f().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,fetch("/api/invest/cap-table");case 3:return b=a.sent,a.next=6,b.json();case 6:(c=a.sent).success&&c.capTable&&z(parseFloat(c.capTable.sharePrice)||2),a.next=13;break;case 10:a.prev=10,a.t0=a.catch(0),console.error("Error fetching share price:",a.t0);case 13:case"end":return a.stop()}},a,null,[[0,10]])})),function(){return b.apply(this,arguments)}),L=function(a){var b=a.target,c=b.name,d=b.value;if(c.startsWith("address.")){var e=c.split(".")[1];l(function(a){return(0,r.Z)((0,q.Z)({},a),{address:(0,r.Z)((0,q.Z)({},a.address),(0,p.Z)({},e,d))})})}else l(function(a){return(0,r.Z)((0,q.Z)({},a),(0,p.Z)({},c,d))})},M=function(a){var b=a.target.value;l(function(a){return(0,r.Z)((0,q.Z)({},a),{accountType:b,investorType:"",niNumber:"individual"===b?a.niNumber:"",companyRegistrationNumber:"organization"===b?a.companyRegistrationNumber:""})})},N=(J=(0,d.Z)(f().mark(function a(b){var c,d,g;return f().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(b.preventDefault(),F(""),I(!1),!(c=k.name&&k.email&&k.phone&&k.investorType?k.address.street&&k.address.city&&k.address.postcode&&k.address.country?"individual"!==k.accountType||k.niNumber?"organization"!==k.accountType||k.companyRegistrationNumber?!k.investmentAmount||0>=parseFloat(k.investmentAmount)?"Please enter a valid investment amount":/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(k.email)?null:"Please enter a valid email address":"Company Registration Number is required for organization accounts":"National Insurance number is required for individual accounts":"Please fill in all address fields":"Please fill in all required fields")){a.next=7;break}return F(c),a.abrupt("return");case 7:return C(!0),a.prev=8,a.next=11,fetch("/api/admin/investors/add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify((0,r.Z)((0,q.Z)({},k),{investmentAmount:parseFloat(k.investmentAmount)}))});case 11:return d=a.sent,a.next=14,d.json();case 14:if(g=a.sent,d.ok){a.next=17;break}throw Error(g.message||g.error||"Failed to add investor");
1case 17:I(!0),l({name:"",email:"",phone:"",accountType:"individual",investorType:"",niNumber:"",companyRegistrationNumber:"",company:"",address:{street:"",city:"",postcode:"",country:"United Kingdom"},investmentAmount:""}),setTimeout(function(){i&&i(),e(),I(!1)},1500),a.next=25;break;case 22:a.prev=22,a.t0=a.catch(8),F(a.t0.message||"An error occurred while adding the investor");case 25:return a.prev=25,C(!1),a.finish(25);case 28:case"end":return a.stop()}},a,null,[[8,22,25,28]])})),function(a){return J.apply(this,arguments)});return(0,g.jsx)(s.Z,{isOpen:c,onClose:e,title:"Add investor manually",size:"large",children:(0,g.jsxs)("form",{onSubmit:N,className:w().form,children:[E&&(0,g.jsx)("div",{className:w().errorBanner,children:E}),H&&(0,g.jsx)("div",{className:w().successBanner,children:"Investor added successfully!"}),(0,g.jsxs)("div",{className:w().section,children:[(0,g.jsx)("h3",{className:w().sectionTitle,children:"Investor information"}),(0,g.jsxs)("div",{className:w().formGrid,children:[(0,g.jsx)(t.Z,{name:"name",label:"Full name",value:k.name,onChange:L,required:!0}),(0,g.jsx)(t.Z,{name:"email",type:"email",label:"Email",value:k.email,onChange:L,required:!0}),(0,g.jsx)(t.Z,{name:"phone",type:"tel",label:"Phone number",value:k.phone,onChange:L,required:!0}),(0,g.jsx)(u.Z,{name:"accountType",label:"Account type",value:k.accountType,onChange:M,options:[{value:"individual",label:"Individual"},{value:"organization",label:"Organization"},],required:!0}),(0,g.jsx)(u.Z,{name:"investorType",label:"Investor type",value:k.investorType,onChange:L,options:{individual:[{value:"accredited",label:"Accredited investor"},{value:"sophisticated",label:"Sophisticated investor"},{value:"high-net-worth",label:"High net worth individual"},],organization:[{value:"institutional",label:"Institutional investor"},{value:"corporate",label:"Corporate investor"},{value:"fund",label:"Fund"},]}[k.accountType]||[],required:!0}),"individual"===k.accountType?(0,g.jsx)(t.Z,{name:"niNumber",label:"National insurance number",value:k.niNumber,onChange:L,placeholder:"AB123456C",required:!0}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(t.Z,{name:"company",label:"Company name",value:k.company,onChange:L}),(0,g.jsx)(t.Z,{name:"companyRegistrationNumber",label:"Company registration number",value:k.companyRegistrationNumber,onChange:L,placeholder:"12345678 or AB123456",required:!0})]})]})]}),(0,g.jsxs)("div",{className:w().section,children:[(0,g.jsx)("h3",{className:w().sectionTitle,children:"Address"}),(0,g.jsxs)("div",{className:w().formGrid,children:[(0,g.jsx)(t.Z,{name:"address.street",label:"Street address",value:k.address.street,onChange:L,required:!0}),(0,g.jsx)(t.Z,{name:"address.city",label:"City",value:k.address.city,onChange:L,required:!0}),(0,g.jsx)(t.Z,{name:"address.postcode",label:"Postcode",value:k.address.postcode,onChange:L,required:!0}),(0,g.jsx)(t.Z,{name:"address.country",label:"Country",value:k.address.country,onChange:L,required:!0})]})]}),(0,g.jsxs)("div",{className:w().section,children:[(0,g.jsx)("h3",{className:w().sectionTitle,children:"Investment details"}),(0,g.jsxs)("div",{className:w().investmentSection,children:[(0,g.jsx)(t.Z,{name:"investmentAmount",type:"number",label:"Investment amount (\xa3)",value:k.investmentAmount,onChange:L,min:"0",step:"1",required:!0}),(0,g.jsxs)("div",{className:w().calculationBox,children:[(0,g.jsxs)("div",{className:w().calculationRow,children:[(0,g.jsx)("span",{className:w().calculationLabel,children:"Share price:"}),(0,g.jsxs)("span",{className:w().calculationValue,children:["\xa3",y.toFixed(2)]})]}),(0,g.jsxs)("div",{className:w().calculationRow,children:[(0,g.jsx)("span",{className:w().calculationLabel,children:"Shares:"}),(0,g.jsx)("span",{className:w().calculationValue,children:o.toLocaleString()})]})]})]})]}),(0,g.jsxs)("div",{className:w().actions,children:[(0,g.jsx)(n.Z,{type:"button",variant:"outline",onClick:e,disabled:B,children:"Cancel"}),(0,g.jsx)(n.Z,{type:"submit",variant:"primary",disabled:B||H,children:B?"Adding investor...":H?"Success!":"Add investor"})]})]})})},y=x,z=c(77725),A=c.n(z),B=function(){var a,b=(0,h.useState)("all"),c=b[0],e=b[1],i=(0,h.useState)("all"),k=i[0],p=i[1],q=(0,h.useState)(""),r=q[0],s=q[1],t=(0,h.useState)(null),u=t[0],v=t[1],w=(0,h.useState)([]),x=w[0],z=w[1],B=(0,h.useState)({total:0,active:0,totalInvested:0,totalShares:0}),C=B[0],D=B[1],E=(0,h.useState)(!0),F=E[0],G=E[1],H=(0,h.useState)(!1),I=H[0],J=H[1];(0,h.useEffect)(function(){K()},[]),(0,h.useEffect)(function(){!u&&x.length>0&&v(x[0])},[x]);var K=(a=(0,d.Z)(f().mark(function a(){var b,c,d;return f().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return console.log("Fetching investors list..."),a.prev=1,G(!0),a.next=5,fetch("/api/admin/investors/list");case 5:return b=a.sent,a.next=8,b.json();case 8:c=a.sent,b.ok&&c.investors?(console.log("Investors API response:",{success:c.success,investorsCount:(null===(d=c.investors)|| void 0===d?void 0:d.length)||0,stats:c.stats}),z(c.investors),D(c.stats||{total:c.investors.length,active:c.investors.filter(function(a){return a.totalInvested>0}).length,totalInvested:c.investors.reduce(function(a,b){return a+b.totalInvested},0),totalShares:c.investors.reduce(function(a,b){return a+b.totalShares},0)}),console.log("Investors loaded:",c.investors.length,"investors")):console.error("Investors API error:",c),a.next=15;break;case 12:a.prev=12,a.t0=a.catch(1),console.error("Error fetching investors:",a.t0);case 15:return a.prev=15,G(!1),a.finish(15);case 18:case"end":return a.stop()}},a,null,[[1,12,15,18]])})),function(){return a.apply(this,arguments)}
1),L=x.filter(function(a){if("all"!==k&&a.accountType!==k)return!1;if("active"===c){if(!(a.totalInvested>0))return!1}else if("pending"===c&&!a.investments.some(function(a){return"pending"===a.status||"pending_review"===a.status}))return!1;if(r.trim()){var b,d,e,f,g=r.toLowerCase();return(null===(b=a.name)|| void 0===b?void 0:b.toLowerCase().includes(g))||(null===(d=a.email)|| void 0===d?void 0:d.toLowerCase().includes(g))||(null===(e=a.phone)|| void 0===e?void 0:e.includes(g))||(null===(f=a.company)|| void 0===f?void 0:f.toLowerCase().includes(g))}return!0}),M=function(a){return a?new Date(a).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"}):"N/A"},N=function(a){return new Intl.NumberFormat("en-GB",{style:"currency",currency:"GBP",minimumFractionDigits:0,maximumFractionDigits:0}).format(a)},O=function(a){var b={completed:{label:"Completed",className:A().badgeCompleted},pending:{label:"Pending",className:A().badgePending},pending_review:{label:"Under Review",className:A().badgePending},rejected:{label:"Rejected",className:A().badgeRejected},failed:{label:"Failed",className:A().badgeFailed}};return b[a]||b.pending};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(j(),{children:[(0,g.jsx)("title",{children:"Investors | Admin | Grafterr"}),(0,g.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,g.jsxs)(m.Z,{children:[(0,g.jsxs)("div",{className:A().container,children:[(0,g.jsxs)("div",{className:A().header,children:[(0,g.jsxs)("div",{children:[(0,g.jsx)("h1",{className:A().title,children:"Investors"}),(0,g.jsxs)("p",{className:A().subtitle,children:["Manage all investors (",L.length," ","all"!==c?"filtered":"total",")"]})]}),(0,g.jsxs)("div",{className:A().headerStats,children:[(0,g.jsxs)("div",{className:A().statBadge,children:[(0,g.jsx)("span",{className:A().statBadgeValue,children:C.total}),(0,g.jsx)("span",{className:A().statBadgeLabel,children:"Total"})]}),(0,g.jsxs)("div",{className:A().statBadge,children:[(0,g.jsx)("span",{className:A().statBadgeValue,children:C.active}),(0,g.jsx)("span",{className:A().statBadgeLabel,children:"Active"})]}),(0,g.jsx)(n.Z,{variant:"primary",onClick:function(){return J(!0)},className:"".concat(A().addInvestorButton," ").concat(A().primaryButton),children:"+ Add investor"})]})]}),(0,g.jsxs)("div",{className:A().filtersSection,children:[(0,g.jsx)("div",{className:A().searchBox,children:(0,g.jsx)("input",{type:"text",placeholder:"Search by name, email, phone, or company...",value:r,onChange:function(a){return s(a.target.value)},className:A().searchInput})}),(0,g.jsxs)("div",{className:A().filters,children:[(0,g.jsxs)("button",{className:"".concat(A().filterButton," ").concat("all"===c?A().active:""),onClick:function(){return e("all")},children:["All (",C.total,")"]}),(0,g.jsxs)("button",{className:"".concat(A().filterButton," ").concat("active"===c?A().active:""),onClick:function(){return e("active")},children:["Active (",C.active,")"]}),(0,g.jsxs)("button",{className:"".concat(A().filterButton," ").concat("pending"===c?A().active:""),onClick:function(){return e("pending")},children:["Pending (",x.filter(function(a){return a.investments.some(function(a){return"pending"===a.status||"pending_review"===a.status})}).length,")"]}),(0,g.jsxs)("button",{className:"".concat(A().filterButton," ").concat("individual"===k?A().active:""),onClick:function(){return p("individual"===k?"all":"individual")},children:["Individual (",x.filter(function(a){return"individual"===a.accountType}).length,")"]}),(0,g.jsxs)("button",{className:"".concat(A().filterButton," ").concat("organization"===k?A().active:""),onClick:function(){return p("organization"===k?"all":"organization")},children:["Organization (",x.filter(function(a){return"organization"===a.accountType}).length,")"]})]})]}),F?(0,g.jsx)(o.Z,{message:"Loading investors..."}):(0,g.jsxs)("div",{className:A().splitView,children:[(0,g.jsxs)("div",{className:A().leftPanel,children:[(0,g.jsx)("div",{className:A().listHeader,children:(0,g.jsxs)("h3",{children:["Investors (",L.length,")"]})}),(0,g.jsx)("div",{className:A().investorsList,children:0===L.length?(0,g.jsxs)("div",{className:A().emptyState,children:[(0,g.jsx)("div",{className:A().emptyIcon,
1children:"\uD83D\uDC65"}),(0,g.jsx)("p",{children:"No investors found"}),r&&(0,g.jsx)("p",{style:{fontSize:"12px",color:"#666",marginTop:"8px"},children:"Try adjusting your search or filter"})]}):L.map(function(a){var b=(null==u?void 0:u.id)===a.id;return(0,g.jsxs)("div",{className:"".concat(A().investorListItem," ").concat(b?A().selected:""),onClick:function(){return v(a)},children:[(0,g.jsx)("div",{className:A().listItemHeader,children:(0,g.jsx)("h4",{className:A().listItemName,children:a.name||"N/A"})}),(0,g.jsx)("p",{className:A().listItemEmail,children:a.email}),(0,g.jsxs)("div",{className:A().listItemStats,children:[(0,g.jsx)("span",{className:A().listItemStat,children:N(a.totalInvested)}),(0,g.jsxs)("span",{className:A().listItemStat,children:[a.investments.length," investment",1!==a.investments.length?"s":""]})]})]},a.id)})})]}),(0,g.jsx)("div",{className:A().rightPanel,children:u?(0,g.jsxs)("div",{className:A().detailsPanel,children:[(0,g.jsxs)("div",{className:A().detailsHeader,children:[(0,g.jsxs)("div",{children:[(0,g.jsx)("h2",{className:A().detailsTitle,children:u.name}),(0,g.jsx)("p",{className:A().detailsEmail,children:u.email}),u.company&&(0,g.jsx)("p",{className:A().detailsCompany,children:u.company})]}),(0,g.jsx)("div",{className:A().detailsBadges,children:u.eisEligible&&(0,g.jsx)("span",{className:"".concat(A().badge," ").concat(A().badgeEIS),children:"EIS Eligible"})})]}),(0,g.jsxs)("div",{className:A().statsGrid,children:[(0,g.jsxs)("div",{className:A().statCard,children:[(0,g.jsx)("div",{className:A().statCardLabel,children:"Total invested"}),(0,g.jsx)("div",{className:A().statCardValue,children:N(u.totalInvested)})]}),(0,g.jsxs)("div",{className:A().statCard,children:[(0,g.jsx)("div",{className:A().statCardLabel,children:"Total shares"}),(0,g.jsx)("div",{className:A().statCardValue,children:u.totalShares.toLocaleString()})]}),(0,g.jsxs)("div",{className:A().statCard,children:[(0,g.jsx)("div",{className:A().statCardLabel,children:"Equity %"}),(0,g.jsxs)("div",{className:A().statCardValue,children:[u.equityPercentage.toFixed(3),"%"]})]}),(0,g.jsxs)("div",{className:A().statCard,children:[(0,g.jsx)("div",{className:A().statCardLabel,children:"Investments"}),(0,g.jsx)("div",{className:A().statCardValue,children:u.investments.length})]})]}),(0,g.jsxs)("div",{className:A().detailsSection,children:[(0,g.jsx)("h3",{className:A().sectionTitle,children:"Investor details"}),(0,g.jsxs)("div",{className:A().detailsGrid,children:[(0,g.jsxs)("div",{className:A().detailItem,children:[(0,g.jsx)("span",{className:A().detailLabel,children:"Investor type:"}),(0,g.jsx)("span",{className:A().detailValue,children:u.investorType})]}),u.phone&&(0,g.jsxs)("div",{className:A().detailItem,children:[(0,g.jsx)("span",{className:A().detailLabel,children:"Phone:"}),(0,g.jsx)("span",{className:A().detailValue,children:(0,g.jsx)("a",{href:"tel:".concat(u.phone),children:u.phone})})]}),u.firstInvestmentDate&&(0,g.jsxs)("div",{className:A().detailItem,children:[(0,g.jsx)("span",{className:A().detailLabel,children:"First investment:"}),(0,g.jsx)("span",{className:A().detailValue,children:M(u.firstInvestmentDate)})]}),u.lastInvestmentDate&&(0,g.jsxs)("div",{className:A().detailItem,children:[(0,g.jsx)("span",{className:A().detailLabel,children:"Last investment:"}),(0,g.jsx)("span",{className:A().detailValue,children:M(u.lastInvestmentDate)})]}),(0,g.jsxs)("div",{className:A().detailItem,children:[(0,g.jsx)("span",{className:A().detailLabel,children:"Member since:"}),(0,g.jsx)("span",{className:A().detailValue,children:M(u.createdAt)})]})]})]}),u.investments.length>0&&(0,g.jsxs)("div",{className:A().detailsSection,children:[(0,g.jsxs)("h3",{className:A().sectionTitle,children:["Investment history (",u.investments.length,")"]}),(0,g.jsx)("div",{className:A().investmentsList,children:u.investments.map(function(a){var b=O(a.status);return(0,g.jsxs)("div",{className:A().investmentCard,children:[(0,g.jsxs)("div",{className:A().investmentCardHeader,children:[(0,g.jsxs)("div",{className:A().investmentCardInfo,children:[(0,g.jsx)("div",{className:A().investmentAmount,children:N(a.amount)}),(0,g.jsxs)("div",{className:A().investmentMeta,children:[(0,g.jsxs)("span",{children:[a.shares.toLocaleStr
1ing()," shares"]}),(0,g.jsx)("span",{children:"•"}),(0,g.jsx)("span",{children:M(a.date)})]})]}),(0,g.jsx)("span",{className:"".concat(A().badge," ").concat(b.className),children:b.label})]}),(0,g.jsx)("div",{className:A().investmentCardActions,children:(0,g.jsx)(l(),{href:"/admin/investments/".concat(a.id),children:(0,g.jsx)(n.Z,{variant:"outline",size:"small",children:"View details"})})})]},a.id)})})]}),(0,g.jsx)("div",{className:A().detailsSection,children:(0,g.jsxs)("div",{className:A().actionButtons,children:[(0,g.jsx)(l(),{href:"/admin/investors/".concat(u.id),children:(0,g.jsx)(n.Z,{variant:"primary",size:"medium",fullWidth:!0,className:A().primaryButton,children:"View full profile"})}),(0,g.jsx)("a",{href:"mailto:".concat(u.email),className:A().emailButton,children:(0,g.jsx)(n.Z,{variant:"outline",size:"medium",fullWidth:!0,children:"Send email"})})]})})]}):(0,g.jsxs)("div",{className:A().emptyDetails,children:[(0,g.jsx)("div",{className:A().emptyIcon,children:"\uD83D\uDC64"}),(0,g.jsx)("p",{children:"Select an investor from the list to view details"})]})})]})]}),(0,g.jsx)(y,{isOpen:I,onClose:function(){return J(!1)},onSuccess:function(){K()}})]})]})},C=B},50069:function(a){a.exports={form:"add-investor-modal_form__FX47A",errorBanner:"add-investor-modal_errorBanner__WC3rd",successBanner:"add-investor-modal_successBanner__D7kgZ",section:"add-investor-modal_section__ukF4w",sectionTitle:"add-investor-modal_sectionTitle__ZMkfh",formGrid:"add-investor-modal_formGrid__5GDY_",investmentSection:"add-investor-modal_investmentSection__GsJdk",calculationBox:"add-investor-modal_calculationBox__W3e19",calculationRow:"add-investor-modal_calculationRow__S3v_7",calculationLabel:"add-investor-modal_calculationLabel__KLkG5",calculationValue:"add-investor-modal_calculationValue__h7Qug",actions:"add-investor-modal_actions__VbiBX"}},77725:function(a){a.exports={container:"investors_container__eKcly",header:"investors_header__dEr0L",title:"investors_title__mDpIQ",subtitle:"investors_subtitle__3YAFq",headerStats:"investors_headerStats__QJQkS",addInvestorButton:"investors_addInvestorButton__TS7rj",statBadge:"investors_statBadge__o8Qo_",statBadgeValue:"investors_statBadgeValue__VNABZ",statBadgeLabel:"investors_statBadgeLabel__IgdPi",filtersSection:"investors_filtersSection__cMbCL",searchBox:"investors_searchBox__PkXIQ",searchInput:"investors_searchInput__fxA3u",filters:"investors_filters__2Xepk",filterButton:"investors_filterButton__UYLGg",active:"investors_active___byG4",splitView:"investors_splitView__ZjhUJ",leftPanel:"investors_leftPanel__Shou4",listHeader:"investors_listHeader__cbG2q",investorsList:"investors_investorsList__fqBX_",investorListItem:"investors_investorListItem__d0CKZ",selected:"investors_selected__Y7dxV",listItemName:"investors_listItemName__2xV7S",listItemEmail:"investors_listItemEmail__79nMH",listItemStats:"investors_listItemStats__9a4dS",listItemHeader:"investors_listItemHeader__ynSpO",listItemStat:"investors_listItemStat__v0m3T",rightPanel:"investors_rightPanel__Wz3Zx",detailsPanel:"investors_detailsPanel__tfxXK",detailsHeader:"investors_detailsHeader___daGG",detailsTitle:"investors_detailsTitle__b2SIx",detailsEmail:"investors_detailsEmail__ps2ya",detailsCompany:"investors_detailsCompany__QdP2H",detailsB
1adges:"investors_detailsBadges__5QJMf",statsGrid:"investors_statsGrid__wcD5W",statCard:"investors_statCard__rLvIw",statCardLabel:"investors_statCardLabel__G0X4v",statCardValue:"investors_statCardValue__3w_uH",detailsSection:"investors_detailsSection__FKo6E",sectionTitle:"investors_sectionTitle__b6y5U",detailsGrid:"investors_detailsGrid__h9WAf",detailItem:"investors_detailItem__1zarn",detailLabel:"investors_detailLabel__IgX9Y",detailValue:"investors_detailValue__Emv6r",investmentsList:"investors_investmentsList__hlogM",investmentCard:"investors_investmentCard__ho5PT",primaryButton:"investors_primaryButton__oTUqM",investmentCardHeader:"investors_investmentCardHeader__R1Ogm",investmentCardInfo:"investors_investmentCardInfo__3qP33",investmentAmount:"investors_investmentAmount__ZUOLe",investmentMeta:"investors_investmentMeta__blK4z",investmentCardActions:"investors_investmentCardActions__wshmB",actionButtons:"investors_actionButtons__fBpVd",emailButton:"investors_emailButton__pwPU7",badge:"investors_badge__Har5r",badgeApproved:"investors_badgeApproved__3MHgm",badgePending:"investors_badgePending__MYfEm",badgeRejected:"investors_badgeRejected__ZCP5B",badgeCompleted:"investors_badgeCompleted__dj8mE",badgeFailed:"investors_badgeFailed__etgIk",badgeEIS:"investors_badgeEIS__yXCt8",emptyState:"investors_emptyState__A7MqC",emptyIcon:"investors_emptyIcon__F5AGc",emptyDetails:"investors_emptyDetails__xGSMV"}},68415:function(a){a.exports={inputGroup:"input_inputGroup__K2kUd",label:"input_label__yIXOp",required:"input_required__Zcu4e",input:"input_input__nJNB8",error:"input_error__t1xx4",errorMessage:"input_errorMessage__NssOC"}},83721:function(a){a.exports={overlay:"modal_overlay__js1Us",fadeIn:"modal_fadeIn__DyCDS",modal:"modal_modal__F1_BV",slideUp:"modal_slideUp__ZJ907",small:"modal_small__O_p7a",medium:"modal_medium__kYNFa",large:"modal_large__sgrMn",full:"modal_full__sV0j2",header:"modal_header__SXMAq",title:"modal_title__t6OUW",closeButton:"modal_closeButton__nwfP6",content:"modal_content__y0k5F",slideUpMobile:"modal_slideUpMobile__taMrU"}},82623:function(a){a.exports={selectGroup:"select_selectGroup__T68WN",label:"select_label__9uT4r",required:"select_required__j4SCu",select:"select_select__e_b1P",error:"select_error__VCYmi",errorMessage:"select_errorMessage__M6h4Q"}}},function(a){a.O(0,[65514,49774,92888,40179],function(){var b;return a(a.s=98501)}),_N_E=a.O()}])

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.