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/2025.94f1db657d5cb4f1403e.chunk.js
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"ed2e29ce6294899858f5bc6cd6072923146ca0ff"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="afc1cfe0-0fcc-4102-ada7-19b8b92da0eb",e._sentryDebugIdIdentifier="sentry-dbid-afc1cfe0-0fcc-4102-ada7-19b8b92da0eb")}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[2025,6026],{60959(e,t,o){"use strict";o.d(t,{A:()=>l});var r=o(42358),n=o(10444),a=o(74848);const l=e=>{let{children:t}=e;return(0,n.J)()?(0,a.jsx)(r.Layer,{full:!0,children:(0,a.jsx)(r.Flex,{width:"100%",background:"mainBackground","data-testid":"mobileContainer",children:t})}):t}},24211(e,t,o){"use strict";o.r(t),o.d(t,{default:()=>i});var r=o(41344),n=o(87650),a=o(60959),l=o(74848);const i=e=>{let{spaceId:t,roomId:o,nodeName:i}=e;const{alertId:s}=(0,r.g)();return(0,l.jsx)(a.A,{children:(0,l.jsx)(n.A,{alertId:s,spaceId:t,roomId:o,nodeName:i,isWebview:!0})})}},87650(e,t,o){"use strict";o.d(t,{A:()=>F});var r=o(42358),n=o(19075),a=o(62718),l=o(10444),i=o(19186),s=(o(98992),o(54520),o(3949),o(64467)),d=o(96540),c=o(41344),u=o(42790),p=o(24013),g=o(51510);const b=(0,g.default)(r.Flex).attrs({alignItems:"center"}).withConfig({displayName:"styled__StyledButtonContainer",componentId:"sc-1glv09p-0"})(["position:sticky;bottom:0;"]);var f=o(52007),h=o(1390),m=o(74630),j=o(94404),y=o(74891),x=o(74848);function I(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function v(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?I(Object(o),!0).forEach((function(t){(0,s.A)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):I(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const w=(0,j.A)((0,y.A)(r.Button)),O=e=>{let{disabled:t,nodeId:o,alertId:n,context:a,lastStatusChange:l,onClose:i,isLoading:s,small:g=!1,testid:j="alertDetailsModal"}=e;const y=(0,c.Zp)(),I=(0,p.Zl)(o),O=(0,d.useCallback)((()=>{i&&i(),y(I,n?{state:{alertId:n}}:{state:{contextToGo:a}})}),[I,n]),P=(0,u.rI)(),k=(0,d.useCallback)((()=>{const e=1e3*l,t=e-6e4;P((o=>v(v({},o),{},{highlight:{after:t,before:e},correlation:!0}))),O()}),[l,a,O,n]);return(0,x.jsx)(b,{justifyContent:"end",gap:2,children:(0,x.jsxs)(r.Flex,{gap:2,justifyContent:"end",children:[(0,x.jsx)(w,{small:g,onClick:k,flavour:"hollow",isLoading:s,icon:"correlation_inv",padding:[1,2],"data-testid":"".concat(j,"-runCorrelations-button"),"data-ga":"alert-modal::click-run-correlations::alerts-view",payload:{action:"Run correlations",alertId:n,nodeId:o},tooltip:"Run correlations",tooltipProps:{align:"bottom"},noWrapper:!0}),(0,x.jsx)(w,{small:g,onClick:O,flavour:"hollow",isLoading:s,disabled:s||t,padding:[1,2],icon:"metrics","data-testid":"".concat(j,"-goToNode-button"),"data-ga":"alert-modal::click-goto-chart::alerts-view",payload:{action:"Go to chart",alertId:n,nodeId:o},tooltip:"Go to chart",tooltipProps:{align:"bottom"},noWrapper:!0}),(0,x.jsx)(f.A,{alertId:n,nodeId:o,isLoading:s,small:g,"data-testid":"".concat(j,"-edit-alert-button"),icon:"pencilOutline",label:void 0,padding:[1,2],tooltip:"Edit alert configuration",tooltipProps:{align:"bottom"}}),(0,x.jsx)(h.A,{"data-testid":"".concat(j,"-troubleshoot-alert-button"),alertId:n,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}),(0,x.jsx)(m.A,{alertId:n,small:g,testid:j,padding:[1,2]})]})})},P=(0,d.memo)(O);var k=o(75894);const A=e=>{let{alertId:t,context:o,name:n,nodeId:a,status:i,lastStatusChange:s,fullyLoaded:d,isWebview:c}=e;const u=(0,l.J)();return(0,x.jsxs)(r.Flex,{justifyContent:"between",children:[(0,x.jsxs)(r.Flex,{alignItems:"center",gap:2,children:[(0,x.jsx)(r.TextBig,{color:"manuItem",children:n}),(0,x.jsx)(k.A,{margin:u?null:[.5,0,0],flavour:i,"data-testid":"alertView-statusPill",children:i})]}),!c&&d&&!u&&(0,x.jsx)(P,{lastStatusChange:s,alertId:t,context:o,name:n,nodeId:a,small:!0,testid:"alertView"})]})};var C=o(92318),D=o(60908);const S=g.default.img.withConfig({displayName:"sc-404__Illustration",componentId:"sc-4w81fg-0"})(["height:35%;width:35%;"]),E=g.default.div.withConfig({displayName:"sc-404__ButtonContainer",componentId:"sc-4w81fg-1"})(["margin:",";"],(0,r.getSizeBy)(4)),L=()=>{const e="".concat(C.A.assetsBaseURL,"/img/no-nodes-room.svg");return(0,x.jsx)(D.DL,{children:(0,x.jsxs)(r.Flex,{column:!0,alignItems:"center",justifyItems:"center",justifyContent:"center",height:"100%",width:"100%",padding:[0,0,"10%"],children:[(0,x.jsx)(S,{src:e,alt:"Unreachable alert",title:"Unreachable alert"}),(0,x.jsx)(r.H3,{children:"We couldn't find the alert"}),(0,x.jsx)(r.Text,{children:"This can be a temporary problem of that specific alert."}),(0,x.jsx)(E,{children:(0,x.jsx)(r.Button,{label:"Retry",icon:"reload"})})]})})};var T=o(81474),_=o(51262),B=o(12407);const N=e=>{let{children:t}=e;return(0,x.jsxs)(r.Flex,{background:"modalHeaderBackground",height:12,flex:!1,gap:4,padding:[0,2,0,4],alignItems:"center",children:[(0,x.jsx)(r.Icon,{name:"logo_s",color:"success",width:"23px"}),t]})},F=e=>{let{alertId:t,spaceId:o,roomId:s,isWebview:d}=e;const c=(0,i.XA)("name"),{isNodeRestricted:u}=(0,_.A)(),{fullyLoaded:p=!1,fullyLoading:g=!0,lastStatusChange:b,context:f,name:h,nodeId:m,status:j}=(0,n.JL)(t);(0,n.yk)(t,{spaceId:o,roomId:s});const y=(0,l.J)(),{restricted:I}=u(m);return I?(0,x.jsx)(D.Ay,{feature:"AlertDetailsViewRestricted",children:(0,x.jsx)(B.A,{})}):(0,x.jsx)(D.Ay,{feature:"AlertDetailsView",children:(0,x.jsxs)(r.Flex,{"data-testid":"alert-view-content",column:!0,padding:y?null:[0,0,10],background:y?"modalBackground":null,children:[!d&&y&&(0,x.jsx)(N,{children:(0,x.jsxs)(r.Flex,{column:!0,children:[(0,x.jsx)(r.H6,{color:"textLite",children:"ROOM"}),(0,x.jsx)(r.Text,{"data-testid":"alertView-mobile-roomName",children:c})]})}),(0,x.jsxs)(r.Flex,{column:!0,padding:[3],overflow:y?"auto":"visible",gap:3,children:[(0,x.jsx)(A,{alertId:t,context:f,status:j,name:h,nodeId:m,lastStatusChange:b,fullyLoaded:p,isWebview:d}),p?null:g?(0,x.jsx)(a.h4,{}):(0,x.jsx)(L,{}),p?(0,x.jsx)(T.A,{alertId:t,spaceId:o,roomId:s,flavour:"alertPage"}):null]}),y&&(0,x.jsx)(r.Box,{position:"sticky",padding:[4],background:"modalBackground",bottom:0,border:{side:"top",color:"border"},children:(0,x.jsxs)(r.TextSmall,{children:["In order to ",(0,x.jsx)(r.TextSmall,{strong:!0,children:"Run Correlations"})," or"," ",(0,x.jsx)(r.TextSmall,{strong:!0,children:"View the Chart"})," you will have to visit this alert from its' dedicated page on a desktop device."]})})]})})}},52007(e,t,o){"use strict";o.d(t,{A:()=>g});o(98992),o(54520),o(3949);var r=o(64467),n=o(80045),a=o(42358),l=o(96026),i=o(74891),s=o(94404),d=o(74848);const c=["alertId","nodeId","small","isLoading","disabled"];function u(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}const p=(0,s.A)((0,i.A)(a.Button)),g=e=>{let{alertId:t,nodeId:o,small:a=!1,isLoading:i,disabled:s}=e,g=(0,n.A)(e,c);const{canEdit:b,goToEdit:f}=(0,l.q)({nodeIds:[o],alertId:t});return(0,d.jsx)(p,function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?u(Object(o),!0).forEach((function(t){(0,r.A)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({small:a,label:"Edit alert",onClick:()=>f(o),flavour:"hollow",isLoading:i,disabled:i||!b||s,width:a?"112px":"150px","data-ga":"alert-modal::click-edit-congiguration::alerts-view",payload:{action:"Edit alert",alertId:t,nodeId:o},tooltip:b?null:"You cannot edit this alert."},g))}},96026(e,t,o){"use strict";o.d(t,{l:()=>f,q:()=>b});var r=o(64467),n=(o(98992),o(54520),o(3949),o(25509),o(65223),o(60321),o(41927),o(11632),o(64377),o(66771),o(12516),o(68931),o(52514),o(35694),o(52774),o(49536),o(21926),o(94483),o(16215),o(62953),o(96540)),a=o(41344),l=o(42790),i=o(61841),s=o(24609),d=o(24013),c=o(19075),u=o(91421);function p(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function g(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?p(Object(o),!0).forEach((function(t){(0,r.A)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const b=e=>{var t;let{alertId:o,alertName:r,nodeIds:l=[]}=e;const s=(0,a.Zp)(),{setState:p}=(0,u.$h)(),[g]=(0,i.Ay)(),{name:b}=(0,c.JL)(o),f=r||b,{isParent:h}=(0,d.xY)(l[0]),{loaded:m,value:j,hasError:y,error:x}=(0,u.wd)({node:{value:l[0],isParent:h},path:"/health"}),I=!(null===j||void 0===j||null===(t=j.tree)||void 0===t||null===(t=t["/health/alerts/prototypes"])||void 0===t||!t["health:alert:prototype:".concat(f)]),[,v]=(0,u.PJ)();return{canEdit:m&&!y&&I,goToEdit:(0,n.useCallback)((e=>{l=e?Array.from(new Set([e,...l])):l,p({alertName:f,isAlert:!0}),v(!0,{nodeId:l[0]})}),[f,l,g,p,s]),error:(null===x||void 0===x?void 0:x.errorMessage)||x}},f=()=>{const e=(0,a.Zp)(),{slug:t}=(0,s.ap)(),o=(0,l.rI)();return(0,n.useCallback)((r=>{r&&(o((e=>g(g({},e),{},{dyncfgSearchTerm:r}))),e("/spaces/".concat(t,"/settings/configurations"),{replace:!0}))}),[e,o,t])}},54391(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=54391,e.exports=t}}]);