summaryrefslogtreecommitdiffstats
path: root/web/gui/v2/282.b554eb54189aafeebb91.chunk.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--web/gui/v2/282.b554eb54189aafeebb91.chunk.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/web/gui/v2/282.b554eb54189aafeebb91.chunk.js b/web/gui/v2/282.b554eb54189aafeebb91.chunk.js
deleted file mode 100644
index 22c0021e3..000000000
--- a/web/gui/v2/282.b554eb54189aafeebb91.chunk.js
+++ /dev/null
@@ -1 +0,0 @@
-!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]="fcb40b35-7535-4f79-b274-62f532f7a6b3",e._sentryDebugIdIdentifier="sentry-dbid-fcb40b35-7535-4f79-b274-62f532f7a6b3")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"068845a823c962888381794c354a8f6b6e263031"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[282],{38282:function(e,n,t){t.r(n);t(66992),t(41539),t(88674),t(78783),t(33948);var o=t(67294),r=t(2145),i=t(64487),a=t(92501),d=t(13477),l=t(39469),u=t(7335),f=t(52971),c=t(85456),s=t(78266),b=(0,r.Z)((function(){return Promise.all([t.e(370),t.e(442)]).then(t.bind(t,23442))}),"Layout");n.default=(0,a.Pf)((function(){var e=(0,d.Iy)("isLoaded"),n=(0,d.Iy)("email"),t=(0,c.gs)(f.Ew.performanceCookies.id),r=(0,d.jr)(),a=(0,d.Iy)("isAnonymous"),g=(0,l.H)();return(0,o.useEffect)((function(){a||g()}),[a]),(0,o.useEffect)((function(){if(r&&n&&t)try{i.av({id:r,email:n})}catch(e){console.warn("Sentry: unable to set user")}}),[n,t,r]),(0,u.aG)(r),(0,l.Z)(),o.createElement(o.Suspense,{fallback:o.createElement(s.Z,null)},o.createElement(b,{isUserLoaded:e}))}))},39469:function(e,n,t){t.d(n,{H:function(){return c}});var o=t(29439),r=t(67294),i=t(4480),a=t(74059),d=t(28234),l=t(18761),u=(0,i.xu)({key:"currentAgentBearerAtom",default:{token:"",expiration:null,bearerProtection:!0,error:""}}),f=(0,i.xu)({key:"checkAgentBearer",default:function(){return 1}}),c=function(){var e,n=null===(e=window.localNetdataRegistry)||void 0===e?void 0:e.machineGuid;return(0,i.Zl)(f(n))};n.Z=function(){var e,n,t,c=(0,a.Q6)(),s=null===(e=window.localNetdataRegistry)||void 0===e?void 0:e.nd,b=null===(n=window.localNetdataRegistry)||void 0===n?void 0:n.mg,g=null===(t=window.localNetdataRegistry)||void 0===t?void 0:t.claimId,y=(0,i.FV)(f(b)),w=(0,o.Z)(y,2),v=w[0],m=w[1],k=(0,i.FV)(u({nodeId:s,machineGuid:b,claimId:g})),p=(0,o.Z)(k,2),h=p[0],E=h.token,I=h.expiration,_=h.bearerProtection,Z=h.error,A=p[1];return(0,r.useEffect)((function(){b&&c&&(I&&1e3*I<(new Date).getTime()-3600||(0,l.op)(s,b,g).then((function(e){var n=e.data;A(n),localStorage.setItem("agentJWT",null===n||void 0===n?void 0:n.token)})).catch((function(e){A({token:"",expiration:null,bearerProtection:!0,error:(0,d.r)(null===e||void 0===e?void 0:e.errorMsgKey)||(null===e||void 0===e?void 0:e.errorMessage)||"Something went wrong"})})))}),[b,I,v,c]),{token:E,bearerProtection:_,checkAgain:m,error:Z}}}}]); \ No newline at end of file