1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2167],{3739:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(79065).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},14982:(e,t,a)=>{"use strict";a.d(t,{y:()=>l,z:()=>r});var s=a(97603);let r=s.zl0.withParams({backgroundColor:"#FFFFFF",borderColor:"#EAECF0",browserColorScheme:"light",foregroundColor:"#080909",headerBackgroundColor:"#F3F7FA",headerFontSize:14,oddRowBackgroundColor:"#FAFAFA",rowHoverColor:"rgba(59, 130, 246, 0.05)",selectedRowBackgroundColor:"rgba(59, 130, 246, 0.18)",headerHeight:48,rowHeight:56}),l=s.zl0.withParams({backgroundColor:"#1E293B",borderColor:"#334155",browserColorScheme:"dark",foregroundColor:"#E2E8F0",headerBackgroundColor:"#0F172A",headerFontSize:14,oddRowBackgroundColor:"#0F172A",rowHoverColor:"rgba(59, 130, 246, 0.1)",selectedRowBackgroundColor:"rgba(59, 130, 246, 0.28)",headerHeight:48,rowHeight:56})},21280:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/block-storage",function(){return a(55127)}])},30359:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(79065).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},39242:(e,t,a)=>{"use strict";a.d(t,{UC:()=>R,B8:()=>M,bL:()=>E,l9:()=>L});var s=a(14232);function r(e,t,{checkForDefaultPrevented:a=!0}={}){return function(s){if(e?.(s),!1===a||!s.defaultPrevented)return t?.(s)}}var l=a(37876),i=a(17378),d=a(45101);a(98477);var n=a(39358),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let a=s.forwardRef((e,a)=>{let{asChild:s,...r}=e,i=s?n.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(i,{...r,ref:a})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),c=a(14966),m=a(38982),u=a(70294),h="Tabs",[x,g]=function(e,t=[]){let a=[],r=()=>{let t=a.map(e=>s.createContext(e));return function(a){let r=a?.[e]||t;return s.useMemo(()=>({[`__scope${e}`]:{...a,[e]:r}}),[a,r])}};return r.scopeName=e,[function(t,r){let i=s.createContext(r),d=a.length;a=[...a,r];let n=t=>{let{scope:a,children:r,...n}=t,o=a?.[e]?.[d]||i,c=s.useMemo(()=>n,Object.values(n));return(0,l.jsx)(o.Provider,{value:c,children:r})};return n.displayName=t+"Provider",[n,function(a,l){let n=l?.[e]?.[d]||i,o=s.useContext(n);if(o)return o;if(void 0!==r)return r;throw Error(`\`${a}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let a=()=>{let a=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=a.reduce((t,{useScope:a,scopeName:s})=>{let r=a(e)[`__scope${s}`];return{...t,...r}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return a.scopeName=t.scopeName,a}(r,...t)]}(h,[i.RG]),f=(0,i.RG)(),[p,b]=x(h),v=s.forwardRef((e,t)=>{let{__scopeTabs:a,value:s,onValueChange:r,defaultValue:i,orientation:d="horizontal",dir:n,activationMode:h="automatic",...x}=e,g=(0,c.jH)(n),[f,b]=(0,m.i)({prop:s,onChange:r,defaultProp:i});return(0,l.jsx)(p,{scope:a,baseId:(0,u.B)(),value:f,onValueChange:b,orientation:d,dir:g,activationMode:h,children:(0,l.jsx)(o.div,{dir:g,"data-orientation":d,...x,ref:t})})});v.displayName=h;var y="TabsList",N=s.forwardRef((e,t)=>{let{__scopeTabs:a,loop:s=!0,...r}=e,d=b(y,a),n=f(a);return(0,l.jsx)(i.bL,{asChild:!0,...n,orientation:d.orientation,dir:d.dir,loop:s,children:(0,l.jsx)(o.div,{role:"tablist","aria-orientation":d.orientation,...r,ref:t})})});N.displayName=y;var j="TabsTrigger",w=s.forwardRef((e,t)=>{let{__scopeTabs:a,value:s,disabled:d=!1,...n}=e,c=b(j,a),m=f(a),u=S(c.baseId,s),h=A(c.baseId,s),x=s===c.value;return(0,l.jsx)(i.q7,{asChild:!0,...m,focusable:!d,active:x,children:(0,l.jsx)(o.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":h,"data-state":x?"active":"inactive","data-disabled":d?"":void 0,disabled:d,id:u,...n,ref:t,onMouseDown:r(e.onMouseDown,e=>{d||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(s)}),onKeyDown:r(e.onKeyDown,e=>
1{[" ","Enter"].includes(e.key)&&c.onValueChange(s)}),onFocus:r(e.onFocus,()=>{let e="manual"!==c.activationMode;x||d||!e||c.onValueChange(s)})})})});w.displayName=j;var k="TabsContent",C=s.forwardRef((e,t)=>{let{__scopeTabs:a,value:r,forceMount:i,children:n,...c}=e,m=b(k,a),u=S(m.baseId,r),h=A(m.baseId,r),x=r===m.value,g=s.useRef(x);return s.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,l.jsx)(d.C,{present:i||x,children:({present:a})=>(0,l.jsx)(o.div,{"data-state":x?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":u,hidden:!a,id:h,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:a&&n})})});function S(e,t){return`${e}-trigger-${t}`}function A(e,t){return`${e}-content-${t}`}C.displayName=k;var E=v,M=N,L=w,R=C},41001:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(79065).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},49240:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(79065).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},53911:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(79065).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},55127:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>U});var s=a(37876),r=a(14232),l=a(31725),i=a(26283),d=a(91725),n=a(70203),o=a(87082),c=a(28043),m=a(59878),u=a(26805),h=a(28468),x=a(51808),g=a(54587),f=a.n(g),p=a(67384),b=a(69310),v=a(5068),y=a(37963),N=a(14982),j=a(24898),w=a(68068),k=a(88999),C=a(47124),S=a(9144),A=a(95316),E=a(77954);let M=[{value:"6m",label:"First 6 Month"},{value:"3m",label:"Last 3 Month"},{value:"1m",label:"Last Month"}];function L({storageMetrics:e=[],loading:t=!1,error:a=null,onRefresh:l}){let[i,n]=(0,r.useState)("6m"),[c,m]=(0,r.useState)([]),[u,h]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{e&&e.length>0?m(e&&0!==e.length?e.map((e,t)=>{let a,s=new Date(e.timestamp);if("1m"===i){let e=Math.floor(t/7)+1;a=`Week ${e}`}else a=s.toLocaleDateString("en-US",{month:"short"});let r=Math.round(e.totalStorage/0x40000000),l=Math.round(e.usedStorage/0x40000000);return{month:a,MinIO:Math.round(.5*l),Ceph:Math.round(.3*l),S3:Math.round(.2*l),total:r,available:Math.round(e.availableStorage/0x40000000),utilized:e.utilizationPercent}}).reduce((e,t)=>{let a=e.find(e=>e.month===t.month);return a?(a.MinIO=Math.round((a.MinIO+t.MinIO)/2),a.Ceph=Math.round((a.Ceph+t.Ceph)/2),a.S3=Math.round((a.S3+t.S3)/2)):e.push(t),e},[]).slice(-10):[]):m("1m"===i?[{month:"Week 1",MinIO:350,Ceph:200,S3:100},{month:"Week 2",MinIO:450,Ceph:250,S3:150},{month:"Week 3",MinIO:400,Ceph:300,S3:200},{month:"Week 4",MinIO:550,Ceph:350,S3:250}]:"3m"===i?[{month:"Jan",MinIO:350,Ceph:200,S3:150},{month:"Feb",MinIO:450,Ceph:300,S3:250},{month:"Mar",MinIO:550,Ceph:400,S3:350}]:[{month:"Jan",MinIO:450,Ceph:300,S3:150},{month:"Feb",MinIO:250,Ceph:450,S3:250},{month:"Mar",MinIO:350,Ceph:300,S3:450},{month:"Apr",MinIO:650,Ceph:150,S3:300},{month:"May",MinIO:150,Ceph:600,S3:200},{month:"Jun",MinIO:550,Ceph:250,S3:600}])},[i,e]),(0,s.jsxs)(d.Zp,{className:"w-full h-full bg-card",children:[(0,s.jsxs)(d.aR,{className:"flex flex-row items-center justify-between pb-2",children:[(0,s.jsx)(d.ZB,{className:"text-lg font-semibold text-gray-800 dark:text-white",children:"Storage Usage Over Time"}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("select",{value:i,onChange:e=>{let t=e.target.value;n(t),l&&l({"1m":720,"3m":2160,"6m":4320}[t]||4320,{"1m":"1h","3m":"6h","6m":"1d"}[t]||"1d")},className:"appearance-none flex items-center justify-between px-3 py-1.5 bg-muted dark:text-white rounded-md text-sm w-[140px] border-0 focus:outline-none focus:ring-0",onClick:e=>{e.stopPropagation(),h(!u)},children:M.map(e=>(0,s.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,s.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:(0,s.jsx)(A.A,{className:"h-4 w-4 text-blue-600"})})]})]}),(0,s.jsxs)(d.Wu,{children:[a&&(0,s.jsx)("div",{className:"w-full h-[320px] flex items-center justify-center",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"text-red-500 mb-2",children:(0,s.jsx)("svg",{className:"h-8 w-8 mx-auto",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),(0,s.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400 mb-2",children:"Error loading metrics"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:a}),l&&(0,s.jsx)("button",{onClick:()=>{l({"1m":720,"3m":2160,"6m":4320}[i]||4320,{"1m":"1h","3m":"6h","6m":"1d"}[i]||"1d")},className:"text-sm bg-red-100 dark:bg-red-800 text-red-800 dark:text-red-200 px-3 py-1 rounded hover:bg-red-200 dark:hover:bg-red-700",children:"Try again"})]})}),t&&(0,s.jsx)("div",{className:"w-full h-[320px] flex items-center justify-center",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)(E.y,{size:"lg",className:"mx-auto mb-2"}),(0,s.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Loading storage metrics..."})]})}),!a&&!t&&(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"w-full h-[320px]",children:(0,s.jsx)(o.u,{width:"100%",height:"100%",children:(0,s.jsxs)(j.b,{data:c,margin:{top:5,right:5,left:5,bottom:25},children:[(0,s.jsx)(w.d,{strokeDasharray:"3 3",stroke:"#E2E8F0"}
1),(0,s.jsx)(k.W,{dataKey:"month",axisLine:{stroke:"#E2E8F0"},tickLine:{stroke:"#E2E8F0"},dy:10,tick:{fill:"currentColor",className:"text-gray-800 dark:text-white"}}),(0,s.jsx)(C.h,{axisLine:{stroke:"#E2E8F0"},tickLine:{stroke:"#E2E8F0"},domain:[0,750],ticks:[0,150,300,450,600,750],dx:-5,tick:{fill:"currentColor",className:"text-gray-800 dark:text-white"}}),(0,s.jsx)(S.N,{type:"monotone",dataKey:"MinIO",stroke:"#00A8FF",strokeWidth:2,strokeDasharray:"3 3",dot:!1,activeDot:{r:6}}),(0,s.jsx)(S.N,{type:"monotone",dataKey:"Ceph",stroke:"#2563EB",strokeWidth:2,strokeDasharray:"3 3",dot:!1,activeDot:{r:6}}),(0,s.jsx)(S.N,{type:"monotone",dataKey:"S3",stroke:"#0A0E6B",strokeWidth:2,strokeDasharray:"3 3",dot:!1,activeDot:{r:6}})]})})}),(0,s.jsx)("div",{className:"flex justify-center mt-4 space-x-8",children:[{name:"MinIO",color:"#00A8FF"},{name:"Ceph",color:"#2563EB"},{name:"S3",color:"#0A0E6B"}].map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("div",{className:"flex items-center mr-1",children:(0,s.jsx)("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:e.color}})}),(0,s.jsx)("span",{className:"text-xs font-medium text-gray-600",children:e.name})]},t))})]})]})]})}var R=a(26625),F=a(57147),O=a(30615),I=a(71067);function z({isOpen:e,onClose:t,onAddStorage:a}){let{mode:l}=(0,I.G6)(),[i,n]=(0,r.useState)(""),[o,c]=(0,r.useState)(""),[m,u]=(0,r.useState)("");return(0,s.jsx)(O.lG,{open:e,onOpenChange:t,children:(0,s.jsx)(O.Cf,{className:"sm:max-w-[600px] box-shadow-none dark:bg-background",children:(0,s.jsx)(d.Zp,{className:"box-shadow-none shadow-none bg-background",children:(0,s.jsxs)(d.Wu,{className:"pb-0 px-0 shadow-none",children:[(0,s.jsx)("div",{className:"w-full flex items-center justify-between mb-6",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"w-11 h-11 bg-transparent rounded-md flex items-center justify-center ",style:{border:"dark"===l?"2px solid #1E293B":"2px solid #EAECF0"},children:(0,s.jsx)(f(),{src:p.n.ADDPROJECT||"/placeholder.svg",alt:"Folder",width:28,height:28,className:"text-blue-600"})}),(0,s.jsxs)("div",{className:"flex ml-4 flex-col",children:[(0,s.jsx)(O.L3,{className:"text-2xl font-semibold m-0 text-[#000878] dark:text-white",children:"Add New Block Storage"}),(0,s.jsx)(O.rr,{className:"text-md text-muted-foreground m-0",children:"Enter details to add a new block storage."})]})]})}),(0,s.jsx)(x.w,{className:"my-4 dark:bg-border"}),(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),i.trim()&&o.trim()&&m&&(a({name:i,size:o,type:m}),n(""),c(""),u(""),t())},className:"space-y-6",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("label",{htmlFor:"storageName",className:"block text-sm font-medium text-[#0a0e6b] dark:text-white",children:["Storage Name",(0,s.jsx)("span",{className:"text-red-500 dark:text-white",children:"*"})]}),(0,s.jsx)(R.p,{id:"storageName",value:i,onChange:e=>n(e.target.value),placeholder:"Enter name",required:!0,className:"w-full border-none bg-card"})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("label",{htmlFor:"storageSize",className:"block text-sm font-medium text-[#0a0e6b] dark:text-white",children:["Storage Size",(0,s.jsx)("span",{className:"text-red-500 dark:text-white",children:"*"})]}),(0,s.jsx)(R.p,{id:"storageSize",value:o,onChange:e=>c(e.target.value),placeholder:"e.g. 100GB",required:!0,className:"w-full border-none bg-card dark:text-white"})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("label",{htmlFor:"storageType",className:"block text-sm font-medium text-[#0a0e6b] dark:text-white",children:["Storage Type",(0,s.jsx)("span",{className:"text-red-500 dark:text-white",children:"*"})]}),(0,s.jsxs)(F.l6,{value:m,onValueChange:u,required:!0,children:[(0,s.jsx)(F.bq,{id:"storageType",className:"w-full border-none bg-card dark:text-white",children:(0,s.jsx)(F.yv,{placeholder:"Select Storage type"})}),(0,s.jsxs)(F.gC,{children:[(0,s.jsx)(F.eb,{value:"s3",children:"S3"}),(0,s.jsx)(F.eb,{value:"block",children:"Block Storage"}),(0,s.jsx)(F.eb,{value:"file",children:"File Storage"})]})]})]}),(0,s.jsx)(x.w,{className:"mt-8 mb-0 dark:bg-border"}),(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("button",{type:"button",onClick:t,className:"text-sm dark:text-white font-semibold w-full py-2 px-4 border border-none dark:border-white-800 rounded-md text-gray-700 bg-card hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 mr-2",children:"Cancel"}),(0,s.jsx)("button",{type:"submit",disabled:!i.trim()||!o.trim()||!m,className:"text-sm font-semibold w-full py-2 px-4 border border-none rounded-md shadow-sm text-primary-foreground bg-primary hover:bg-primary/90 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary disabled:opacity-50",children:"Create Storage"})]})]})]})})})})}var D=a(99645);let T={sortable:!0,filter:!0,flex:1,resizable:!0,tooltipValueGetter:e=>e.value},$=[{field:"name",headerName:"Name",minWidth:150,flex:1.5,sortable:!0,filter:!0,resizable:!0},{field:"type",headerName:"Type",minWidth:100,flex:1,sortable:!0,filter:!0,resizable:!0},{field:"size",headerName:"Size",minWidth:100,flex:1,sortable:!0,filter:!0,resizable:!0},{field:"lastAccessed",headerName:"Last Accessed",minWidth:150,flex:1.5,sortable:!0,filter:!0,resizable:!0},{field:"status",headerName:"Status",minWidth:120,flex:1,sortable:!0,filter:!0,resizable:!0,cellRenderer:D.ML}],B=[{field:"name",headerName:"File",minWidth:200,flex:2,sortable:!0,filter:!0,resizable:!0,cellRenderer:e=>{let{icon:t,name:a}=e.data,r="";switch(t){case"document":default:r=p.n.DOCUMENT_FOLDER;break;case"images":r=p.n.IMAGES_FOLDER;break;case"pdf":r=p.n.PDF_FILE;break;case"csv":r=p.n.CSV_FILE}return(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("div",{className:"relative w-5 h-5 mr-2",children:(0,s.jsx)(f(),{src:r||"/placeholder.svg",alt:a,fill:!0,className:"object-contain filter dark:invert"})}),(0,s.jsx)("span",{children:a})]})}},{field:"type",headerName:"Type",minWidth:120,flex:1,sortable:!0,filter:!0,resizable:!0},{field:"size",headerName:"Size",minWidth:120,flex:1,sortable:!0,filter:!0,resizable:!0},{field:"lastModified",headerName:"Last Modified",minWidth:150,flex:1.5,sortable:!0,filter:!0,resizable:!0}],P=()=>{let[e,t]=(0,r.useState)(!1),[a,l]=(0,r.useState)([]),[g,j]=(0,r.useState)(null),[w,k]=(0,r.useState)(!1),[C,S]=(0,r.useState)(0),[A,M]=(0,r.useState)("/"),{storageItems:R,s3Contents:F,storageAnalytics:O,storageOverview:I,storageMetrics:D,loadingVolumes:P,loadingS3:_,loadingAnalytics:U,loadingMetrics:W,volumesError:H,s3Error:G,analyticsError:q,metricsError:V,refreshStorageVolumes:K,refreshS3Content:J,refreshStorageAnalytics:X,refreshStorageMetrics:Y,refreshAll:Z}=function(e={}){let{clusterId:t="",clusterName:a="",autoRefresh:s=!1,refreshInterval:l=600}
1=e,[i,d]=(0,r.useState)([]),[n,o]=(0,r.useState)([]),[c,m]=(0,r.useState)(null),[u,h]=(0,r.useState)([]),[x,g]=(0,r.useState)(!1),[f,p]=(0,r.useState)(!1),[b,N]=(0,r.useState)(!1),[j,w]=(0,r.useState)(!1),[k,C]=(0,r.useState)(null),[S,A]=(0,r.useState)(null),[E,M]=(0,r.useState)(null),[L,R]=(0,r.useState)(null),F=(0,y.getStack8sAPIEndpoint)(),O=(0,r.useCallback)(async()=>{if(t){g(!0),C(null);try{let e=await v.A.get(`${F}/clusters/${t}/storage/volumes`,{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"},timeout:1e4});d(e.data||[])}catch(e){C(e.response?.data?.detail||e.message||"Failed to fetch storage volumes"),console.error("Error fetching storage volumes:",e)}finally{g(!1)}}},[t,F]),I=(0,r.useCallback)(async(e,a="")=>{if(t){p(!0),A(null);try{let s=await v.A.get(`${F}/clusters/${t}/storage/s3/${e}/contents`,{params:{prefix:a,limit:100},headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"},timeout:1e4});o(s.data||[])}catch(e){A(e.response?.data?.detail||e.message||"Failed to fetch S3
1contents"),console.error("Error fetching S3 contents:",e)}finally{p(!1)}}},[t,F]),z=(0,r.useCallback)(async()=>{if(t&&a){N(!0),M(null);try{let e=await v.A.get(`${F}/clusters/${t}/storage/analytics`,{params:{cluster_name:a},headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"},timeout:45e3});m(e.data||null)}catch(e){M(e.response?.data?.detail||e.message||"Failed to fetch storage analytics"),console.error("Error fetching storage analytics:",e)}finally{N(!1)}}},[t,a,F]),D=(0,r.useCallback)(async(e=24,s="1h")=>{if(t&&a){w(!0),R(null);try{let r=await v.A.get(`${F}/clusters/${t}/storage/metrics/timeseries`,{params:{cluster_name:a,hours:e,interval:s},headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"},timeout:45e3});h(r.data||[])}catch(e){R(e.response?.data?.detail||e.message||"Failed to fetch storage metrics"),console.error("Error fetching storage metrics:",e)}finally{w(!1)}}},[t,a,F]),T=(0,r.useCallback)(async()=>{await Promise.all([O(),z(),D()])},[O,z,D]);(0,r.useEffect)(()=>{if(!s||!t)return;T();let e=setInterval(()=>{T()},1e3*l);return()=>clearInterval(e)},[s,t,l,T]);let $=c?.distributionByType||[];return{storageItems:i,s3Contents:n,storageOverview:c,storageMetrics:u,storageAnalytics:$,loadingVolumes:x,loadingS3:f,loadingAnalytics:b,loadingMetrics:j,volumesError:k,s3Error:S,analyticsError:E,metricsError:L,refreshStorageVolumes:O,refreshS3Content:I,refreshStorageAnalytics:z,refreshStorageMetrics:D,refreshAll:T,isLoading:x||f||b||j,hasErrors:!!(k||S||E||L)}}({clusterId:"cluster-1",clusterName:"test-cluster",autoRefresh:!0,refreshInterval:30});return((0,r.useEffect)(()=>{t(!0)},[]),e)?(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)(h.mg,{title:"Block Storage"}),(0,s.jsxs)("div",{className:"space-y-2 flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)("h1",{className:"text-[28px] font-semibold m-0 p-0",children:"Block Storage Management"}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground m-0 p-0",children:"Manage the block store, s3 content, buckets and data visualization."})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$,{onClick:Z,variant:"outline",disabled:P||U,children:P||U?"Refreshing...":"Refresh All"}),(0,s.jsxs)(i.$,{onClick:()=>k(!0),className:"border-none bg-primary text-white",children:[(0,s.jsx)(f(),{src:p.n.ADDCIRCLE,alt:"add-circle",height:20,width:20,className:"mr-2"}),"Add Storage"]})]})]}),(0,s.jsx)(x.w,{className:"my-6"}),(0,s.jsxs)(n.tU,{value:C.toString(),onValueChange:e=>S(parseInt(e)),children:[(0,s.jsxs)(n.j7,{children:[(0,s.jsx)(n.Xi,{value:"0",children:"Storage List"}),(0,s.jsx)(n.Xi,{value:"1",children:"S3 Browser"}),(0,s.jsx)(n.Xi,{value:"2",children:"Analytics"})]}),(0,s.jsx)(n.av,{value:C.toString(),className:"mt-4",children:(()=>{switch(C){case 0:return(0,s.jsx)("div",{className:"space-y-6",children:(0,s.jsxs)("div",{className:"bg-card rounded-lg shadow-sm border border-solid border-gray-200 dark:border-gray-700",children:[(0,s.jsx)("div",{className:"flex justify-between items-center px-6 py-0",children:(0,s.jsxs)("h2",{className:"text-2xl font-bold text-gray-800 dark:text-gray-100",children:["Block Storage List ",P&&(0,s.jsx)("span",{className:"text-sm text-blue-600",children:"(Loading...)"})]})}),H&&(0,s.jsx)("div",{className:"mx-6 mb-4 p-4 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg",children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("div",{className:"flex-shrink-0",children:(0,s.jsx)("svg",{className:"h-5 w-5 text-red-400",viewBox:"0 0 20 20",fill:"currentColor",children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),(0,s.jsxs)("div",{className:"ml-3",children:[(0,s.jsx)("h3",{className:"text-sm font-medium text-red-800 dark:text-red-200",children:"Error loading storage volumes"}),(0,s.jsx)("div",{className:"mt-2 text-sm text-red-700 dark:text-red-300",children:H}),(0,s.jsx)("div",{className:"mt-3",children:(0,s.jsx)("button",{onClick:K,className:"text-sm bg-red-100 dark:bg-red-800 text-red-800 dark:text-red-200 px-3 py-1 rounded hover:bg-red-200 dark:hover:bg-red-700",children:"Try again"})})]})]})}),(0,s.jsx)("div",{className:"rounded-lg overflow-hidden ag-theme-quartz px-6 py-4 bg-card",style:{height:650},children:(0,s.jsx)(b.W6,{rowData:R,columnDefs:$,defaultColDef:T,animateRows:!0,rowHeight:56,headerHeight:56,suppressCellFocus:!0,suppressRowHoverHighlight:!1,suppressMovableColumns:!0,className:"ag-theme-custom",gridOptions:{theme:N.z}})})]})});case 1:return(0,s.jsx)("div",{className:"space-y-6",children:(0,s.jsxs)("div",{className:"bg-card rounded-lg shadow-sm border border-solid border-gray-200 dark:border-gray-700",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center px-6 py-0",children:[(0,s.jsxs)("h2",{className:"text-2xl font-bold text-gray-800 dark:text-gray-100",children:["S3 Content ",_&&(0,s.jsx)("span",{className:"text-sm text-blue-600",children:"(Loading...)"})]}),(0,s.jsx)(i.$,{onClick:()=>J("stack8s-managed"),variant:"outline",size:"sm",disabled:_,children:_?"Loading...":"Refresh S3"})]}),G&&(0,s.jsx)("div",{className:"mx-6 mb-4 p-4 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg",children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("div",{className:"flex-shrink-0",children:(0,s.jsx)("svg",{className:"h-5 w-5 text-red-400",viewBox:"0 0 20 20",fill:"currentColor",children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),(0,s.jsxs)("div",{className:"ml-3",children:[(0,s.jsx)("h3",{className:"text-sm font-medium text-red-800 dark:text-red-200",children:"Error loading S3 contents"}),(0,s.jsx)("div",{className:"mt-2 text-sm text-red-700 dark:text-red-300",children:G}),(0,s.jsx)("div",{className:"mt-3",children:(0,s.jsx)("button",{onClick:()=>J("stack8s-managed"),className:"text-sm bg-red-100 dark:bg-red-800 text-red-800 dark:text-red-200 px-3 py-1 rounded hover:bg-red-200 dark:hover:bg-red-700",children:"Try again"})})]})]})}),(0,s.jsx)("div",{className:"rounded-lg overflow-hidden ag-theme-quartz px-6 py-4 bg-card",style:{height:550},children:(0,s.jsx)(b.W6,{rowData:F,columnDefs:B,defaultColDef:T,animateRows:!0,rowHeight:56,headerHeight:56,suppressCellFocus:!0,suppressRowHoverHighlight:!1,suppressMovableColumns:!0,className:"ag-theme-custom",gridOptions:{theme:N.z}})})]})});case 2:return(0,s.jsxs)("div",{className:"space-y-4",children:[q&&(0,s.jsx)("div",{className:"p-4 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg border border-solid border-gray-200 dark:border-gray-700",children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("div",{className:"flex-shrink-0",children:(0,s.jsx)("svg",{className:"h-5 w-5 text-red-400",viewBox:"0 0 20 20",fill:"currentColor",children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),(0,s.jsxs)("div",{className:"ml-3",children:[(0,s.jsx)("h3",{className:"text-sm font-medium text-red-800 dark:text-red-200",children:"Error loading storage analytics"}),(0,s.jsx)("div",{className:"mt-2 text-sm text-red-700 dark:text-red-300",children:q}),(0,s.jsx)("div",{className:"mt-3",children:(0,s.jsx)("button",{onClick:X,className:"text-sm bg-red-100 dark:bg-red-800 text-red-800 dark:text-red-200 px-3 py-1 rounded hover:bg-red-200 dark:hover:bg-red-700",children:"Try again"})})]})]})}),U&&(0,s.jsx)("div",{className:"p-4 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg",children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(E.y,{size:"md"}),(0,s.jsx)("span",{className:"ml-3 text-blue-800 dark:text-blue-200",children:"Loading storage analytics..."})]})}),(0,s.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,s.jsxs)(d.Zp,{className:"w-full h-full bg-card",children:[(0,s.jsx)(d.aR,{className:"pb-2",children:(0,s.jsx)(d.ZB,{className:"text-lg font-semibold text-gray-800 dark:text-white",children:"Storage Usage by Type"})}),(0,s.jsxs)(d.Wu,{className:"flex flex-col items-center",children:[(0,s.jsx)("div",{className:"w-full h-[220px] relative",children:(0,s.jsx)(o.u,{width:"100%",height:"100%",children:(0,s.jsxs)(c.r,{children:[(0,s.jsx)(m.F,{data:O,cx:"50%",cy:"50%",innerRadius:60,outerRadius:80,paddingAngle:1,dataKey:"value",stroke:"none",children:O.map((e,t)=>(0,s.jsx)(u.f,{fill:e.color},`cell-${t}`))}),(0,s.jsx)("text",{x:"50%",y:"50%",dy:"-10",textAnchor:"middle",dominantBaseline:"middle",className:"text-xs text-gray-500 dark:text-white",style:{fill:"currentColor"},children:"Total Issues"}),(0,s.jsx)("text",{x:"50%",y:"50%",dy:"20",textAnchor:"middle",dominantBaseline:"middle",className:"text-2xl font-bold dark:text-white",style:{fill:"currentColor"},children:"46"})]})})}),(0,s.jsxs)("div",{className:"w-full mt-4",children:[(0,s.jsxs)("div",{className:"flex justify-between mb-2",children:[(0,s.jsx)("span",{className:"text-sm font-medium text-gray-500 dark:text-white",children:"Status"}),(0,s.jsx)("span",{className:"text-sm font-medium text-gray-500 dark:text-white",children:"%"})]}),(0,s.jsx)("div",{className:"h-px w-full bg-gray-200 mb-3"}),(0,s.jsx)("div",{className:"space-y-3",children:O.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("div",{className:"w-4 h-4 rounded-full mr-2",style:{backgroundColor:e.color}}),(0,s.jsx)("span",{className:"text-sm font-medium text-gray-700 dark:text-white",children:e.name})]}),(0,s.jsxs)("span",{className:"text-sm font-medium text-gray-700 dark:text-white",children:[e.value,"%"]})]},t))})]})]})]}),(0,s.jsx)(L,{storageMetrics:D,loading:W,error:V,onRefresh:Y})]})]});default:return null}})()})]}),(0,s.jsx)(z,{isOpen:w,onClose:()=>k(!1),onAddStorage:e=>{let t={id:a.length+1,name:e.name,size:e.size,status:"Active",type:e.type};l([...a,t]),k(!1)}})]}):null},_=()=>(0,s.jsx)(r.Fragment,{children:(0,s.jsx)(P,{})});_.getLayout=function(e){return(0,s.jsx)(l.A,{children:e})};let U=_},57147:(e,t,a)=>{"use strict";a.d(t,{bq:()=>u,eb:()=>p,gC:()=>f,l6:()=>c,yv:()=>m});var s=a(37876),r=a(14232),l=a(94783),i=a(95316),d=a(38129),n=a(10458),o=a(8291);let c=l.bL;l.YJ;let m=l.WT,u=r.forwardRef(({className:e,children:t,...a},r)=>(0,s.jsxs)(l.l9,{ref:r,className:(0,o.cn)("flex w-full items-center justify-between rounded-md border border-solid border-border bg-muted/50 px-3 py-2 text-sm text-foreground shadow-none focus:outline-none focus:border-ring data-[state=open]:rounded-b-none data-[state=open]:border-b-0 data-[placeholder]:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...a,children:[t,(0,s.jsx)(l.In,{asChild:!0,children:(0,s.jsx)(i.A,{className:"h-4 w-4 opacity-50"})})]}));u.displayName=l.l9.displayName;let h=r.forwardRef(({className:e,...t},a)=>(0,s.jsx)(l.PP,{ref:a,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,s.jsx)(d.A,{className:"h-4 w-4"})}));h.displayName=l.PP.displayName;let x=r.forwardRef(({className:e,...t},a)=>(0,s.jsx)(l.wn,{ref:a,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,s.jsx)(i.A,{className:"h-4 w-4"})}));function g(){return r.useEffect(()=>{let e=document.body,t=()=>{e.hasAttribute("data-scroll-locked")&&(e.removeAttribute("data-scroll-locked"),e.style.overflow="",e.style.paddingRight="",e.style.marginRight="")};t();let a=new MutationObserver(t);a.observe(e,{attributes:!0,attributeFilter:["data-scroll-locked","style"]});let s=e=>e.stopPropagation();
1return document.addEventListener("wheel",s,{capture:!0}),document.addEventListener("touchmove",s,{capture:!0}),()=>{a.disconnect(),document.removeEventListener("wheel",s,{capture:!0}),document.removeEventListener("touchmove",s,{capture:!0})}},[]),null}x.displayName=l.wn.displayName;let f=r.forwardRef(({className:e,children:t,position:a="popper",...r},i)=>(0,s.jsx)(l.ZL,{children:(0,s.jsxs)(l.UC,{ref:i,className:(0,o.cn)("relative z-50 box-border max-h-[--radix-select-content-available-height] w-[--radix-select-trigger-width] overflow-y-auto overflow-x-hidden rounded-md rounded-t-none border border-solid border-border border-t-0 bg-popover text-popover-foreground shadow-md 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 origin-[--radix-select-content-transform-origin]","popper"===a&&"data-[side=bottom]:translate-y-0 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-0",e),position:a,...r,children:[(0,s.jsx)(g,{}),(0,s.jsx)(h,{}),(0,s.jsx)(l.LM,{className:(0,o.cn)("p-1","popper"===a&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,s.jsx)(x,{})]})}));f.displayName=l.UC.displayName,r.forwardRef(({className:e,...t},a)=>(0,s.jsx)(l.JU,{ref:a,className:(0,o.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold text-foreground",e),...t})).displayName=l.JU.displayName;let p=r.forwardRef(({className:e,children:t,...a},r)=>(0,s.jsxs)(l.q7,{ref:r,className:(0,o.cn)("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm text-foreground outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[state=checked]:bg-accent/60 data-[state=checked]:font-medium data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(l.VF,{children:(0,s.jsx)(n.A,{className:"h-4 w-4"})})}),(0,s.jsx)(l.p4,{children:t})]}));p.displayName=l.q7.displayName,r.forwardRef(({className:e,...t},a)=>(0,s.jsx)(l.wv,{ref:a,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",e),...t})).displayName=l.wv.displayName},67384:(e,t,a)=>{"use strict";a.d(t,{n:()=>s});let s={LOGOWITHNAME:"/assets/images/logo-with-name.svg",LOGO:"/assets/images/logo.svg",GOOGLE:"/assets/images/google.svg",APPLE:"/assets/images/apple.svg",EYE:"/assets/images/eye.svg",EYE_OFF:"/assets/images/eye-off.svg",CHEVRON_LEFT:"/assets/images/chevron-left.svg",AVATAR:"/assets/images/avatar.svg",FOLDER:"/assets/images/folder.svg",FOLDER_BLUE:"/assets/images/folder-blue.svg",DOCUMENT_FOLDER:"/assets/images/document-folder.svg",IMAGES_FOLDER:"/assets/images/images-folder.svg",PDF_FILE:"/assets/images/pdf-file.svg",CSV_FILE:"/assets/images/csv-file.svg",MOON:"/assets/images/moon.svg",LOGOUT:"/assets/images/log-out.svg",EMPTYTABLE:"/assets/images/empty-table.svg",CPU:"/assets/images/cpu.svg",MEMORY:"/assets/images/memory.svg",SECUREINTERFACE:"/assets/images/secure-interface.svg",ADDPROJECT:"/assets/images/add-project.svg",PIPELINE:"/assets/images/pipeline.svg",CHARTPIE:"/assets/images/chart-pie.svg",ADDCIRCLE:"/assets/images/add-circle.svg",ADDBLUECIRCLE:"/assets/images/add-blue-circle.svg",TRASH:"/assets/images/trash.svg",USER_AVATAR:"/assets/images/user-avatar.svg",PLUS_ICON:"/assets/images/plus-icon.svg",TAG_ICON:"/assets/images/tag-icon.svg",ADVANCEOPTIONS:"/assets/images/advanced-option.svg",STORE:"/assets/images/store.svg",GATEWAY:"/assets/images/gateway.svg",PSQL:"/assets/images/psql.png"}},70203:(e,t,a)=>{"use strict";a.d(t,{Xi:()=>o,av:()=>c,j7:()=>n,tU:()=>d});var s=a(37876),r=a(14232),l=a(39242),i=a(8291);let d=l.bL,n=r.forwardRef(({className:e,...t},a)=>(0,s.jsx)(l.B8,{ref:a,className:(0,i.cn)("flex w-full justify-start items-center gap-4 bg-transparent border-0 rounded-none p-0 h-auto",e),...t}));n.displayName=l.B8.displayName;let o=r.forwardRef(({className:e,...t},a)=>(0,s.jsx)(l.l9,{ref:a,className:(0,i.cn)("cursor-pointer flex items-center justify-center gap-2 whitespace-nowrap rounded-lg border-0 px-3 py-2.5 text-sm font-medium","transition-colors duration-200","ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","data-[state=active]:bg-primary data-[state=active]:text-primary-foreground","data-[state=inactive]:bg-primary/20 data-[state=inactive]:text-foreground data-[state=inactive]:hover:bg-primary/40",e),...t}));o.displayName=l.l9.displayName;let c=r.forwardRef(({className:e,...t},a)=>(0,s.jsx)(l.UC,{ref:a,className:(0,i.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));c.displayName=l.UC.displayName},75303:(e,t,a)=>{"use strict";function s(e){let t=Math.floor((Date.now()-new Date(e).getTime())/6e4),a=Math.floor(t/60),s=Math.floor(a/24);return t<1?"just now":t<60?`${t}m ago`:a<24?`${a}h ago`:`${s}d ago`}function r(e){if(!e)return"";let t=new Date(e),a=Math.floor((new Date().getTime()-t.getTime())/1e3);if(a<60)return"just now";if(a<3600){let e=Math.floor(a/60);return`${e} minute${e>1?"s":""} ago`}if(a<86400){let e=Math.floor(a/3600);return`${e} hour${e>1?"s":""} ago`}if(a<604800){let e=Math.floor(a/86400);return`${e} day${e>1?"s":""} ago`}if(a<2592e3){let e=Math.floor(a/604800);return`${e} week${e>1?"s":""} ago`}let s=Math.floor(a/2592e3);return`${s} month${s>1?"s":""} ago`}a.d(t,{Q:()=>r,f:()=>s})},79890:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(79065).A)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},99645:(e,t,a)=>{"use strict";a.d(t,{Hr:()=>p,K9:()=>n,ML:()=>l,Py:()=>i,UR:()=>o,Uw:()=>f,el:()=>m,px:()=>d,qo:()=>c,u9:()=>u,u_:()=>h});var s=a(37876),r=a(75303);let l=e=>{let t="active"===e.value||"Active"===e.value||"deployed"===e.value;return(0,s.jsx)("div",{className:"flex ",children:(0,s.jsx)("div",{className:`text-md font-medium capitalize ${t?"text-[#17B26A] ":"text-[#FF3B30] "}`,children:e.value})})};
1function i(e){return e?new Date(e).toLocaleString("en-US",{month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",hour12:!0}):""}let d={flex:1,minWidth:150,sortable:!0,filter:!0,resizable:!0,tooltipValueGetter:e=>e.value},n=[{activity:"User Logged In",date:"12-12-2025",user:"Test user",resource:"Name"},{activity:"User Logged In",date:"12-12-2025",user:"Test user",resource:"Name"},{activity:"User Logged In",date:"12-12-2025",user:"Test user",resource:"Name"},{activity:"User Logged In",date:"12-12-2025",user:"Test user",resource:"Name"}],o=[{headerName:"Activity",field:"activity",cellClass:"py-4"},{headerName:"Date",field:"date",cellClass:"py-4"},{headerName:"User",field:"user",cellClass:"py-4"},{headerName:"Resource Name",field:"resource",cellClass:"py-4"}],c=[{name:"Current plan Details",value:"Launchpad"},{name:"Next billing date",value:"6/1/2024"},{name:"Active User Count",value:"5"}],m=[{headerName:"Name",field:"name",cellClass:"py-4"},{headerName:"Value",field:"value",cellClass:"py-4"}],u=[{headerName:"Name",field:"name"},{headerName:"Resource",field:"resource",width:10,cellStyle:{display:"flex",justifyContent:"flex-end"}}],h=[{name:"Stack8s",resource:"Name"},{name:"Google",resource:"Name"},{name:"Stack8s",resource:"Name"},{name:"Google",resource:"Name"}],x=e=>{let t=e.data?.activityType||"info";return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:`w-2 h-2 rounded-full ${{success:"bg-green-500",failure:"bg-red-500",warning:"bg-yellow-500",info:"bg-blue-500"}[t]||"bg-gray-500"}`}),(0,s.jsx)("span",{className:`font-medium ${{success:"text-green-500",failure:"text-red-500",warning:"text-yellow-500",info:"text-blue-500"}[t]||"text-gray-600"}`,children:e.value})]})},g=e=>{if(!e.value)return null;let t=i(e.value),a=(0,r.Q)(e.value);return(0,s.jsxs)("div",{className:"flex flex-col justify-center",children:[(0,s.jsx)("span",{className:"text-sm",children:t}),(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:a})]})},f=[{headerName:"Activity",field:"activity",cellClass:"py-4",cellRenderer:x},{headerName:"Date",field:"date",cellClass:"py-2",cellRenderer:g},{headerName:"IP Address",field:"ipAddress",cellClass:"py-4"},{headerName:"Location",field:"location",cellClass:"py-4"}],p=[{headerName:"Activity",field:"activity",cellClass:"py-4",cellRenderer:x},{headerName:"Date",field:"date",cellClass:"py-2",cellRenderer:g},{headerName:"User",field:"user",cellClass:"py-4"},{headerName:"IP Address",field:"ipAddress",cellClass:"py-4"},{headerName:"Location",field:"location",cellClass:"py-4"}]}},e=>{e.O(0,[2838,8237,8230,3025,4e3,7129,7497,8580,4587,9310,6831,1542,1543,4898,8043,1483,3125,5306,1725,636,6593,8792],()=>e(e.s=21280)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.