import{az as m,aj as C,ao as t,aF as w,L as P,bU as s,o as r,am as p,W as l,E as u,p as A,r as d,v as n,f as h,e as g}from"./app-k0jcl5PQ.js";const x="default.switchAccount",c=P.encloseNamespace(x);function y(k){const o=m(C.currentUser());function f(){var i;const e=n.getCurrentAppLink(),L={application:g.DEFAULT,action:h.Default.CHALLENGE,params:{redirectUrl:n.getHref(e)}},U={application:g.DEFAULT,action:h.Default.LOG_OUT,params:{redirectUrl:n.getHref(L)}};r.logUserAction({id:(i=o.data)==null?void 0:i.id},{actionType:d.Click,location:A.Popup,entity:u.AppLink,workflowPhase:l.Complete,descriptor:p.SwitchAccount}),n.trigger(U)}function a(){var e;r.logUserAction({id:(e=o.data)==null?void 0:e.id},{actionType:d.Click,location:A.Popup,entity:u.AppLink,workflowPhase:l.Discard,descriptor:p.SwitchAccount}),k.closePopup()}return t.jsxs(w,{title:c("title"),closePopup:a,size:"md",children:[t.jsx("p",{children:c("message")}),t.jsxs(s,{children:[t.jsx(s.Cancel,{onClick:a}),t.jsx(s.Submit,{variant:"dark",text:c("cta"),onClick:f})]})]})}export{y as SwitchAccountPopupView};
//# sourceMappingURL=BnKHf493.chunk.js.map
