import{iF as c,iv as h,ig as u,fH as s,bo as j,cB as x,h0 as g,aY as p,I as f,b4 as v,bU as t,aD as n,ck as a,ah as m,jG as w,cG as b,bn as C,jD as S,jB as y}from"./strapi-ye6TfKul.js";import{S as L}from"./SSOProviders-C144dvHl.js";const k=()=>{const d=c(),{formatMessage:i}=h(),{isLoading:e,data:r=[]}=u(void 0,{skip:!window.strapi.features.isEnabled(window.strapi.features.SSO)}),l=()=>{d("/auth/login")};return!window.strapi.features.isEnabled(window.strapi.features.SSO)||!e&&r.length===0?s.jsx(j,{to:"/auth/login"}):s.jsx(x,{children:s.jsxs(g,{children:[s.jsxs(p,{children:[s.jsxs(f,{children:[s.jsx(v,{}),s.jsx(t,{paddingTop:6,paddingBottom:1,children:s.jsx(n,{tag:"h1",variant:"alpha",children:i({id:"Auth.form.welcome.title"})})}),s.jsx(t,{paddingBottom:7,children:s.jsx(n,{variant:"epsilon",textColor:"neutral600",children:i({id:"Auth.login.sso.subtitle"})})})]}),s.jsxs(a,{direction:"column",alignItems:"stretch",gap:7,children:[e?s.jsx(a,{justifyContent:"center",children:s.jsx(m,{children:i({id:"Auth.login.sso.loading"})})}):s.jsx(L,{providers:r}),s.jsxs(a,{children:[s.jsx(o,{}),s.jsx(t,{paddingLeft:3,paddingRight:3,children:s.jsx(n,{variant:"sigma",textColor:"neutral600",children:i({id:"or"})})}),s.jsx(o,{})]}),s.jsx(w,{fullWidth:!0,size:"L",onClick:l,children:i({id:"Auth.form.button.login.strapi"})})]})]}),s.jsx(a,{justifyContent:"center",children:s.jsx(t,{paddingTop:4,children:s.jsx(b,{tag:C,to:"/auth/forgot-password",children:s.jsx(n,{variant:"pi",children:i({id:"Auth.link.forgot-password"})})})})})]})})},o=S(y)`
  flex: 1;
`,F={providers:k};export{F as FORMS};
