/*! Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one or more contributor license agreements. * Licensed under the Elastic License 2.0; you may not use this file except in compliance with the Elastic License 2.0. */ (window.security_bundle_jsonpfunction=window.security_bundle_jsonpfunction||[]).push([[18],{292:function(e,t,n){"use strict";n.r(t),n.d(t,"OverwrittenSessionPage",(function(){return l})),n.d(t,"renderOverwrittenSessionPage",(function(){return f}));var s=n(3),r=n(2),u=n(8),i=n.n(u),o=n(6),a=n(5),c=n(95),d=n(94),j=n(0);function l({authc:e,basePath:t}){const[n,u]=Object(r.useState)(null);return Object(r.useEffect)((()=>{e.getCurrentUser().then((e=>u(e.username)))}),[e]),null==n?null:Object(j.jsx)(d.a,{title:Object(j.jsx)(o.FormattedMessage,{id:"xpack.security.overwrittenSession.title",defaultMessage:"You previously logged in as a different user."})},Object(j.jsx)(s.EuiButton,{href:Object(c.parseNext)(window.location.href,t.serverBasePath)},Object(j.jsx)(o.FormattedMessage,{id:"xpack.security.overwrittenSession.continueAsUserText",defaultMessage:"Continue as {username}",values:{username:n}})))}function f(e,{element:t,theme$:n},s){return i.a.render(Object(j.jsx)(e.Context,null,Object(j.jsx)(a.KibanaThemeProvider,{theme$:n},Object(j.jsx)(l,s))),t),()=>i.a.unmountComponentAtNode(t)}}}]);