@semics-tech/emdash-events 1.0.0-rc.3 → 1.0.0-rc.31

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 (41) hide show
  1. package/README.md +1 -1
  2. package/dist/index.mjs +6 -2
  3. package/dist/manifest.json +6 -5
  4. package/dist/plugin.mjs +7 -6
  5. package/dist/ts/astro/lib/call.d.ts +2 -0
  6. package/dist/ts/astro/lib/call.js +2 -0
  7. package/dist/ts/astro/lib/page.d.ts +44 -0
  8. package/dist/ts/astro/lib/page.js +123 -0
  9. package/dist/ts/integration/index.d.ts +15 -1
  10. package/dist/ts/integration/index.js +21 -1
  11. package/emdash-plugin.jsonc +8 -3
  12. package/package.json +6 -1
  13. package/src/astro/AttendeeList.astro +36 -15
  14. package/src/astro/BookingPage.astro +72 -10
  15. package/src/astro/BookingStatus.astro +209 -54
  16. package/src/astro/BookingWidget.astro +284 -59
  17. package/src/astro/CancelBooking.astro +80 -0
  18. package/src/astro/PageBrand.astro +18 -0
  19. package/src/astro/PageOrganiser.astro +22 -0
  20. package/src/astro/SetupPage.astro +88 -0
  21. package/src/astro/TicketPass.astro +131 -33
  22. package/src/astro/checkout-endpoint.ts +21 -3
  23. package/src/astro/lib/attendees.ts +76 -10
  24. package/src/astro/lib/book-link.ts +46 -0
  25. package/src/astro/lib/call.ts +4 -0
  26. package/src/astro/lib/checkout-form.ts +49 -1
  27. package/src/astro/lib/encryption.ts +67 -0
  28. package/src/astro/lib/list.ts +22 -0
  29. package/src/astro/lib/mapping.ts +106 -0
  30. package/src/astro/lib/page.ts +143 -0
  31. package/src/astro/lib/pass.ts +9 -0
  32. package/src/astro/lib/payment.ts +6 -10
  33. package/src/astro/lib/setup.ts +129 -0
  34. package/src/astro/lib/widget.ts +172 -7
  35. package/src/astro/virtual.d.ts +25 -1
  36. package/src/client/booking.ts +42 -6
  37. package/src/client/forget-form.ts +16 -0
  38. package/src/client/picker.ts +20 -9
  39. package/src/client/print.ts +12 -0
  40. package/src/i18n/ar.ts +55 -1
  41. package/src/i18n/en.ts +57 -1
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,14 @@ 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",
44
+ "widget.packagePrice": "{price} for the group",
45
+ "widget.packagePeople": "How many people? {min} to {max}",
39
46
  "widget.soldOut": "Sold out",
40
47
  "widget.name": "Your name",
41
48
  "widget.email": "Email",
