1import{j as e}from"./vendor-dotlottie-CKWLB76h.js";import{a as i}from"./vendor-react-CCzXVbVA.js";import{g as je,I as Re,u as Le,A as $,c as U,b as ie,O as ce}from"./app-ZGxtfi_0.js";import{aj as Me,aF as Ke,B as l,C as Ne,j as B,f as ae,k as He,F as s,T as o,g as v,L as le,a4 as Ge,V as g,I as k,D as S,M as $e,a as Ue,b as Ve,c as Ye,d as Qe,e as Ze,af as de,Q as qe,S as Je,Y as V,Z as Xe,_ as E,aC as j,N as pe}from"./vendor-chakra-z2eW50qa.js";import{C as et}from"./confirmActionForm-DVkExoKW.js";import{U as tt}from"./upgradePackage-BKHmRgtR.js";import"./vendor-analytics-kxESroPO.js";import"./vendor-victory-2uYGyQN6.js";import"./vendor-query-Cq2FYR_1.js";import"./vendor-monaco-CiJro7ev.js";import"./smallMessageModal-B0XVKEMH.js";const xe=({textToCopy:C,isDisabled:m})=>{const{hasCopied:x,onCopy:Y}=Me(C);return e.jsx(Ke,{label:x?"Copied!":"Copy Address",isDisabled:m,children:e.jsx(l,{ml:2,cursor:m?"not-allowed":"pointer",color:x?"green.500":"gray.500",onClick:m?void 0:Y,transition:"all 0.2s",className:"copy-button",opacity:m?.5:1,_hover:m?{}:{color:x?"green.600":"blue.500"},children:x?e.jsx(l,{height:"20px",children:e.jsx(Ne,{fontSize:"lg"})}):e.jsx(B,{src:je()+"icons/copy_key.svg"})})})},he={project:!0,block:!0,file:!0,read:!0},ue={generate:!0},ge={url:!0};function yt(){const{data:C,isLoading:m}=Re(!0),[x,Y]=i.useState(!0),[Q,Z]=i.useState([]),[A,f]=i.useState(!1),[ot,me]=i.useState({}),[st,rt]=i.useState(null),[nt,fe]=i.useState(null),[q,J]=i.useState(null),{isOpen:be,onClose:X,onOpen:Ce}=ae(),{isOpen:ye,onClose:ke,onOpen:Se}=ae(),[D,z]=i.useState(""),[d,I]=i.useState(he),[h,T]=i.useState(ue),[w,O]=i.useState(ge),[W,we]=i.useState(!0),[P,Fe]=i.useState(!0),[it,ct]=i.useState(!0),[a,b]=i.useState("90"),[at,lt]=i.useState(""),[R,L]=i.useState(""),ve=Le(),M=je(ve),F=He(),[K,ee]=i.useState(!0),[p,te]=i.useState(null);i.useEffect(()=>{C&&(f(!0),N()),C&&C.logged_in_via==="normal_login"?ee(!0):ee(!1)},[C]);const N=async()=>{f(!0);try{const{data:t}=await $.get(U.API_TOKEN_LIST);if(t&&t.tokens){const r=t.tokens.map(u=>({...u,is_expired:u.expires_at?new Date(u.expires_at)<new Date:!1}));Z(r)}}catch(t){console.error("Error fetching tokens:",t)}f(!1)},oe=()=>{se(),Se()},se=()=>{z(""),I(he),T(ue),O(ge),b("90"),L(""),te(null)},H=()=>{se(),ke()},Ee=()=>{p?.access_token&&(navigator.clipboard.writeText(p.access_token),F({title:"Access key copied",status:"success",duration:1500,isClosable:!0,position:"bottom"}))},_e=()=>{p?.refresh_token&&(navigator.clipboard.writeText(p.refresh_token),F({title:"Refresh token copied",status:"success",duration:1500,isClosable:!0,position:"bottom"}))},Be=async()=>{f(!0);const t=[...Object.keys(d).filter(c=>d[c]).map(c=>`scans:${c}`),...Object.keys(h).filter(c=>h[c]).map(c=>`reports:${c}`),...Object.keys(w).filter(c=>w[c]).map(c=>`presigned:${c}`)];let r=null;if(a==="7")r=168;else if(a==="30")r=720;else if(a==="60")r=1440;else if(a==="90")r=2160;else if(a==="custom"&&R){const c=new Date(R).getTime(),n=Date.now();r=Math.ceil((c-n)/(1e3*60*60))}let u={name:D,scopes:t};r&&(u.expires_in_hours=r);try{const{data:c}=await $.post(U.API_GENERATE_KEY_NEW,u),n=c?.token;await N(),n?.token_id&&(te(n),fe(n.token_id),me(y=>({...y,[n.token_id]:!0})),Z(y=>{const G=y.findIndex(Pe=>Pe.token_id===n.token_id),re={token_id:n.token_id,name:n.name,scopes:n.scopes,is_active:!0,expires_at:n.expires_at,last_used_at:null,created_at:n.created_at,api_key:n.access_token,is_expired:n.expires_at?new Date(n.expires_at)<new Date:!1};if(G===-1)return[...y,re];const ne=[...y];return ne[G]={...y[G],...re},ne})),z(""),b("90"),L("")}catch(c){console.error("Error generating key:",c),F({title:"Error generating key",status:"error",duration:3e3,isClosable:!0,position:"bottom"})}f(!1)},_=t=>{I(r=>({...r,[t]:!r[t]}))},Ae=t=>{T(r=>({...r,[t]:!r[t]}))},De=t=>{O(r=>({...r,[t]:!r[t]}))},ze=()=>{const t=Object.values(d).every(r=>r);I({project:!t,block:!t,file:!t,read:!t}),O({url:!t})},Ie=()=>{const t=Object.values(h).every(r=>r);T({generate:!t})},Te=async t=>{J(t),Ce()},Oe=async()=>{if(f(!0),q)try{await $.delete(`${U.API_REVOKE_TOKEN_NEW}${q}/`),await N(),J(null),F({title:"Token deleted successfully",status:"success",duration:2e3,isClosable:!0,position:"bottom"})}catch(t){console.error("Error deleting token:",t),F({title:"Error deleting token",status:"error",duration:3e3,isClosable:!0,position:"bottom"})}f(!1),X()},We=t=>{if(!t)return"Never expires";const r=new Date(t),u=new Date,c=r.getTime()-u.getTime(),n=Math.ceil(c/(1e3*60*60*24));return n<0?"Expired":n===0?"Expires today":n===1?"This access key will expire in 1 day":`This access key will expire in ${n} days`};return e.jsxs(l,{sx:{w:["100%","100%","calc(100% - 2rem)"],h:"100%",bg:"bg.subtle",borderRadius:"20px",pt:4,pb:1,px:[4,6,8,8],mx:[0,0,4],mb:4,minH:"85vh"},children:[e.jsxs(s,{align:"center",justify:"space-between",w:"100%",mb:6,children:[e.jsx(o,{sx:{color:"subtle",fontWeight:600},children:"Personal Access API"}),e.jsx(v,{id:"ss-generate-key",onClick:oe,variant:"brand",borderWidth:"1px",fontWeight:500,px:10,py:2,isDisabled:!x||!K,children:"Create New Key"})]}),m?e.jsx(s,{sx:{w:"100%",mx:[0,0,0,4],my:24,justifyContent:"center"},children:e.jsx(ie,{})}
1):e.jsxs(s,{bgColor:["bg.subtle","bg.subtle","bg.subtle","white"],w:"100%",minH:["fit-content","fit-content","calc(100vh - 220px)"],h:["fit-content","fit-content","100%"],borderRadius:"5px",my:6,pb:6,flexDir:"column",children:[e.jsxs(s,{background:"#FAFBFC",boxShadow:"0px 2px 2px rgba(0, 0, 0, 0.06)",borderRadius:"15px",align:"center",justifyContent:"center",flexDir:["column","column","column","row"],p:[4,4,4,5],mx:[4,4,4,6],mb:6,mt:6,children:[e.jsx(B,{src:M+"common/api_key.svg"}),e.jsxs(s,{flexDir:"column",ml:[0,0,0,6],textColor:"text",my:[3,3,3,0],textAlign:["center","center","center","left"],children:[e.jsx(o,{fontWeight:600,children:"Know more about the Private API Key access"}),e.jsx(o,{fontWeight:400,color:"subtle",children:"Click to know how to use this private API access feature and supported documentation"})]}),e.jsxs(le,{id:"ss-api-learn",href:"https://apidoc.solidityscan.com/solidityscan-security-api/getting-started/apis/solidityscan-private-api",ml:[0,0,0,"auto"],color:"accent",target:"_blank",px:6,py:2,background:"#F1F1F1",borderRadius:9,_hover:{textDecoration:"none"},children:["Learn More",e.jsx(Ge,{ml:2})]})]}),e.jsx(s,{mx:[0,0,0,6],mb:6,pt:8,pb:6,borderRadius:"15px",flexDir:"column",gap:4,children:A?e.jsx(s,{sx:{w:"100%",minH:"30vh",justifyContent:"center",alignItems:"center"},children:e.jsx(ie,{})}):Q.length>0?e.jsx(g,{spacing:4,align:"stretch",children:Q.map(t=>e.jsxs(l,{bg:"#FCFCFC",border:"1px solid #EAEAEA",borderRadius:"15px",p:6,children:[e.jsx(s,{align:"center",justify:"space-between",mb:4,children:e.jsxs(s,{align:"center",gap:3,children:[e.jsx(o,{fontWeight:600,fontSize:"lg",color:"#323B4B",children:t.name}),t.is_expired?e.jsxs(s,{align:"center",gap:1,children:[e.jsx(B,{src:M+"icons/expire_key.svg",w:"13px",h:"13px",filter:"invert(35%) sepia(96%) saturate(2423%) hue-rotate(347deg) brightness(101%) contrast(105%)"}),e.jsx(o,{color:"#FF5630",fontSize:"sm",fontWeight:600,children:"Key Expired"})]}):e.jsxs(s,{align:"center",gap:1,children:[e.jsx(k,{viewBox:"0 0 13 9",w:"13px",h:"9px",children:e.jsx("path",{d:"M1 4.5L4.5 8L12 1",stroke:"#28a745",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})}),e.jsx(o,{color:"#28a745",fontSize:"sm",children:"Active"})]})]})}),e.jsx(S,{borderColor:"#EAEAEA",mb:4}),e.jsxs(s,{align:"center",justify:"space-between",flexDir:["column","column","row"],gap:4,children:[e.jsx(o,{fontSize:"sm",color:"#323B4B",children:We(t.expires_at)}),e.jsxs(s,{align:"center",gap:4,ml:["0","0","auto"],children:[e.jsxs(o,{color:"#4E5D78",fontSize:"sm",children:["Created on ",ce(new Date(t.created_at))]}),e.jsx(v,{id:`ss-delete-key-${t.token_id}`,onClick:()=>Te(t.token_id),variant:"error-outline",isDisabled:!K,size:"sm",px:6,children:"Delete Key"})]})]})]},t.token_id))}):e.jsxs(s,{position:"relative",w:"100%",minH:"30vh",align:"center",justify:"center",children:[e.jsxs(g,{w:"100%",spacing:4,mb:[6,6,6,0],top:0,left:0,opacity:x?1:.5,position:"relative",children:[e.jsx(B,{src:M+"background/private_api_cover.svg",h:"150px",mb:2}),e.jsx(o,{fontWeight:400,textAlign:"center",children:"No access key has been created yet, Click generate key to create new key"}),e.jsx(le,{id:"ss-generate-api-key",display:x&&K?"block":"none",onClick:oe,fontWeight:400,color:"blue",children:"Create New Key"})]}),!x&&e.jsx(tt,{text:e.jsxs(e.Fragment,{children:["Upgrade to our",e.jsx("strong",{children:" Pro "}),"plan or an",e.jsx("strong",{children:" Enterprise "}),"plan to use this feature and much more"]}),iconSize:85})]})})]}),e.jsxs($e,{isOpen:ye,onClose:H,size:"xl",children:[e.jsx(Ue,{}),e.jsxs(Ve,{borderRadius:"15px",maxW:"712px",children:[e.jsx(Ye,{fontSize:"lg",fontWeight:600,textAlign:"center",borderBottom:"1px solid #ECECEC",py:4,children:p?"API Key Generated":"Create New API Key"}),e.jsx(Qe,{color:"#B0B7C3",onClick:H}),e.jsx(Ze,{px:8,py:6,children:p?e.jsxs(g,{spacing:6,align:"stretch",children:[e.jsxs(l,{children:[e.jsx(o,{fontWeight:600,mb:2,color:"#323B4B",children:"Access Token"}),e.jsxs(l,{bg:"#F7F8FB",border:"1px solid #E5E7EB",borderRadius:"15px",p:6,children:[e.jsx(o,{color:"#4B5563",fontSize:"sm",fontFamily:"monospace",lineHeight:"1.8",wordBreak:"break-word",mb:4,maxH:"50px",overflow:"scroll",children:p.access_token}),e.jsx(S,{borderColor:"#E5E7EB"}),e.jsxs(s,{align:"center",justify:"space-between",mt:4,gap:3,flexDir:["column","column","row"],children:[e.jsxs(s,{align:"center",gap:2,color:"#4F46E5",fontWeight:600,cursor:"pointer",onClick:Ee,minH:"40px",children:[e.jsx(o,{fontSize:"sm",children:"Click here to copy the access code"}),e.jsx(xe,{textToCopy:p.access_token})]}),e.jsxs(o,{color:"#4B5563",fontSize:"sm",children:["created on"," ",ce(new Date(p.created_at))]})]})]})]}),p.refresh_token&&e.jsxs(l,{children:[e.jsx(o,{fontWeight:600,mb:2,color:"#323B4B",children:"Refresh Token"}),e.jsxs(l,{bg:"#F7F8FB",border:"1px solid #E5E7EB",borderRadius:"15p
1x",p:6,children:[e.jsx(o,{color:"#4B5563",fontSize:"sm",fontFamily:"monospace",lineHeight:"1.8",wordBreak:"break-word",mb:4,maxH:"50px",overflow:"scroll",children:p.refresh_token}),e.jsx(S,{borderColor:"#E5E7EB"}),e.jsx(s,{align:"center",justify:"space-between",mt:4,gap:3,flexDir:["column","column","row"],children:e.jsxs(s,{align:"center",gap:2,color:"#4F46E5",fontWeight:600,cursor:"pointer",onClick:_e,minH:"40px",children:[e.jsx(o,{fontSize:"sm",children:"Click here to copy the refresh token"}),e.jsx(xe,{textToCopy:p.refresh_token})]})})]})]}),e.jsx(l,{border:"1px solid #FFC661",bgColor:"#FFF8ED",p:6,borderRadius:"15px",children:e.jsx(o,{color:"#4B5563",fontWeight:400,children:"Make sure to copy your personal access token in a secure place now, next time you visit they will be hidden"})}),e.jsx(s,{justify:"center",pt:2,pb:2,children:e.jsx(v,{onClick:H,bgGradient:"linear(to-r, #52FF00, #00EEFD)",color:"black",fontWeight:600,fontSize:"md",borderRadius:"15px",px:14,py:6,boxShadow:"0px 4px 23px rgba(47, 248, 107, 0.45)",_hover:{bgGradient:"linear(to-r, #52FF00, #00EEFD)",opacity:.9},children:"Close"})})]}):e.jsxs(g,{spacing:6,align:"stretch",children:[e.jsxs(l,{children:[e.jsx(o,{fontSize:"sm",fontWeight:500,mb:2,children:"API Key Name"}),e.jsx(de,{placeholder:"Add API Key name here",value:D,onChange:t=>z(t.target.value),bg:"#FAFCFD",border:"1px solid #ECECEC",borderRadius:"15px",_placeholder:{color:"#B0B7C3"},_focus:{borderColor:"#9687FF",boxShadow:"none"},py:6})]}),e.jsxs(s,{align:"center",justify:"space-between",gap:3,children:[e.jsx(o,{flexGrow:1,children:"Select your Scope"}),a==="custom"&&e.jsx(de,{type:"date",value:R,onChange:t=>L(t.target.value),min:new Date(Date.now()+864e5).toISOString().split("T")[0],max:new Date(Date.now()+2160*60*60*1e3).toISOString().split("T")[0],bg:"#FAFCFD",border:"1px solid #D9DBDB",borderRadius:"6px",color:"#323B4B",fontSize:"sm",h:"39px",flex:"1",_focus:{borderColor:"#3182CE",boxShadow:"0 0 0 1px #3182CE"},sx:{"::-webkit-calendar-picker-indicator":{cursor:"pointer"}}}),e.jsx(l,{flex:a==="custom"?"0 0 186px":"0 0 auto",children:e.jsxs(qe,{children:[e.jsx(Je,{as:v,rightIcon:e.jsx(V,{}),bg:"#FAFCFD",border:"1px solid #D9DBDB",borderRadius:"6px",color:"#323B4B",fontSize:"sm",fontWeight:400,w:"186px",textAlign:"left",h:"39px",_hover:{bg:"#FAFCFD"},_active:{bg:"#FAFCFD"},children:e.jsx(s,{align:"center",gap:2,children:e.jsxs(o,{children:[a==="7"&&"7 Days",a==="30"&&"30 Days",a==="60"&&"60 Days",a==="90"&&"90 Days",a==="custom"&&"Custom"]})})}),e.jsxs(Xe,{minW:"186px",py:2,border:"unset",borderRadius:"8px",boxShadow:"0px 4px 35px 0px #00000026",children:[e.jsx(E,{onClick:()=>b("7"),py:3,px:4,fontSize:"sm",color:"#323B4B",_hover:{bg:"#F7FAFC"},children:e.jsxs(s,{align:"center",justify:"space-between",w:"100%",children:[e.jsx(o,{children:"7 Days"}),a==="7"&&e.jsx(k,{color:"#48BB78",fontSize:"20px",children:e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",children:e.jsx("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})}),e.jsx(E,{onClick:()=>b("30"),py:3,px:4,fontSize:"sm",color:"#323B4B",_hover:{bg:"#F7FAFC"},children:e.jsxs(s,{align:"center",justify:"space-between",w:"100%",children:[e.jsx(o,{children:"30 Days"}),a==="30"&&e.jsx(k,{color:"#48BB78",fontSize:"20px",children:e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",children:e.jsx("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})}),e.jsx(E,{onClick:()=>b("60"),py:3,px:4,fontSize:"sm",color:"#323B4B",_hover:{bg:"#F7FAFC"},children:e.jsxs(s,{align:"center",justify:"space-between",w:"100%",children:[e.jsx(o,{children:"60 Days"}),a==="60"&&e.jsx(k,{color:"#48BB78",fontSize:"20px",children:e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",children:e.jsx("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})}),e.jsx(E,{onClick:()=>b("90"),py:3,px:4,fontSize:"sm",color:"#323B4B",_hover:{bg:"#F7FAFC"},children:e.jsxs(s,{align:"center",justify:"space-between",w:"100%",children:[e.jsx(o,{children:"90 Days"}),a==="90"&&e.jsx(k,{color:"#48BB78",fontSize:"20px",children:e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",children:e.jsx("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})}),e.jsx(E,{onClick:()=>b("custom"),py:3,px:4,fontSize:"sm",color:"#323B4B",_hover:{bg:"#F7FAFC"},children:e.jsxs(s,{align:"center",justify:"space-between",w:"100%",children:[e.jsx(o,{children:"Custom"}),a==="custom"&&e.jsx(k,{color:"#48BB78",fontSize:"20px",children:e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",children:e.jsx("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})})]})]})})]}),e.jsx(S,{borderColor:"#ECECEC"}),e.jsxs(g,{spacing:4,align:"stretch",children:[e.jsxs(l,{children:[e.jsxs(s,{align:"center",justify:"space-between",cursor:"pointer",onClick:()=>we(!W),children:[e.jsx(j,{isChecked:Object.values(d).every(t=>t),isIndeterminate:Object.values(d).some(t=>t)&&!Object.values(d).every(t=>t),onChange:t=>{t.stopPropagation(),ze()},colorScheme:"purple",borderColor:"gray.500",iconColor:"white",size:"md",children:e.jsx(o,{fontWeight:500,fontSize:"sm",children:"Scans"})}),e.jsx(V,{fontSize:"24px",color:"#7C8DB0",transform:W?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"})]}),e.jsx(pe,{in:W,animateOpacity:!0,children:e.jsxs(g,{spacing:4,align:"stretch",pt:4,pl:4,children:[e.jsx(j,{isChecked:d.project,onChange:()=>_("project"),colorScheme:"purple",borderColor:"gray.500",iconColor:"white",size:"md",children:e.jsxs(s,{align:"center",gap:2,children:[e.jsx(o,{fontWeight:500,fontSize:"sm",children:"scans:project"}),e.jsx(o,{color:"#8A94A6",fontSize:"sm",children:"Permission to initiate project scans"})]})}),e.jsx(j,{isChecked:d.block,onChange:()=>_("block"),colorScheme:"purple",borderColor:"gray.500",iconColor:"white",size:"md",children:e.jsxs(s,{align:"center",gap:2,children:[e.jsx(o,{fontWeight:500,fontSize:"sm",children:"scans:block"}),e.jsx(o,{color:"#8A94A6",fontSize:"sm",children:"Permission to initiate block scans"})]})}),e.jsx(j,{isChecked:d.file,onChange:()=>_("file"),colorScheme:"purple",borderColor:"gray.500",iconColor:"white",size:"md",children:e.jsxs(s,{align:"center",gap:2,children:[e.jsx(o,{fontWeight:500,fontSize:"sm",children:"scans:file"}),e.jsx(o,{color:"#8A94A6",fontSize:"sm",children:"Permission to initiate file scans"})]})}),e.jsx(j,{isChecked:d.read,onChange:()=>_("read"),colorScheme:"purple",borderColor:"gray.500",iconColor:"white",size:"md",children:e.jsxs(s,{align:"center",gap:2,children:[e.jsx(o,{fontWeight:500,fontSize:"sm",children:"scans:read"}),e.jsx(o,{color:"#8A94A6",fontSize:"sm",children:"Permission to read scan results"})]})}),e.jsx(j,{isChecked:w.url,onChange:()=>De("url"),colorScheme:"purple",borderColor:"gray.500",iconColor:"white",size:"md",children:e.jsxs(s,{align:"center",gap:2,children:[e.jsx(o,{fontWeight:500,fontSize:"sm",children:"presigned:url"}),e.jsx(o,{color:"#8A94A6",fontSize:"sm",children:"Permission to generate presigned url"})]})})]})})]}),e.jsx(S,{borderColor:"#ECECEC"}),e.jsxs(l,{children:[e.jsxs(s,{align:"center",justify:"space-between",cursor:"pointer",onClick:()=>Fe(!P),children:[e.jsx(j,{isChecked:Object.values(h).every(t=>t),isIndeterminate:Object.values(h).some(t=>t)&&!Object.values(h).every(t=>t),onChange:t=>{t.stopPropagation(),Ie()},colorScheme:"purple",borderColor:"gray.500",iconColor:"white",size:"md",children:e.jsx(o,{fontWeight:500,fontSize:"sm",children:"Reports"})}),e.jsx(V,{fontSize:"24px",color:"#7C8DB0",transform:P?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"})]}),e.jsx(pe,{in:P,animateOpacity:!0,children:e.jsx(g,{spacing:4,align:"stretch",pt:4,pl:4,children:e.jsx(j,{isChecked:h.generate,onChange:()=>Ae("generate"),colorScheme:"purple",borderColor:"gray.500",iconColor:"white",size:"md",children:e.jsxs(s,{align:"center",gap:2,children:[e.jsx(o,{fontWeight:500,fontSize:"sm",children:"reports:generate"}),e.jsx(o,{color:"#8A94A6",fontSize:"sm",children:"Permission to generate scan reports"})]})})})})]})]}),e.jsx(S,{borderColor:"#ECECEC"}),!Object.values(d).some(t=>t)&&!Object.values(w).some(t=>t)&&!Object.values(h).some(t=>t)&&e.jsx(l,{bg:"#FEF2F2",border:"1px solid #FCA5A5",borderRadius:"8px",p:3,children:e.jsx(o,{color:"#DC2626",fontSize:"sm",fontWeight:500,children:"Please select at least one scope to generate an API key."})}),e.jsx(s,{justify:"center",pt:2,pb:4,children:e.jsx(v,{onClick:Be,isDisabled:!D.trim()||A||!Object.values(d).some(t=>t)&&!Object.values(w).some(t=>t)&&!Object.values(h).some(t=>t),isLoading:A,bgGradient:"linear(to-r, #52FF00, #00EEFD)",color:"black",fontWeight:500,fontSize:"md",borderRadius:"15p
1x",px:10,py:6,boxShadow:"0px 4px 23px rgba(47, 248, 107, 0.45)",_hover:{bgGradient:"linear(to-r, #52FF00, #00EEFD)",opacity:.9},_disabled:{opacity:.5,cursor:"not-allowed"},children:"Generate Key"})})]})})]})]}),e.jsx(et,{isOpen:be,onClose:X,onActionConfirm:Oe,confirmBtnText:"Delete",modalHeader:"Delete Key",modelText:e.jsxs(g,{children:[e.jsx(o,{my:4,w:["100%"],fontSize:"lg",fontWeight:600,children:"Are you sure you want to delete this token?"}),e.jsx(o,{color:"detail",fontWeight:400,children:"This action will revoke access to all APIs integrated with this key. Please ensure that you have updated any applications or services that use this key before proceeding."})]})})]})}export{yt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.