@bowlos/reservations 0.29.0 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/HEADLESS.md CHANGED
@@ -1098,6 +1098,53 @@ maintenance state, don't dump them at the catalog). `useTestMode` reads the same
1098
1098
  > it. `stripeMode` is also on every buy intent (game pass / package / membership /
1099
1099
  > event), so the two-key pattern covers all purchase types.
1100
1100
 
1101
+ ## Inquiry forms — contact / party requests into the center's inbox (v0.30.0)
1102
+
1103
+ "No dead ends": a contact or "book a party — talk to us" form must post into the
1104
+ center's **BowlOS Inbox**, not a `mailto:` or a black hole. The flow is a
1105
+ **signed server-to-server webhook**, so there's no open public endpoint to spam:
1106
+
1107
+ ```
1108
+ [browser form] ──▶ [your Next.js route /api/inquiry] ──sign+POST──▶ BowlOS /forms/inbound ──▶ Inbox
1109
+ (holds the secret) (HMAC verified)
1110
+ ```
1111
+
1112
+ **1. Server route (holds the secret — never ship it to the browser):**
1113
+ ```ts
1114
+ // app/api/inquiry/route.ts
1115
+ import { forwardInquiry } from "@bowlos/reservations";
1116
+ export async function POST(req: Request) {
1117
+ const { formType, fields } = await req.json();
1118
+ const r = await forwardInquiry(
1119
+ { formType, fields },
1120
+ {
1121
+ secret: process.env.BOWLOS_INQUIRY_SECRET!, // from BowlOS admin, server env only
1122
+ baseUrl: process.env.NEXT_PUBLIC_BOWLOS_BASE_URL!, // the same base the SDK uses
1123
+ brandId: process.env.NEXT_PUBLIC_BOWLOS_BRAND_ID!,
1124
+ centerId: process.env.NEXT_PUBLIC_BOWLOS_CENTER_ID!,
1125
+ },
1126
+ );
1127
+ return Response.json({ ok: r.ok }, { status: r.ok ? 200 : 502 });
1128
+ }
1129
+ ```
1130
+
1131
+ **2. The form — drop-in or fully your own:**
1132
+ ```tsx
1133
+ import { InquiryForm } from "@bowlos/reservations/components";
1134
+ <InquiryForm formType="event_party" action="/api/inquiry" /> // posts to your route
1135
+ ```
1136
+ `<InquiryForm>` is intentionally unstyled (className + `inputStyle`/`labelStyle`
1137
+ passthrough). To build the fields yourself, read the **same registry** the inbox
1138
+ formats from: `import { INQUIRY_FORMS } from "@bowlos/reservations"` →
1139
+ `INQUIRY_FORMS[formType].fields` (`{ key, label, required }`). Keep a hidden
1140
+ `_honeypot` field — the server silently drops a submission that fills it.
1141
+
1142
+ Form types at launch: `contact` and `event_party` (party/birthday: people count,
1143
+ date, time, notes). Once submitted, it lands in the center's Inbox as a labeled
1144
+ block, and a staff **reply emails the customer back** from the center's domain.
1145
+ The center's signing secret comes from BowlOS admin (Super-Admin); it's per
1146
+ center and server-side only.
1147
+
1101
1148
  ## Adopting changes by version
1102
1149
 
1103
1150
  What each SDK release changed in `<BookingFlow>` and the headless steps to match.
@@ -1132,6 +1179,7 @@ Headless sites do **not** get these from a version bump — apply them by hand.
1132
1179
  | **0.26.0** | **Atomic sign-up** — `account.register(email, password, { fullName, marketingOptIn? })` / `client.register(...)` creates the Convex Auth login **and** the brand-scoped customer profile in one server call. | §1 sub-section. Build sign-up from `register` (collect the name on the form). Stop using `signUp()` + a separate `link()` (a missed `link` leaves a login with no customer profile). `signUp`/`link` remain only for `authed_no_customer` recovery. |
1133
1180
  | **0.27.0** | **Pricing before login** — the funnel now mirrors the white-label: browse + see pricing **signed out**, log in only at **Review** before payment. Reads are no longer gated on `signedIn`; `useBookingPreview` / core `bookingPreview(client, args, { auth })` send the bearer when a session exists (member rate + credit); `<BookingFlow>` gates at Review and disables "Continue" until the post-login re-quote resolves. (Server still enforces login on the booking-create mutation.) | §1 (rewritten), §4, §7. Drop `signedIn` from the read `enabled` gates; pass `auth: signedIn` to the preview (or `{ auth }` to the core fn); move your sign-in / create-account form to the Review step (replace "Continue to payment" when signed out); re-quote after login and keep "Continue" disabled while `preview.loading`. Private (share-token) + tier pricing are unaffected — the token/tier gates still hold for anonymous callers. |
