1import{u as g,r as n,a as h,b as p,j as s,L as f,aH as j,t as l}from"./index-C0ZerVyI.js";import{P as w}from"./PublicPageShell-C2f6FWCS.js";import{S as N}from"./store-BlYiLQ-B.js";import"./Logo-C73aeGPz.js";function S(){const{copy:e}=g(),[a,d]=n.useState(""),[o,u]=n.useState(""),[r,i]=n.useState(!1),c=h(),m=p(),b=async t=>{t.preventDefault(),i(!0);try{const x=await j({data:{handle:a,password:o}});await m.invalidate(),l.success(e.business.businessLoginSuccess),c({to:"/business/dashboard",search:{businessId:x.id}})}catch{l.error(e.business.businessLoginFailed)}finally{i(!1)}};return s.jsx(w,{title:e.business.portalTitle,children:s.jsxs("div",{className:"mx-auto max-w-md",children:[s.jsxs("div",{className:"mb-8 overflow-hidden rounded-3xl bg-gradient-to-br from-ink to-surface p-6 text-white shadow-xl",children:[s.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-white/20",children:s.jsx(N,{className:"h-6 w-6"})}),s.jsx("h2",{className:"mt-5 text-2xl font-extrabold tracking-tight",children:e.business.businessLoginTitle}),s.jsx("p",{className:"mt-3 text-sm leading-relaxed opacity-90",children:e.business.businessLoginDesc})]}),s.jsxs("form",{onSubmit:b,className:"space-y-4 rounded-3xl border border-border/50 bg-card p-6 shadow-sm",children:[s.jsxs("div",{children:[s.jsx("label",{className:"mb-2 block text-sm font-semibold",children:e.business.businessUsername}),s.jsx("input",{required:!0,value:a,onChange:t=>d(t.target.value),placeholder:"burgerhouse",autoComplete:"username",className:"w-full rounded-2xl border bg-secondary/30 p-4 text-sm font-medium outline-none focus:ring-2 focus:ring-ink"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"mb-2 block text-sm font-semibold",children:e.common.password}),s.jsx("input",{type:"password",required:!0,value:o,onChange:t=>u(t.target.value),placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",autoComplete:"current-password",className:"w-full rounded-2xl border bg-secondary/30 p-4 text-sm font-medium outline-none focus:ring-2 focus:ring-ink"})]}),s.jsx("button",{type:"submit",disabled:r,className:"w-full rounded-2xl bg-ink py-4 font-bold text-lime shadow-lg shadow-ink/30 disabled:opacity-60 cursor-pointer",children:r?e.auth.signingIn:e.business.businessLogIn})]}),s.jsx("div",{className:"mt-8 rounded-2xl border bg-secondary/30 p-5 text-center",children:s.jsxs("p",{className:"text-sm text-muted-foreground",children:[e.business.registerBrandPrompt," ",s.jsx(f,{to:"/contact",className:"font-bold text-ink underline",children:e.help.contactUs})]})})]})})}export{S 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.