diff options
Diffstat (limited to 'web/gui/v2/39.46fddc6950ff28a3c1a3.chunk.js')
-rw-r--r-- | web/gui/v2/39.46fddc6950ff28a3c1a3.chunk.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/web/gui/v2/39.46fddc6950ff28a3c1a3.chunk.js b/web/gui/v2/39.46fddc6950ff28a3c1a3.chunk.js deleted file mode 100644 index 8e82254012..0000000000 --- a/web/gui/v2/39.46fddc6950ff28a3c1a3.chunk.js +++ /dev/null @@ -1 +0,0 @@ -!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]="1d9db2a0-53a0-4ea4-b71b-2912b9842498",e._sentryDebugIdIdentifier="sentry-dbid-1d9db2a0-53a0-4ea4-b71b-2912b9842498")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"42ec0d6f0c4ba08a06a38e1a5fa6664dccfae1bf"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[39],{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 l(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(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)(c(c({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),l=n(59978),c=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)(l.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,l.getColor)("textDescription")),m=(0,i.default)(l.Icon).withConfig({displayName:"command__StyledIcon",componentId:"sc-wnwmk3-1"})(["display:flex;align-self:flex-end;cursor:pointer;"]),p=(0,i.default)(l.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,l.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(l.Box,{position:"absolute",bottom:"8px",right:"8px"},a.createElement(m,{name:"copy",size:"small",color:"primary",onClick:(0,c.J)(u||t,{text:o})})))}},33244:function(e,t,n){var r=n(67294),o=n(59978),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,l=e.nodeName,c=(0,o.UO)().alertId;return r.createElement(i.Z,null,r.createElement(a.Z,{alertId:c,spaceId:t,roomId:n,nodeName:l,isWebview:!0}))}},62567:function(e,t,n){n.d(t,{Z:function(){return D}});var r=n(67294),o=n(59978),a=n(12008),i=n(78266),l=n(22648),c=n(37518),u=n(92253),d=n(80854),s=n(32071),f=n(39840),m=n(89250),p=n(4822),g=n(97945),b=n(71893),v=(0,b.default)(o.Flex).attrs({alignItems:"center"}).withConfig({displayName:"styled__StyledButtonContainer",componentId:"sc-1glv09p-0"})(["position:sticky;bottom:0;"]),y=function(e){var t=e.disabled,n=e.nodeId,a=e.alertId,i=e.context,l=e.lastStatusChange,c=e.onClose,u=e.isLoading,d=e.small,s=void 0!==d&&d,f=e.testid,b=void 0===f?"alertDetailsModal":f,y=(0,m.s0)(),h=(0,g.m3)(n),w=(0,r.useCallback)((function(){c&&c(),a?y(h,{state:{alertId:a}}):y(h)}),[h,a]),E=(0,p.TQ)(),x=(0,r.useCallback)((function(){var e=1e3*l;E({highlight:{after:e-6e4,before:e},correlation:!0}),w()}),[l,i,w,a]);return r.createElement(v,{justifyContent:"end",gap:2},r.createElement(o.Flex,{gap:2,justifyContent:"end"},r.createElement(o.Button,{small:s,label:"Run correlations",onClick:x,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:w,isLoading:u,disabled:u||t,width:s?"112px":"150px","data-testid":"".concat(b,"-goToNode-button"),"data-ga":"alert-modal::click-goto-chart::alerts-view"})))},h=(0,r.memo)(y),w=n(29876),E=n(20686),x=function(e){var t=e.alertId,n=e.context,a=e.name,i=e.nodeId,c=e.status,u=e.lastStatusChange,d=e.fullyLoaded,s=e.isWebview,f=(0,l.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(E.Z,{margin:f?null:[.5,0,0],type:"".concat(c,"AlertsTable"),"data-testid":"alertView-statusPill"},c),r.createElement(m,{"data-testid":"alertView-alertName"},a)),!1),r.createElement(o.Flex,{justifyContent:"between",alignItems:"center"},r.createElement(w.Z,{alertId:t}),!s&&d&&!f&&r.createElement(h,{lastStatusChange:u,alertId:t,context:n,name:a,nodeId:i,small:!0,testid:"alertView"})))},I=n(46189),C=n(63346),Z=b.default.img.withConfig({displayName:"sc-404__Illustration",componentId:"sc-4w81fg-0"})(["height:35%;width:35%;"]),k=b.default.div.withConfig({displayName:"sc-404__ButtonContainer",componentId:"sc-4w81fg-1"})(["margin:",";"],(0,o.getSizeBy)(4)),O=function(){var e="".concat(I.Z.assetsBaseURL,"/img/no-nodes-room.svg");return r.createElement(C.Ht,null,r.createElement(o.Flex,{column:!0,alignItems:"center",justifyItems:"center",justifyContent:"center",height:"100%",width:"100%",padding:[0,0,"10%"]},r.createElement(Z,{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(k,null,r.createElement(o.Button,{label:"Retry",icon:"reload"}))))},S=n(50709),j=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=e.nodeName,b=(0,c.Hm)("name"),v=(0,a.E5)(t),y=v.fullyLoaded,h=void 0!==y&&y,w=v.fullyLoading,E=void 0===w||w,I=v.info,Z=v.units,k=v.lastStatusChangeValue,D=v.lastStatusChange,T=v.context,R=v.instance,_=v.name,P=v.nodeId,N=v.status,B=v.lastUpdated,L=v.value;(0,a.yx)(t,{spaceId:n,roomId:m});var F=(0,f.pK)(L,Z),V=(0,f.pK)(k,Z),A=(0,l.m)();return r.createElement(C.ZP,{feature:"AlertDetailsView"},r.createElement(o.Flex,{column:!0,width:A?"100%":{max:280},padding:A?null:[0,0,10],background:A?"modalBackground":null},!p&&A&&r.createElement(j,null,r.createElement(o.Flex,{column:!0},r.createElement(o.H6,{color:"textLite"},"ROOM"),r.createElement(o.Text,{"data-testid":"alertView-mobile-roomName"},b))),r.createElement(o.Flex,{column:!0,padding:A?[3]:[0],overflow:A?"auto":"visible",gap:3},r.createElement(x,{alertId:t,context:T,status:N,name:_,nodeId:P,lastStatusChange:D,fullyLoaded:h,isWebview:p}),h?null:E?r.createElement(i.Z,{title:"Loading alert..."}):r.createElement(O,null),h&&I&&r.createElement(r.Fragment,null,r.createElement(d.Z,{iconName:"documentation"},"Alert Description"),r.createElement(o.Text,{"data-testid":"alertView-info"},I),r.createElement(S.Z,{alertId:t})),h&&r.createElement(u.Z,{id:t,context:T,instance:R,formattedLastValue:F,formattedLastStatusChangeValue:V,lastStatusChange:D,lastUpdated:B,isFormattedValueLoaded:h,nodeId:P,status:N,testid:"alertView",spaceId:n,roomId:m}),h&&r.createElement(s.Z,{id:t,nodeName:g,testid:"alertView"})),A&&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' dedicated page on a desktop device."))))}},91128:function(e,t,n){var r=n(29439),o=n(67294),a=n(48286),i=n(46667),l=n(9058);t.Z=function(){var e=(0,i.Z)(!1),t=(0,r.Z)(e,2),n=t[0],c=t[1],u=(0,l.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]),c}},52149:function(e,t,n){function r(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 r}})},49474:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(19013),o=n(13882);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t),i=n.getTime()-a.getTime();return i<0?-1:i>0?1:i}},936:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(84314),o=n(24262),a=n(49474),i=n(19013),l=n(52149);var c=n(8958),u=n(13882),d=6e4,s=1440,f=30*s,m=365*s;function p(e,t,n){var p,g,b;(0,u.Z)(2,arguments);var v=(0,r.j)(),y=null!==(p=null!==(g=null===n||void 0===n?void 0:n.locale)&&void 0!==g?g:v.locale)&&void 0!==p?p:c.Z;if(!y.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var h=(0,a.Z)(e,t);if(isNaN(h))throw new RangeError("Invalid time value");var w,E,x,I=(0,l.Z)((w=n,(0,l.Z)({},w)),{addSuffix:Boolean(null===n||void 0===n?void 0:n.addSuffix),comparison:h});h>0?(E=(0,i.default)(t),x=(0,i.default)(e)):(E=(0,i.default)(e),x=(0,i.default)(t));var C,Z=String(null!==(b=null===n||void 0===n?void 0:n.roundingMethod)&&void 0!==b?b:"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,O=x.getTime()-E.getTime(),S=O/d,j=(O-((0,o.Z)(x)-(0,o.Z)(E)))/d,D=null===n||void 0===n?void 0:n.unit;if("second"===(k=D?String(D):S<1?"second":S<60?"minute":S<s?"hour":j<f?"day":j<m?"month":"year")){var T=C(O/1e3);return y.formatDistance("xSeconds",T,I)}if("minute"===k){var R=C(S);return y.formatDistance("xMinutes",R,I)}if("hour"===k){var _=C(S/60);return y.formatDistance("xHours",_,I)}if("day"===k){var P=C(j/s);return y.formatDistance("xDays",P,I)}if("month"===k){var N=C(j/f);return 12===N&&"month"!==D?y.formatDistance("xYears",1,I):y.formatDistance("xMonths",N,I)}if("year"===k){var B=C(j/m);return y.formatDistance("xYears",B,I)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}},62554:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(67294),o=n(34513);function a(e,t,n){void 0===t&&(t=0),void 0===n&&(n=[]);var a=(0,o.Z)(e,t),i=a[0],l=a[1],c=a[2];return(0,r.useEffect)(c,n),[i,l]}},18127:function(e,t,n){var r=n(67294);t.Z=function(e){(0,r.useEffect)(e,[])}},43337:function(e,t,n){var r=n(67294);t.Z=function(e,t){var n=(0,r.useRef)((function(){}));(0,r.useEffect)((function(){n.current=e})),(0,r.useEffect)((function(){if(null!==t){var e=setInterval((function(){return n.current()}),t||0);return function(){return clearInterval(e)}}}),[t])}},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}},34513:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(67294);function o(e,t){void 0===t&&(t=0);var n=(0,r.useRef)(!1),o=(0,r.useRef)(),a=(0,r.useRef)(e),i=(0,r.useCallback)((function(){return n.current}),[]),l=(0,r.useCallback)((function(){n.current=!1,o.current&&clearTimeout(o.current),o.current=setTimeout((function(){n.current=!0,a.current()}),t)}),[t]),c=(0,r.useCallback)((function(){n.current=null,o.current&&clearTimeout(o.current)}),[]);return(0,r.useEffect)((function(){a.current=e}),[e]),(0,r.useEffect)((function(){return l(),c}),[t]),[i,c,l]}},89211:function(e,t,n){var r=n(67294),o=function(e,t){return"boolean"===typeof t?t:!e};t.Z=function(e){return(0,r.useReducer)(o,e)}},77823:function(e,t,n){var r=n(67294),o=n(18127);t.Z=function(e){var t=(0,r.useRef)(e);t.current=e,(0,o.Z)((function(){return function(){return 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 |