PageSourceSearch

https://solana.org/_next/static/chunks/8203-1b31158ad7273089.js

js solana.org collected 2026-10-01 13:05:03 UTC 42,575 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8203],{866:e=>{e.exports={wrapper:"AdminView_wrapper__rl_ck",infoSection:"AdminView_infoSection__2o9I2",header:"AdminView_header__Fb01J",headerLeft:"AdminView_headerLeft__T3FyS",businessName:"AdminView_businessName__igPS5",personNamePrimary:"AdminView_personNamePrimary__cGxJc",personName:"AdminView_personName__jr7Tw",contactInfo:"AdminView_contactInfo__J9gy_",contactItem:"AdminView_contactItem__2v6dk",sectionContent:"AdminView_sectionContent__EZN36",sectionHeader:"AdminView_sectionHeader__PSSiE",sectionHeaderLeft:"AdminView_sectionHeaderLeft__qGQ2G",gridTitle:"AdminView_gridTitle__EQzi1",oddBg:"AdminView_oddBg__A2Gps",tableBg:"AdminView_tableBg__dqUDk","tds2-payments-table":"AdminView_tds2-payments-table__9NX7G",numbers:"AdminView_numbers__3h7r5"}},7547:(e,t,a)=>{"use strict";a.d(t,{V:()=>eR});var s=a(6029),r=a(55729),i=a(71024),n=a.n(i),l=a(65234),d=a(52820),o=a(15732),c=a(85577),p=a(76319),m=a(96723),u=a(95795),h=a(8765),x=a(56648),g=a(41735),_=a(24068),b=a(55105);a(82328);var f=a(39454),j=a.n(f);let v=({baselineRequirement:e,bonusRequirement:t,result:a,isPercentage:i=!1,smallIsBetter:n=!1,label:l,decimalPlaces:d})=>{if(!a&&0!==a)return(0,s.jsxs)("div",{className:j().wrapper,children:[(0,s.jsx)(_.jG,{strokeWidth:10,className:j()["progress-bar"],styles:(0,_.Hf)({pathColor:"grey",strokeLinecap:"round",trailColor:"rgba(0,0,0,.2)"}),children:(0,s.jsx)("div",{className:j().value,style:{marginLeft:0},children:"N/A"})}),(0,s.jsx)("div",{className:j().label,children:l})]});let[o,c]=(0,r.useState)(0),[p,m]=(0,r.useState)("icon-black"),[u,h]=(0,r.useState)(""),x=d??2*!i;return(0,r.useEffect)(()=>{let s,r=t||e,l=i?a:a/r*100,d="green";n?a<e&&a>=t?d="orange":a>=e&&(d="red"):a>=e&&a<t?d="orange":a<=e&&(d="red"),h(isNaN(s=Number(a))?"N/A":i?(0,b.Ee)(s,x):(0,b.e2)(s,x)),m(d),c(l)},[e,t,a,i,n,x]),(0,s.jsxs)("div",{className:j().wrapper,children:[(0,s.jsx)(_.jG,{value:o,strokeWidth:10,className:j()["progress-bar"],styles:(0,_.Hf)({pathColor:`var(--status-icon-${p})`,strokeLinecap:"round",trailColor:`${0===a&&!n?"var(--danger)":"var(--performance-bg-color)"}`}),children:(0,s.jsx)("div",{className:j().value,children:u})}),(0,s.jsx)("div",{className:j().label,children:l})]})};var y=a(92406),S=a(72297),N=a.n(S),w=a(69415),k=a(95357);let A=g.Ay.div.withConfig({componentId:"sc-7ff40db9-0"})(["flex:1;h2{font-size:48px;font-weight:600;line-height:58px;text-transform:capitalize;}h3{font-size:28px;margin-bottom:16px;}.summary{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;margin-bottom:16px;padding:16px;background-color:var(--bg-color-gray);border-radius:12px;cursor:pointer;> *{margin-bottom:16px;&:last-child{margin-bottom:0;}}.epoch{font-size:12px;font-weight:600;text-transform:uppercase;}.stake-amount{line-height:1;}.performance{display:flex;flex-direction:row;align-items:center;justify-content:center;}&:hover{background-color:var(--bg-color-gray-dark);}}.past-epochs{display:grid;grid-template-columns:repeat(5,auto);gap:12px;.past-epoch{display:flex;flex-direction:column;align-items:center;padding:8px;line-height:1;background-color:var(--bg-color-gray);border-radius:6px;cursor:pointer;> *{margin-bottom:8px;&:last-child{margin-bottom:0;}}&:hover{background-color:var(--bg-color-gray-dark);}}}"]),C=({pk:e,cluster:t,stats:a,voteCreditsData:i,handleClick:n})=>{let l=(0,u.Jo)(a),d=Math.min(...Object.keys(a.epochs).map(e=>Number(e))),o=(0,r.useMemo)(()=>i.filter(({delinquent:e})=>e).map(({epoch:e})=>Number(e)),[i]),c=(0,r.useMemo)(()=>{let e=a.epochs,t=new Set(o),s=o.length>0?Math.max(...o):l,r=o.length>0?Math.min(...o):d,i=Math.max(l,s),n=Math.min(d,r),c=[];for(let a=i;a>=n;a--){let s=a.toString();void 0!==e[s]?c.push({epoch:s,state:e[s],isDelinquent:!1}):t.has(a)&&c.push({epoch:s,state:u.lB.DELINQUENT,isDelinquent:!0})}return c},[a.epochs,o,l,d]),p=(0,r.useMemo)(()=>c.map(({epoch:e,isDelinquent:t})=>({epoch:Number(e),isDelinquent:t})),[c]),h=c[0],x=h?Number(h.epoch):l,g=!!h?.isDelinquent,[_,f]=(0,r.useState)(null),[j,S]=(0,r.useState)(null),[C,P]=(0,r.useState)(26);(0,r.useEffect)(()=>{let a=!1;return(async()=>{try{let[s,r]=await Promise.all([(0,m.A)("/validators/details",{method:"GET",params:{pk:e,epoch:l}}),(0,m.A)("/validators/epoch-stats",{method:"GET",params:{cluster:t,epoch:l}})]);if(a)return;f(s),S(r)}catch(e){console.error(e)}})(),()=>{a=!0}},[t,l,e]);let E=(0,r.useMemo)(()=>{let e;if(j&&_){switch(_.stats.state){case u.lB.BONUS:e=j.stats.bonus_stake_amount;break;case u.lB.BASELINE:e=j.stats.baseline_stake_amount;break;default:return"No stake"}
1return Math.round(e).toLocaleString()}},[j,_]),D=(0,k.H)(j?.stats),I=(0,u.bn)(_),M=j&&100*(0,u.gM)(j.stats),T=null!==I?100*I:(0,u.MA)(_?.stats?.blocks,_?.stats?.slots);return _&&(j||g)&&(0,s.jsxs)(A,{className:N().container,"data-testid":"validator-node-performance",children:[(0,s.jsx)("h3",{children:u.yL[t]}),(0,s.jsxs)("div",{className:"summary",onClick:()=>n({pk:e,epoch:x,cluster:t,isDelinquent:g,epochEntries:p}),children:[(0,s.jsxs)("div",{className:"epoch",children:["Epoch ",x]}),(0,s.jsx)(y.A,{size:48,rewardStatus:g?u.lB.DELINQUENT:_.stats.state,issues:g?void 0:_.stats.issues}),g?(0,s.jsx)("div",{className:"explanation",children:"Validator was delinquent."}):"2"===_.stats.sfdpVersion?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(w.A,{validatorEpochStats:_,epochData:j})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h2",{className:"stake-amount",children:(0,s.jsx)("span",{children:E})}),_.stats.state_reason&&(0,s.jsxs)("div",{className:"explanation",children:[(0,b.Zr)(_.stats.state_reason),"."]})]}),!g&&(0,s.jsxs)("div",{className:"performance",children:[(0,s.jsx)(v,{baselineRequirement:D,bonusRequirement:D,result:_?.stats?.vote_credits,decimalPlaces:1,label:"Vote Credits"}),(0,s.jsx)(v,{baselineRequirement:M,bonusRequirement:M,result:T,smallIsBetter:!0,isPercentage:!0,decimalPlaces:1,label:"Skip Rate"})]})]}),(0,s.jsx)("div",{className:"past-epochs","data-testid":"past-epochs-grid",children:c?.slice(1,C).map((a,r)=>(0,s.jsxs)("div",{className:`past-epoch ${a.isDelinquent?` ${N()["past-epoch"]}`:""}`,onClick:()=>n({pk:e,epoch:Number(a.epoch),cluster:t,isDelinquent:a.isDelinquent,epochEntries:p}),children:[(0,s.jsx)(y.A,{size:20,rewardStatus:a.state}),(0,s.jsx)("div",{children:a.epoch})]},a.epoch))}),(0,s.jsx)("a",{className:N()[`${C===c.length?"show-more":"show-more--hidden"}`],onClick:()=>P(26),children:"Show less"}),(0,s.jsx)("a",{className:N()[`${C<c.length&&C<=26?"show-more":"show-more--hidden"}`],onClick:()=>P(c.length),children:"Show more"})]})};var P=a(80317),E=a(32866),D=a.n(E),I=a(2968),M=a(82203),T=a.n(M);let B=e=>{let{kycRequiredBy:t}=e,a=new Date(t),r=new Date,i=Math.ceil((a.getTime()-r.getTime())/864e5);return(0,s.jsx)("div",{children:(0,s.jsxs)("div",{children:[(0,s.jsx)(I.A,{color:"#ED6A5E",size:24})," ",(0,s.jsx)(T(),{href:"/delegation-program-kyc",children:"ID re-verification"})," ","required within ",i," days"]})})};var V=a(866),R=a.n(V),$=a(33911),L=a(14646),q=a(96195),O=a(15085),z=a(81106),U=a(84272),F=a(30853),G=a(23767),K=a(24595);function H({inquiryId:e,onSuccess:t}){let[a,i]=(0,r.useState)(!1),[n,l]=(0,r.useState)(!1),d=(0,r.useCallback)(async()=>{i(!0);try{let a=await (0,m.A)("/admin/persona/manual-approve",{method:"POST",withCredentials:!0,body:{id:e}});a?.success?t():alert("Unexpected response. The action may not have been applied.")}catch(e){console.error("Unable to approve inquiry:",e),G.Cp(e),alert("Unable to approve inquiry.")}i(!1)},[e,t]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button",disabled:a,onClick:()=>l(!0),children:a?(0,s.jsx)(h.A,{}):"Manually Approve"}),(0,s.jsx)(K.u,{show:n,title:(0,s.jsx)("h3",{className:"text-start",children:"Manually Approve"}),handleClose:()=>l(!1),buttonsWrapperClassName:"form-buttons",handleConfirm:()=>{d(),l(!1)},children:"Are you sure you want to manually approve this Persona inquiry?"})]})}function W({attempt:e,formattedDate:t,onRefresh:a}){let r=`https://app.withpersona.com/dashboard/inquiries/${e.personaInquiryId}`,i=["approved","completed","declined","failed","needs_review"].includes(e.status),n="needs_review"===e.status&&!e.manualReviewStatus,l="REJECTED"===e.manualReviewStatus||!e.manualReviewStatus&&["declined","failed"].includes(e.status);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:".5rem",flexWrap:"wrap",width:"100%"},children:[function(e){if("APPROVED"===e.manualReviewStatus)return(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-success",children:"Manually Approved"});if("REJECTED"===e.manualReviewStatus)return(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-danger",children:"Manually Rejected"});switch(e.status){case"approved":return(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-success",children:"Approved"});case"declined":return(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-danger",children:"Declined"});case"needs_review":return(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-warning",children:"Needs Review"});case"expired":return(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-secondary",children:"Expired"});case"completed":return(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-success",children:"Completed"});case"failed":return(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-danger",children:"Failed"});case"created":if(e.isReKYC)return(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-warning",children:"Attempted re-KYC, not yet passed"});return(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-info",children:e.status});default:return(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-info",children:e.status||"Unknown"})}}(e),e.isBusiness&&(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-primary",children:"Business"}),e.isReKYC&&(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-secondary",children:"Re-KYC"}),(0,s.jsx)("span",{children:t}),(0,s.jsx)("span",{style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:".5rem"},children:(0,s.jsx)("a",{href:r,target:"_blank",rel:"noreferrer",style:{fontSize:12},children:"View in Persona"})})]}),i&&(n||l)&&(0,s.jsx)("div",{style:{display:"flex",gap:".5rem",marginTop:"0.5rem"},children:(0,s.jsx)(H,{inquiryId:e.id,onSuccess:()=>a?.()})})]})}function Y({attempt:e,formattedDate:t}){let a=e.isManuallyApproved||"APPROVED_VERIFIED"===e.verificationStatus&&"MATCH"===e.identityVerificationSimilarity?"pass":e.verificationStatus?"fail":"pending";return(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:".25rem",width:"100%"},children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:".5rem",flexWrap:"wrap"},children:[e.isManuallyApproved?(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-success",children:"Manually Approved"}):"pass"===a?(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-success",children:"Pass"}
1):"pending"===a?(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-warning",children:"Pending"}):(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-danger",children:"Fail"}),(0,s.jsx)("span",{children:t}),(0,s.jsx)("span",{style:{marginLeft:"auto"},children:(0,s.jsx)("span",{className:"badge badge-xs border-1 rounded-1 bg-secondary",children:"Jumio"})})]}),"fail"===a&&!e.isManuallyApproved&&(0,s.jsxs)("span",{style:{fontSize:"0.85rem",opacity:.8},children:["Reason: ",e.verificationStatus||"Unknown"," / ",e.identityVerificationSimilarity||"N/A"]})]})}let J=(0,r.memo)(function({personaAttempts:e,kycAttempts:t,onRefresh:a}){let i=(0,r.useMemo)(()=>{let a=[];for(let t of e??[])a.push({source:"persona",date:new Date(t.createdAt),attempt:t});for(let e of t??[])a.push({source:"jumio",date:new Date(e.createdAt?e.createdAt:0),attempt:e});return a.sort((e,t)=>t.date.getTime()-e.date.getTime())},[e,t]);return 0===i.length?null:(0,s.jsx)("div",{children:i.map(e=>{let t=e.date.getTime()?e.date.toLocaleDateString():"N/A",r=`${e.source}-${e.attempt.id}`;return(0,s.jsx)("div",{style:{display:"flex",flexDirection:"column",margin:"0.5rem 0",padding:"0.75rem",border:"1px solid var(--bs-body-color)",borderRadius:"4px"},children:(0,s.jsx)("div",{style:{display:"flex",alignItems:"center",gap:".5rem",flexWrap:"wrap"},children:"persona"===e.source?(0,s.jsx)(W,{attempt:e.attempt,formattedDate:t,onRefresh:a}):(0,s.jsx)(Y,{attempt:e.attempt,formattedDate:t})})},r)})})});var Q=a(89401),X=a(21567);function Z({status:e,setKycStatus:t,setKycRequiredBy:a,pubkey:i,setErrorMessage:n,setSuccessMessage:l}){let[d,o]=(0,r.useState)(!1);return"KYC_VALID"!==e&&"RE_KYC_REQUIRED"!==e?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button",onClick:()=>o(!0),children:"Ask to re-KYC"}),(0,s.jsx)(Q.A,{title:"Set Re-KYC Date",show:d,close:()=>o(!1),children:(0,s.jsx)("div",{style:{padding:"1rem"},children:(0,s.jsx)(X.A,{setKycStatus:t,setKycRequiredBy:a,pubkeys:[i],setErrorMessage:n,setSuccessMessage:e=>{l(e),""!==e&&o(!1)}})})})]})}var ee=a(87381),et=a.n(ee);let ea=(0,r.memo)(function({truliooBusinessName:e,truliooVerificationData:t,truliooBusinessFound:a,truliooManuallyApproved:r,truliooOnWatchlist:i,truliooVerifiedAt:n,hasLegacyBusinessVerification:l}){let d=e??t?.DataFields?.Business?.BusinessName,o=!!d||!!a||!!r||!!i||!!n,c=!!l&&!a&&!r&&!i;return o||l?(0,s.jsxs)("div",{className:et().summary,children:[d&&(0,s.jsxs)("div",{className:et().field,children:[(0,s.jsx)("span",{className:et().label,children:"Business Name:"}),(0,s.jsx)("span",{children:d})]}),(0,s.jsxs)("div",{className:et().badges,children:[a&&(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-success",children:"Pass"}),r&&(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-success",children:"Manually Approved"}),i&&(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-danger",children:"On Watchlist"}),c&&(0,s.jsx)("span",{className:"badge badge-sm border-1 rounded-1 bg-warning",children:"Needs Review"}),n&&(0,s.jsx)("span",{style:{fontSize:"0.85rem",opacity:.7},children:new Date(n).toLocaleDateString()}),!o&&!c&&l&&(0,s.jsx)("span",{style:{fontSize:"0.85rem",opacity:.7},children:"Legacy business verification record present"})]})]}):null});var es=a(47623),er=a(98324),ei=a(64994),en=a(90636);let el=e=>{let{buttonTitle:t,modalTitle:a,modalWidth:i,children:n}=e,{showModal:l,handleOpenModal:d,handleCloseModal:o}=(()=>{let[e,t]=(0,r.useState)(!1);return{showModal:e,setShowModal:t,handleCloseModal:()=>{t(!1)},handleOpenModal:()=>{t(!0)}}})();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{onClick:d,children:t}),(0,s.jsx)(Q.A,{title:a||t,show:l,close:o,width:i,children:n})]})},ed=es.object().shape({note:es.string().max(512)}),eo=e=>{let{setNotes:t,createNote:a}=e,r=async(e,s)=>{let{note:r}=e,{setSubmitting:i,setStatus:n,setFieldValue:l}=s;i(!0);let d=r?.trim().replaceAll(/<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>/g,"");if(!d)return void n({status:"error",message:"Please write a note with a valid note."});try{let e=await a(d,!0);n({message:"Successfully updated validator notes.",status:"success"}),t(t=>({...t,notes:e})),l("note","")}catch(e){e instanceof Error&&n({message:e?.message||"There was an error",status:"error"})}finally{i(!1)}};return(0,s.jsx)(el,{buttonTitle:"Add note",modalTitle:(0,s.jsx)("h3",{className:"text-start",children:"Add validator note"}),modalWidth:"clamp(350px, 50%, 600px)",children:(0,s.jsx)("div",{style:{margin:"1.5rem",display:"flex",padding:0,flexDirection:"column",gap:"1rem"},children:(0,s.jsx)(er.l1,{validateOnBlur:!0,onSubmit:r,initialValues:{note:""},validationSchema:ed,children:({isSubmitting:e,status:t})=>(0,s.jsxs)(er.lV,{style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[(0,s.jsx)("label",{htmlFor:"note",children:"Note"}),(0,s.jsx)(er.D0,{name:"note",type:"text",as:"textarea",rows:"3"}),(0,s.jsx)(er.Kw,{name:"note",children:e=>(0,s.jsx)(ei.A,{msg:e})}),t&&(0,s.jsx)("div",{className:`${t?.status==="error"?"danger":"success"}-message`,children:t.message}),(0,s.jsx)("div",{style:{display:"flex",alignSelf:"flex-end",gap:"1rem"},children:(0,s.jsx)("button",{type:"submit",className:"submit-button",disabled:e,children:e?(0,s.jsx)(en.A,{}):"Save"})})]})})})})};var ec=a(1542),ep=a(45379),em=a(63611);let eu=e=>{let{title:t,children:a,...i}=e,[n,l]=(0,r.useState)(!1);return(0,s.jsxs)("div",{className:em.container,...i,children:[(0,s.jsx)("button",{type:"button",onClick:()=>l(e=>!e),className:em["button-collapsible"]+" "+em[n?"active":""],children:(0,s.jsxs)("div",{className:em.title,children:[(0,s.jsx)("div",{children:t}),n?(0,s.jsx)(ec.A,{size:16}):(0,s.jsx)(ep.A,{size:16})]})}),n&&(0,s.jsx)("div",{className:em.children,style:{overflow:"inherit"},children:a})]})};var eh=a(37721),ex=a(9866);function eg(e){return"string"!=typeof e||0===e.length?"Change":e.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function e_(e){return Array.isArray(e)?e.join(", "):"boolean"==typeof e?e?"true":"false":e&&"object"==typeof e?JSON.stringify(e):null==e?"null":String(e)}let eb=e=>{let{changeHistory:t,loading:a}=e;return a?(0,s.jsxs)("div",{children:["Loading validator history ",(0,s.jsx)(en.A,{})]}):(0,s.jsx)(s.Fragment,{children:t?.length>0?(0,s.jsx)(eu,{title:"Change history",style:{overflow:"overlay"},children:(0,s.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:t.map(({id:e,email:t,createdAt:a,note:r,action:i,meta:n,query:l,prev:d})=>{let o=new Date(a),c=l?eg(l.eventType||i):"Note";return(0,s.jsxs)("div",{className:R().tableBg,style:{display:"flex",alignItems:"center",gap:"1rem",padding:"1rem"},children:[(0,s.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:".25rem",alignItems:"center"},children:l?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eh.A,{}),c]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(U.A,{}),"Note"]})}),(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:".25rem",minWidth:"205px"},children:[n?.actor||t,n?.reasonForChange&&(0,s.jsx)("span",{children:n.reasonForChange}),n?.sourceSystem&&(0,s.jsx)("span",{children:eg(n.sourceSystem)}),(0,s.jsx)("span",{children:o.toLocaleDateString("en-US",{hour:"2-digit",minute:"2-digit",timeZoneName:"short"})})]}),l&&(0,s.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:Object.keys(l).filter(e=>"eventType"!==e).map((e,t)=>(0,s.jsxs)("p",{style:{margin:0},children:[(0,s.jsxs)("b",{children:[eg(e),": "]}),void 0!==d?.[e]&&(0,s.jsxs)(s.Fragment,{children:[e_(d[e]),(0,s.jsx)(ex.A,{style:{marginLeft:"5px",marginRight:"5px"},size:16})]}),e_(l[e])]},t))}),r&&(0,s.jsx)("p",{children:r})]},e)})})}):(0,s.jsx)("div",{className:"warning-message",children:"This validator doesn't have any notes yet."})})};var ef=a(50212);let ej=Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}),ev=(0,r.memo)(function({validatorData:e,showEditModal:t,kycStatus:a,kycRequiredBy:i,setKycStatus:n,setKycRequiredBy:l,setErrorMessage:d,setSuccessMessage:o,showChangeStatusModal:c,onRefresh:p}){let{flagState:h,firstName:x,lastName:g,email:_,alternateEmail:b,discordID:f,tds22Enrolled:j,tds22WalletAddress:v,country:y,state:S}=e,N=[x,g].filter(e=>!!e).join(" "),w=(0,r.useMemo)(()=>
1{if(!y)return null;try{return new Intl.DisplayNames(["en"],{type:"region"}).of(y)??y}catch{return y}},[y]),{notes:{notes:k,auditLog:A},setNotes:C,createNote:P,loadingNotes:E}=(e=>{let[t,a]=(0,r.useState)({notes:[],auditLog:[]}),[s,i]=(0,r.useState)(!0),n=async(t,a)=>{try{let{data:s}=await (0,m.A)("/admin/validators/notes",{method:"POST",withCredentials:!0,body:{sfdpParticipantId:e,note:t,retrieveNotes:a}});return s.notes}catch(e){throw Error("Failed to create validator note.",{cause:e})}finally{i(!1)}};return(0,r.useEffect)(()=>{(async()=>{let{data:t}=await (0,m.A)("/admin/validators/notes",{method:"GET",withCredentials:!0,params:{sfdpParticipantId:e}});a({notes:t.notes,auditLog:t.auditLog})})().catch(e=>console.error(e)).finally(()=>{i(!1)})},[]),{notes:t,setNotes:a,createNote:n,loadingNotes:s}})(e.id),D=(0,r.useMemo)(()=>[...k,...A].sort((e,t)=>new Date(t.createdAt).valueOf()-new Date(e.createdAt).valueOf()),[k,A]),I=!!e.businessVerificationId,M=e.personaBusinessName||e.truliooBusinessName||null;return(0,s.jsxs)("div",{className:(0,ef.A)("admin-view",R().wrapper),children:[(0,s.jsxs)("div",{className:R().header,children:[(0,s.jsxs)("div",{className:R().headerLeft,children:[M&&(0,s.jsx)("span",{className:R().businessName,children:M}),(0,s.jsx)("span",{className:(0,ef.A)(M?R().personName:R().personNamePrimary),children:N||"N/A"}),(0,s.jsxs)("div",{className:R().contactInfo,children:[(0,s.jsxs)("span",{className:R().contactItem,children:[(0,s.jsx)($.A,{size:14})," ",w||"N/A"]}),(0,s.jsxs)("span",{className:R().contactItem,children:[(0,s.jsx)(L.A,{size:14})," ",_?(0,s.jsx)("a",{href:`mailto:${_}`,children:_}):"N/A"]}),(0,s.jsxs)("span",{className:R().contactItem,children:[(0,s.jsx)(q.A,{size:14})," ",f||"N/A"]}),b&&(0,s.jsxs)("span",{className:R().contactItem,children:[(0,s.jsx)(L.A,{size:14})," ",(0,s.jsx)("a",{href:`mailto:${b}`,children:b})]})]})]}),(0,s.jsx)("button",{type:"button",onClick:()=>t(),children:"Edit"})]}),(0,s.jsx)("div",{className:R().infoSection,children:(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"1rem",justifyContent:"flex-start",width:"100%"},children:[(0,s.jsx)("h5",{children:S||"N/A"}),(0,s.jsx)("span",{style:{marginLeft:"auto",display:"flex",gap:"0.5rem"},children:(0,s.jsx)("button",{type:"button",onClick:()=>c(),children:"Change"})})]})}),j&&(0,s.jsx)("div",{className:`${R().infoSection} ${R().oddBg}`,children:(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:"100%",gap:"1rem"},children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"1rem"},children:[(0,s.jsx)(O.A,{}),(0,s.jsx)("h5",{children:"TdS22 wallet address:"}),(0,s.jsx)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"1rem",justifyContent:"space-between"},children:(0,s.jsx)("h5",{style:{overflowWrap:"anywhere"},children:v||"No wallet address"})})]}),(0,s.jsx)("div",{children:e.tds22Payments?e.tds22Payments.length>0?(0,s.jsx)(eu,{title:"Expand to see payments",children:(0,s.jsx)("table",{className:R()["tds2-payments-table"],children:(0,s.jsxs)("tbody",{children:[(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:"Date"}),(0,s.jsx)("th",{className:R().numbers,children:"SOL"}),(0,s.jsx)("th",{className:R().numbers,children:"USD"})]}),e.tds22Payments.map(({payment_finalized_date:e,paid_sol:t,paid_usd:a})=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:new Date(e).toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric"})}),(0,s.jsx)("td",{className:R().numbers,children:ej.format(t)}),(0,s.jsxs)("td",{className:R().numbers,children:["$",ej.format(a)]})]},`tds2-payment-${e}`))]})})}):(0,s.jsx)("p",{className:"warning-message",children:"User has not received any payment yet."}):"This user has no payments."})]})}),(0,s.jsx)("div",{className:R().infoSection,children:(0,s.jsxs)("div",{className:R().sectionContent,children:[(0,s.jsxs)("div",{className:R().sectionHeader,children:[(0,s.jsxs)("div",{className:R().sectionHeaderLeft,children:[(0,s.jsx)("h5",{style:{whiteSpace:"nowrap"},children:"Identity Verification:"}),(0,s.jsx)(F.A,{status:a,kycRequiredBy:i}),!!h&&(0,s.jsxs)("span",{style:{fontSize:"0.9rem",opacity:.85},children:["(flagged – ",(0,u.OQ)(h).toLowerCase(),")"]})]}),a&&(0,s.jsx)(Z,{status:a,setKycStatus:n,setKycRequiredBy:l,pubkey:e.participantPubkey,setErrorMessage:d,setSuccessMessage:o})]}),!!a&&(0,s.jsx)(J,{personaAttempts:e.personaAttempts,kycAttempts:e.kycAttempts,onRefresh:p})]})}),e?.isBusiness&&!e.personaIsBusiness&&I&&(0,s.jsx)("div",{className:R().infoSection,children:(0,s.jsxs)("div",{className:R().sectionContent,children:[(0,s.jsxs)("div",{className:R().gridTitle,children:[(0,s.jsx)(z.A,{size:18}),(0,s.jsx)("h5",{children:"Business Information"})]}),(0,s.jsx)(ea,{truliooBusinessName:e.truliooBusinessName,truliooVerificationData:e.truliooVerificationData,truliooBusinessFound:e.truliooBusinessFound,truliooManuallyApproved:e.truliooManuallyApproved,truliooOnWatchlist:e.truliooOnWatchlist,truliooVerifiedAt:e.truliooVerifiedAt,hasLegacyBusinessVerification:I})]})}),(0,s.jsx)("div",{className:R().infoSection,children:(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:"100%",gap:"1rem"},children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"1rem"},children:[(0,s.jsx)(U.A,{}),(0,s.jsx)("h5",{children:"Change History"}),(0,s.jsx)(eo,{setNotes:C,createNote:P})]}),(0,s.jsx)(eb,{changeHistory:D,loading:E})]})})]})});var ey=a(3580),eS=a(8588),eN=a.n(eS),ew=a(32417),ek=a.n(ew),eA=a(36332);
1let eC=({sfdp2OnboardingEpoch:e,currentMainnetEpoch:t,logoUrl:a})=>{a=a??"/validators/cube1.svg";let{admin:i}=(0,eA.z)(),n=(0,r.useMemo)(()=>Array.from({length:5}).map((t,a)=>({start:e+45*a,percent:100-25*a})).reverse(),[e]),l=(0,r.useMemo)(()=>Math.min(Math.max(0,(t-e)/180*100),100),[e,t]);return(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:ek().header,children:"Vote credit schedule"}),(0,s.jsx)("div",{className:ek()["schedule-bar"],children:(0,s.jsxs)("div",{className:ek()["bar-track"],children:[n.map(({percent:e})=>e?(0,s.jsx)("div",{className:ek()["bar-fg"],"data-percent":e,style:{maxWidth:`calc(1rem + ${l}%)`}},e):void 0),a&&(0,s.jsx)("div",{className:ek().logo,style:{left:`${l}%`},children:(0,s.jsx)(eN(),{src:a,alt:"Validator logo",fill:!0,sizes:"16px",loading:"eager"})})]})}),(0,s.jsx)("div",{className:(0,ef.A)(ek().labels,!!i&&ek().admin_labels),children:n.map(({start:e,percent:t},a)=>(0,s.jsxs)("div",{className:(0,ef.A)(ek().label,a%2==1&&ek().longer),"data-percent":t,children:[(0,s.jsxs)("div",{children:["Epoch ",e]}),(0,s.jsxs)("div",{children:[t,"%"]})]},e))})]})},eP=n()(()=>Promise.all([a.e(8020),a.e(7012),a.e(5483),a.e(6759)]).then(a.bind(a,26759)).then(e=>e.EditValidatorModal),{loadableGenerated:{webpack:()=>[26759]},ssr:!1}),eE=n()(()=>Promise.all([a.e(8020),a.e(7012),a.e(5483),a.e(6759)]).then(a.bind(a,26759)).then(e=>e.ValidatorEpochModal),{loadableGenerated:{webpack:()=>[26759]},ssr:!1}),eD=n()(()=>a.e(7306).then(a.bind(a,97306)).then(e=>e.ChangeParticipantStateModal),{loadableGenerated:{webpack:()=>[97306]},ssr:!1}),eI=["Create your keys","Apply and pass KYC","Start your Testnet validator","Start voting","Get added to Testnet stake bot","Produce blocks","Earn Bonus stake","Get onboarded to the Delegation Program"],eM=(0,P.A)({xs:8,md:6,lg:"*"}),eT=({textToCopy:e})=>{let[t,a]=(0,r.useState)(!1);return t&&setTimeout(()=>a(!1),4e3),(0,s.jsx)(s.Fragment,{children:t?(0,s.jsx)("span",{title:"Key copied!",className:`${D()["copy-key-button"]} ${D().copied}`,children:"✓"}):(0,s.jsx)(l.CopyToClipboard,{text:e,onCopy:()=>a(!0),children:(0,s.jsx)("button",{className:D()["copy-key-button"],title:"Copy key",children:(0,s.jsx)(d.A,{})})})})},eB=({validatorData:e})=>{if([ey.SfdpParticipantState.Pending,ey.SfdpParticipantState.TestnetOnboarded].includes(e.state))return(0,s.jsx)("div",{children:(0,s.jsx)(eV,{current:e.lastCompletedSignupStep})});let t={[ey.SfdpParticipantState.Approved]:"status_approved",[ey.SfdpParticipantState.Rejected]:"status_rejected",[ey.SfdpParticipantState.Retired]:"status_retired"},a=e.state===ey.SfdpParticipantState.Approved?"Active on MB":e.state;return(0,s.jsx)("div",{className:D()["validator-status"],children:(0,s.jsxs)("div",{children:[(0,s.jsx)("b",{children:"Program status:"}),(0,s.jsx)("div",{className:(0,ef.A)(D()["validator-state-value"],D()[t[e.state]]??"status_default"),children:(0,s.jsx)("span",{children:a})})]})})},eV=({current:e=""})=>{let t=e.split("_"),a=parseInt(t[0]?.replace("a",""),10);return(0,s.jsxs)("div",{className:`${D()["registration-stepper"]}`,children:[(0,s.jsx)("p",{className:"mb-1",children:"Your registration progress"}),(0,s.jsx)("div",{children:eI.map((e,t)=>(0,s.jsx)(o.A,{placement:"top",overlay:(0,s.jsx)(c.A,{id:`tooltip-${t}`,className:D()["registration-tooltip"],children:e}),popperConfig:{modifiers:[{name:"offset",options:{offset:[-15,7]}}]},children:(0,s.jsx)("a",{href:"#",className:`badge ${D()["registration-step"]} ${t+1>a?D()["uncompleted-step"]:""}`,title:e,id:t.toString(),children:t+1})},t))})]})},eR=({pk:e,HeaderComponent:t,handleRefresh:a})=>{let i=(0,p.SO)(),{admin:n}=(0,p.z8)(),l=(0,p.qK)(),[d,o]=(0,r.useState)(null),[c,g]=(0,r.useState)(null),[_,b]=(0,r.useState)(!1),[f,j]=(0,r.useState)(!1),[v,y]=(0,r.useState)(null),[S,N]=(0,r.useState)(null),[w,k]=(0,r.useState)(null),[A,P]=(0,r.useState)(null),[E,I]=(0,r.useState)(!1),[M,T]=(0,r.useState)(!1),[V,R]=(0,r.useState)({}),[$,L]=(0,r.useState)(v?.kycStatus),[q,O]=(0,r.useState)(v?.kycRequiredBy),z=(0,r.useCallback)(async e=>{let t=await (0,u.XI)(e,!!n);t.error?o(t.error.message):(y(t),L(t.kycStatus),O(t.kycRequiredBy),T(!1))},[n]);(0,r.useEffect)(()=>{l&&(T(!0),z(e))},[e,l,n]),(0,r.useEffect)(()=>
1{if(!v)return void R({});let e=!1;return(async()=>{let t=[];Object.keys(v?.$mainnet?.stats?.epochs||{}).length>0&&v?.$mainnet?.pk&&t.push((0,m.A)("/validators/vote-credits",{method:"GET",params:{pk:v.$mainnet.pk}}).then(e=>["mainnet-beta",e]).catch(e=>(console.error(e),["mainnet-beta",[]]))),Object.keys(v?.$testnet?.stats?.epochs||{}).length>0&&v?.$testnet?.pk&&t.push((0,m.A)("/validators/vote-credits",{method:"GET",params:{pk:v.$testnet.pk,cluster:"testnet"}}).then(e=>["testnet",e]).catch(e=>(console.error(e),["testnet",[]])));let a=await Promise.all(t);e||R(Object.fromEntries(a))})(),()=>{e=!0}},[v]),(0,r.useEffect)(()=>{if(!S){k(null),P(null);return}(async()=>{let e,t;I(!0);let a="Error; please try again later",{pk:s,epoch:r,cluster:i,isDelinquent:n}=S;if(n)e=null;else try{e=await (0,m.A)("/validators/details",{method:"GET",params:{pk:s,epoch:r}})}catch{o(a),N(null);return}try{t=await (0,m.A)("/validators/epoch-stats",{method:"GET",params:{cluster:i,epoch:r}})}catch{o(a),N(null),I(!1);return}k(e),P(t),I(!1)})()},[S]);let U=(0,r.useMemo)(()=>{let e=S?.epoch,t=[...S?.epochEntries||[]].map(({epoch:e})=>e).sort((e,t)=>e-t),a=t.findIndex(t=>Number(t)===Number(e)),s=t[a];return{prev:t[a-1],curr:s,next:t[a+1]}},[S]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:(0,ef.A)(D().container,!!n&&D().admin),children:(0,s.jsxs)("section",{className:D()["page-content"],children:[M&&!d&&(0,s.jsx)(h.A,{}),d&&(0,s.jsx)("p",{className:(0,ef.A)("text-danger",D()["pre-line"]),role:"alert",children:d}),c&&(0,s.jsx)("p",{className:(0,ef.A)("text-success",D()["pre-line"]),role:"alert",children:c}),v&&(0,s.jsxs)(s.Fragment,{children:[t?(0,s.jsx)(t,{imageUrl:v.mnImageUrl||v.tnImageUrl,mainnetName:v.mnName,mainnetPubkey:v.$mainnet.pk,testnetPubkey:v.$testnet.pk}):(0,s.jsxs)("div",{className:D()["top-row"],children:[(0,s.jsxs)("div",{className:D()["validator-summary"],children:[(0,s.jsx)("div",{className:D()["validator-logo"],children:(0,s.jsx)(x.A,{size:72,sizeSm:96,sizeMd:120,loading:"eager",imageUrl:v.mnImageUrl||v.tnImageUrl})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:D()["validator-name"],title:v.mnName?"":v.$mainnet.pk,children:v.mnName&&v.mnName?.length?(0,s.jsx)("span",{children:v.mnName.replace(/\n/," ")}):(0,s.jsx)(eM,{validatorKey:v.$mainnet.pk,windowWidth:i,className:D()["validator-key"]})}),(0,s.jsxs)("div",{className:D()["validator-keys"],children:[(0,s.jsx)("span",{className:D()["validator-key-label"],children:"Mainnet:"}),(0,s.jsx)(eM,{validatorKey:v.$mainnet.pk,windowWidth:i,className:D()["validator-key"]}),(0,s.jsx)(eT,{textToCopy:v.$mainnet.pk}),(0,s.jsx)("span",{className:D()["validator-key-label"],children:"Testnet:"}),(0,s.jsx)(eM,{validatorKey:v.$testnet.pk,windowWidth:i,className:D()["validator-key"]}),(0,s.jsx)(eT,{textToCopy:v.$testnet.pk})]})]})]}),(0,s.jsxs)("div",{className:D()["validator-status-container"],children:[(0,s.jsx)(eB,{validatorData:v}),"RE_KYC_REQUIRED"===$&&(0,s.jsx)(B,{kycRequiredBy:q})]})]}),n?(0,s.jsx)(ev,{validatorData:v,kycStatus:$,kycRequiredBy:q,setKycRequiredBy:O,setKycStatus:L,showEditModal:()=>b(!0),showChangeStatusModal:()=>j(!0),setErrorMessage:o,setSuccessMessage:g,onRefresh:()=>{z(e)}}):null,v.sfdp2OnboardingEpoch&&(0,s.jsx)(eC,{sfdp2OnboardingEpoch:v.sfdp2OnboardingEpoch,currentMainnetEpoch:v.$mainnet.currentEpoch,logoUrl:v.mnImageUrl||v.tnImageUrl}),(0,s.jsxs)("div",{className:D()["node-performance"],children:[Object.keys(v?.$mainnet.stats?.epochs).length>0&&V["mainnet-beta"]&&(0,s.jsx)(C,{pk:v.$mainnet.pk,cluster:"mainnet-beta",stats:v.$mainnet.stats,voteCreditsData:V["mainnet-beta"],handleClick:N}),Object.keys(v?.$testnet.stats?.epochs).length>0&&V.testnet&&(0,s.jsx)(C,{pk:v.$testnet.pk,cluster:"testnet",stats:v.$testnet.stats,voteCreditsData:V.testnet,handleClick:N})]})]})]})}),v&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eP,{show:_,validatorData:v,handleClose:()=>b(!1),handleSubmit:e=>{e&&y(t=>({...t,...e})),b(!1)}}),(0,s.jsx)(eE,{show:!!S,validatorEpoch:S,validatorData:v,epochNav:U,isLoading:E,validatorEpochData:w,epochData:A,handleClose:()=>{N(null),k(null),P(null)},handleSetEpoch:e=>{if(S){let t=S.epochEntries.find(t=>t.epoch===e);N({...S,epoch:e,isDelinquent:!!t?.isDelinquent})}}}),(0,s.jsx)(eD,{show:f,validatorData:v,handleClose:()=>j(!1),handleSubmit:e=>{e&&y(t=>({...t,state:e})),j(!1),a?.()}})]})]})}},8379:()=>{},12789:e=>{e.exports={Sfdp2PaymentTable:"Sfdp2PaymentTable_Sfdp2PaymentTable__vcqUY",success:"Sfdp2PaymentTable_success__tuGYI",Sfdp2PaymentTableStake:"Sfdp2PaymentTable_Sfdp2PaymentTableStake__qjOTO"}},32417:e=>{e.exports={header:"ParticipantVoteCostCoverageSchedule_header__VW0aP","schedule-bar":"ParticipantVoteCostCoverageSchedule_schedule-bar__zkiL1","bar-track":"ParticipantVoteCostCoverageSchedule_bar-track__JiDUE","bar-fg":"ParticipantVoteCostCoverageSchedule_bar-fg__taWhA",logo:"ParticipantVoteCostCoverageSchedule_logo__q7yx0",labels:"ParticipantVoteCostCoverageSchedule_labels__P3f5v",admin_labels:"ParticipantVoteCostCoverageSchedule_admin_labels__q1g6c",card:"ParticipantVoteCostCoverageSchedule_card__w5M__",label:"ParticipantVoteCostCoverageSchedule_label__Ammgr"}},32866:e=>{e.exports={container:"SfdpParticipant_container__BitHD",admin:"SfdpParticipant_admin__YgQj_","pre-line":"SfdpParticipant_pre-line__6XcL7","admin-view":"SfdpParticipant_admin-view__w_C4w","return-link":"SfdpParticipant_return-link__uMsi4","page-content":"SfdpParticipant_page-content__74wMK","top-row":"SfdpParticipant_top-row__BoxqU",card:"SfdpParticipant_card__oVxiL","validator-summary":"SfdpParticipant_validator-summary__JkCWC","validator-logo":"SfdpParticipant_validator-logo__xoRf8","validator-name":"SfdpParticipant_validator-name__vSNy9","validator-keys":"SfdpParticipant_validator-keys__lDDRE","validator-key-label":"SfdpParticipant_validator-key-label__sS1hu","validator-key":"SfdpParticipant_validator-key__8yvTS","copy-key-button":"SfdpParticipant_copy-key-button__JOPM0",copied:"SfdpParticipant_copied__gEsgA","validator-status":"SfdpParticipant_validator-status__4tQMK","validator-status-container":"SfdpParticipant_validator-status-container__zrXzG","validator-state-value":"SfdpParticipant_validator-state-value__04URO",status_approved:"SfdpParticipant_status_approved__YeVEe",status_rejected:"SfdpParticipant_status_rejected__kBz2R",status_retired:"SfdpParticipant_status_retired__NjDh5",status_default:"SfdpParticipant_status_default__V2iTi","tds-eligible-epochs":"SfdpParticipant_tds-eligible-epochs__h9zOx","node-performance":"SfdpParticipant_node-performance__sifV_","registration-stepper":"SfdpParticipant_registration-stepper__WNx0l","registration-step":"SfdpParticipant_registration-step__K4_A_","uncompleted-step":"SfdpParticipant_uncompleted-step__lyKRF","registration-tooltip":"SfdpParticipant_registration-tooltip__o66me","tds2-payments-table":"SfdpParticipant_tds2-payments-table__JHO9D",numbers:"SfdpParticipant_numbers__MjxRc","admin-link":"SfdpParticipant_admin-link__nwt20"}},39454:e=>{e.exports={wrapper:"PerformanceCircleGraph_wrapper__VGnhB",value:"PerformanceCircleGraph_value__mEUSp","progress-bar":"PerformanceCircleGraph_progress-bar__t_oag",label:"PerformanceCircleGraph_label__pm9xW"}},56648:(e,t,a)=>{"use strict";a.d(t,{A:()=>
1o});var s=a(6029),r=a(8588),i=a.n(r),n=a(41735),l=a(65966);let d=n.Ay.div.withConfig({componentId:"sc-4a2ed2c7-0"})(["position:relative;width:","px;height:","px;",";",";background:#828282;border-radius:8px;overflow:hidden;img{width:100%;height:100%;}"],({size:e})=>e,({size:e})=>e,({sizeSm:e})=>void 0===e?"":l.X.sm`width: ${e}px; height: ${e}px`,({sizeMd:e})=>void 0===e?"":l.X.md`width: ${e}px; height: ${e}px`),o=({size:e,sizeSm:t,sizeMd:a,loading:r,imageUrl:n})=>{let o=`(min-width: ${l.L.md}px) ${a??t??e}px, (min-width: ${l.L.sm}px) ${t??e}px, ${e}px`;return(0,s.jsx)(d,{size:e,sizeSm:t,sizeMd:a,children:(0,s.jsx)(i(),{src:n||"/validators/cube1.svg",alt:"Validator logo",fill:!0,sizes:o,loading:r})})}},63611:e=>{e.exports={container:"ButtonCollapsible_container__x6wjM","button-collapsible":"ButtonCollapsible_button-collapsible__ymqgb",title:"ButtonCollapsible_title__dMxkb",children:"ButtonCollapsible_children__16ODy",active:"ButtonCollapsible_active__CYlz9"}},69415:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(6029),r=a(2342),i=a(12789),n=a.n(i);a(55729);var l=a(3580),d=a(55105);let o={None:"Not paid due to unmet matching requirements",Baseline:"Not paid due to unmet residual requirements"},c=({issuesMap:e,issues:t})=>{let a=t.filter(t=>!!e[t]).map(t=>e[t]);return 0===a.length?null:(0,s.jsx)("ul",{children:a.map(e=>(0,s.jsx)("li",{className:"error",children:e},e))})},p=({validatorEpochStats:e,epochData:t})=>{let a=[...e.stats.issues],i=o[e.stats.state],p=a.includes(l.BASELINE_ISSUES.HIGH_THIRD_PARTY_STAKE),m=t?.stats?.config?.max_third_party_stake;return t?.stats?.eligibility_requirements_waived?(0,s.jsx)("div",{className:"title","data-testid":"sfdp2-eligibility-waived",children:"Eligibility requirements waived for this Epoch"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:`${n().Sfdp2PaymentTable} ${e.cluster}`,"data-testid":"sfdp2-payment-table",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{children:Math.round(e.stats.desired_target_foundation_stake_from_matching/r.Sr).toLocaleString()}),"Stake from ","testnet"===e.cluster?"Bonus":"Matching","mainnet-beta"===e.cluster&&t?.stats?.config?.match_ratio&&1>Number(t.stats.config.match_ratio)?(0,s.jsxs)("div",{children:["(",Math.round(100*Number(t.stats.config.match_ratio)),"% matching, max"," ",Math.round(Number(t.stats.config.max_stake_from_matching)/r.Sr/1e3),"k)"]}):null,(0,s.jsx)(c,{issuesMap:l.BONUS_ISSUES_MAP,issues:e.stats.issues})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{children:Math.round(e.stats.desired_target_foundation_stake_from_remainder/r.Sr).toLocaleString()}),"Stake from ","testnet"===e.cluster?"Baseline":"Residual",p&&m?(0,s.jsxs)("p",{className:n().success,children:["Nice job! Third party stake greater than ",(0,d.e2)(m)," SOL"]}):null,(0,s.jsx)(c,{issuesMap:l.BASELINE_ISSUES_MAP,issues:a})]}),"mainnet-beta"===e.cluster&&(0,s.jsxs)("div",{children:[(0,s.jsxs)("h3",{children:[100*e.vote_cost_coverage_percent,"%"]}),"Vote cost coverage",i?(0,s.jsx)("ul",{children:(0,s.jsx)("li",{className:"error",children:i})}):null]})]}),(0,s.jsxs)("div",{className:n().Sfdp2PaymentTableStake,children:["Current Foundation Stake/Planned Foundation Stake:",(0,s.jsx)("br",{}),Math.round(e.stats.foundation_stake/r.Sr).toLocaleString(),"/",Math.round((Number(e.stats.desired_target_foundation_stake_from_matching)+Number(e.stats.desired_target_foundation_stake_from_remainder))/r.Sr).toLocaleString()]})]})}},72297:e=>{e.exports={container:"ValidatorNodePerformance_container__XzI7x","show-more":"ValidatorNodePerformance_show-more__OZfSX","show-more--hidden":"ValidatorNodePerformance_show-more--hidden__5Mki5"}},80317:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(6029);a(55729);var r=a(65966),i=a(55105);function n(e){return function({validatorKey:t,windowWidth:a,className:n="key"}){let l="",d="";if(t){let s;s=e.xxl&&a>=r.L.xxl?e.xxl:e.xl&&a>=r.L.xl?e.xl:e.lg&&a>=r.L.lg?e.lg:e.md&&a>=r.L.md?e.md:e.sm&&a>=r.L.sm?e.sm:e.xs&&a>=512?e.xs:e.default||4,(l=(0,i.wM)(t,s)).length-3<t.length&&(d=t)}return(0,s.jsx)("span",{className:n,title:d,children:l})}}},87381:e=>{e.exports={summary:"BusinessInfoSummary_summary__rf3Ju",field:"BusinessInfoSummary_field__ddMGd",label:"BusinessInfoSummary_label__o6XIf",badges:"BusinessInfoSummary_badges__8UTkz"}}
1,92406:(e,t,a)=>{"use strict";a.d(t,{A:()=>x});var s=a(6029);a(55729);var r=a(41735),i=a(63943),n=a(11145),l=a(8939),d=a(4504),o=a(49189),c=a(95795),p=a(3580);let m=r.Ay.div.withConfig({componentId:"sc-541a5325-0"})(["display:flex;align-items:center;justify-content:center;width:","px;height:","px;background-color:var(",");border-radius:","px;padding:4px !important;svg{color:#fff;width:","px !important;min-width:","px !important;height:","px !important;min-height:","px !important;}"],({size:e})=>e,({size:e})=>e,({bgColor:e})=>`--status-icon-${e}`,({size:e})=>e/2,({size:e})=>e/2,({size:e})=>e/2,({size:e})=>e/2,({size:e})=>e/2),u={[c.lB.BASELINE]:{backgroundColor:"orange",icon:(0,s.jsx)(i.A,{color:"white","data-testid":"validator-epoch-status-icon-check"})},[c.lB.BONUS]:{backgroundColor:"green",icon:(0,s.jsx)(n.A,{color:"white",fill:"white","data-testid":"validator-epoch-status-icon-star"})},[c.lB.NONE]:{backgroundColor:"red",icon:(0,s.jsx)(l.A,{color:"white","data-testid":"validator-epoch-status-icon-x"})},[c.lB.NONE_HIGH_THIRD_PARTY_STAKE]:{backgroundColor:"green",icon:(0,s.jsx)(o.A,{color:"white","data-testid":"validator-epoch-status-icon-party-popper"})},[c.lB.DELINQUENT]:{backgroundColor:"rejected",icon:(0,s.jsx)(d.A,{color:"white","data-testid":"validator-epoch-status-icon-delinquent"})}},h={backgroundColor:"black",icon:(0,s.jsx)(l.A,{color:"white","data-testid":"validator-epoch-status-icon-x"})},x=({rewardStatus:e,issues:t,size:a,className:r})=>{let{backgroundColor:i,icon:n}=t?.length===1&&t?.includes(p.BASELINE_ISSUES.HIGH_THIRD_PARTY_STAKE)?u[c.lB.NONE_HIGH_THIRD_PARTY_STAKE]:u[e]||h;return(0,s.jsx)(m,{"data-testid":"validator-epoch-status-icon",bgColor:i,size:a,className:`validator-epoch-status-icon ${r||""}`,children:n})}},95357:(e,t,a)=>{"use strict";function s(e){return Math.floor(e?.config?.min_vote_credit_percent_of_avg_across_5_epochs*.01*e?.avg_vote_credits||e?.min_vote_credits)||void 0}a.d(t,{H:()=>s})}}]);

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.