summaryrefslogtreecommitdiffstats
path: root/web/gui/v2/2701.98a4d24406e365a6ddf2.chunk.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--web/gui/v2/2701.98a4d24406e365a6ddf2.chunk.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/gui/v2/2701.98a4d24406e365a6ddf2.chunk.js b/web/gui/v2/2701.98a4d24406e365a6ddf2.chunk.js
new file mode 100644
index 000000000..5310fa6e7
--- /dev/null
+++ b/web/gui/v2/2701.98a4d24406e365a6ddf2.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]="34390c14-fa09-4772-802c-d0502072a68d",e._sentryDebugIdIdentifier="sentry-dbid-34390c14-fa09-4772-802c-d0502072a68d")}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([[2701],{89405:function(e,t,n){n.d(t,{rA:function(){return w},tb:function(){return y}});var r=n(4942),o=n(45987),a=(n(91058),n(47941),n(82526),n(57327),n(41539),n(88449),n(2490),n(59849),n(38880),n(15581),n(34514),n(54747),n(49337),n(33321),n(69070),n(67294)),i=n(49546),c=n(58591),l=n(14600),u=["long","isTime","secs","timezone"],d=["locale"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m=!!(Intl&&Intl.DateTimeFormat&&navigator.language),p=function(e){return"number"===typeof e?new Date(e):e},g=function(e){return(e=p(e))?(0,i.default)(e,"MM/dd/yyyy"):""},b=function(e){return(e=p(e))?(0,i.default)(e,"HH:mm"):""},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return new Date(new Date(e).getTime()+60*parseInt(t)*60*1e3)},v=function(e,t){var n=t.locale,r=(0,o.Z)(t,d);return new Intl.DateTimeFormat(null!==n&&void 0!==n?n:navigator.language,function(e){var t=e.long,n=e.isTime,r=e.secs,a=e.timezone,i=(0,o.Z)(e,u);return f(f(f({hourCycle:"h23"},n?{}:t?{weekday:"short",year:"numeric",month:"short",day:"2-digit"}:{dateStyle:"short"}),n&&{timeStyle:r?"medium":"short"}),{},{timeZone:a},i)}(r)).format(e)},w=function(){var e=function(){var e=(0,c.m$)().utc;return(0,l.E)("default",e)}(),t=e.utc,n=e.offset;return{localeDateString:(0,a.useMemo)((function(){return m?function(e,n){return v(e,f({long:!0,timezone:t},n))}:g}),[t]),localeTimeString:(0,a.useMemo)((function(){return m?function(e,n){return v(e,f({secs:!0,isTime:!0,timezone:t},n))}:b}),[t]),utcOffset:n}}},20709:function(e,t){var n=36e5;t.Z=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date)-e;if(t<0)return"0 seconds ago";var r=Math.floor(t/864e5);if(r>1)return"".concat(r," days ago");var o=Math.floor(t/n);if(o>0)return"".concat(o," hours ago");var a=Math.floor(t/6e4);if(a>1)return"".concat(a," mins ago");var i=Math.floor(t/1e3);return"".concat(i," seconds ago")}},52428:function(e,t,n){n.d(t,{J:function(){return u}});n(47941),n(82526),n(57327),n(41539),n(88449),n(2490),n(59849),n(38880),n(15581),n(34514),n(54747),n(49337),n(33321),n(69070);var r=n(4942),o=n(58206),a=n(52631),i=n(74855);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){(0,o.Z)(e);var n=(0,i.sc)(l(l({header:"Copied",text:"Command copied to your clipboard! Please run it on your node's terminal.",icon:"gear"},t),{},{success:!0}));a.Z.success(n,{context:"copy"})}}},57387:function(e,t,n){n.d(t,{ZM:function(){return g}});n(47941),n(82526),n(57327),n(41539),n(88449),n(2490),n(59849),n(38880),n(15581),n(34514),n(54747),n(49337),n(33321),n(69070);var r=n(45987),o=n(4942),a=n(67294),i=n(71893),c=n(64969),l=n(52428),u=["children"],d=["children","confirmationText","commandText"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var f=(0,i.default)(c.Box).attrs((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({color:"textDescription",background:"modalTabsBackground",border:{side:"all",color:"borderSecondary"},padding:[4,10,4,4],position:"relative",width:"100%"},e)})).withConfig({displayName:"command__StyledTerminalCommand",componentId:"sc-wnwmk3-0"})(["color:",';border-radius:2px;overflow-wrap:anywhere;white-space:pre-wrap;font-family:"Courier New",Courier,monospace;letter-spacing:0.09px;line-height:18px;font-size:14px;word-break:break-word;'],(0,c.getColor)("textDescription")),m=(0,i.default)(c.Icon).withConfig({displayName:"command__StyledIcon",componentId:"sc-wnwmk3-1"})(["display:flex;align-self:flex-end;cursor:pointer;"]),p=(0,i.default)(c.Box).attrs({color:"textDescription",border:{side:"all",color:"borderSecondary"},background:"modalTabsBackground",padding:[0,1]}).withConfig({displayName:"command__CodeText",componentId:"sc-wnwmk3-2"})(["display:inline-block;color:",';border-radius:2px;font-family:"Courier New",Courier,monospace;letter-spacing:0.09px;line-height:18px;font-size:14px;word-break:break-word;'],(0,c.getColor)("textDescription")),g=function(e){var t=e.children,n=(0,r.Z)(e,u);return a.createElement(p,n,t)};t.ZP=function(e){var t=e.children,n=e.confirmationText,o=void 0===n?"Command copied to your clipboard.":n,i=e.commandText,u=void 0===i?t:i,s=(0,r.Z)(e,d);return a.createElement(f,s,t,a.createElement(c.Box,{position:"absolute",bottom:"8px",right:"8px"},a.createElement(m,{name:"copy",size:"small",color:"primary",onClick:(0,l.J)(u||t,{text:o})})))}},33244:function(e,t,n){var r=n(67294),o=n(64969),a=n(22648);t.Z=function(e){var t=e.children;return(0,a.m)()?r.createElement(o.Layer,{full:!0},r.createElement(o.Flex,{width:"100%",background:"mainBackground","data-testid":"alertView-mobileContainer"},t)):t}},44695:function(e,t,n){n.r(t);var r=n(67294),o=n(89250),a=n(62567),i=n(33244);t.default=function(e){var t=e.spaceId,n=e.roomId,c=(0,o.UO)().alertId;return r.createElement(i.Z,null,r.createElement(a.Z,{alertId:c,spaceId:t,roomId:n,isWebview:!0}))}},62567:function(e,t,n){n.d(t,{Z:function(){return D}});var r=n(67294),o=n(64969),a=n(12008),i=n(78266),c=n(22648),l=n(37518),u=n(92253),d=n(80854),s=n(17208),f=n(39840),m=n(89250),p=n(95248),g=n(97945),b=n(71893),y=(0,b.default)(o.Flex).attrs({alignItems:"center"}).withConfig({displayName:"styled__StyledButtonContainer",componentId:"sc-1glv09p-0"})(["position:sticky;bottom:0;"]),v=function(e){var t=e.disabled,n=e.nodeId,a=e.alertId,i=e.context,c=e.lastStatusChange,l=e.onClose,u=e.isLoading,d=e.small,s=void 0!==d&&d,f=e.testid,b=void 0===f?"alertDetailsModal":f,v=(0,m.s0)(),w=(0,g.m3)(n),h=(0,r.useCallback)((function(){l&&l(),a?v(w,{state:{alertId:a}}):v(w)}),[w,a]),x=(0,p.TQ)(),E=(0,r.useCallback)((function(){var e=1e3*c;x({highlight:{after:e-6e4,before:e},correlation:!0}),h()}),[c,i,h,a]);return r.createElement(y,{justifyContent:"end",gap:2},r.createElement(o.Flex,{gap:2,justifyContent:"end"},r.createElement(o.Button,{small:s,label:"Run correlations",onClick:E,flavour:"hollow",isLoading:u,width:s?"112px":"170px","data-testid":"".concat(b,"-runCorrelations-button"),"data-ga":"alert-modal::click-run-correlations::alerts-view"}),r.createElement(o.Button,{small:s,label:"Go to chart",onClick:h,isLoading:u,disabled:u||t,width:s?"112px":"150px","data-testid":"".concat(b,"-goToNode-button"),"data-ga":"alert-modal::click-goto-chart::alerts-view"})))},w=(0,r.memo)(v),h=n(29876),x=n(20686),E=function(e){var t=e.alertId,n=e.context,a=e.name,i=e.nodeId,l=e.status,u=e.lastStatusChange,d=e.fullyLoaded,s=e.isWebview,f=(0,c.m)(),m=f?o.H4:o.H0;return r.createElement(o.Flex,{column:!0,gap:4},r.createElement(o.Flex,{justifyContent:"between"},r.createElement(o.Flex,{alignItems:"center",gap:2},r.createElement(x.Z,{margin:f?null:[.5,0,0],type:"".concat(l,"AlertsTable"),"data-testid":"alertView-statusPill"},l),r.createElement(m,{"data-testid":"alertView-alertName"},a)),!1),r.createElement(o.Flex,{justifyContent:"between",alignItems:"center"},r.createElement(h.Z,{alertId:t}),!s&&d&&!f&&r.createElement(w,{lastStatusChange:u,alertId:t,context:n,name:a,nodeId:i,small:!0,testid:"alertView"})))},O=n(46189),I=b.default.img.withConfig({displayName:"sc-404__Illustration",componentId:"sc-4w81fg-0"})(["height:35%;width:35%;"]),C=b.default.div.withConfig({displayName:"sc-404__ButtonContainer",componentId:"sc-4w81fg-1"})(["margin:",";"],(0,o.getSizeBy)(4)),j=function(){var e="".concat(O.Z.assetsBaseURL,"/img/no-nodes-room.svg");return r.createElement(o.Flex,{column:!0,alignItems:"center",justifyItems:"center",justifyContent:"center",height:"100%",width:"100%",padding:[0,0,"10%"]},r.createElement(I,{src:e,alt:"Unreachable alert",title:"Unreachable alert"}),r.createElement(o.H3,null,"We couldn't find the alert"),r.createElement(o.Text,null,"This can be a temporary problem of that specific alert."),r.createElement(C,null,r.createElement(o.Button,{label:"Retry",icon:"reload"})))},k=n(50709),S=function(e){var t=e.children;return r.createElement(o.Flex,{background:"modalHeaderBackground",height:12,flex:!1,gap:4,padding:[0,2,0,4],alignItems:"center"},r.createElement(o.Icon,{name:"logo_s",color:"success",width:"23px"}),t)},D=function(e){var t=e.alertId,n=e.spaceId,m=e.roomId,p=e.isWebview,g=(0,l.Hm)("name"),b=(0,a.E5)(t),y=b.fullyLoaded,v=void 0!==y&&y,w=b.fullyLoading,h=void 0===w||w,x=b.info,O=b.units,I=b.lastStatusChangeValue,C=b.lastStatusChange,D=b.context,Z=b.instance,T=b.name,P=b.nodeId,_=b.status,F=b.lastUpdated,N=b.value;(0,a.yx)(t,{spaceId:n,roomId:m});var B=(0,f.pK)(N,O),L=(0,f.pK)(I,O),M=(0,c.m)();return r.createElement(o.Flex,{column:!0,width:M?"100%":{max:280},padding:M?null:[0,0,10],background:M?"modalBackground":null},!p&&M&&r.createElement(S,null,r.createElement(o.Flex,{column:!0},r.createElement(o.H6,{color:"textLite"},"ROOM"),r.createElement(o.Text,{"data-testid":"alertView-mobile-roomName"},g))),r.createElement(o.Flex,{column:!0,padding:M?[3]:[0],overflow:M?"auto":"visible",gap:3},r.createElement(E,{alertId:t,context:D,status:_,name:T,nodeId:P,lastStatusChange:C,fullyLoaded:v,isWebview:p}),v?null:h?r.createElement(i.Z,{title:"Loading alert..."}):r.createElement(j,null),v&&x&&r.createElement(r.Fragment,null,r.createElement(d.Z,{iconName:"documentation"},"Alert Description"),r.createElement(o.Text,{"data-testid":"alertView-info"},x),r.createElement(k.Z,{alertId:t})),v&&r.createElement(u.Z,{id:t,context:D,instance:Z,formattedLastValue:B,formattedLastStatusChangeValue:L,lastStatusChange:C,lastUpdated:F,isFormattedValueLoaded:v,nodeId:P,status:_,testid:"alertView",spaceId:n,roomId:m}),v&&r.createElement(s.Z,{id:t,testid:"alertView"})),M&&r.createElement(o.Box,{position:"sticky",padding:[4],background:"modalBackground",bottom:0,border:{side:"top",color:"border"}},r.createElement(o.TextSmall,null,"In order to ",r.createElement(o.TextSmall,{strong:!0},"Run Correlations")," or"," ",r.createElement(o.TextSmall,{strong:!0},"View the Chart")," you will have to visit this alert from its\u2019 dedicated page on a desktop device.")))}},39840:function(e,t,n){n.d(t,{e8:function(){return m},m9:function(){return s},pK:function(){return f},yi:function(){return d}});n(92222);var r=n(89250),o=n(67294),a=n(37518),i=n(95248),c=n(45771),l=n(20709),u=n(89405),d=function(e){var t=(0,r.s0)(),n=(0,a.A3)(),c=(0,i.XT)({extraKey:"alerts"}),l=(0,i.Sf)("alertStatuses",{extraKey:"alerts"});return(0,o.useCallback)((function(r){e&&c([e]),r&&"string"===typeof r&&l([r]),t("".concat(n,"/alerts"))}),[e,n,c])},s=function(e,t){if(void 0===e)return"-";var n=(0,c.J)(e);return t?"".concat(n," ").concat(t):n},f=function(e,t){return(0,o.useMemo)((function(){return s(e,t)}),[e,t])},m=function(e){var t=e.rawTime,n=e.secs,r=void 0!==n&&n,a=e.long,i=void 0!==a&&a,c=(0,u.rA)(),d=c.localeTimeString,s=c.localeDateString;return(0,o.useMemo)((function(){var e=new Date(1e3*t);return isNaN(e.valueOf())?{}:{timeAgo:(0,l.Z)(e,new Date),formattedDate:"".concat(s(e,{long:i})," ").concat(d(e,{secs:r}))}}),[t,d,s])}},45771:function(e,t,n){n.d(t,{J:function(){return r},j:function(){return o}});n(9653),n(61874),n(26699),n(32023);var r=function(e){var t=e<1?Number(e).toPrecision(3):Number(e).toFixed(2),n=Number.parseFloat(t);return Math.abs(n)>=1e9||Math.abs(n)<=1e-5&&0!==n?n.toExponential(3):n},o=function(e){return e.includes("critical")?"critical":e.includes("warning")?"warning":e.includes("clear")?"clear":e[0]}},91128:function(e,t,n){var r=n(29439),o=n(67294),a=n(48286),i=n(46667),c=n(9058);t.Z=function(){var e=(0,i.Z)(!1),t=(0,r.Z)(e,2),n=t[0],l=t[1],u=(0,c.e)(),d=(0,o.useRef)(null);return(0,a.Z)((function(){if(u)return d.current=null===d.current&&u.getRoot().getAttribute("after")>0,u.getRoot().updateAttribute("paused",n),function(){return u&&u.getRoot().updateAttribute("paused",d.current)}}),[n]),l}},37176:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(67294);function o(e){var t=(0,r.useRef)();return(0,r.useEffect)((function(){t.current=e})),t.current}},58206:function(e,t,n){function r(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"),r=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 o=document.getSelection(),a=o.rangeCount>0&&o.getRangeAt(0);t.append(n),n.select(),n.selectionStart=0,n.selectionEnd=e.length;let i=!1;try{i=document.execCommand("copy")}catch{}return n.remove(),a&&(o.removeAllRanges(),o.addRange(a)),r&&r.focus(),i}n.d(t,{Z:function(){return r}})}}]); \ No newline at end of file