hackagent-webui 0.5.4.dev40__py3-none-any.whl → 0.5.7.dev44__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hackagent_webui/__init__.py +1 -1
- hackagent_webui/static/404.html +1 -1
- hackagent_webui/static/VERSION +1 -1
- hackagent_webui/static/_next/static/chunks/{959-f7b708ac280ce10a.js → 130-ea2c854c99cceb32.js} +1 -1
- hackagent_webui/static/_next/static/chunks/326-0c5769668b6b2c5a.js +1 -0
- hackagent_webui/static/_next/static/chunks/511-cf97bbb465e76476.js +1 -0
- hackagent_webui/static/_next/static/chunks/921-92a9ab4120f81d51.js +1 -0
- hackagent_webui/static/_next/static/chunks/app/attacks/builder/page-0a243577272698a7.js +1 -0
- hackagent_webui/static/_next/static/chunks/app/attacks/page-5eba14258edcb542.js +1 -0
- hackagent_webui/static/_next/static/chunks/app/layout-7c1fdd2e3cdffab4.js +1 -0
- hackagent_webui/static/_next/static/chunks/app/page-44982fec817d0e96.js +1 -0
- hackagent_webui/static/_next/static/chunks/app/stats/{page-3d8df1bcc06245db.js → page-3d22606b7f9ba4b8.js} +1 -1
- hackagent_webui/static/agents.html +1 -1
- hackagent_webui/static/agents.txt +3 -3
- hackagent_webui/static/api-keys.html +1 -1
- hackagent_webui/static/api-keys.txt +3 -3
- hackagent_webui/static/attacks/builder.html +1 -1
- hackagent_webui/static/attacks/builder.txt +4 -4
- hackagent_webui/static/attacks.html +1 -1
- hackagent_webui/static/attacks.txt +4 -4
- hackagent_webui/static/index.html +1 -1
- hackagent_webui/static/index.txt +4 -4
- hackagent_webui/static/profile.html +1 -1
- hackagent_webui/static/profile.txt +4 -4
- hackagent_webui/static/reports.html +1 -1
- hackagent_webui/static/reports.txt +3 -3
- hackagent_webui/static/stats.html +1 -1
- hackagent_webui/static/stats.txt +4 -4
- {hackagent_webui-0.5.4.dev40.dist-info → hackagent_webui-0.5.7.dev44.dist-info}/METADATA +1 -1
- {hackagent_webui-0.5.4.dev40.dist-info → hackagent_webui-0.5.7.dev44.dist-info}/RECORD +33 -33
- hackagent_webui/static/_next/static/chunks/326-a9081b3f86c9dd18.js +0 -1
- hackagent_webui/static/_next/static/chunks/511-dd81e821519476da.js +0 -1
- hackagent_webui/static/_next/static/chunks/921-18103c2d5cd6c671.js +0 -1
- hackagent_webui/static/_next/static/chunks/app/attacks/builder/page-4401ce40343e7239.js +0 -1
- hackagent_webui/static/_next/static/chunks/app/attacks/page-e34de8a5ee4cf257.js +0 -1
- hackagent_webui/static/_next/static/chunks/app/layout-4f66546247356e83.js +0 -1
- hackagent_webui/static/_next/static/chunks/app/page-65cb30228b8a1502.js +0 -1
- /hackagent_webui/static/_next/static/{GDxwpqq8ntlTxnBwUZHO- → HIoXscjHtxVCsDuJEjr4J}/_buildManifest.js +0 -0
- /hackagent_webui/static/_next/static/{GDxwpqq8ntlTxnBwUZHO- → HIoXscjHtxVCsDuJEjr4J}/_ssgManifest.js +0 -0
- {hackagent_webui-0.5.4.dev40.dist-info → hackagent_webui-0.5.7.dev44.dist-info}/WHEEL +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[266],{11186:(e,t,s)=>{"use strict";s.d(t,{bq:()=>u,eb:()=>m,gC:()=>x,l6:()=>o,yv:()=>c});var a=s(95155);s(12115);var n=s(59929),l=s(24033),r=s(5917),i=s(12108),d=s(64269);function o(e){let{...t}=e;return(0,a.jsx)(n.bL,{"data-slot":"select",...t})}function c(e){let{...t}=e;return(0,a.jsx)(n.WT,{"data-slot":"select-value",...t})}function u(e){let{className:t,size:s="default",children:r,...i}=e;return(0,a.jsxs)(n.l9,{"data-slot":"select-trigger","data-size":s,className:(0,d.cn)("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...i,children:[r,(0,a.jsx)(n.In,{asChild:!0,children:(0,a.jsx)(l.A,{className:"size-4 opacity-50"})})]})}function x(e){let{className:t,children:s,position:l="popper",...r}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsxs)(n.UC,{"data-slot":"select-content",className:(0,d.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:l,...r,children:[(0,a.jsx)(h,{}),(0,a.jsx)(n.LM,{className:(0,d.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:s}),(0,a.jsx)(p,{})]})})}function m(e){let{className:t,children:s,...l}=e;return(0,a.jsxs)(n.q7,{"data-slot":"select-item",className:(0,d.cn)("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...l,children:[(0,a.jsx)("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,a.jsx)(n.VF,{children:(0,a.jsx)(r.A,{className:"size-4"})})}),(0,a.jsx)(n.p4,{children:s})]})}function h(e){let{className:t,...s}=e;return(0,a.jsx)(n.PP,{"data-slot":"select-scroll-up-button",className:(0,d.cn)("flex cursor-default items-center justify-center py-1",t),...s,children:(0,a.jsx)(i.A,{className:"size-4"})})}function p(e){let{className:t,...s}=e;return(0,a.jsx)(n.wn,{"data-slot":"select-scroll-down-button",className:(0,d.cn)("flex cursor-default items-center justify-center py-1",t),...s,children:(0,a.jsx)(l.A,{className:"size-4"})})}},34105:(e,t,s)=>{"use strict";s.d(t,{c:()=>a});let a=(0,s(12115).createContext)(void 0)},46767:(e,t,s)=>{"use strict";s.d(t,{Bc:()=>r,ZI:()=>o,k$:()=>d,m_:()=>i});var a=s(95155);s(12115);var n=s(53583),l=s(64269);function r(e){let{delayDuration:t=0,...s}=e;return(0,a.jsx)(n.Kq,{"data-slot":"tooltip-provider",delayDuration:t,...s})}function i(e){let{...t}=e;return(0,a.jsx)(r,{children:(0,a.jsx)(n.bL,{"data-slot":"tooltip",...t})})}function d(e){let{...t}=e;return(0,a.jsx)(n.l9,{"data-slot":"tooltip-trigger",...t})}function o(e){let{className:t,sideOffset:s=0,children:r,...i}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsxs)(n.UC,{"data-slot":"tooltip-content",sideOffset:s,className:(0,l.cn)("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t),...i,children:[r,(0,a.jsx)(n.i3,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}},49819:(e,t,s)=>{Promise.resolve().then(s.bind(s,60232))},51834:(e,t,s)=>{"use strict";s.d(t,{Cf:()=>u,Es:()=>m,HM:()=>o,L3:()=>h,c7:()=>x,lG:()=>i,rr:()=>p});var a=s(95155);s(12115);var n=s(88292),l=s(65229),r=s(64269);function i(e){let{...t}=e;return(0,a.jsx)(n.bL,{"data-slot":"dialog",...t})}function d(e){let{...t}=e;return(0,a.jsx)(n.ZL,{"data-slot":"dialog-portal",...t})}function o(e){let{...t}=e;return(0,a.jsx)(n.bm,{"data-slot":"dialog-close",...t})}function c(e){let{className:t,...s}=e;return(0,a.jsx)(n.hJ,{"data-slot":"dialog-overlay",className:(0,r.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...s})}function u(e){let{className:t,children:s,...i}=e;return(0,a.jsxs)(d,{"data-slot":"dialog-portal",children:[(0,a.jsx)(c,{}),(0,a.jsxs)(n.UC,{"data-slot":"dialog-content",className:(0,r.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...i,children:[s,(0,a.jsxs)(n.bm,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,a.jsx)(l.A,{}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function x(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"dialog-header",className:(0,r.cn)("flex flex-col gap-2 text-center sm:text-left",t),...s})}function m(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"dialog-footer",className:(0,r.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...s})}function h(e){let{className:t,...s}=e;return(0,a.jsx)(n.hE,{"data-slot":"dialog-title",className:(0,r.cn)("text-lg leading-none font-semibold",t),...s})}function p(e){let{className:t,...s}=e;return(0,a.jsx)(n.VY,{"data-slot":"dialog-description",className:(0,r.cn)("text-muted-foreground text-sm",t),...s})}},60232:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>em});var a=s(95155),n=s(12115),l=s(18332),r=s(50803),i=s(66955),d=s(65229),o=s(26989),c=s(35299),u=s(50906),x=s(3998),m=s(17983),h=s(7831),p=s(41444),g=s(80230),f=s(74054),j=s(5917),v=s(64269),N=s(41808),b=s(86651);function w(e){let{className:t,...s}=e;return(0,a.jsx)(N.uB,{"data-slot":"command",className:(0,v.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...s})}function y(e){let{className:t,...s}=e;return(0,a.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,a.jsx)(b.A,{className:"size-4 shrink-0 opacity-50"}),(0,a.jsx)(N.uB.Input,{"data-slot":"command-input",className:(0,v.cn)("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),...s})]})}function k(e){let{className:t,...s}=e;return(0,a.jsx)(N.uB.List,{"data-slot":"command-list",className:(0,v.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...s})}function S(e){let{...t}=e;return(0,a.jsx)(N.uB.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t})}function C(e){let{className:t,...s}=e;return(0,a.jsx)(N.uB.Group,{"data-slot":"command-group",className:(0,v.cn)("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...s})}function A(e){let{className:t,...s}=e;return(0,a.jsx)(N.uB.Item,{"data-slot":"command-item",className:(0,v.cn)("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...s})}s(51834);var z=s(90067);function _(e){let{...t}=e;return(0,a.jsx)(z.bL,{"data-slot":"popover",...t})}function R(e){let{...t}=e;return(0,a.jsx)(z.l9,{"data-slot":"popover-trigger",...t})}function D(e){let{className:t,align:s="center",sideOffset:n=4,...l}=e;return(0,a.jsx)(z.ZL,{children:(0,a.jsx)(z.UC,{"data-slot":"popover-content",align:s,sideOffset:n,className:(0,v.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),...l})})}var F=s(46767);function M(e){let{options:t,value:s,onChange:l,triggerPlaceholder:r="Select an option...",searchPlaceholder:i="Search...",emptyStateMessage:d="No option found.",className:o}=e,[c,u]=n.useState(!1),m=t.find(e=>e.value===s);return(0,a.jsxs)(_,{open:c,onOpenChange:u,children:[(0,a.jsx)(F.Bc,{children:(0,a.jsxs)(F.m_,{children:[(0,a.jsx)(F.k$,{asChild:!0,children:(0,a.jsx)(R,{asChild:!0,children:(0,a.jsxs)(x.$,{variant:"outline",role:"combobox","aria-expanded":c,className:(0,v.cn)("w-[200px] justify-between overflow-hidden",o),children:[m?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;return e.length<=t?e:"".concat(e.substring(0,t),"...")}(m.label):r,(0,a.jsx)(f.A,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})})}),m&&(0,a.jsx)(F.ZI,{children:(0,a.jsx)("p",{children:m.label})})]})}),(0,a.jsx)(D,{className:(0,v.cn)("w-[200px] p-0",o),children:(0,a.jsxs)(w,{children:[(0,a.jsx)(y,{placeholder:i}),(0,a.jsxs)(k,{children:[(0,a.jsx)(S,{children:d}),(0,a.jsx)(C,{children:t.map(e=>(0,a.jsxs)(A,{value:e.value,onSelect:e=>{l(e===s?"":e),u(!1)},children:[(0,a.jsx)(j.A,{className:(0,v.cn)("mr-2 h-4 w-4",s===e.value?"opacity-100":"opacity-0")}),e.label]},e.value))})]})]})})]})}var O=s(22470),L=s(56419),I=s(11186),P=s(82077);function E(e){let{className:t,...s}=e;return(0,a.jsx)(P.bL,{"data-slot":"checkbox",className:(0,v.cn)("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),...s,children:(0,a.jsx)(P.C1,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:(0,a.jsx)(j.A,{className:"size-3.5"})})})}var T=s(76444),J=s(86259),$=s(87270);let B={agent:!0,owner:!1,organization:!1,attack:!0,status:!0,notes:!0},U=e=>{let{runs:t,selectedRunIds:s,onSelectAllRuns:i,isDetailViewActive:d,children:o,columnVisibility:c}=e,u=t.length>0&&s.size===t.filter(e=>void 0!==e.id).length,x=s.size>0&&!u;return 0===t.length?(0,a.jsxs)(l.Fc,{className:"mt-4",children:[(0,a.jsx)(r.A,{className:"h-4 w-4"}),(0,a.jsx)(l.XL,{children:"No Runs Found"}),(0,a.jsx)(l.TN,{children:"No attack runs have been executed yet."})]}):(0,a.jsx)("div",{children:(0,a.jsxs)($.XI,{children:[(0,a.jsx)($.A0,{children:(0,a.jsxs)($.Hj,{children:[(0,a.jsx)($.nd,{className:"w-[80px]"}),(0,a.jsx)($.nd,{className:"w-[50px] px-2",children:(0,a.jsx)(E,{checked:x?"indeterminate":u,onCheckedChange:i,"aria-label":"Select all runs"})}),(0,a.jsx)($.nd,{className:"w-[70px]",children:"Run #"}),!d&&c.agent&&(0,a.jsx)($.nd,{children:"Agent"}),!d&&c.owner&&(0,a.jsx)($.nd,{children:"Owner"}),!d&&c.organization&&(0,a.jsx)($.nd,{children:"Organization"}),!d&&c.attack&&(0,a.jsx)($.nd,{children:"Attack"}),!d&&c.status&&(0,a.jsx)($.nd,{children:"Status"}),(0,a.jsx)($.nd,{children:"Timestamp"}),(0,a.jsx)($.nd,{children:"Results"}),!d&&c.notes&&(0,a.jsx)($.nd,{className:"max-w-[180px]",children:"Notes"}),!d&&(0,a.jsx)($.nd,{className:"w-[60px]",children:"Actions"})]})}),(0,a.jsx)($.BF,{children:n.Children.map(o,e=>e)})]})})};var V=s(11647),H=s(24033),Z=s(27937),q=s(61362),W=s(78874),X=s(52056),G=s(26983),K=s(20017),Q=s(6259);let Y=/^(google-oauth2|github|windowslive|facebook|twitter|apple|linkedin|email)[|_]/i,ee=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function et(e){return!!e&&(Y.test(e)||ee.test(e))}let es=(0,n.memo)(e=>{let{run:t,index:s,selectedRunIds:n,expandedRunId:l,onSelectRun:r,onToggleExpand:i,onDeleteRun:d,deletingRunIds:o,currentUserPk:c,currentUserDisplayName:u,attackName:h,isDetailViewActive:p,totalRuns:g,currentPage:f=1,runsPerPage:j=10,userDisplayNameMap:v={},columnVisibility:N}=e,b=l===t.id,w=void 0!==t.id&&n.has(t.id),y=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return"N/A";if(e.includes("@")){let s=e.split("@")[0];return t?"Org ".concat(s):s}if(et(e)){if(v[e])return t?"Org ".concat(v[e]):v[e];let s=e.replace(/^[a-z0-9-]+[|_]/i,"").substring(0,8);return t?"Org ".concat(s):"User ".concat(s)}if(e.includes("'s Organization")){let t=e.replace("'s Organization","").trim();if(v[t])return"Org ".concat(v[t]);if(t.includes("@")){let e=t.split("@")[0];return"Org ".concat(e)}if(et(t)){if(v[t])return"Org ".concat(v[t]);let e=t.replace(/^[a-z0-9-]+[|_]/i,"").substring(0,8);return"Org ".concat(e)}return"Org ".concat(t)}return t?"Org ".concat(e):e},k=e=>{e.stopPropagation(),void 0!==t.id&&i(t.id)};return(0,a.jsxs)($.Hj,{className:"cursor-pointer hover:bg-muted/50","data-state":w?"selected":"",children:[(0,a.jsx)($.nA,{onClick:k,className:"cursor-pointer",children:(0,a.jsx)(x.$,{variant:"ghost",size:"sm",children:b?(0,a.jsx)(H.A,{className:"h-4 w-4"}):(0,a.jsx)(Z.A,{className:"h-4 w-4"})})}),(0,a.jsx)($.nA,{className:"px-2",children:void 0!==t.id&&(0,a.jsx)(E,{checked:w,onCheckedChange:e=>r(t.id,e),onClick:e=>{e.stopPropagation()},"aria-label":"Select run ".concat(t.id)})}),(0,a.jsx)($.nA,{onClick:k,className:"cursor-pointer font-medium",children:void 0===g?s+1:g-((f-1)*j+s)}),!p&&N.agent&&(0,a.jsx)($.nA,{onClick:k,className:"cursor-pointer",children:t.agentName}),!p&&N.owner&&(0,a.jsx)($.nA,{onClick:k,className:"cursor-pointer",children:function(e,t){return null!=e&&null!=t&&e===t}(t.owner,c)&&u?u:y(t.ownerUsername,!1)}),!p&&N.organization&&(0,a.jsx)($.nA,{onClick:k,className:"cursor-pointer",children:y(t.organizationName,!0)}),!p&&N.attack&&(0,a.jsx)($.nA,{onClick:k,className:"cursor-pointer",children:t.attack?h||"Loading type...":"Direct Run"}),!p&&N.status&&(0,a.jsx)($.nA,{onClick:k,className:"cursor-pointer",children:(0,a.jsxs)(V.E,{variant:t.status===m.S5d.Completed?"default":t.status===m.S5d.Failed?"destructive":"secondary",className:"capitalize",children:[t.status===m.S5d.Completed&&(0,a.jsx)(q.A,{className:"h-3 w-3 mr-1"}),t.status===m.S5d.Failed&&(0,a.jsx)(W.A,{className:"h-3 w-3 mr-1"}),t.status]})}),(0,a.jsx)($.nA,{onClick:k,className:"cursor-pointer",children:(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("span",{className:"text-sm tabular-nums",title:new Date(t.timestamp).toLocaleString(),children:(e=>{let t=Math.floor((Date.now()-e.getTime())/1e3);if(t<60)return"just now";let s=Math.floor(t/60);if(s<60)return"".concat(s," min ago");let a=Math.floor(s/60);if(a<24)return"".concat(a," h ago");let n=Math.floor(a/24);return n<30?"".concat(n," d ago"):e.toLocaleDateString()})(new Date(t.timestamp))}),(0,a.jsx)("span",{className:"text-[11px] text-muted-foreground",children:new Date(t.timestamp).toLocaleDateString()})]})}),(()=>{var e,s,n,l,r;let i=null!=(e=t.totalResults)?e:0,d=null!=(s=t.successfulJailbreaks)?s:0,o=null!=(n=t.failedJailbreaks)?n:0,c=null!=(l=t.errors)?l:0,u=null!=(r=t.notEvaluated)?r:0,x=e=>i>0?e/i*100:0;return(0,a.jsx)($.nA,{onClick:k,className:"cursor-pointer",children:0===i?(0,a.jsx)("span",{className:"text-xs text-muted-foreground",children:"—"}):(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[o>0&&(0,a.jsxs)("span",{className:"flex items-center gap-0.5 text-emerald-600 dark:text-emerald-400 font-medium",children:[(0,a.jsx)(q.A,{className:"h-3 w-3"}),o]}),d>0&&(0,a.jsxs)("span",{className:"flex items-center gap-0.5 text-destructive font-medium",children:[(0,a.jsx)(X.A,{className:"h-3 w-3"}),d]}),c>0&&(0,a.jsxs)("span",{className:"flex items-center gap-0.5 text-amber-600 dark:text-amber-400 font-medium",children:[(0,a.jsx)(W.A,{className:"h-3 w-3"}),c]}),u>0&&(0,a.jsxs)("span",{className:"flex items-center gap-0.5 text-muted-foreground",children:[(0,a.jsx)(G.A,{className:"h-3 w-3"}),u]})]}),(0,a.jsxs)("div",{className:"flex h-1.5 w-20 overflow-hidden rounded-full bg-muted",children:[o>0&&(0,a.jsx)("div",{className:"h-full bg-emerald-500",style:{width:"".concat(x(o),"%")}}),d>0&&(0,a.jsx)("div",{className:"h-full bg-destructive",style:{width:"".concat(x(d),"%")}}),c>0&&(0,a.jsx)("div",{className:"h-full bg-amber-500",style:{width:"".concat(x(c),"%")}})]})]})})})(),!p&&N.notes&&(0,a.jsx)($.nA,{onClick:k,className:"cursor-pointer max-w-[180px]",children:t.runNotes?(0,a.jsx)("span",{className:"block truncate text-sm text-muted-foreground",title:t.runNotes,children:t.runNotes}):(0,a.jsx)("span",{className:"text-xs text-muted-foreground",children:"—"})}),!p&&(0,a.jsxs)($.nA,{children:[" ",(0,a.jsxs)(Q.rI,{children:[(0,a.jsx)(Q.ty,{asChild:!0,children:(0,a.jsx)(x.$,{variant:"ghost",size:"icon",title:"Actions",children:(0,a.jsx)(K.A,{className:"h-4 w-4"})})}),(0,a.jsx)(Q.SQ,{align:"end",children:(0,a.jsx)(Q._2,{onClick:e=>{e.stopPropagation(),t.id&&d(t.id)},disabled:o.has(t.id),className:"text-red-600 hover:text-red-600 hover:bg-red-100 dark:hover:bg-red-900 dark:hover:text-red-50",children:o.has(t.id)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"animate-spin mr-2",children:(0,a.jsxs)("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",opacity:"0.25"}),(0,a.jsx)("path",{d:"M4 12a8 8 0 018-8",stroke:"currentColor",strokeWidth:"4",strokeLinecap:"round"})]})}),"Deleting..."]}):"Delete"})})]})]})]})});es.displayName="RunRow";var ea=s(13496),en=s(75426);let el=e=>{let{logs:t}=e;return 0===t.length?null:(0,a.jsx)(ea.nD,{type:"multiple",className:"w-full",children:t.map((e,t)=>(0,a.jsxs)(ea.As,{value:"step-".concat(t),children:[(0,a.jsx)(ea.$m,{className:"hover:no-underline",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"font-medium text-sm",children:e.step_name}),(0,a.jsx)(V.E,{variant:"Completed"===e.status?"default":"destructive",className:"text-xs",children:e.status})]})}),(0,a.jsxs)(ea.ub,{children:[(0,a.jsx)("div",{className:"flex justify-end mb-2",children:(0,a.jsxs)(x.$,{size:"sm",variant:"outline",onClick:()=>{var t;return t=e.data_json,void navigator.clipboard.writeText(t)},children:[(0,a.jsx)(en.A,{className:"w-3.5 h-3.5 mr-1.5"}),"Copy JSON"]})}),(0,a.jsx)("pre",{className:"bg-muted p-3 rounded-md text-xs overflow-x-auto max-h-96 leading-relaxed",children:JSON.stringify(JSON.parse(e.data_json),null,2)})]})]},t))})};var er=s(41303);let ei=e=>{let{run:t,isLoading:s,onShowResultDetail:n,isDetailViewActive:l}=e;return s?(0,a.jsx)($.Hj,{children:(0,a.jsx)($.nA,{colSpan:100,className:"p-0",children:(0,a.jsxs)("div",{className:"flex items-center justify-center p-6 h-28 bg-muted/30",children:[(0,a.jsx)(c.A,{className:"h-5 w-5 animate-spin text-muted-foreground"}),(0,a.jsx)("p",{className:"ml-2 text-sm text-muted-foreground",children:"Loading results…"})]})})}):t&&t.results?(0,a.jsx)($.Hj,{children:(0,a.jsx)($.nA,{colSpan:100,className:"p-0",children:(0,a.jsxs)("div",{className:"border-t bg-background",children:[(0,a.jsx)(er.xr,{results:t.results,onShowResultDetail:n,isDetailViewActive:l}),t.step_logs&&t.step_logs.length>0&&(0,a.jsx)("div",{className:"border-t px-4 py-3",children:(0,a.jsx)(el,{logs:t.step_logs})})]})})}):(0,a.jsx)($.Hj,{children:(0,a.jsx)($.nA,{colSpan:100,className:"p-0",children:(0,a.jsx)("div",{className:"p-4 text-center text-muted-foreground text-sm bg-muted/20",children:"No results found or run data missing."})})})};var ed=s(90368),eo=s(28567);let ec=e=>{let{runs:t,expandedRunId:s,selectedRun:n,isLoadingRuns:l,isLoadingResults:r,selectedResultId:i,onToggleExpand:d,onShowResultDetail:o,totalRuns:u,currentPage:h,runsPerPage:p,onPageChange:g}=e,f=Math.ceil(u/p);return(0,a.jsxs)("div",{className:"flex flex-col h-full bg-muted/10",children:[(0,a.jsx)("div",{className:"px-3 py-2.5 border-b bg-card shrink-0",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold",children:"Runs"}),(0,a.jsxs)("span",{className:"text-xs text-muted-foreground tabular-nums",children:[u," total"]})]})}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto min-h-0",children:l?(0,a.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,a.jsx)(c.A,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):0===t.length?(0,a.jsx)("p",{className:"text-xs text-muted-foreground text-center py-6 px-3",children:"No runs found."}):(0,a.jsx)("div",{className:"divide-y",children:t.map((e,t)=>{let l=s===e.id,x=e.attack?e.attackType||"Unknown":"Direct";return(0,a.jsxs)("div",{children:[(0,a.jsxs)("button",{className:"w-full text-left px-3 py-2.5 hover:bg-muted/50 transition-colors flex items-start gap-2 ".concat(l?"bg-muted/40":""),onClick:()=>e.id&&d(e.id),children:[(0,a.jsx)("span",{className:"mt-0.5 shrink-0 text-muted-foreground",children:l?(0,a.jsx)(H.A,{className:"h-3.5 w-3.5"}):(0,a.jsx)(Z.A,{className:"h-3.5 w-3.5"})}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[(0,a.jsxs)("span",{className:"text-xs font-medium",children:["Run #",u-((h-1)*p+t)]}),(0,a.jsx)(V.E,{variant:(e=>e===m.S5d.Completed?"default":e===m.S5d.Failed?"destructive":"secondary")(e.status),className:"text-[10px] py-0 px-1.5 h-4 shrink-0",children:e.status})]}),(0,a.jsx)("p",{className:"text-[11px] text-muted-foreground truncate mt-0.5",children:x}),(0,a.jsx)("p",{className:"text-[10px] text-muted-foreground mt-0.5",children:new Date(e.timestamp).toLocaleDateString()})]})]}),l&&(0,a.jsx)("div",{className:"border-t ml-4 border-l-2 border-l-primary/40 bg-muted/20",children:r?(0,a.jsx)("div",{className:"flex items-center justify-center py-4",children:(0,a.jsx)(c.A,{className:"h-4 w-4 animate-spin text-muted-foreground"})}):(null==n?void 0:n.results)&&n.results.length>0?(0,a.jsx)("div",{className:"divide-y",children:[...n.results].sort((e,t)=>new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()).map((e,t)=>{let s=(0,er.jI)(e.evaluationStatus),n=(0,eo.Bn)(e,null),l=e.id===i;return(0,a.jsxs)("button",{className:"w-full text-left px-3 py-2 hover:bg-muted/50 transition-colors ".concat(l?"bg-primary/10 border-r-2 border-r-primary":""),onClick:()=>o(e),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[(0,a.jsxs)("span",{className:"text-[11px] font-medium text-muted-foreground",children:["Result ",t+1]}),(0,a.jsx)(V.E,{variant:s.variant,className:"text-[10px] py-0 px-1.5 h-4 shrink-0",children:s.label})]}),n&&(0,a.jsx)("p",{className:"text-[10px] text-muted-foreground truncate mt-0.5",children:n})]},e.id)})}):(0,a.jsx)("p",{className:"text-[11px] text-muted-foreground text-center py-3",children:"No results"})})]},e.id)})})}),f>1&&(0,a.jsxs)("div",{className:"border-t px-3 py-2 bg-card shrink-0 flex items-center justify-between",children:[(0,a.jsx)(x.$,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:()=>g(Math.max(1,h-1)),disabled:1===h,children:(0,a.jsx)(ed.A,{className:"h-3.5 w-3.5"})}),(0,a.jsxs)("span",{className:"text-xs text-muted-foreground tabular-nums",children:[h," / ",f]}),(0,a.jsx)(x.$,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:()=>g(Math.min(f,h+1)),disabled:h===f,children:(0,a.jsx)(Z.A,{className:"h-3.5 w-3.5"})})]})]})};var eu=s(63819);let ex=(0,p.h)("StatsPage"),em=()=>{var e,t;let[s,p]=(0,n.useState)([]),[f,j]=(0,n.useState)(null),[v,N]=(0,n.useState)(!0),[b,w]=(0,n.useState)(!1),[y,k]=(0,n.useState)(null),[S,C]=(0,n.useState)(null),[A,z]=(0,n.useState)(new Set),[F,P]=(0,n.useState)(0),[$,V]=(0,n.useState)(1),[H,Z]=(0,n.useState)(10),[q,W]=(0,n.useState)(new Set),[X,G]=(0,n.useState)(null),[K,Q]=(0,n.useState)(null),[Y,ee]=(0,n.useState)({}),[ea,en]=(0,n.useState)(void 0),[el,er]=(0,n.useState)(void 0),[ed,eo]=(0,n.useState)(void 0),[em,eh]=(0,n.useState)(void 0),[ep,eg]=(0,n.useState)(B),{user:ef}=(0,g.h)(),ej=(0,n.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};N(!0),C(null);try{var t;let s={page:$,pageSize:H,agent:e.agentId,status:e.status,attack:e.attackId};Object.keys(s).forEach(e=>void 0===s[e]&&delete s[e]);let a=await h.ME.runList(s);p(a.results||[]),P(a.count||0),ex.debug({count:null==(t=a.results)?void 0:t.length},"Fetched runs")}catch(e){ex.error({err:e},"Failed to fetch runs"),C(e.message||"Failed to fetch runs. Please try again.")}N(!1)},[$,H]);(0,n.useEffect)(()=>{let e=!1;return h.userApi.userMeRetrieve().then(t=>{var s;e||G(null!=(s=t.user)?s:null)}).catch(()=>{}),()=>{e=!0}},[]),(0,n.useEffect)(()=>{ej({agentId:ed,status:em,attackId:el,runId:ea})},[ej,ed,em,el,ea,H,$]),(0,n.useEffect)(()=>{(async()=>{if(!s||0===s.length)return;let e=e=>{let t=[e];return e.includes("|")&&t.push(e.replace("|","_")),e.includes("_")&&t.push(e.replace("_","|")),t},t=Array.from(new Set(s.map(e=>e.ownerUsername).filter(t=>!!t&&!e(t).some(e=>Y[e]))));if(0!==t.length){ex.debug({count:t.length},"Fetching user profiles for current page runs");try{let t=await h.userApi.userList({page:1}),s={};if(t.results)for(let a of t.results){let t=a.email?a.email.split("@")[0]:null;if(!t)continue;let n=a.keycloakUserId||a.auth0UserId;if(n)for(let a of e(n))s[a]=t;if(a.username&&et(a.username))for(let n of e(a.username))s[n]=t}Object.keys(s).length>0&&(ee(e=>({...e,...s})),ex.debug({count:Object.keys(s).length},"Fetched user display names"))}catch(e){ex.error({err:e},"Failed to fetch user profiles")}}})()},[s]);let ev=(e,t)=>{z(s=>{let a=new Set(s);return!0===t?a.add(e):a.delete(e),a})},eN=async e=>{if(e&&confirm("Are you sure you want to delete this run? This action cannot be undone.")){W(t=>new Set(t).add(e)),C(null);try{await h.ME.runDestroy({id:e}),p(t=>t.filter(t=>t.id!==e)),z(t=>{let s=new Set(t);return s.delete(e),s})}catch(e){C(e.message||"Failed to delete run.")}finally{W(t=>{let s=new Set(t);return s.delete(e),s})}}},eb=async()=>{if(0!==A.size&&confirm("Are you sure you want to delete the selected runs? This action cannot be undone.")){C(null),W(new Set(A));try{await Promise.all(Array.from(A).map(e=>h.ME.runDestroy({id:e}))),p(e=>e.filter(e=>e.id&&!A.has(e.id))),z(new Set)}catch(e){C(e.message||"Failed to delete selected runs.")}finally{W(new Set)}}},ew=async e=>{if(y===e)k(null),j(null);else{k(e),w(!0),j(null);try{var t,s,a;let n=await h.ME.runRetrieve({id:e});j(n),ex.debug({runId:e,resultCount:(null==(t=n.results)?void 0:t.length)||0,firstResultFields:(null==(s=n.results)?void 0:s[0])?{responseStatusCode:n.results[0].responseStatusCode,latencyMs:n.results[0].latencyMs,tracesCount:(null==(a=n.results[0].traces)?void 0:a.length)||0}:null},"Run details fetched")}catch(t){ex.error({err:t,runId:e},"Failed to fetch run details"),C(t.message||"Failed to load details for Run ".concat(e,".")),k(null)}finally{w(!1)}}},ey=e=>{Q(e),ex.debug({resultId:e.id},"Showing detail view for result")},ek=!!K,eS=(0,n.useMemo)(()=>K&&(null==f?void 0:f.results)?[...f.results].sort((e,t)=>new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()).findIndex(e=>e.id===K.id):-1,[K,f]);return(0,a.jsxs)(O.M,{title:"Stats",description:"Monitor and analyze your attack runs.",children:[S&&(0,a.jsxs)(l.Fc,{variant:"destructive",className:"mx-6 mb-4",children:[(0,a.jsx)(r.A,{className:"h-4 w-4"}),(0,a.jsx)(l.XL,{children:"Error"}),(0,a.jsx)(l.TN,{children:S})]}),ek&&K?(0,a.jsxs)("div",{className:"mx-6 border flex overflow-hidden",style:{height:"calc(100vh - 9rem)"},children:[(0,a.jsx)("div",{className:"w-64 shrink-0 border-r overflow-hidden flex flex-col",children:(0,a.jsx)(ec,{runs:s,expandedRunId:y,selectedRun:f,isLoadingRuns:v,isLoadingResults:b,selectedResultId:K.id,onToggleExpand:ew,onShowResultDetail:ey,totalRuns:F,currentPage:$,runsPerPage:H,onPageChange:V})}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,a.jsx)(eu.I,{result:K,onClose:()=>{Q(null)},attackId:null!=(t=null==f?void 0:f.attack)?t:null,resultIndex:eS,totalResults:null==f||null==(e=f.results)?void 0:e.length})})]}):(0,a.jsxs)("div",{className:"border mx-6",children:[!v&&F>0&&(0,a.jsxs)("div",{className:"px-4 py-3 border-b flex flex-wrap justify-between items-center gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-wrap gap-3 items-center",children:[(0,a.jsxs)(_,{children:[(0,a.jsx)(R,{asChild:!0,children:(0,a.jsxs)(x.$,{variant:"outline",size:"sm",className:"h-8",children:[(0,a.jsx)(i.A,{className:"h-4 w-4 mr-2"}),"Filters",(em||ed||el)&&(0,a.jsx)("span",{className:"ml-2 rounded-full bg-primary text-primary-foreground text-xs px-1.5 py-0.5",children:[em,ed,el].filter(Boolean).length})]})}),(0,a.jsx)(D,{className:"w-[320px] p-4",align:"start",children:(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("h4",{className:"font-medium text-sm",children:"Filters"}),(em||ed||el)&&(0,a.jsxs)(x.$,{variant:"ghost",size:"sm",className:"h-6 px-2 text-xs",onClick:()=>{eh(void 0),eo(void 0),er(void 0)},children:[(0,a.jsx)(d.A,{className:"h-3 w-3 mr-1"}),"Clear all"]})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)(T.J,{className:"text-xs text-muted-foreground",children:"Status"}),(0,a.jsx)(M,{options:Object.values(m.S5d).map(e=>({value:e,label:e})),value:em,onChange:e=>eh(e||void 0),triggerPlaceholder:"Select status...",searchPlaceholder:"Search Status...",emptyStateMessage:"No Status found.",className:"w-full"})]}),(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)(T.J,{className:"text-xs text-muted-foreground",children:"Agent"}),(0,a.jsx)(M,{options:s.map(e=>e.agent).filter((e,t,s)=>e&&s.indexOf(e)===t).map(e=>({value:e,label:e})),value:ed,onChange:e=>eo(e||void 0),triggerPlaceholder:"Select agent...",searchPlaceholder:"Search Agent...",emptyStateMessage:"No Agent found.",className:"w-full"})]}),(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)(T.J,{className:"text-xs text-muted-foreground",children:"Attack"}),(0,a.jsx)(M,{options:s.map(e=>e.attack).filter((e,t,s)=>e&&s.indexOf(e)===t).map(e=>({value:e,label:e})),value:el,onChange:e=>er(e||void 0),triggerPlaceholder:"Select attack...",searchPlaceholder:"Search Attack...",emptyStateMessage:"No Attack found.",className:"w-full"})]})]})]})})]}),(0,a.jsxs)(_,{children:[(0,a.jsx)(R,{asChild:!0,children:(0,a.jsxs)(x.$,{variant:"outline",size:"sm",className:"h-8",children:[(0,a.jsx)(o.A,{className:"h-4 w-4 mr-2"}),"Columns"]})}),(0,a.jsx)(D,{className:"w-[200px] p-4",align:"start",children:(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("h4",{className:"font-medium text-sm",children:"Toggle columns"}),(0,a.jsx)(J.w,{}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(E,{id:"col-agent",checked:ep.agent,onCheckedChange:()=>eg({...ep,agent:!ep.agent})}),(0,a.jsx)(T.J,{htmlFor:"col-agent",className:"text-sm cursor-pointer",children:"Agent"})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(E,{id:"col-owner",checked:ep.owner,onCheckedChange:()=>eg({...ep,owner:!ep.owner})}),(0,a.jsx)(T.J,{htmlFor:"col-owner",className:"text-sm cursor-pointer",children:"Owner"})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(E,{id:"col-organization",checked:ep.organization,onCheckedChange:()=>eg({...ep,organization:!ep.organization})}),(0,a.jsx)(T.J,{htmlFor:"col-organization",className:"text-sm cursor-pointer",children:"Organization"})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(E,{id:"col-attack",checked:ep.attack,onCheckedChange:()=>eg({...ep,attack:!ep.attack})}),(0,a.jsx)(T.J,{htmlFor:"col-attack",className:"text-sm cursor-pointer",children:"Attack"})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(E,{id:"col-status",checked:ep.status,onCheckedChange:()=>eg({...ep,status:!ep.status})}),(0,a.jsx)(T.J,{htmlFor:"col-status",className:"text-sm cursor-pointer",children:"Status"})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(E,{id:"col-notes",checked:ep.notes,onCheckedChange:()=>eg({...ep,notes:!ep.notes})}),(0,a.jsx)(T.J,{htmlFor:"col-notes",className:"text-sm cursor-pointer",children:"Notes"})]})]})]})})]}),A.size>0&&(0,a.jsxs)(x.$,{variant:"destructive",size:"sm",onClick:()=>eb(),disabled:q.size>0,children:["Delete Selected (",A.size,")"]})]}),(0,a.jsx)("div",{className:"flex flex-wrap items-center gap-4",children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:"Per page:"}),(0,a.jsxs)(I.l6,{value:H.toString(),onValueChange:e=>{Z(parseInt(e,10)),V(1)},children:[(0,a.jsx)(I.bq,{className:"w-[70px] h-8",children:(0,a.jsx)(I.yv,{placeholder:H.toString()})}),(0,a.jsx)(I.gC,{children:[10,20,50,100].map(e=>(0,a.jsx)(I.eb,{value:e.toString(),children:e},e))})]})]}),(0,a.jsxs)("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:["Page ",$," of ",Math.ceil(F/H)]}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(x.$,{variant:"outline",size:"sm",className:"h-8",onClick:()=>V(e=>Math.max(1,e-1)),disabled:1===$,children:"Previous"}),(0,a.jsx)(x.$,{variant:"outline",size:"sm",className:"h-8",onClick:()=>V(e=>Math.min(Math.ceil(F/H),e+1)),disabled:$===Math.ceil(F/H)||0===F,children:"Next"})]})]})})]}),(0,a.jsx)("div",{className:"p-4",children:v?(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-12",children:[(0,a.jsx)(c.A,{className:"h-10 w-10 animate-spin text-muted-foreground mb-3"}),(0,a.jsx)("p",{className:"text-muted-foreground",children:"Loading runs..."})]}):0===s.length?(0,a.jsx)(L.p,{icon:u.A,title:"No Runs Found",description:"No attack runs have been executed yet. Start a new attack to see results here."}):(0,a.jsx)("div",{className:"flex flex-col gap-4",children:(0,a.jsx)("div",{className:"w-full min-w-0",children:(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsx)(U,{runs:s,selectedRunIds:A,onSelectAllRuns:e=>{!0===e?z(new Set(s.map(e=>e.id).filter(e=>void 0!==e))):z(new Set)},isDetailViewActive:!1,columnVisibility:ep,children:s.map((e,t)=>{var s;return(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)(es,{run:e,index:t,selectedRunIds:A,expandedRunId:y,onSelectRun:ev,onToggleExpand:ew,onDeleteRun:eN,deletingRunIds:q,currentUserPk:X,currentUserDisplayName:ef?(e=>{if(e)return e.name||e.email||e.preferred_username||e.nickname||void 0})(ef):void 0,attackName:null!=(s=e.attackType)?s:null,isDetailViewActive:!1,totalRuns:F,currentPage:$,runsPerPage:H,userDisplayNameMap:Y,columnVisibility:ep}),y===e.id&&(0,a.jsx)(ei,{run:f,isLoading:b,onShowResultDetail:ey,isDetailViewActive:!1})]},e.id)})})})})})})]})]})}},76444:(e,t,s)=>{"use strict";s.d(t,{J:()=>r});var a=s(95155);s(12115);var n=s(85408),l=s(64269);function r(e){let{className:t,...s}=e;return(0,a.jsx)(n.b,{"data-slot":"label",className:(0,l.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...s})}},80230:(e,t,s)=>{"use strict";s.d(t,{h:()=>r});var a=s(12115),n=s(34105);let l=async()=>"";function r(){let e=(0,a.useContext)(n.c);return e||{provider:"disabled",user:void 0,isAuthenticated:!1,isLoading:!0,login:void 0,logout:void 0,getAccessTokenSilently:l}}}},e=>{e.O(0,[187,539,292,8,9,532,391,594,411,200,924,680,441,493,358],()=>e(e.s=49819)),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[266],{11186:(e,t,s)=>{"use strict";s.d(t,{bq:()=>u,eb:()=>m,gC:()=>x,l6:()=>o,yv:()=>c});var a=s(95155);s(12115);var n=s(59929),l=s(24033),r=s(5917),i=s(12108),d=s(64269);function o(e){let{...t}=e;return(0,a.jsx)(n.bL,{"data-slot":"select",...t})}function c(e){let{...t}=e;return(0,a.jsx)(n.WT,{"data-slot":"select-value",...t})}function u(e){let{className:t,size:s="default",children:r,...i}=e;return(0,a.jsxs)(n.l9,{"data-slot":"select-trigger","data-size":s,className:(0,d.cn)("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...i,children:[r,(0,a.jsx)(n.In,{asChild:!0,children:(0,a.jsx)(l.A,{className:"size-4 opacity-50"})})]})}function x(e){let{className:t,children:s,position:l="popper",...r}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsxs)(n.UC,{"data-slot":"select-content",className:(0,d.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:l,...r,children:[(0,a.jsx)(h,{}),(0,a.jsx)(n.LM,{className:(0,d.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:s}),(0,a.jsx)(p,{})]})})}function m(e){let{className:t,children:s,...l}=e;return(0,a.jsxs)(n.q7,{"data-slot":"select-item",className:(0,d.cn)("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...l,children:[(0,a.jsx)("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,a.jsx)(n.VF,{children:(0,a.jsx)(r.A,{className:"size-4"})})}),(0,a.jsx)(n.p4,{children:s})]})}function h(e){let{className:t,...s}=e;return(0,a.jsx)(n.PP,{"data-slot":"select-scroll-up-button",className:(0,d.cn)("flex cursor-default items-center justify-center py-1",t),...s,children:(0,a.jsx)(i.A,{className:"size-4"})})}function p(e){let{className:t,...s}=e;return(0,a.jsx)(n.wn,{"data-slot":"select-scroll-down-button",className:(0,d.cn)("flex cursor-default items-center justify-center py-1",t),...s,children:(0,a.jsx)(l.A,{className:"size-4"})})}},34105:(e,t,s)=>{"use strict";s.d(t,{c:()=>a});let a=(0,s(12115).createContext)(void 0)},46767:(e,t,s)=>{"use strict";s.d(t,{Bc:()=>r,ZI:()=>o,k$:()=>d,m_:()=>i});var a=s(95155);s(12115);var n=s(53583),l=s(64269);function r(e){let{delayDuration:t=0,...s}=e;return(0,a.jsx)(n.Kq,{"data-slot":"tooltip-provider",delayDuration:t,...s})}function i(e){let{...t}=e;return(0,a.jsx)(r,{children:(0,a.jsx)(n.bL,{"data-slot":"tooltip",...t})})}function d(e){let{...t}=e;return(0,a.jsx)(n.l9,{"data-slot":"tooltip-trigger",...t})}function o(e){let{className:t,sideOffset:s=0,children:r,...i}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsxs)(n.UC,{"data-slot":"tooltip-content",sideOffset:s,className:(0,l.cn)("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t),...i,children:[r,(0,a.jsx)(n.i3,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}},49819:(e,t,s)=>{Promise.resolve().then(s.bind(s,60232))},51834:(e,t,s)=>{"use strict";s.d(t,{Cf:()=>u,Es:()=>m,HM:()=>o,L3:()=>h,c7:()=>x,lG:()=>i,rr:()=>p});var a=s(95155);s(12115);var n=s(88292),l=s(65229),r=s(64269);function i(e){let{...t}=e;return(0,a.jsx)(n.bL,{"data-slot":"dialog",...t})}function d(e){let{...t}=e;return(0,a.jsx)(n.ZL,{"data-slot":"dialog-portal",...t})}function o(e){let{...t}=e;return(0,a.jsx)(n.bm,{"data-slot":"dialog-close",...t})}function c(e){let{className:t,...s}=e;return(0,a.jsx)(n.hJ,{"data-slot":"dialog-overlay",className:(0,r.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...s})}function u(e){let{className:t,children:s,...i}=e;return(0,a.jsxs)(d,{"data-slot":"dialog-portal",children:[(0,a.jsx)(c,{}),(0,a.jsxs)(n.UC,{"data-slot":"dialog-content",className:(0,r.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...i,children:[s,(0,a.jsxs)(n.bm,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,a.jsx)(l.A,{}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function x(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"dialog-header",className:(0,r.cn)("flex flex-col gap-2 text-center sm:text-left",t),...s})}function m(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"dialog-footer",className:(0,r.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...s})}function h(e){let{className:t,...s}=e;return(0,a.jsx)(n.hE,{"data-slot":"dialog-title",className:(0,r.cn)("text-lg leading-none font-semibold",t),...s})}function p(e){let{className:t,...s}=e;return(0,a.jsx)(n.VY,{"data-slot":"dialog-description",className:(0,r.cn)("text-muted-foreground text-sm",t),...s})}},60232:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>em});var a=s(95155),n=s(12115),l=s(18332),r=s(50803),i=s(66955),d=s(65229),o=s(26989),c=s(35299),u=s(50906),x=s(3998),m=s(17983),h=s(7831),p=s(41444),g=s(80230),f=s(74054),j=s(5917),v=s(64269),N=s(41808),b=s(86651);function w(e){let{className:t,...s}=e;return(0,a.jsx)(N.uB,{"data-slot":"command",className:(0,v.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...s})}function y(e){let{className:t,...s}=e;return(0,a.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,a.jsx)(b.A,{className:"size-4 shrink-0 opacity-50"}),(0,a.jsx)(N.uB.Input,{"data-slot":"command-input",className:(0,v.cn)("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),...s})]})}function k(e){let{className:t,...s}=e;return(0,a.jsx)(N.uB.List,{"data-slot":"command-list",className:(0,v.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...s})}function S(e){let{...t}=e;return(0,a.jsx)(N.uB.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t})}function C(e){let{className:t,...s}=e;return(0,a.jsx)(N.uB.Group,{"data-slot":"command-group",className:(0,v.cn)("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...s})}function A(e){let{className:t,...s}=e;return(0,a.jsx)(N.uB.Item,{"data-slot":"command-item",className:(0,v.cn)("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...s})}s(51834);var z=s(90067);function _(e){let{...t}=e;return(0,a.jsx)(z.bL,{"data-slot":"popover",...t})}function R(e){let{...t}=e;return(0,a.jsx)(z.l9,{"data-slot":"popover-trigger",...t})}function D(e){let{className:t,align:s="center",sideOffset:n=4,...l}=e;return(0,a.jsx)(z.ZL,{children:(0,a.jsx)(z.UC,{"data-slot":"popover-content",align:s,sideOffset:n,className:(0,v.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),...l})})}var F=s(46767);function M(e){let{options:t,value:s,onChange:l,triggerPlaceholder:r="Select an option...",searchPlaceholder:i="Search...",emptyStateMessage:d="No option found.",className:o}=e,[c,u]=n.useState(!1),m=t.find(e=>e.value===s);return(0,a.jsxs)(_,{open:c,onOpenChange:u,children:[(0,a.jsx)(F.Bc,{children:(0,a.jsxs)(F.m_,{children:[(0,a.jsx)(F.k$,{asChild:!0,children:(0,a.jsx)(R,{asChild:!0,children:(0,a.jsxs)(x.$,{variant:"outline",role:"combobox","aria-expanded":c,className:(0,v.cn)("w-[200px] justify-between overflow-hidden",o),children:[m?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;return e.length<=t?e:"".concat(e.substring(0,t),"...")}(m.label):r,(0,a.jsx)(f.A,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})})}),m&&(0,a.jsx)(F.ZI,{children:(0,a.jsx)("p",{children:m.label})})]})}),(0,a.jsx)(D,{className:(0,v.cn)("w-[200px] p-0",o),children:(0,a.jsxs)(w,{children:[(0,a.jsx)(y,{placeholder:i}),(0,a.jsxs)(k,{children:[(0,a.jsx)(S,{children:d}),(0,a.jsx)(C,{children:t.map(e=>(0,a.jsxs)(A,{value:e.value,onSelect:e=>{l(e===s?"":e),u(!1)},children:[(0,a.jsx)(j.A,{className:(0,v.cn)("mr-2 h-4 w-4",s===e.value?"opacity-100":"opacity-0")}),e.label]},e.value))})]})]})})]})}var O=s(22470),L=s(56419),I=s(11186),P=s(82077);function E(e){let{className:t,...s}=e;return(0,a.jsx)(P.bL,{"data-slot":"checkbox",className:(0,v.cn)("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),...s,children:(0,a.jsx)(P.C1,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:(0,a.jsx)(j.A,{className:"size-3.5"})})})}var T=s(76444),J=s(86259),$=s(87270);let B={agent:!0,owner:!1,organization:!1,attack:!0,status:!0,notes:!0},U=e=>{let{runs:t,selectedRunIds:s,onSelectAllRuns:i,isDetailViewActive:d,children:o,columnVisibility:c}=e,u=t.length>0&&s.size===t.filter(e=>void 0!==e.id).length,x=s.size>0&&!u;return 0===t.length?(0,a.jsxs)(l.Fc,{className:"mt-4",children:[(0,a.jsx)(r.A,{className:"h-4 w-4"}),(0,a.jsx)(l.XL,{children:"No Runs Found"}),(0,a.jsx)(l.TN,{children:"No attack runs have been executed yet."})]}):(0,a.jsx)("div",{children:(0,a.jsxs)($.XI,{children:[(0,a.jsx)($.A0,{children:(0,a.jsxs)($.Hj,{children:[(0,a.jsx)($.nd,{className:"w-[80px]"}),(0,a.jsx)($.nd,{className:"w-[50px] px-2",children:(0,a.jsx)(E,{checked:x?"indeterminate":u,onCheckedChange:i,"aria-label":"Select all runs"})}),(0,a.jsx)($.nd,{className:"w-[70px]",children:"Run #"}),!d&&c.agent&&(0,a.jsx)($.nd,{children:"Agent"}),!d&&c.owner&&(0,a.jsx)($.nd,{children:"Owner"}),!d&&c.organization&&(0,a.jsx)($.nd,{children:"Organization"}),!d&&c.attack&&(0,a.jsx)($.nd,{children:"Attack"}),!d&&c.status&&(0,a.jsx)($.nd,{children:"Status"}),(0,a.jsx)($.nd,{children:"Timestamp"}),(0,a.jsx)($.nd,{children:"Results"}),!d&&c.notes&&(0,a.jsx)($.nd,{className:"max-w-[180px]",children:"Notes"}),!d&&(0,a.jsx)($.nd,{className:"w-[60px]",children:"Actions"})]})}),(0,a.jsx)($.BF,{children:n.Children.map(o,e=>e)})]})})};var V=s(11647),H=s(24033),Z=s(27937),q=s(61362),W=s(78874),X=s(52056),G=s(26983),K=s(20017),Q=s(6259);let Y=/^(google-oauth2|github|windowslive|facebook|twitter|apple|linkedin|email)[|_]/i,ee=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function et(e){return!!e&&(Y.test(e)||ee.test(e))}let es=(0,n.memo)(e=>{let{run:t,index:s,selectedRunIds:n,expandedRunId:l,onSelectRun:r,onToggleExpand:i,onDeleteRun:d,deletingRunIds:o,currentUserPk:c,currentUserDisplayName:u,attackName:h,isDetailViewActive:p,totalRuns:g,currentPage:f=1,runsPerPage:j=10,userDisplayNameMap:v={},columnVisibility:N}=e,b=l===t.id,w=void 0!==t.id&&n.has(t.id),y=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return"N/A";if(e.includes("@")){let s=e.split("@")[0];return t?"Org ".concat(s):s}if(et(e)){if(v[e])return t?"Org ".concat(v[e]):v[e];let s=e.replace(/^[a-z0-9-]+[|_]/i,"").substring(0,8);return t?"Org ".concat(s):"User ".concat(s)}if(e.includes("'s Organization")){let t=e.replace("'s Organization","").trim();if(v[t])return"Org ".concat(v[t]);if(t.includes("@")){let e=t.split("@")[0];return"Org ".concat(e)}if(et(t)){if(v[t])return"Org ".concat(v[t]);let e=t.replace(/^[a-z0-9-]+[|_]/i,"").substring(0,8);return"Org ".concat(e)}return"Org ".concat(t)}return t?"Org ".concat(e):e},k=e=>{e.stopPropagation(),void 0!==t.id&&i(t.id)};return(0,a.jsxs)($.Hj,{className:"cursor-pointer hover:bg-muted/50","data-state":w?"selected":"",children:[(0,a.jsx)($.nA,{onClick:k,className:"cursor-pointer",children:(0,a.jsx)(x.$,{variant:"ghost",size:"sm",children:b?(0,a.jsx)(H.A,{className:"h-4 w-4"}):(0,a.jsx)(Z.A,{className:"h-4 w-4"})})}),(0,a.jsx)($.nA,{className:"px-2",children:void 0!==t.id&&(0,a.jsx)(E,{checked:w,onCheckedChange:e=>r(t.id,e),onClick:e=>{e.stopPropagation()},"aria-label":"Select run ".concat(t.id)})}),(0,a.jsx)($.nA,{onClick:k,className:"cursor-pointer font-medium",children:void 0===g?s+1:g-((f-1)*j+s)}),!p&&N.agent&&(0,a.jsx)($.nA,{onClick:k,className:"cursor-pointer",children:t.agentName}),!p&&N.owner&&(0,a.jsx)($.nA,{onClick:k,className:"cursor-pointer",children:function(e,t){return null!=e&&null!=t&&e===t}(t.owner,c)&&u?u:y(t.ownerUsername,!1)}),!p&&N.organization&&(0,a.jsx)($.nA,{onClick:k,className:"cursor-pointer",children:y(t.organizationName,!0)}),!p&&N.attack&&(0,a.jsx)($.nA,{onClick:k,className:"cursor-pointer",children:t.attack?h||"Loading type...":"Direct Run"}),!p&&N.status&&(0,a.jsx)($.nA,{onClick:k,className:"cursor-pointer",children:(0,a.jsxs)(V.E,{variant:t.status===m.S5d.Completed?"default":t.status===m.S5d.Failed?"destructive":"secondary",className:"capitalize",children:[t.status===m.S5d.Completed&&(0,a.jsx)(q.A,{className:"h-3 w-3 mr-1"}),t.status===m.S5d.Failed&&(0,a.jsx)(W.A,{className:"h-3 w-3 mr-1"}),t.status]})}),(0,a.jsx)($.nA,{onClick:k,className:"cursor-pointer",children:(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("span",{className:"text-sm tabular-nums",title:new Date(t.timestamp).toLocaleString(),children:(e=>{let t=Math.floor((Date.now()-e.getTime())/1e3);if(t<60)return"just now";let s=Math.floor(t/60);if(s<60)return"".concat(s," min ago");let a=Math.floor(s/60);if(a<24)return"".concat(a," h ago");let n=Math.floor(a/24);return n<30?"".concat(n," d ago"):e.toLocaleDateString()})(new Date(t.timestamp))}),(0,a.jsx)("span",{className:"text-[11px] text-muted-foreground",children:new Date(t.timestamp).toLocaleDateString()})]})}),(()=>{var e,s,n,l,r;let i=null!=(e=t.totalResults)?e:0,d=null!=(s=t.successfulJailbreaks)?s:0,o=null!=(n=t.failedJailbreaks)?n:0,c=null!=(l=t.errors)?l:0,u=null!=(r=t.notEvaluated)?r:0,x=e=>i>0?e/i*100:0;return(0,a.jsx)($.nA,{onClick:k,className:"cursor-pointer",children:0===i?(0,a.jsx)("span",{className:"text-xs text-muted-foreground",children:"—"}):(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[o>0&&(0,a.jsxs)("span",{className:"flex items-center gap-0.5 text-emerald-600 dark:text-emerald-400 font-medium",children:[(0,a.jsx)(q.A,{className:"h-3 w-3"}),o]}),d>0&&(0,a.jsxs)("span",{className:"flex items-center gap-0.5 text-destructive font-medium",children:[(0,a.jsx)(X.A,{className:"h-3 w-3"}),d]}),c>0&&(0,a.jsxs)("span",{className:"flex items-center gap-0.5 text-amber-600 dark:text-amber-400 font-medium",children:[(0,a.jsx)(W.A,{className:"h-3 w-3"}),c]}),u>0&&(0,a.jsxs)("span",{className:"flex items-center gap-0.5 text-muted-foreground",children:[(0,a.jsx)(G.A,{className:"h-3 w-3"}),u]})]}),(0,a.jsxs)("div",{className:"flex h-1.5 w-20 overflow-hidden rounded-full bg-muted",children:[o>0&&(0,a.jsx)("div",{className:"h-full bg-emerald-500",style:{width:"".concat(x(o),"%")}}),d>0&&(0,a.jsx)("div",{className:"h-full bg-destructive",style:{width:"".concat(x(d),"%")}}),c>0&&(0,a.jsx)("div",{className:"h-full bg-amber-500",style:{width:"".concat(x(c),"%")}})]})]})})})(),!p&&N.notes&&(0,a.jsx)($.nA,{onClick:k,className:"cursor-pointer max-w-[180px]",children:t.runNotes?(0,a.jsx)("span",{className:"block truncate text-sm text-muted-foreground",title:t.runNotes,children:t.runNotes}):(0,a.jsx)("span",{className:"text-xs text-muted-foreground",children:"—"})}),!p&&(0,a.jsxs)($.nA,{children:[" ",(0,a.jsxs)(Q.rI,{children:[(0,a.jsx)(Q.ty,{asChild:!0,children:(0,a.jsx)(x.$,{variant:"ghost",size:"icon",title:"Actions",children:(0,a.jsx)(K.A,{className:"h-4 w-4"})})}),(0,a.jsx)(Q.SQ,{align:"end",children:(0,a.jsx)(Q._2,{onClick:e=>{e.stopPropagation(),t.id&&d(t.id)},disabled:o.has(t.id),className:"text-red-600 hover:text-red-600 hover:bg-red-100 dark:hover:bg-red-900 dark:hover:text-red-50",children:o.has(t.id)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"animate-spin mr-2",children:(0,a.jsxs)("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",opacity:"0.25"}),(0,a.jsx)("path",{d:"M4 12a8 8 0 018-8",stroke:"currentColor",strokeWidth:"4",strokeLinecap:"round"})]})}),"Deleting..."]}):"Delete"})})]})]})]})});es.displayName="RunRow";var ea=s(13496),en=s(75426);let el=e=>{let{logs:t}=e;return 0===t.length?null:(0,a.jsx)(ea.nD,{type:"multiple",className:"w-full",children:t.map((e,t)=>(0,a.jsxs)(ea.As,{value:"step-".concat(t),children:[(0,a.jsx)(ea.$m,{className:"hover:no-underline",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"font-medium text-sm",children:e.step_name}),(0,a.jsx)(V.E,{variant:"Completed"===e.status?"default":"destructive",className:"text-xs",children:e.status})]})}),(0,a.jsxs)(ea.ub,{children:[(0,a.jsx)("div",{className:"flex justify-end mb-2",children:(0,a.jsxs)(x.$,{size:"sm",variant:"outline",onClick:()=>{var t;return t=e.data_json,void navigator.clipboard.writeText(t)},children:[(0,a.jsx)(en.A,{className:"w-3.5 h-3.5 mr-1.5"}),"Copy JSON"]})}),(0,a.jsx)("pre",{className:"bg-muted p-3 rounded-md text-xs overflow-x-auto max-h-96 leading-relaxed",children:JSON.stringify(JSON.parse(e.data_json),null,2)})]})]},t))})};var er=s(41303);let ei=e=>{let{run:t,isLoading:s,onShowResultDetail:n,isDetailViewActive:l}=e;return s?(0,a.jsx)($.Hj,{children:(0,a.jsx)($.nA,{colSpan:100,className:"p-0",children:(0,a.jsxs)("div",{className:"flex items-center justify-center p-6 h-28 bg-muted/30",children:[(0,a.jsx)(c.A,{className:"h-5 w-5 animate-spin text-muted-foreground"}),(0,a.jsx)("p",{className:"ml-2 text-sm text-muted-foreground",children:"Loading results…"})]})})}):t&&t.results?(0,a.jsx)($.Hj,{children:(0,a.jsx)($.nA,{colSpan:100,className:"p-0",children:(0,a.jsxs)("div",{className:"border-t bg-background",children:[(0,a.jsx)(er.xr,{results:t.results,onShowResultDetail:n,isDetailViewActive:l}),t.step_logs&&t.step_logs.length>0&&(0,a.jsx)("div",{className:"border-t px-4 py-3",children:(0,a.jsx)(el,{logs:t.step_logs})})]})})}):(0,a.jsx)($.Hj,{children:(0,a.jsx)($.nA,{colSpan:100,className:"p-0",children:(0,a.jsx)("div",{className:"p-4 text-center text-muted-foreground text-sm bg-muted/20",children:"No results found or run data missing."})})})};var ed=s(90368),eo=s(28567);let ec=e=>{let{runs:t,expandedRunId:s,selectedRun:n,isLoadingRuns:l,isLoadingResults:r,selectedResultId:i,onToggleExpand:d,onShowResultDetail:o,totalRuns:u,currentPage:h,runsPerPage:p,onPageChange:g}=e,f=Math.ceil(u/p);return(0,a.jsxs)("div",{className:"flex flex-col h-full bg-muted/10",children:[(0,a.jsx)("div",{className:"px-3 py-2.5 border-b bg-card shrink-0",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold",children:"Runs"}),(0,a.jsxs)("span",{className:"text-xs text-muted-foreground tabular-nums",children:[u," total"]})]})}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto min-h-0",children:l?(0,a.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,a.jsx)(c.A,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):0===t.length?(0,a.jsx)("p",{className:"text-xs text-muted-foreground text-center py-6 px-3",children:"No runs found."}):(0,a.jsx)("div",{className:"divide-y",children:t.map((e,t)=>{let l=s===e.id,x=e.attack?e.attackType||"Unknown":"Direct";return(0,a.jsxs)("div",{children:[(0,a.jsxs)("button",{className:"w-full text-left px-3 py-2.5 hover:bg-muted/50 transition-colors flex items-start gap-2 ".concat(l?"bg-muted/40":""),onClick:()=>e.id&&d(e.id),children:[(0,a.jsx)("span",{className:"mt-0.5 shrink-0 text-muted-foreground",children:l?(0,a.jsx)(H.A,{className:"h-3.5 w-3.5"}):(0,a.jsx)(Z.A,{className:"h-3.5 w-3.5"})}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[(0,a.jsxs)("span",{className:"text-xs font-medium",children:["Run #",u-((h-1)*p+t)]}),(0,a.jsx)(V.E,{variant:(e=>e===m.S5d.Completed?"default":e===m.S5d.Failed?"destructive":"secondary")(e.status),className:"text-[10px] py-0 px-1.5 h-4 shrink-0",children:e.status})]}),(0,a.jsx)("p",{className:"text-[11px] text-muted-foreground truncate mt-0.5",children:x}),(0,a.jsx)("p",{className:"text-[10px] text-muted-foreground mt-0.5",children:new Date(e.timestamp).toLocaleDateString()})]})]}),l&&(0,a.jsx)("div",{className:"border-t ml-4 border-l-2 border-l-primary/40 bg-muted/20",children:r?(0,a.jsx)("div",{className:"flex items-center justify-center py-4",children:(0,a.jsx)(c.A,{className:"h-4 w-4 animate-spin text-muted-foreground"})}):(null==n?void 0:n.results)&&n.results.length>0?(0,a.jsx)("div",{className:"divide-y",children:[...n.results].sort((e,t)=>new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()).map((e,t)=>{let s=(0,er.jI)(e.evaluationStatus),n=(0,eo.Bn)(e,null),l=e.id===i;return(0,a.jsxs)("button",{className:"w-full text-left px-3 py-2 hover:bg-muted/50 transition-colors ".concat(l?"bg-primary/10 border-r-2 border-r-primary":""),onClick:()=>o(e),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[(0,a.jsxs)("span",{className:"text-[11px] font-medium text-muted-foreground",children:["Result ",t+1]}),(0,a.jsx)(V.E,{variant:s.variant,className:"text-[10px] py-0 px-1.5 h-4 shrink-0",children:s.label})]}),n&&(0,a.jsx)("p",{className:"text-[10px] text-muted-foreground truncate mt-0.5",children:n})]},e.id)})}):(0,a.jsx)("p",{className:"text-[11px] text-muted-foreground text-center py-3",children:"No results"})})]},e.id)})})}),f>1&&(0,a.jsxs)("div",{className:"border-t px-3 py-2 bg-card shrink-0 flex items-center justify-between",children:[(0,a.jsx)(x.$,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:()=>g(Math.max(1,h-1)),disabled:1===h,children:(0,a.jsx)(ed.A,{className:"h-3.5 w-3.5"})}),(0,a.jsxs)("span",{className:"text-xs text-muted-foreground tabular-nums",children:[h," / ",f]}),(0,a.jsx)(x.$,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:()=>g(Math.min(f,h+1)),disabled:h===f,children:(0,a.jsx)(Z.A,{className:"h-3.5 w-3.5"})})]})]})};var eu=s(63819);let ex=(0,p.h)("StatsPage"),em=()=>{var e,t;let[s,p]=(0,n.useState)([]),[f,j]=(0,n.useState)(null),[v,N]=(0,n.useState)(!0),[b,w]=(0,n.useState)(!1),[y,k]=(0,n.useState)(null),[S,C]=(0,n.useState)(null),[A,z]=(0,n.useState)(new Set),[F,P]=(0,n.useState)(0),[$,V]=(0,n.useState)(1),[H,Z]=(0,n.useState)(10),[q,W]=(0,n.useState)(new Set),[X,G]=(0,n.useState)(null),[K,Q]=(0,n.useState)(null),[Y,ee]=(0,n.useState)({}),[ea,en]=(0,n.useState)(void 0),[el,er]=(0,n.useState)(void 0),[ed,eo]=(0,n.useState)(void 0),[em,eh]=(0,n.useState)(void 0),[ep,eg]=(0,n.useState)(B),{user:ef}=(0,g.h)(),ej=(0,n.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};N(!0),C(null);try{var t;let s={page:$,pageSize:H,agent:e.agentId,status:e.status,attack:e.attackId};Object.keys(s).forEach(e=>void 0===s[e]&&delete s[e]);let a=await h.ME.runList(s);p(a.results||[]),P(a.count||0),ex.debug({count:null==(t=a.results)?void 0:t.length},"Fetched runs")}catch(e){ex.error({err:e},"Failed to fetch runs"),C(e.message||"Failed to fetch runs. Please try again.")}N(!1)},[$,H]);(0,n.useEffect)(()=>{let e=!1;return h.userApi.userMeRetrieve().then(t=>{var s;e||G(null!=(s=t.user)?s:null)}).catch(()=>{}),()=>{e=!0}},[]),(0,n.useEffect)(()=>{ej({agentId:ed,status:em,attackId:el,runId:ea})},[ej,ed,em,el,ea,H,$]),(0,n.useEffect)(()=>{(async()=>{if(!s||0===s.length)return;let e=e=>{let t=[e];return e.includes("|")&&t.push(e.replace("|","_")),e.includes("_")&&t.push(e.replace("_","|")),t},t=Array.from(new Set(s.map(e=>e.ownerUsername).filter(t=>!!t&&!e(t).some(e=>Y[e]))));if(0!==t.length){ex.debug({count:t.length},"Fetching user profiles for current page runs");try{let t=await h.userApi.userList({page:1}),s={};if(t.results)for(let a of t.results){let t=a.email?a.email.split("@")[0]:null;if(!t)continue;let n=a.keycloakUserId||a.auth0UserId;if(n)for(let a of e(n))s[a]=t;if(a.username&&et(a.username))for(let n of e(a.username))s[n]=t}Object.keys(s).length>0&&(ee(e=>({...e,...s})),ex.debug({count:Object.keys(s).length},"Fetched user display names"))}catch(e){ex.error({err:e},"Failed to fetch user profiles")}}})()},[s]);let ev=(e,t)=>{z(s=>{let a=new Set(s);return!0===t?a.add(e):a.delete(e),a})},eN=async e=>{if(e&&confirm("Are you sure you want to delete this run? This action cannot be undone.")){W(t=>new Set(t).add(e)),C(null);try{await h.ME.runDestroy({id:e}),p(t=>t.filter(t=>t.id!==e)),z(t=>{let s=new Set(t);return s.delete(e),s})}catch(e){C(e.message||"Failed to delete run.")}finally{W(t=>{let s=new Set(t);return s.delete(e),s})}}},eb=async()=>{if(0!==A.size&&confirm("Are you sure you want to delete the selected runs? This action cannot be undone.")){C(null),W(new Set(A));try{await Promise.all(Array.from(A).map(e=>h.ME.runDestroy({id:e}))),p(e=>e.filter(e=>e.id&&!A.has(e.id))),z(new Set)}catch(e){C(e.message||"Failed to delete selected runs.")}finally{W(new Set)}}},ew=async e=>{if(y===e)k(null),j(null);else{k(e),w(!0),j(null);try{var t,s,a;let n=await h.ME.runRetrieve({id:e});j(n),ex.debug({runId:e,resultCount:(null==(t=n.results)?void 0:t.length)||0,firstResultFields:(null==(s=n.results)?void 0:s[0])?{responseStatusCode:n.results[0].responseStatusCode,latencyMs:n.results[0].latencyMs,tracesCount:(null==(a=n.results[0].traces)?void 0:a.length)||0}:null},"Run details fetched")}catch(t){ex.error({err:t,runId:e},"Failed to fetch run details"),C(t.message||"Failed to load details for Run ".concat(e,".")),k(null)}finally{w(!1)}}},ey=e=>{Q(e),ex.debug({resultId:e.id},"Showing detail view for result")},ek=!!K,eS=(0,n.useMemo)(()=>K&&(null==f?void 0:f.results)?[...f.results].sort((e,t)=>new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()).findIndex(e=>e.id===K.id):-1,[K,f]);return(0,a.jsxs)(O.M,{title:"Runs",description:"Monitor and analyze your attack runs.",children:[S&&(0,a.jsxs)(l.Fc,{variant:"destructive",className:"mx-6 mb-4",children:[(0,a.jsx)(r.A,{className:"h-4 w-4"}),(0,a.jsx)(l.XL,{children:"Error"}),(0,a.jsx)(l.TN,{children:S})]}),ek&&K?(0,a.jsxs)("div",{className:"mx-6 border flex overflow-hidden",style:{height:"calc(100vh - 9rem)"},children:[(0,a.jsx)("div",{className:"w-64 shrink-0 border-r overflow-hidden flex flex-col",children:(0,a.jsx)(ec,{runs:s,expandedRunId:y,selectedRun:f,isLoadingRuns:v,isLoadingResults:b,selectedResultId:K.id,onToggleExpand:ew,onShowResultDetail:ey,totalRuns:F,currentPage:$,runsPerPage:H,onPageChange:V})}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,a.jsx)(eu.I,{result:K,onClose:()=>{Q(null)},attackId:null!=(t=null==f?void 0:f.attack)?t:null,resultIndex:eS,totalResults:null==f||null==(e=f.results)?void 0:e.length})})]}):(0,a.jsxs)("div",{className:"border mx-6",children:[!v&&F>0&&(0,a.jsxs)("div",{className:"px-4 py-3 border-b flex flex-wrap justify-between items-center gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-wrap gap-3 items-center",children:[(0,a.jsxs)(_,{children:[(0,a.jsx)(R,{asChild:!0,children:(0,a.jsxs)(x.$,{variant:"outline",size:"sm",className:"h-8",children:[(0,a.jsx)(i.A,{className:"h-4 w-4 mr-2"}),"Filters",(em||ed||el)&&(0,a.jsx)("span",{className:"ml-2 rounded-full bg-primary text-primary-foreground text-xs px-1.5 py-0.5",children:[em,ed,el].filter(Boolean).length})]})}),(0,a.jsx)(D,{className:"w-[320px] p-4",align:"start",children:(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("h4",{className:"font-medium text-sm",children:"Filters"}),(em||ed||el)&&(0,a.jsxs)(x.$,{variant:"ghost",size:"sm",className:"h-6 px-2 text-xs",onClick:()=>{eh(void 0),eo(void 0),er(void 0)},children:[(0,a.jsx)(d.A,{className:"h-3 w-3 mr-1"}),"Clear all"]})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)(T.J,{className:"text-xs text-muted-foreground",children:"Status"}),(0,a.jsx)(M,{options:Object.values(m.S5d).map(e=>({value:e,label:e})),value:em,onChange:e=>eh(e||void 0),triggerPlaceholder:"Select status...",searchPlaceholder:"Search Status...",emptyStateMessage:"No Status found.",className:"w-full"})]}),(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)(T.J,{className:"text-xs text-muted-foreground",children:"Agent"}),(0,a.jsx)(M,{options:s.map(e=>e.agent).filter((e,t,s)=>e&&s.indexOf(e)===t).map(e=>({value:e,label:e})),value:ed,onChange:e=>eo(e||void 0),triggerPlaceholder:"Select agent...",searchPlaceholder:"Search Agent...",emptyStateMessage:"No Agent found.",className:"w-full"})]}),(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)(T.J,{className:"text-xs text-muted-foreground",children:"Attack"}),(0,a.jsx)(M,{options:s.map(e=>e.attack).filter((e,t,s)=>e&&s.indexOf(e)===t).map(e=>({value:e,label:e})),value:el,onChange:e=>er(e||void 0),triggerPlaceholder:"Select attack...",searchPlaceholder:"Search Attack...",emptyStateMessage:"No Attack found.",className:"w-full"})]})]})]})})]}),(0,a.jsxs)(_,{children:[(0,a.jsx)(R,{asChild:!0,children:(0,a.jsxs)(x.$,{variant:"outline",size:"sm",className:"h-8",children:[(0,a.jsx)(o.A,{className:"h-4 w-4 mr-2"}),"Columns"]})}),(0,a.jsx)(D,{className:"w-[200px] p-4",align:"start",children:(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("h4",{className:"font-medium text-sm",children:"Toggle columns"}),(0,a.jsx)(J.w,{}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(E,{id:"col-agent",checked:ep.agent,onCheckedChange:()=>eg({...ep,agent:!ep.agent})}),(0,a.jsx)(T.J,{htmlFor:"col-agent",className:"text-sm cursor-pointer",children:"Agent"})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(E,{id:"col-owner",checked:ep.owner,onCheckedChange:()=>eg({...ep,owner:!ep.owner})}),(0,a.jsx)(T.J,{htmlFor:"col-owner",className:"text-sm cursor-pointer",children:"Owner"})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(E,{id:"col-organization",checked:ep.organization,onCheckedChange:()=>eg({...ep,organization:!ep.organization})}),(0,a.jsx)(T.J,{htmlFor:"col-organization",className:"text-sm cursor-pointer",children:"Organization"})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(E,{id:"col-attack",checked:ep.attack,onCheckedChange:()=>eg({...ep,attack:!ep.attack})}),(0,a.jsx)(T.J,{htmlFor:"col-attack",className:"text-sm cursor-pointer",children:"Attack"})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(E,{id:"col-status",checked:ep.status,onCheckedChange:()=>eg({...ep,status:!ep.status})}),(0,a.jsx)(T.J,{htmlFor:"col-status",className:"text-sm cursor-pointer",children:"Status"})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(E,{id:"col-notes",checked:ep.notes,onCheckedChange:()=>eg({...ep,notes:!ep.notes})}),(0,a.jsx)(T.J,{htmlFor:"col-notes",className:"text-sm cursor-pointer",children:"Notes"})]})]})]})})]}),A.size>0&&(0,a.jsxs)(x.$,{variant:"destructive",size:"sm",onClick:()=>eb(),disabled:q.size>0,children:["Delete Selected (",A.size,")"]})]}),(0,a.jsx)("div",{className:"flex flex-wrap items-center gap-4",children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:"Per page:"}),(0,a.jsxs)(I.l6,{value:H.toString(),onValueChange:e=>{Z(parseInt(e,10)),V(1)},children:[(0,a.jsx)(I.bq,{className:"w-[70px] h-8",children:(0,a.jsx)(I.yv,{placeholder:H.toString()})}),(0,a.jsx)(I.gC,{children:[10,20,50,100].map(e=>(0,a.jsx)(I.eb,{value:e.toString(),children:e},e))})]})]}),(0,a.jsxs)("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:["Page ",$," of ",Math.ceil(F/H)]}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(x.$,{variant:"outline",size:"sm",className:"h-8",onClick:()=>V(e=>Math.max(1,e-1)),disabled:1===$,children:"Previous"}),(0,a.jsx)(x.$,{variant:"outline",size:"sm",className:"h-8",onClick:()=>V(e=>Math.min(Math.ceil(F/H),e+1)),disabled:$===Math.ceil(F/H)||0===F,children:"Next"})]})]})})]}),(0,a.jsx)("div",{className:"p-4",children:v?(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-12",children:[(0,a.jsx)(c.A,{className:"h-10 w-10 animate-spin text-muted-foreground mb-3"}),(0,a.jsx)("p",{className:"text-muted-foreground",children:"Loading runs..."})]}):0===s.length?(0,a.jsx)(L.p,{icon:u.A,title:"No Runs Found",description:"No attack runs have been executed yet. Start a new attack to see results here."}):(0,a.jsx)("div",{className:"flex flex-col gap-4",children:(0,a.jsx)("div",{className:"w-full min-w-0",children:(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsx)(U,{runs:s,selectedRunIds:A,onSelectAllRuns:e=>{!0===e?z(new Set(s.map(e=>e.id).filter(e=>void 0!==e))):z(new Set)},isDetailViewActive:!1,columnVisibility:ep,children:s.map((e,t)=>{var s;return(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)(es,{run:e,index:t,selectedRunIds:A,expandedRunId:y,onSelectRun:ev,onToggleExpand:ew,onDeleteRun:eN,deletingRunIds:q,currentUserPk:X,currentUserDisplayName:ef?(e=>{if(e)return e.name||e.email||e.preferred_username||e.nickname||void 0})(ef):void 0,attackName:null!=(s=e.attackType)?s:null,isDetailViewActive:!1,totalRuns:F,currentPage:$,runsPerPage:H,userDisplayNameMap:Y,columnVisibility:ep}),y===e.id&&(0,a.jsx)(ei,{run:f,isLoading:b,onShowResultDetail:ey,isDetailViewActive:!1})]},e.id)})})})})})})]})]})}},76444:(e,t,s)=>{"use strict";s.d(t,{J:()=>r});var a=s(95155);s(12115);var n=s(85408),l=s(64269);function r(e){let{className:t,...s}=e;return(0,a.jsx)(n.b,{"data-slot":"label",className:(0,l.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...s})}},80230:(e,t,s)=>{"use strict";s.d(t,{h:()=>r});var a=s(12115),n=s(34105);let l=async()=>"";function r(){let e=(0,a.useContext)(n.c);return e||{provider:"disabled",user:void 0,isAuthenticated:!1,isLoading:!0,login:void 0,logout:void 0,getAccessTokenSilently:l}}}},e=>{e.O(0,[187,539,292,8,9,532,391,594,411,200,924,680,441,493,358],()=>e(e.s=49819)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--HIoXscjHtxVCsDuJEjr4J--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/c66d365ae0bced97.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-a101479ef1443c74.js"/><script src="/_next/static/chunks/4bd1b696-409494caf8c83275.js" async=""></script><script src="/_next/static/chunks/493-531bb5333afac7a6.js" async=""></script><script src="/_next/static/chunks/main-app-641b4390ed531d52.js" async=""></script><script src="/_next/static/chunks/abf9ae41-a2ad9357d01c2a31.js" async=""></script><script src="/_next/static/chunks/187-849543277a4f9394.js" async=""></script><script src="/_next/static/chunks/539-4b1c7db488293715.js" async=""></script><script src="/_next/static/chunks/292-fca7393c81ef214a.js" async=""></script><script src="/_next/static/chunks/619-7c7bed420eb7c654.js" async=""></script><script src="/_next/static/chunks/8-42d532ba984375d8.js" async=""></script><script src="/_next/static/chunks/9-22df388e4049bb14.js" async=""></script><script src="/_next/static/chunks/391-c0e09f348021cffc.js" async=""></script><script src="/_next/static/chunks/921-92a9ab4120f81d51.js" async=""></script><script src="/_next/static/chunks/130-ea2c854c99cceb32.js" async=""></script><script src="/_next/static/chunks/924-bbaf675cfa822d94.js" async=""></script><script src="/_next/static/chunks/app/layout-7c1fdd2e3cdffab4.js" async=""></script><script src="/_next/static/chunks/app/not-found-60bbe1f5c6cf66f2.js" async=""></script><script src="/_next/static/chunks/594-97628408277cbac5.js" async=""></script><script src="/_next/static/chunks/905-ff5fbcc54083c7ee.js" async=""></script><script src="/_next/static/chunks/app/agents/page-63d562af288bd470.js" async=""></script><title>HackAgent Dashboard</title><meta name="description" content="Dashboard for HackAgent API"/><link rel="icon" href="/favicon.ico"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><script src="/_next/static/chunks/webpack-a101479ef1443c74.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[27180,[\"330\",\"static/chunks/abf9ae41-a2ad9357d01c2a31.js\",\"187\",\"static/chunks/187-849543277a4f9394.js\",\"539\",\"static/chunks/539-4b1c7db488293715.js\",\"292\",\"static/chunks/292-fca7393c81ef214a.js\",\"619\",\"static/chunks/619-7c7bed420eb7c654.js\",\"8\",\"static/chunks/8-42d532ba984375d8.js\",\"9\",\"static/chunks/9-22df388e4049bb14.js\",\"391\",\"static/chunks/391-c0e09f348021cffc.js\",\"921\",\"static/chunks/921-92a9ab4120f81d51.js\",\"130\",\"static/chunks/130-ea2c854c99cceb32.js\",\"924\",\"static/chunks/924-bbaf675cfa822d94.js\",\"177\",\"static/chunks/app/layout-7c1fdd2e3cdffab4.js\"],\"Authorization\"]\n3:I[96280,[\"330\",\"static/chunks/abf9ae41-a2ad9357d01c2a31.js\",\"187\",\"static/chunks/187-849543277a4f9394.js\",\"539\",\"static/chunks/539-4b1c7db488293715.js\",\"292\",\"static/chunks/292-fca7393c81ef214a.js\",\"619\",\"static/chunks/619-7c7bed420eb7c654.js\",\"8\",\"static/chunks/8-42d532ba984375d8.js\",\"9\",\"static/chunks/9-22df388e4049bb14.js\",\"391\",\"static/chunks/391-c0e09f348021cffc.js\",\"921\",\"static/chunks/921-92a9ab4120f81d51.js\",\"130\",\"static/chunks/130-ea2c854c99cceb32.js\",\"924\",\"static/chunks/924-bbaf675cfa822d94.js\",\"177\",\"static/chunks/app/layout-7c1fdd2e3cdffab4.js\"],\"default\"]\n4:I[9766,[],\"\"]\n5:I[98924,[],\"\"]\n6:I[52619,[\"619\",\"static/chunks/619-7c7bed420eb7c654.js\",\"345\",\"static/chunks/app/not-found-60bbe1f5c6cf66f2.js\"],\"\"]\n7:I[81959,[],\"ClientPageRoot\"]\n8:I[17254,[\"187\",\"static/chunks/187-849543277a4f9394.js\",\"539\",\"static/chunks/539-4b1c7db488293715.js\",\"292\",\"static/chunks/292-fca7393c81ef214a.js\",\"8\",\"static/chunks/8-42d532ba984375d8.js\",\"391\",\"static/chunks/391-c0e09f348021cffc.js\",\"594\",\"static/chunks/594-97628408277cbac5.js\",\"924\",\"static/chunks/924-bbaf675cfa822d94.js\",\"905\",\"static/chunks/905-ff5fbcc54083c7ee.js\",\"165\",\"static/chunks/app/agents/page-63d562af288bd470.js\"],\"default\"]\nb:I[24431,[],\"OutletBoundary\"]\nd:I[15278,[],\"AsyncMetadataOutlet\"]\nf:I[24431,[],\"ViewportBoundary\"]\n11:I[24431,[],\"MetadataBoundary\"]\n12:\"$Sreact.suspense\"\n14:I[57150,[],\"\"]\n:HL[\"/_next/static/css/c66d365ae0bced97.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"HIoXscjHtxVCsDuJEjr4J\",\"p\":\"\",\"c\":[\"\",\"agents\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"agents\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/c66d365ae0bced97.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"div\",null,{\"className\":\"flex items-center justify-center min-h-screen\",\"children\":[\"$\",\"div\",null,{\"className\":\"text-center\",\"children\":[[\"$\",\"h1\",null,{\"className\":\"text-4xl font-bold mb-4\",\"children\":\"404\"}],[\"$\",\"p\",null,{\"className\":\"text-gray-600 mb-8\",\"children\":\"Page not found\"}],[\"$\",\"$L6\",null,{\"href\":\"/\",\"className\":\"text-blue-600 hover:underline\",\"children\":\"Back to home\"}]]}]}],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],{\"children\":[\"agents\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L7\",null,{\"Component\":\"$8\",\"searchParams\":{},\"params\":{},\"promises\":[\"$@9\",\"$@a\"]}],null,[\"$\",\"$Lb\",null,{\"children\":[\"$Lc\",[\"$\",\"$Ld\",null,{\"promise\":\"$@e\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$Lf\",null,{\"children\":\"$L10\"}],null],[\"$\",\"$L11\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$12\",null,{\"fallback\":null,\"children\":\"$L13\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$14\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:{}\na:\"$0:f:0:1:2:children:2:children:1:props:children:0:props:params\"\n"])</script><script>self.__next_f.push([1,"10:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\nc:null\n"])</script><script>self.__next_f.push([1,"15:I[80622,[],\"IconMark\"]\ne:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"HackAgent Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Dashboard for HackAgent API\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico\"}],[\"$\",\"$L15\",\"3\",{}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"13:\"$e:metadata\"\n"])</script></body></html>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[27180,["330","static/chunks/abf9ae41-a2ad9357d01c2a31.js","187","static/chunks/187-849543277a4f9394.js","539","static/chunks/539-4b1c7db488293715.js","292","static/chunks/292-fca7393c81ef214a.js","619","static/chunks/619-7c7bed420eb7c654.js","8","static/chunks/8-42d532ba984375d8.js","9","static/chunks/9-22df388e4049bb14.js","391","static/chunks/391-c0e09f348021cffc.js","921","static/chunks/921-
|
|
3
|
-
3:I[
|
|
2
|
+
2:I[27180,["330","static/chunks/abf9ae41-a2ad9357d01c2a31.js","187","static/chunks/187-849543277a4f9394.js","539","static/chunks/539-4b1c7db488293715.js","292","static/chunks/292-fca7393c81ef214a.js","619","static/chunks/619-7c7bed420eb7c654.js","8","static/chunks/8-42d532ba984375d8.js","9","static/chunks/9-22df388e4049bb14.js","391","static/chunks/391-c0e09f348021cffc.js","921","static/chunks/921-92a9ab4120f81d51.js","130","static/chunks/130-ea2c854c99cceb32.js","924","static/chunks/924-bbaf675cfa822d94.js","177","static/chunks/app/layout-7c1fdd2e3cdffab4.js"],"Authorization"]
|
|
3
|
+
3:I[96280,["330","static/chunks/abf9ae41-a2ad9357d01c2a31.js","187","static/chunks/187-849543277a4f9394.js","539","static/chunks/539-4b1c7db488293715.js","292","static/chunks/292-fca7393c81ef214a.js","619","static/chunks/619-7c7bed420eb7c654.js","8","static/chunks/8-42d532ba984375d8.js","9","static/chunks/9-22df388e4049bb14.js","391","static/chunks/391-c0e09f348021cffc.js","921","static/chunks/921-92a9ab4120f81d51.js","130","static/chunks/130-ea2c854c99cceb32.js","924","static/chunks/924-bbaf675cfa822d94.js","177","static/chunks/app/layout-7c1fdd2e3cdffab4.js"],"default"]
|
|
4
4
|
4:I[9766,[],""]
|
|
5
5
|
5:I[98924,[],""]
|
|
6
6
|
6:I[52619,["619","static/chunks/619-7c7bed420eb7c654.js","345","static/chunks/app/not-found-60bbe1f5c6cf66f2.js"],""]
|
|
@@ -13,7 +13,7 @@ f:I[24431,[],"ViewportBoundary"]
|
|
|
13
13
|
12:"$Sreact.suspense"
|
|
14
14
|
14:I[57150,[],""]
|
|
15
15
|
:HL["/_next/static/css/c66d365ae0bced97.css","style"]
|
|
16
|
-
0:{"P":null,"b":"
|
|
16
|
+
0:{"P":null,"b":"HIoXscjHtxVCsDuJEjr4J","p":"","c":["","agents"],"i":false,"f":[[["",{"children":["agents",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/c66d365ae0bced97.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex items-center justify-center min-h-screen","children":["$","div",null,{"className":"text-center","children":[["$","h1",null,{"className":"text-4xl font-bold mb-4","children":"404"}],["$","p",null,{"className":"text-gray-600 mb-8","children":"Page not found"}],["$","$L6",null,{"href":"/","className":"text-blue-600 hover:underline","children":"Back to home"}]]}]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],{"children":["agents",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],null],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true}
|
|
17
17
|
9:{}
|
|
18
18
|
a:"$0:f:0:1:2:children:2:children:1:props:children:0:props:params"
|
|
19
19
|
10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--HIoXscjHtxVCsDuJEjr4J--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/c66d365ae0bced97.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-a101479ef1443c74.js"/><script src="/_next/static/chunks/4bd1b696-409494caf8c83275.js" async=""></script><script src="/_next/static/chunks/493-531bb5333afac7a6.js" async=""></script><script src="/_next/static/chunks/main-app-641b4390ed531d52.js" async=""></script><script src="/_next/static/chunks/abf9ae41-a2ad9357d01c2a31.js" async=""></script><script src="/_next/static/chunks/187-849543277a4f9394.js" async=""></script><script src="/_next/static/chunks/539-4b1c7db488293715.js" async=""></script><script src="/_next/static/chunks/292-fca7393c81ef214a.js" async=""></script><script src="/_next/static/chunks/619-7c7bed420eb7c654.js" async=""></script><script src="/_next/static/chunks/8-42d532ba984375d8.js" async=""></script><script src="/_next/static/chunks/9-22df388e4049bb14.js" async=""></script><script src="/_next/static/chunks/391-c0e09f348021cffc.js" async=""></script><script src="/_next/static/chunks/921-92a9ab4120f81d51.js" async=""></script><script src="/_next/static/chunks/130-ea2c854c99cceb32.js" async=""></script><script src="/_next/static/chunks/924-bbaf675cfa822d94.js" async=""></script><script src="/_next/static/chunks/app/layout-7c1fdd2e3cdffab4.js" async=""></script><script src="/_next/static/chunks/app/not-found-60bbe1f5c6cf66f2.js" async=""></script><script src="/_next/static/chunks/144-7c65ac1a3b9b2a8a.js" async=""></script><script src="/_next/static/chunks/855-a78b13b4bd1c76cb.js" async=""></script><script src="/_next/static/chunks/377-e53ad1c182dbc31b.js" async=""></script><script src="/_next/static/chunks/app/api-keys/page-d142f17db846e963.js" async=""></script><title>HackAgent Dashboard</title><meta name="description" content="Dashboard for HackAgent API"/><link rel="icon" href="/favicon.ico"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><script src="/_next/static/chunks/webpack-a101479ef1443c74.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[27180,[\"330\",\"static/chunks/abf9ae41-a2ad9357d01c2a31.js\",\"187\",\"static/chunks/187-849543277a4f9394.js\",\"539\",\"static/chunks/539-4b1c7db488293715.js\",\"292\",\"static/chunks/292-fca7393c81ef214a.js\",\"619\",\"static/chunks/619-7c7bed420eb7c654.js\",\"8\",\"static/chunks/8-42d532ba984375d8.js\",\"9\",\"static/chunks/9-22df388e4049bb14.js\",\"391\",\"static/chunks/391-c0e09f348021cffc.js\",\"921\",\"static/chunks/921-92a9ab4120f81d51.js\",\"130\",\"static/chunks/130-ea2c854c99cceb32.js\",\"924\",\"static/chunks/924-bbaf675cfa822d94.js\",\"177\",\"static/chunks/app/layout-7c1fdd2e3cdffab4.js\"],\"Authorization\"]\n3:I[96280,[\"330\",\"static/chunks/abf9ae41-a2ad9357d01c2a31.js\",\"187\",\"static/chunks/187-849543277a4f9394.js\",\"539\",\"static/chunks/539-4b1c7db488293715.js\",\"292\",\"static/chunks/292-fca7393c81ef214a.js\",\"619\",\"static/chunks/619-7c7bed420eb7c654.js\",\"8\",\"static/chunks/8-42d532ba984375d8.js\",\"9\",\"static/chunks/9-22df388e4049bb14.js\",\"391\",\"static/chunks/391-c0e09f348021cffc.js\",\"921\",\"static/chunks/921-92a9ab4120f81d51.js\",\"130\",\"static/chunks/130-ea2c854c99cceb32.js\",\"924\",\"static/chunks/924-bbaf675cfa822d94.js\",\"177\",\"static/chunks/app/layout-7c1fdd2e3cdffab4.js\"],\"default\"]\n4:I[9766,[],\"\"]\n5:I[98924,[],\"\"]\n6:I[52619,[\"619\",\"static/chunks/619-7c7bed420eb7c654.js\",\"345\",\"static/chunks/app/not-found-60bbe1f5c6cf66f2.js\"],\"\"]\n7:I[81959,[],\"ClientPageRoot\"]\n8:I[33369,[\"187\",\"static/chunks/187-849543277a4f9394.js\",\"539\",\"static/chunks/539-4b1c7db488293715.js\",\"292\",\"static/chunks/292-fca7393c81ef214a.js\",\"144\",\"static/chunks/144-7c65ac1a3b9b2a8a.js\",\"855\",\"static/chunks/855-a78b13b4bd1c76cb.js\",\"377\",\"static/chunks/377-e53ad1c182dbc31b.js\",\"924\",\"static/chunks/924-bbaf675cfa822d94.js\",\"840\",\"static/chunks/app/api-keys/page-d142f17db846e963.js\"],\"default\"]\nb:I[24431,[],\"OutletBoundary\"]\nd:I[15278,[],\"AsyncMetadataOutlet\"]\nf:I[24431,[],\"ViewportBoundary\"]\n11:I[24431,[],\"MetadataBoundary\"]\n12:\"$Sreact.suspense\"\n14:I[57150,[],\"\"]\n:HL[\"/_next/static/css/c66d365ae0bced97.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"HIoXscjHtxVCsDuJEjr4J\",\"p\":\"\",\"c\":[\"\",\"api-keys\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"api-keys\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/c66d365ae0bced97.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"div\",null,{\"className\":\"flex items-center justify-center min-h-screen\",\"children\":[\"$\",\"div\",null,{\"className\":\"text-center\",\"children\":[[\"$\",\"h1\",null,{\"className\":\"text-4xl font-bold mb-4\",\"children\":\"404\"}],[\"$\",\"p\",null,{\"className\":\"text-gray-600 mb-8\",\"children\":\"Page not found\"}],[\"$\",\"$L6\",null,{\"href\":\"/\",\"className\":\"text-blue-600 hover:underline\",\"children\":\"Back to home\"}]]}]}],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],{\"children\":[\"api-keys\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L7\",null,{\"Component\":\"$8\",\"searchParams\":{},\"params\":{},\"promises\":[\"$@9\",\"$@a\"]}],null,[\"$\",\"$Lb\",null,{\"children\":[\"$Lc\",[\"$\",\"$Ld\",null,{\"promise\":\"$@e\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$Lf\",null,{\"children\":\"$L10\"}],null],[\"$\",\"$L11\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$12\",null,{\"fallback\":null,\"children\":\"$L13\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$14\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:{}\na:\"$0:f:0:1:2:children:2:children:1:props:children:0:props:params\"\n"])</script><script>self.__next_f.push([1,"10:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\nc:null\n"])</script><script>self.__next_f.push([1,"15:I[80622,[],\"IconMark\"]\ne:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"HackAgent Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Dashboard for HackAgent API\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico\"}],[\"$\",\"$L15\",\"3\",{}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"13:\"$e:metadata\"\n"])</script></body></html>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[27180,["330","static/chunks/abf9ae41-a2ad9357d01c2a31.js","187","static/chunks/187-849543277a4f9394.js","539","static/chunks/539-4b1c7db488293715.js","292","static/chunks/292-fca7393c81ef214a.js","619","static/chunks/619-7c7bed420eb7c654.js","8","static/chunks/8-42d532ba984375d8.js","9","static/chunks/9-22df388e4049bb14.js","391","static/chunks/391-c0e09f348021cffc.js","921","static/chunks/921-
|
|
3
|
-
3:I[
|
|
2
|
+
2:I[27180,["330","static/chunks/abf9ae41-a2ad9357d01c2a31.js","187","static/chunks/187-849543277a4f9394.js","539","static/chunks/539-4b1c7db488293715.js","292","static/chunks/292-fca7393c81ef214a.js","619","static/chunks/619-7c7bed420eb7c654.js","8","static/chunks/8-42d532ba984375d8.js","9","static/chunks/9-22df388e4049bb14.js","391","static/chunks/391-c0e09f348021cffc.js","921","static/chunks/921-92a9ab4120f81d51.js","130","static/chunks/130-ea2c854c99cceb32.js","924","static/chunks/924-bbaf675cfa822d94.js","177","static/chunks/app/layout-7c1fdd2e3cdffab4.js"],"Authorization"]
|
|
3
|
+
3:I[96280,["330","static/chunks/abf9ae41-a2ad9357d01c2a31.js","187","static/chunks/187-849543277a4f9394.js","539","static/chunks/539-4b1c7db488293715.js","292","static/chunks/292-fca7393c81ef214a.js","619","static/chunks/619-7c7bed420eb7c654.js","8","static/chunks/8-42d532ba984375d8.js","9","static/chunks/9-22df388e4049bb14.js","391","static/chunks/391-c0e09f348021cffc.js","921","static/chunks/921-92a9ab4120f81d51.js","130","static/chunks/130-ea2c854c99cceb32.js","924","static/chunks/924-bbaf675cfa822d94.js","177","static/chunks/app/layout-7c1fdd2e3cdffab4.js"],"default"]
|
|
4
4
|
4:I[9766,[],""]
|
|
5
5
|
5:I[98924,[],""]
|
|
6
6
|
6:I[52619,["619","static/chunks/619-7c7bed420eb7c654.js","345","static/chunks/app/not-found-60bbe1f5c6cf66f2.js"],""]
|
|
@@ -13,7 +13,7 @@ f:I[24431,[],"ViewportBoundary"]
|
|
|
13
13
|
12:"$Sreact.suspense"
|
|
14
14
|
14:I[57150,[],""]
|
|
15
15
|
:HL["/_next/static/css/c66d365ae0bced97.css","style"]
|
|
16
|
-
0:{"P":null,"b":"
|
|
16
|
+
0:{"P":null,"b":"HIoXscjHtxVCsDuJEjr4J","p":"","c":["","api-keys"],"i":false,"f":[[["",{"children":["api-keys",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/c66d365ae0bced97.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex items-center justify-center min-h-screen","children":["$","div",null,{"className":"text-center","children":[["$","h1",null,{"className":"text-4xl font-bold mb-4","children":"404"}],["$","p",null,{"className":"text-gray-600 mb-8","children":"Page not found"}],["$","$L6",null,{"href":"/","className":"text-blue-600 hover:underline","children":"Back to home"}]]}]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],{"children":["api-keys",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],null],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true}
|
|
17
17
|
9:{}
|
|
18
18
|
a:"$0:f:0:1:2:children:2:children:1:props:children:0:props:params"
|
|
19
19
|
10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--HIoXscjHtxVCsDuJEjr4J--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/c66d365ae0bced97.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-a101479ef1443c74.js"/><script src="/_next/static/chunks/4bd1b696-409494caf8c83275.js" async=""></script><script src="/_next/static/chunks/493-531bb5333afac7a6.js" async=""></script><script src="/_next/static/chunks/main-app-641b4390ed531d52.js" async=""></script><script src="/_next/static/chunks/abf9ae41-a2ad9357d01c2a31.js" async=""></script><script src="/_next/static/chunks/187-849543277a4f9394.js" async=""></script><script src="/_next/static/chunks/539-4b1c7db488293715.js" async=""></script><script src="/_next/static/chunks/292-fca7393c81ef214a.js" async=""></script><script src="/_next/static/chunks/619-7c7bed420eb7c654.js" async=""></script><script src="/_next/static/chunks/8-42d532ba984375d8.js" async=""></script><script src="/_next/static/chunks/9-22df388e4049bb14.js" async=""></script><script src="/_next/static/chunks/391-c0e09f348021cffc.js" async=""></script><script src="/_next/static/chunks/921-92a9ab4120f81d51.js" async=""></script><script src="/_next/static/chunks/130-ea2c854c99cceb32.js" async=""></script><script src="/_next/static/chunks/924-bbaf675cfa822d94.js" async=""></script><script src="/_next/static/chunks/app/layout-7c1fdd2e3cdffab4.js" async=""></script><script src="/_next/static/chunks/app/not-found-60bbe1f5c6cf66f2.js" async=""></script><script src="/_next/static/chunks/1a258343-3a341c585963097c.js" async=""></script><script src="/_next/static/chunks/144-7c65ac1a3b9b2a8a.js" async=""></script><script src="/_next/static/chunks/326-0c5769668b6b2c5a.js" async=""></script><script src="/_next/static/chunks/511-cf97bbb465e76476.js" async=""></script><script src="/_next/static/chunks/app/attacks/builder/page-0a243577272698a7.js" async=""></script><link rel="preload" href="/_next/static/css/008a05b0ad6b854a.css" as="style"/><title>HackAgent Dashboard</title><meta name="description" content="Dashboard for HackAgent API"/><link rel="icon" href="/favicon.ico"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><script src="/_next/static/chunks/webpack-a101479ef1443c74.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[27180,[\"330\",\"static/chunks/abf9ae41-a2ad9357d01c2a31.js\",\"187\",\"static/chunks/187-849543277a4f9394.js\",\"539\",\"static/chunks/539-4b1c7db488293715.js\",\"292\",\"static/chunks/292-fca7393c81ef214a.js\",\"619\",\"static/chunks/619-7c7bed420eb7c654.js\",\"8\",\"static/chunks/8-42d532ba984375d8.js\",\"9\",\"static/chunks/9-22df388e4049bb14.js\",\"391\",\"static/chunks/391-c0e09f348021cffc.js\",\"921\",\"static/chunks/921-92a9ab4120f81d51.js\",\"130\",\"static/chunks/130-ea2c854c99cceb32.js\",\"924\",\"static/chunks/924-bbaf675cfa822d94.js\",\"177\",\"static/chunks/app/layout-7c1fdd2e3cdffab4.js\"],\"Authorization\"]\n3:I[96280,[\"330\",\"static/chunks/abf9ae41-a2ad9357d01c2a31.js\",\"187\",\"static/chunks/187-849543277a4f9394.js\",\"539\",\"static/chunks/539-4b1c7db488293715.js\",\"292\",\"static/chunks/292-fca7393c81ef214a.js\",\"619\",\"static/chunks/619-7c7bed420eb7c654.js\",\"8\",\"static/chunks/8-42d532ba984375d8.js\",\"9\",\"static/chunks/9-22df388e4049bb14.js\",\"391\",\"static/chunks/391-c0e09f348021cffc.js\",\"921\",\"static/chunks/921-92a9ab4120f81d51.js\",\"130\",\"static/chunks/130-ea2c854c99cceb32.js\",\"924\",\"static/chunks/924-bbaf675cfa822d94.js\",\"177\",\"static/chunks/app/layout-7c1fdd2e3cdffab4.js\"],\"default\"]\n4:I[9766,[],\"\"]\n5:I[98924,[],\"\"]\n6:I[52619,[\"619\",\"static/chunks/619-7c7bed420eb7c654.js\",\"345\",\"static/chunks/app/not-found-60bbe1f5c6cf66f2.js\"],\"\"]\n7:I[81959,[],\"ClientPageRoot\"]\n8:I[22214,[\"862\",\"static/chunks/1a258343-3a341c585963097c.js\",\"187\",\"static/chunks/187-849543277a4f9394.js\",\"144\",\"static/chunks/144-7c65ac1a3b9b2a8a.js\",\"326\",\"static/chunks/326-0c5769668b6b2c5a.js\",\"924\",\"static/chunks/924-bbaf675cfa822d94.js\",\"511\",\"static/chunks/511-cf97bbb465e76476.js\",\"60\",\"static/chunks/app/attacks/builder/page-0a243577272698a7.js\"],\"default\"]\nb:I[24431,[],\"OutletBoundary\"]\nd:I[15278,[],\"AsyncMetadataOutlet\"]\nf:I[24431,[],\"ViewportBoundary\"]\n11:I[24431,[],\"MetadataBoundary\"]\n12:\"$Sreact.suspense\"\n14:I[57150,[],\"\"]\n:HL[\"/_next/static/css/c66d365ae0bced97.css\",\"style\"]\n:HL[\"/_next/static/css/008a05b0ad6b854a.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"HIoXscjHtxVCsDuJEjr4J\",\"p\":\"\",\"c\":[\"\",\"attacks\",\"builder\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"attacks\",{\"children\":[\"builder\",{\"children\":[\"__PAGE__\",{}]}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/c66d365ae0bced97.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"div\",null,{\"className\":\"flex items-center justify-center min-h-screen\",\"children\":[\"$\",\"div\",null,{\"className\":\"text-center\",\"children\":[[\"$\",\"h1\",null,{\"className\":\"text-4xl font-bold mb-4\",\"children\":\"404\"}],[\"$\",\"p\",null,{\"className\":\"text-gray-600 mb-8\",\"children\":\"Page not found\"}],[\"$\",\"$L6\",null,{\"href\":\"/\",\"className\":\"text-blue-600 hover:underline\",\"children\":\"Back to home\"}]]}]}],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],{\"children\":[\"attacks\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"builder\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L7\",null,{\"Component\":\"$8\",\"searchParams\":{},\"params\":{},\"promises\":[\"$@9\",\"$@a\"]}],[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/008a05b0ad6b854a.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"$Lb\",null,{\"children\":[\"$Lc\",[\"$\",\"$Ld\",null,{\"promise\":\"$@e\"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$Lf\",null,{\"children\":\"$L10\"}],null],[\"$\",\"$L11\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$12\",null,{\"fallback\":null,\"children\":\"$L13\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$14\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:{}\na:\"$0:f:0:1:2:children:2:children:2:children:1:props:children:0:props:params\"\n"])</script><script>self.__next_f.push([1,"10:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\nc:null\n"])</script><script>self.__next_f.push([1,"15:I[80622,[],\"IconMark\"]\ne:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"HackAgent Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Dashboard for HackAgent API\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico\"}],[\"$\",\"$L15\",\"3\",{}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"13:\"$e:metadata\"\n"])</script></body></html>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[27180,["330","static/chunks/abf9ae41-a2ad9357d01c2a31.js","187","static/chunks/187-849543277a4f9394.js","539","static/chunks/539-4b1c7db488293715.js","292","static/chunks/292-fca7393c81ef214a.js","619","static/chunks/619-7c7bed420eb7c654.js","8","static/chunks/8-42d532ba984375d8.js","9","static/chunks/9-22df388e4049bb14.js","391","static/chunks/391-c0e09f348021cffc.js","921","static/chunks/921-
|
|
3
|
-
3:I[
|
|
2
|
+
2:I[27180,["330","static/chunks/abf9ae41-a2ad9357d01c2a31.js","187","static/chunks/187-849543277a4f9394.js","539","static/chunks/539-4b1c7db488293715.js","292","static/chunks/292-fca7393c81ef214a.js","619","static/chunks/619-7c7bed420eb7c654.js","8","static/chunks/8-42d532ba984375d8.js","9","static/chunks/9-22df388e4049bb14.js","391","static/chunks/391-c0e09f348021cffc.js","921","static/chunks/921-92a9ab4120f81d51.js","130","static/chunks/130-ea2c854c99cceb32.js","924","static/chunks/924-bbaf675cfa822d94.js","177","static/chunks/app/layout-7c1fdd2e3cdffab4.js"],"Authorization"]
|
|
3
|
+
3:I[96280,["330","static/chunks/abf9ae41-a2ad9357d01c2a31.js","187","static/chunks/187-849543277a4f9394.js","539","static/chunks/539-4b1c7db488293715.js","292","static/chunks/292-fca7393c81ef214a.js","619","static/chunks/619-7c7bed420eb7c654.js","8","static/chunks/8-42d532ba984375d8.js","9","static/chunks/9-22df388e4049bb14.js","391","static/chunks/391-c0e09f348021cffc.js","921","static/chunks/921-92a9ab4120f81d51.js","130","static/chunks/130-ea2c854c99cceb32.js","924","static/chunks/924-bbaf675cfa822d94.js","177","static/chunks/app/layout-7c1fdd2e3cdffab4.js"],"default"]
|
|
4
4
|
4:I[9766,[],""]
|
|
5
5
|
5:I[98924,[],""]
|
|
6
6
|
6:I[52619,["619","static/chunks/619-7c7bed420eb7c654.js","345","static/chunks/app/not-found-60bbe1f5c6cf66f2.js"],""]
|
|
7
7
|
7:I[81959,[],"ClientPageRoot"]
|
|
8
|
-
8:I[
|
|
8
|
+
8:I[22214,["862","static/chunks/1a258343-3a341c585963097c.js","187","static/chunks/187-849543277a4f9394.js","144","static/chunks/144-7c65ac1a3b9b2a8a.js","326","static/chunks/326-0c5769668b6b2c5a.js","924","static/chunks/924-bbaf675cfa822d94.js","511","static/chunks/511-cf97bbb465e76476.js","60","static/chunks/app/attacks/builder/page-0a243577272698a7.js"],"default"]
|
|
9
9
|
b:I[24431,[],"OutletBoundary"]
|
|
10
10
|
d:I[15278,[],"AsyncMetadataOutlet"]
|
|
11
11
|
f:I[24431,[],"ViewportBoundary"]
|
|
@@ -14,7 +14,7 @@ f:I[24431,[],"ViewportBoundary"]
|
|
|
14
14
|
14:I[57150,[],""]
|
|
15
15
|
:HL["/_next/static/css/c66d365ae0bced97.css","style"]
|
|
16
16
|
:HL["/_next/static/css/008a05b0ad6b854a.css","style"]
|
|
17
|
-
0:{"P":null,"b":"
|
|
17
|
+
0:{"P":null,"b":"HIoXscjHtxVCsDuJEjr4J","p":"","c":["","attacks","builder"],"i":false,"f":[[["",{"children":["attacks",{"children":["builder",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/c66d365ae0bced97.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex items-center justify-center min-h-screen","children":["$","div",null,{"className":"text-center","children":[["$","h1",null,{"className":"text-4xl font-bold mb-4","children":"404"}],["$","p",null,{"className":"text-gray-600 mb-8","children":"Page not found"}],["$","$L6",null,{"href":"/","className":"text-blue-600 hover:underline","children":"Back to home"}]]}]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],{"children":["attacks",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["builder",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/008a05b0ad6b854a.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],null],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true}
|
|
18
18
|
9:{}
|
|
19
19
|
a:"$0:f:0:1:2:children:2:children:2:children:1:props:children:0:props:params"
|
|
20
20
|
10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|