1134
1181
 
1182
+ | **0.30.0** | **Inquiry forms → the center's inbox** — `<InquiryForm formType action>` (`/components`) + `forwardInquiry(input, config)` (core, server-side) + the `INQUIRY_FORMS` field registry. A center-site server route signs the submission with the Center's secret and posts it to BowlOS `/forms/inbound` (HMAC-verified — no open endpoint); it lands in the Inbox and a staff reply emails the customer. | New "Inquiry forms" section. Add a server route calling `forwardInquiry` (secret in server env), then `<InquiryForm>` or your own fields from `INQUIRY_FORMS`. Keep the `_honeypot`. Get the Center's signing secret from BowlOS admin. |
1135
1183
  | **0.29.0** | **Wallet eligibility on `useMyPasses`** — each pass row from `useMyPasses` / `getMyPasses` now carries `walletEligible: boolean`. It's `false` once a pass is stale (reservation/package day is over in the Center's timezone; game card inactive/expired; membership lapsed). The server also returns no pass URL for an ineligible pass, so a stale "Add to Wallet" button is a dead action either way. | New "Wallet passes" section. If your site shows "Add to Apple/Google Wallet", gate the buttons on `pass.walletEligible`. No change if you don't surface wallet passes. The `MyPass` type gained the field. |
1136
1184
  | **0.28.0** | **Per-brand logins + forgot-password** — customer auth is now scoped to the brand (same email = independent account/password per center business; server-side, the gateway encodes the brand into the credential). New `account.requestPasswordReset(email)` + `account.resetPassword(email, code, newPassword)` (and `client.*`); the reset emails a 6-digit code from the center's white-label sending domain, and a successful reset signs the customer in. `<AuthForm>`/`<AuthGate>` gained the "Forgot password?" flow. | §1 sub-sections "Per-brand logins" + "Forgot password". No change for sites on the drop-in `<AuthForm>`. Headless sign-in screens: add a "Forgot password?" affordance calling the two methods; reword `EMAIL_IN_USE` to "account at this center." A center needs a verified sending domain for reset codes to send. |
1137
1185
 
package/README.md CHANGED
@@ -171,6 +171,13 @@ Every read also has a framework-agnostic function in the core entry
171
171
  (`checkAvailability`, `bookingPreview`, `getMyReservations`, `runDoctor`, …) for
172
172
  non-React or server use.
173
173
 
174
+ **Inquiry forms (v0.30.0):** contact / party-request forms post into the
175
+ center's BowlOS Inbox via a signed server-to-server webhook — no `mailto:`, no
176
+ open endpoint. Add a server route calling `forwardInquiry(...)` (the Center's
177
+ secret stays in server env), then drop in `<InquiryForm formType action />` (or
178
+ build your own fields from `INQUIRY_FORMS`). A staff reply emails the customer
179
+ back. See the "Inquiry forms" section of `HEADLESS.md`.
180
+
174
181
  ## Drop-in components (`@bowlos/reservations/components`)
175
182
 
176
183
  > These are a **reference / fast-start**, not the delivered product. Center sites
