(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{29:function(o,t,s){"use strict";s.r(t),s.d(t,"ssoLogout",(function(){return e}));const e=async o=>{const t="".concat(window.location.pathname,"-sso-logout-client");let s=[];if(o.logoutUrls||(s=JSON.parse(sessionStorage.getItem("".concat(t,"-responses")))||[],s.push(o),o=JSON.parse(sessionStorage.getItem("".concat(t,"-config")))),o.logoutUrls.length){const e=o.logoutUrls.pop();return sessionStorage.setItem("".concat(t,"-config"),JSON.stringify(o)),sessionStorage.setItem("".concat(t,"-responses"),JSON.stringify(s)),void(window.location=e)}const e=s.reduce((o,t,s)=>{var e,n;return String(null===(e=t.logoutStatus)||void 0===e||null===(n=e.value)||void 0===n?void 0:n.Code).match(/Success/)||o.push(t.relyingParty.label),o},[]);errors.length&&alert("Failed to logout from "+e.join(" and ")),sessionStorage.removeItem("".concat(t,"-config")),sessionStorage.removeItem("".concat(t,"-responses")),window.location=o.finalLocation}}}]);
//# sourceMappingURL=logout-8071bd2b38135d088743-FAT.js.map