1import{l as w,r as a,j as e,L as v}from"./main-BL6Fk-L7.js";const x="moodifypet_wholesale_rep";function N(){if(typeof window>"u")return null;try{const s=window.localStorage.getItem(x);return s?JSON.parse(s):null}catch{return null}}function S(s){window.localStorage.setItem(x,JSON.stringify(s))}function R(){window.localStorage.removeItem(x)}const y=["Phillip Cooper","David Perkins","Jared Brassel","Marina Hutto","Bryan Shlager","Dan Ron","Other"];function O(){const s=w(),[r,n]=a.useState(""),[i,l]=a.useState(""),[o,c]=a.useState(""),[d,h]=a.useState(""),[p,f]=a.useState(""),[u,b]=a.useState(!1),g=r==="Other"?i.trim():r;a.useEffect(()=>{const t=N();t&&(y.includes(t.name)?n(t.name):t.name&&(n("Other"),l(t.name)),c(t.email),h(t.code||""),f(t.device||""),b(!0))},[]);function j(t){t.preventDefault(),!(!g||!o.trim()||!u)&&(S({name:g,email:o.trim(),code:d.trim(),device:p.trim()}),s({to:"/wholesale/new",search:{src:void 0}}))}return e.jsx("div",{className:"min-h-screen bg-sky-50",children:e.jsx("div",{className:"mx-auto max-w-lg px-5 py-10 sm:py-16",children:e.jsxs("div",{className:"rounded-3xl bg-white p-6 sm:p-8 shadow-sm border border-sky-100",children:[e.jsx("div",{className:"text-xs font-bold tracking-widest text-sky-600 uppercase",children:"MoodifyPet · SUPERZOO 2026"}),e.jsx("h1",{className:"mt-2 text-2xl font-extrabold tracking-tight text-slate-900",children:"Sales Rep Sign-In"}),e.jsx("p",{className:"mt-1 text-sm text-slate-600",children:"Every order is tagged to a rep. You'll stay signed in on this device."}),e.jsxs("form",{onSubmit:j,className:"mt-6 space-y-4",children:[e.jsxs("label",{className:"block",children:[e.jsx("span",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"Representative name *"}),e.jsxs("select",{value:r,onChange:t=>n(t.target.value),required:!0,className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-base text-slate-900 focus:border-sky-400 focus:ring-2 focus:ring-sky-100 outline-none transition",children:[e.jsx("option",{value:"",disabled:!0,children:"Select a representativeâ¦"}),y.map(t=>e.jsx("option",{value:t,children:t},t))]})]}),r==="Other"&&e.jsx(m,{label:"Enter representative name",value:i,onChange:l,required:!0}),e.jsx(m,{label:"Representative email",type:"email",value:o,onChange:c,required:!0,autoComplete:"email"}),e.jsx(m,{label:"Booth device (optional)",value:p,onChange:f,placeholder:"Booth iPad #2"}),e.jsx(m,{label:"Representative code (optional)",value:d,onChange:h}),e.jsxs("label",{className:"flex items-start gap-2.5 text-xs leading-relaxed text-slate-600 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:u,onChange:t=>b(t.target.checked),required:!0,className:"mt-0.5 h-4 w-4 rounded border-slate-300 text-sky-600 focus:ring-sky-400"}),e.jsxs("span",{children:["I confirm I am an authorized MoodifyPet sales representative and agree to the"," ",e.jsx(v,{to:"/terms",className:"text-sky-700 font-semibold hover:underline",children:"Terms of Service"})," ","and"," ",e.jsx(v,{to:"/privacy",className:"text-sky-700 font-semibold hover:underline",children:"Privacy Policy"}),". Retailer information collected here is processed on behalf of MoodifyPet for wholesale order fulfillment only."]})]}),e.jsx("button",{type:"submit",disabled:!u,className:"w-full rounded-full bg-slate-900 px-6 py-3.5 text-white font-semibold hover:bg-slate-800 transition disabled:opacity-50 disabled:cursor-not-allowed",children:"Start New Retailer Order"})]})]})})})}function m({label:s,value:r,onChange:n,type:i="text",required:l,placeholder:o,autoComplete:c}){return e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:[s,l&&" *"]}),e.jsx("input",{type:i,value:r,onChange:d=>n(d.target.value),required:l,placeholder:o,autoComplete:c,className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-base text-slate-900 focus:border-sky-400 focus:ring-2 focus:ring-sky-100 outline-none transition"})]})}export{R as clearRep,O as component,N as loadRep,S as saveRep};
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.