diff options
Diffstat (limited to '')
-rw-r--r-- | web/gui/v2/9201.3b4bde3431aac911f02e.chunk.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web/gui/v2/9201.3b4bde3431aac911f02e.chunk.js b/web/gui/v2/9201.3b4bde3431aac911f02e.chunk.js new file mode 100644 index 000000000..9766dc76c --- /dev/null +++ b/web/gui/v2/9201.3b4bde3431aac911f02e.chunk.js @@ -0,0 +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]="2ea327fe-0fa6-4cef-9931-caaebcdb84d0",e._sentryDebugIdIdentifier="sentry-dbid-2ea327fe-0fa6-4cef-9931-caaebcdb84d0")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"6845f9ce010d5a446e5d4a40f17204cb8341a07a"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[9201],{33244:function(e,t,a){var n=a(67294),l=a(64969),o=a(22648);t.Z=function(e){var t=e.children;return(0,o.m)()?n.createElement(l.Layer,{full:!0},n.createElement(l.Flex,{width:"100%",background:"mainBackground","data-testid":"alertView-mobileContainer"},t)):t}},62567:function(e,t,a){a.d(t,{Z:function(){return Z}});var n=a(67294),l=a(64969),o=a(12008),r=a(78266),d=a(22648),i=a(37518),c=a(92253),s=a(80854),u=a(17208),m=a(39840),f=a(89250),g=a(95248),p=a(97945),E=a(71893),b=(0,E.default)(l.Flex).attrs({alignItems:"center"}).withConfig({displayName:"styled__StyledButtonContainer",componentId:"sc-1glv09p-0"})(["position:sticky;bottom:0;"]),h=function(e){var t=e.disabled,a=e.nodeId,o=e.alertId,r=e.context,d=e.lastStatusChange,i=e.onClose,c=e.isLoading,s=e.small,u=void 0!==s&&s,m=e.testid,E=void 0===m?"alertDetailsModal":m,h=(0,f.s0)(),w=(0,p.m3)(a),I=(0,n.useCallback)((function(){i&&i(),o?h(w,{state:{alertId:o}}):h(w)}),[w,o]),y=(0,g.TQ)(),v=(0,n.useCallback)((function(){var e=1e3*d;y({highlight:{after:e-6e4,before:e},correlation:!0}),I()}),[d,r,I,o]);return n.createElement(b,{justifyContent:"end",gap:2},n.createElement(l.Flex,{gap:2,justifyContent:"end"},n.createElement(l.Button,{small:u,label:"Run correlations",onClick:v,flavour:"hollow",isLoading:c,width:u?"112px":"170px","data-testid":"".concat(E,"-runCorrelations-button"),"data-ga":"alert-modal::click-run-correlations::alerts-view"}),n.createElement(l.Button,{small:u,label:"Go to chart",onClick:I,isLoading:c,disabled:c||t,width:u?"112px":"150px","data-testid":"".concat(E,"-goToNode-button"),"data-ga":"alert-modal::click-goto-chart::alerts-view"})))},w=(0,n.memo)(h),I=a(29876),y=a(20686),v=function(e){var t=e.alertId,a=e.context,o=e.name,r=e.nodeId,i=e.status,c=e.lastStatusChange,s=e.fullyLoaded,u=e.isWebview,m=(0,d.m)(),f=m?l.H4:l.H0;return n.createElement(l.Flex,{column:!0,gap:4},n.createElement(l.Flex,{justifyContent:"between"},n.createElement(l.Flex,{alignItems:"center",gap:2},n.createElement(y.Z,{margin:m?null:[.5,0,0],type:"".concat(i,"AlertsTable"),"data-testid":"alertView-statusPill"},i),n.createElement(f,{"data-testid":"alertView-alertName"},o)),!1),n.createElement(l.Flex,{justifyContent:"between",alignItems:"center"},n.createElement(I.Z,{alertId:t}),!u&&s&&!m&&n.createElement(w,{lastStatusChange:c,alertId:t,context:a,name:o,nodeId:r,small:!0,testid:"alertView"})))},x=a(46189),C=E.default.img.withConfig({displayName:"sc-404__Illustration",componentId:"sc-4w81fg-0"})(["height:35%;width:35%;"]),k=E.default.div.withConfig({displayName:"sc-404__ButtonContainer",componentId:"sc-4w81fg-1"})(["margin:",";"],(0,l.getSizeBy)(4)),L=function(){var e="".concat(x.Z.assetsBaseURL,"/img/no-nodes-room.svg");return n.createElement(l.Flex,{column:!0,alignItems:"center",justifyItems:"center",justifyContent:"center",height:"100%",width:"100%",padding:[0,0,"10%"]},n.createElement(C,{src:e,alt:"Unreachable alert",title:"Unreachable alert"}),n.createElement(l.H3,null,"We couldn't find the alert"),n.createElement(l.Text,null,"This can be a temporary problem of that specific alert."),n.createElement(k,null,n.createElement(l.Button,{label:"Retry",icon:"reload"})))},S=a(50709),_=function(e){var t=e.children;return n.createElement(l.Flex,{background:"modalHeaderBackground",height:12,flex:!1,gap:4,padding:[0,2,0,4],alignItems:"center"},n.createElement(l.Icon,{name:"logo_s",color:"success",width:"23px"}),t)},Z=function(e){var t=e.alertId,a=e.spaceId,f=e.roomId,g=e.isWebview,p=(0,i.Hm)("name"),E=(0,o.E5)(t),b=E.fullyLoaded,h=void 0!==b&&b,w=E.fullyLoading,I=void 0===w||w,y=E.info,x=E.units,C=E.lastStatusChangeValue,k=E.lastStatusChange,Z=E.context,B=E.instance,F=E.name,V=E.nodeId,T=E.status,R=E.lastUpdated,N=E.value;(0,o.yx)(t,{spaceId:a,roomId:f});var H=(0,m.pK)(N,x),j=(0,m.pK)(C,x),D=(0,d.m)();return n.createElement(l.Flex,{column:!0,width:D?"100%":{max:280},padding:D?null:[0,0,10],background:D?"modalBackground":null},!g&&D&&n.createElement(_,null,n.createElement(l.Flex,{column:!0},n.createElement(l.H6,{color:"textLite"},"ROOM"),n.createElement(l.Text,{"data-testid":"alertView-mobile-roomName"},p))),n.createElement(l.Flex,{column:!0,padding:D?[3]:[0],overflow:D?"auto":"visible",gap:3},n.createElement(v,{alertId:t,context:Z,status:T,name:F,nodeId:V,lastStatusChange:k,fullyLoaded:h,isWebview:g}),h?null:I?n.createElement(r.Z,{title:"Loading alert..."}):n.createElement(L,null),h&&y&&n.createElement(n.Fragment,null,n.createElement(s.Z,{iconName:"documentation"},"Alert Description"),n.createElement(l.Text,{"data-testid":"alertView-info"},y),n.createElement(S.Z,{alertId:t})),h&&n.createElement(c.Z,{id:t,context:Z,instance:B,formattedLastValue:H,formattedLastStatusChangeValue:j,lastStatusChange:k,lastUpdated:R,isFormattedValueLoaded:h,nodeId:V,status:T,testid:"alertView",spaceId:a,roomId:f}),h&&n.createElement(u.Z,{id:t,testid:"alertView"})),D&&n.createElement(l.Box,{position:"sticky",padding:[4],background:"modalBackground",bottom:0,border:{side:"top",color:"border"}},n.createElement(l.TextSmall,null,"In order to ",n.createElement(l.TextSmall,{strong:!0},"Run Correlations")," or"," ",n.createElement(l.TextSmall,{strong:!0},"View the Chart")," you will have to visit this alert from its\u2019 dedicated page on a desktop device.")))}},69201:function(e,t,a){a.r(t),a.d(t,{default:function(){return E}});var n=a(67294),l=a(64969),o=a(54227),r=a(12008),d=a(91268),i=a(78266),c=a(45987),s=(a(74916),a(64765),a(89250)),u=a(12599),m=a(17563),f=["alertId"],g=a(62567),p=a(33244),E=function(){var e=function(){var e=(0,s.UO)(),t=e.alertId,a=(0,c.Z)(e,f),l=(0,s.TH)().search,o=m.parse(l).transition,r=(0,n.useRef)(o||t),d=(0,s.s0)();return(0,n.useEffect)((function(){o&&o!==t&&d((0,u.Gn)("/spaces/:spaceSlug/rooms/:roomSlug/alerts/".concat(o),a),{replace:!0})}),[t,o]),r.current}(),t=(0,r.E5)(e),a=t.name,E=void 0===a?"unknown alert":a,b=t.fullyLoaded,h=void 0!==b&&b,w=(0,r.Bk)();return(0,o.bV)({title:E,id:e,destination:e,params:location.hash,type:"alerts",isReady:h}),w?n.createElement(d.Z,{overflow:{vertical:"auto"}},w&&n.createElement(l.Box,{padding:[10,6]},n.createElement(p.Z,null,n.createElement(g.Z,{alertId:e})))):n.createElement(i.Z,{title:"Loading alert..."})}}}]);
\ No newline at end of file |