PageSourceSearch

https://parcelforwarder.lovable.app/assets/unlock-BPPn1JVp.js

js parcelforwarder.lovable.app collected 2026-10-03 03:35:13 UTC 2,145 bytes, 1 lines download raw bytes

1import{i as e}from"./chunk-aKtaBQYM.js";import{t}from"./react-DxZHKUKd.js";import{t as n}from"./useRouter-D1TfRnW5.js";import{t as r}from"./jsx-runtime-BqYSgJeI.js";import{t as i}from"./package-CoORPe05.js";import{Et as a,Zt as o,qt as s,yt as c}from"./index-DmWFqF-x.js";import{t as l}from"./input-B4l1iddR.js";import{t as u}from"./label-Cs4erZpb.js";import{t as d}from"./button-DWGgoWFW.js";var f=e(t()),p=r();function m(){let e=n(),{redirect:t}=o({from:`/unlock`}),r=s(a),[m,h]=(0,f.useState)(``),[g,_]=(0,f.useState)(!1),[v,y]=(0,f.useState)(null);async function b(n){n.preventDefault(),_(!0),y(null);try{let{ok:n}=await r({data:{password:m}});if(!n){y(`Incorrect password.`);return}let i=c(t)??`/`;await e.invalidate(),window.location.assign(i)}catch(e){console.error(`unlock failed`,e),y(e instanceof Error?`Something went wrong: ${e.message}`:`Something went wrong. Please try again.`)}finally{_(!1)}}return(0,p.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-background px-6`,children:(0,p.jsxs)(`div`,{className:`w-full max-w-sm`,children:[(0,p.jsxs)(`div`,{className:`flex items-center justify-center gap-2 font-semibold text-navy`,children:[(0,p.jsx)(`span`,{className:`grid h-9 w-9 place-items-center rounded-md bg-navy text-white`,children:(0,p.jsx)(i,{className:`h-4 w-4`})}),`ParcelForwarder`]}),(0,p.jsxs)(`div`,{className:`mt-8 rounded-xl border border-border bg-card p-8 shadow-sm`,children:[(0,p.jsx)(`h1`,{className:`text-xl font-semibold text-navy`,children:`Private preview`}),(0,p.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:`Enter the site password to continue.`}),(0,p.jsxs)(`form`,{className:`mt-6 space-y-4`,onSubmit:b,children:[(0,p.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,p.jsx)(u,{htmlFor:`password`,children:`Password`}),(0,p.jsx)(l,{id:`password`,type:`password`,autoComplete:`current-password`,required:!0,autoFocus:!0,value:m,onChange:e=>h(e.target.value)}),v&&(0,p.jsx)(`p`,{className:`text-xs text-destructive`,children:v})]}),(0,p.jsx)(d,{type:`submit`,className:`w-full`,disabled:g,children:g?`Checking...`:`Enter`})]})]})]})})}export{m as component};

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.