summaryrefslogtreecommitdiffstats
path: root/web/gui/v2/9360.5da34dbc533daf6b746b.chunk.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/gui/v2/9360.5da34dbc533daf6b746b.chunk.js')
-rw-r--r--web/gui/v2/9360.5da34dbc533daf6b746b.chunk.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/gui/v2/9360.5da34dbc533daf6b746b.chunk.js b/web/gui/v2/9360.5da34dbc533daf6b746b.chunk.js
new file mode 100644
index 0000000000..302280776d
--- /dev/null
+++ b/web/gui/v2/9360.5da34dbc533daf6b746b.chunk.js
@@ -0,0 +1 @@
+!function(){try{var n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new Error).stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="3e534b36-1ffd-45c0-b5d3-e513b248c35c",n._sentryDebugIdIdentifier="sentry-dbid-3e534b36-1ffd-45c0-b5d3-e513b248c35c")}catch(n){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"6f90bd8ea1ba6b9634ad70449708b82b6bb865f9"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[9360],{79360:function(n,e,t){t.r(e),t.d(e,{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)),i=t(15861),c=t(64687),u=t.n(c),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(93416)),s=t(13477),f=t(28234),d=t(18761);function p(n,e){var t="undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(!n)return;if("string"===typeof n)return v(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return v(n,e)}(n))||e&&n&&"number"===typeof n.length){t&&(n=t);var r=0,o=function(){};return{s:o,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},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,i=!0,c=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return i=n.done,n},e:function(n){c=!0,a=n},f:function(){try{i||null==t.return||t.return()}finally{if(c)throw a}}}}function v(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[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 n=(0,i.Z)(u().mark((function n(e,t){var r,o,a;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,d.XG)(t,e);case 3:return r=n.sent,n.abrupt("return",r.data);case 7:throw n.prev=7,n.t0=n.catch(0),o=n.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 n.stop()}}),n,null,[[0,7]])})));return function(e,t){return n.apply(this,arguments)}}(),y=function(n){return fetch(n,{redirect:"follow"}).then((function(){return n}))},b=function(n){var e,t="top;nowelcome=1",r=p(g.entries());try{for(r.s();!(e=r.n()).done;){var o=(0,a.Z)(e.value,2),i=o[0],c=o[1];"agentID"!==(i=decodeURIComponent(i))&&(t+=";".concat(encodeURIComponent(i)),""!==(c=decodeURIComponent(c))&&(t+="=".concat(encodeURIComponent(c))))}}catch(l){r.e(l)}finally{r.f()}var u=new URL(n);return"/"===u.pathname&&(u.pathname=""),u.hash=t,u.toString()},w=function(){var n=(0,s.jr)(),e=(0,o.TH)().search;return(0,r.useEffect)((function(){n&&function(n,e){if(g.has("agentID")){var t=decodeURIComponent(g.get("agentID")||"unknown_agent_id");h(t,n).catch((function(n){if("ErrVisitedNodeNotFound"!==(null===n||void 0===n?void 0:n.name))throw document.body.innerHTML="<p>".concat(null===n||void 0===n?void 0:n.message,"</p>"),n;m()})).then((function(n){var t,r=null===n||void 0===n||null===(t=n.urls)||void 0===t?void 0:t.map(b),o="https:"===location.protocol&&r.some((function(n){return!n.startsWith("https:")})),a=o?r.filter((function(n){return n.startsWith("https:")})):r;if(0!==a.length)return Promise.any(a.map(y)).then((function(){location.assign("url".concat(e))}),(function(){o?location.protocol="http:":document.body.innerHTML="\n <ul>\n ".concat(r.map((function(n){return'<li><a href="'.concat(encodeURIComponent(n),'" target="_blank" rel="noopener noreferrer">').concat(n,"</a></li>")})).join("\n"),"\n </ul>\n ")}));o?location.protocol="http:":m()}))}else document.body.innerHTML='<p>missing "agentID" query string parameter</p>'}(n,e||"")}),[n,e]),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(n,e,t){var r=t(1702),o=Error,a=r("".replace),i=String(new o("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,u=c.test(i);n.exports=function(n,e){if(u&&"string"==typeof n&&!o.prepareStackTrace)for(;e--;)n=a(n,c,"");return n}},5392:function(n,e,t){var r=t(68880),o=t(11060),a=t(22914),i=Error.captureStackTrace;n.exports=function(n,e,t,c){a&&(i?i(n,e):r(n,"stack",o(t,c)))}},22914:function(n,e,t){var r=t(47293),o=t(79114);n.exports=!r((function(){var n=new Error("a");return!("stack"in n)||(Object.defineProperty(n,"stack",o(1,7)),7!==n.stack)}))},58340:function(n,e,t){var r=t(70111),o=t(68880);n.exports=function(n,e){r(e)&&"cause"in e&&o(n,"cause",e.cause)}},56277:function(n,e,t){var r=t(41340);n.exports=function(n,e){return void 0===n?arguments.length<2?"":e:r(n)}},56967:function(n,e,t){var r=t(82109),o=t(47976),a=t(79518),i=t(27674),c=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(n,e){var t,r=o(b,this);i?t=i(new m,r?a(this):b):(t=r?this:u(b),l(t,g,"Error")),void 0!==e&&l(t,"message",v(e)),d(t,y,t.stack,1),arguments.length>2&&f(t,arguments[2]);var c=[];return p(n,h,{that:c}),l(t,"errors",c),t};i?i(y,m):c(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(n,e,t){t(56967)},34668:function(n,e,t){var r=t(82109),o=t(46916),a=t(19662),i=t(35005),c=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(n){var e=this,t=i("AggregateError"),r=c.f(e),s=r.resolve,d=r.reject,p=u((function(){var r=a(e.resolve),i=[],c=0,u=1,p=!1;l(n,(function(n){var a=c++,l=!1;u++,o(r,e,n).then((function(n){l||p||(p=!0,s(n))}),(function(n){l||p||(l=!0,i[a]=n,--u||d(new t(i,f)))}))})),--u||d(new t(i,f))}));return p.error&&d(p.value),r.promise}})},41817:function(n,e,t){var r=t(82109),o=t(19781),a=t(17854),i=t(1702),c=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 n=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),e=l(v,this)?new p(n):void 0===n?p():p(n);return""===n&&(g[e]=!0),e};d(m,p),m.prototype=v,v.constructor=m;var h="Symbol(description detection)"===String(p("description detection")),y=i(v.valueOf),b=i(v.toString),w=/^Symbol\((.*)\)[^)]+$/,E=i("".replace),S=i("".slice);f(v,"description",{configurable:!0,get:function(){var n=y(this);if(c(g,n))return"";var e=b(n),t=h?S(e,7,-1):E(e,w,"$1");return""===t?void 0:t}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}},32165:function(n,e,t){t(26800)("iterator")}}]); \ No newline at end of file