@semics-tech/emdash-events 1.0.0-rc.2 → 1.0.0-rc.20
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/README.md +1 -1
- package/dist/index.mjs +6 -1
- package/dist/manifest.json +6 -1
- package/dist/plugin.mjs +7 -6
- package/dist/ts/astro/lib/call.d.ts +2 -0
- package/dist/ts/astro/lib/call.js +2 -0
- package/dist/ts/astro/lib/page.d.ts +44 -0
- package/dist/ts/astro/lib/page.js +123 -0
- package/dist/ts/integration/index.d.ts +13 -0
- package/dist/ts/integration/index.js +13 -0
- package/emdash-plugin.jsonc +5 -0
- package/package.json +6 -2
- package/src/astro/AttendeeList.astro +9 -12
- package/src/astro/BookingPage.astro +71 -10
- package/src/astro/BookingStatus.astro +204 -53
- package/src/astro/BookingWidget.astro +226 -52
- package/src/astro/CancelBooking.astro +80 -0
- package/src/astro/PageBrand.astro +18 -0
- package/src/astro/PageOrganiser.astro +22 -0
- package/src/astro/TicketPass.astro +131 -33
- package/src/astro/checkout-endpoint.ts +21 -3
- package/src/astro/lib/attendees.ts +52 -4
- package/src/astro/lib/book-link.ts +46 -0
- package/src/astro/lib/call.ts +4 -0
- package/src/astro/lib/checkout-form.ts +49 -1
- package/src/astro/lib/list.ts +22 -0
- package/src/astro/lib/page.ts +143 -0
- package/src/astro/lib/pass.ts +9 -0
- package/src/astro/lib/payment.ts +6 -10
- package/src/astro/lib/widget.ts +113 -5
- package/src/astro/virtual.d.ts +25 -1
- package/src/client/forget-form.ts +16 -0
- package/src/client/picker.ts +20 -9
- package/src/client/print.ts +12 -0
- package/src/i18n/ar.ts +46 -1
- package/src/i18n/en.ts +47 -1
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
// i18n-ignore-file: a stylesheet and its option names, no text for people.
|
|
2
|
+
/**
|
|
3
|
+
* The look of the plugins' own full pages (`/booking`, the suite's `/_events/waiver`), which run outside the
|
|
4
|
+
* site's layout: a default stylesheet built only on the `--events-*` properties, and what a site sets through
|
|
5
|
+
* `eventsIntegration({ page })` / `eventsSuite({ page })`. It is one exact string so the signing page can allow
|
|
6
|
+
* it by hash (its CSP allows nothing else inline, `ceremonyCsp`). Web APIs only (R35).
|
|
7
|
+
*
|
|
8
|
+
* The site's own layout is deliberately not wrapped around these pages: an emailed link's one-time code is in the
|
|
9
|
+
* URL here, and a signing page's CSP would block the layout's scripts and styles anyway.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/** A theme value by property: `accent` sets `--events-accent` (the signing form follows, see `PAGE_CSS`). */
|
|
13
|
+
export const THEME_PROPERTIES = [
|
|
14
|
+
"fg",
|
|
15
|
+
"muted",
|
|
16
|
+
"bg",
|
|
17
|
+
"border",
|
|
18
|
+
"accent",
|
|
19
|
+
"accent-fg",
|
|
20
|
+
"error",
|
|
21
|
+
"success",
|
|
22
|
+
"radius",
|
|
23
|
+
"font",
|
|
24
|
+
"page-bg",
|
|
25
|
+
"heading-font",
|
|
26
|
+
"heading-fg",
|
|
27
|
+
] as const;
|
|
28
|
+
export type ThemeProperty = (typeof THEME_PROPERTIES)[number];
|
|
29
|
+
export interface PageBrand {
|
|
30
|
+
/** The site's name: the link's text, or the logo's alternative text. Also the organiser at the page's foot. */
|
|
31
|
+
name: string;
|
|
32
|
+
/** Where it links, a path on this site (default `/`). */
|
|
33
|
+
href?: string;
|
|
34
|
+
/** A logo, a path on this site. */
|
|
35
|
+
logo?: string;
|
|
36
|
+
/** The organiser's postal address, one line, at the page's foot and on a printed booking (T157). */
|
|
37
|
+
address?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** One line of text for people: 1 to 300 characters, no control characters (line breaks included). */
|
|
41
|
+
function oneLine(value: unknown): boolean {
|
|
42
|
+
if (typeof value !== "string" || !value.trim() || value.length > 300) return false;
|
|
43
|
+
for (let i = 0; i < value.length; i++) {
|
|
44
|
+
const unit = value.charCodeAt(i);
|
|
45
|
+
if (unit <= 0x1f || unit === 0x7f) return false;
|
|
46
|
+
}
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface PageOptions {
|
|
51
|
+
/** Values for the pages' custom properties, for example `{ accent: "#1f3a2e", "page-bg": "#f6f1ea" }`. */
|
|
52
|
+
theme?: Partial<Record<ThemeProperty, string>>;
|
|
53
|
+
/** A stylesheet on this site, loaded after the defaults: for `@font-face`, or any further rules. */
|
|
54
|
+
stylesheet?: string;
|
|
55
|
+
/** The site's name or logo at the top of each page. */
|
|
56
|
+
brand?: PageBrand;
|
|
57
|
+
/** The event's page, where "Book again" goes: a path with `{slug}` (default `/events/{slug}`). */
|
|
58
|
+
eventPath?: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** One line of CSS, nothing that could end the declaration, the rule or the `<style>` element. */
|
|
62
|
+
const THEME_VALUE = /^[^;{}<>\\@]{1,200}$/;
|
|
63
|
+
/** A path on this site; `;` and `,` would end a source in the signing page's CSP header. */
|
|
64
|
+
const SITE_PATH = /^\/(?!\/)[^\s"'<>\\;,]*$/;
|
|
65
|
+
|
|
66
|
+
/** Checks a site's page options when the site's config loads; a bad value stops the build with its name. */
|
|
67
|
+
export function checkPageOptions(page: PageOptions = {}): PageOptions {
|
|
68
|
+
const refuse = (what: string) => {
|
|
69
|
+
throw new Error(`page.${what} is not valid`); // i18n-ignore
|
|
70
|
+
};
|
|
71
|
+
for (const [name, value] of Object.entries(page.theme ?? {})) {
|
|
72
|
+
const known = (THEME_PROPERTIES as readonly string[]).includes(name);
|
|
73
|
+
if (!known || typeof value !== "string" || !THEME_VALUE.test(value) || /url\(/i.test(value))
|
|
74
|
+
refuse(`theme.${name}`);
|
|
75
|
+
}
|
|
76
|
+
const { brand, stylesheet, eventPath } = page;
|
|
77
|
+
if (stylesheet !== undefined && !SITE_PATH.test(stylesheet)) refuse("stylesheet");
|
|
78
|
+
if (eventPath !== undefined && !(SITE_PATH.test(eventPath) && eventPath.includes("{slug}"))) refuse("eventPath");
|
|
79
|
+
if (brand) {
|
|
80
|
+
if (typeof brand.name !== "string" || !brand.name.trim()) refuse("brand.name");
|
|
81
|
+
if (brand.href !== undefined && !SITE_PATH.test(brand.href)) refuse("brand.href");
|
|
82
|
+
if (brand.logo !== undefined && !SITE_PATH.test(brand.logo)) refuse("brand.logo");
|
|
83
|
+
if (brand.address !== undefined && !oneLine(brand.address)) refuse("brand.address");
|
|
84
|
+
}
|
|
85
|
+
return page;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** The event's page for "Book again"; undefined when the booking does not know its slug. */
|
|
89
|
+
export function eventPageHref(slug: string | null | undefined, eventPath?: string): string | undefined {
|
|
90
|
+
return slug ? (eventPath ?? "/events/{slug}").replace("{slug}", encodeURIComponent(slug)) : undefined;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Works with no site theme at all. Zero specificity on elements, so the components' own rules win; except the card
|
|
95
|
+
* rule for `main`'s sections, which outranks a component's own box (`.semics-payment`, `.semics-attendee-list`) so
|
|
96
|
+
* every card has the same edges, width and look (T158).
|
|
97
|
+
*/
|
|
98
|
+
export const PAGE_CSS = `*,*::before,*::after{box-sizing:border-box}
|
|
99
|
+
html{color-scheme:light;-webkit-text-size-adjust:100%}
|
|
100
|
+
body.semics-page{margin:0;min-block-size:100vh;background:var(--events-page-bg, #f5f4f0);color:var(--events-fg, #1a1a1a);font-family:var(--events-font, system-ui, sans-serif);font-size:1.0625rem;line-height:1.55;overflow-wrap:anywhere;
|
|
101
|
+
--esign-fg:var(--events-fg, #1a1a1a);--esign-muted:var(--events-muted, #4a4a4a);--esign-bg:var(--events-bg, #ffffff);--esign-border:var(--events-border, #6b6b6b);--esign-accent:var(--events-accent, #0b57d0);--esign-accent-fg:var(--events-accent-fg, #ffffff);--esign-error:var(--events-error, #b3261e);--esign-radius:var(--events-radius, 6px);--esign-font:var(--events-font, system-ui, sans-serif)}
|
|
102
|
+
.semics-page-brand{max-inline-size:40rem;margin-inline:auto;padding:1.25rem 1rem 0;font-family:var(--events-heading-font, inherit);font-weight:600}
|
|
103
|
+
.semics-page-brand a{color:var(--events-heading-fg, inherit);text-decoration:none}
|
|
104
|
+
.semics-page-brand img{display:block;block-size:2.5rem;inline-size:auto;max-inline-size:100%}
|
|
105
|
+
.semics-page-main{max-inline-size:40rem;margin-inline:auto;padding:1.5rem 1rem 2rem}
|
|
106
|
+
:where(.semics-page) :is(h1,h2,h3){margin:0 0 .75rem;font-family:var(--events-heading-font, inherit);color:var(--events-heading-fg, inherit);line-height:1.2}
|
|
107
|
+
:where(.semics-page) h1{margin-block-end:1.25rem;font-size:clamp(1.75rem,1.5rem + 1.5vw,2.25rem)}
|
|
108
|
+
:where(.semics-page) h2{font-size:1.25rem}
|
|
109
|
+
:where(.semics-page) h3{font-size:1.0625rem}
|
|
110
|
+
:where(.semics-page) p{margin:0 0 .75rem}
|
|
111
|
+
:where(.semics-page) a{color:var(--events-accent, #0b57d0);text-underline-offset:.2em}
|
|
112
|
+
:where(.semics-page) :focus-visible{outline:3px solid var(--events-accent, #0b57d0);outline-offset:2px}
|
|
113
|
+
.semics-page-main > :is(section,form:not([hidden]),.semics-ceremony){margin-block:0 1.25rem;padding:clamp(1.25rem,.9rem + 1.8vw,1.75rem);background:var(--events-bg, #ffffff);border:1px solid color-mix(in srgb,var(--events-border, #6b6b6b) 30%,transparent);border-radius:calc(var(--events-radius, 6px) + 6px);box-shadow:0 1px 2px rgb(0 0 0 / .04),0 6px 24px rgb(0 0 0 / .05);max-inline-size:none}
|
|
114
|
+
:where(.semics-page-main > section,.semics-page-main > form,.semics-page-main > .semics-ceremony) > :last-child{margin-block-end:0}
|
|
115
|
+
:where(.semics-page) [role="alert"]{padding:.75rem 1rem;border:1px solid var(--events-error, #b3261e);border-radius:var(--events-radius, 6px);background:var(--events-bg, #ffffff);color:var(--events-error, #b3261e)}
|
|
116
|
+
:where(.semics-page) :is(input:not([type="checkbox"],[type="radio"],[type="hidden"]),select,textarea){font:inherit;inline-size:100%;min-block-size:2.75rem;padding:.5rem .75rem;border:1px solid var(--events-border, #6b6b6b);border-radius:var(--events-radius, 6px);background:var(--events-bg, #ffffff);color:var(--events-fg, #1a1a1a)}
|
|
117
|
+
:where(.semics-page) label{display:block}
|
|
118
|
+
:where(.semics-page) fieldset{min-inline-size:0;margin:0 0 1rem;padding:0;border:0}
|
|
119
|
+
:where(.semics-page) legend{padding:0;margin-block-end:.5rem;font-weight:600}
|
|
120
|
+
:where(.semics-page) button{font:inherit;font-weight:600;min-block-size:2.75rem;padding:.625rem 1.25rem;border:1px solid var(--events-accent, #0b57d0);border-radius:var(--events-radius, 6px);background:var(--events-accent, #0b57d0);color:var(--events-accent-fg, #ffffff);cursor:pointer}
|
|
121
|
+
:where(.semics-page) a.semics-page-button{display:inline-block;font-weight:600;padding:.625rem 1.25rem;border:1px solid var(--events-accent, #0b57d0);border-radius:var(--events-radius, 6px);background:var(--events-accent, #0b57d0);color:var(--events-accent-fg, #ffffff);text-decoration:none}
|
|
122
|
+
.semics-page-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1.25rem;margin-block:0 1.25rem}
|
|
123
|
+
.semics-page-actions .semics-print{background:transparent;color:var(--events-accent, #0b57d0)}
|
|
124
|
+
.semics-page-organiser{max-inline-size:40rem;margin-inline:auto;padding:0 1rem 3rem;color:var(--events-muted, #4a4a4a);font-size:.9375rem}
|
|
125
|
+
.semics-page-organiser p{margin:0}
|
|
126
|
+
.semics-page-organiser address{font-style:normal}
|
|
127
|
+
@media print{
|
|
128
|
+
@page{margin:15mm}
|
|
129
|
+
body.semics-page{min-block-size:0;background:#ffffff;color:#000000;font-size:11pt}
|
|
130
|
+
.semics-page-brand,.semics-page-actions,.semics-page-main form,.semics-page-main button,.semics-page-main details,.semics-add-to-calendar,[data-semics-payment-live]{display:none !important}
|
|
131
|
+
.semics-page-main{max-inline-size:none;padding:0}
|
|
132
|
+
.semics-page-main > :is(section,form:not([hidden]),.semics-ceremony){box-shadow:none;border-color:#999999;break-inside:avoid}
|
|
133
|
+
.semics-ticket-pass{break-inside:avoid}
|
|
134
|
+
.semics-page-organiser{max-inline-size:none;padding:1rem 0 0;color:#000000}
|
|
135
|
+
}
|
|
136
|
+
`;
|
|
137
|
+
|
|
138
|
+
/** The stylesheet for a page: the defaults, then the site's theme. Exact: the signing page hashes this text. */
|
|
139
|
+
export function pageCss(page: PageOptions = {}): string {
|
|
140
|
+
const set = Object.entries(page.theme ?? {}) as Array<[ThemeProperty, string]>;
|
|
141
|
+
if (set.length === 0) return PAGE_CSS;
|
|
142
|
+
return `${PAGE_CSS}:root{${set.map(([name, value]) => `--events-${name}:${value}`).join(";")}}\n`;
|
|
143
|
+
}
|
package/src/astro/lib/pass.ts
CHANGED
|
@@ -33,3 +33,12 @@ export function qrPath(qr: unknown): QrPath | null {
|
|
|
33
33
|
}
|
|
34
34
|
return { size, d };
|
|
35
35
|
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* A check-in code in groups of four for reading (T158): the pass draws each group as its own span, spaced by CSS, so
|
|
39
|
+
* the text (and a copy of it) stays the exact value door check-in takes. A short code (12 or fewer) stays whole.
|
|
40
|
+
*/
|
|
41
|
+
export function codeGroups(code: string): string[] {
|
|
42
|
+
if (code.length <= 12) return code ? [code] : [];
|
|
43
|
+
return code.match(/.{1,4}/gsu) ?? [];
|
|
44
|
+
}
|
package/src/astro/lib/payment.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* way" are told apart by asking the core, never by a query parameter.
|
|
6
6
|
*/
|
|
7
7
|
import { type MessageKey, t } from "../../i18n/index";
|
|
8
|
+
import { zonedAt } from "./list";
|
|
8
9
|
import type { BookingView } from "./widget";
|
|
9
10
|
|
|
10
11
|
export type PaymentState = "confirmed" | "pending" | "expired" | "cancelled" | "refunded" | "refunded_unavailable";
|
|
@@ -19,15 +20,6 @@ export interface PaymentView {
|
|
|
19
20
|
resume: boolean;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
const utc = (iso: string, locale: string) => {
|
|
23
|
-
try {
|
|
24
|
-
const at = new Intl.DateTimeFormat(locale, { dateStyle: "medium", timeStyle: "short", timeZone: "UTC" });
|
|
25
|
-
return t(locale, "time.utc", { time: at.format(new Date(iso)) });
|
|
26
|
-
} catch {
|
|
27
|
-
return iso;
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
|
|
31
23
|
/** The provider's payment page is followed only when it is an `https:` URL (never `javascript:` or `//host`). */
|
|
32
24
|
export function isPayUrl(value: unknown): value is string {
|
|
33
25
|
if (typeof value !== "string" || !value.startsWith("https://")) return false;
|
|
@@ -49,13 +41,17 @@ const final = (state: PaymentState, locale: string): PaymentView => ({
|
|
|
49
41
|
/** The payment section for a booking, or `null` when there is nothing to say about money. */
|
|
50
42
|
export function paymentView(booking: BookingView, locale = "en-GB"): PaymentView | null {
|
|
51
43
|
const paid = booking.totals.totalMinor > 0;
|
|
44
|
+
// Ran out waiting for the organiser: not about a payment (`endedNotes` says what happened).
|
|
45
|
+
if (booking.status === "expired" && booking.undecided) return null;
|
|
52
46
|
switch (booking.status) {
|
|
53
47
|
case "awaiting_payment":
|
|
54
48
|
return {
|
|
55
49
|
state: "pending",
|
|
56
50
|
heading: t(locale, "payment.pending.heading"),
|
|
57
51
|
body: booking.holdExpiresAt
|
|
58
|
-
? t(locale, "payment.pending.bodyUntil", {
|
|
52
|
+
? t(locale, "payment.pending.bodyUntil", {
|
|
53
|
+
time: zonedAt(booking.holdExpiresAt, booking.event?.timezone, locale),
|
|
54
|
+
})
|
|
59
55
|
: t(locale, "payment.pending.body"),
|
|
60
56
|
poll: true,
|
|
61
57
|
resume: true,
|
package/src/astro/lib/widget.ts
CHANGED
|
@@ -32,25 +32,73 @@ export interface PublicEvent {
|
|
|
32
32
|
more?: boolean;
|
|
33
33
|
/** The event sells slots of a schedule (T129): the form uses the day-then-time picker (T130). */
|
|
34
34
|
slots?: boolean;
|
|
35
|
+
/** The event takes booking requests (T174a): the form asks for a date and a time window instead of a date. */
|
|
36
|
+
requests?: PublicRequests;
|
|
35
37
|
/** Public Turnstile site key, when the site owner configured one. */
|
|
36
38
|
turnstileSiteKey?: string;
|
|
37
39
|
/** True when the event requires a signed waiver (T066): the booking form then asks for attendees. */
|
|
38
40
|
waiver?: boolean;
|
|
41
|
+
/** Events Pro: that waiver is signed per attendee, so its seat rules can be checked before reserving. */
|
|
42
|
+
waiverEach?: boolean;
|
|
43
|
+
/** Events Pro (T160): the waiver is signed after payment (`waiverTiming: "after-payment"`), for a paid order. */
|
|
44
|
+
waiverAfter?: boolean;
|
|
39
45
|
/** True when the core takes promo codes (Events Pro, T078): the widget then shows a code field. */
|
|
40
46
|
promoCodes?: boolean;
|
|
47
|
+
/** True when Events Pro is paired with Vouchers (T166): the widget then shows a "Gift voucher code" field. */
|
|
48
|
+
vouchers?: boolean;
|
|
41
49
|
/** True when a sold-out event takes a waitlist (T081): the widget then shows a "Join the waitlist" form. */
|
|
42
50
|
waitlist?: boolean;
|
|
43
51
|
/** Custom attendee questions (Events Pro, T080): the buyer answers them once per booking. */
|
|
44
52
|
questions?: PublicQuestion[];
|
|
45
53
|
}
|
|
46
54
|
|
|
55
|
+
/** What an event takes booking requests for (T174a): windows in local `HH:MM`, weekdays `MO`..`SU`. */
|
|
56
|
+
export interface PublicRequests {
|
|
57
|
+
windows: Array<{ id: string; label: string; start: string; end: string }>;
|
|
58
|
+
days: string[];
|
|
59
|
+
aheadDays: number;
|
|
60
|
+
noticeDays: number;
|
|
61
|
+
closedDates: string[];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const WEEKDAYS = ["SU", "MO", "TU", "WE", "TH", "FR", "SA"];
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The dates a request may ask for (T174a), as the core checks them: allowed weekdays from `noticeDays` to
|
|
68
|
+
* `aheadDays` after today in the event's zone, without closed dates. `value` is the local `YYYY-MM-DD`.
|
|
69
|
+
*/
|
|
70
|
+
export function requestDates(
|
|
71
|
+
r: PublicRequests,
|
|
72
|
+
zone: string,
|
|
73
|
+
now: number,
|
|
74
|
+
locale?: string,
|
|
75
|
+
): Array<{ value: string; label: string }> {
|
|
76
|
+
let today: string;
|
|
77
|
+
try {
|
|
78
|
+
today = new Intl.DateTimeFormat("en-CA", { timeZone: zone }).format(new Date(now));
|
|
79
|
+
} catch {
|
|
80
|
+
today = new Date(now).toISOString().slice(0, 10);
|
|
81
|
+
}
|
|
82
|
+
const start = Date.parse(`${today}T00:00:00Z`);
|
|
83
|
+
const label = new Intl.DateTimeFormat(locale, { dateStyle: "full", timeZone: "UTC" });
|
|
84
|
+
const out: Array<{ value: string; label: string }> = [];
|
|
85
|
+
for (let i = r.noticeDays; i <= r.aheadDays; i++) {
|
|
86
|
+
const day = new Date(start + i * 864e5);
|
|
87
|
+
const value = day.toISOString().slice(0, 10);
|
|
88
|
+
if (r.days.includes(WEEKDAYS[day.getUTCDay()] as string) && !r.closedDates.includes(value)) {
|
|
89
|
+
out.push({ value, label: label.format(day) });
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return out;
|
|
93
|
+
}
|
|
94
|
+
|
|
47
95
|
/**
|
|
48
96
|
* Ticket type names by id from a `public/event` answer, for `<BookingStatus>` (T134): the booking's
|
|
49
97
|
* lines carry only ids (UUIDs for types made in the editor). A hidden type is not listed there.
|
|
50
98
|
*/
|
|
51
99
|
/** Whether the booking page hands the booking to the suite's reconciliation: lookups, or void intents (T152). */
|
|
52
|
-
export const reconcileWanted = (b: Pick<BookingView, "waiver"> | undefined): boolean =>
|
|
53
|
-
Boolean(b?.waiver?.lookups || b?.waiver?.voids);
|
|
100
|
+
export const reconcileWanted = (b: Pick<BookingView, "waiver" | "voucher"> | undefined): boolean =>
|
|
101
|
+
Boolean(b?.waiver?.lookups || b?.waiver?.voids || b?.voucher?.settle);
|
|
54
102
|
|
|
55
103
|
export function ticketNames(event: Pick<PublicEvent, "ticketTypes"> | undefined): Record<string, string> {
|
|
56
104
|
return Object.fromEntries((event?.ticketTypes ?? []).map((t) => [t.id, t.name]));
|
|
@@ -72,8 +120,26 @@ export interface BookingView {
|
|
|
72
120
|
status: string;
|
|
73
121
|
eventId?: string;
|
|
74
122
|
lines: Array<{ ticketTypeId: string; qty: number }>;
|
|
75
|
-
|
|
123
|
+
/** `voucherMinor`: what a gift voucher paid (Events Pro, T166), already taken off `totalMinor`. */
|
|
124
|
+
totals: { totalMinor: number; currency: string; voucherMinor?: number };
|
|
125
|
+
/** Events Pro (T166): the voucher hold's signed outcome, which the suite passes to Vouchers. */
|
|
126
|
+
voucher?: { settle?: string | null };
|
|
76
127
|
holdExpiresAt?: string;
|
|
128
|
+
/** The event's public info: the booked session (`startsAt`, in `timezone`) and `venue` lead the page (T157); `slug` for "Book again". */
|
|
129
|
+
event?: { title?: string; startsAt?: string; timezone?: string | null; venue?: string | null; slug?: string | null };
|
|
130
|
+
/** A booking request whose time is still to be agreed (T174a): what was asked for, "Sat 12 Dec, AM". */
|
|
131
|
+
requested?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Events Pro (T174c): another time the organiser proposed for a request awaiting approval. The buyer accepts it or
|
|
134
|
+
* says it doesn't work (`public/booking/request/accept` / `.../refuse`) by `holdExpiresAt`.
|
|
135
|
+
*/
|
|
136
|
+
proposed?: { startsAt: string; endsAt?: string };
|
|
137
|
+
/** Why the organiser declined (`status: "declined"`), when they said. */
|
|
138
|
+
declineReason?: string | null;
|
|
139
|
+
/** Declined, a price was due and no money was taken (`closeBooking`). */
|
|
140
|
+
notCharged?: boolean;
|
|
141
|
+
/** Expired, this means it ran out waiting for the organiser's decision (Pro: not one approved but left unpaid). */
|
|
142
|
+
undecided?: boolean;
|
|
77
143
|
/** `qr`: Events Pro's QR matrix of `code` (T082), drawn by `<TicketPass>`; Free sends none. */
|
|
78
144
|
attendees: Array<{ name: string; ticketTypeId?: string; status: string; code?: string; qr?: unknown }>;
|
|
79
145
|
canCancel: boolean;
|
|
@@ -86,6 +152,8 @@ export interface BookingView {
|
|
|
86
152
|
* has ended (expired, cancelled), Pro lists instead a void intent per seat not signed (T152).
|
|
87
153
|
*/
|
|
88
154
|
waiver?: { refs: string[]; lookups?: Record<string, string>; voids?: Record<string, string> };
|
|
155
|
+
/** Events Pro (T160): the booking's waiver comes after payment, so a paid booking is confirmed with seats still to sign. */
|
|
156
|
+
waiverAfter?: boolean;
|
|
89
157
|
/**
|
|
90
158
|
* Events Pro (T133): a waiver booking's attendee signing list. Each attendee then also carries
|
|
91
159
|
* `seat`, `signing`, `signs`, `email` and `minor` (`SigningAttendee` in `lib/attendees.ts`);
|
|
@@ -96,13 +164,13 @@ export interface BookingView {
|
|
|
96
164
|
|
|
97
165
|
/** A custom question's field is `q:<question id>` (T080). */
|
|
98
166
|
export type QuestionField = `q:${string}`;
|
|
99
|
-
export type WidgetField = "occurrence" | "promo" | "tickets" | "name" | "email" | QuestionField;
|
|
167
|
+
export type WidgetField = "occurrence" | "promo" | "voucher" | "tickets" | "name" | "email" | QuestionField;
|
|
100
168
|
|
|
101
169
|
/** Question ids safe in HTML ids, field names and the widget's error URL. */
|
|
102
170
|
export const QUESTION_ID = /^[A-Za-z0-9_-]{1,64}$/;
|
|
103
171
|
|
|
104
172
|
/** In form order: the first one is where focus goes. */
|
|
105
|
-
export const WIDGET_FIELDS = ["occurrence", "promo", "tickets", "name", "email"] as const;
|
|
173
|
+
export const WIDGET_FIELDS = ["occurrence", "promo", "voucher", "tickets", "name", "email"] as const;
|
|
106
174
|
|
|
107
175
|
export const WIDGET_PARAMS = { error: "booking_error", fields: "booking_fields", event: "booking_event" } as const;
|
|
108
176
|
|
|
@@ -121,6 +189,11 @@ const ERROR_CODES = [
|
|
|
121
189
|
"PROMO_EXHAUSTED",
|
|
122
190
|
"PROMO_ORDER_TOO_LARGE",
|
|
123
191
|
"PROMO_UNAVAILABLE",
|
|
192
|
+
"VOUCHER_INVALID",
|
|
193
|
+
"VOUCHER_NO_BALANCE",
|
|
194
|
+
"VOUCHER_WRONG_ACTIVITY",
|
|
195
|
+
"VOUCHER_CURRENCY",
|
|
196
|
+
"VOUCHER_UNAVAILABLE",
|
|
124
197
|
"INTERNAL",
|
|
125
198
|
] as const;
|
|
126
199
|
|
|
@@ -228,6 +301,8 @@ export function validateCheckoutFields(v: CheckoutFieldValues): WidgetField[] {
|
|
|
228
301
|
|
|
229
302
|
const ISSUE_FIELDS: Array<[RegExp, WidgetField]> = [
|
|
230
303
|
[/^occurrenceId/, "occurrence"],
|
|
304
|
+
// A refused booking request's date or window (T174a): the request's date field is the "occurrence" one.
|
|
305
|
+
[/^request/, "occurrence"],
|
|
231
306
|
[/^lines/, "tickets"],
|
|
232
307
|
[/^buyer\.name/, "name"],
|
|
233
308
|
[/^buyer\.email/, "email"],
|
|
@@ -302,3 +377,36 @@ export const statusLabel = (status: string, locale?: string) =>
|
|
|
302
377
|
|
|
303
378
|
/** English status labels (the 1.0 API; components use `statusLabel`). */
|
|
304
379
|
export const STATUS_LABELS: Record<string, string> = Object.fromEntries(STATUSES.map((s) => [s, statusLabel(s, "en")]));
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* The booking as it stands at `now`: a hold past its deadline has lapsed even before the sweeper moves it (the core
|
|
383
|
+
* refuses anything on it, and the waiver page already says so), so the page shows it as expired.
|
|
384
|
+
*/
|
|
385
|
+
export function asOfNow<T extends Pick<BookingView, "status" | "holdExpiresAt" | "canCancel">>(
|
|
386
|
+
booking: T,
|
|
387
|
+
now: number,
|
|
388
|
+
): T {
|
|
389
|
+
const until = booking.holdExpiresAt ? Date.parse(booking.holdExpiresAt) : Number.NaN;
|
|
390
|
+
if (!(until <= now)) return booking;
|
|
391
|
+
const { holdExpiresAt: _gone, ...rest } = booking;
|
|
392
|
+
return { ...rest, status: "expired", canCancel: false } as T;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/** What a booking that ended without going ahead should say beyond its status (declined, or lapsed). */
|
|
396
|
+
export function endedNotes(
|
|
397
|
+
booking: Pick<BookingView, "status" | "declineReason" | "notCharged" | "undecided"> & {
|
|
398
|
+
totals?: BookingView["totals"];
|
|
399
|
+
},
|
|
400
|
+
locale?: string,
|
|
401
|
+
) {
|
|
402
|
+
if (booking.status === "expired") {
|
|
403
|
+
if (booking.undecided) return [t(locale, "booking.undecided")];
|
|
404
|
+
// A paid one has the payment section's "This booking expired": only what that does not say.
|
|
405
|
+
return [t(locale, booking.totals?.totalMinor ? "booking.signAgain" : "booking.lapsed")];
|
|
406
|
+
}
|
|
407
|
+
if (booking.status !== "declined") return [];
|
|
408
|
+
return [
|
|
409
|
+
...(booking.declineReason ? [t(locale, "booking.declinedReason", { reason: booking.declineReason })] : []),
|
|
410
|
+
...(booking.notCharged ? [t(locale, "booking.notCharged")] : []),
|
|
411
|
+
];
|
|
412
|
+
}
|
package/src/astro/virtual.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// Provided by the integration's Vite plugin (`eventsIntegration({ pluginId })`).
|
|
2
2
|
declare module "virtual:semics-events/config" {
|
|
3
3
|
export const pluginId: string;
|
|
4
|
+
/** How the site dresses the plugin's own pages (`eventsIntegration({ page })`). */
|
|
5
|
+
export const page: import("./lib/page").PageOptions;
|
|
4
6
|
/** The e-sign core's plugin id, or `null` when e-sign is not configured (`eventsIntegration({ esignPluginId })`). */
|
|
5
7
|
export const esignPluginId: string | null;
|
|
6
8
|
/**
|
|
@@ -10,7 +12,29 @@ declare module "virtual:semics-events/config" {
|
|
|
10
12
|
export const reconcile:
|
|
11
13
|
| ((
|
|
12
14
|
ctx: import("./lib/call").PublicRouteContext,
|
|
13
|
-
input: {
|
|
15
|
+
input: {
|
|
16
|
+
booking: import("./lib/widget").BookingView;
|
|
17
|
+
pluginId: string;
|
|
18
|
+
esignPluginId: string;
|
|
19
|
+
vouchersPluginId?: string;
|
|
20
|
+
},
|
|
14
21
|
) => Promise<{ forwarded: number }>)
|
|
15
22
|
| null;
|
|
23
|
+
/** Gift vouchers (T166): only exported with `eventsIntegration({ vouchers })`; read through a namespace import. */
|
|
24
|
+
export const vouchersPluginId: string | undefined;
|
|
25
|
+
export const holdVoucher:
|
|
26
|
+
| ((
|
|
27
|
+
ctx: import("./lib/call").PublicRouteContext,
|
|
28
|
+
input: { code: string; bookingRef: string; accessToken: string },
|
|
29
|
+
ids: { eventsPluginId: string; vouchersPluginId: string },
|
|
30
|
+
) => Promise<import("./lib/checkout-form").VoucherHoldResult>)
|
|
31
|
+
| undefined;
|
|
32
|
+
/** T168: the suite's check of a code before reserving; exported with `holdVoucher`. */
|
|
33
|
+
export const checkVoucher:
|
|
34
|
+
| ((
|
|
35
|
+
ctx: import("./lib/call").PublicRouteContext,
|
|
36
|
+
input: { code: string; eventId: string; ticketTypeIds: string[] },
|
|
37
|
+
ids: { vouchersPluginId: string },
|
|
38
|
+
) => Promise<{ ok: true } | { ok: false; code: string }>)
|
|
39
|
+
| undefined;
|
|
16
40
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Forgets what the suite's booking form kept for a refusal (`keep-form.ts` in the suite): a person who reaches the
|
|
3
|
+
* booking page has got past the form, and on a shared device their details must not linger. Self-contained.
|
|
4
|
+
*/
|
|
5
|
+
export function forgetKeptForms(storage: Pick<Storage, "length" | "key" | "removeItem">): void {
|
|
6
|
+
for (let i = storage.length - 1; i >= 0; i--) {
|
|
7
|
+
const key = storage.key(i);
|
|
8
|
+
if (key?.startsWith("semics-waiver-form:")) storage.removeItem(key);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
try {
|
|
13
|
+
if (typeof document !== "undefined") forgetKeptForms(sessionStorage);
|
|
14
|
+
} catch {
|
|
15
|
+
// Storage is blocked: nothing was kept either.
|
|
16
|
+
}
|
package/src/client/picker.ts
CHANGED
|
@@ -60,10 +60,14 @@ export function enhancePicker(picker: HTMLElement): void {
|
|
|
60
60
|
const radios = (group: HTMLElement) => Array.from(group.querySelectorAll<HTMLButtonElement>('[role="radio"]'));
|
|
61
61
|
const isOpen = (b: HTMLElement) => b.getAttribute("aria-disabled") !== "true";
|
|
62
62
|
|
|
63
|
+
// The picker's own changes, which `showSelected` (below) need not follow.
|
|
64
|
+
let own = false;
|
|
63
65
|
const setSelect = (value: string) => {
|
|
64
66
|
if (select.value === value) return;
|
|
65
67
|
select.value = value;
|
|
68
|
+
own = true;
|
|
66
69
|
select.dispatchEvent(new Event("change", { bubbles: true }));
|
|
70
|
+
own = false;
|
|
67
71
|
};
|
|
68
72
|
|
|
69
73
|
const chooseTime = (button: HTMLButtonElement, focus: boolean) => {
|
|
@@ -127,15 +131,22 @@ export function enhancePicker(picker: HTMLElement): void {
|
|
|
127
131
|
}
|
|
128
132
|
}
|
|
129
133
|
|
|
130
|
-
// A value the browser kept (back/forward, a failed submit): show its day and time.
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
134
|
+
// A value the browser kept (back/forward, a failed submit): show its day and time. Also when a script sets
|
|
135
|
+
// the select later and says so with `change` (the suite's refused-form restore, whose script may run after
|
|
136
|
+
// this one, T157); the picker's own changes are skipped.
|
|
137
|
+
const showSelected = () => {
|
|
138
|
+
if (own) return;
|
|
139
|
+
const kept =
|
|
140
|
+
select.value && picker.querySelector<HTMLButtonElement>(`[data-occurrence="${CSS.escape(select.value)}"]`);
|
|
141
|
+
const keptDay =
|
|
142
|
+
kept && dayButtons.find((b) => b.dataset.day === kept.closest<HTMLElement>("[data-times]")?.dataset.times);
|
|
143
|
+
if (kept && keptDay) {
|
|
144
|
+
showDay(keptDay, false);
|
|
145
|
+
chooseTime(kept, false);
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
select.addEventListener("change", showSelected);
|
|
149
|
+
showSelected();
|
|
139
150
|
}
|
|
140
151
|
|
|
141
152
|
if (typeof document !== "undefined") {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* "Print or save as PDF" on the booking page (T157): the button stays hidden without JavaScript (it could do
|
|
3
|
+
* nothing there; the browser's own Print still uses the page's print stylesheet). Self-contained; no text.
|
|
4
|
+
*/
|
|
5
|
+
export function wirePrint(doc: Document, print: () => void): void {
|
|
6
|
+
for (const button of doc.querySelectorAll<HTMLButtonElement>("button[data-print]")) {
|
|
7
|
+
button.hidden = false;
|
|
8
|
+
button.addEventListener("click", () => print());
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
if (typeof document !== "undefined") wirePrint(document, () => window.print());
|
package/src/i18n/ar.ts
CHANGED
|
@@ -3,7 +3,6 @@ import type { Messages } from "./index";
|
|
|
3
3
|
/** Arabic (right to left). Plural forms follow `Intl.PluralRules("ar")`: zero, one, two, few, many, other. */
|
|
4
4
|
export const ar: Messages = {
|
|
5
5
|
"money.free": "مجاني",
|
|
6
|
-
"time.utc": "{time} بالتوقيت العالمي",
|
|
7
6
|
|
|
8
7
|
"list.heading": "الفعاليات القادمة",
|
|
9
8
|
"list.error": "الفعاليات غير متاحة الآن.",
|
|
@@ -20,6 +19,7 @@ export const ar: Messages = {
|
|
|
20
19
|
"widget.date": "التاريخ",
|
|
21
20
|
"widget.chooseDate": "اختر تاريخًا",
|
|
22
21
|
"widget.dateSoldOut": "{date} (نفدت التذاكر)",
|
|
22
|
+
"widget.window": "الفترة",
|
|
23
23
|
"widget.picker.earlier": "تواريخ سابقة",
|
|
24
24
|
"widget.picker.later": "تواريخ لاحقة",
|
|
25
25
|
"widget.picker.hint": "اختر يومًا لعرض مواعيده.",
|
|
@@ -34,6 +34,8 @@ export const ar: Messages = {
|
|
|
34
34
|
"widget.promo.label": "رمز الخصم",
|
|
35
35
|
"widget.promo.apply": "تطبيق الرمز",
|
|
36
36
|
"widget.promo.update": "تحديث الرمز",
|
|
37
|
+
"widget.voucher.label": "رمز قسيمة الهدية",
|
|
38
|
+
"widget.voucher.have": "هل لديك قسيمة هدية؟",
|
|
37
39
|
"widget.tickets": "التذاكر",
|
|
38
40
|
"widget.soldOut": "نفدت التذاكر",
|
|
39
41
|
"widget.name": "اسمك",
|
|
@@ -45,6 +47,7 @@ export const ar: Messages = {
|
|
|
45
47
|
"widget.book": "احجز",
|
|
46
48
|
"widget.field.occurrence": "اختر تاريخًا.",
|
|
47
49
|
"widget.field.promo": "تحقق من الرمز، أو اترك الحقل فارغًا.",
|
|
50
|
+
"widget.field.voucher": "تحقق من الرمز، أو اترك الحقل فارغًا.",
|
|
48
51
|
"widget.field.tickets": "اختر تذكرة واحدة على الأقل.",
|
|
49
52
|
"widget.field.name": "أدخل اسمك.",
|
|
50
53
|
"widget.field.email": "أدخل بريدًا إلكترونيًا صحيحًا.",
|
|
@@ -60,6 +63,11 @@ export const ar: Messages = {
|
|
|
60
63
|
"widget.error.PROMO_ORDER_TOO_LARGE":
|
|
61
64
|
"لا يمكن استخدام هذا الرمز لطلب بهذا الحجم. اطلب أنواعًا أقل من التذاكر في المرة الواحدة.",
|
|
62
65
|
"widget.error.PROMO_UNAVAILABLE": "لا يمكن استخدام هذا الرمز الآن. احذفه للحجز من دونه.",
|
|
66
|
+
"widget.error.VOUCHER_INVALID": "رمز قسيمة الهدية هذا غير صالح.",
|
|
67
|
+
"widget.error.VOUCHER_NO_BALANCE": "لم يتبقَّ رصيد في قسيمة الهدية هذه.",
|
|
68
|
+
"widget.error.VOUCHER_WRONG_ACTIVITY": "قسيمة الهدية هذه مخصصة لنشاط آخر.",
|
|
69
|
+
"widget.error.VOUCHER_CURRENCY": "قسيمة الهدية هذه بعملة مختلفة.",
|
|
70
|
+
"widget.error.VOUCHER_UNAVAILABLE": "لا يمكن استخدام قسائم الهدايا الآن. احذف الرمز للحجز بدونه.",
|
|
63
71
|
"widget.error.INTERNAL": "حدث خطأ ما. يُرجى المحاولة مرة أخرى.",
|
|
64
72
|
|
|
65
73
|
"waitlist.heading": "انضم إلى قائمة الانتظار",
|
|
@@ -101,12 +109,37 @@ export const ar: Messages = {
|
|
|
101
109
|
"booking.status": "حالة الحجز",
|
|
102
110
|
"booking.reference": "الرقم المرجعي",
|
|
103
111
|
"booking.heldUntil": "تذاكرك محجوزة حتى {time}.",
|
|
112
|
+
"booking.declinedReason": "سبب المنظّم: {reason}",
|
|
113
|
+
"booking.notCharged": "لم يُخصم أي مبلغ من بطاقتك.",
|
|
114
|
+
"booking.lapsed":
|
|
115
|
+
"انتهت صلاحية هذا الحجز لأنه لم يكتمل في الوقت المحدد، لذا أُتيحت أماكنه للآخرين. للمتابعة، ابدأ حجزًا جديدًا؛ وإذا كان هناك إقرار تنازل فستوقّعه مرة أخرى.",
|
|
116
|
+
"booking.undecided":
|
|
117
|
+
"لم يبتّ المنظّم في هذا الطلب في الوقت المحدد، لذا انتهت صلاحيته وأُتيحت أماكنه للآخرين. للمتابعة، ابدأ حجزًا جديدًا؛ وإذا كان هناك إقرار تنازل فستوقّعه مرة أخرى.",
|
|
118
|
+
"booking.signAgain": "إذا كان هناك إقرار تنازل، فستوقّعه مرة أخرى عند الحجز.",
|
|
119
|
+
"booking.bookAgain": "احجز مرة أخرى",
|
|
104
120
|
"booking.decideBy": "سيوافق المنظّم على طلبك أو يرفضه بحلول {time}، وسنراسلك بالبريد الإلكتروني.",
|
|
121
|
+
"booking.requestSent": "أُرسل الطلب: سنتفق معك على موعد.",
|
|
122
|
+
"booking.requested": "المطلوب: {when}، والموعد قيد الاتفاق.",
|
|
123
|
+
"booking.proposal.title": "اقترح المنظّم موعدًا آخر",
|
|
124
|
+
"booking.proposal.lead": "لا يمكننا الالتزام بالموعد الذي طلبته، لكن يمكننا تقديم هذا الموعد:",
|
|
125
|
+
"booking.proposal.answerBy": "يُرجى الرد بحلول {time}. إن لم تفعل، يسقط الطلب ويُردّ أي مبلغ مدفوع كاملًا.",
|
|
126
|
+
"booking.proposal.accept": "قبول هذا الموعد",
|
|
127
|
+
"booking.proposal.refuse": "هذا الموعد لا يناسبني",
|
|
128
|
+
"booking.proposal.refuseNote": "سيُلغى طلبك ويُردّ أي مبلغ مدفوع كاملًا.",
|
|
129
|
+
"booking.proposal.accepted": "شكرًا لك: تأكّد حجزك في الموعد الجديد.",
|
|
130
|
+
"booking.proposal.refused": "أُلغي طلبك. سيُردّ أي مبلغ مدفوع كاملًا.",
|
|
131
|
+
"booking.proposal.failed": "تعذّر علينا تسجيل ردّك. يُرجى المحاولة مرة أخرى.",
|
|
105
132
|
"booking.line": "{qty} × {name}",
|
|
133
|
+
"booking.voucher": "قسيمة هدية",
|
|
106
134
|
"booking.total": "المجموع",
|
|
107
135
|
"booking.cancelUntil": "يمكنك الإلغاء حتى {time}.",
|
|
108
136
|
"booking.cancel": "إلغاء الحجز",
|
|
109
137
|
"booking.cancelFailed": "تعذّر علينا إلغاء هذا الحجز.",
|
|
138
|
+
"booking.cancelConfirm": "يؤدي الإلغاء إلى تحرير أماكنك، ولا يمكن التراجع عنه.",
|
|
139
|
+
"booking.cancelYes": "نعم، ألغِ هذا الحجز",
|
|
140
|
+
"booking.attendeesHeading": "الحضور",
|
|
141
|
+
"booking.print": "اطبع أو احفظ بصيغة PDF",
|
|
142
|
+
"booking.organiser": "المنظِّم: {name}",
|
|
110
143
|
"booking.offer.intro": "التذاكر من قائمة الانتظار محجوزة لك. استلمها على هذا الجهاز؛ يعمل الرابط مرة واحدة.",
|
|
111
144
|
"booking.offer.button": "استلم تذاكري",
|
|
112
145
|
"booking.open.intro": "افتح حجزك على هذا الجهاز. يعمل الرابط مرة واحدة، وبعدها يتذكر هذا المتصفح حجزك.",
|
|
@@ -133,6 +166,8 @@ export const ar: Messages = {
|
|
|
133
166
|
"booking.attendees.signed": "موقَّع",
|
|
134
167
|
"booking.attendees.waiting": "بانتظار التوقيع",
|
|
135
168
|
"booking.attendees.minor": "دون 18 عامًا: توقّع أنت بصفتك وليّ الأمر.",
|
|
169
|
+
"booking.attendees.notArrived":
|
|
170
|
+
"لم تصل الدعوة؟ تحقّق من العنوان وأعد إرسالها، أو استخدم التوقيع الآن. لا يمكننا رؤية الرسائل المرتجعة: تبقى هذه القائمة على حالة الانتظار حتى يوقّعوا.",
|
|
136
171
|
"booking.attendees.emailed": "أُرسلت دعوة بالبريد الإلكتروني إلى {email}.",
|
|
137
172
|
"booking.attendees.signNow": "وقّع الآن على هذا الجهاز",
|
|
138
173
|
"booking.attendees.resend": "أعد إرسال الدعوة",
|
|
@@ -143,6 +178,15 @@ export const ar: Messages = {
|
|
|
143
178
|
"booking.attendees.save": "حفظ التغييرات",
|
|
144
179
|
"booking.attendees.saved": "حُفظت بيانات الحضور. كل من تغيّرت بياناته سيصله طلب توقيع جديد.",
|
|
145
180
|
"booking.attendees.resent": "أعدنا إرسال دعوة التوقيع.",
|
|
181
|
+
"booking.attendees.pending": "التنازل بانتظار التوقيع",
|
|
182
|
+
"booking.attendees.invited": "أرسلنا التنازل بالبريد الإلكتروني إلى البالغين الآخرين لتوقيعه.",
|
|
183
|
+
"booking.waiverStep.title": "الخطوة الأخيرة: وقّع التنازل",
|
|
184
|
+
"booking.waiverStep.lead":
|
|
185
|
+
"استلمنا الدفع. لا يزال على كل مشارك توقيع التنازل: إلى أن يفعل يظهر بانتظار التوقيع ولا يمكن تسجيل حضوره.",
|
|
186
|
+
"booking.waiverStep.sign": "وقّع التنازل",
|
|
187
|
+
"booking.waiverStep.invite": "أرسل التنازلات بالبريد",
|
|
188
|
+
"booking.waiverStep.emailed":
|
|
189
|
+
"يُرسل إلى البالغين الذين لديهم بريد إلكتروني خاص بهم التنازل لتوقيعه عند الضغط على الزر.",
|
|
146
190
|
"booking.error.ATTENDEE_SIGNED": "لا يمكن تغيير بيانات شخص وقّع إقرار التنازل.",
|
|
147
191
|
"booking.error.ATTENDEES_LOCKED": "لم يعد بالإمكان تغيير بيانات الحضور عبر الإنترنت.",
|
|
148
192
|
"booking.error.ATTENDEE_INVALID": "تحقّق من اسم كل شخص وعنوان بريده الإلكتروني.",
|
|
@@ -156,6 +200,7 @@ export const ar: Messages = {
|
|
|
156
200
|
|
|
157
201
|
"pass.qr": "رمز QR لرمز تسجيل الحضور",
|
|
158
202
|
"pass.code": "رمز تسجيل الحضور",
|
|
203
|
+
"pass.codeShow": "إظهار الرمز لكتابته يدويًا",
|
|
159
204
|
"pass.status.pending": "بانتظار توقيع إقرار التنازل",
|
|
160
205
|
"pass.status.cancelled": "ملغاة",
|
|
161
206
|
"calendar.add": "أضف إلى التقويم",
|