import{az as f,bu as x,bN as P,L as j,gi as y,b$ as L,ao as e,gY as b,aq as i,aR as C,gT as t,du as v,v as N,f as U,e as E,co as T}from"./app-k0jcl5PQ.js";const I="_contentWidth_1rpbc_1",S={contentWidth:I},a="embed.pluginLogin",k=j.encloseNamespace(a);function H(n){const c=f(x.config());P({title:k("title")});const o=n.params.consumerKey===y.MicrosoftTeams,{handlePopupEmbed:r}=L();function l(){if(!t.canUseCookies()&&!o){u();return}t.renderSignInPopup({customerId:n.params.customerId,consumerKey:n.params.consumerKey,shareId:void 0,onComplete:()=>v.PageLoad(N.getHref({application:E.DEFAULT,action:U.Default.PLUGIN_SELECT,params:n.params}))})}function u(){t.renderSelectVideoPopup({launchUrl:c.data.launchUrl,queryParams:n.params,onComplete:m})}function m(s){if(!s||T.isEmpty(s))return;const{consumerKey:p,lmsType:d,ltiReturnUrl:g,submitUrl:h}=n.params;r(s,{consumerKey:p,lmsType:d,ltiReturnUrl:g,submitUrl:h})}return e.jsx("div",{className:"d-flex justify-content-center align-items-center vh-100",children:e.jsxs("div",{className:`${S.contentWidth} d-flex align-items-center flex-column justify-content-center p-4`,children:[e.jsx("div",{className:"px-4",children:e.jsx(b,{})}),e.jsx("p",{className:"my-3",children:e.jsx(i,{namespace:a,phrase:"tagline"})}),e.jsx(C,{variant:"dark",className:"btn-lg w-100",onClick:l,children:e.jsx(i,{namespace:a,phrase:"signIn"})})]})})}export{H as PluginLoginView};
//# sourceMappingURL=C4Ad8ClW.chunk.js.map
