PageSourceSearch

https://domdhi.com/assets/login-B_cLYbp9.js

js domdhi.com collected 2026-10-02 01:27:57 UTC 11,025 bytes, 1 lines download raw bytes

1import{B as e,H as t,I as n,N as r,O as i,W as a,i as o,n as s,w as c,z as l}from"./chunk-6CSD65Y2-D6zLy3dp.js";import{t as u}from"./jsx-runtime-BGLTrfZy.js";import{t as d}from"./button-DrB63Wrb.js";import{t as f}from"./route-error-oT57U1b3.js";import{t as p}from"./input-BBoqvRvE.js";import{t as m}from"./label-CbjB0egX.js";var h=a(t(),1),g=u();function _(){return[{title:`Domdhi.OS | Access Terminal`}]}var v=e(function(){let e=n(),t=`An unexpected error occurred`,r=``;return c(e)?(t=e.status===404?`Page not found`:`Something went wrong`,r=f(e)):e instanceof Error&&(t=`Error loading login`,r=e.message),(0,g.jsxs)(`div`,{className:`bg-panel border-2 border-rose shadow-brutal-rose p-8 relative m-6`,children:[(0,g.jsx)(`div`,{className:`absolute -top-3 left-4 bg-rose text-black text-[10px] font-bold px-2 border-2 border-black`,children:`SYSTEM_ERROR`}),(0,g.jsx)(`h1`,{className:`font-mono font-bold text-2xl text-rose mb-2`,children:t}),r&&(0,g.jsx)(`p`,{className:`text-gray-400 text-sm`,children:r})]})}),y=l(function({loaderData:e}){let{tenant:t}=e;return t?(0,g.jsx)(b,{tenant:t}):(0,g.jsx)(x,{})});function b({tenant:e}){let t=i(),n=r().state===`submitting`,[a,c]=(0,h.useState)(`password`),l=e.branding.business_name||e.name,u={"--tenant-primary":e.branding.primary_color??`#0076c0`,"--tenant-accent":e.branding.accent_color??`#00FF9F`};return t?.success?(0,g.jsx)(`div`,{style:u,className:`min-h-screen bg-gray-50 flex items-center justify-center p-4`,children:(0,g.jsxs)(`div`,{className:`w-full max-w-sm bg-white border border-gray-200 rounded-lg shadow-sm p-8 text-center space-y-4`,children:[(0,g.jsx)(`div`,{className:`w-12 h-12 mx-auto rounded-full bg-green-100 flex items-center justify-center`,children:(0,g.jsx)(`svg`,{className:`w-6 h-6 text-green-600`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,children:(0,g.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75`})})}),(0,g.jsx)(`h2`,{className:`text-lg font-semibold text-gray-900`,children:`Check Your Email`}),(0,g.jsx)(`p`,{className:`text-sm text-gray-500`,children:t.message}),(0,g.jsx)(`button`,{type:`button`,onClick:()=>window.location.reload(),className:`text-sm text-[var(--tenant-primary)] hover:underline`,children:`Back to login`})]})}):(0,g.jsx)(`div`,{style:u,className:`min-h-screen bg-gray-50 flex items-center justify-center p-4`,children:(0,g.jsxs)(`div`,{className:`w-full max-w-sm space-y-6`,children:[(0,g.jsxs)(`div`,{className:`text-center space-y-2`,children:[e.branding.logo_url&&(0,g.jsx)(`img`,{src:e.branding.logo_url,alt:l,className:`h-12 mx-auto mb-3`}),(0,g.jsx)(`h1`,{className:`text-2xl font-bold text-gray-900`,children:l}),(0,g.jsx)(`p`,{className:`text-sm text-gray-500`,children:`Sign in to continue`})]}),(0,g.jsxs)(`div`,{className:`bg-white border border-gray-200 rounded-lg shadow-sm p-6 space-y-5`,children:[(0,g.jsxs)(s,{method:`post`,className:`space-y-4`,children:[(0,g.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,g.jsx)(`label`,{htmlFor:`email`,className:`block text-sm font-medium text-gray-700`,children:`Email`}),(0,g.jsx)(p,{id:`email`,name:`email`,type:`email`,accent:`amethyst`,required:!0,autoComplete:`email`,placeholder:`[email protected]`,className:`border-gray-300 bg-white text-gray-900`})]}),a===`password`&&(0,g.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,g.jsx)(`label`,{htmlFor:`password`,className:`block text-sm font-medium text-gray-700`,children:`Password`}),(0,g.jsx)(p,{id:`password`,name:`password`,type:`password`,accent:`amethyst`,required:!0,autoComplete:`current-password`,className:`border-gray-300 bg-white text-gray-900`})]}),t?.error&&(0,g.jsx)(`div`,{className:`rounded-md bg-red-50 border border-red-200 px-3 py-2`,children:(0,g.jsx)(`p`,{className:`text-sm text-red-800`,children:t.error})}),(0,g.jsx)(`button`,{type:`submit`,name:`intent`,value:a===`password`?`login`:`magic_link`,disabled:n,className:`w-full py-2.5 rounded-lg font-semibold text-white bg-[var(--tenant-primary)] hover:opacity-90 disabled:opacity-50 transition-colors`,children:n?`Signing in...`:a===`password`?`Sign In`:`Send Magic Link`})]}),(0,g.jsx)(`div`,{className:`text-center border-t border-gray-100 pt-4`,children:(0,g.jsx)(`button`,{type:`button`,onClick:()=>c(a===`password`?`magic_link`:`password`),className:`text-sm text-gray-500 hover:text-gray-900 transition-colors`,children:a===`password`?`Sign in with a magic link instead`:`Sign in with password instead`})})]}),(0,g.jsx)(`div`,{className:`text-center`,children:(0,g.jsxs)(`p`,{className:`text-sm text-gray-500`,children:[`Don't have an account?`,` `,(0,g.jsx)(o,{to:`/signup`,className:`font-medium text-[var(--tenant-primary)] hover:underline`,children:`Request access`})]})})]})})}function x(){let e=i(),t=r().state===`submitting`,[n,a]=(0,h.useState)(`login`);return e?.success?(0,g.jsxs)(`div`,{className:`bg-void text-white font-mono min-h-screen flex flex-col items-center justify-center p-4 relative overflow-hidden`,children:[(0,g.jsx)(`div`,{className:`scanlines`}),(0,g.jsx)(`div`,{className:`fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-emerald/20 blur-[120px] rounded-full pointer-events-none z-0`}),(0,g.jsx)(`div`,{className:`relative z-10 w-full max-w-sm space-y-8 bg-panel p-8 border-2 border-emerald/50 shadow-[8px_8px_0_0_rgba(0,255,159,0.1)]`,children:(0,g.jsxs)(`div`,{className:`text-center space-y-4`,children:[(0,g.jsx)(`h1`,{className:`text-3xl font-display font-bold tracking-tight uppercase text-emerald`,children:`Signal_Sent`}),(0,g.jsxs)(`p`,{className:`text-xs font-mono text-gray-400 uppercase tracking-widest leading-relaxed`,children:[`A confirmation link has been transmitted to your inbox.`,(0,g.jsx)(`br`,{}),(0,g.jsx)(`span`,{className:`text-white block mt-2`,children:`Verify your identity to proceed.`})]})]})})]}):(0,g.jsxs)(`div`,{className:`bg-void text-white font-mono min-h-screen flex flex-col items-center justify-center p-4 relative overflow-hidden`,children:[(0,g.jsx)(`div`,{className:`scanlines`}),(0,g.jsx)(`div`,{className:`fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-amethyst/20 blur-[120px] rounded-full pointer-events-none z-0`}),(0,g.jsxs)(`div`,{className:`relative z-10 w-full max-w-sm space-y-8 bg-panel p-8 border-2 border-white/10 shadow-[8px_8px_0_0_rgba(255,255,255,0.1)]`,children:[(0,g.jsxs)(`div`,{className:`text-center space-y-2`,children:[(0,g.jsx)(`h1`,{className:`text-3xl font-display font-bold tracking-tight uppercase`,children:n===`login`?`Access Terminal`:`Register Operator`}),(0,g.jsxs)(`p`,{className:`text-xs font-mono text-amethyst uppercase tracking-widest`,children:[`> `,n===`login`?`AUTHENTICATION_REQUIRED`:`INITIALIZE_IDENTITY`]})]}),(0,g.jsxs)(`div`,{className:`space-y-4`,children:[(0,g.jsx)(s,{method:`post`,children:(0,g.jsxs)(`button`,{type:`submit`,name:`intent`,value:`google`,className:`w-full h-12 border-2 border-white/20 bg-white/5 hover:bg-white/10 text-white font-bold flex items-center justify-center gap-3 transition-all text-xs uppercase tracking-widest mb-6`,children:[(0,g.jsxs)(`svg`,{className:`w-4 h-4`,viewBox:`0 0 24 24`,children:[(0,g.jsx)(`path`,{fill:`currentColor`,d:`M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z`}),(0,g.jsx)(`path`,{fill:`currentColor`,d:`M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z`}),(0,g.jsx)(`path`,{fill:`currentColor`,d:`M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l3.66-2.84z`}),(0,g.jsx)(`path`,{fill:`currentColor`,d:`M12 5.38c1.62 0 3.06.56 4.21 1.66l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z`})]}),`Login with Google`]})}),(0,g.jsxs)(`div`,{className:`relative flex items-center justify-center py-2`,children:[(0,g.jsx)(`div`,{className:`absolute inset-0 flex items-center`,children:(0,g.jsx)(`span`,{className:`w-full border-t border-white/10`})}),(0,g.jsx)(`span`,{className:`relative bg-panel px-4 text-[10px] text-gray-500 uppercase tracking-widest`,children:`or use credentials`})]}),(0,g.jsxs)(s,{method:`post`,className:`space-y-5`,children:[n===`signup`&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(`div`,{className:`space-y-2`,children:[(0,g.jsx)(m,{accent:`amethyst`,children:`Legal_Name`}),(0,g.jsx)(p,{accent:`amethyst`,name:`legal_name`,required:!0,placeholder:`JOHN DOE`,className:`bg-black border-2 border-white/20 text-white font-mono focus:border-amethyst focus:ring-0 rounded-none h-12 text-sm`})]}),(0,g.jsxs)(`div`,{className:`space-y-2`,children:[(0,g.jsx)(m,{accent:`amethyst`,children:`Choice_Username`}),(0,g.jsx)(p,{accent:`amethyst`,name:`username`,required:!0,placeholder:`johndoe`,className:`bg-black border-2 border-white/20 text-white font-mono focus:border-amethyst focus:ring-0 rounded-none h-12 text-sm`})]})]}),(0,g.jsxs)(`div`,{className:`space-y-2`,children:[(0,g.jsx)(m,{accent:`amethyst`,children:`Email_Address`}),(0,g.jsx)(p,{accent:`amethyst`,name:`email`,type:`email`,required:!0,placeholder:`[email protected]`,className:`bg-black border-2 border-white/20 text-white font-mono focus:border-amethyst focus:ring-0 rounded-none h-12 text-sm`})]}),(0,g.jsxs)(`div`,{className:`space-y-2`,children:[(0,g.jsx)(m,{accent:`amethyst`,children:`Passcode`}),(0,g.jsx)(p,{accent:`amethyst`,name:`password`,type:`password`,required:!0,className:`bg-black border-2 border-white/20 text-white font-mono focus:border-amethyst focus:ring-0 rounded-none h-12`})]}),e?.error&&(0,g.jsxs)(`div`,{className:`text-xs text-rose border-l-2 border-rose bg-rose/5 p-3 font-mono`,children:[`ERROR: `,e.error]}),(0,g.jsx)(d,{type:`submit`,name:`intent`,value:n,className:`w-full bg-white text-black font-bold border-2 border-white hover:bg-amethyst hover:text-white rounded-none shadow-brutal-white hover:translate-x-[-2px] hover:translate-y-[-2px] transition-all h-12 text-xs uppercase tracking-widest mt-4`,disabled:t,children:t?`PROCESSING...`:n===`login`?`Initialize_Session`:`Create_Account`}),(0,g.jsx)(`div`,{className:`text-center pt-2`,children:(0,g.jsxs)(`button`,{type:`button`,onClick:()=>a(n===`login`?`signup`:`login`),className:`text-xs text-gray-500 hover:text-white transition-colors uppercase tracking-widest font-bold`,children:[`[ `,n===`login`?`Create_New_Operator`:`Already_Registered?_Login`,` ]`]})})]})]}),(0,g.jsx)(`div`,{className:`text-center border-t border-white/10 pt-6`,children:(0,g.jsx)(o,{to:`/`,className:`text-[10px] text-amethyst hover:text-white transition-colors font-mono uppercase`,children:`< ABORT_SEQUENCE_AND_RETURN`})})]})]})}export{v as ErrorBoundary,y as default,_ as meta};

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.