@semics-tech/emdash-events 1.0.0-rc.4 → 1.0.0-rc.6

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.
@@ -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/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": "الفعاليات غير متاحة الآن.",
@@ -101,6 +100,14 @@ export const ar: Messages = {
101
100
  "booking.status": "حالة الحجز",
102
101
  "booking.reference": "الرقم المرجعي",
103
102
  "booking.heldUntil": "تذاكرك محجوزة حتى {time}.",
103
+ "booking.declinedReason": "سبب المنظّم: {reason}",
104
+ "booking.notCharged": "لم يُخصم أي مبلغ من بطاقتك.",
105
+ "booking.lapsed":
106
+ "انتهت صلاحية هذا الحجز لأنه لم يكتمل في الوقت المحدد، لذا أُتيحت أماكنه للآخرين. للمتابعة، ابدأ حجزًا جديدًا؛ وإذا كان هناك إقرار تنازل فستوقّعه مرة أخرى.",
107
+ "booking.undecided":
108
+ "لم يبتّ المنظّم في هذا الطلب في الوقت المحدد، لذا انتهت صلاحيته وأُتيحت أماكنه للآخرين. للمتابعة، ابدأ حجزًا جديدًا؛ وإذا كان هناك إقرار تنازل فستوقّعه مرة أخرى.",
109
+ "booking.signAgain": "إذا كان هناك إقرار تنازل، فستوقّعه مرة أخرى عند الحجز.",
110
+ "booking.bookAgain": "احجز مرة أخرى",
104
111
  "booking.decideBy": "سيوافق المنظّم على طلبك أو يرفضه بحلول {time}، وسنراسلك بالبريد الإلكتروني.",
105
112
  "booking.line": "{qty} × {name}",
106
113
  "booking.total": "المجموع",
@@ -133,6 +140,8 @@ export const ar: Messages = {
133
140
  "booking.attendees.signed": "موقَّع",
134
141
  "booking.attendees.waiting": "بانتظار التوقيع",
135
142
  "booking.attendees.minor": "دون 18 عامًا: توقّع أنت بصفتك وليّ الأمر.",
143
+ "booking.attendees.notArrived":
144
+ "لم تصل الدعوة؟ تحقّق من العنوان وأعد إرسالها، أو استخدم التوقيع الآن. لا يمكننا رؤية الرسائل المرتجعة: تبقى هذه القائمة على حالة الانتظار حتى يوقّعوا.",
136
145
  "booking.attendees.emailed": "أُرسلت دعوة بالبريد الإلكتروني إلى {email}.",
137
146
  "booking.attendees.signNow": "وقّع الآن على هذا الجهاز",
138
147
  "booking.attendees.resend": "أعد إرسال الدعوة",
package/src/i18n/en.ts CHANGED
@@ -6,7 +6,6 @@
6
6
  */
7
7
  export const en = {
8
8
  "money.free": "Free",
9
- "time.utc": "{time} UTC",
10
9
 
11
10
  "list.heading": "Upcoming events",
12
11
  "list.error": "Events are unavailable right now.",
@@ -104,6 +103,14 @@ export const en = {
104
103
  "booking.reference": "Reference",
105
104
  "booking.heldUntil": "Your tickets are held until {time}.",
106
105
  "booking.decideBy": "The organiser will approve or decline your request by {time}; we will email you.",
106
+ "booking.declinedReason": "The organiser's reason: {reason}",
107
+ "booking.notCharged": "Your card was not charged.",
108
+ "booking.lapsed":
109
+ "This booking lapsed because it was not finished in time, so its places were released. To go ahead, start a new booking; if there is a waiver, you will sign it again.",
110
+ "booking.undecided":
111
+ "The organiser did not decide this request in time, so it lapsed and its places were released. To go ahead, start a new booking; if there is a waiver, you will sign it again.",
112
+ "booking.signAgain": "If there is a waiver, you will sign it again when you book.",
113
+ "booking.bookAgain": "Book again",
107
114
  "booking.line": "{qty} × {name}",
108
115
  "booking.total": "Total",
109
116
  "booking.cancelUntil": "You can cancel until {time}.",
@@ -138,6 +145,8 @@ export const en = {
138
145
  "booking.attendees.waiting": "Waiting",
139
146
  "booking.attendees.minor": "Under 18: you sign as their guardian.",
140
147
  "booking.attendees.emailed": "Invited by email to {email}.",
148
+ "booking.attendees.notArrived":
149
+ "Invitation not arrived? Check the address and resend it, or use Sign now. We cannot see emails that bounce: this list stays on Waiting until they sign.",
141
150
  "booking.attendees.signNow": "Sign now on this device",
142
151
  "booking.attendees.resend": "Resend invitation",
143
152
  "booking.attendees.edit": "Change attendee details",