MOON
Server: Apache
System: Linux server1.studioinfinity.com.br 2.6.32-954.3.5.lve1.4.90.el6.x86_64 #1 SMP Tue Feb 21 12:26:30 UTC 2023 x86_64
User: artinside (517)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/netdata/usr/local/local/share/netdata/web/v3/9822.0fe9799ee152a0261ae1.chunk.js
try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7da61bc2-0067-4a18-987c-1ee9a1220f6a",e._sentryDebugIdIdentifier="sentry-dbid-7da61bc2-0067-4a18-987c-1ee9a1220f6a")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"553c63cf6c9afe8a8ef298d5e602e53feac44b0d"}}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[9822],{69822:(e,t,r)=>{r.r(t),r.d(t,{default:()=>cr});var n=r(79997),s=r(88934),l=r(74848);const i=e=>{let{Sidebar:t,children:r}=e;return t?(0,l.jsxs)(n._V,{"data-testid":"insights-layout-container",children:[(0,l.jsx)(t,{}),r]}):r};var o=r(55024);const a=()=>(0,l.jsx)(n.p6,{"data-testid":"insights-sidebar-labels",padding:[1,1,0,0],children:(0,l.jsx)(o.A,{})});var d=r(63766),c=(r(98992),r(54520),r(81454),r(96540)),h=r(81685),u=r(70366),x=r(96951);const g=()=>{const{loaded:e,definitions:t,error:r}=(0,h.A_)(),{onNewQuery:n}=(0,h.g0)(),s=(0,u.A)(),{reset:l}=(0,x.A)(),[,,,i]=(0,h.W5)();return{loaded:e,definitions:t,error:r,onButtonClick:(0,c.useCallback)((e=>{l(),i(),n(e,{context:s})}),[n,s,l,i])}};var p=r(24155),m=r(18121),j=r(99094);const C=e=>{let{id:t,name:r,onClick:n}=e;const[s,i]=(0,m.useHovered)({},[]),o=(0,c.useMemo)((()=>t===j.oG.investigation?`New ${r}`:r),[t,r]),{icon:a,color:h,bg:u}=j.ci[t]||{},x=(0,c.useCallback)((()=>{"function"===typeof n&&n(t)}),[t,n]);return(0,l.jsx)(d.Flex,{ref:s,height:"28px",alignItems:"center",justifyContent:"center",background:i?u:"panelBg",cursor:"pointer",round:!0,onClick:x,...i?{border:{side:"all",color:h}}:{},children:(0,l.jsxs)(d.Flex,{alignItems:"center",gap:1,children:[(0,l.jsx)(d.Icon,{name:a,color:h}),(0,l.jsx)(d.Text,{color:h,children:o})]})})};var f=r(33185);const y=(0,f.default)(d.Box).withConfig({displayName:"styled__MenuItemsGrid",componentId:"sc-18n69i2-0"})(["display:grid;grid-template-columns:1fr 1fr;gap:8px;"]),b=e=>{let{label:t,icon:r,definitions:n=[],definitionIds:s=[],onItemClick:i}=e;const o=(0,c.useMemo)((()=>n.filter((e=>{let{id:t}=e;return s.includes(t)}))),[n,s]);return(0,l.jsxs)(d.Flex,{column:!0,gap:4,children:[(0,l.jsxs)(d.Flex,{alignItems:"center",gap:2,children:[(0,l.jsx)(d.Icon,{color:"menuItem",name:r}),(0,l.jsx)(d.Text,{strong:!0,color:"menuItem",children:t})]}),(0,l.jsx)(y,{"data-testid":"menu-items-grid",children:o.map((e=>(0,l.jsx)(C,{...e,onClick:i},e.id)))})]})},w=()=>{const{loaded:e,definitions:t,error:r,onButtonClick:n}=g();return e?r?null:(0,l.jsx)(d.Flex,{column:!0,gap:4,padding:[0,4,4,4],children:j.I9.map((e=>(0,l.jsx)(b,{definitions:t,...e,onItemClick:n},e.id)))}):(0,l.jsx)(p.A,{})},v=()=>{const[e,t]=(0,h.OH)();return(0,l.jsx)(n.BN,{"data-testid":"insights-search-input-container",children:(0,l.jsx)(d.SearchInput,{value:e,placeholder:"Search insights",onChange:t,containerStyles:{width:"100%"}})})},I=(0,f.default)(d.Flex).attrs((e=>{let{isActive:t,isLastItem:r,...n}=e;return{height:"42px",alignItems:"center",gap:2,padding:[2,2,2,4],cursor:"pointer",...t?{background:"menuItemSelected"}:{},...r?{}:{border:{side:"bottom",color:"border"}},...n}})).withConfig({displayName:"menuItem__MenuItemContainer",componentId:"sc-yylasy-0"})(["&:hover{background:",";}"],(0,d.getColor)("menuItemSelected")),k=e=>{let{id:t,label:r,onClick:n,isActive:s,isLastItem:i}=e;const o=(0,c.useCallback)((()=>{n({id:t})}),[t,n]);return(0,l.jsxs)(I,{onClick:o,isActive:s,isLastItem:i,children:[(0,l.jsx)(d.TextBig,{children:r}),s?(0,l.jsx)(d.Icon,{name:"checkmark_s",color:"primary",size:"large"}):null]},t)},B=e=>{let{items:t=[],value:r,onChange:n}=e;return(0,l.jsx)(l.Fragment,{children:t.map(((e,s)=>{const i=e.id===r,o=s===t.length-1;return(0,l.jsx)(k,{...e,onClick:()=>{n(e.id)},isActive:i,isLastItem:o},e.id)}))})},F=e=>{let{items:t,value:r,onChange:n,close:s}=e;const i=(0,c.useCallback)((e=>{n(e),s()}),[n,s]);return(0,l.jsx)(d.Flex,{width:{min:70},column:!0,border:{side:"all",color:"border"},children:(0,l.jsx)(B,{items:t,value:r,onChange:i})})};var M=r(6304),S=r(74891),A=r(16402);const V=(0,S.A)(d.Button),T=e=>{let{showLabel:t,groupByLabel:r,tooltip:n,showValue:s,groupByValue:i,onShowChange:o,onGroupByChange:a}=e;const h=(0,c.useRef)(),u=(0,c.useRef)(),[x,g,,p]=(0,M.A)(),[m,j,,C]=(0,M.A)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(d.Flex,{"data-testid":"insights-sidebar-menu-filter",alignItems:"center",gap:2,padding:[2,4,0,4],children:[(0,l.jsx)(V,{ref:h,flavour:"borderless",neutral:!0,small:!0,padding:[2,0],onClick:g,tooltip:n,children:(0,l.jsxs)(d.Flex,{alignItems:"center",gap:1,children:[(0,l.jsxs)(d.Text,{color:"menuItem",children:["Show ",(0,l.jsx)(d.Text,{color:"primary",children:t})]}),(0,l.jsx)(d.Icon,{name:"chevron_left",rotate:x?1:3,size:"small",color:"text"})]})}),(0,l.jsx)(V,{ref:u,flavour:"borderless",neutral:!0,small:!0,padding:[2,0],onClick:j,tooltip:n,children:(0,l.jsxs)(d.Flex,{alignItems:"center",gap:1,children:[(0,l.jsxs)(d.Text,{color:"menuItem",children:["Group by ",(0,l.jsx)(d.Text,{color:"primary",children:r})]}),(0,l.jsx)(d.Icon,{name:"chevron_left",rotate:m?1:3,size:"small",color:"text"})]})})]}),x&&h?.current?(0,l.jsx)(d.Drop,{target:h.current,align:{top:"bottom",left:"right"},background:"modalBackground",margin:[2,0,0],round:.5,close:p,onClickOutside:p,onEsc:p,children:(0,l.jsx)(F,{items:A.Ks,value:s,onChange:o,close:p})}):null,m&&u?.current?(0,l.jsx)(d.Drop,{target:u.current,align:{top:"bottom",left:"right"},background:"modalBackground",margin:[2,0,0],round:.5,close:C,onClickOutside:C,onEsc:C,children:(0,l.jsx)(F,{items:A.bS,value:i,onChange:a,close:C})}):null]})},L=(0,f.default)(d.Flex).attrs((e=>({padding:[2],...e}))).withConfig({displayName:"menu__Section",componentId:"sc-rir5cm-0"})([""]),_=e=>{let{items:t=[],value:r,onChange:n}=e;return(0,l.jsx)(l.Fragment,{children:t.map(((e,s)=>{const i=e.id===r,o=s===t.length-1;return(0,l.jsx)(k,{...e,onClick:()=>{n(e.id)},isActive:i,isLastItem:o},e.id)}))})},P=e=>{let{sortByValue:t,sortOrderValue:r,onSortByChange:n,onSortOrderChange:s}=e;return(0,l.jsxs)(d.Flex,{width:{min:70},column:!0,border:{side:"all",color:"border"},children:[(0,l.jsx)(L,{children:(0,l.jsx)(d.Text,{children:"Sort by"})}),(0,l.jsx)(_,{items:A.Ih,value:t,onChange:n}),(0,l.jsx)(L,{children:(0,l.jsx)(d.Text,{children:"Order"})}),(0,l.jsx)(_,{items:A.Rb,value:r,onChange:s})]})},E=(0,S.A)(d.Button),H=e=>{let{label:t,sortByValue:r,sortOrderValue:n,onSortByChange:s,onSortOrderChange:i}=e;const o=(0,c.useRef)(),[a,h,,u]=(0,M.A)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.Flex,{"data-testid":"insights-sidebar-menu-sort",padding:[2,4,0,4],children:(0,l.jsx)(E,{ref:o,flavour:"borderless",neutral:!0,small:!0,padding:[2,0],onClick:h,children:(0,l.jsxs)(d.Flex,{alignItems:"center",gap:1,children:[(0,l.jsx)(d.Text,{children:t}),(0,l.jsx)(d.Icon,{name:"chevron_left",rotate:a?1:3,size:"small",color:"text"})]})})}),a&&o?.current?(0,l.jsx)(d.Drop,{target:o.current,align:{top:"bottom",left:"right"},background:"modalBackground",margin:[2,0,0],round:.5,close:u,onClickOutside:u,onEsc:u,children:(0,l.jsx)(P,{sortByValue:r,sortOrderValue:n,onSortByChange:s,onSortOrderChange:i})}):null]})};r(72577),r(8872);const N=Array.from(Array(12).keys()).reduce(((e,t)=>({...e,[new Date(2025,t,1).toLocaleString("en-GB",{month:"long"})]:t})),{}),Z=()=>{const[e,t]=(0,c.useState)(A.q1),[r,n]=(0,c.useState)(A.r5),[s,l]=(0,c.useState)(A.ev),[i,o]=(0,c.useState)(A.xn),a=(0,c.useMemo)((()=>A.bS.find((e=>{let{id:t}=e;return t===r}))?.prop),[r]),{loaded:d,reports:u,allReports:x,error:g}=(0,h.KF)({prop:a,recents:e===A.g.recents?A.gk:0,sortBy:s,sortOrder:i}),p=(0,c.useMemo)((()=>d&&!g&&!!x.length),[d,x,g]),m=(0,c.useMemo)((()=>A.Ks.find((t=>{let{id:r}=t;return r===e}))?.label),[e]),j=(0,c.useMemo)((()=>A.bS.find((e=>{let{id:t}=e;return t===r}))?.label),[r]),C=(0,c.useMemo)((()=>"none"===r?m:`${m} by ${j}`),[r,m,j]),f=(0,c.useMemo)((()=>{const e=A.Ih.find((e=>{let{id:t}=e;return t===s}))?.label,t=A.Rb.find((e=>{let{id:t}=e;return t===i}))?.label;return`Sort by ${e.toLowerCase()} ${t.toLowerCase()}`}),[s,i]),y=(0,c.useMemo)((()=>r===A.fK.none),[r]),b=(0,c.useMemo)((()=>{let t=e===A.g.recents?`See ${A.gk} most recent reports`:"See all reports";return r===A.fK.type?t+=" grouped by type":r===A.fK.status?t+=" grouped by status":r===A.fK.month&&(t+=" grouped by month created"),t}),[e,r]),w=(0,c.useMemo)((()=>{if(Array.isArray(u))return[];const e=Object.keys(u);return"month"===a?e.sort(((e,t)=>{const[r,n]=e.split(" "),[s,l]=t.split(" ");return parseInt(n,10)!==parseInt(l,10)?l-n:r!==s?N[s]-N[r]:0})):e}),[a,u]),v=`${(Array.isArray(u)?u:Object.values(u).flat()).map((e=>{let{id:t}=e;return t}))}-sortBy-${s}`,I=(0,c.useCallback)((()=>{}),[]);return{key:v,label:C,showLabel:m,groupByLabel:j,sortLabel:f,showSorting:y,tooltip:b,groups:w,loaded:d,hasReports:p,reports:u,error:g,showValue:e,groupByValue:r,sortByValue:s,sortOrderValue:i,onShowChange:t,onGroupByChange:n,onSortByChange:l,onSortOrderChange:o,onClick:I}};r(37550);var O=r(41395);const R=(0,S.A)(n.rk),D={PENDING:"textLite",PROCESSING:"success",FAILED:"error",default:"neutral"},G=["PROCESSING"],z=(0,c.memo)((e=>{let{status:t,isUnread:r,groupByValue:s,groupIndicatorVisible:i}=e;const o=(0,c.useMemo)((()=>!i&&("status"!==s||r)),[i,s,r]),a=(0,c.useMemo)((()=>({background:o?D[t]||(r?"success":""):"",isBlinking:G.includes(t)})),[t,r,o]),d=(0,c.useMemo)((()=>o?r?"Unread report":t&&"COMPLETED"!==t?(0,O.Zr)(t.toLowerCase()):null:null),[r,t,o]);return(0,l.jsx)(R,{tooltip:d,children:(0,l.jsx)(n.AT,{...a})})})),$=e=>{let{background:t}=e;return(0,l.jsx)(d.Box,{position:"absolute",top:0,bottom:0,left:0,width:"1px",background:t,noWrapper:!0})};var K=r(96162),q=r(74518);const U=e=>{let{report:t={},groupByValue:r,sortByValue:n}=e;const s=(0,f.useTheme)(),l=(0,c.useMemo)((()=>A.aA[n]?.sortingGroupVisible&&r===A.fK.none),[r,n]),i=(0,c.useMemo)((()=>A.aA[n]?.prop),[n]),o=(0,c.useMemo)((()=>t[i]),[t,i]),a=(0,c.useMemo)((()=>A.FX[n]?.[t["definitionName"===i?"definitionId":i]]),[t,n,i]),h=(0,c.useMemo)((()=>(0,d.getRgbColor)(a,.05)({theme:s})),[a,s]);return{isVisible:l,groupName:o,background:a,secondaryBackground:h}};var W=r(3319);const J=e=>{let{groupIndicatorVisible:t,secondaryBackground:r,onMouseEnter:n,onMouseLeave:s,children:i,...o}=e;return(0,l.jsx)(d.Flex,{position:"relative",alignItems:"center",justifyContent:"between",gap:1,padding:[2,1,2,0],onMouseEnter:n,onMouseLeave:s,...t?{background:r}:{},...o,children:i})},Q=e=>{let{report:t,groupIndicatorVisible:r,secondaryBackground:n,onClick:s,onMouseEnter:i,onMouseLeave:o,isHovered:a}=e;const{id:c,childrenReports:h=[],rrule:u}=t,x=!!u,[g,p]=(0,M.A)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(J,{groupIndicatorVisible:r,secondaryBackground:n,onMouseEnter:i,onMouseLeave:o,padding:[2,1,2,4],children:[(0,l.jsxs)(d.Flex,{alignItems:"center",gap:1,children:[(0,l.jsx)(d.Icon,{name:"chevron_left",onClick:p,rotate:g?1:3,size:"small",color:"menuItem",cursor:"pointer"}),(0,l.jsxs)(d.Flex,{alignItems:"center",gap:1,onClick:s,cursor:"pointer",children:[x?(0,l.jsx)(d.Icon,{name:"clock_hollow",color:"menuItem"}):null,(0,l.jsx)(d.Text,{color:"menuItem",children:t.name}),(0,l.jsxs)(d.Text,{children:["(",h.length,")"]})]})]}),a?(0,l.jsx)(K.A,{reportId:c,status:status,isScheduledReport:x,flavour:"inlineMenu"}):null]}),g?(0,l.jsx)(d.Flex,{column:!0,padding:[0,0,0,4],children:h.map((e=>(0,l.jsx)(Y,{report:e,padding:[2,1,2,4]},e.id)))}):null]})},Y=(0,c.memo)((e=>{let{report:t={},groupByValue:r,sortByValue:n,...s}=e;const{id:i,name:o,status:a,isUnread:u,isScheduled:g}=t,[p,,m,j]=(0,M.A)(),{report:C,setReport:f}=(0,x.A)(),y=(0,h.fT)(),b=C===i,[,,,w]=(0,h.W5)(),{sendLog:v}=(0,W.A)(),I=(0,c.useMemo)((()=>b?{color:"primary"}:{..."COMPLETED"===a?{cursor:"pointer"}:{},color:"menuItem"}),[b,a]),{isVisible:k,groupName:B,background:F,secondaryBackground:S}=U({report:t,groupByValue:r,sortByValue:n}),A=(0,c.useMemo)((()=>k?`${o} | ${B}`:o),[o,k,B]),V=(0,c.useCallback)((()=>{("COMPLETED"===a||g)&&(w(),f(i),y(),v({feature:"Insights",description:"Report item menu click",reportId:i,reportStatus:a}))}),[i,w,a,g,f,y,v]);return t.isScheduled?(0,l.jsx)(Q,{report:t,groupIndicatorVisible:k,secondaryBackground:S,onClick:V,onMouseEnter:m,onMouseLeave:j,isHovered:p}):(0,l.jsxs)(J,{groupIndicatorVisible:k,secondaryBackground:S,onMouseEnter:m,onMouseLeave:j,...s,children:[k?(0,l.jsx)($,{background:F}):null,(0,l.jsxs)(d.Flex,{width:"230px",height:"18px",alignItems:"center",gap:1,onClick:V,children:[(0,l.jsx)(z,{status:a,isUnread:u,groupByValue:r,groupIndicatorVisible:k}),(0,l.jsx)(q.A,{TextComponent:d.Text,text:A,ellipsisEnd:!0,...I})]}),p?(0,l.jsx)(K.A,{reportId:i,status:a,flavour:"inlineMenu"}):null]})})),X=Y,ee=e=>t=>{const r=(0,c.useMemo)((()=>({column:!0,overflow:{vertical:"auto"},height:{max:t.inGroup?"200px":"calc(100vh - 420px)"},...t.inGroup?{}:{padding:[0,0,0,4]}})),[t.inGroup]);return(0,l.jsx)(d.Flex,{"data-testid":"insights-sidebar-menu-reports-container",...r,children:(0,l.jsx)(e,{...t})})},te=(0,c.memo)(ee((e=>{let{reports:t=[],...r}=e;return(0,l.jsx)(l.Fragment,{children:t.map((e=>(0,l.jsx)(X,{report:e,...r},e.id)))})}))),re=te,ne=(0,f.default)(d.Flex).attrs((e=>({column:!0,gap:2,padding:[3,2,3,4],border:{side:"bottom",color:"border"},...e}))).withConfig({displayName:"groupItem__GroupItemContainer",componentId:"sc-158b8eq-0"})([""]),se=(0,c.memo)((e=>{let{id:t,hasUnreadReports:r}=e;const{loaded:n,definitions:s,error:i}=(0,h.A_)(),o=(0,c.useMemo)((()=>n&&!i?s.find((e=>e.id===t))?.name:null),[t,n,s,i]);return n?i?(0,l.jsx)(d.Text,{color:"error",children:"Error"}):(0,l.jsx)(d.Text,{strong:!0,color:r?"primary":"text",children:o}):(0,l.jsx)(p.A,{})})),le=(0,c.memo)((e=>{let{label:t,groupByValue:r,hasUnreadReports:s}=e;return"type"===r?(0,l.jsx)(se,{id:t,hasUnreadReports:s}):"status"===r?(0,l.jsxs)(d.Flex,{alignItems:"center",gap:1,children:[(0,l.jsx)(n.rk,{children:(0,l.jsx)(n.AT,{background:A.T$[t]||""})}),(0,l.jsx)(d.Text,{strong:!0,color:"menuItem",children:(0,O.Zr)(t.toLowerCase())})]}):(0,l.jsx)(d.Text,{strong:!0,color:s?"primary":"menuItem",children:t})})),ie=(0,S.A)(d.Flex),oe=e=>{let{label:t,groupByValue:r,reports:n=[]}=e;const{report:s}=(0,x.A)(),[i]=(0,h.x)(),[o,a,u]=(0,M.A)(),g=(0,c.useMemo)((()=>n.some((e=>{let{id:t}=e;return i.includes(t)}))),[n,i]);return(0,c.useEffect)((()=>{n&&n.find((e=>{let{id:t}=e;return t===s}))&&u()}),[s,n,u]),(0,l.jsxs)(ne,{"data-testid":"insights-sidebar-menu-group-container",children:[(0,l.jsxs)(ie,{alignItem:"center",gap:1,cursor:"pointer",onClick:a,...g&&!o?{tooltip:`You have ${i.length} unread reports`}:{},children:[(0,l.jsx)(d.Icon,{name:"chevron_left",rotate:o?1:3,size:"small",color:"menuItem"}),(0,l.jsx)(le,{label:t,groupByValue:r,hasUnreadReports:g}),(0,l.jsxs)(d.Text,{color:"menuItem",children:["(",n.length,")"]})]}),o?(0,l.jsx)(re,{inGroup:!0,reports:n,groupByValue:r}):null]})},ae=e=>{let{groupByValue:t,sortByValue:r,groups:n=[],reports:s}=e;return t===A.fK.none?(0,l.jsx)(re,{reports:s,groupByValue:t,sortByValue:r}):(0,l.jsx)(l.Fragment,{children:n.map((e=>(0,l.jsx)(oe,{label:e,groupByValue:t,reports:s[e]},e)))})},de=()=>(0,l.jsxs)(d.Flex,{column:!0,gap:5,alignItems:"center",justifyContent:"center",padding:[8,4],children:[(0,l.jsx)(d.Text,{textAlign:"center",children:"No reports yet! Click one of the buttons below to create your first one."}),(0,l.jsx)(w,{})]}),ce=()=>{const{key:e,label:t,showLabel:r,groupByLabel:s,sortLabel:i,showSorting:o,tooltip:a,groups:c,reports:h,hasReports:u,showValue:x,groupByValue:g,sortByValue:p,sortOrderValue:m,onShowChange:j,onGroupByChange:C,onSortByChange:f,onSortOrderChange:y}=Z();return u?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(w,{}),(0,l.jsxs)(d.Flex,{column:!0,gap:1,flex:"grow",border:{side:"top",color:"border"},children:[(0,l.jsxs)(d.Flex,{"data-testid":"insights-sidebar-menu-filter-sort-container",alignItems:"center",justifyContent:"between",children:[(0,l.jsx)(T,{label:t,showLabel:r,groupByLabel:s,tooltip:a,showValue:x,groupByValue:g,onShowChange:j,onGroupByChange:C}),o?(0,l.jsx)(H,{label:i,sortByValue:p,sortOrderValue:m,onSortByChange:f,onSortOrderChange:y}):null]}),(0,l.jsx)(v,{}),(0,l.jsx)(n.Hs,{"data-testid":"insights-sidebar-menu-container",children:(0,l.jsx)(ae,{groupByValue:g,sortByValue:p,groups:c,reports:h})},e)]})]}):(0,l.jsx)(de,{})},he=()=>(0,l.jsxs)(n.oe,{"data-testid":"insights-sidebar-container",children:[(0,l.jsx)(a,{}),(0,l.jsx)(ce,{})]});var ue=r(46587);const xe=()=>(0,l.jsxs)(d.Flex,{"data-testid":"insights-overview-header-container",column:!0,gap:2,children:[(0,l.jsx)(d.TextBig,{color:"menuItem",children:"Insights and investigations"}),(0,l.jsxs)(d.Text,{color:"menuItem",lineHeight:1.5,children:["Use Al to run automated investigations and generate insights.",(0,l.jsx)("br",{}),"Make better decisions, faster, without sifting through dashboards or writing complicated queries."]})]}),ge=(0,f.default)(d.Box).attrs((e=>({...e}))).withConfig({displayName:"styled__OverviewGrid",componentId:"sc-wl3070-0"})(["display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;"]),pe=()=>(0,l.jsxs)("svg",{width:"282",height:"78",viewBox:"0 0 282 78",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_617_8244)",children:[(0,l.jsx)("path",{opacity:"0.8",d:"M29 55.4667C30.1046 55.4667 31 54.6906 31 53.7333C31 52.776 30.1046 52 29 52C27.8954 52 27 52.776 27 53.7333C27 54.6906 27.8954 55.4667 29 55.4667Z",fill:"#10B981"}),(0,l.jsx)("path",{opacity:"0.8",d:"M49 52C50.1046 52 51 51.224 51 50.2667C51 49.3094 50.1046 48.5333 49 48.5333C47.8954 48.5333 47 49.3094 47 50.2667C47 51.224 47.8954 52 49 52Z",fill:"#10B981"}),(0,l.jsx)("path",{opacity:"0.8",d:"M69 57.2C70.1046 57.2 71 56.424 71 55.4667C71 54.5094 70.1046 53.7333 69 53.7333C67.8954 53.7333 67 54.5094 67 55.4667C67 56.424 67.8954 57.2 69 57.2Z",fill:"#10B981"}),(0,l.jsx)("path",{opacity:"0.8",d:"M89 53.7333C90.1046 53.7333 91 52.9573 91 52C91 51.0427 90.1046 50.2667 89 50.2667C87.8954 50.2667 87 51.0427 87 52C87 52.9573 87.8954 53.7333 89 53.7333Z",fill:"#10B981"}),(0,l.jsx)("path",{opacity:"0.8",d:"M109 56.3333C110.105 56.3333 111 55.5573 111 54.6C111 53.6427 110.105 52.8667 109 52.8667C107.895 52.8667 107 53.6427 107 54.6C107 55.5573 107.895 56.3333 109 56.3333Z",fill:"#10B981"}),(0,l.jsx)("path",{opacity:"0.6",d:"M30.6071 53.7333L50.6785 50.2667L70.75 55.4667L90.8214 52L110.893 54.6",stroke:"#10B981"}),(0,l.jsx)("path",{d:"M151 22.5333C152.105 22.5333 153 21.7573 153 20.8C153 19.8427 152.105 19.0667 151 19.0667C149.895 19.0667 149 19.8427 149 20.8C149 21.7573 149.895 22.5333 151 22.5333Z",fill:"#8783D1"}),(0,l.jsx)("path",{d:"M110.893 54.6L130.964 39L151.036 21.6667L171.107 41.6L191.179 53.7333",stroke:"#8783D1"}),(0,l.jsx)("path",{opacity:"0.8",d:"M189 55.4667C190.105 55.4667 191 54.6906 191 53.7333C191 52.776 190.105 52 189 52C187.895 52 187 52.776 187 53.7333C187 54.6906 187.895 55.4667 189 55.4667Z",fill:"#10B981"}),(0,l.jsx)("path",{opacity:"0.8",d:"M209 52.8667C210.105 52.8667 211 52.0906 211 51.1333C211 50.176 210.105 49.4 209 49.4C207.895 49.4 207 50.176 207 51.1333C207 52.0906 207.895 52.8667 209 52.8667Z",fill:"#10B981"}),(0,l.jsx)("path",{opacity:"0.8",d:"M229 54.6C230.105 54.6 231 53.824 231 52.8667C231 51.9094 230.105 51.1333 229 51.1333C227.895 51.1333 227 51.9094 227 52.8667C227 53.824 227.895 54.6 229 54.6Z",fill:"#10B981"}),(0,l.jsx)("path",{opacity:"0.8",d:"M249 58.0667C250.105 58.0667 251 57.2906 251 56.3333C251 55.376 250.105 54.6 249 54.6C247.895 54.6 247 55.376 247 56.3333C247 57.2906 247.895 58.0667 249 58.0667Z",fill:"#10B981"}),(0,l.jsx)("path",{opacity:"0.6",d:"M191.179 53.7333L211.25 51.1333L231.321 52.8667L251.393 56.3333",stroke:"#10B981"}),(0,l.jsx)("rect",{x:"111.5",y:"9.16666",width:"75",height:"59.6667",fill:"#8783D1",fillOpacity:"0.5",stroke:"#8783D1",strokeDasharray:"2 2"}),(0,l.jsx)("path",{d:"M193.805 8.28125L193.602 0.71875H196.102L195.891 8.28125H193.805ZM194.852 12.2266C194.414 12.2266 194.068 12.1094 193.812 11.875C193.557 11.6406 193.43 11.3229 193.43 10.9219C193.43 10.5104 193.557 10.1901 193.812 9.96094C194.068 9.72656 194.414 9.60938 194.852 9.60938C195.294 9.60938 195.641 9.72656 195.891 9.96094C196.146 10.1901 196.273 10.5104 196.273 10.9219C196.273 11.3229 196.146 11.6406 195.891 11.875C195.641 12.1094 195.294 12.2266 194.852 12.2266Z",fill:"#8783D1"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_617_8244",children:(0,l.jsx)("rect",{width:"281",height:"78",fill:"white",transform:"translate(0.5)"})})})]}),me=()=>(0,l.jsxs)("svg",{width:"281",height:"80",viewBox:"0 0 281 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_617_8357)",children:[(0,l.jsx)("path",{d:"M95.0231 61.5893C95.0231 61.5893 25.1955 70.4107 1.07981 75.5179H210.562H211.642V9.35715C206.783 23.9821 187.887 10.0536 164.131 36.5179C145.126 57.6893 110.14 62.0535 95.0231 61.5893Z",fill:"#FFB140",fillOpacity:"0.2"}),(0,l.jsx)("path",{d:"M1.07981 75.5179C25.1955 70.4107 95.0231 61.5893 95.0231 61.5893C110.14 62.0535 145.126 57.6893 164.131 36.5179C187.887 10.0536 206.783 23.9821 211.642 9.35715",stroke:"#FFB140"}),(0,l.jsx)("path",{d:"M250.515 2.39289C240.706 0.2384 226.496 6.01583 221.248 8.39084C220 8.95568 219.193 10.4751 219.183 12.1813L218.767 76.2143H276.971V22.4944C276.971 21.2329 276.537 20.0475 275.759 19.2829C271.979 15.5669 260.079 4.49352 250.515 2.39289Z",fill:"#0EB6F0",fillOpacity:"0.3"}),(0,l.jsx)("path",{d:"M219.201 9.35717C219.201 9.35717 238.282 -0.294227 250.515 2.39289C262.046 4.92545 276.971 20.5 276.971 20.5",stroke:"#0EB6F0",strokeDasharray:"2 2"}),(0,l.jsx)("path",{d:"M2.69952 79C4.19042 79 5.39904 77.441 5.39904 75.5178C5.39904 73.5947 4.19042 72.0357 2.69952 72.0357C1.20862 72.0357 0 73.5947 0 75.5178C0 77.441 1.20862 79 2.69952 79Z",fill:"#FFB140"}),(0,l.jsx)("path",{d:"M211.102 13.5357C212.593 13.5357 213.802 11.9767 213.802 10.0536C213.802 8.13045 212.593 6.57144 211.102 6.57144C209.612 6.57144 208.403 8.13045 208.403 10.0536C208.403 11.9767 209.612 13.5357 211.102 13.5357Z",fill:"#FFB140"}),(0,l.jsx)("path",{d:"M220.821 13.5357C222.312 13.5357 223.52 11.9767 223.52 10.0536C223.52 8.13045 222.312 6.57144 220.821 6.57144C219.33 6.57144 218.121 8.13045 218.121 10.0536C218.121 11.9767 219.33 13.5357 220.821 13.5357Z",fill:"#0EB6F0"}),(0,l.jsx)("path",{d:"M278.05 24.6786C279.541 24.6786 280.75 23.1196 280.75 21.1964C280.75 19.2733 279.541 17.7143 278.05 17.7143C276.56 17.7143 275.351 19.2733 275.351 21.1964C275.351 23.1196 276.56 24.6786 278.05 24.6786Z",fill:"#0EB6F0"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_617_8357",children:(0,l.jsx)("rect",{width:"280.75",height:"78",fill:"white",transform:"translate(0 1)"})})})]}),je=()=>(0,l.jsxs)("svg",{width:"282",height:"78",viewBox:"0 0 282 78",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("rect",{x:"3.125",width:"12",height:"12",rx:"2",fill:"#005622"}),(0,l.jsx)("rect",{x:"3.125",y:"22",width:"12",height:"12",rx:"2",fill:"#005622"}),(0,l.jsx)("rect",{x:"3.125",y:"44",width:"12",height:"12",rx:"2",fill:"#BF7100"}),(0,l.jsx)("rect",{x:"3.125",y:"66",width:"12",height:"12",rx:"2",fill:"#830D1C"}),(0,l.jsx)("rect",{x:"25.125",width:"12",height:"12",rx:"2",fill:"#830D1C"}),(0,l.jsx)("rect",{x:"25.125",y:"22",width:"12",height:"12",rx:"2",fill:"#608F73"}),(0,l.jsx)("rect",{x:"25.125",y:"44",width:"12",height:"12",rx:"2",fill:"#BF7100"}),(0,l.jsx)("rect",{x:"25.125",y:"66",width:"12",height:"12",rx:"2",fill:"#005622"}),(0,l.jsx)("rect",{x:"47.125",width:"12",height:"12",rx:"2",fill:"#608F73"}),(0,l.jsx)("rect",{x:"47.125",y:"22",width:"12",height:"12",rx:"2",fill:"#005622"}),(0,l.jsx)("rect",{x:"47.125",y:"44",width:"12",height:"12",rx:"2",fill:"#830D1C"}),(0,l.jsx)("rect",{x:"47.125",y:"66",width:"12",height:"12",rx:"2",fill:"#005622"}),(0,l.jsx)("rect",{x:"69.125",width:"12",height:"12",rx:"2",fill:"#005622"}),(0,l.jsx)("rect",{x:"69.125",y:"22",width:"12",height:"12",rx:"2",fill:"#005622"}),(0,l.jsx)("rect",{x:"69.125",y:"44",width:"12",height:"12",rx:"2",fill:"#BF7100"}),(0,l.jsx)("rect",{x:"69.125",y:"66",width:"12",height:"12",rx:"2",fill:"#005622"}),(0,l.jsx)("rect",{x:"91.125",width:"12",height:"12",rx:"2",fill:"#608F73"}),(0,l.jsx)("rect",{x:"91.125",y:"22",width:"12",height:"12",rx:"2",fill:"#608F73"}),(0,l.jsx)("rect",{x:"91.125",y:"44",width:"12",height:"12",rx:"2",fill:"#BF7100"}),(0,l.jsx)("rect",{x:"91.125",y:"66",width:"12",height:"12",rx:"2",fill:"#830D1C"}),(0,l.jsx)("rect",{x:"113.125",width:"12",height:"12",rx:"2",fill:"#608F73"}),(0,l.jsx)("rect",{x:"113.125",y:"22",width:"12",height:"12",rx:"2",fill:"#005622"}),(0,l.jsx)("rect",{x:"113.125",y:"44",width:"12",height:"12",rx:"2",fill:"#BF7100"}),(0,l.jsx)("rect",{x:"113.125",y:"66",width:"12",height:"12",rx:"2",fill:"#005622"}),(0,l.jsx)("rect",{x:"135.125",width:"12",height:"12",rx:"2",fill:"#005622"}),(0,l.jsx)("rect",{x:"135.125",y:"22",width:"12",height:"12",rx:"2",fill:"#608F73"}),(0,l.jsx)("rect",{x:"135.125",y:"44",width:"12",height:"12",rx:"2",fill:"#830D1C"}),(0,l.jsx)("rect",{x:"135.125",y:"66",width:"12",height:"12",rx:"2",fill:"#005622"}),(0,l.jsx)("rect",{x:"157.125",width:"12",height:"12",rx:"2",fill:"#830D1C"}),(0,l.jsx)("rect",{x:"157.125",y:"22",width:"12",height:"12",rx:"2",fill:"#005622"}),(0,l.jsx)("rect",{x:"157.125",y:"44",width:"12",height:"12",rx:"2",fill:"#BF7100"}),(0,l.jsx)("rect",{x:"157.125",y:"66",width:"12",height:"12",rx:"2",fill:"#830D1C"}),(0,l.jsx)("rect",{x:"179.125",width:"12",height:"12",rx:"2",fill:"#005622"}),(0,l.jsx)("rect",{x:"179.125",y:"22",width:"12",height:"12",rx:"2",fill:"#005622"}),(0,l.jsx)("rect",{x:"179.125",y:"44",width:"12",height:"12",rx:"2",fill:"#BF7100"}),(0,l.jsx)("rect",{x:"179.125",y:"66",width:"12",height:"12",rx:"2",fill:"#005622"}),(0,l.jsx)("rect",{x:"201.125",width:"12",height:"12",rx:"2",fill:"#BF7100"}),(0,l.jsx)("rect",{x:"201.125",y:"22",width:"12",height:"12",rx:"2",fill:"#4A5757"}),(0,l.jsx)("rect",{x:"201.125",y:"44",width:"12",height:"12",rx:"2",fill:"#830D1C"}),(0,l.jsx)("rect",{x:"201.125",y:"66",width:"12",height:"12",rx:"2",fill:"#830D1C"}),(0,l.jsx)("rect",{x:"223.125",width:"12",height:"12",rx:"2",fill:"#BF7100"}),(0,l.jsx)("rect",{x:"223.125",y:"22",width:"12",height:"12",rx:"2",fill:"#005622"}),(0,l.jsx)("rect",{x:"223.125",y:"44",width:"12",height:"12",rx:"2",fill:"#608F73"}),(0,l.jsx)("rect",{x:"223.125",y:"66",width:"12",height:"12",rx:"2",fill:"#608F73"}),(0,l.jsx)("rect",{x:"245.125",width:"12",height:"12",rx:"2",fill:"#005622"}),(0,l.jsx)("rect",{x:"245.125",y:"22",width:"12",height:"12",rx:"2",fill:"#608F73"}),(0,l.jsx)("rect",{x:"245.125",y:"44",width:"12",height:"12",rx:"2",fill:"#BF7100"}),(0,l.jsx)("rect",{x:"245.125",y:"66",width:"12",height:"12",rx:"2",fill:"#BF7100"}),(0,l.jsx)("rect",{x:"267.125",width:"12",height:"12",rx:"2",fill:"#BF7100"}),(0,l.jsx)("rect",{x:"267.125",y:"22",width:"12",height:"12",rx:"2",fill:"#005622"}),(0,l.jsx)("rect",{x:"267.125",y:"44",width:"12",height:"12",rx:"2",fill:"#608F73"}),(0,l.jsx)("rect",{x:"267.125",y:"66",width:"12",height:"12",rx:"2",fill:"#608F73"})]}),Ce=()=>{const e=(0,f.useTheme)();return(0,l.jsxs)("svg",{width:"273",height:"78",viewBox:"0 0 273 78",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("rect",{x:"0.25",y:"11",width:"12.15",height:"67",fill:"#990F21"}),(0,l.jsx)("rect",{x:"20.4",y:"11",width:"12.15",height:"67",fill:"#990F21"}),(0,l.jsx)("rect",{x:"40.55",y:"11",width:"12.15",height:"67",fill:"#990F21"}),(0,l.jsx)("rect",{x:"60.7",width:"12.15",height:"78",fill:"#990F21"}),(0,l.jsx)("rect",{x:"80.85",y:"17",width:"12.15",height:"61",fill:"#990F21"}),(0,l.jsx)("path",{d:"M141.707 39.7071C142.098 39.3166 142.098 38.6834 141.707 38.2929L135.343 31.9289C134.953 31.5384 134.319 31.5384 133.929 31.9289C133.538 32.3195 133.538 32.9526 133.929 33.3431L139.586 39L133.929 44.6569C133.538 45.0474 133.538 45.6805 133.929 46.0711C134.319 46.4616 134.953 46.4616 135.343 46.0711L141.707 39.7071ZM117 39V40H141V39V38H117V39Z",fill:(0,d.getColor)("text")({theme:e})}),(0,l.jsx)("rect",{x:"165",y:"39",width:"15.2",height:"39",fill:"#00AB44"}),(0,l.jsx)("rect",{x:"188.2",y:"27",width:"15.2",height:"51",fill:"#00AB44"}),(0,l.jsx)("rect",{x:"211.4",y:"44",width:"15.2",height:"34",fill:"#00AB44"}),(0,l.jsx)("rect",{x:"234.6",y:"12",width:"15.2",height:"66",fill:"#00AB44"}),(0,l.jsx)("rect",{x:"257.8",y:"27",width:"15.2",height:"51",fill:"#00AB44"})]})},fe=()=>(0,l.jsxs)("svg",{width:"417",height:"78",viewBox:"0 0 417 78",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("rect",{x:"17",y:"19",width:"40",height:"40",rx:"20",fill:"#DB162F"}),(0,l.jsx)("path",{d:"M42.45 40.11C41.56 39.66 41 38.77 41 37.77V37C41 35.03 39.56 33.4 37.69 33.07C37.69 33.05 37.7 33.03 37.7 33C37.7 32.61 37.39 32.3 37 32.3C36.61 32.3 36.3 32.61 36.3 33C36.3 33.02 36.31 33.05 36.31 33.07C34.44 33.4 33 35.03 33 37V37.76C33 38.76 32.45 39.66 31.55 40.1L31 40.38V41H38.5C38.5 41.55 38.05 42 37.5 42H31V43.2C31 44.19 31.81 45 32.8 45H36C36 45.55 36.45 46 37 46C37.55 46 38 45.55 38 45H41.2C42.19 45 43 44.19 43 43.2V40.38L42.45 40.11Z",fill:"#FACED4"}),(0,l.jsx)("path",{d:"M116.874 39.7071C117.264 39.3166 117.264 38.6834 116.874 38.2929L110.51 31.9289C110.119 31.5384 109.486 31.5384 109.096 31.9289C108.705 32.3195 108.705 32.9526 109.096 33.3431L114.752 39L109.096 44.6569C108.705 45.0474 108.705 45.6805 109.096 46.0711C109.486 46.4616 110.119 46.4616 110.51 46.0711L116.874 39.7071ZM72.1667 39V40H116.167V39V38H72.1667V39Z",fill:"#EE5467"}),(0,l.jsx)("path",{d:"M151.333 19.5C162.103 19.5 170.833 28.2304 170.833 39C170.833 49.7696 162.103 58.5 151.333 58.5C140.564 58.5 131.833 49.7696 131.833 39C131.833 28.2304 140.564 19.5 151.333 19.5Z",fill:"#151818"}),(0,l.jsx)("path",{d:"M151.333 19.5C162.103 19.5 170.833 28.2304 170.833 39C170.833 49.7696 162.103 58.5 151.333 58.5C140.564 58.5 131.833 49.7696 131.833 39C131.833 28.2304 140.564 19.5 151.333 19.5Z",stroke:"#0EB6F0"}),(0,l.jsx)("path",{d:"M149.561 36.8976C149.665 36.5942 150.104 36.5942 150.207 36.8976L150.815 38.6788C150.949 39.0703 151.174 39.4261 151.473 39.7178C151.772 40.0096 152.137 40.2294 152.538 40.3597L154.362 40.9528C154.672 41.054 154.672 41.4825 154.362 41.5836L152.537 42.1767C152.136 42.3073 151.771 42.5272 151.472 42.8191C151.173 43.1111 150.948 43.4669 150.815 43.8586L150.207 45.6388C150.185 45.7052 150.142 45.7631 150.084 45.8041C150.026 45.8451 149.956 45.8672 149.884 45.8672C149.812 45.8672 149.743 45.8451 149.685 45.8041C149.627 45.7631 149.583 45.7052 149.561 45.6388L148.953 43.8576C148.82 43.4662 148.595 43.1105 148.296 42.8187C147.997 42.527 147.632 42.3072 147.231 42.1767L145.407 41.5836C145.339 41.5618 145.279 41.5196 145.237 41.4629C145.195 41.4063 145.173 41.3381 145.173 41.2682C145.173 41.1983 145.195 41.1301 145.237 41.0735C145.279 41.0168 145.339 40.9746 145.407 40.9528L147.231 40.3597C147.632 40.2292 147.997 40.0094 148.296 39.7177C148.595 39.4259 148.82 39.0702 148.953 38.6788L149.561 36.8976ZM153.458 32.2089C153.472 32.1691 153.498 32.1344 153.533 32.1099C153.567 32.0853 153.609 32.0721 153.652 32.0721C153.695 32.0721 153.737 32.0853 153.772 32.1099C153.807 32.1344 153.833 32.1691 153.846 32.2089L154.211 33.2774C154.374 33.7537 154.756 34.1271 155.244 34.2861L156.339 34.642C156.38 34.6552 156.415 34.6806 156.44 34.7146C156.466 34.7486 156.479 34.7895 156.479 34.8314C156.479 34.8734 156.466 34.9143 156.44 34.9483C156.415 34.9823 156.38 35.0077 156.339 35.0209L155.244 35.3767C155.004 35.455 154.785 35.5869 154.606 35.762C154.426 35.9371 154.291 36.1505 154.211 36.3855L153.846 37.454C153.833 37.4938 153.807 37.5284 153.772 37.553C153.737 37.5776 153.695 37.5908 153.652 37.5908C153.609 37.5908 153.567 37.5776 153.533 37.553C153.498 37.5284 153.472 37.4938 153.458 37.454L153.094 36.3855C153.013 36.1505 152.878 35.9371 152.699 35.762C152.52 35.5869 152.301 35.455 152.06 35.3767L150.966 35.0209C150.925 35.0077 150.889 34.9823 150.864 34.9483C150.839 34.9143 150.825 34.8734 150.825 34.8314C150.825 34.7895 150.839 34.7486 150.864 34.7146C150.889 34.6806 150.925 34.6552 150.966 34.642L152.06 34.2861C152.301 34.2079 152.52 34.076 152.699 33.9009C152.878 33.7258 153.013 33.5123 153.094 33.2774L153.458 32.2089Z",fill:"#0EB6F0"}),(0,l.jsx)("path",{d:"M231.207 39.7071C231.598 39.3166 231.598 38.6834 231.207 38.2929L224.843 31.9289C224.453 31.5384 223.819 31.5384 223.429 31.9289C223.038 32.3195 223.038 32.9526 223.429 33.3431L229.086 39L223.429 44.6569C223.038 45.0474 223.038 45.6805 223.429 46.0711C223.819 46.4616 224.453 46.4616 224.843 46.0711L231.207 39.7071ZM186.5 39V40H230.5V39V38H186.5V39Z",fill:"#0EB6F0"}),(0,l.jsx)("path",{d:"M265.667 19.5C276.436 19.5 285.167 28.2304 285.167 39C285.167 49.7696 276.436 58.5 265.667 58.5C254.897 58.5 246.167 49.7696 246.167 39C246.167 28.2304 254.897 19.5 265.667 19.5Z",fill:"#151818"}),(0,l.jsx)("path",{d:"M265.667 19.5C276.436 19.5 285.167 28.2304 285.167 39C285.167 49.7696 276.436 58.5 265.667 58.5C254.897 58.5 246.167 49.7696 246.167 39C246.167 28.2304 254.897 19.5 265.667 19.5Z",stroke:"#0EB6F0"}),(0,l.jsx)("path",{d:"M264.778 39.6666H267.889C268.627 39.6666 269.222 39.0711 269.222 38.3333H264.778V39.6666ZM264.778 41.8889H267.889C268.627 41.8889 269.222 41.2933 269.222 40.5555H264.778V41.8889ZM264.778 37.4444H267.889C268.627 37.4444 269.222 36.8489 269.222 36.1111H264.778V37.4444ZM269.302 32.3333H262.031C260.36 32.3333 259 33.6933 259 35.3644V42.6355C259 44.3066 260.36 45.6666 262.031 45.6666H269.302C270.973 45.6666 272.333 44.3066 272.333 42.6355V35.3644C272.333 33.6933 270.973 32.3333 269.302 32.3333ZM261.889 44.3155C261.018 44.2444 260.333 43.5244 260.333 42.6355V35.3644C260.333 34.4755 261.018 33.7555 261.889 33.6844V44.3155ZM271 42.6355C271 43.5689 270.244 44.3333 269.302 44.3333H263.222V33.6666H269.302C270.236 33.6666 271 34.4222 271 35.3644V42.6355Z",fill:"#0EB6F0"}),(0,l.jsx)("path",{d:"M345.54 39.7071C345.931 39.3166 345.931 38.6834 345.54 38.2929L339.177 31.9289C338.786 31.5384 338.153 31.5384 337.762 31.9289C337.372 32.3195 337.372 32.9526 337.762 33.3431L343.419 39L337.762 44.6569C337.372 45.0474 337.372 45.6805 337.762 46.0711C338.153 46.4616 338.786 46.4616 339.177 46.0711L345.54 39.7071ZM300.833 39V40H344.833V39V38H300.833V39Z",fill:"#00AB44"}),(0,l.jsx)("path",{d:"M360 39C360 27.9543 368.954 19 380 19C391.046 19 400 27.9543 400 39C400 50.0457 391.046 59 380 59C368.954 59 360 50.0457 360 39Z",fill:"#00AB44"}),(0,l.jsx)("path",{d:"M379.155 43.8533L374.924 39.6311C374.578 39.2844 374.578 38.7244 374.924 38.3777C375.271 38.0311 375.831 38.0311 376.178 38.3777L379.058 41.2577L384.658 34.8577C384.978 34.4844 385.547 34.4488 385.911 34.7777C386.284 35.0977 386.32 35.6666 385.991 36.0311L379.155 43.8533Z",fill:"#DDFFEB"})]}),ye=()=>(0,l.jsxs)("svg",{width:"417",height:"78",viewBox:"0 0 417 78",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M4 0.5H413C414.933 0.5 416.5 2.067 416.5 4V74C416.5 75.933 414.933 77.5 413 77.5H4C2.06701 77.5 0.5 75.933 0.5 74V4C0.5 2.067 2.067 0.5 4 0.5Z",fill:"#001107"}),(0,l.jsx)("path",{d:"M4 0.5H413C414.933 0.5 416.5 2.067 416.5 4V74C416.5 75.933 414.933 77.5 413 77.5H4C2.06701 77.5 0.5 75.933 0.5 74V4C0.5 2.067 2.067 0.5 4 0.5Z",stroke:"#00AB44"}),(0,l.jsx)("path",{d:"M14.94 14L11.1334 17.8067C10.8734 18.0667 10.4534 18.0667 10.1934 17.8067C9.93335 17.5467 9.93335 17.1267 10.1934 16.8667L13.0534 14.0067L10.1934 11.14C9.93335 10.88 9.93335 10.46 10.1934 10.2C10.4534 9.94 10.8734 9.94 11.1334 10.2L14.94 14Z",fill:"#00AB44"}),(0,l.jsx)("path",{d:"M20 20.791V19.6836H28.1689V20.791H20Z",fill:"#00AB44"})]}),be=()=>{const e=(0,f.useTheme)();return(0,c.useMemo)((()=>({insights:[{id:j.oG.anomalies,title:"Anomaly Analysis",description:"Spots unusual behavior in your systems and explains what\u2019s happening\u2014always with the bigger picture in mind.",icon:"anomalyAnalysis",color:(0,d.getColor)(j.ci[j.oG.anomalies].color)({theme:e}),bg:(0,d.getColor)(j.ci[j.oG.anomalies].bg)({theme:e}),Component:pe},{id:j.oG.capacity,title:"Capacity Planning",description:"Predicts future trends and highlights key turning points so you can plan with confidence.",icon:"capacityPlanning",color:(0,d.getColor)(j.ci[j.oG.capacity].color)({theme:e}),bg:(0,d.getColor)(j.ci[j.oG.capacity].bg)({theme:e}),Component:me},{id:j.oG.summary,title:"Infrastructure Summary",description:"A quick overview of any problems and how they affect your services - great for your Monday morning meetings.",icon:"automatedTroubleshooting",color:(0,d.getColor)(j.ci[j.oG.summary].color)({theme:e}),bg:(0,d.getColor)(j.ci[j.oG.summary].bg)({theme:e}),Component:je},{id:j.oG.performance,title:"Performance Optimization",description:"Identifies when resources compete or slow each other down, and recommends the best fixes.",icon:"performanceOptimization",color:(0,d.getColor)(j.ci[j.oG.performance].color)({theme:e}),bg:(0,d.getColor)(j.ci[j.oG.performance].bg)({theme:e}),Component:Ce}],investigations:[{id:j.oG.alertInvestigation,title:"Alert Investigation",description:"When alerts fire, it automatically investigates the root cause, gathers context, and provides actionable insights so you can resolve issues faster.",icon:"alertInvestigation",color:(0,d.getColor)(j.ci[j.oG.alertInvestigation].color)({theme:e}),bg:(0,d.getColor)(j.ci[j.oG.alertInvestigation].bg)({theme:e}),Component:fe},{id:j.oG.investigation,title:"Automated Troubleshooting & RCA",description:"Ask any question about your infrastructure and get detailed answers with supporting evidence - like having a senior engineer on call 24/7.",icon:"investigation",color:(0,d.getColor)(j.ci[j.oG.investigation].color)({theme:e}),bg:(0,d.getColor)(j.ci[j.oG.investigation].bg)({theme:e}),Component:ye}]})),[e])},we=(0,f.default)(d.Text).attrs((e=>({fontSize:"14px",textAlign:"center",color:"menuItem",lineHeight:1.5,...e}))).withConfig({displayName:"styled__SecondaryText",componentId:"sc-aezcys-0"})([""]),ve=(0,f.default)(d.Box).attrs((e=>({...e}))).withConfig({displayName:"styled__ReportSamplesContainer",componentId:"sc-aezcys-1"})(["display:grid;grid-template-columns:repeat(4,1fr);gap:16px;"]),Ie=(0,f.default)(d.Flex).attrs((e=>({column:!0,gap:8,padding:[4],background:"panelBg",...e}))).withConfig({displayName:"styled__ReportSampleCardContainer",componentId:"sc-aezcys-2"})([""," background:linear-gradient( 90deg,"," 0%,"," 50%,"," 100% );"],(e=>{let{start:t,span:r}=e;return t||r?`grid-column: ${t||"1"} / span ${r||"1"};`:""}),(e=>{let{background:t}=e;return(0,d.getColor)(t)}),(0,d.getColor)("mainBackground"),(e=>{let{background:t}=e;return(0,d.getColor)(t)})),ke=((0,f.default)(d.Box).attrs((e=>({padding:[8],...e}))).withConfig({displayName:"styled__Container",componentId:"sc-aezcys-3"})(["display:grid;grid-template-columns:1fr 2fr;gap:24px;"]),(0,f.default)(d.TextBigger).attrs((e=>({lineHeight:1.5,...e}))).withConfig({displayName:"styled__Txt",componentId:"sc-aezcys-4"})([""]),f.default.ul.withConfig({displayName:"styled__List",componentId:"sc-aezcys-5"})(["padding-left:16px;list-style:disc outside none;& li{padding:4px 0;}"]),"panelBg"),Be=e=>{let{id:t,icon:r,color:n,bg:s=ke,title:i,description:o,Component:a,...h}=e;const{loaded:u,onButtonClick:x}=g(),[p,j]=(0,m.useHovered)({},[u]),C=(0,c.useCallback)((()=>{x(t)}),[t,x]);return(0,l.jsxs)(Ie,{ref:p,"data-testid":"insights-overview-report-item-card-container",gap:3,background:j?s:ke,justifyContent:"between",border:{side:"all",color:j?n:"mainBackground"},cursor:"pointer",onClick:C,...h,children:[(0,l.jsxs)(d.Flex,{column:!0,gap:3,children:[(0,l.jsxs)(d.Flex,{alignItem:"center",gap:2,children:[(0,l.jsx)(d.Icon,{name:r}),(0,l.jsx)(d.TextBig,{color:n,children:i})]}),(0,l.jsx)(d.Flex,{justifyContent:"center",children:a?(0,l.jsx)(a,{}):null}),(0,l.jsx)(d.Flex,{children:(0,l.jsx)(d.Text,{color:"menuItem",children:o})})]}),(0,l.jsx)(d.Flex,{justifyContent:"end",children:(0,l.jsx)(d.Text,{color:"primary",children:"Generate report"})})]})},Fe=()=>{const{insights:e,investigations:t}=be();return(0,l.jsxs)(ge,{"data-testid":"insights-overview-grid-container",children:[e.map((e=>(0,l.jsx)(Be,{...e},e.id))),t.map(((e,t)=>(0,l.jsx)(Be,{...e,start:2*t+1,span:2},e.id)))]})},Me=()=>(0,l.jsxs)(d.Flex,{"data-testid":"insights-overview-container",column:!0,gap:4,padding:[4],children:[(0,l.jsx)(xe,{}),(0,l.jsx)(Fe,{})]});var Se=r(17702);const Ae={tiny:d.Text,default:d.TextBig},Ve=e=>{let{size:t,...r}=e;const n=Ae[t]||Ae.default;return(0,l.jsx)(n,{...r})},Te=(0,S.A)(d.Icon),Le=(_e=(0,c.memo)((e=>{let{selectedItems:t=[],placeholder:r,size:n}=e;const s=(0,c.useMemo)((()=>t.filter(Boolean)),[t]),i=(0,c.useMemo)((()=>({size:n,truncate:!0,style:{maxWidth:1===s.length?"300px":"150px"}})),[n,s.length]);return s&&s.length?(0,l.jsxs)(d.Flex,{gap:1,alignItems:"center",children:[(0,l.jsx)(Ve,{...i,children:s[0].label}),t.length>1?(0,l.jsxs)(Ve,{size:n,whiteSpace:"nowrap",children:["and ",t.length-1," more"]}):null]}):(0,l.jsx)(Ve,{size:n,color:"placeholder",children:r})})),e=>{let{iconProps:t={},...r}=e;return t.name?(0,l.jsxs)(d.Flex,{alignItems:"center",gap:2,children:[(0,l.jsx)(Te,{noWrapper:!0,...t}),(0,l.jsx)(_e,{...r})]}):(0,l.jsx)(_e,{...r})});var _e;const Pe=e=>{let{selectedItems:t,placeholder:r,ref:n,size:s,isDisabled:i,dataTestId:o,clickOnIcon:a,iconProps:h,onClick:u,...x}=e;const g=(0,c.useMemo)((()=>i?{opacity:.8}:a?{}:{onClick:u,cursor:"pointer"}),[i,a,u]),p=(0,c.useMemo)((()=>!i&&a?{onClick:u,cursor:"pointer"}:{}),[i,a,u]);return(0,l.jsxs)(d.Flex,{ref:n,gap:2,height:"24px",padding:[1,2],alignItems:"center",justifyContent:"between",background:"inputBg",round:.5,"data-testid":`multi-select-container-${o}`,...g,...x,children:[(0,l.jsx)(Le,{size:s,selectedItems:t,placeholder:r,iconProps:h}),(0,l.jsx)(d.Icon,{color:"textLite",name:"chevron_right",rotate:1,width:"24px",...p})]})},Ee=(0,c.memo)(Pe);var He=r(64007);const Ne=(0,S.A)(d.Checkbox),Ze=e=>{let{group:t,label:r,isParent:n}=e;return(0,l.jsxs)(d.Flex,{gap:2,alignItems:"center",padding:[0,0,0,1],children:[(0,l.jsx)(d.Text,{truncate:!0,style:{maxWidth:"200px"},color:t?"textLite":"text",children:r}),n?(0,l.jsx)(d.Pill,{size:"small",flavour:"success",hollow:!0,children:"parent"}):null]})},Oe=()=>{},Re=e=>{let{value:t,maxNumberOfSelectedItems:r,makeItemProps:n,item:s,onItemClick:i,itemProps:o,...a}=e;const{group:h,allSelected:u,someSelected:x,value:g,label:p,isParent:m}=s,{makeItemContainerProps:j=Oe,makeCheckboxProps:C=Oe}=n||{},f=(0,c.useMemo)((()=>j({value:t,maxNumberOfSelectedItems:r,item:s,...a})),[j]),y=(0,c.useMemo)((()=>C({value:t,maxNumberOfSelectedItems:r,item:s,...a})),[C]),b=(0,c.useMemo)((()=>h?u:t.includes(g)),[h,u,t,g]),w=(0,c.useMemo)((()=>!!r&&(!h&&!b&&t.length===r)),[h,b,t,r]),v=(0,c.useCallback)((e=>{i({checked:e,...h?{group:h}:{node:s}})}),[h,s,i]);return(0,l.jsx)(He.b1,{"aria-selected":!1,selected:!1,disabled:!1,...a,...o,"data-testid":`multi-select-item-${p}`,multi:!0,padding:[1,h?0:2],...f,children:(0,l.jsx)(d.Flex,{gap:2,alignItems:"center",flex:!0,children:(0,l.jsx)(Ne,{checked:b,onChange:v,label:(0,l.jsx)(Ze,{group:h,label:p,isParent:m}),indeterminate:!!h&&x,disabled:w,...y})})})},De={group:!0,label:"Select all"},Ge=e=>{let{selectedItems:t,setSelectedItems:r,options:n=[],maxNumberOfSelectedItems:s,allSelectedValue:i,hasSearch:o,makeItemProps:a,dataTestId:h}=e;const u=(0,c.useMemo)((()=>t.map((e=>{let{value:t}=e;return t}))),[t]),x=(0,c.useMemo)((()=>u.length===n.length),[u,n]),g=(0,c.useMemo)((()=>u.length&&!x),[u,x]),p=(0,c.useMemo)((()=>s&&n.length>s),[n,s]),m=(0,c.useMemo)((()=>{const e=n.find((e=>{let{value:t}=e;return t===i}));return[{...{...De,...p?{label:`Select top ${s}`}:e?{label:e.label}:{}},allSelected:x,someSelected:g},...n]}),[n,i,x,g,p]),j=(0,c.useCallback)((e=>{let{group:s,node:l,checked:i}=e;s?r(x?[]:n):i?t.find((e=>e.value===l.value))||r([...t,l]):r(t.filter((e=>e.value!==l.value)))}),[n,t,r,x]);return(0,l.jsx)(d.Flex,{column:!0,gap:2,padding:[2,3],children:(0,l.jsx)(He.V$,{items:m,Item:e=>(0,l.jsx)(Re,{maxNumberOfSelectedItems:s,makeItemProps:a,...e}),onItemClick:j,value:u,hasSearch:o,height:{max:"400px"},searchMargin:[0,0,2,0],"data-testid":`multi-select-checkboxes-${h}`})})},ze={makeItemContainerProps:()=>{},makeCheckboxProps:()=>{}},$e=(0,c.memo)((e=>{let{label:t,value:r,allSelectedValue:n,placeholder:s="Select...",options:i=[],maxNumberOfSelectedItems:o,styles:a={},onChange:h,isDisabled:u,hasSearch:x=!0,clickOnIcon:g,containerProps:p={},accessorProps:m={},dropProps:j={},makeItemProps:C={},dataTestId:f="",iconProps:y}=e;const b=(0,c.useRef)(),{size:w}=a,[v,,I,k]=(0,M.A)(!1),[B,F]=(0,c.useState)([]),S=(0,c.useMemo)((()=>({...ze,...C})),[C]),A=(0,c.useMemo)((()=>i.find((e=>{let{value:t}=e;return t===n}))),[i,n]),V=(0,c.useMemo)((()=>i.filter((e=>{let{value:t}=e;return t!==n}))),[i,n]),T=(0,c.useCallback)((()=>{k();const e=A&&B.length===V.length?[A]:B;h(e)}),[A,B,h,k]),L=(0,c.useCallback)((()=>{u||(v?T():I())}),[u,v,I,T]);return(0,c.useEffect)((()=>{let e=r?Array.isArray(r)?r:[r]:[];n&&(Array.isArray(r)&&r.find((e=>e.value===n))||r===n)&&(e=V),F(e)}),[r,n,V]),(0,l.jsxs)(d.Flex,{flex:"1",column:!0,gap:1,...p,children:[t?(0,l.jsx)(Ve,{size:w,children:t}):null,(0,l.jsx)(Ee,{ref:b,placeholder:s,selectedItems:B,size:w,isDisabled:u,dataTestId:f,clickOnIcon:g,iconProps:y,onClick:L,...m}),v&&b.current?(0,l.jsx)(d.Drop,{target:b.current,align:{top:"bottom",left:"left"},background:"modalBackground",margin:[2,0,0],round:.5,close:T,onClickOutside:T,onEsc:T,...j,children:(0,l.jsx)(Ge,{selectedItems:B,setSelectedItems:F,options:V,allSelectedValue:n,hasSearch:x,dataTestId:f,maxNumberOfSelectedItems:o,makeItemProps:S})}):null]})})),Ke=$e;var qe=r(21996);const Ue=`${j.Nn}px`,We=e=>{let{definitionId:t,variable:r,variables:n=[],index:s,containerProps:i={},componentProps:o={}}=e;const{onVariableChange:a}=(0,h.g0)(),{id:u,value:x,isMulti:g,fieldPrefix:p,maxLength:m}=r,C=(0,c.useMemo)((()=>{if(0===s)return!0;const e=n[s-1]?.value;return Array.isArray(e)?!!e.length:!!e}),[n,s]),f=(0,c.useMemo)((()=>function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return 0===e?{}:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).slice(0,e).reduce(((e,t)=>{let{id:r,value:n}=t;return{...e,[r]:n.value}}),{})}(n,s)),[n,s]),{loaded:y,options:b,error:w}=(0,h._R)({definitionId:t,variableId:u,variables:f}),v="nodes"===r.id,I=!!m,k=m?qe.A:g?Ke:d.Select,B=(0,c.useMemo)((()=>v?(b?.values||[]).filter((e=>{let{value:t}=e;return t!==j.Gr})):[]),[v,b]),F=(0,c.useMemo)((()=>({hasSearch:v,...I?{width:"100%",rows:3,fontSize:"12px",maxLength:m,placeholder:"Type your query"}:{},...o})),[v,B.length,I,m,o]),M=(0,c.useCallback)((e=>{a({id:u,value:e})}),[u,a]);return w?null:(0,l.jsxs)(l.Fragment,{children:[p?(0,l.jsx)(d.Text,{children:r.fieldPrefix}):null,(0,l.jsx)(d.Flex,{"data-testid":"insights-query-field-container",width:{min:I?80:Ue,max:I?80:50},padding:[2,1],...i,children:(0,l.jsx)(k,{options:b?.values||[],allSelectedValue:j.Gr,value:x,onChange:M,isMulti:g,isDisabled:!y||!C,styles:{minWidth:Ue,size:"tiny"},dropProps:{width:70},...F})})]})};var Je=r(29579),Qe=r(23117),Ye=r(49074);const Xe=e=>{let{onDismiss:t}=e;return(0,l.jsxs)(d.Flex,{column:!0,gap:4,children:[(0,l.jsxs)(d.Flex,{alignItems:"center",gap:1,children:[(0,l.jsx)(d.Icon,{name:"ai",color:"primaryAI"}),(0,l.jsx)(d.H3,{color:"primaryAI",children:"Schedule report"})]}),(0,l.jsx)(d.TextBig,{children:"Did you know you can schedule this report to automatically run at a time and date of your choice?"}),(0,l.jsx)(d.Flex,{children:(0,l.jsx)(Se.A,{label:"OK, don't show again.",flavour:"hollow",small:!0,onClick:t,icon:""})})]})},et=(0,Ye.A)(Je.A),tt=e=>{let{definitionId:t,variables:r=[]}=e;const{tooltip:n,isDisabled:s}=(0,Qe.J)(),{insights:i=[]}=be(),{title:o,description:a,icon:h,Component:u}=i.find((e=>{let{id:r}=e;return r===t}))||{},x=(0,c.useMemo)((()=>({recurrenceValue:j.tC[t]||j.tC.default})),[t]);return(0,l.jsxs)(d.Flex,{"data-testid":"insights-default-query-container",column:!0,alignItems:"center",gap:15,padding:[10,4,0,4],children:[(0,l.jsxs)(d.Flex,{alignItems:"center",column:!0,gap:6,children:[(0,l.jsxs)(d.Flex,{alignItems:"center",column:!0,gap:2,children:[(0,l.jsxs)(d.Flex,{alignItems:"center",gap:1,children:[(0,l.jsx)(d.Icon,{name:h}),(0,l.jsx)(d.TextBig,{color:"menuItem",children:o})]}),(0,l.jsx)(d.Text,{color:"menuItem",children:a})]}),u?(0,l.jsx)(u,{}):null]}),(0,l.jsxs)(d.Flex,{"data-testid":"insights-default-query-fields-container",column:!0,gap:4,padding:[4],background:"panelBg",border:{side:"all",color:"border"},round:!0,children:[(0,l.jsx)(d.Flex,{alignItems:"center",justifyContent:"center",gap:1,flexWrap:!0,height:{min:"30px"},children:r.map(((e,n)=>(0,l.jsx)(We,{variable:e,definitionId:t,variables:r,index:n},e.id)))}),(0,l.jsxs)(d.Flex,{alignItems:"center",justifyContent:"end",gap:2,children:[(0,l.jsx)(et,{initialSchedulerState:x,PopoverContent:Xe,tooltip:n,disabled:s,small:!0,dropContainerProps:{iconContainerProps:{position:"relative",left:"40%"}},popoverProps:{timeout:200,localStorageKey:"dissmiss-report-scheduler-promotion"}}),(0,l.jsx)(Qe.A,{small:!0})]})]})]})};var rt=r(4142),nt=r(62718),st=r(41588),lt=r(41716),it=r(56473);const ot=()=>{const[e,t]=(0,c.useState)({}),r=(0,lt.s)("loaded"),n=!!(0,lt.s)("ids").length,s=(0,it.QD)({extraKey:"alerts"}),{onVariableChange:l}=(0,h.g0)(),i=(0,c.useCallback)((r=>{const n=Object.keys(r||{}),s=Object.keys(e||{}),i=1===n.length?n:n.filter((e=>!s.includes(e))),o=Object.fromEntries(i.map((e=>[e,!0])));l({id:"alert_transition",value:i?.[0]||""}),t(o)}),[e,t,l]);return{rowSelection:e,onRowSelectionChange:i,loaded:r,hasAlerts:n,alerts:s}};var at=r(61841),dt=r(24013),ct=r(75894),ht=r(42376),ut=r(3527),xt=r(79748),gt=r(93997),pt=r(14681);const mt=e=>{let{row:t,value:r}=e;const{info:n}=t.original;return(0,l.jsx)(xt.A,{Component:d.Text,flavour:"tableLink",cursor:"pointer",showToolTip:!0,content:n,children:r})},jt=e=>{let{row:t,nodeName:r}=e;const{id:n,nodeId:s}=t.original,i=(0,dt.d3)(s,{alertId:n});return(0,l.jsx)(pt.A,{nodeId:s,extraKey:"alerts",onClick:i,"data-testid":`alertsTableSchema-nodeName-${r}`,"data-ga":`alerts-table::click-node::alerts-view::${r}`,children:r})},Ct=e=>{let{row:t,value:r}=e;const{id:n,nodeId:s,instanceName:i}=t.original,o=(0,dt.d3)(s,{alertId:n}),a=`Go to the chart for instance "${i}" to view the alert`;return(0,l.jsx)(q.A,{flavour:"tableLink",onClick:o,TextComponent:xt.A,text:i,"data-testid":`alertsTableSchema-chart-id-${r}`,"data-ga":`alerts-table::click-chartId::alerts-view::${r}`,showToolTip:!0,content:a})},ft={critical:1,warning:2,clear:3},yt=[{id:"status",accessorKey:"status",header:"Status",cell:e=>{let{getValue:t}=e;return(0,l.jsx)(d.Flex,{padding:[0,2],justifyContent:"center",flex:!0,children:(0,l.jsx)(ct.A,{flavour:t(),"data-testid":"alertsTable-alertPill","data-ga":`alerts-table::click-status::alerts-view::${t()}`,children:t()})})},size:100,sortingFn:(e,t)=>ft[e.original.status]-ft[t.original.status]},{id:"summary",accessorKey:"summary",header:"Alert",cell:e=>{let{row:t,getValue:r}=e;return(0,l.jsx)(mt,{row:t,value:r()})},fullWidth:!0,size:300},{id:"displayName",accessorKey:"displayName",header:"Name",cell:e=>{let{row:t,getValue:r}=e;return(0,l.jsx)(mt,{row:t,value:r()})},size:100},{id:"context",accessorKey:"context",header:"Context",cell:e=>{let{getValue:t}=e;const r=(0,s.Zp)(),n=t(),[,i]=(0,gt.sK)(),o=`Go to ${n} context in charts overview`,[a,d]=(0,at.Ay)(),h=(0,c.useCallback)((()=>{i(n),r(`/spaces/${a}/rooms/${d}/overview`)}),[n,i,r,a,d]);return(0,l.jsx)(q.A,{flavour:"tableLink",onClick:h,TextComponent:xt.A,text:n,"data-testid":`alertsTableSchema-alertContext-${n}`,"data-ga":`alerts-table::click-chartId::alerts-view::${n}`,showToolTip:!0,content:o})},size:100},{id:"instance",header:"Instance",accessorKey:"instance",cell:e=>{let{row:t,getValue:r}=e;return(0,l.jsx)(Ct,{row:t,value:r()})},size:150},{id:"nodeName",header:"Node",accessorKey:"nodeName",cell:e=>{let{row:t,getValue:r}=e;return(0,l.jsx)(jt,{row:t,nodeName:r()})},size:100},{id:"value",header:"Latest value",accessorKey:"value",cell:e=>{let{row:t,getValue:r}=e;const{status:n,units:s}=t.original;return(0,l.jsx)(d.Flex,{padding:[0,2],justifyContent:"end",children:(0,l.jsx)(ut.A,{loaded:!0,status:n,units:s,value:r(),"data-testid":"alertsTableSchema-alertValue","data-ga":"alerts-table::click-alert-value::alerts-view"})})},size:150},{id:"lastUpdated",header:"Updated at",accessorKey:"lastUpdated",cell:e=>{let{getValue:t}=e;return(0,l.jsx)(ht.A,{rawTime:t(),secs:!0,"data-testid":"alertsTableSchema-latestUpdated"})},size:100},{id:"lastStatusChangeValue",header:"Triggered value",accessorKey:"lastStatusChangeValue",cell:e=>{let{row:t,getValue:r}=e;const{status:n,units:s}=t.original;return(0,l.jsx)(d.Flex,{padding:[0,2],justifyContent:"end",children:(0,l.jsx)(ut.A,{loaded:!0,status:n,units:s,value:r(),"data-testid":"alertsTableSchema-triggeredValue","data-ga":"alerts-table::click-triggered-value::alerts-view"})})},size:100},{id:"lastStatusChange",header:"Triggered at",accessorKey:"lastStatusChange",cell:e=>{let{getValue:t}=e;return(0,l.jsx)(ht.A,{rawTime:t(),secs:!0,"data-testid":"alertsTableSchema-lastStatusChange"})},size:100}],bt=e=>{let{rowSelection:t,alerts:r=[],onRowSelectionChange:n}=e;return(0,l.jsx)(d.Flex,{width:{max:"calc(100vw - 640px)"},height:{max:"calc(100vh - 540px)"},children:(0,l.jsx)(d.Table,{rowSelection:t,enableSorting:!0,enableSelection:!0,singleRowSelection:!0,getRowId:e=>{let{id:t}=e;return t},onRowSelectionChange:n,data:r,dataColumns:yt,enableColumnPinning:!0,enableResizing:!0,meta:{searchStyles:{width:"350px"}}})})},wt=()=>{const{rowSelection:e,onRowSelectionChange:t,loaded:r,hasAlerts:n,alerts:s}=ot();return r?n?(0,l.jsxs)(d.Flex,{"data-testid":"insights-alert-investigation-container",width:"100%",column:!0,gap:4,padding:[4,0,0,0],children:[(0,l.jsx)(d.Text,{children:"Select an alert to start an investigation."}),(0,l.jsx)(bt,{rowSelection:e,alerts:s,onRowSelectionChange:t}),(0,l.jsx)(d.Flex,{justifyContent:"center",children:(0,l.jsx)(Qe.A,{label:"Troubleshoot selected alert",incompleteQueryMessage:"First select an alert and then generate a report."})})]}):(0,l.jsx)(st.A,{}):(0,l.jsx)(nt.$n,{})},vt=(0,f.default)(d.Box).withConfig({displayName:"loader__Loader",componentId:"sc-1s7ni28-0"})(["width:60px;aspect-ratio:2;--dot:no-repeat radial-gradient(circle closest-side,"," 90%,#0000);background:var(--dot) 0% 50%,var(--dot) 50% 50%,var(--dot) 100% 50%;background-size:calc(100% / 3) 50%;animation:movingDots 1s infinite linear;@keyframes movingDots{20%{background-position:0% 0%,50% 50%,100% 50%;}40%{background-position:0% 100%,50% 0%,100% 50%;}60%{background-position:0% 50%,50% 100%,100% 0%;}80%{background-position:0% 50%,50% 50%,100% 100%;}}"],(0,d.getColor)("textLite"));var It=r(3941);const kt=(0,f.default)(d.TextBigger).attrs((e=>({lineHeight:2,textAlign:"center",color:"primary",...e}))).withConfig({displayName:"quotes__QuoteText",componentId:"sc-xo7l3k-0"})(["font-family:monospace;"]),Bt=j.a_.sort((()=>Math.random()-.5)),Ft=e=>{let{frequency:t=60}=e;const[r,n]=(0,c.useState)(t),[s,i]=(0,c.useState)(0),[o,a]=(0,c.useState)(0),h=(0,c.useCallback)((()=>{s>=100&&a((e=>e===Bt.length-1?0:e+1)),i((e=>s>=100?0:e+.2))}),[s,i,a,n]);return(0,It.A)(h,r),(0,l.jsxs)(d.Flex,{width:{max:"50%"},column:!0,gap:12,alignItems:"center",children:[(0,l.jsx)(kt,{children:Bt[o].text}),(0,l.jsx)(vt,{})]})},Mt=()=>(0,l.jsxs)(d.Flex,{column:!0,gap:20,flex:"grow",justifyContent:"center",children:[(0,l.jsx)(d.Flex,{width:"100%",alignItems:"center",justifyContent:"center",children:(0,l.jsx)(Ft,{})}),(0,l.jsx)(d.Flex,{width:"100%",alignItems:"center",justifyContent:"center",children:(0,l.jsx)(d.TextBigger,{color:"textLite",children:"Your report is being generated. This may take a few minutes. You will be notified when it is ready."})})]}),St=(0,S.A)(d.Icon),At=()=>{const{query:e}=(0,h.g0)(),t=(0,h.fT)();return e?.definitionId?(0,l.jsx)(d.Flex,{position:"absolute",top:2,right:2,children:(0,l.jsx)(St,{name:"x",color:"menuItem",cursor:"pointer",onClick:t,tooltip:"Back to overview",tooltipProps:{align:"bottom"},noWrapper:!0})}):null},Vt=e=>{let{containerRef:t,...r}=e;const[n,s]=(0,c.useState)(),i=(0,c.useMemo)((()=>({width:"100%",height:`${n}px`,overflow:{vertical:"auto"}})),[n]);return(0,c.useEffect)((()=>{t?.current&&s(t.current.getBoundingClientRect()?.height-60)}),[t,s]),(0,l.jsx)(d.Flex,{...i,children:(0,l.jsx)(rt.A,{...r})})},Tt=(e=>t=>{const r=(0,c.useRef)();return(0,l.jsxs)(d.Flex,{position:"relative",flex:"grow",justifyContent:"center",ref:r,"data-testid":"insights-query-generator-container",children:[(0,l.jsx)(At,{}),(0,l.jsx)(e,{...t,containerRef:r})]})})((e=>{let{definitionId:t,definitionName:r,variables:n=[],containerRef:s}=e;const i=(0,ue.uW)("isAnonymous"),[o]=(0,h.W5)(),a=(0,c.useMemo)((()=>({[j.oG.investigation]:{Component:Vt,props:{variables:n,containerRef:s}},[j.oG.alertInvestigation]:{Component:wt,props:{}},default:{Component:tt,props:{definitionId:t,definitionName:r,variables:n}}})),[t,r,n,s]),{Component:d,props:u}=(0,c.useMemo)((()=>a[t]||a.default),[t,a]);return i?null:o?(0,l.jsx)(Mt,{}):t?(0,l.jsx)(d,{...u}):(0,l.jsx)(Me,{})}));var Lt=r(86229),_t=r(24868),Pt=r(99728),Et=r(76375);const Ht=()=>(0,l.jsxs)(d.Flex,{alignItems:"center",justifyContent:"center",gap:2,children:[(0,l.jsx)(d.Icon,{name:"ai",color:"primaryAI",width:"20px",height:"20px"}),(0,l.jsx)(d.H1,{fontSize:"20px",strong:!1,children:"Netdata Insights makes your infrastructure data understandable."}),(0,l.jsx)(d.Icon,{name:"ai",color:"primaryAI",width:"20px",height:"20px"})]}),Nt=()=>(0,l.jsx)(d.Flex,{justifyContent:"center",children:(0,l.jsx)(d.Flex,{width:{max:300},children:(0,l.jsx)(we,{children:"It uses Al to run automated investigations and generate insights. This means you can make better decisions, faster, without sifting through dashboards or writing complicated searches. Insights gives you the straightforward answers you need."})})}),Zt=()=>(0,l.jsxs)(d.Flex,{column:!0,gap:4,children:[(0,l.jsx)(Ht,{}),(0,l.jsx)(Nt,{})]}),Ot=e=>{let{title:t,icon:r,color:n,Component:s}=e;return t&&r&&n?(0,l.jsxs)(Ie,{children:[(0,l.jsxs)(d.Flex,{alignItem:"center",gap:2,children:[(0,l.jsx)(d.Icon,{name:r}),(0,l.jsx)(d.TextBig,{color:n,children:t})]}),(0,l.jsx)(d.Flex,{justifyContent:"center",children:s?(0,l.jsx)(s,{}):null}),(0,l.jsx)(d.Flex,{justifyContent:"end",children:(0,l.jsx)(xt.A,{href:"https://app.netdata.cloud/spaces/netdata-demo",children:"Explore in demo space"})})]}):null},Rt=()=>{const{insights:e}=be();return(0,l.jsx)(ve,{children:e.map((e=>{let{id:t,...r}=e;return(0,l.jsx)(Ot,{...r},t)}))})},Dt=()=>(0,l.jsxs)(d.Flex,{column:!0,gap:4,children:[(0,l.jsx)(d.Flex,{justifyContent:"center",children:(0,l.jsx)(we,{children:"Here are some of the reports it can create:"})}),(0,l.jsx)(Rt,{})]});var Gt=r(88325),zt=r(24609),$t=r(38648),Kt=r(4204);const qt={textTransform:"",padding:[2,6]},Ut=()=>{const e=(0,c.useCallback)((()=>{window.open("https://www.netdata.cloud/contact-sales/","_blank","noopener,noreferrer")}),[]);return(0,l.jsx)(d.Flex,{justifyContent:"center",children:(0,l.jsx)(d.Button,{label:"Contact us",onClick:e,...qt})})},Wt=()=>{const e=(0,s.Zp)(),{url:t}=(0,Gt.A)("business"),r=(0,c.useCallback)((()=>{e(t)}),[t]);return(0,l.jsx)(d.Flex,{justifyContent:"center",children:(0,l.jsx)(d.Button,{label:"Upgrade to Business",onClick:r,...qt})})},Jt=()=>{const e=(0,zt.dg)();return(0,l.jsxs)(d.Flex,{column:!0,gap:8,justifyContent:"center",children:[(0,l.jsx)(we,{children:"Every report combines easy-to-read explanations, charts, and practical advice, all made whenever you need them. You can find Insights inside Netdata Cloud. It works perfectly with any Netdata agent you're already using, so there's nothing extra to set up. It's currently available for Business and Trial users."}),Kt.ei?(0,l.jsx)(Ut,{}):e?(0,l.jsx)(d.Flex,{justifyContent:"center",children:(0,l.jsx)($t.default,{})}):(0,l.jsx)(Wt,{})]})},Qt=()=>(0,l.jsxs)(d.Flex,{column:!0,gap:10,padding:[12],children:[(0,l.jsx)(Zt,{}),(0,l.jsx)(Dt,{}),(0,l.jsx)(Jt,{})]});var Yt=r(50100);const Xt=e=>{let{id:t}=e;const r=(0,h.CF)({id:t}),[n,s]=(0,m.useHovered)({},[]),{goToReport:i}=(0,Yt.A)(),o=(0,c.useCallback)((()=>{i(t)}),[t,i]);return r?.name?(0,l.jsx)(d.Flex,{ref:n,padding:[2,4],round:!0,cursor:"pointer",...s?{background:"panelBg"}:{},onClick:o,children:(0,l.jsx)(d.Text,{color:"menuItem",children:r.name})}):null};var er=r(10444);const tr=(0,f.default)(d.ModalContent).attrs((e=>{let{isMobile:t}=e;return{width:t?{base:"95vw"}:{base:100}}})).withConfig({displayName:"modal__StyledModalContent",componentId:"sc-1tq9d73-0"})([""]),rr=e=>{let{ids:t,onClose:r}=e;const n=(0,er.J)();return(0,l.jsx)(d.Modal,{backdropProps:{backdropBlur:!0},onClickOutside:r,onEsc:r,children:(0,l.jsxs)(tr,{"data-testid":"unread-reports-modal",isMobile:n,children:[(0,l.jsxs)(d.ModalHeader,{children:[(0,l.jsx)(d.H4,{children:"Unread Reports"}),(0,l.jsx)(d.ModalCloseButton,{onClose:r})]}),(0,l.jsxs)(d.ModalBody,{gap:3,children:[(0,l.jsx)(d.TextBig,{children:"Which report would you like to open?"}),(0,l.jsx)(d.Flex,{column:!0,gap:2,padding:[2,0],children:t.map((e=>(0,l.jsx)(Xt,{id:e},e)))})]}),(0,l.jsx)(d.ModalFooter,{children:(0,l.jsx)(d.Button,{label:"Close",flavour:"borderless",onClick:r})})]})})},nr=e=>{let{ids:t,open:r}=e;const{goToReport:n}=(0,Yt.A)(),s=(0,c.useCallback)((()=>{t?.length&&(1===t.length?n(t[0]):r())}),[t,r,n]);return t?.length?1===t.length?(0,l.jsxs)(d.TextBig,{children:["There is one unread report."," ",(0,l.jsx)(xt.A,{Component:d.TextBig,onClick:s,children:"View it"})]}):(0,l.jsxs)(d.TextBig,{children:["There are ",t.length," unread reports."," ",(0,l.jsx)(xt.A,{Component:d.TextBig,onClick:s,children:"View them"})]}):null},sr=()=>{const[e,,t,r]=(0,M.A)(),[n]=(0,h.x)();return n?.length?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(d.Flex,{alignItems:"center",gap:2,padding:[2,4],background:"panelBg",children:[(0,l.jsx)(d.Icon,{name:"warning_triangle",color:"warning"}),(0,l.jsx)(nr,{ids:n,open:t})]}),e?(0,l.jsx)(rr,{ids:n,onClose:r}):null]}):null};var lr=r(29022),ir=r(47090);const or=e=>{let{title:t,message:r}=e;return(0,l.jsx)(lr.A,{title:t,children:(0,l.jsx)(d.TextBig,{children:r})})},ar=e=>{let{title:t="Error",error:r}=e;if(!r)return(0,l.jsx)(or,{title:t,message:"Something went wromg"});const n=j.sO[r?.errorMsgKey];if(n)return(0,l.jsx)(or,{...n});const s="string"===typeof r?r:(0,ir.o)(r?.errorMsgKey,null)||r?.errorMessage||ir.B.get("default");return(0,l.jsx)(or,{title:t,message:s})},dr=()=>{const e=(0,Pt.JT)("insights:ReadReport"),{loaded:t,error:r}=(0,h.A_)(),[o]=(0,h.rQ)(),{loaded:a,isPaid:d}=(0,Et.A)();return t&&a?e?r?(0,l.jsx)(ar,{error:r}):(0,l.jsx)(i,{Sidebar:he,children:(0,l.jsxs)(n.J3,{"data-testid":"insights-main-container",children:[(0,l.jsx)(sr,{}),(0,l.jsxs)(s.BV,{children:[(0,l.jsx)(s.qh,{path:"report-preview/:reportId",element:(0,l.jsx)(Lt.A,{})}),(0,l.jsx)(s.qh,{path:"*",element:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Tt,{...o}),(0,l.jsx)(_t.A,{collapsed:!o?.definitionId},o?.definitionId)]})})]})]})}):d?(0,l.jsx)(ar,{error:{errorMsgKey:"ErrForbidden"}}):(0,l.jsx)(Qt,{}):(0,l.jsx)(nt.BJ,{})},cr=()=>Kt.ei?(0,l.jsx)(Qt,{}):(0,l.jsx)(dr,{})}}]);