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: //proc/self/root/opt/netdata/netdata-web-files/v3/1910.153a424bb59bc84636c8.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]="641dbced-79db-41fe-9999-20152ec32efa",e._sentryDebugIdIdentifier="sentry-dbid-641dbced-79db-41fe-9999-20152ec32efa")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"bbf0f036d26e8d5cdf711f08d224a9283a4dee0b"}}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[1910],{11910:(e,t,o)=>{o.r(t),o.d(t,{default:()=>h});var a=o(44245),l=o(19075),n=o(88255),d=o(62718),i=o(96540),s=o(88934),r=o(86663);var c=o(87650),u=o(60959),g=o(74848);const h=()=>{const e=(()=>{const{alertId:e,...t}=(0,s.g)(),{search:o}=(0,s.zy)(),{transition:a}=r.parse(o),l=(0,i.useRef)(a||e),n=(0,s.Zp)();return(0,i.useEffect)((()=>{a&&a!==e&&n((0,s.tW)(`/spaces/:spaceSlug/rooms/:roomSlug/alerts/${a}`,t),{replace:!0})}),[e,a]),l.current})(),{name:t="unknown alert",fullyLoaded:o=!1}=(0,l.JL)(e),h=(0,l.x)();return(0,a.ZB)({title:t,id:e,destination:e,params:location.hash,type:"alerts",isReady:o}),h?(0,g.jsx)(n.A,{overflow:{vertical:"auto"},margin:[0,0,8],padding:[3],children:h&&(0,g.jsx)(u.A,{children:(0,g.jsx)(c.A,{alertId:e})})}):(0,g.jsx)(d.xh,{})}},52007:(e,t,o)=>{o.d(t,{A:()=>r});var a=o(63766),l=o(96026),n=o(74891),d=o(94404),i=o(74848);const s=(0,d.A)((0,n.A)(a.Button)),r=e=>{let{alertId:t,nodeId:o,small:a=!1,isLoading:n,disabled:d,...r}=e;const{canEdit:c,goToEdit:u}=(0,l.q)({nodeIds:[o],alertId:t});return(0,i.jsx)(s,{small:a,label:"Edit alert",onClick:()=>u(o),flavour:"hollow",isLoading:n,disabled:n||!c||d,width:a?"112px":"150px","data-ga":"alert-modal::click-edit-congiguration::alerts-view",payload:{action:"Edit alert",alertId:t,nodeId:o},tooltip:c?null:"You cannot edit this alert.",...r})}},60959:(e,t,o)=>{o.d(t,{A:()=>d});var a=o(63766),l=o(10444),n=o(74848);const d=e=>{let{children:t}=e;return(0,l.J)()?(0,n.jsx)(a.Layer,{full:!0,children:(0,n.jsx)(a.Flex,{width:"100%",background:"mainBackground","data-testid":"mobileContainer",children:t})}):t}},87650:(e,t,o)=>{o.d(t,{A:()=>E});var a=o(63766),l=o(19075),n=o(62718),d=o(10444),i=o(19186),s=o(96540),r=o(88934),c=o(42790),u=o(24013),g=o(33185);const h=(0,g.default)(a.Flex).attrs({alignItems:"center"}).withConfig({displayName:"styled__StyledButtonContainer",componentId:"sc-1glv09p-0"})(["position:sticky;bottom:0;"]);var p=o(52007),f=o(1390),x=o(94404),m=o(74891),b=o(74848);const I=(0,x.A)((0,m.A)(a.Button)),j=e=>{let{disabled:t,nodeId:o,alertId:l,context:n,lastStatusChange:d,onClose:i,isLoading:g,small:x=!1,testid:m="alertDetailsModal"}=e;const j=(0,r.Zp)(),y=(0,u.Zl)(o),w=(0,s.useCallback)((()=>{i&&i(),j(y,l?{state:{alertId:l}}:{state:{contextToGo:n}})}),[y,l]),v=(0,c.rI)(),C=(0,s.useCallback)((()=>{const e=1e3*d,t=e-6e4;v((o=>({...o,highlight:{after:t,before:e},correlation:!0}))),w()}),[d,n,w,l]);return(0,b.jsx)(h,{justifyContent:"end",gap:2,children:(0,b.jsxs)(a.Flex,{gap:2,justifyContent:"end",children:[(0,b.jsx)(I,{small:x,onClick:C,flavour:"hollow",isLoading:g,icon:"correlation_inv",padding:[1,2],"data-testid":`${m}-runCorrelations-button`,"data-ga":"alert-modal::click-run-correlations::alerts-view",payload:{action:"Run correlations",alertId:l,nodeId:o},tooltip:"Run correlations",tooltipProps:{align:"bottom"},noWrapper:!0}),(0,b.jsx)(I,{small:x,onClick:w,flavour:"hollow",isLoading:g,disabled:g||t,padding:[1,2],icon:"metrics","data-testid":`${m}-goToNode-button`,"data-ga":"alert-modal::click-goto-chart::alerts-view",payload:{action:"Go to chart",alertId:l,nodeId:o},tooltip:"Go to chart",tooltipProps:{align:"bottom"},noWrapper:!0}),(0,b.jsx)(p.A,{alertId:l,nodeId:o,isLoading:g,small:x,"data-testid":`${m}-edit-alert-button`,icon:"pencilOutline",label:void 0,padding:[1,2],tooltip:"Edit alert configuration",tooltipProps:{align:"bottom"}}),(0,b.jsx)(f.A,{"data-testid":`${m}-troubleshoot-alert-button`,alertId:l,small:!0,flavour:"hollow",dropContainerProps:{iconContainerProps:{position:"relative",left:"45%"}},popoverProps:{localStorageKey:"dissmiss-ask-ai-popover-alert-page"},ui:"alert-page",padding:[1,2],label:void 0,tooltip:"Troubleshoot alert with AI",tooltipProps:{align:"bottom"},showPopover:!0})]})})},y=(0,s.memo)(j);var w=o(75894);const v=e=>{let{alertId:t,context:o,name:l,nodeId:n,status:i,lastStatusChange:s,fullyLoaded:r,isWebview:c}=e;const u=(0,d.J)();return(0,b.jsxs)(a.Flex,{justifyContent:"between",children:[(0,b.jsxs)(a.Flex,{alignItems:"center",gap:2,children:[(0,b.jsx)(a.TextBig,{color:"manuItem",children:l}),(0,b.jsx)(w.A,{margin:u?null:[.5,0,0],flavour:i,"data-testid":"alertView-statusPill",children:i})]}),!c&&r&&!u&&(0,b.jsx)(y,{lastStatusChange:s,alertId:t,context:o,name:l,nodeId:n,small:!0,testid:"alertView"})]})};var C=o(92318),k=o(60908);const A=g.default.img.withConfig({displayName:"sc-404__Illustration",componentId:"sc-4w81fg-0"})(["height:35%;width:35%;"]),L=g.default.div.withConfig({displayName:"sc-404__ButtonContainer",componentId:"sc-4w81fg-1"})(["margin:",";"],(0,a.getSizeBy)(4)),T=()=>{const e=`${C.A.assetsBaseURL}/img/no-nodes-room.svg`;return(0,b.jsx)(k.DL,{children:(0,b.jsxs)(a.Flex,{column:!0,alignItems:"center",justifyItems:"center",justifyContent:"center",height:"100%",width:"100%",padding:[0,0,"10%"],children:[(0,b.jsx)(A,{src:e,alt:"Unreachable alert",title:"Unreachable alert"}),(0,b.jsx)(a.H3,{children:"We couldn't find the alert"}),(0,b.jsx)(a.Text,{children:"This can be a temporary problem of that specific alert."}),(0,b.jsx)(L,{children:(0,b.jsx)(a.Button,{label:"Retry",icon:"reload"})})]})})};var S=o(81474),_=o(51262),B=o(12407);const R=e=>{let{children:t}=e;return(0,b.jsxs)(a.Flex,{background:"modalHeaderBackground",height:12,flex:!1,gap:4,padding:[0,2,0,4],alignItems:"center",children:[(0,b.jsx)(a.Icon,{name:"logo_s",color:"success",width:"23px"}),t]})},E=e=>{let{alertId:t,spaceId:o,roomId:s,isWebview:r}=e;const c=(0,i.XA)("name"),{isNodeRestricted:u}=(0,_.A)(),{fullyLoaded:g=!1,fullyLoading:h=!0,lastStatusChange:p,context:f,name:x,nodeId:m,status:I}=(0,l.JL)(t);(0,l.yk)(t,{spaceId:o,roomId:s});const j=(0,d.J)(),{restricted:y}=u(m);return y?(0,b.jsx)(k.Ay,{feature:"AlertDetailsViewRestricted",children:(0,b.jsx)(B.A,{})}):(0,b.jsx)(k.Ay,{feature:"AlertDetailsView",children:(0,b.jsxs)(a.Flex,{"data-testid":"alert-view-content",column:!0,padding:j?null:[0,0,10],background:j?"modalBackground":null,children:[!r&&j&&(0,b.jsx)(R,{children:(0,b.jsxs)(a.Flex,{column:!0,children:[(0,b.jsx)(a.H6,{color:"textLite",children:"ROOM"}),(0,b.jsx)(a.Text,{"data-testid":"alertView-mobile-roomName",children:c})]})}),(0,b.jsxs)(a.Flex,{column:!0,padding:[3],overflow:j?"auto":"visible",gap:3,children:[(0,b.jsx)(v,{alertId:t,context:f,status:I,name:x,nodeId:m,lastStatusChange:p,fullyLoaded:g,isWebview:r}),g?null:h?(0,b.jsx)(n.h4,{}):(0,b.jsx)(T,{}),g?(0,b.jsx)(S.A,{alertId:t,flavour:"alertPage"}):null]}),j&&(0,b.jsx)(a.Box,{position:"sticky",padding:[4],background:"modalBackground",bottom:0,border:{side:"top",color:"border"},children:(0,b.jsxs)(a.TextSmall,{children:["In order to ",(0,b.jsx)(a.TextSmall,{strong:!0,children:"Run Correlations"})," or"," ",(0,b.jsx)(a.TextSmall,{strong:!0,children:"View the Chart"})," you will have to visit this alert from its' dedicated page on a desktop device."]})})]})})}}}]);