@ticketboothapp/booking 0.1.3 → 0.1.7

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.
Files changed (45) hide show
  1. package/package.json +21 -1
  2. package/src/components/BookingDetails.tsx +546 -0
  3. package/src/components/BookingFlow.tsx +2952 -0
  4. package/src/components/BookingWidget.tsx +349 -0
  5. package/src/components/Calendar.tsx +906 -0
  6. package/src/components/CheckoutModal.tsx +294 -0
  7. package/src/components/CurrencySwitcher.tsx +81 -0
  8. package/src/components/ErrorBoundary.tsx +63 -0
  9. package/src/components/ItineraryBuilder.tsx +83 -0
  10. package/src/components/LanguageSwitcher.tsx +30 -0
  11. package/src/components/ManageBookingView.tsx +409 -0
  12. package/src/components/MealDrinkAddOnSelector.tsx +330 -0
  13. package/src/components/PickupLocationSelector.tsx +1541 -0
  14. package/src/components/PriceBreakdown.tsx +154 -0
  15. package/src/components/PriceSummary.tsx +211 -0
  16. package/src/components/PrivateShuttleBookingFlow.tsx +2290 -0
  17. package/src/components/ProductList.tsx +78 -0
  18. package/src/components/TermsAcceptance.tsx +110 -0
  19. package/src/components/WhatsAppPhoneInput.tsx +224 -0
  20. package/src/components/index.ts +31 -0
  21. package/src/contexts/CompanyContext.tsx +8 -20
  22. package/src/index.ts +16 -0
  23. package/src/lib/api.ts +801 -0
  24. package/src/lib/booking-ref.ts +13 -0
  25. package/src/lib/checkout-breakdown.test.ts +70 -0
  26. package/src/lib/checkout-breakdown.ts +69 -0
  27. package/src/lib/constants.ts +17 -0
  28. package/src/lib/currency.ts +88 -0
  29. package/src/lib/env.ts +10 -12
  30. package/src/lib/i18n/config.ts +21 -0
  31. package/src/lib/i18n/index.tsx +144 -0
  32. package/src/lib/i18n/messages/en.json +192 -0
  33. package/src/lib/i18n/messages/fr.json +192 -0
  34. package/src/lib/itinerary-labels.ts +70 -0
  35. package/src/lib/location-calculations.ts +43 -0
  36. package/src/lib/location-utils.ts +139 -0
  37. package/src/lib/map-utils.ts +153 -0
  38. package/src/lib/marker-icons.ts +113 -0
  39. package/src/lib/pickup-location-types.ts +25 -0
  40. package/src/lib/places-api.ts +154 -0
  41. package/src/lib/pricing.ts +466 -0
  42. package/src/lib/theme.ts +83 -0
  43. package/src/lib/utils.ts +9 -0
  44. package/src/types/google-maps.d.ts +2 -0
  45. package/tsconfig.json +8 -2
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Format booking reference for display and URLs.
3
+ * Always strips the bookRef_ prefix so users see/share the short form (e.g. QGR5WBWZ).
4
+ * Backend accepts both forms and normalizes on lookup.
5
+ */
6
+ export function formatBookingRefForDisplay(ref: string | null | undefined): string {
7
+ if (!ref || typeof ref !== 'string') return '';
8
+ const trimmed = ref.trim();
9
+ if (trimmed.toLowerCase().startsWith('bookref_')) {
10
+ return trimmed.slice(8); // "bookRef_".length = 8
11
+ }
12
+ return trimmed;
13
+ }
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Unit tests for checkout-breakdown. Run with: npx vitest run lib/checkout-breakdown
3
+ * (Add vitest to devDependencies if not present: npm i -D vitest)
4
+ */
5
+ import { describe, it, expect } from 'vitest';
6
+ import { round2, buildCheckoutBreakdown } from './checkout-breakdown';
7
+
8
+ describe('round2', () => {
9
+ it('rounds to 2 decimal places', () => {
10
+ expect(round2(10.234)).toBe(10.23);
11
+ expect(round2(10.236)).toBe(10.24);
12
+ expect(round2(102.88)).toBe(102.88);
13
+ });
14
+
15
+ it('avoids floating point drift', () => {
16
+ expect(round2(0.1 + 0.2)).toBe(0.3);
17
+ });
18
+ });
19
+
20
+ describe('buildCheckoutBreakdown', () => {
21
+ it('rounds each line amount and total', () => {
22
+ const result = buildCheckoutBreakdown({
23
+ lines: [
24
+ { label: 'ADULT', amount: 92.894, type: 'TICKET', quantity: 1 },
25
+ { label: 'Flexible cancellation', amount: 9.99, type: 'CANCELLATION_UPGRADE' },
26
+ ],
27
+ totalAmount: 102.884,
28
+ currency: 'GBP',
29
+ roundingLabel: 'Rounding',
30
+ });
31
+ expect(result.totalAmount).toBe(102.88);
32
+ expect(result.lineItems).toHaveLength(2);
33
+ expect(result.lineItems[0].amount).toBe(92.89);
34
+ expect(result.lineItems[1].amount).toBe(9.99);
35
+ expect(result.lineItems.reduce((s, l) => s + l.amount, 0)).toBeCloseTo(result.totalAmount, 2);
36
+ });
37
+
38
+ it('adds rounding line when sum differs from total by more than 0.02', () => {
39
+ const result = buildCheckoutBreakdown({
40
+ lines: [
41
+ { label: 'A', amount: 33.33, type: 'TICKET' },
42
+ { label: 'B', amount: 33.33, type: 'TICKET' },
43
+ { label: 'C', amount: 33.33, type: 'TICKET' },
44
+ ],
45
+ totalAmount: 100,
46
+ currency: 'CAD',
47
+ roundingLabel: 'Rounding',
48
+ });
49
+ expect(result.totalAmount).toBe(100);
50
+ expect(result.lineItems).toHaveLength(4);
51
+ const roundingLine = result.lineItems.find((l) => l.type === 'ROUNDING');
52
+ expect(roundingLine).toBeDefined();
53
+ expect(roundingLine!.label).toBe('Rounding');
54
+ expect(result.lineItems.reduce((s, l) => s + l.amount, 0)).toBeCloseTo(100, 2);
55
+ });
56
+
57
+ it('does not add rounding line when sum is within 0.02 of total', () => {
58
+ const result = buildCheckoutBreakdown({
59
+ lines: [
60
+ { label: 'ADULT', amount: 92.89, type: 'TICKET' },
61
+ { label: 'Flexible cancellation', amount: 9.99, type: 'CANCELLATION_UPGRADE' },
62
+ ],
63
+ totalAmount: 102.88,
64
+ currency: 'GBP',
65
+ roundingLabel: 'Rounding',
66
+ });
67
+ expect(result.lineItems).toHaveLength(2);
68
+ expect(result.totalAmount).toBe(102.88);
69
+ });
70
+ });
@@ -0,0 +1,69 @@
1
+ import type { CheckoutBreakdown, CheckoutReceiptLine } from '@/lib/api';
2
+
3
+ /**
4
+ * Round to 2 decimal places. Used so breakdown amounts and totals are stable
5
+ * and pass backend validation (sum of line items ≈ totalAmount within 0.02).
6
+ */
7
+ export function round2(n: number): number {
8
+ return Math.round(n * 100) / 100;
9
+ }
10
+
11
+ export interface CheckoutLineInput {
12
+ label: string;
13
+ amount: number;
14
+ type: string;
15
+ quantity?: number;
16
+ }
17
+
18
+ /** Line types for checkout breakdown. ADDITIONAL_HOURS reserved for future private shuttle extra hours. */
19
+ export const CheckoutLineType = {
20
+ TICKET: 'TICKET',
21
+ DEPOSIT: 'DEPOSIT',
22
+ FEE: 'FEE',
23
+ RETURN_OPTION: 'return',
24
+ CANCELLATION_UPGRADE: 'cancellation',
25
+ TAX: 'TAX',
26
+ PROMO_CODE: 'PROMO_CODE',
27
+ ROUNDING: 'ROUNDING',
28
+ ADDITIONAL_HOURS: 'ADDITIONAL_HOURS', // Future: private shuttle extra hours line
29
+ } as const;
30
+
31
+ export interface BuildCheckoutBreakdownParams {
32
+ /** Line items in display order (tickets, return, cancellation, fees, tax, promo, etc.) */
33
+ lines: CheckoutLineInput[];
34
+ /** Total amount to charge (will be rounded to 2 decimals). */
35
+ totalAmount: number;
36
+ currency: string;
37
+ /** Label for rounding line when added (e.g. "Rounding"). */
38
+ roundingLabel: string;
39
+ }
40
+
41
+ /**
42
+ * Builds a CheckoutBreakdown from the given lines and total.
43
+ * Rounds each line amount to 2 decimals; if the sum differs from total by more than 0.02,
44
+ * adds a rounding line so the backend validator accepts it.
45
+ * Reused by BookingFlow and PrivateShuttleBookingFlow so Stripe and /manage match the UI.
46
+ */
47
+ export function buildCheckoutBreakdown(params: BuildCheckoutBreakdownParams): CheckoutBreakdown {
48
+ const { lines, totalAmount, currency, roundingLabel } = params;
49
+ const totalRounded = round2(totalAmount);
50
+ const lineItems: CheckoutReceiptLine[] = lines.map((line) => ({
51
+ label: line.label,
52
+ amount: round2(line.amount),
53
+ type: line.type,
54
+ quantity: line.quantity,
55
+ }));
56
+ const sumLines = lineItems.reduce((s, l) => s + l.amount, 0);
57
+ if (Math.abs(sumLines - totalRounded) > 0.02) {
58
+ lineItems.push({
59
+ label: roundingLabel,
60
+ amount: round2(totalRounded - sumLines),
61
+ type: 'ROUNDING',
62
+ });
63
+ }
64
+ return {
65
+ lineItems,
66
+ totalAmount: totalRounded,
67
+ currency,
68
+ };
69
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Shared constants for booking components
3
+ */
4
+
5
+ // Date range for availability fetching
6
+ export const EARLIEST_AVAILABILITY_DATE = new Date('2026-06-01');
7
+ export const LATEST_AVAILABILITY_DATE = new Date('2026-10-12');
8
+
9
+ // Mini calendar date range (June 2026 - October 2026)
10
+ export const MINI_CALENDAR_START_MONTH = new Date(2026, 5, 1); // June 1, 2026 (month index 5 = June)
11
+ export const MINI_CALENDAR_END_MONTH = new Date(2026, 9, 1); // October 1, 2026 (month index 9 = October)
12
+ export const MINI_CALENDAR_START_DATE = new Date(2026, 5, 1); // June 1, 2026
13
+ export const MINI_CALENDAR_END_DATE = new Date(2026, 9, 12); // October 12, 2026 (inclusive)
14
+
15
+ // Initial fetch buffer (weeks)
16
+ export const INITIAL_FETCH_WEEKS = 4; // 2 visible weeks + 2 buffer weeks
17
+ export const VISIBLE_RANGE_BUFFER_WEEKS = 2; // Buffer weeks before/after visible range
@@ -0,0 +1,88 @@
1
+ import type { Currency } from '@/components/CurrencySwitcher';
2
+ import type { Locale } from '@/lib/i18n/config';
3
+
4
+ /**
5
+ * Default exchange rates from CAD to other currencies (fallback if API doesn't provide them).
6
+ * Keep in sync with backend ticketbooth-be/src/main/resources/pricing.json → companies.default.currencyRates.CAD
7
+ */
8
+ export const DEFAULT_EXCHANGE_RATES: Record<Currency, number> = {
9
+ CAD: 1.0, // Base currency
10
+ USD: 0.74,
11
+ EUR: 0.62,
12
+ GBP: 0.53,
13
+ AUD: 1.04,
14
+ };
15
+
16
+ /**
17
+ * Rounding targets for price rounding (from pricing.json).
18
+ * Rounds up to nearest value ending in .99 (e.g., 24.99, 29.99).
19
+ * Only used on BE when generating prices (product-fees / pricing config). Currently disabled on FE.
20
+ */
21
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- targets used when rounding re-enabled
22
+ export function roundToNearestTarget(amount: number, _targets: number[] = [4.99, 9.99]): number {
23
+ return amount;
24
+ // Re-enable rounding:
25
+ // if (_targets.length === 0) return amount;
26
+ // const integerPart = Math.floor(amount);
27
+ // const fractionalPart = amount - integerPart;
28
+ // const sortedTargets = [..._targets].sort((a, b) => a - b);
29
+ // let target = sortedTargets.find(t => t >= fractionalPart);
30
+ // if (!target) {
31
+ // target = sortedTargets[sortedTargets.length - 1];
32
+ // return integerPart + 1 + target;
33
+ // }
34
+ // return integerPart + target;
35
+ }
36
+
37
+ /**
38
+ * Format a numeric amount in the given currency using Intl.NumberFormat.
39
+ * Falls back to a simple "123.45 CUR" string if formatting fails.
40
+ */
41
+ // Currency symbols map - using industry standard ISO 4217 symbols
42
+ // When multiple dollar currencies are present, use distinguishing prefixes
43
+ const CURRENCY_SYMBOLS: Record<Currency, string> = {
44
+ CAD: 'C$', // Canadian Dollar - C$ is the standard when distinction needed
45
+ USD: 'US$', // US Dollar - US$ when distinction needed (otherwise just $)
46
+ EUR: '€', // Euro - standard symbol
47
+ GBP: '£', // British Pound - standard symbol
48
+ AUD: 'A$', // Australian Dollar - A$ is standard
49
+ };
50
+
51
+ /**
52
+ * Format a numeric amount in the given currency, respecting locale conventions.
53
+ * For French: uses comma as decimal separator and proper symbol placement (e.g., "109,99 €")
54
+ * For English: uses period as decimal separator (e.g., "C$109.99")
55
+ *
56
+ * @param amount The amount to format
57
+ * @param currency The currency code
58
+ * @param locale Optional locale ('en' or 'fr'). If not provided, defaults to 'en'
59
+ */
60
+ export function formatCurrencyAmount(amount: number, currency: Currency, locale: Locale = 'en'): string {
61
+ // Use explicit symbols and format number part with locale conventions
62
+ // This ensures USD shows as "US$" and AUD shows as "A$" correctly
63
+ const symbol = CURRENCY_SYMBOLS[currency] || currency;
64
+
65
+ // Handle negative amounts: extract sign and format absolute value.
66
+ // Don't show minus for zero or tiny rounding errors (e.g. -0.00 or -0.0001).
67
+ const absoluteAmount = Math.abs(amount);
68
+ const isNegative = amount < -0.001;
69
+
70
+ // Format the number part with locale-appropriate separators
71
+ const numberFormatter = new Intl.NumberFormat(locale === 'fr' ? 'fr-CA' : 'en-CA', {
72
+ minimumFractionDigits: 2,
73
+ maximumFractionDigits: 2,
74
+ });
75
+
76
+ const formattedNumber = numberFormatter.format(absoluteAmount);
77
+
78
+ // For French: symbol after amount (e.g., "109,99 €" or "-109,99 €")
79
+ // For English: symbol before amount (e.g., "US$109.99" or "-US$109.99")
80
+ const sign = isNegative ? '-' : '';
81
+
82
+ if (locale === 'fr') {
83
+ return `${sign}${formattedNumber} ${symbol}`;
84
+ } else {
85
+ return `${sign}${symbol}${formattedNumber}`;
86
+ }
87
+ }
88
+
package/src/lib/env.ts CHANGED
@@ -1,14 +1,12 @@
1
- const getApiUrl = (): string => {
2
- const apiUrl = process.env.NEXT_PUBLIC_API_URL;
3
- if (!apiUrl) return 'http://localhost:3001';
4
- return apiUrl;
5
- };
6
-
7
- const getBasicAuth = (): string => process.env.NEXT_PUBLIC_BASIC_AUTH ?? '';
8
- const getCompanyId = (): string => process.env.NEXT_PUBLIC_COMPANY_ID ?? 'c_LFU0Vx9hS5v3';
9
-
1
+ /**
2
+ * Type-safe environment variable access
3
+ * Direct access to process.env for Next.js build-time replacement
4
+ * This ensures NEXT_PUBLIC_* variables are properly embedded at build time
5
+ */
10
6
  export const ENV = {
11
- API_URL: getApiUrl(),
12
- BASIC_AUTH: getBasicAuth(),
13
- COMPANY_ID: getCompanyId(),
7
+ API_URL: process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3001',
8
+ BASIC_AUTH: process.env.NEXT_PUBLIC_BASIC_AUTH || '', // Optional - empty string is valid
9
+ COMPANY_ID: process.env.NEXT_PUBLIC_COMPANY_ID || 'c_LFU0Vx9hS5v3',
10
+ GOOGLE_MAPS_API_KEY: process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY || '', // Optional - empty string is valid
11
+ STRIPE_PUBLISHABLE_KEY: process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY || '', // Required for embedded checkout modal
14
12
  } as const;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * i18n Configuration
3
+ *
4
+ * This file sets up the internationalization configuration.
5
+ * Currently supports English (en) as default, ready to add more languages.
6
+ */
7
+
8
+ export const locales = ['en', 'fr'] as const;
9
+ export type Locale = (typeof locales)[number];
10
+
11
+ export const defaultLocale: Locale = 'en';
12
+
13
+ // Language display names
14
+ export const languageNames: Record<Locale, string> = {
15
+ en: 'English',
16
+ fr: 'Français',
17
+ // Add more languages here:
18
+ // es: 'Español',
19
+ // de: 'Deutsch',
20
+ };
21
+
@@ -0,0 +1,144 @@
1
+ 'use client';
2
+
3
+ /**
4
+ * i18n Utilities
5
+ *
6
+ * Simple translation utilities for client components.
7
+ * For server components, use next-intl directly.
8
+ */
9
+
10
+ import { useState, useEffect, createContext, useContext } from 'react';
11
+ import type { ReactNode } from 'react';
12
+ import messagesEn from './messages/en.json';
13
+ import messagesFr from './messages/fr.json';
14
+ import { defaultLocale, locales, type Locale } from './config';
15
+
16
+ type Messages = typeof messagesEn;
17
+
18
+ const messages: Record<Locale, Messages> = {
19
+ en: messagesEn,
20
+ fr: messagesFr,
21
+ };
22
+
23
+ // Context for locale
24
+ const LocaleContext = createContext<{
25
+ locale: Locale;
26
+ setLocale: (locale: Locale) => void;
27
+ }>({
28
+ locale: defaultLocale,
29
+ setLocale: () => {},
30
+ });
31
+
32
+ // Provider component
33
+ export function LocaleProvider({ children }: { children: ReactNode }) {
34
+ // Always start with default locale to ensure server/client match
35
+ const [locale, setLocaleState] = useState<Locale>(defaultLocale);
36
+
37
+ // Load from localStorage after hydration to avoid SSR mismatch
38
+ useEffect(() => {
39
+ try {
40
+ const saved = localStorage.getItem('booking-locale') as Locale | null;
41
+ // Validate that saved locale is in our supported locales array
42
+ if (saved && locales.includes(saved)) {
43
+ setLocaleState(saved);
44
+ }
45
+ } catch (error) {
46
+ // localStorage might be disabled or throw errors
47
+ console.warn('Failed to read locale from localStorage:', error);
48
+ }
49
+ }, []);
50
+
51
+ const setLocale = (newLocale: Locale) => {
52
+ // Validate locale before setting
53
+ if (!locales.includes(newLocale)) {
54
+ console.warn(`Invalid locale: ${newLocale}. Falling back to ${defaultLocale}`);
55
+ setLocaleState(defaultLocale);
56
+ return;
57
+ }
58
+
59
+ setLocaleState(newLocale);
60
+ if (typeof window !== 'undefined') {
61
+ try {
62
+ localStorage.setItem('booking-locale', newLocale);
63
+ } catch (error) {
64
+ // localStorage might be disabled or full
65
+ console.warn('Failed to save locale to localStorage:', error);
66
+ }
67
+ }
68
+ };
69
+
70
+ return (
71
+ <LocaleContext.Provider value={{ locale, setLocale }}>
72
+ {children}
73
+ </LocaleContext.Provider>
74
+ );
75
+ }
76
+
77
+ // Hook to use translations
78
+ export function useTranslations() {
79
+ const { locale } = useContext(LocaleContext);
80
+
81
+ // Ensure we have a valid locale, fallback to default if invalid
82
+ const validLocale = locales.includes(locale) ? locale : defaultLocale;
83
+ const currentMessages = messages[validLocale] || messages[defaultLocale];
84
+
85
+ const t = (key: string, params?: Record<string, string | number>): string => {
86
+ if (!key || typeof key !== 'string') {
87
+ console.warn('Invalid translation key:', key);
88
+ return String(key || '');
89
+ }
90
+
91
+ const keys = key.split('.');
92
+ let value: unknown = currentMessages;
93
+
94
+ for (const k of keys) {
95
+ if (value === null || value === undefined) {
96
+ break;
97
+ }
98
+ // Safe property access on unknown type
99
+ value = (value as Record<string, unknown>)[k];
100
+ }
101
+
102
+ if (value === undefined || value === null) {
103
+ // In development, show the key to help identify missing translations
104
+ if (process.env.NODE_ENV === 'development') {
105
+ console.warn(`Translation key not found: ${key} (locale: ${validLocale})`);
106
+ }
107
+ return key;
108
+ }
109
+
110
+ // Ensure value is a string
111
+ if (typeof value !== 'string') {
112
+ console.warn(`Translation value is not a string for key: ${key}`);
113
+ return key;
114
+ }
115
+
116
+ // Simple parameter replacement
117
+ if (params) {
118
+ return value.replace(/\{(\w+)\}/g, (match, paramKey) => {
119
+ const paramValue = params[paramKey];
120
+ return paramValue !== undefined && paramValue !== null
121
+ ? String(paramValue)
122
+ : match;
123
+ });
124
+ }
125
+
126
+ return value;
127
+ };
128
+
129
+ return { t };
130
+ }
131
+
132
+ // Hook to use locale switching
133
+ export function useLocale() {
134
+ return useContext(LocaleContext);
135
+ }
136
+
137
+ // Type-safe translation key helper
138
+ export type TranslationKey =
139
+ | `common.${keyof Messages['common']}`
140
+ | `booking.${keyof Messages['booking']}`
141
+ | `pickup.${keyof Messages['pickup']}`
142
+ | `calendar.${keyof Messages['calendar']}`
143
+ | `products.${keyof Messages['products']}`;
144
+
@@ -0,0 +1,192 @@
1
+ {
2
+ "common": {
3
+ "back": "Back",
4
+ "continue": "Continue",
5
+ "select": "Select",
6
+ "change": "Change",
7
+ "cancel": "Cancel",
8
+ "close": "Close",
9
+ "loading": "Loading...",
10
+ "error": "Error",
11
+ "total": "Total",
12
+ "email": "Email",
13
+ "emailPlaceholder": "your@email.com",
14
+ "emailForConfirmation": "Email (for confirmation)"
15
+ },
16
+ "booking": {
17
+ "selectDate": "Select Date",
18
+ "selectPickupTime": "Select Pickup Time",
19
+ "requestDifferentTime": "Request different time",
20
+ "preferredPickupTime": "Preferred pickup time",
21
+ "selectReturnTime": "Select Return Time",
22
+ "mostPopular": "Most popular",
23
+ "pickupAtTourStart": "<b>Your pickup time depends on your pickup location.</b><br>Your exact pickup time will be confirmed once you have confirmed your pickup location. Pickups start in Canmore and end in Lake Louise.",
24
+ "pickupAtTourStartLocation": "tour start location",
25
+ "pickupLocationUnknown": "I don't know",
26
+ "arrivalTimeMessage": "You'll arrive at {destination} around <b>{time}</b>.",
27
+ "yourItinerary": "Your Itinerary",
28
+ "buildYourItinerary": "Build Your Itinerary",
29
+ "selectPickupTimeToSeeItinerary": "Select a pickup time below to see your schedule.",
30
+ "selectTourOption": "Select Tour Option",
31
+ "selectTourOptionToSeeItinerary": "Select a tour option below to see your itinerary.",
32
+ "timesToBeDetermined": "times to be determined/confirmed…",
33
+ "proposedStops": "Proposed stops",
34
+ "orderAndTimesToBeConfirmed": "(order and times to be confirmed by our team)",
35
+ "startingAtPerShuttle": "Starting at {price} per shuttle",
36
+ "hoursTour": "{hours} hr tour",
37
+ "hoursTourStarting": "Tour starting with {hours} hours",
38
+ "startingAtForHours": "Starting at {price} per shuttle for {hours}.",
39
+ "hoursUnit": "hours",
40
+ "additionalHoursAvailable": "Additional hours available for a fee.",
41
+ "pickupAt": "Pickup at",
42
+ "pickupAtPrefix": "Pickup at ",
43
+ "pickupAtLocation": "Pickup at {location}",
44
+ "arriveAt": "Arrive at",
45
+ "arriveAtPlace": "Arrive at {place}",
46
+ "departFrom": "Depart",
47
+ "departFromPlace": "Depart {place}",
48
+ "dropOffAt": "Drop off at {location}",
49
+ "dropOffAtPrefix": "Drop off at ",
50
+ "tripEnd": "Trip ends",
51
+ "stopAtPlaceTbd": "Stop at {place} (time TBD)",
52
+ "placeTheDestination": "the destination",
53
+ "dropOffAtPickup": "Arrive at {pickupLocation}",
54
+ "yourPickupLocation": "your pickup location",
55
+ "tickets": "Tickets",
56
+ "available": "available",
57
+ "soldOut": "Sold out",
58
+ "continueToPayment": "Continue to Payment",
59
+ "creatingReservation": "Creating reservation...",
60
+ "securePayment": "Secure payment powered by Stripe",
61
+ "selectTimeAndTickets": "Please select a time and at least one ticket",
62
+ "selectPickupLocation": "Please select a pickup location",
63
+ "loadingTimes": "Loading available times...",
64
+ "noAvailability": "No availability found for the next 30 days. Please check back later.",
65
+ "communicationPreference": "How would you like to receive future communication (confirmation, reminders, etc.)?",
66
+ "communicationEmail": "Email",
67
+ "communicationEmailDesc": "Send confirmation via email",
68
+ "communicationWhatsApp": "WhatsApp",
69
+ "communicationWhatsAppDesc": "Send confirmation via WhatsApp",
70
+ "emailForConfirmation": "Email",
71
+ "phoneNumberForConfirmation": "WhatsApp Phone Number",
72
+ "phoneNumberPlaceholder": "(555) 123-4567",
73
+ "invalidEmail": "Please enter a valid email address",
74
+ "invalidPhoneNumber": "Please enter a valid phone number",
75
+ "selectCommunicationPreference": "Please select how you would like to receive your confirmation",
76
+ "enterEmail": "Please enter your email address",
77
+ "enterLastName": "Please enter your last name",
78
+ "enterPhoneNumber": "Please enter your phone number",
79
+ "firstName": "First Name",
80
+ "firstNamePlaceholder": "Jane",
81
+ "lastName": "Last Name",
82
+ "lastNamePlaceholder": "Smith",
83
+ "noActiveOption": "No active product options available",
84
+ "people": "people",
85
+ "person": "person",
86
+ "rounding": "Rounding",
87
+ "deposit": "Deposit",
88
+ "subtotal": "Subtotal",
89
+ "tax": "Taxes and fees",
90
+ "returnOption": "Return Option",
91
+ "fromPrice": "From {price}",
92
+ "communicationPermission": "By providing your contact information, you give permission to receive booking confirmations, reminders, and updates via this method.",
93
+ "communicationPermissionCheckbox": "I give permission to receive communication via this method",
94
+ "communicationPermissionRequired": "Please select at least one communication method",
95
+ "emailPermissionCheckbox": "Contact me by email (we will only send you communication relevant to your booking)",
96
+ "whatsappPermissionCheckbox": "Contact me by WhatsApp (we will only send you communication relevant to your booking)",
97
+ "reviewAndPay": "Review & pay",
98
+ "payNow": "Pay now",
99
+ "paying": "Paying...",
100
+ "checkout": "Checkout",
101
+ "paymentNotConfigured": "Payment is not configured. Please use the standard checkout.",
102
+ "loadingPayment": "Loading payment form...",
103
+ "promoCode": "Promo code",
104
+ "optionalPromoCode": "Promo / voucher / gift card",
105
+ "promoCodePlaceholder": "Enter code",
106
+ "applyPromo": "Apply",
107
+ "removePromo": "Remove",
108
+ "promoApplied": "Applied: {{code}}",
109
+ "invalidPromoCode": "Invalid or expired promo code",
110
+ "promoCodesCannotStackWithDiscounts": "Promo codes cannot be stacked with deals",
111
+ "discount": "Discount",
112
+ "cancellationPolicy": "Cancellation policy",
113
+ "promoRequiresCancellationPolicy": "This promo requires {{policy}}",
114
+ "promoRequiresThisPolicy": "Required by your promo code",
115
+ "cancellationStandard": "Standard cancellation",
116
+ "included": "Included",
117
+ "flexibleCancellation": "Flexible cancellation",
118
+ "depositPaymentNotice": "You're paying the deposit today.",
119
+ "balanceChargeNotice": "The remaining balance will be charged {days} days before your booking. You can also pay it earlier from your Manage Booking page.",
120
+ "balancePayEarlier": "You can pay the remaining balance anytime from your Manage Booking page.",
121
+ "remainingBalance": "Remaining Balance"
122
+ },
123
+ "pickup": {
124
+ "title": "Select your pickup location",
125
+ "yesAddNow": "I know where I want to be picked up",
126
+ "dontKnow": "I don't know yet",
127
+ "pickupLocation": "Pickup Location",
128
+ "enterAddress": "Enter your pickup address",
129
+ "searchingLocation": "Searching for location...",
130
+ "locationNotFound": "Could not find that location. Please try a different address.",
131
+ "chooseNearby": "Choose a pickup location nearby",
132
+ "exactMatch": "Exact match found",
133
+ "locationsInCity": "Pickup locations in {{city}}",
134
+ "selectThisLocation": "Select This Location",
135
+ "yourLocation": "Your Location",
136
+ "chooseClosest": "Choose a pickup location below to see the closest option.",
137
+ "useThisAddress": "Use this address",
138
+ "away": "away",
139
+ "walk": "walk",
140
+ "drive": "drive",
141
+ "switchUnits": "Switch to {unit} units",
142
+ "metric": "metric",
143
+ "imperial": "imperial",
144
+ "dontKnowSubtext": "We will send you reminders to select your pickup location.",
145
+ "yesAddNowSubtext": "You can change this later.",
146
+ "skipWarningTitle": "Important Notice",
147
+ "skipWarningMessage": "You are not guaranteed to be picked up if you do not <b>update your booking with your pickup location at least 12 hours prior</b>.",
148
+ "iUnderstand": "I understand"
149
+ },
150
+ "calendar": {
151
+ "previousWeeks": "Previous 2 weeks",
152
+ "nextWeeks": "Next 2 weeks",
153
+ "soldOut": "Sold out",
154
+ "left": "{count} left",
155
+ "days": {
156
+ "sun": "SUN",
157
+ "mon": "MON",
158
+ "tue": "TUE",
159
+ "wed": "WED",
160
+ "thu": "THU",
161
+ "fri": "FRI",
162
+ "sat": "SAT"
163
+ },
164
+ "months": {
165
+ "january": "January",
166
+ "february": "February",
167
+ "march": "March",
168
+ "april": "April",
169
+ "may": "May",
170
+ "june": "June",
171
+ "july": "July",
172
+ "august": "August",
173
+ "september": "September",
174
+ "october": "October",
175
+ "november": "November",
176
+ "december": "December"
177
+ }
178
+ },
179
+ "products": {
180
+ "backToExperiences": "Back to experiences",
181
+ "from": "From",
182
+ "noDescription": "No description available"
183
+ },
184
+ "terms": {
185
+ "title": "Terms & Conditions",
186
+ "viewTerms": "Terms & Conditions",
187
+ "acceptPrefix": "I accept the",
188
+ "acceptAndClose": "I've read and accept",
189
+ "content": "By completing this booking you agree to the following terms and conditions.\n\n1. Booking and payment\nYour reservation is confirmed once payment has been processed. You will receive a confirmation by email or the contact method you selected.\n\n2. Cancellation and changes\nCancellation and change policies depend on the option you selected at checkout. Please refer to your confirmation for the policy that applies to your booking.\n\n3. Participation\nYou are responsible for arriving at the designated time and location. Late arrival may result in forfeiting the experience without refund.\n\n4. Liability\nThe operator is not liable for loss or damage beyond what is required by applicable law. Participation is at your own risk where activities involve inherent risk.\n\n5. Contact\nFor questions or changes to your booking, use the contact details provided in your confirmation."
190
+ }
191
+ }
192
+