PageSourceSearch

https://stepup.one/assets/AcademyLogin-D53seg5C.js

js stepup.one collected 2026-09-25 10:12:12 UTC 5,899 bytes, 1 lines download raw bytes

1import{j as e,r as t}from"./client-BL7zgfj8.js";import{a as A}from"./landingCapture-DxzK8zra.js";import{a as E,u as I}from"./App-Cdvyyx8v.js";import{I as L}from"./ImageWithFallback-Cwu3-atr.js";import{U}from"./user-DYUUX5l2.js";import{M as F}from"./mail-B1-BV9-Q.js";import{L as P}from"./lock-CIdEpo4C.js";import{E as q}from"./eye-off-Cj8pF0VH.js";import{E as M}from"./eye-CcvMDqlw.js";import{A as O}from"./x-DhP5J42q.js";import"./main-C7ODmdF5.js";import"./public-brand-d_5TOvTf.js";import"./index-Dh9noGnp.js";function R(){const{session:u,loading:f,signIn:y,signUp:j,isClientUser:w,profile:N}=I(),[s,i]=t.useState("login"),[l,v]=t.useState(""),[c,p]=t.useState(""),[d,k]=t.useState(""),[m,S]=t.useState(!1),[g,a]=t.useState(""),[b,o]=t.useState(""),[h,x]=t.useState(!1);if(f)return e.jsx("div",{className:"min-h-screen bg-white flex items-center justify-center",children:e.jsx("div",{className:"w-5 h-5 border-2 border-gray-200 border-t-black rounded-full animate-spin"})});if(u)return u.user&&!N?e.jsx("div",{className:"min-h-screen bg-white flex items-center justify-center",children:e.jsx("div",{className:"w-5 h-5 border-2 border-gray-200 border-t-black rounded-full animate-spin"})}):e.jsx(A,{to:w?"/academy/cockpit":"/academy",replace:!0});const C=async r=>{if(r.preventDefault(),a(""),o(""),x(!0),s==="login"){const{error:n}=await y(l,c);n&&a(n)}else{if(!d.trim()){a("Full name is required."),x(!1);return}const{error:n}=await j(l,c,d);n?a(n):(o("Account created. Check your email for confirmation, then sign in."),i("login"),p(""))}x(!1)};return e.jsx("div",{className:"min-h-screen bg-white font-sans flex items-center justify-center px-6",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"text-center mb-10",children:[e.jsx(L,{src:"https://oksdwviyzcvdshpqunjp.supabase.co/storage/v1/object/public/Images/SUO%20Long%20White%20V1.png",alt:"StepUp.One",className:"h-16 w-auto mx-auto mb-8"}),e.jsx("p",{className:"text-[10px] font-mono text-gray-400 tracking-widest uppercase mb-3",children:"Internal Learning Portal"}),e.jsx("h1",{className:"text-2xl md:text-3xl font-serif italic text-black mb-2",children:"StepUp Academy"}),e.jsx("p",{className:"text-gray-400 font-light text-sm",children:"Strategy training and certification for all team members."})]}),e.jsxs("div",{className:"flex mb-8 border-b border-gray-100",children:[e.jsx("button",{type:"button",onClick:()=>{i("login"),a(""),o("")},className:`flex-1 pb-3 text-xs font-mono tracking-widest uppercase transition-all ${s==="login"?"text-black border-b-2 border-black":"text-gray-300 hover:text-gray-500"}`,children:"Sign In"}),e.jsx("button",{type:"button",onClick:()=>{i("register"),a(""),o("")},className:`flex-1 pb-3 text-xs font-mono tracking-widest uppercase transition-all ${s==="register"?"text-black border-b-2 border-black":"text-gray-300 hover:text-gray-500"}`,children:"Create Account"})]}),e.jsxs("form",{onSubmit:C,className:"space-y-5",children:[s==="register"&&e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-4 top-1/2 -translate-y-1/2",children:e.jsx(U,{className:"w-4 h-4 text-gray-300"})}),e.jsx("input",{type:"text",value:d,onChange:r=>k(r.target.value),placeholder:"Full name",className:"w-full pl-12 pr-4 py-4 border border-gray-200 rounded-sm font-mono text-sm tracking-wider bg-white text-black placeholder-gray-300 outline-none transition-all focus:border-black"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-4 top-1/2 -translate-y-1/2",children:e.jsx(F,{className:"w-4 h-4 text-gray-300"})}),e.jsx("input",{type:"email",value:l,onChange:r=>v(r.target.value),placeholder:"Email address",required:!0,className:"w-full pl-12 pr-4 py-4 border border-gray-200 rounded-sm font-mono text-sm tracking-wider bg-white text-black placeholder-gray-300 outline-none transition-all focus:border-black"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-4 top-1/2 -translate-y-1/2",children:e.jsx(P,{className:"w-4 h-4 text-gray-300"})}),e.jsx("input",{type:m?"text":"password",value:c,onChange:r=>p(r.target.value),placeholder:"Password",required:!0,minLength:6,className:"w-full pl-12 pr-12 py-4 border border-gray-200 rounded-sm font-mono text-sm tracking-wider bg-white text-black placeholder-gray-300 outline-none transition-all focus:border-black"}),e.jsx("button",{type:"button",onClick:()=>S(!m),className:"absolute right-4 top-1/2 -translate-y-1/2 text-gray-300 hover:text-gray-500 transition-colors",children:m?e.jsx(q,{className:"w-4 h-4"}):e.jsx(M,{className:"w-4 h-4"})})]}),g&&e.jsx("div",{className:"text-red-500 text-xs font-mono tracking-wider bg-red-50 border border-red-100 rounded-sm px-4 py-3",children:g}),b&&e.jsx("div",{className:"text-green-600 text-xs font-mono tracking-wider bg-green-50 border border-green-100 rounded-sm px-4 py-3",children:b}),e.jsx("button",{type:"submit",disabled:h,className:"w-full bg-black text-white py-4 rounded-sm font-mono text-xs tracking-widest uppercase transition-all hover:bg-gray-800 disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",children:h?e.jsx("div",{className:"w-4 h-4 border-2 border-gray-500 border-t-white rounded-full animate-spin"}):e.jsxs(e.Fragment,{children:[s==="login"?"Sign In":"Create Account",e.jsx(O,{className:"w-3 h-3"})]})})]}),s==="register"&&e.jsx("p",{className:"text-center text-[10px] font-mono text-gray-300 tracking-wider up
1percase mt-6",children:"Restricted to company email domains only"}),e.jsx("div",{className:"mt-10 text-center",children:e.jsx("p",{className:"text-[10px] font-mono text-gray-300 tracking-wider uppercase border border-gray-100 rounded-sm px-4 py-2 inline-block",children:"Not indexed. Not linked. Internal only."})})]})})}function Y(){return e.jsx(E,{children:e.jsx(R,{})})}export{Y as AcademyLogin,Y as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.