summaryrefslogtreecommitdiffstats
path: root/web/gui/v2/9360.9f035cf1aaa98e9caa0b.chunk.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/gui/v2/9360.9f035cf1aaa98e9caa0b.chunk.js')
-rw-r--r--web/gui/v2/9360.9f035cf1aaa98e9caa0b.chunk.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/gui/v2/9360.9f035cf1aaa98e9caa0b.chunk.js b/web/gui/v2/9360.9f035cf1aaa98e9caa0b.chunk.js
new file mode 100644
index 000000000..57b71453d
--- /dev/null
+++ b/web/gui/v2/9360.9f035cf1aaa98e9caa0b.chunk.js
@@ -0,0 +1 @@
+!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="38d3a8c4-d433-4a45-9ca9-7e0c6de1a71a",e._sentryDebugIdIdentifier="sentry-dbid-38d3a8c4-d433-4a45-9ca9-7e0c6de1a71a")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"0c0a7a41a0e7ecb4870dbce38dbd7d5e0913bb7f"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[9360],{79360:function(e,n,t){t.r(n),t.d(n,{default:function(){return E}});var r=t(67294),o=t(89250),a=(t(47042),t(91038),t(77601),t(82526),t(41817),t(32165),t(29439)),c=t(15861),i=t(64687),u=t.n(i),l=(t(66992),t(41539),t(78783),t(33948),t(41637),t(74916),t(64765),t(88674),t(60285),t(39714),t(21249),t(57640),t(9924),t(64211),t(2490),t(41874),t(23157),t(57327),t(88449),t(59849),t(9170),t(34668),t(92222),t(59978)),s=t(13477),f=t(28234),d=t(18761);function p(e,n){var t="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"===typeof e)return v(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return v(e,n)}(e))||n&&e&&"number"===typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return c=e.done,e},e:function(e){i=!0,a=e},f:function(){try{c||null==t.return||t.return()}finally{if(i)throw a}}}}function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var g=new URLSearchParams(window.location.search.substr(1)),m=function(){location.assign("https://registry.my-netdata.io/goto-host-from-alarm.html".concat(location.search))},h=function(){var e=(0,c.Z)(u().mark((function e(n,t){var r,o,a;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,d.XG)(t,n);case 3:return r=e.sent,e.abrupt("return",r.data);case 7:throw e.prev=7,e.t0=e.catch(0),o=e.t0.response.data,document.body.innerHTML="".concat((0,f.r)(null===o||void 0===o?void 0:o.errorMsgKey),"</br></br>Getting you back to Netdata..."),(a=new Error((0,f.r)(null===o||void 0===o?void 0:o.errorMsgKey)||"Redirect error")).name="".concat((null===o||void 0===o?void 0:o.errorMsgKey)||"Server error"),a.stack="".concat((null===o||void 0===o?void 0:o.errorCode)||"Redirect error code"),a;case 15:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(n,t){return e.apply(this,arguments)}}(),y=function(e){return fetch(e,{redirect:"follow"}).then((function(){return e}))},b=function(e){var n,t="top;nowelcome=1",r=p(g.entries());try{for(r.s();!(n=r.n()).done;){var o=(0,a.Z)(n.value,2),c=o[0],i=o[1];"agentID"!==(c=decodeURIComponent(c))&&(t+=";".concat(encodeURIComponent(c)),""!==(i=decodeURIComponent(i))&&(t+="=".concat(encodeURIComponent(i))))}}catch(l){r.e(l)}finally{r.f()}var u=new URL(e);return"/"===u.pathname&&(u.pathname=""),u.hash=t,u.toString()},w=function(){var e=(0,s.jr)(),n=(0,o.TH)().search;return(0,r.useEffect)((function(){e&&function(e,n){if(g.has("agentID")){var t=decodeURIComponent(g.get("agentID")||"unknown_agent_id");h(t,e).catch((function(e){if("ErrVisitedNodeNotFound"!==(null===e||void 0===e?void 0:e.name))throw document.body.innerHTML="<p>".concat(null===e||void 0===e?void 0:e.message,"</p>"),e;m()})).then((function(e){var t,r=null===e||void 0===e||null===(t=e.urls)||void 0===t?void 0:t.map(b),o="https:"===location.protocol&&r.some((function(e){return!e.startsWith("https:")})),a=o?r.filter((function(e){return e.startsWith("https:")})):r;if(0!==a.length)return Promise.any(a.map(y)).then((function(){location.assign("url".concat(n))}),(function(){o?location.protocol="http:":document.body.innerHTML="\n <ul>\n ".concat(r.map((function(e){return'<li><a href="'.concat(encodeURIComponent(e),'" target="_blank" rel="noopener noreferrer">').concat(e,"</a></li>")})).join("\n"),"\n </ul>\n ")}));o?location.protocol="http:":m()}))}else document.body.innerHTML='<p>missing "agentID" query string parameter</p>'}(e,n||"")}),[e,n]),r.createElement(l.H4,null,"Redirecting...")},E=function(){return r.createElement(o.Z5,null,r.createElement(o.AW,{path:"/redirects/alerts",element:r.createElement(w,null)}),r.createElement(o.AW,{path:"/redirects/alarms",element:r.createElement(w,null)})," ")}},11060:function(e,n,t){var r=t(1702),o=Error,a=r("".replace),c=String(new o("zxcasd").stack),i=/\n\s*at [^:]*:[^\n]*/,u=i.test(c);e.exports=function(e,n){if(u&&"string"==typeof e&&!o.prepareStackTrace)for(;n--;)e=a(e,i,"");return e}},5392:function(e,n,t){var r=t(68880),o=t(11060),a=t(22914),c=Error.captureStackTrace;e.exports=function(e,n,t,i){a&&(c?c(e,n):r(e,"stack",o(t,i)))}},22914:function(e,n,t){var r=t(47293),o=t(79114);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},58340:function(e,n,t){var r=t(70111),o=t(68880);e.exports=function(e,n){r(n)&&"cause"in n&&o(e,"cause",n.cause)}},56277:function(e,n,t){var r=t(41340);e.exports=function(e,n){return void 0===e?arguments.length<2?"":n:r(e)}},56967:function(e,n,t){var r=t(82109),o=t(47976),a=t(79518),c=t(27674),i=t(99920),u=t(70030),l=t(68880),s=t(79114),f=t(58340),d=t(5392),p=t(20408),v=t(56277),g=t(5112)("toStringTag"),m=Error,h=[].push,y=function(e,n){var t,r=o(b,this);c?t=c(new m,r?a(this):b):(t=r?this:u(b),l(t,g,"Error")),void 0!==n&&l(t,"message",v(n)),d(t,y,t.stack,1),arguments.length>2&&f(t,arguments[2]);var i=[];return p(e,h,{that:i}),l(t,"errors",i),t};c?c(y,m):i(y,m,{name:!0});var b=y.prototype=u(m.prototype,{constructor:s(1,y),message:s(1,""),name:s(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:y})},9170:function(e,n,t){t(56967)},34668:function(e,n,t){var r=t(82109),o=t(46916),a=t(19662),c=t(35005),i=t(78523),u=t(12534),l=t(20408),s=t(80612),f="No one promise resolved";r({target:"Promise",stat:!0,forced:s},{any:function(e){var n=this,t=c("AggregateError"),r=i.f(n),s=r.resolve,d=r.reject,p=u((function(){var r=a(n.resolve),c=[],i=0,u=1,p=!1;l(e,(function(e){var a=i++,l=!1;u++,o(r,n,e).then((function(e){l||p||(p=!0,s(e))}),(function(e){l||p||(l=!0,c[a]=e,--u||d(new t(c,f)))}))})),--u||d(new t(c,f))}));return p.error&&d(p.value),r.promise}})},41817:function(e,n,t){var r=t(82109),o=t(19781),a=t(17854),c=t(1702),i=t(92597),u=t(60614),l=t(47976),s=t(41340),f=t(47045),d=t(99920),p=a.Symbol,v=p&&p.prototype;if(o&&u(p)&&(!("description"in v)||void 0!==p().description)){var g={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),n=l(v,this)?new p(e):void 0===e?p():p(e);return""===e&&(g[n]=!0),n};d(m,p),m.prototype=v,v.constructor=m;var h="Symbol(description detection)"===String(p("description detection")),y=c(v.valueOf),b=c(v.toString),w=/^Symbol\((.*)\)[^)]+$/,E=c("".replace),S=c("".slice);f(v,"description",{configurable:!0,get:function(){var e=y(this);if(i(g,e))return"";var n=b(e),t=h?S(n,7,-1):E(n,w,"$1");return""===t?void 0:t}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}},32165:function(e,n,t){t(26800)("iterator")}}]); \ No newline at end of file