import{o as e}from"./useStore-B9WcefOa.js";import{c as t}from"./index-VYIssuI_.js";import{i as n,n as r,r as i,t as a}from"./Layout-uiA8q21U.js";var o=e();function s(){return(0,o.jsx)(n,{children:(0,o.jsxs)(a,{children:[(0,o.jsx)(r,{children:`Request an item`}),(0,o.jsx)(i,{children:(0,o.jsx)(`p`,{children:`Only a fraction of our inventory is catalogued online. If you have a place, subject, mapmaker or date in mind, describe it below and we will search the drawers and send photographs of what we find.`})}),(0,o.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),t.success(`Request received — we'll be in touch.`),e.currentTarget.reset()},className:`mt-8 max-w-2xl border border-border bg-card p-6 shadow-sm`,children:[(0,o.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,o.jsxs)(`label`,{className:`block text-sm font-semibold text-maroon`,children:[`Name`,(0,o.jsx)(`input`,{required:!0,maxLength:120,className:`mt-1 w-full border border-input bg-background px-3 py-2 font-normal outline-none focus:border-gold`})]}),(0,o.jsxs)(`label`,{className:`block text-sm font-semibold text-maroon`,children:[`Email`,(0,o.jsx)(`input`,{type:`email`,required:!0,maxLength:255,className:`mt-1 w-full border border-input bg-background px-3 py-2 font-normal outline-none focus:border-gold`})]})]}),(0,o.jsxs)(`label`,{className:`mt-4 block text-sm font-semibold text-maroon`,children:[`What are you looking for?`,(0,o.jsx)(`textarea`,{rows:6,required:!0,maxLength:2e3,className:`mt-1 w-full border border-input bg-background px-3 py-2 font-normal outline-none focus:border-gold`})]}),(0,o.jsx)(`button`,{type:`submit`,className:`mt-5 bg-maroon px-6 py-3 uppercase tracking-wide text-primary-foreground hover:bg-maroon-dark`,children:`Send request`})]})]})})}export{s as component};