PageSourceSearch

https://www.straja.io/assets/auth-ui-3HHc7BW_.js

js straja.io collected 2026-10-02 15:37:22 UTC 4,643 bytes, 1 lines download raw bytes

1import{j as t,r as a}from"./components-DN7Vochb.js";import{c as o}from"./misc-_M3e_Q2c.js";import{L as c}from"./loader-circle-CCdjtYn5.js";const x="h-[46px] w-full rounded-[10px] border border-mist-300 bg-mist-50 px-[13px] text-[15px] text-navy-800 outline-none transition placeholder:text-mist-600 focus:border-violet-500 focus:bg-white focus:ring-[3px] focus:ring-violet-500/15",d="flex h-[46px] w-full items-center justify-center gap-2 rounded-[10px] bg-violet-500 text-[15px] font-medium text-white transition hover:bg-violet-600 disabled:cursor-not-allowed disabled:opacity-70",g="flex h-[46px] w-full items-center justify-center gap-2 rounded-[10px] border border-mist-300 bg-white text-[15px] font-medium text-navy-700 transition hover:border-navy-200 disabled:cursor-not-allowed disabled:opacity-70",v="!h-14 text-center font-mono text-[24px] font-medium tracking-[0.5em]",m=a.forwardRef(({className:e,...s},l)=>t.jsx("input",{ref:l,className:o(x,e),...s}));m.displayName="AuthInput";function j({children:e,htmlFor:s,className:l}){return t.jsx("label",{htmlFor:s,className:o("text-[14px] font-medium text-navy-800",l),children:e})}function w({lead:e,accent:s,sub:l,center:r=!1,size:n=26}){return t.jsxs("div",{className:o("flex flex-col gap-1.5",r&&"items-center text-center"),children:[t.jsxs("h1",{className:"font-medium tracking-[-0.01em] text-navy-800",style:{fontSize:`${n}px`},children:[e,s?t.jsxs(t.Fragment,{children:[" ",t.jsx("span",{className:"font-serif italic text-violet-500",children:s})]}):null]}),l?t.jsx("p",{className:"text-[14px] text-mist-700",children:l}):null]})}function N({icon:e,tone:s="violet"}){return t.jsx("div",{className:o("grid h-14 w-14 place-items-center rounded-2xl border",s==="violet"?"border-violet-100 bg-violet-50":"border-mist-300 bg-mist-50"),children:t.jsx(e,{className:o("h-6 w-6",s==="violet"?"text-violet-500":"text-navy-700")})})}function y(){return t.jsxs("div",{className:"relative my-1 flex w-full items-center justify-center",children:[t.jsx("span",{className:"absolute w-full border-b border-mist-300"}),t.jsx("span",{className:"z-10 bg-white px-3 font-mono text-[11px] font-medium uppercase tracking-widest text-mist-600",children:"or"})]})}function A({isPending:e=!1,children:s,className:l,...r}){return t.jsx("button",{className:o(d,l),disabled:e||r.disabled,...r,children:e?t.jsx(c,{className:"h-4 w-4 animate-spin"}):s})}function F({className:e}){return t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:o("h-[18px] w-[18px]",e),viewBox:"0 0 24 24","aria-hidden":"true",children:[t.jsx("path",{fill:"#4285F4",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"}),t.jsx("path",{fill:"#34A853",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"}),t.jsx("path",{fill:"#FBBC05",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.93l2.85-2.22.81-.62z"}),t.jsx("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.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"})]})}function S({tone:e="error",children:s,className:l}){const r={error:"border-signal-risk/30 bg-signal-risk/10 text-signal-risk",success:"border-signal-ok/30 bg-signal-ok/10 text-signal-ok",info:"border-violet-200 bg-violet-50 text-violet-700"};return t.jsx("div",{role:"alert",className:o("w-full rounded-[10px] border p-3 text-[14px]",r[e],l),children:s})}const f=[{label:"Too weak",color:"#D6383D"},{label:"Weak",color:"#E08A1A"},{label:"Fair",color:"#E08A1A"},{label:"Good",color:"#1F9D6B"},{label:"Strong",color:"#6F2BFF"},{label:"Very strong",color:"#6F2BFF"}];function u(e){let s=0;return e.length>=8&&s++,e.length>=12&&s++,/[a-z]/.test(e)&&/[A-Z]/.test(e)&&s++,/[0-9]/.test(e)&&s++,/[^a-zA-Z0-9]/.test(e)&&s++,s}function k({value:e,showCount:s=!1}){const l=e.length?u(e):0,r=f[l];return t.jsxs("div",{className:"space-y-2 pt-1",children:[t.jsx("div",{className:"flex gap-1",children:Array.from({length:5}).map((n,i)=>t.jsx("div",{className:"h-1.5 flex-1 rounded-full transition-colors",style:{background:i<l&&e.length?r.color:"#E6EBF2"}},i))}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("span",{className:"text-[13px] font-medium",style:{color:e.length?r.color:"#5A6275"},children:e.length?r.label:"—"}),s&&t.jsxs("span",{className:"font-mono text-[13px] text-mist-600",children:[e.length," chars"]})]})]})}export{w as A,g as B,v as C,y as D,j as F,F as G,N as I,A as P,S as a,m as b,k as c};

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.