1import{r as t,j as e,L as m}from"./index-DNTZ70tC.js";const f=()=>e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[e.jsx("rect",{x:"5",y:"11",width:"14",height:"10",rx:"2"}),e.jsx("path",{d:"M8 11V8a4 4 0 0 1 8 0v3"})]}),h="twinzy2026",a="twinzy_gate_ok";function b({label:d,children:c}){const[i,s]=t.useState(!1),[o,l]=t.useState(""),[u,n]=t.useState(!1);if(t.useEffect(()=>{typeof window<"u"&&sessionStorage.getItem(a)==="1"&&s(!0)},[]),i)return e.jsx(e.Fragment,{children:c});const x=r=>{r.preventDefault(),o.trim()===h?(sessionStorage.setItem(a,"1"),s(!0)):n(!0)};return e.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center px-5",children:e.jsxs("form",{onSubmit:x,className:"w-full max-w-sm rounded-3xl border border-border bg-card p-8 shadow-sm",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/15 flex items-center justify-center mb-5",children:e.jsx("span",{className:"text-primary",children:e.jsx(f,{})})}),e.jsx("h1",{className:"font-display text-2xl mb-1",children:"Private preview"}),e.jsxs("p",{className:"text-sm text-muted-foreground mb-6",children:["Enter the access password to view ",d,"."]}),e.jsx("input",{type:"password",autoFocus:!0,value:o,onChange:r=>{l(r.target.value),n(!1)},placeholder:"Password",className:"w-full h-11 rounded-full border border-border bg-background px-4 text-sm outline-none focus:border-primary"}),u&&e.jsx("p",{className:"text-xs text-red-500 mt-2",children:"Incorrect password."}),e.jsx("button",{type:"submit",className:"mt-4 w-full h-11 rounded-full bg-foreground text-background text-sm font-semibold hover:opacity-90",children:"Unlock"}),e.jsx(m,{to:"/",className:"block text-center text-xs text-muted-foreground mt-4 hover:text-foreground",children:"â Back to home"})]})})}export{b 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.