import{aI as d,du as a,v as m,f as s,e as r,ao as t,ba as c,aq as L,L as h,hg as A}from"./app-k0jcl5PQ.js";import{G as k}from"./ClXKCv7P.chunk.js";const g="launchpad.signInButtons",p=h.encloseNamespace(g);function I(e){d.useEffect(()=>{e.skipPrompt&&a.PageLoad(m.getHref(o))},[]);function u(){const i=a.GetQuery(),n={};if(e.customerId&&(n.customerId=e.customerId,delete i.customerId),e.skipPrompt&&delete i.skipPrompt,e.redirectUrl)n.redirectUrl=e.redirectUrl;else{const l=a.SerializeQueryParams(i);n.redirectUrl=a.GetCurrentPath()+(l?"?"+l:"")}return e.showSignUp&&(n.showSignUp=!0),{application:r.DEFAULT,action:s.Default.CHALLENGE,params:n}}const o=u();return t.jsxs(t.Fragment,{children:[t.jsx(c,{className:"btn btn-lg btn-dark w-100 mt-4",appLink:o,children:e.signInLabel??t.jsx(L,{namespace:g,phrase:e.pageAppLinkString?"signInToWatch":"signIn"})}),e.showJoinCode?t.jsx(c,{className:"btn btn-link info-link btn-lg w-100 mt-2",appLink:{application:r.LAUNCHPAD,action:s.Launchpad.JOIN_CLASSROOM_PROMPT},children:p("enterCode")}):t.jsxs(t.Fragment,{children:[t.jsx(c,{className:"btn btn-lg btn-outline-dark w-100 mt-3",appLink:{application:r.LAUNCHPAD,action:s.SignUp.SIGN_UP,params:{pageAppLinkString:e.pageAppLinkString}},children:p("signUp")}),t.jsx(k,{idps:e.globalIdps,attribution:A()})]})]})}export{I as S};
//# sourceMappingURL=BvU2qa66.chunk.js.map
