@semics-tech/emdash-events 1.0.0-rc.2 → 1.0.0-rc.22
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 +36 -15
- package/src/astro/BookingPage.astro +72 -10
- package/src/astro/BookingStatus.astro +206 -54
- package/src/astro/BookingWidget.astro +268 -58
- 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 +76 -10
- 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 +119 -7
- package/src/astro/virtual.d.ts +25 -1
- package/src/client/booking.ts +27 -3
- 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 +51 -1
- package/src/i18n/en.ts +53 -1
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,7 +34,12 @@ 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": "التذاكر",
|
|
40
|
+
"widget.addons": "الإضافات",
|
|
41
|
+
"widget.addonsHint": "لكل شخص، واحدة على الأكثر لكل مكان تحجزه.",
|
|
42
|
+
"widget.addonPrice": "{price} للشخص",
|
|
38
43
|
"widget.soldOut": "نفدت التذاكر",
|
|
39
44
|
"widget.name": "اسمك",
|
|
40
45
|
"widget.email": "البريد الإلكتروني",
|
|
@@ -45,6 +50,7 @@ export const ar: Messages = {
|
|
|
45
50
|
"widget.book": "احجز",
|
|
46
51
|
"widget.field.occurrence": "اختر تاريخًا.",
|
|
47
52
|
"widget.field.promo": "تحقق من الرمز، أو اترك الحقل فارغًا.",
|
|
53
|
+
"widget.field.voucher": "تحقق من الرمز، أو اترك الحقل فارغًا.",
|
|
48
54
|
"widget.field.tickets": "اختر تذكرة واحدة على الأقل.",
|
|
49
55
|
"widget.field.name": "أدخل اسمك.",
|
|
50
56
|
"widget.field.email": "أدخل بريدًا إلكترونيًا صحيحًا.",
|
|
@@ -60,6 +66,11 @@ export const ar: Messages = {
|
|
|
60
66
|
"widget.error.PROMO_ORDER_TOO_LARGE":
|
|
61
67
|
"لا يمكن استخدام هذا الرمز لطلب بهذا الحجم. اطلب أنواعًا أقل من التذاكر في المرة الواحدة.",
|
|
62
68
|
"widget.error.PROMO_UNAVAILABLE": "لا يمكن استخدام هذا الرمز الآن. احذفه للحجز من دونه.",
|
|
69
|
+
"widget.error.VOUCHER_INVALID": "رمز قسيمة الهدية هذا غير صالح.",
|
|
70
|
+
"widget.error.VOUCHER_NO_BALANCE": "لم يتبقَّ رصيد في قسيمة الهدية هذه.",
|
|
71
|
+
"widget.error.VOUCHER_WRONG_ACTIVITY": "قسيمة الهدية هذه مخصصة لنشاط آخر.",
|
|
72
|
+
"widget.error.VOUCHER_CURRENCY": "قسيمة الهدية هذه بعملة مختلفة.",
|
|
73
|
+
"widget.error.VOUCHER_UNAVAILABLE": "لا يمكن استخدام قسائم الهدايا الآن. احذف الرمز للحجز بدونه.",
|
|
63
74
|
"widget.error.INTERNAL": "حدث خطأ ما. يُرجى المحاولة مرة أخرى.",
|
|
64
75
|
|
|
65
76
|
"waitlist.heading": "انضم إلى قائمة الانتظار",
|
|
@@ -101,12 +112,37 @@ export const ar: Messages = {
|
|
|
101
112
|
"booking.status": "حالة الحجز",
|
|
102
113
|
"booking.reference": "الرقم المرجعي",
|
|
103
114
|
"booking.heldUntil": "تذاكرك محجوزة حتى {time}.",
|
|
115
|
+
"booking.declinedReason": "سبب المنظّم: {reason}",
|
|
116
|
+
"booking.notCharged": "لم يُخصم أي مبلغ من بطاقتك.",
|
|
117
|
+
"booking.lapsed":
|
|
118
|
+
"انتهت صلاحية هذا الحجز لأنه لم يكتمل في الوقت المحدد، لذا أُتيحت أماكنه للآخرين. للمتابعة، ابدأ حجزًا جديدًا؛ وإذا كان هناك إقرار تنازل فستوقّعه مرة أخرى.",
|
|
119
|
+
"booking.undecided":
|
|
120
|
+
"لم يبتّ المنظّم في هذا الطلب في الوقت المحدد، لذا انتهت صلاحيته وأُتيحت أماكنه للآخرين. للمتابعة، ابدأ حجزًا جديدًا؛ وإذا كان هناك إقرار تنازل فستوقّعه مرة أخرى.",
|
|
121
|
+
"booking.signAgain": "إذا كان هناك إقرار تنازل، فستوقّعه مرة أخرى عند الحجز.",
|
|
122
|
+
"booking.bookAgain": "احجز مرة أخرى",
|
|
104
123
|
"booking.decideBy": "سيوافق المنظّم على طلبك أو يرفضه بحلول {time}، وسنراسلك بالبريد الإلكتروني.",
|
|
124
|
+
"booking.requestSent": "أُرسل الطلب: سنتفق معك على موعد.",
|
|
125
|
+
"booking.requested": "المطلوب: {when}، والموعد قيد الاتفاق.",
|
|
126
|
+
"booking.proposal.title": "اقترح المنظّم موعدًا آخر",
|
|
127
|
+
"booking.proposal.lead": "لا يمكننا الالتزام بالموعد الذي طلبته، لكن يمكننا تقديم هذا الموعد:",
|
|
128
|
+
"booking.proposal.answerBy": "يُرجى الرد بحلول {time}. إن لم تفعل، يسقط الطلب ويُردّ أي مبلغ مدفوع كاملًا.",
|
|
129
|
+
"booking.proposal.accept": "قبول هذا الموعد",
|
|
130
|
+
"booking.proposal.refuse": "هذا الموعد لا يناسبني",
|
|
131
|
+
"booking.proposal.refuseNote": "سيُلغى طلبك ويُردّ أي مبلغ مدفوع كاملًا.",
|
|
132
|
+
"booking.proposal.accepted": "شكرًا لك: تأكّد حجزك في الموعد الجديد.",
|
|
133
|
+
"booking.proposal.refused": "أُلغي طلبك. سيُردّ أي مبلغ مدفوع كاملًا.",
|
|
134
|
+
"booking.proposal.failed": "تعذّر علينا تسجيل ردّك. يُرجى المحاولة مرة أخرى.",
|
|
105
135
|
"booking.line": "{qty} × {name}",
|
|
136
|
+
"booking.voucher": "قسيمة هدية",
|
|
106
137
|
"booking.total": "المجموع",
|
|
107
138
|
"booking.cancelUntil": "يمكنك الإلغاء حتى {time}.",
|
|
108
139
|
"booking.cancel": "إلغاء الحجز",
|
|
109
140
|
"booking.cancelFailed": "تعذّر علينا إلغاء هذا الحجز.",
|
|
141
|
+
"booking.cancelConfirm": "يؤدي الإلغاء إلى تحرير أماكنك، ولا يمكن التراجع عنه.",
|
|
142
|
+
"booking.cancelYes": "نعم، ألغِ هذا الحجز",
|
|
143
|
+
"booking.attendeesHeading": "الحضور",
|
|
144
|
+
"booking.print": "اطبع أو احفظ بصيغة PDF",
|
|
145
|
+
"booking.organiser": "المنظِّم: {name}",
|
|
110
146
|
"booking.offer.intro": "التذاكر من قائمة الانتظار محجوزة لك. استلمها على هذا الجهاز؛ يعمل الرابط مرة واحدة.",
|
|
111
147
|
"booking.offer.button": "استلم تذاكري",
|
|
112
148
|
"booking.open.intro": "افتح حجزك على هذا الجهاز. يعمل الرابط مرة واحدة، وبعدها يتذكر هذا المتصفح حجزك.",
|
|
@@ -133,6 +169,8 @@ export const ar: Messages = {
|
|
|
133
169
|
"booking.attendees.signed": "موقَّع",
|
|
134
170
|
"booking.attendees.waiting": "بانتظار التوقيع",
|
|
135
171
|
"booking.attendees.minor": "دون 18 عامًا: توقّع أنت بصفتك وليّ الأمر.",
|
|
172
|
+
"booking.attendees.notArrived":
|
|
173
|
+
"لم تصل الدعوة؟ تحقّق من العنوان وأعد إرسالها، أو استخدم التوقيع الآن. لا يمكننا رؤية الرسائل المرتجعة: تبقى هذه القائمة على حالة الانتظار حتى يوقّعوا.",
|
|
136
174
|
"booking.attendees.emailed": "أُرسلت دعوة بالبريد الإلكتروني إلى {email}.",
|
|
137
175
|
"booking.attendees.signNow": "وقّع الآن على هذا الجهاز",
|
|
138
176
|
"booking.attendees.resend": "أعد إرسال الدعوة",
|
|
@@ -143,6 +181,17 @@ export const ar: Messages = {
|
|
|
143
181
|
"booking.attendees.save": "حفظ التغييرات",
|
|
144
182
|
"booking.attendees.saved": "حُفظت بيانات الحضور. كل من تغيّرت بياناته سيصله طلب توقيع جديد.",
|
|
145
183
|
"booking.attendees.resent": "أعدنا إرسال دعوة التوقيع.",
|
|
184
|
+
"booking.attendees.pending": "التنازل بانتظار التوقيع",
|
|
185
|
+
"booking.attendees.unnamed": "أضف اسم هذا الشخص وبريده الإلكتروني أدناه: تُرسل إليه دعوة توقيع التنازل عند الحفظ.",
|
|
186
|
+
"booking.attendees.under18": "دون 18 عامًا",
|
|
187
|
+
"booking.attendees.invited": "أرسلنا التنازل بالبريد الإلكتروني إلى البالغين الآخرين لتوقيعه.",
|
|
188
|
+
"booking.waiverStep.title": "الخطوة الأخيرة: وقّع التنازل",
|
|
189
|
+
"booking.waiverStep.lead":
|
|
190
|
+
"استلمنا الدفع. لا يزال على كل مشارك توقيع التنازل: إلى أن يفعل يظهر بانتظار التوقيع ولا يمكن تسجيل حضوره.",
|
|
191
|
+
"booking.waiverStep.sign": "وقّع التنازل",
|
|
192
|
+
"booking.waiverStep.invite": "أرسل التنازلات بالبريد",
|
|
193
|
+
"booking.waiverStep.emailed":
|
|
194
|
+
"يُرسل إلى البالغين الذين لديهم بريد إلكتروني خاص بهم التنازل لتوقيعه عند الضغط على الزر.",
|
|
146
195
|
"booking.error.ATTENDEE_SIGNED": "لا يمكن تغيير بيانات شخص وقّع إقرار التنازل.",
|
|
147
196
|
"booking.error.ATTENDEES_LOCKED": "لم يعد بالإمكان تغيير بيانات الحضور عبر الإنترنت.",
|
|
148
197
|
"booking.error.ATTENDEE_INVALID": "تحقّق من اسم كل شخص وعنوان بريده الإلكتروني.",
|
|
@@ -156,6 +205,7 @@ export const ar: Messages = {
|
|
|
156
205
|
|
|
157
206
|
"pass.qr": "رمز QR لرمز تسجيل الحضور",
|
|
158
207
|
"pass.code": "رمز تسجيل الحضور",
|
|
208
|
+
"pass.codeShow": "إظهار الرمز لكتابته يدويًا",
|
|
159
209
|
"pass.status.pending": "بانتظار توقيع إقرار التنازل",
|
|
160
210
|
"pass.status.cancelled": "ملغاة",
|
|
161
211
|
"calendar.add": "أضف إلى التقويم",
|
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.",
|
|
@@ -23,6 +22,7 @@ export const en = {
|
|
|
23
22
|
"widget.date": "Date",
|
|
24
23
|
"widget.chooseDate": "Choose a date",
|
|
25
24
|
"widget.dateSoldOut": "{date} (sold out)",
|
|
25
|
+
"widget.window": "Time of day",
|
|
26
26
|
"widget.picker.earlier": "Earlier dates",
|
|
27
27
|
"widget.picker.later": "Later dates",
|
|
28
28
|
"widget.picker.hint": "Choose a day to see its times.",
|
|
@@ -35,7 +35,12 @@ export const en = {
|
|
|
35
35
|
"widget.promo.label": "Promo code",
|
|
36
36
|
"widget.promo.apply": "Apply code",
|
|
37
37
|
"widget.promo.update": "Update code",
|
|
38
|
+
"widget.voucher.label": "Gift voucher code",
|
|
39
|
+
"widget.voucher.have": "Have a gift voucher?",
|
|
38
40
|
"widget.tickets": "Tickets",
|
|
41
|
+
"widget.addons": "Add-ons",
|
|
42
|
+
"widget.addonsHint": "Per person, up to one each for the places you book.",
|
|
43
|
+
"widget.addonPrice": "{price} a person",
|
|
39
44
|
"widget.soldOut": "Sold out",
|
|
40
45
|
"widget.name": "Your name",
|
|
41
46
|
"widget.email": "Email",
|
|
@@ -46,6 +51,7 @@ export const en = {
|
|
|
46
51
|
"widget.book": "Book",
|
|
47
52
|
"widget.field.occurrence": "Choose a date.",
|
|
48
53
|
"widget.field.promo": "Check the code, or leave it empty.",
|
|
54
|
+
"widget.field.voucher": "Check the code, or leave it empty.",
|
|
49
55
|
"widget.field.tickets": "Choose at least one ticket.",
|
|
50
56
|
"widget.field.name": "Enter your name.",
|
|
51
57
|
"widget.field.email": "Enter a valid email address.",
|
|
@@ -61,6 +67,11 @@ export const en = {
|
|
|
61
67
|
"widget.error.PROMO_ORDER_TOO_LARGE":
|
|
62
68
|
"That code can't be used on an order this large. Order fewer ticket types at once.",
|
|
63
69
|
"widget.error.PROMO_UNAVAILABLE": "That code can't be used right now. Remove it to book without it.",
|
|
70
|
+
"widget.error.VOUCHER_INVALID": "That gift voucher code is not valid.",
|
|
71
|
+
"widget.error.VOUCHER_NO_BALANCE": "That gift voucher has nothing left to spend.",
|
|
72
|
+
"widget.error.VOUCHER_WRONG_ACTIVITY": "That gift voucher is for a different activity.",
|
|
73
|
+
"widget.error.VOUCHER_CURRENCY": "That gift voucher is in a different currency.",
|
|
74
|
+
"widget.error.VOUCHER_UNAVAILABLE": "Gift vouchers can't be used right now. Remove the code to book without it.",
|
|
64
75
|
"widget.error.INTERNAL": "Something went wrong. Please try again.",
|
|
65
76
|
|
|
66
77
|
"waitlist.heading": "Join the waitlist",
|
|
@@ -104,11 +115,37 @@ export const en = {
|
|
|
104
115
|
"booking.reference": "Reference",
|
|
105
116
|
"booking.heldUntil": "Your tickets are held until {time}.",
|
|
106
117
|
"booking.decideBy": "The organiser will approve or decline your request by {time}; we will email you.",
|
|
118
|
+
"booking.requestSent": "Request sent: we'll confirm a time with you.",
|
|
119
|
+
"booking.requested": "Requested: {when}, time to be agreed.",
|
|
120
|
+
"booking.proposal.title": "The organiser proposed another time",
|
|
121
|
+
"booking.proposal.lead": "We can't do the time you asked for, but can offer this one:",
|
|
122
|
+
"booking.proposal.answerBy":
|
|
123
|
+
"Please answer by {time}. If you don't, the request lapses and any payment is refunded in full.",
|
|
124
|
+
"booking.proposal.accept": "Accept this time",
|
|
125
|
+
"booking.proposal.refuse": "That doesn't work",
|
|
126
|
+
"booking.proposal.refuseNote": "Your request is cancelled and any payment refunded in full.",
|
|
127
|
+
"booking.proposal.accepted": "Thank you: your booking is confirmed for the new time.",
|
|
128
|
+
"booking.proposal.refused": "Your request was cancelled. Any payment will be refunded in full.",
|
|
129
|
+
"booking.proposal.failed": "We could not record your answer. Please try again.",
|
|
130
|
+
"booking.declinedReason": "The organiser's reason: {reason}",
|
|
131
|
+
"booking.notCharged": "Your card was not charged.",
|
|
132
|
+
"booking.lapsed":
|
|
133
|
+
"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.",
|
|
134
|
+
"booking.undecided":
|
|
135
|
+
"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.",
|
|
136
|
+
"booking.signAgain": "If there is a waiver, you will sign it again when you book.",
|
|
137
|
+
"booking.bookAgain": "Book again",
|
|
107
138
|
"booking.line": "{qty} × {name}",
|
|
139
|
+
"booking.voucher": "Gift voucher",
|
|
108
140
|
"booking.total": "Total",
|
|
109
141
|
"booking.cancelUntil": "You can cancel until {time}.",
|
|
110
142
|
"booking.cancel": "Cancel booking",
|
|
111
143
|
"booking.cancelFailed": "We could not cancel this booking.",
|
|
144
|
+
"booking.cancelConfirm": "Cancelling releases your places. This cannot be undone.",
|
|
145
|
+
"booking.cancelYes": "Yes, cancel this booking",
|
|
146
|
+
"booking.attendeesHeading": "Who is coming",
|
|
147
|
+
"booking.print": "Print or save as PDF",
|
|
148
|
+
"booking.organiser": "Organised by {name}",
|
|
112
149
|
"booking.offer.intro": "Tickets from the waitlist are held for you. Claim them on this device; the link works once.",
|
|
113
150
|
"booking.offer.button": "Claim my tickets",
|
|
114
151
|
"booking.open.intro": "Open your booking on this device. The link works once; after that this browser remembers it.",
|
|
@@ -138,6 +175,8 @@ export const en = {
|
|
|
138
175
|
"booking.attendees.waiting": "Waiting",
|
|
139
176
|
"booking.attendees.minor": "Under 18: you sign as their guardian.",
|
|
140
177
|
"booking.attendees.emailed": "Invited by email to {email}.",
|
|
178
|
+
"booking.attendees.notArrived":
|
|
179
|
+
"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
180
|
"booking.attendees.signNow": "Sign now on this device",
|
|
142
181
|
"booking.attendees.resend": "Resend invitation",
|
|
143
182
|
"booking.attendees.edit": "Change attendee details",
|
|
@@ -147,6 +186,18 @@ export const en = {
|
|
|
147
186
|
"booking.attendees.save": "Save changes",
|
|
148
187
|
"booking.attendees.saved": "Attendee details saved. Anyone whose details changed gets a new signing request.",
|
|
149
188
|
"booking.attendees.resent": "We have sent the signing invitation again.",
|
|
189
|
+
"booking.attendees.pending": "Waiver pending",
|
|
190
|
+
"booking.attendees.unnamed":
|
|
191
|
+
"Add this person's name and email below: their waiver invitation goes out when you save.",
|
|
192
|
+
"booking.attendees.under18": "Under 18",
|
|
193
|
+
"booking.attendees.invited": "We have emailed the waiver to the other adults to sign.",
|
|
194
|
+
"booking.waiverStep.title": "Last step: sign the waiver",
|
|
195
|
+
"booking.waiverStep.lead":
|
|
196
|
+
"Your payment is received. Each attendee still has to sign the waiver: until they do, they show as Waiver pending and cannot be checked in.",
|
|
197
|
+
"booking.waiverStep.sign": "Sign the waiver",
|
|
198
|
+
"booking.waiverStep.invite": "Email the waivers",
|
|
199
|
+
"booking.waiverStep.emailed":
|
|
200
|
+
"Adults with their own email address are sent their waiver to sign when you press the button.",
|
|
150
201
|
"booking.error.ATTENDEE_SIGNED": "An attendee who has signed their waiver cannot be changed.",
|
|
151
202
|
"booking.error.ATTENDEES_LOCKED": "Attendee details can no longer be changed online.",
|
|
152
203
|
"booking.error.ATTENDEE_INVALID": "Check each attendee's name and email address.",
|
|
@@ -160,6 +211,7 @@ export const en = {
|
|
|
160
211
|
|
|
161
212
|
"pass.qr": "QR code of the check-in code",
|
|
162
213
|
"pass.code": "Check-in code",
|
|
214
|
+
"pass.codeShow": "Show the code to type in",
|
|
163
215
|
"pass.status.pending": "Waiting for a signed waiver",
|
|
164
216
|
"pass.status.cancelled": "Cancelled",
|
|
165
217
|
"calendar.add": "Add to calendar",
|