@@ -0,0 +1,45 @@
1
+ // ../shared/src/inquiry.ts
2
+ var INQUIRY_FORMS = {
3
+ contact: {
4
+ label: "Contact",
5
+ fields: [
6
+ { key: "contactName", label: "Contact Name", required: true },
7
+ { key: "companyName", label: "Company Name" },
8
+ { key: "email", label: "Email", required: true },
9
+ { key: "mobile", label: "Mobile" },
10
+ { key: "message", label: "Message", required: true }
11
+ ]
12
+ },
13
+ event_party: {
14
+ label: "Party / event inquiry",
15
+ fields: [
16
+ { key: "contactName", label: "Contact Name", required: true },
17
+ { key: "companyName", label: "Company Name" },
18
+ { key: "email", label: "Email", required: true },
19
+ { key: "mobile", label: "Mobile" },
20
+ { key: "peopleCount", label: "People count" },
21
+ { key: "date", label: "Date" },
22
+ { key: "time", label: "Time" },
23
+ { key: "notes", label: "Notes" }
24
+ ]
25
+ }
26
+ };
27
+ async function hmacHex(secret, message) {
28
+ const encoder = new TextEncoder();
29
+ const key = await globalThis.crypto.subtle.importKey(
30
+ "raw",
31
+ encoder.encode(secret),
32
+ { name: "HMAC", hash: "SHA-256" },
33
+ false,
34
+ ["sign"]
35
+ );
36
+ const sig = await globalThis.crypto.subtle.sign("HMAC", key, encoder.encode(message));
37
+ return Array.from(new Uint8Array(sig)).map((b) => b.toString(16).padStart(2, "0")).join("");
38
+ }
39
+ async function signInquiryBody(secret, rawBody) {
40
+ return hmacHex(secret, rawBody);
41
+ }
42
+
43
+ export { INQUIRY_FORMS, signInquiryBody };
44
+ //# sourceMappingURL=chunk-WWKULPFX.js.map
45
+ //# sourceMappingURL=chunk-WWKULPFX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../shared/src/inquiry.ts"],"names":[],"mappings":";AAmCO,IAAM,aAAA,GAAyD;AAAA,EACpE,OAAA,EAAS;AAAA,IACP,KAAA,EAAO,SAAA;AAAA,IACP,MAAA,EAAQ;AAAA,MACN,EAAE,GAAA,EAAK,aAAA,EAAe,KAAA,EAAO,cAAA,EAAgB,UAAU,IAAA,EAAK;AAAA,MAC5D,EAAE,GAAA,EAAK,aAAA,EAAe,KAAA,EAAO,cAAA,EAAe;AAAA,MAC5C,EAAE,GAAA,EAAK,OAAA,EAAS,KAAA,EAAO,OAAA,EAAS,UAAU,IAAA,EAAK;AAAA,MAC/C,EAAE,GAAA,EAAK,QAAA,EAAU,KAAA,EAAO,QAAA,EAAS;AAAA,MACjC,EAAE,GAAA,EAAK,SAAA,EAAW,KAAA,EAAO,SAAA,EAAW,UAAU,IAAA;AAAK;AACrD,GACF;AAAA,EACA,WAAA,EAAa;AAAA,IACX,KAAA,EAAO,uBAAA;AAAA,IACP,MAAA,EAAQ;AAAA,MACN,EAAE,GAAA,EAAK,aAAA,EAAe,KAAA,EAAO,cAAA,EAAgB,UAAU,IAAA,EAAK;AAAA,MAC5D,EAAE,GAAA,EAAK,aAAA,EAAe,KAAA,EAAO,cAAA,EAAe;AAAA,MAC5C,EAAE,GAAA,EAAK,OAAA,EAAS,KAAA,EAAO,OAAA,EAAS,UAAU,IAAA,EAAK;AAAA,MAC/C,EAAE,GAAA,EAAK,QAAA,EAAU,KAAA,EAAO,QAAA,EAAS;AAAA,MACjC,EAAE,GAAA,EAAK,aAAA,EAAe,KAAA,EAAO,cAAA,EAAe;AAAA,MAC5C,EAAE,GAAA,EAAK,MAAA,EAAQ,KAAA,EAAO,MAAA,EAAO;AAAA,MAC7B,EAAE,GAAA,EAAK,MAAA,EAAQ,KAAA,EAAO,MAAA,EAAO;AAAA,MAC7B,EAAE,GAAA,EAAK,OAAA,EAAS,KAAA,EAAO,OAAA;AAAQ;AACjC;AAEJ;AA+EA,eAAe,OAAA,CAAQ,QAAgB,OAAA,EAAkC;AACvE,EAAA,MAAM,OAAA,GAAU,IAAI,WAAA,EAAY;AAChC,EAAA,MAAM,GAAA,GAAM,MAAM,UAAA,CAAW,MAAA,CAAO,MAAA,CAAO,SAAA;AAAA,IACzC,KAAA;AAAA,IACA,OAAA,CAAQ,OAAO,MAAM,CAAA;AAAA,IACrB,EAAE,IAAA,EAAM,MAAA,EAAQ,IAAA,EAAM,SAAA,EAAU;AAAA,IAChC,KAAA;AAAA,IACA,CAAC,MAAM;AAAA,GACT;AACA,EAAA,MAAM,GAAA,GAAM,MAAM,UAAA,CAAW,MAAA,CAAO,MAAA,CAAO,IAAA,CAAK,MAAA,EAAQ,GAAA,EAAK,OAAA,CAAQ,MAAA,CAAO,OAAO,CAAC,CAAA;AACpF,EAAA,OAAO,KAAA,CAAM,KAAK,IAAI,UAAA,CAAW,GAAG,CAAC,CAAA,CAClC,IAAI,CAAC,CAAA,KAAM,EAAE,QAAA,CAAS,EAAE,EAAE,QAAA,CAAS,CAAA,EAAG,GAAG,CAAC,CAAA,CAC1C,KAAK,EAAE,CAAA;AACZ;AAgBA,eAAsB,eAAA,CAAgB,QAAgB,OAAA,EAAkC;AACtF,EAAA,OAAO,OAAA,CAAQ,QAAQ,OAAO,CAAA;AAChC","file":"chunk-WWKULPFX.js","sourcesContent":["/**\n * Inquiry forms (\"No Dead Ends\" #3) — pure logic for the customer contact /\n * party-inquiry forms a center site posts into BowlOS. No DB, no Convex ctx.\n *\n * - the form-type registry (which fields each preset collects), so the SDK\n * and the gateway agree on the shape;\n * - formatInquiryBody: render submitted fields into the labeled block the\n * operator reads in the Inbox;\n * - validateInquiry: required fields + email + length caps;\n * - HMAC helpers: derive a per-center signing secret from the platform master\n * secret, and verify a signed webhook body (the spam gate — only a holder\n * of the center's secret can post). Mirrors mailgun_inbound's verify.\n *\n * Canonical home (shared by the convex backend + the @bowlos/reservations SDK).\n */\n\nexport type InquiryFormType = \"contact\" | \"event_party\";\n\nexport interface InquiryFieldDef {\n key: string;\n label: string;\n required?: boolean;\n}\n\ninterface InquiryFormDef {\n label: string;\n /** Ordered fields rendered in the inbox block. */\n fields: InquiryFieldDef[];\n}\n\n/**\n * The catalog of forms. Two presets at launch (more are additive). The field\n * ORDER here is the order shown in the inbox. `event_party` matches the party\n * inquiry shape (people count / date / time / notes).\n */\nexport const INQUIRY_FORMS: Record<InquiryFormType, InquiryFormDef> = {\n contact: {\n label: \"Contact\",\n fields: [\n { key: \"contactName\", label: \"Contact Name\", required: true },\n { key: \"companyName\", label: \"Company Name\" },\n { key: \"email\", label: \"Email\", required: true },\n { key: \"mobile\", label: \"Mobile\" },\n { key: \"message\", label: \"Message\", required: true },\n ],\n },\n event_party: {\n label: \"Party / event inquiry\",\n fields: [\n { key: \"contactName\", label: \"Contact Name\", required: true },\n { key: \"companyName\", label: \"Company Name\" },\n { key: \"email\", label: \"Email\", required: true },\n { key: \"mobile\", label: \"Mobile\" },\n { key: \"peopleCount\", label: \"People count\" },\n { key: \"date\", label: \"Date\" },\n { key: \"time\", label: \"Time\" },\n { key: \"notes\", label: \"Notes\" },\n ],\n },\n};\n\nexport function isInquiryFormType(v: unknown): v is InquiryFormType {\n return v === \"contact\" || v === \"event_party\";\n}\n\nconst MAX_FIELD_LEN = 5000;\n\n/**\n * Validate a submitted inquiry. Returns an error message, or null when valid.\n * Required fields must be non-empty; email must look like an email; every\n * value is length-capped (defense against a giant body).\n */\nexport function validateInquiry(\n formType: InquiryFormType,\n values: Record<string, unknown>,\n): string | null {\n const def = INQUIRY_FORMS[formType];\n for (const f of def.fields) {\n const raw = values[f.key];\n const val = typeof raw === \"string\" ? raw.trim() : \"\";\n if (f.required && !val) return `${f.label} is required.`;\n if (typeof raw === \"string\" && raw.length > MAX_FIELD_LEN) {\n return `${f.label} is too long.`;\n }\n }\n const email = typeof values.email === \"string\" ? values.email.trim() : \"\";\n if (!/^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$/.test(email)) {\n return \"A valid email is required.\";\n }\n return null;\n}\n\n/**\n * Render submitted fields as a labeled block for the Inbox message body, e.g.\n * Contact Name: John Smith\n * Company Name:\n * Email: johnsmith@email.com\n * People count: 60\n * Registry fields render first (in order, blanks included so the shape is\n * always recognizable); any extra submitted keys are appended verbatim.\n */\nexport function formatInquiryBody(\n formType: InquiryFormType,\n values: Record<string, unknown>,\n): string {\n const def = INQUIRY_FORMS[formType];\n const known = new Set(def.fields.map((f) => f.key));\n const extras = Object.keys(values).filter(\n (k) => !known.has(k) && k !== \"formType\",\n );\n const rows: Array<{ label: string; value: string }> = [\n ...def.fields.map((f) => ({\n label: f.label,\n value: typeof values[f.key] === \"string\" ? (values[f.key] as string).trim() : \"\",\n })),\n ...extras.map((k) => ({\n label: k,\n value: typeof values[k] === \"string\" ? (values[k] as string).trim() : String(values[k] ?? \"\"),\n })),\n ];\n const width = Math.max(...rows.map((r) => r.label.length)) + 1; // +1 for \":\"\n return rows\n .map((r) => `${(r.label + \":\").padEnd(width + 1)} ${r.value}`.trimEnd())\n .join(\"\\n\");\n}\n\n/** A short subject line for the conversation, e.g. \"Party / event inquiry — Jane\". */\nexport function inquirySubject(\n formType: InquiryFormType,\n values: Record<string, unknown>,\n): string {\n const name = typeof values.contactName === \"string\" ? values.contactName.trim() : \"\";\n const base = INQUIRY_FORMS[formType].label;\n return name ? `${base} — ${name}` : base;\n}\n\n// ─── HMAC signing (the spam gate) ──────────────────────────────────\n\nasync function hmacHex(secret: string, message: string): Promise<string> {\n const encoder = new TextEncoder();\n const key = await globalThis.crypto.subtle.importKey(\n \"raw\",\n encoder.encode(secret),\n { name: \"HMAC\", hash: \"SHA-256\" },\n false,\n [\"sign\"],\n );\n const sig = await globalThis.crypto.subtle.sign(\"HMAC\", key, encoder.encode(message));\n return Array.from(new Uint8Array(sig))\n .map((b) => b.toString(16).padStart(2, \"0\"))\n .join(\"\");\n}\n\n/**\n * Derive the per-center inquiry signing secret from the platform master secret.\n * BowlOS never stores per-center secrets — it recomputes this on demand, and\n * hands the same value to the center's server once (so its form route can sign).\n * Compromise of one is scoped to inbox spam for that one center.\n */\nexport async function deriveCenterInquirySecret(\n masterSecret: string,\n centerId: string,\n): Promise<string> {\n return hmacHex(masterSecret, `inquiry-secret:v1:${centerId}`);\n}\n\n/** HMAC-SHA256 of the raw request body with the center's secret, hex. */\nexport async function signInquiryBody(secret: string, rawBody: string): Promise<string> {\n return hmacHex(secret, rawBody);\n}\n\n/** Constant-time verify of a hex signature against the body. */\nexport async function verifyInquirySignature(\n secret: string,\n rawBody: string,\n signature: string,\n): Promise<boolean> {\n const expected = await hmacHex(secret, rawBody);\n if (!signature || signature.length !== expected.length) return false;\n let diff = 0;\n for (let i = 0; i < expected.length; i++) {\n diff |= expected.charCodeAt(i) ^ signature.charCodeAt(i);\n }\n return diff === 0;\n}\n"]}
@@ -1694,6 +1694,126 @@ function formatDay(iso) {
1694
1694
  });
