summaryrefslogtreecommitdiffstats
path: root/web/gui/v2/9594.b5b73051fd8e1b9901f1.chunk.js
blob: 8782fa6c883f7bade643ceb20411a455b5cf2a07 (plain)
1
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6bbdc889-00be-4090-b1e5-120561684110",e._sentryDebugIdIdentifier="sentry-dbid-6bbdc889-00be-4090-b1e5-120561684110")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"8b7b01b6c705cf50f8050ce0fb8fc6b58fe68567"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[9594],{33244:function(e,t,n){var a=n(67294),r=n(93416),o=n(22648);t.Z=function(e){var t=e.children;return(0,o.m)()?a.createElement(r.Layer,{full:!0},a.createElement(r.Flex,{width:"100%",background:"mainBackground","data-testid":"alertView-mobileContainer"},t)):t}},65840:function(e,t,n){n.d(t,{HK:function(){return d},M5:function(){return u},vS:function(){return i},x4:function(){return c}});var a=n(29439),r=n(4480),o=(0,r.cn)({key:"spaceKeyAtom",default:0}),l=(0,r.cn)({key:"roomViewLoading",default:!0}),i=function(){return(0,r.sJ)(o)},d=function(){var e=(0,r.FV)(o),t=(0,a.Z)(e,2),n=t[0],l=t[1];return function(){return l(n+1)}},c=function(){return(0,r.sJ)(l)},u=function(){return(0,r.FV)(l)}},44695:function(e,t,n){n.r(t);var a=n(67294),r=n(89250),o=n(62567),l=n(33244);t.default=function(e){var t=e.spaceId,n=e.roomId,i=e.nodeName,d=(0,r.UO)().alertId;return a.createElement(l.Z,null,a.createElement(o.Z,{alertId:d,spaceId:t,roomId:n,nodeName:i,isWebview:!0}))}},62567:function(e,t,n){n.d(t,{Z:function(){return L}});var a=n(67294),r=n(93416),o=n(12008),l=n(78266),i=n(22648),d=n(37518),c=n(92253),u=n(80854),s=n(32071),m=n(39840),f=n(89250),g=n(4822),v=n(97945),p=n(71893),h=(0,p.default)(r.Flex).attrs({alignItems:"center"}).withConfig({displayName:"styled__StyledButtonContainer",componentId:"sc-1glv09p-0"})(["position:sticky;bottom:0;"]),b=function(e){var t=e.disabled,n=e.nodeId,o=e.alertId,l=e.context,i=e.lastStatusChange,d=e.onClose,c=e.isLoading,u=e.small,s=void 0!==u&&u,m=e.testid,p=void 0===m?"alertDetailsModal":m,b=(0,f.s0)(),E=(0,v.m3)(n),y=(0,a.useCallback)((function(){d&&d(),b(E,o?{state:{alertId:o}}:{state:{contextToGo:l}})}),[E,o]),w=(0,g.TQ)(),x=(0,a.useCallback)((function(){var e=1e3*i;w({highlight:{after:e-6e4,before:e},correlation:!0}),y()}),[i,l,y,o]);return a.createElement(h,{justifyContent:"end",gap:2},a.createElement(r.Flex,{gap:2,justifyContent:"end"},a.createElement(r.Button,{small:s,label:"Run correlations",onClick:x,flavour:"hollow",isLoading:c,width:s?"112px":"170px","data-testid":"".concat(p,"-runCorrelations-button"),"data-ga":"alert-modal::click-run-correlations::alerts-view"}),a.createElement(r.Button,{small:s,label:"Go to chart",onClick:y,isLoading:c,disabled:c||t,width:s?"112px":"150px","data-testid":"".concat(p,"-goToNode-button"),"data-ga":"alert-modal::click-goto-chart::alerts-view"})))},E=(0,a.memo)(b),y=n(29876),w=n(54244),x=function(e){var t=e.alertId,n=e.context,o=e.name,l=e.nodeId,d=e.status,c=e.lastStatusChange,u=e.fullyLoaded,s=e.isWebview,m=(0,i.m)(),f=m?r.H4:r.H0;return a.createElement(r.Flex,{column:!0,gap:4},a.createElement(r.Flex,{justifyContent:"between"},a.createElement(r.Flex,{alignItems:"center",gap:2},a.createElement(w.Z,{margin:m?null:[.5,0,0],flavour:d,"data-testid":"alertView-statusPill"},d),a.createElement(f,{"data-testid":"alertView-alertName"},o)),!1),a.createElement(r.Flex,{justifyContent:"between",alignItems:"center"},a.createElement(y.Z,{alertId:t}),!s&&u&&!m&&a.createElement(E,{lastStatusChange:c,alertId:t,context:n,name:o,nodeId:l,small:!0,testid:"alertView"})))},I=n(46189),C=n(63346),Z=p.default.img.withConfig({displayName:"sc-404__Illustration",componentId:"sc-4w81fg-0"})(["height:35%;width:35%;"]),k=p.default.div.withConfig({displayName:"sc-404__ButtonContainer",componentId:"sc-4w81fg-1"})(["margin:",";"],(0,r.getSizeBy)(4)),S=function(){var e="".concat(I.Z.assetsBaseURL,"/img/no-nodes-room.svg");return a.createElement(C.Ht,null,a.createElement(r.Flex,{column:!0,alignItems:"center",justifyItems:"center",justifyContent:"center",height:"100%",width:"100%",padding:[0,0,"10%"]},a.createElement(Z,{src:e,alt:"Unreachable alert",title:"Unreachable alert"}),a.createElement(r.H3,null,"We couldn't find the alert"),a.createElement(r.Text,null,"This can be a temporary problem of that specific alert."),a.createElement(k,null,a.createElement(r.Button,{label:"Retry",icon:"reload"}))))},D=n(50709),V=n(34735),T=n(82210),F=function(e){var t=e.children;return a.createElement(r.Flex,{background:"modalHeaderBackground",height:12,flex:!1,gap:4,padding:[0,2,0,4],alignItems:"center"},a.createElement(r.Icon,{name:"logo_s",color:"success",width:"23px"}),t)},L=function(e){var t=e.alertId,n=e.spaceId,f=e.roomId,g=e.isWebview,v=e.nodeName,p=(0,d.Hm)("name"),h=(0,V.Z)().isNodeRestricted,b=(0,o.E5)(t),E=b.fullyLoaded,y=void 0!==E&&E,w=b.fullyLoading,I=void 0===w||w,Z=b.info,k=b.units,L=b.lastStatusChangeValue,R=b.lastStatusChange,_=b.context,N=b.instance,B=b.name,M=b.nodeId,H=b.status,j=b.lastUpdated,A=b.value;(0,o.yx)(t,{spaceId:n,roomId:f});var U=(0,m.pK)(A,k),O=(0,m.pK)(L,k),W=(0,i.m)();return M&&h(M)?a.createElement(C.ZP,{feature:"AlertDetailsViewRestricted"},a.createElement(T.Z,null)):a.createElement(C.ZP,{feature:"AlertDetailsView"},a.createElement(r.Flex,{column:!0,width:W?"100%":{max:280},padding:W?null:[0,0,10],background:W?"modalBackground":null},!g&&W&&a.createElement(F,null,a.createElement(r.Flex,{column:!0},a.createElement(r.H6,{color:"textLite"},"ROOM"),a.createElement(r.Text,{"data-testid":"alertView-mobile-roomName"},p))),a.createElement(r.Flex,{column:!0,padding:W?[3]:[0],overflow:W?"auto":"visible",gap:3},a.createElement(x,{alertId:t,context:_,status:H,name:B