// Hotel Walks — Guest-facing cancellation page.
// Standalone page (no app chrome). Linked from the walk letter or a guest SMS.
// Standardised verbiage: "Under the circumstances, the hotel has released your
// obligation to return…"
(function() {
const { useState } = React;
const { Caps, Btn, Pill, Hr, money } = window.UI;
const { SmartKey, Lockup } = window.HW;
const { ME, SENT } = window.HW_DATA;
function Guest({ id }) {
// Fake: tie the page to W-77412 (Maya Klein, sent to 1 Hotel Brooklyn Bridge)
const walk = SENT.find(w => w.id === id) || SENT[0];
const [choice, setChoice] = useState(null); // null | "return" | "cancel" | "done"
if (choice === "done") {
const word = (walk.id === "_") ? "return" : (walk._lastChoice || "");
return (
{ME.property.name} has been notified of your choice. A confirmation has been sent to the email on your reservation.
Under the circumstances, the hotel has released your obligation
to return to the hotel for the remainder of your reservation.
Please select whether you will be returning on
{" "}{formatDate(walk.guest.arrival)},
or if you would like to cancel the remaining dates of your reservation at no charge.