import{fy as a,bS as k,cu as d,bT as P,ao as i,df as T,az as l,fi as E,bN as F,bP as _,L as D,fe as N,p as A,bu as V,gY as q,d7 as z,hf as M,M as g,f0 as O,bw as B,dK as H}from"./app-k0jcl5PQ.js";import{g as Y}from"./BNuOjrBr.chunk.js";import{u as Z,A as G}from"./ClXKCv7P.chunk.js";import{R as J}from"./Ck2uhsHQ.chunk.js";import{L as K}from"./CIOPWeNI.chunk.js";import{S as $}from"./BvU2qa66.chunk.js";import{u as Q}from"./CZ0F-BpO.chunk.js";import"./BCKXZxoz.chunk.js";const W={[a.Pdf]:"PDF",[a.Image]:"Image",[a.PowerPoint]:"PowerPoint",[a.Document]:"Document",[a.Excel]:"Excel",[a.Zip]:"Archive",[a.File]:"File"},X={[a.Pdf]:"bg-light-red",[a.Image]:"bg-light-indigo",[a.PowerPoint]:"bg-light-orange",[a.Document]:"bg-light-blue",[a.Excel]:"bg-light-green",[a.Zip]:"bg-light-yellow",[a.File]:"bg-light-blue"};function ee(e){var t;const o=k.createUrl((t=d.getThumbnail(e.video))==null?void 0:t.url,{size:P.Small});return i.jsxs("div",{className:"d-flex align-items-center gap-3 mb-3 p-2 bg-light rounded-3",children:[i.jsx("img",{className:"rounded flex-shrink-0",src:o,alt:e.video.name,width:80}),i.jsxs("div",{className:"overflow-hidden",children:[d.isVideo(e.video)&&i.jsx(T,{type:"series",video:e.video,analyticsOptions:{},size:"sm"}),i.jsx("span",{className:"h6 mb-0 clamp-1 d-block",children:e.video.name})]})]})}const ie="_logo_11232_1",ae="_formContainer_11232_5",v={logo:ie,formContainer:ae},te="classrooms.loginLanding",c=D.encloseNamespace(te);function se(e,o){function t(){switch(o){case g.Video:return H.publicVideo(e);case g.Interactive:return B.publicInteractiveMetadata(e);case g.Clip:return O.publicClip(e);default:return null}}return l(t())}function ge(e){var b,f,x,I,L,C,j;function o(){return{id:e.objectId,app:M(e.objectType)}}const t=Z(),p=l((t==null?void 0:t.countryCode)&&G.globalIdps(t.countryCode,E.Primary));F(e.isLoginMetadata?{title:c("title"),description:c("description"),allowIndexing:!0,canonicalLink:_.getCanonicalLink()}:{title:c("title")});const{deepLink:y,showDeepLink:w,onClickDeepLink:S}=N(o(),A.Launchpad),{trialAppLinkString:R}=Q(),s=se(e.objectId,e.objectType),U=l(V.config()),n=l(e.resourceId&&J.publicResource(e.resourceId)),r=(f=(b=n.data)==null?void 0:b.metadata)==null?void 0:f.type,u=n.data&&r!==a.Zip?Y((x=U.data)==null?void 0:x.imageCdnUrl,n.data,{}):void 0,h=k.createUrl((I=d.getThumbnail(s.data))==null?void 0:I.url,{size:P.Large}),m=((L=n.data)==null?void 0:L.name)??((C=s.data)==null?void 0:C.name);return e.skipPrompt||s.isFetching||e.resourceId&&n.isFetching||!p.hasCompleted?i.jsx(i.Fragment,{}):i.jsx(K,{title:m,imageUrl:u??h,fallbackImageUrl:u?h:void 0,backgroundClass:r&&X[r],objectType:u?void 0:e.objectType,links:[{text:c("openInApp"),url:y,hide:!w,onClick:S}],children:i.jsxs("div",{className:`${v.formContainer} m-auto`,children:[i.jsx("div",{className:`${v.logo} mb-4 mx-auto`,children:i.jsx(q,{})}),n.data&&s.data&&i.jsx(ee,{video:s.data}),!!m&&i.jsxs("h1",{className:"h3",children:[r&&i.jsx(z,{children:W[r]}),!n.data&&d.isVideo(s.data)&&i.jsx(T,{type:"series",video:s.data,analyticsOptions:{},size:"sm"}),m]}),((j=s.data)==null?void 0:j.description)&&i.jsx("p",{className:"mb-0 clamp-3",children:s.data.description}),i.jsx($,{customerId:e.customerId,skipPrompt:e.skipPrompt,showJoinCode:e.showJoinCode,redirectUrl:e.redirectUrl,pageAppLinkString:R,showSignUp:e.showSignUp,globalIdps:p.data,signInLabel:n.data&&c("signInToDownload")})]})})}export{ge as LoginLandingView};
//# sourceMappingURL=CA-K4XlK.chunk.js.map