1695
1695
  }
1696
1696
 
1697
+ // ../shared/src/inquiry.ts
1698
+ var INQUIRY_FORMS = {
1699
+ contact: {
1700
+ label: "Contact",
1701
+ fields: [
1702
+ { key: "contactName", label: "Contact Name", required: true },
1703
+ { key: "companyName", label: "Company Name" },
1704
+ { key: "email", label: "Email", required: true },
1705
+ { key: "mobile", label: "Mobile" },
1706
+ { key: "message", label: "Message", required: true }
1707
+ ]
1708
+ },
1709
+ event_party: {
1710
+ label: "Party / event inquiry",
1711
+ fields: [
1712
+ { key: "contactName", label: "Contact Name", required: true },
1713
+ { key: "companyName", label: "Company Name" },
1714
+ { key: "email", label: "Email", required: true },
1715
+ { key: "mobile", label: "Mobile" },
1716
+ { key: "peopleCount", label: "People count" },
1717
+ { key: "date", label: "Date" },
1718
+ { key: "time", label: "Time" },
1719
+ { key: "notes", label: "Notes" }
1720
+ ]
1721
+ }
1722
+ };
1723
+ var HONEYPOT_STYLE = {
1724
+ position: "absolute",
1725
+ left: "-9999px",
1726
+ width: 1,
1727
+ height: 1,
1728
+ opacity: 0
1729
+ };
1730
+ function InquiryForm({
1731
+ formType,
1732
+ action,
1733
+ onSuccess,
1734
+ submitLabel = "Send",
1735
+ successMessage = "Thanks \u2014 we\u2019ll be in touch shortly.",
1736
+ className,
1737
+ fieldStyle,
1738
+ labelStyle,
1739
+ inputStyle
1740
+ }) {
1741
+ const def = INQUIRY_FORMS[formType];
1742
+ const [values, setValues] = react.useState({});
1743
+ const [status, setStatus] = react.useState("idle");
1744
+ const [error, setError] = react.useState(null);
1745
+ const set = (key, val) => setValues((v) => ({ ...v, [key]: val }));
1746
+ const onSubmit = async (e) => {
1747
+ e.preventDefault();
1748
+ setStatus("submitting");
1749
+ setError(null);
1750
+ try {
1751
+ const res = await fetch(action, {
1752
+ method: "POST",
1753
+ headers: { "content-type": "application/json" },
1754
+ body: JSON.stringify({ formType, fields: values })
1755
+ });
1756
+ if (!res.ok) {
1757
+ setStatus("error");
1758
+ setError("Something went wrong. Please try again.");
1759
+ return;
1760
+ }
1761
+ setStatus("done");
1762
+ onSuccess?.();
1763
+ } catch {
1764
+ setStatus("error");
1765
+ setError("Network error. Please try again.");
1766
+ }
1767
+ };
1768
+ if (status === "done") {
1769
+ return /* @__PURE__ */ jsxRuntime.jsx("p", { className, children: successMessage });
1770
+ }
1771
+ return /* @__PURE__ */ jsxRuntime.jsxs("form", { className, onSubmit, children: [
1772
+ def.fields.map((f) => {
1773
+ const multiline = f.key === "message" || f.key === "notes";
1774
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: fieldStyle, children: [
1775
+ /* @__PURE__ */ jsxRuntime.jsxs("label", { style: { display: "block", ...labelStyle }, children: [
1776
+ f.label,
1777
+ f.required ? " *" : ""
1778
+ ] }),
1779
+ multiline ? /* @__PURE__ */ jsxRuntime.jsx(
1780
+ "textarea",
1781
+ {
1782
+ required: f.required,
1783
+ value: values[f.key] ?? "",
1784
+ onChange: (e) => set(f.key, e.target.value),
1785
+ style: inputStyle
1786
+ }
1787
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
1788
+ "input",
1789
+ {
1790
+ type: f.key === "email" ? "email" : "text",
1791
+ required: f.required,
1792
+ value: values[f.key] ?? "",
1793
+ onChange: (e) => set(f.key, e.target.value),
1794
+ style: inputStyle
1795
+ }
1796
+ )
1797
+ ] }, f.key);
1798
+ }),
1799
+ /* @__PURE__ */ jsxRuntime.jsx(
1800
+ "input",
1801
+ {
1802
+ type: "text",
1803
+ name: "_honeypot",
1804
+ tabIndex: -1,
1805
+ autoComplete: "off",
1806
+ "aria-hidden": "true",
1807
+ style: HONEYPOT_STYLE,
1808
+ value: values._honeypot ?? "",
1809
+ onChange: (e) => set("_honeypot", e.target.value)
1810
+ }
1811
+ ),
1812
+ error && /* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", children: error }),
1813
+ /* @__PURE__ */ jsxRuntime.jsx("button", { type: "submit", disabled: status === "submitting", children: status === "submitting" ? "Sending\u2026" : submitLabel })
1814
+ ] });
1815
+ }
1816
+
1697
1817
  exports.AccountDashboard = AccountDashboard;
1698
1818
  exports.AccountMenu = AccountMenu;
1699
1819
  exports.AuthForm = AuthForm;
@@ -1704,6 +1824,7 @@ exports.BookingFlow = BookingFlow;
1704
1824
  exports.BowlosTheme = BowlosTheme;
1705
1825
  exports.FlashSale = FlashSale;
1706
1826
  exports.FlashSaleIndex = FlashSaleIndex;
1827
+ exports.InquiryForm = InquiryForm;
1707
1828
  exports.MaintenanceBanner = MaintenanceBanner;
1708
1829
  exports.formatCents = formatCents;
1709
1830
  exports.formatCentsRange = formatCentsRange;