PageSourceSearch

https://bizvanguard.ai/assets/StandaloneRedirect-DqRXGPWT.js

js bizvanguard.ai collected 2026-10-05 13:46:45 UTC 5,484 bytes, 1 lines download raw bytes

1import{r as o,j as e}from"./vendor-react-zwv87yMD.js";import"./vendor-charts-CtrTLS4K.js";import"./vendor-i18n-BdYkS11p.js";import"./vendor-ui-CfDMlrKu.js";import"./vendor-pdf-DQuePnfN.js";import"./vendor-state-ByI9XJey.js";import"./vendor-editor-C_dhmuey.js";function v(){const[x,n]=o.useState("choose"),[r,u]=o.useState(""),[i,l]=o.useState(""),[s,a]=o.useState("kiosk"),[p,c]=o.useState(!1);o.useEffect(()=>{const t=localStorage.getItem("kioskPath");t&&(c(!0),window.location.href=t)},[]);const g=t=>{if(t.preventDefault(),!r.trim()){l("Please enter a company code");return}const d=r.trim().toLowerCase(),m=s==="kiosk"?`/kiosk/${d}`:`/clock/${d}`;localStorage.setItem("kioskPath",m),c(!0),window.location.href=m};return p?e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-primary/10 to-accent/10 flex items-center justify-center",children:e.jsx("div",{className:"text-xl text-muted-foreground",children:"Loading..."})}):x==="choose"?e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-primary/10 to-accent/10 flex items-center justify-center p-4",children:e.jsxs("div",{className:"bg-card border rounded-2xl shadow-xl p-8 max-w-sm w-full",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("img",{src:"/logo.svg",alt:"BizVanguard",className:"h-16 w-16 mx-auto mb-4"}),e.jsx("h1",{className:"text-2xl font-bold",children:"BizVanguard"}),e.jsx("p",{className:"text-muted-foreground mt-2",children:"How would you like to use this device?"})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("button",{onClick:()=>{localStorage.setItem("kioskPath","/login"),window.location.href="/login"},className:"w-full py-4 px-4 bg-primary text-primary-foreground rounded-xl text-lg font-bold hover:bg-primary/90 active:scale-95 transition-all flex items-center justify-center gap-3",children:[e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"}),e.jsx("polyline",{points:"10 17 15 12 10 7"}),e.jsx("line",{x1:"15",y1:"12",x2:"3",y2:"12"})]}),"Sign In"]}),e.jsxs("button",{onClick:()=>n("clock-setup"),className:"w-full py-4 px-4 bg-muted text-foreground rounded-xl text-lg font-bold hover:bg-muted/80 active:scale-95 transition-all flex items-center justify-center gap-3",children:[e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("polyline",{points:"12 6 12 12 16 14"})]}),"Time Clock Setup"]})]}),e.jsx("p",{className:"text-xs text-muted-foreground text-center mt-6",children:'Choose "Sign In" for regular access or "Time Clock" for kiosk/clock-in devices'})]})}):e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-primary/10 to-accent/10 flex items-center justify-center p-4",children:e.jsxs("div",{className:"bg-card border rounded-2xl shadow-xl p-8 max-w-sm w-full",children:[e.jsxs("div",{className:"text-center mb-6",children:[e.jsx("button",{onClick:()=>n("choose"),className:"absolute top-4 left-4 p-2 text-muted-foreground hover:text-foreground transition-colors",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"15 18 9 12 15 6"})})}),e.jsx("div",{className:"text-5xl mb-4",children:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-12 w-12 mx-auto text-primary",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("polyline",{points:"12 6 12 12 16 14"})]})}),e.jsx("h1",{className:"text-2xl font-bold",children:"Time Clock Setup"}),e.jsx("p",{className:"text-muted-foreground mt-2",children:"Enter your company code to continue"})]}),e.jsxs("form",{onSubmit:g,className:"space-y-4",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"button",onClick:()=>a("kiosk"),className:`flex-1 py-2 px-3 rounded-lg text-sm font-medium transition-all ${s==="kiosk"?"bg-primary text-primary-foreground":"bg-muted hover:bg-muted/80"}`,children:"Kiosk"}),e.jsx("button",{type:"button",onClick:()=>a("remote"),className:`flex-1 py-2 px-3 rounded-lg text-sm font-medium transition-all ${s==="remote"?"bg-primary text-primary-foreground":"bg-muted hover:bg-muted/80"}
1`,children:"Remote + GPS"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Company Code"}),e.jsx("input",{type:"text",value:r,onChange:t=>{u(t.target.value),l("")},placeholder:"e.g., test-company",className:"w-full px-4 py-3 border-2 rounded-xl text-lg focus:outline-none focus:ring-2 focus:ring-primary",autoCapitalize:"none",autoCorrect:"off"})]}),i&&e.jsx("div",{className:"p-3 rounded-lg bg-destructive/10 text-destructive text-sm text-center",children:i}),e.jsx("button",{type:"submit",className:"w-full py-4 bg-primary text-primary-foreground rounded-xl text-lg font-bold hover:bg-primary/90 active:scale-95 transition-all",children:"Continue"})]}),e.jsx("p",{className:"text-xs text-muted-foreground text-center mt-6",children:"Ask your manager for your company code"})]})})}export{v 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.