const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Banners-C8og8x50.js","assets/vendor-react-wBh_31cN.js","assets/LazyMarkdown-pD-5e6Jq.js","assets/index-dNe6i2rS.js","assets/vendor-redux-CJZrIb6x.js","assets/vendor-router-D1GqFWiT.js","assets/vendor-utils-OeoE2qq_.js","assets/vendor-icons-BUUmD6ht.js","assets/vendor-radix-BRyWS4bQ.js","assets/vendor-grid-CeFlDWv4.js","assets/vendor-grid-DkFmqkxk.css","assets/index-CUZPX9ww.css","assets/callout-BFSXVeMz.js","assets/theme-colors-BFneJNsI.js"])))=>i.map(i=>d[i]);
import{ap as C,G as m,r as n,c as w}from"./index-dNe6i2rS.js";import{j as s,r as u}from"./vendor-react-wBh_31cN.js";import{C as d,a as p,b as h,c as j}from"./card-BeQtvmcJ.js";import{H as b}from"./Hero-ILcN0sPk.js";import{L}from"./LoginHelp-B1LeTy5S.js";import{u as _}from"./vendor-router-D1GqFWiT.js";const k=u.lazy(()=>w(()=>import("./Banners-C8og8x50.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),A=({banners:N,error:a,register:v,login:g,loginHelp:f,children:y})=>{var o,c,x,i;const t=_(),r="light",{data:e}=C(),l=((o=e==null?void 0:e[r])==null?void 0:o.logo)??((c=e==null?void 0:e.light)==null?void 0:c.logo)??((x=e==null?void 0:e.dark)==null?void 0:x.logo)??((i=e==null?void 0:e[r])==null?void 0:i.logoWithText);return s.jsxs("div",{className:"flex flex-col items-center mt-[50px]",children:[l?s.jsx("div",{className:"flex h-[120px] w-full py-[5px] px-5 mb-[60px] mt-[15px] justify-center",children:s.jsx("img",{src:l,className:"w-auto object-contain max-h-full",alt:""})}):s.jsxs(s.Fragment,{children:[s.jsx(b,{}),s.jsx("span",{className:"mb-[60px] mt-[15px] text-lg text-quartz-primary",children:"Hopsworks"})]}),s.jsx("div",{className:"w-[466px] mb-[15px]",children:s.jsx(u.Suspense,{fallback:null,children:s.jsx(k,{banners:N})})}),a&&s.jsx("div",{className:"w-[466px] mb-5 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive",children:a.message}),y,v&&s.jsxs(d,{className:"w-[466px] mb-5",children:[s.jsx(p,{className:"py-3",children:s.jsx(h,{className:"text-xs",children:"Don't have an account?"})}),s.jsx(j,{className:"pt-0",children:s.jsx(m,{variant:"secondary",onClick:()=>t(n.auth.register),children:"Register"})})]}),g&&s.jsxs(d,{className:"w-[466px] mb-5",children:[s.jsx(p,{className:"py-3",children:s.jsx(h,{className:"text-xs",children:"Already have an account?"})}),s.jsx(j,{className:"pt-0",children:s.jsx(m,{variant:"secondary",onClick:()=>t(n.auth.login),children:"Login"})})]}),f&&s.jsx("div",{className:"mb-[60px]",children:s.jsx(L,{})})]})};export{A as L};