@@ -46,7 +53,9 @@ export const en = {
46
53
  "widget.book": "Book",
47
54
  "widget.field.occurrence": "Choose a date.",
48
55
  "widget.field.promo": "Check the code, or leave it empty.",
56
+ "widget.field.voucher": "Check the code, or leave it empty.",
49
57
  "widget.field.tickets": "Choose at least one ticket.",
58
+ "widget.field.minimum": "Choose at least {min} for {name}, or none.",
50
59
  "widget.field.name": "Enter your name.",
51
60
  "widget.field.email": "Enter a valid email address.",
52
61
  "widget.error.BAD_REQUEST": "Please check the highlighted details.",
@@ -61,6 +70,11 @@ export const en = {
61
70
  "widget.error.PROMO_ORDER_TOO_LARGE":
62
71
  "That code can't be used on an order this large. Order fewer ticket types at once.",
63
72
  "widget.error.PROMO_UNAVAILABLE": "That code can't be used right now. Remove it to book without it.",
73
+ "widget.error.VOUCHER_INVALID": "That gift voucher code is not valid.",
74
+ "widget.error.VOUCHER_NO_BALANCE": "That gift voucher has nothing left to spend.",
75
+ "widget.error.VOUCHER_WRONG_ACTIVITY": "That gift voucher is for a different activity.",
76
+ "widget.error.VOUCHER_CURRENCY": "That gift voucher is in a different currency.",
77
+ "widget.error.VOUCHER_UNAVAILABLE": "Gift vouchers can't be used right now. Remove the code to book without it.",
64
78
  "widget.error.INTERNAL": "Something went wrong. Please try again.",
65
79
 
66
80
  "waitlist.heading": "Join the waitlist",
@@ -104,11 +118,38 @@ export const en = {
104
118
  "booking.reference": "Reference",
105
119
  "booking.heldUntil": "Your tickets are held until {time}.",
106
120
  "booking.decideBy": "The organiser will approve or decline your request by {time}; we will email you.",
121
+ "booking.requestSent": "Request sent: we'll confirm a time with you.",
122
+ "booking.requested": "Requested: {when}, time to be agreed.",
123
+ "booking.proposal.title": "The organiser proposed another time",
124
+ "booking.proposal.lead": "We can't do the time you asked for, but can offer this one:",
125
+ "booking.proposal.answerBy":
126
+ "Please answer by {time}. If you don't, the request lapses and any payment is refunded in full.",
127
+ "booking.proposal.accept": "Accept this time",
128
+ "booking.proposal.refuse": "That doesn't work",
129
+ "booking.proposal.refuseNote": "Your request is cancelled and any payment refunded in full.",
130
+ "booking.proposal.accepted": "Thank you: your booking is confirmed for the new time.",
131
+ "booking.proposal.refused": "Your request was cancelled. Any payment will be refunded in full.",
132
+ "booking.proposal.failed": "We could not record your answer. Please try again.",
133
+ "booking.declinedReason": "The organiser's reason: {reason}",
134
+ "booking.notCharged": "Your card was not charged.",
135
+ "booking.lapsed":
136
+ "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.",
137
+ "booking.undecided":
138
+ "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.",
139
+ "booking.signAgain": "If there is a waiver, you will sign it again when you book.",
140
+ "booking.bookAgain": "Book again",
107
141
  "booking.line": "{qty} × {name}",
142
+ "booking.packageLine": "{name} for {people} people",
143
+ "booking.voucher": "Gift voucher",
108
144
  "booking.total": "Total",
109
145
  "booking.cancelUntil": "You can cancel until {time}.",
110
146
  "booking.cancel": "Cancel booking",
111
147
  "booking.cancelFailed": "We could not cancel this booking.",
148
+ "booking.cancelConfirm": "Cancelling releases your places. This cannot be undone.",
149
+ "booking.cancelYes": "Yes, cancel this booking",
150
+ "booking.attendeesHeading": "Who is coming",
151
+ "booking.print": "Print or save as PDF",
152
+ "booking.organiser": "Organised by {name}",
112
153
  "booking.offer.intro": "Tickets from the waitlist are held for you. Claim them on this device; the link works once.",
113
154
  "booking.offer.button": "Claim my tickets",
114
155
  "booking.open.intro": "Open your booking on this device. The link works once; after that this browser remembers it.",
@@ -138,6 +179,8 @@ export const en = {
138
179
  "booking.attendees.waiting": "Waiting",
139
180
  "booking.attendees.minor": "Under 18: you sign as their guardian.",
140
181
  "booking.attendees.emailed": "Invited by email to {email}.",
182
+ "booking.attendees.notArrived":
183
+ "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
184
  "booking.attendees.signNow": "Sign now on this device",
142
185
  "booking.attendees.resend": "Resend invitation",
143
186
  "booking.attendees.edit": "Change attendee details",
@@ -147,6 +190,18 @@ export const en = {
147
190
  "booking.attendees.save": "Save changes",
148
191
  "booking.attendees.saved": "Attendee details saved. Anyone whose details changed gets a new signing request.",
149
192
  "booking.attendees.resent": "We have sent the signing invitation again.",
193
+ "booking.attendees.pending": "Waiver pending",
194
+ "booking.attendees.unnamed":
195
+ "Add this person's name and email below: their waiver invitation goes out when you save.",
196
+ "booking.attendees.under18": "Under 18",
197
+ "booking.attendees.invited": "We have emailed the waiver to the other adults to sign.",
198
+ "booking.waiverStep.title": "Last step: sign the waiver",
199
+ "booking.waiverStep.lead":
200
+ "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.",
201
+ "booking.waiverStep.sign": "Sign the waiver",
202
+ "booking.waiverStep.invite": "Email the waivers",
203
+ "booking.waiverStep.emailed":
204
+ "Adults with their own email address are sent their waiver to sign when you press the button.",
150
205
  "booking.error.ATTENDEE_SIGNED": "An attendee who has signed their waiver cannot be changed.",
151
206
  "booking.error.ATTENDEES_LOCKED": "Attendee details can no longer be changed online.",
152
207
  "booking.error.ATTENDEE_INVALID": "Check each attendee's name and email address.",
@@ -160,6 +215,7 @@ export const en = {
160
215
 
161
216
  "pass.qr": "QR code of the check-in code",
162
217
  "pass.code": "Check-in code",
218
+ "pass.codeShow": "Show the code to type in",
163
219
  "pass.status.pending": "Waiting for a signed waiver",
164
220
  "pass.status.cancelled": "Cancelled",
165
221
  "calendar.add": "Add to calendar",