import{j as e}from"./query-ATBhtd3K.js";import{r as x}from"./vendor-EnoIVk-c.js";import{u as p}from"./useAuth-CqtZE9nt.js";import{L as a}from"./routing-nZgBtxly.js";import{S as h,b as t,F as u}from"./en-IUV4ZXKH-BjYNERUx.js";import{C as j}from"./CookiePreferences-DxD0u90z.js";import{K as f}from"./privacy-QEJYcmMw.js";import{r as y,L as g}from"./routing-BgsGBuSe.js";import{u as b}from"./i18n-BYxb14hm.js";import"./AuthContext-CYne_gJM.js";import"./index-D4SjcYxX.js";function P(){const{isAuthenticated:i,isLoading:c}=p(),m=c?"loading":i?"authenticated":"unauthenticated",{t:l}=b(),s=(o,n)=>l(`Home.${o}`,n),d=(o,n)=>l(`Footer.${o}`,n),r=x.useContext(f);return e.jsxs("div",{className:"flex flex-col min-h-screen",children:[e.jsx("main",{className:"flex-1 flex flex-col items-center justify-center p-24",role:"main",children:e.jsx("div",{className:"z-10 max-w-5xl text-sm",children:m==="loading"?e.jsx("div",{className:"text-center",children:e.jsx("p",{className:"text-gray-600 dark:text-gray-300",children:s("loading")})}):e.jsxs("div",{className:"text-center space-y-8",children:[e.jsxs("section",{"aria-labelledby":"hero-heading",className:"py-8",children:[e.jsx("h1",{id:"hero-heading",className:"sr-only",children:"Semiont - AI-Powered Research Platform"}),e.jsx(h,{t:s,size:"xl",animated:!0,className:"mb-8"}),e.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 max-w-2xl mx-auto",children:s("description")})]}),e.jsx("div",{className:"flex gap-4 justify-center items-center flex-wrap",children:i?e.jsxs(e.Fragment,{children:[e.jsx(a,{to:"/know",className:t.primary.base,children:s("continueToKnowledgeBase")}),e.jsx(a,{to:"/about",className:t.secondary.base,children:s("learnMore")})]}):e.jsxs(e.Fragment,{children:[e.jsx(a,{to:"/about",className:t.secondary.base,children:s("learnMore")}),e.jsx(a,{to:"/auth/signup",className:t.primary.base,children:s("signUp")}),e.jsx(a,{to:"/auth/connect?callbackUrl=/know",className:t.primary.base,children:s("signIn")})]})})]})})}),e.jsx(u,{Link:g,routes:y,t:d,CookiePreferences:j,...(r==null?void 0:r.openKeyboardHelp)&&{onOpenKeyboardHelp:r.openKeyboardHelp}})]})}export{P as default};
//# sourceMappingURL=page-KDTjODvy.js.map
