import{p as y,a as z,h as x,j as J,r as R,s as Q,n as Y,k as _,l as Z,e as d,g as P,b as A,f as p,m as D,o as I,q as c,u as L,aR as ee,aS as se,aT as re,aU as te,N as O,A as j,x as g,aV as ae,X as S,aW as B,ac as N,R as E,ab as oe,ap as le}from"./vendor-BQRQ0M_C.js";import{c as V,n as k,b as ie}from"./index-BHBd4SjD.js";var ne=x("<div><!></div>");function de(v,s){y(s,!0);let l=z(s,"ref",15,null),e=R(s,["$$slots","$$events","$$legacy","ref","class","children"]);var i=ne();J(i,a=>({class:a,...e}),[()=>V("bg-card text-card-foreground rounded-lg border shadow-sm",s.class)]);var u=_(i);Q(u,()=>s.children??Y),Z(i,a=>l(a),()=>l()),d(v,i),P()}function M(v,s){y(s,!0);let l=z(s,"ref",15,null),e=R(s,["$$slots","$$events","$$legacy","ref","class"]);var i=A(),u=p(i);const a=L(()=>V("ring-offset-background focus-visible:ring-ring mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",s.class));D(u,()=>ee,(t,$)=>{$(t,I({get class(){return c(a)}},()=>e,{get ref(){return l()},set ref(w){l(w)}}))}),d(v,i),P()}function ue(v,s){y(s,!0);let l=z(s,"ref",15,null),e=R(s,["$$slots","$$events","$$legacy","ref","class"]);var i=A(),u=p(i);const a=L(()=>V("bg-muted text-muted-foreground inline-flex h-10 items-center justify-center rounded-md p-1",s.class));D(u,()=>se,(t,$)=>{$(t,I({get class(){return c(a)}},()=>e,{get ref(){return l()},set ref(w){l(w)}}))}),d(v,i),P()}function H(v,s){y(s,!0);let l=z(s,"ref",15,null),e=R(s,["$$slots","$$events","$$legacy","ref","class"]);var i=A(),u=p(i);const a=L(()=>V("ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm",s.class));D(u,()=>re,(t,$)=>{$(t,I({get class(){return c(a)}},()=>e,{get ref(){return l()},set ref(w){l(w)}}))}),d(v,i),P()}const ce=te;var fe=x("<!> <!> <!> <!> <!>",1),ve=x(`<div class="relative"><input type="text" placeholder="Enter username, email, or domain" class="flex h-12 w-full rounded-md border border-input bg-background px-4 py-3 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"/> <div class="absolute inset-y-0 right-0 flex items-center pr-3"><svg class="w-5 h-5 text-muted-foreground" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg></div></div> <p class="text-sm text-muted-foreground">Press Enter to search. I'll automatically detect the type of search.</p>`,1),me=x('<div class="relative"><input type="text" placeholder="Enter username (e.g., john_doe)" class="flex h-12 w-full rounded-md border border-input bg-background px-4 py-3 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"/> <div class="absolute inset-y-0 right-0 flex items-center pr-3"><svg class="w-5 h-5 text-muted-foreground" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg></div></div> <p class="text-sm text-muted-foreground">Search for usernames across breach databases.</p>',1),ge=x(`<div class="relative"><input type="password" placeholder="Enter password to check" class="flex h-12 w-full rounded-md border border-input bg-background px-4 py-3 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"/> <div class="absolute inset-y-0 right-0 flex items-center pr-3"><svg class="w-5 h-5 text-muted-foreground" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"></path></svg></div></div> <div class="p-3 bg-destructive/20 rounded-md"><p class="text-sm text-destructive">⚠️ Security Warning: This password will be checked against breach databases. Only
                test passwords you no longer use.</p></div>`,1),pe=x('<div class="relative"><input type="text" placeholder="Enter domain (e.g., example.com)" class="flex h-12 w-full rounded-md border border-input bg-background px-4 py-3 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"/> <div class="absolute inset-y-0 right-0 flex items-center pr-3"><svg class="w-5 h-5 text-muted-foreground" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"></path></svg></div></div> <p class="text-sm text-muted-foreground">Find all accounts associated with a specific domain.</p>',1),be=x('<div class="relative"><input type="email" placeholder="Enter email address" class="flex h-12 w-full rounded-md border border-input bg-background px-4 py-3 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"/> <div class="absolute inset-y-0 right-0 flex items-center pr-3"><svg class="w-5 h-5 text-muted-foreground" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path></svg></div></div> <p class="text-sm text-muted-foreground">Search for email addresses and view detailed breach information from Have I Been Pwned.</p>',1),he=x("<!> <!> <!> <!> <!> <!>",1);function xe(v,s){y(s,!1);let l=N("smart"),e=N({smart:"",username:"",password:"",domain:"",email:""});function i(a){const t=c(e)[a];if(t)switch(a){case"smart":t.includes("@")?k(`/email/${t}`):t.includes(".")&&!t.includes(" ")?k(`/domain/${t}`):k(`/username/${t}`);break;case"username":k(`/username/${t}`);break;case"password":k(`/password/${t}`);break;case"domain":k(`/domain/${t}`);break;case"email":k(`/email/${t}`);break}}function u(a,t){a.key==="Enter"&&i(t)}O(),ce(v,{class:"w-full",get value(){return c(l)},set value(a){oe(l,a)},children:(a,t)=>{var $=he(),w=p($);ue(w,{class:"grid w-full grid-cols-5 mb-6",children:(m,T)=>{var n=fe(),f=p(n);H(f,{value:"smart",class:"flex items-center gap-1",children:(b,C)=>{var h=j("Smart Search");d(b,h)},$$slots:{default:!0}});var o=g(f,2);H(o,{value:"username",class:"flex items-center gap-1",children:(b,C)=>{var h=j("Username");d(b,h)},$$slots:{default:!0}});var r=g(o,2);H(r,{value:"password",class:"flex items-center gap-1",children:(b,C)=>{var h=j("Password");d(b,h)},$$slots:{default:!0}});var K=g(r,2);H(K,{value:"domain",class:"flex items-center gap-1",children:(b,C)=>{var h=j("Domain");d(b,h)},$$slots:{default:!0}});var G=g(K,2);H(G,{value:"email",class:"flex items-center gap-1",children:(b,C)=>{var h=j("Email");d(b,h)},$$slots:{default:!0}}),d(m,n)},$$slots:{default:!0}});var U=g(w,2);M(U,{value:"smart",class:"space-y-4",children:(m,T)=>{var n=ve(),f=p(n),o=_(f);ae(o,!0),S(o,()=>c(e).smart,r=>B(e,c(e).smart=r)),E("keydown",o,r=>u(r,"smart")),d(m,n)},$$slots:{default:!0}});var W=g(U,2);M(W,{value:"username",class:"space-y-4",children:(m,T)=>{var n=me(),f=p(n),o=_(f);S(o,()=>c(e).username,r=>B(e,c(e).username=r)),E("keydown",o,r=>u(r,"username")),d(m,n)},$$slots:{default:!0}});var q=g(W,2);M(q,{value:"password",class:"space-y-4",children:(m,T)=>{var n=ge(),f=p(n),o=_(f);S(o,()=>c(e).password,r=>B(e,c(e).password=r)),E("keydown",o,r=>u(r,"password")),d(m,n)},$$slots:{default:!0}});var F=g(q,2);M(F,{value:"domain",class:"space-y-4",children:(m,T)=>{var n=pe(),f=p(n),o=_(f);S(o,()=>c(e).domain,r=>B(e,c(e).domain=r)),E("keydown",o,r=>u(r,"domain")),d(m,n)},$$slots:{default:!0}});var X=g(F,2);M(X,{value:"email",class:"space-y-4",children:(m,T)=>{var n=be(),f=p(n),o=_(f);S(o,()=>c(e).email,r=>B(e,c(e).email=r)),E("keydown",o,r=>u(r,"email")),d(m,n)},$$slots:{default:!0}}),d(a,$)},$$slots:{default:!0},$$legacy:!0}),P()}var $e=x('<div class="px-4 py-8"><div class="max-w-2xl mx-auto"><h1 class="text-3xl font-bold text-foreground mb-8">PassDB Search</h1> <!></div></div>');function ke(v,s){y(s,!1),le(()=>{ie.clearBreadcrumbs()}),O();var l=$e(),e=_(l),i=g(_(e),2);de(i,{class:"p-6 border-0",children:(u,a)=>{xe(u,{})},$$slots:{default:!0}}),d(v,l),P()}export{ke as default};
//# sourceMappingURL=Home-B3GZNW7X.js.map
