summaryrefslogtreecommitdiffstats
path: root/web/gui/v2/9594.b5b73051fd8e1b9901f1.chunk.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--web/gui/v2/9594.b5b73051fd8e1b9901f1.chunk.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/gui/v2/9594.b5b73051fd8e1b9901f1.chunk.js b/web/gui/v2/9594.b5b73051fd8e1b9901f1.chunk.js
new file mode 100644
index 00000000..8782fa6c
--- /dev/null
+++ b/web/gui/v2/9594.b5b73051fd8e1b9901f1.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]="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,nodeId:M,lastStatusChange:R,fullyLoaded:y,isWebview:g}),y?null:I?a.createElement(l.Z,{title:"Loading alert..."}):a.createElement(S,null),y&&Z&&a.createElement(a.Fragment,null,a.createElement(u.Z,{iconName:"documentation"},"Alert Description"),a.createElement(r.Text,{"data-testid":"alertView-info"},Z),a.createElement(D.Z,{alertId:t})),y&&a.createElement(c.Z,{id:t,context:_,instance:N,formattedLastValue:U,formattedLastStatusChangeValue:O,lastStatusChange:R,lastUpdated:j,isFormattedValueLoaded:y,nodeId:M,status:H,testid:"alertView",spaceId:n,roomId:f}),y&&a.createElement(s.Z,{id:t,nodeName:v,testid:"alertView"})),W&&a.createElement(r.Box,{position:"sticky",padding:[4],background:"modalBackground",bottom:0,border:{side:"top",color:"border"}},a.createElement(r.TextSmall,null,"In order to ",a.createElement(r.TextSmall,{strong:!0},"Run Correlations")," or"," ",a.createElement(r.TextSmall,{strong:!0},"View the Chart")," you will have to visit this alert from its' dedicated page on a desktop device."))))}},52149:function(e,t,n){function a(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}n.d(t,{Z:function(){return a}})},82268:function(e,t,n){n.d(t,{Z:function(){return r}});var a=n(52149);function r(e){return(0,a.Z)({},e)}},49474:function(e,t,n){n.d(t,{Z:function(){return o}});var a=n(19013),r=n(13882);function o(e,t){(0,r.Z)(2,arguments);var n=(0,a.default)(e),o=(0,a.default)(t),l=n.getTime()-o.getTime();return l<0?-1:l>0?1:l}},12195:function(e,t,n){n.d(t,{Z:function(){return v}});var a=n(84314),r=n(24262),o=n(49474),l=n(19013),i=n(82268),d=n(52149),c=n(8958),u=n(13882),s=6e4,m=1440,f=30*m,g=365*m;function v(e,t,n){var v,p,h;(0,u.Z)(2,arguments);var b=(0,a.j)(),E=null!==(v=null!==(p=null===n||void 0===n?void 0:n.locale)&&void 0!==p?p:b.locale)&&void 0!==v?v:c.Z;if(!E.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var y=(0,o.Z)(e,t);if(isNaN(y))throw new RangeError("Invalid time value");var w,x,I=(0,d.Z)((0,i.Z)(n),{addSuffix:Boolean(null===n||void 0===n?void 0:n.addSuffix),comparison:y});y>0?(w=(0,l.default)(t),x=(0,l.default)(e)):(w=(0,l.default)(e),x=(0,l.default)(t));var C,Z=String(null!==(h=null===n||void 0===n?void 0:n.roundingMethod)&&void 0!==h?h:"round");if("floor"===Z)C=Math.floor;else if("ceil"===Z)C=Math.ceil;else{if("round"!==Z)throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");C=Math.round}var k,S=x.getTime()-w.getTime(),D=S/s,V=(S-((0,r.Z)(x)-(0,r.Z)(w)))/s,T=null===n||void 0===n?void 0:n.unit;if("second"===(k=T?String(T):D<1?"second":D<60?"minute":D<m?"hour":V<f?"day":V<g?"month":"year")){var F=C(S/1e3);return E.formatDistance("xSeconds",F,I)}if("minute"===k){var L=C(D);return E.formatDistance("xMinutes",L,I)}if("hour"===k){var R=C(D/60);return E.formatDistance("xHours",R,I)}if("day"===k){var _=C(V/m);return E.formatDistance("xDays",_,I)}if("month"===k){var N=C(V/f);return 12===N&&"month"!==T?E.formatDistance("xYears",1,I):E.formatDistance("xMonths",N,I)}if("year"===k){var B=C(V/g);return E.formatDistance("xYears",B,I)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}},58206:function(e,t,n){function a(e,{target:t=document.body}={}){if("string"!==typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const n=document.createElement("textarea"),a=document.activeElement;n.value=e,n.setAttribute("readonly",""),n.style.contain="strict",n.style.position="absolute",n.style.left="-9999px",n.style.fontSize="12pt";const r=document.getSelection(),o=r.rangeCount>0&&r.getRangeAt(0);t.append(n),n.select(),n.selectionStart=0,n.selectionEnd=e.length;let l=!1;try{l=document.execCommand("copy")}catch{}return n.remove(),o&&(r.removeAllRanges(),r.addRange(o)),a&&a.focus(),l}n.d(t,{Z:function(){return a}})}}]); \ No newline at end of file