@getmicdrop/venue-calendar 4.2.19 → 4.2.21
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 +809 -809
- package/dist/{ArrowLeftIcon-CNxF9YFb.js → ArrowLeftIcon-BqN28ha3.js} +1 -1
- package/dist/{BlockPlaceholder-CnvIm7eh.js → BlockPlaceholder-BbAt-Tg-.js} +1 -1
- package/dist/{Calendar-D7s5gLk_.js → Calendar-U5hnCpbC.js} +4 -4
- package/dist/{CalendarFoundryView-BrsToTIb.js → CalendarFoundryView-Dp9aWtMW.js} +21 -21
- package/dist/{CalendarIcon-BBTaRYp7.js → CalendarIcon-rW7mGNf-.js} +1 -1
- package/dist/{CartView-cHL2n0fE.js → CartView-C_Jserc3.js} +17 -17
- package/dist/{Checkout-Blc7IuZ2.js → Checkout--3sirpfA.js} +19 -19
- package/dist/{Checkout-DNVyBcrm.js → Checkout-6iLNyJL4.js} +12 -12
- package/dist/{CheckoutTimer-D5i2F8al.js → CheckoutTimer-DeggCjT7.js} +2 -2
- package/dist/{ChevronDownIcon-Ba1RZBsy.js → ChevronDownIcon-CRBoka3q.js} +1 -1
- package/dist/{ClockIcon-DNJWLc1C.js → ClockIcon-C2SSi7r9.js} +1 -1
- package/dist/{CloseIcon-BpvJsO5u.js → CloseIcon-DbyLo0wv.js} +1 -1
- package/dist/{CollectionView-DzoCBduF.js → CollectionView-DsY-3zrB.js} +6 -6
- package/dist/{Event-D5u7y0w3.js → Event-Cg55HVe2.js} +15 -15
- package/dist/{EventPage-Ddslq4xC.js → EventPage-B0D2Nt8W.js} +253 -221
- package/dist/{Input-BvutquC_.js → Input-CsEAqNoQ.js} +1 -1
- package/dist/{MailIcon-r5G2Lccc.js → MailIcon-AAaLCJoB.js} +1 -1
- package/dist/{Modal-kJYg2hMo.js → Modal-CkmAyUI8.js} +2 -2
- package/dist/{ModalFooter-DMxM0E8Y.js → ModalFooter-qMsABjsX.js} +1 -1
- package/dist/{PasswordInput-D5_BuRnw.js → PasswordInput-D8t781xL.js} +1 -1
- package/dist/{ScarcityBadge-R32tzjFi.js → ScarcityBadge-D8jxkAwg.js} +2 -2
- package/dist/{SeriesPage-BPm7CNzY.js → SeriesPage-DJd4xn3s.js} +3 -3
- package/dist/{Success-CXI2Xtdz.js → Success-B6-9onbn.js} +11 -11
- package/dist/{TagIcon-_OxEQnM3.js → TagIcon-W-WW2VlE.js} +1 -1
- package/dist/{WarningCircleIcon-D1Kt1Sw1.js → WarningCircleIcon-MDOyrbVe.js} +1 -1
- package/dist/{WarningTriIcon-DjcnvD51.js → WarningTriIcon-xGAKz2tQ.js} +1 -1
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +40 -26
- package/dist/api/index.d.ts +2 -2
- package/dist/api/types.d.ts +545 -545
- package/dist/api/waitlist.d.ts +13 -0
- package/dist/{colors-5g6cmoXX.js → colors-Cda5acAs.js} +48 -34
- package/dist/{constants-BWfNecCz.js → constants-CJl8xBgZ.js} +8 -0
- package/dist/{copyToClipboard-BTVrJgtZ.js → copyToClipboard-CR4oQ-Cl.js} +1 -1
- package/dist/{event-transform-0VCBk_zn.js → event-transform-CiNAjNiG.js} +9 -9
- package/dist/{href-D7yXIGzE.js → href-DVMxZ5ld.js} +1 -1
- package/dist/{i18n-D7pvVga7.js → i18n-BjGCvdyp.js} +3 -3
- package/dist/{labels-7f_yKBtq.js → labels-B3HOg72i.js} +1 -1
- package/dist/{modalManager.svelte-DDWCrGed.js → modalManager.svelte-DWKDviaT.js} +1 -1
- package/dist/{order-totals-DptlFbmv.js → order-totals-Bb6CAQ2m.js} +1 -1
- package/dist/{phoneUtils-PJqYw0dJ.js → phoneUtils-BzmQamKZ.js} +1 -1
- package/dist/seo/types.d.ts +156 -156
- package/dist/{serverTotals-COgFExPF.js → serverTotals-BgBXBXhP.js} +1 -1
- package/dist/{shareCopyFeedback.svelte-DZMLGA3y.js → shareCopyFeedback.svelte-Ds8OOtQ2.js} +2 -2
- package/dist/{to-event-card-props-BaPEUAZW.js → to-event-card-props-Bxj-yK9y.js} +1 -1
- package/dist/types/index.d.ts +509 -509
- package/dist/{utils-DLfxcnPk.js → utils-DMilKJFC.js} +1 -1
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +27 -27
- package/dist/venue-calendar.iife.js +22 -22
- package/dist/venue-calendar.umd.js +55 -55
- package/package.json +2 -2
- package/src/lib/theme.js +222 -222
- /package/dist/locales/{4.2.19 → 4.2.21}/flow/de.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/flow/es.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/flow/fr.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/flow/id.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/flow/it.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/flow/ja.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/flow/ko.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/flow/nl.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/flow/pl.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/flow/tr.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/flow/zh.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/main/de.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/main/es.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/main/fr.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/main/id.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/main/it.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/main/ja.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/main/ko.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/main/nl.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/main/pl.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/main/pt-br.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/main/tr.js +0 -0
- /package/dist/locales/{4.2.19 → 4.2.21}/main/zh.js +0 -0
package/dist/api/waitlist.d.ts
CHANGED
|
@@ -38,6 +38,19 @@ export interface ValidateWaitlistTokenResult {
|
|
|
38
38
|
* non-blocking notice while keeping the event in its gated waitlist state.
|
|
39
39
|
*/
|
|
40
40
|
export declare function validateWaitlistToken(token: string, email: string): Promise<ValidateWaitlistTokenResult>;
|
|
41
|
+
export interface RequeueWaitlistResult {
|
|
42
|
+
success: boolean;
|
|
43
|
+
/** One of: invalid_token | email_mismatch | token_used | entry_not_found |
|
|
44
|
+
* internal_error. Callers map to friendly copy. */
|
|
45
|
+
errorCode?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Move a member whose purchase window expired UNUSED to the front of the
|
|
49
|
+
* waitlist queue, so the next freed seat is offered to them first. The expired
|
|
50
|
+
* token + email is the identity proof — the same binding the unlock link
|
|
51
|
+
* carries — so the offer needs no login.
|
|
52
|
+
*/
|
|
53
|
+
export declare function requeueWaitlistToFront(token: string, email: string): Promise<RequeueWaitlistResult>;
|
|
41
54
|
export interface WaitlistStatusResult {
|
|
42
55
|
waitlistEnabled: boolean;
|
|
43
56
|
soldOut: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { x as e } from "./Button-C4uFgl7L.js";
|
|
2
2
|
import { E as t, F as n, O as r, c as i, g as a, h as o, m as s, s as c, w as l, y as u } from "./timezones-C5l0SSHK.js";
|
|
3
|
-
import { T as d } from "./constants-
|
|
3
|
+
import { T as d } from "./constants-CJl8xBgZ.js";
|
|
4
4
|
import { D as f, F as p, M as m, N as h, O as g, g as ee, k as _ } from "./orders-xGH8-IQn.js";
|
|
5
5
|
//#region node_modules/@getmicdrop/svelte-components/dist/transforms/ticket.js
|
|
6
6
|
var v = {
|
|
@@ -18,7 +18,7 @@ function b(e) {
|
|
|
18
18
|
function x(e, t) {
|
|
19
19
|
return e.totalCapacity ?? e.quantity ?? t;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function te(e) {
|
|
22
22
|
let n = t(), r = o(e.effectiveSalesBegin, e.salesBegin, e.saleStartDate) ?? null, i = o(e.effectiveSalesEnd, e.salesEnd, e.saleEndDate) ?? null, c = u(r), l = u(i);
|
|
23
23
|
if (!a(r) && !c) return "scheduled";
|
|
24
24
|
if (!a(i) && !l) return "sales_ended";
|
|
@@ -28,12 +28,12 @@ function S(e) {
|
|
|
28
28
|
let d = b(e), f = x(e, d);
|
|
29
29
|
return d === 0 ? "sold_out" : f > 0 && d / f < .1 ? "low" : "on_sale";
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function S(e, t = {}) {
|
|
32
32
|
if (!Array.isArray(e)) return [];
|
|
33
33
|
let n = e;
|
|
34
34
|
return t.excludeDoorOnly && (n = n.filter((e) => e.salesChannel !== v.BOX_OFFICE_ONLY)), t.publicOnly && (n = n.filter((e) => e.visibility === y.VISIBLE)), n;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function C(e) {
|
|
37
37
|
if (!Array.isArray(e) || e.length === 0) return {
|
|
38
38
|
totalRemaining: 0,
|
|
39
39
|
totalCapacity: 0,
|
|
@@ -50,14 +50,14 @@ function ne(e) {
|
|
|
50
50
|
isSoldOut: t === 0
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function w(e) {
|
|
54
54
|
if (!Array.isArray(e) || e.length === 0) return 0;
|
|
55
55
|
let t = e.map((e) => Number(e.price ?? e.ticketPrice)).filter((e) => Number.isFinite(e) && e > 0);
|
|
56
56
|
return t.length > 0 ? Math.min(...t) : 0;
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region node_modules/@getmicdrop/svelte-components/dist/transforms/event.js
|
|
60
|
-
function
|
|
60
|
+
function ne(e) {
|
|
61
61
|
return e.availableTickets || e.available_tickets || e.tickets || [];
|
|
62
62
|
}
|
|
63
63
|
function T(e) {
|
|
@@ -67,12 +67,12 @@ function T(e) {
|
|
|
67
67
|
let d = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity;
|
|
68
68
|
return !(e.soldOut || d != null && d <= 0);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
return e ? e.hasHiddenTickets === !0 ||
|
|
70
|
+
function E(e) {
|
|
71
|
+
return e ? e.hasHiddenTickets === !0 || ne(e).some(T) : !1;
|
|
72
72
|
}
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/NotFoundError.js
|
|
75
|
-
var
|
|
75
|
+
var D = class extends l {
|
|
76
76
|
constructor(e, t) {
|
|
77
77
|
let n = t ? `${e} with ID ${t} not found` : `${e} not found`;
|
|
78
78
|
super(n, "NOT_FOUND", {
|
|
@@ -87,8 +87,8 @@ var E = class extends l {
|
|
|
87
87
|
getUserMessage(e) {
|
|
88
88
|
return i(e)?.fromCode?.(this.code) || c(this.resourceType.toLowerCase());
|
|
89
89
|
}
|
|
90
|
-
},
|
|
91
|
-
async function
|
|
90
|
+
}, O = e("VC");
|
|
91
|
+
async function re(e, t) {
|
|
92
92
|
try {
|
|
93
93
|
if (!t || !t.trim()) return {
|
|
94
94
|
valid: !1,
|
|
@@ -115,21 +115,21 @@ async function ie(e, t) {
|
|
|
115
115
|
applyToTicketIds: i.applyToTicketIds
|
|
116
116
|
};
|
|
117
117
|
} catch (e) {
|
|
118
|
-
return
|
|
118
|
+
return O.error("Error validating promo code:", e), {
|
|
119
119
|
valid: !1,
|
|
120
120
|
error: "Network error validating code"
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
async function
|
|
124
|
+
async function ie(e) {
|
|
125
125
|
try {
|
|
126
126
|
let t = await g(`/promo-codes/check/${e}`);
|
|
127
127
|
return !t.success || t.data.hasPromoCodes === !0;
|
|
128
128
|
} catch (e) {
|
|
129
|
-
return
|
|
129
|
+
return O.error("Error checking promo codes availability:", e), !0;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
async function
|
|
132
|
+
async function ae(e, t, n) {
|
|
133
133
|
try {
|
|
134
134
|
let r = { promoCode: t };
|
|
135
135
|
n && Object.keys(n).length > 0 && (r.productQuantities = n);
|
|
@@ -139,7 +139,7 @@ async function O(e, t, n) {
|
|
|
139
139
|
error: i.error || "Failed to apply promo code"
|
|
140
140
|
};
|
|
141
141
|
} catch (e) {
|
|
142
|
-
return
|
|
142
|
+
return O.error("Error applying promo code:", e), {
|
|
143
143
|
success: !1,
|
|
144
144
|
error: "Network error applying code"
|
|
145
145
|
};
|
|
@@ -172,7 +172,7 @@ function oe(e, t) {
|
|
|
172
172
|
//#endregion
|
|
173
173
|
//#region src/lib/api/route-manifest.ts
|
|
174
174
|
var M = "/api/v2/public", N = "/api/orders/v2/public", P = "/api/orders/v2", F = "00000000-0000-0000-0000-000000000000";
|
|
175
|
-
`${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}`, `${M}`, `${M}`, `${M}`, `${M}`, `${M}`, `${M}${F}`, `${N}`, `${N}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${P}`, `${P}`, `${N}`, `${N}`, `${N}`, `${N}`, `${M}`, `${M}${F}`, `${M}`, `${M}`;
|
|
175
|
+
`${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}`, `${M}`, `${M}`, `${M}`, `${M}`, `${M}`, `${M}`, `${M}`, `${M}${F}`, `${N}`, `${N}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${P}`, `${P}`, `${N}`, `${N}`, `${N}`, `${N}`, `${M}`, `${M}${F}`, `${M}`, `${M}`;
|
|
176
176
|
//#endregion
|
|
177
177
|
//#region src/lib/api/events.ts
|
|
178
178
|
var I = e("VC"), L = /* @__PURE__ */ new Map();
|
|
@@ -248,7 +248,7 @@ async function de(e, t) {
|
|
|
248
248
|
async function fe(e, t) {
|
|
249
249
|
try {
|
|
250
250
|
let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await p(`${h()}/resolve/${encodeURIComponent(String(e))}${n}`);
|
|
251
|
-
if (!r || !r.type) throw new
|
|
251
|
+
if (!r || !r.type) throw new D("entity", String(e));
|
|
252
252
|
return r;
|
|
253
253
|
} catch (e) {
|
|
254
254
|
return I.error("Error resolving public entity:", e), null;
|
|
@@ -257,7 +257,7 @@ async function fe(e, t) {
|
|
|
257
257
|
async function pe(e, t) {
|
|
258
258
|
try {
|
|
259
259
|
let n = t ? `${h()}/collections/${e}?password=${encodeURIComponent(t)}` : `${h()}/collections/${e}`, r = await p(n);
|
|
260
|
-
if (!r) throw new
|
|
260
|
+
if (!r) throw new D("collection", String(e));
|
|
261
261
|
return r;
|
|
262
262
|
} catch (e) {
|
|
263
263
|
return I.error("Error fetching collection:", e), null;
|
|
@@ -337,7 +337,7 @@ async function ye(e, t) {
|
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
async function
|
|
340
|
+
async function be(e, t) {
|
|
341
341
|
try {
|
|
342
342
|
let n = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, r = await f(`${m()}/cart/${e}/gift-card`, n ? { body: JSON.stringify(n) } : void 0);
|
|
343
343
|
if (!r.success) return J.error("Remove gift card failed:", r.error), {
|
|
@@ -356,7 +356,7 @@ async function Y(e, t) {
|
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
async function
|
|
359
|
+
async function xe(e, t) {
|
|
360
360
|
try {
|
|
361
361
|
let n = await _(`${m()}/cart/${e}/complete-gift-card-payment`, {
|
|
362
362
|
customerName: d(t.firstName, t.lastName),
|
|
@@ -385,14 +385,14 @@ async function be(e, t) {
|
|
|
385
385
|
}
|
|
386
386
|
//#endregion
|
|
387
387
|
//#region src/lib/api/waitlist.ts
|
|
388
|
-
var
|
|
388
|
+
var Y = e("VC"), Se = {
|
|
389
389
|
waitlist_not_enabled: "Waitlist is not available for this event",
|
|
390
390
|
event_not_found: "Event not found",
|
|
391
391
|
invalid_phone: "Please enter a valid phone number",
|
|
392
392
|
already_purchased: "You have already purchased tickets for this event",
|
|
393
393
|
phone_already_registered: "This phone number is already on the waitlist"
|
|
394
394
|
};
|
|
395
|
-
async function
|
|
395
|
+
async function Ce(e, t, n = null, r = !1) {
|
|
396
396
|
try {
|
|
397
397
|
let i = { email: t };
|
|
398
398
|
n && r && (i.phone = n, i.smsOptIn = !0);
|
|
@@ -400,18 +400,18 @@ async function Se(e, t, n = null, r = !1) {
|
|
|
400
400
|
return a.success ? {
|
|
401
401
|
success: !0,
|
|
402
402
|
updated: a.data?.updated
|
|
403
|
-
} : (
|
|
403
|
+
} : (Y.error("Join waitlist failed:", a.error), {
|
|
404
404
|
success: !1,
|
|
405
|
-
error:
|
|
405
|
+
error: Se[a.error ?? ""] || "Failed to join waitlist. Please try again."
|
|
406
406
|
});
|
|
407
407
|
} catch (e) {
|
|
408
|
-
return
|
|
408
|
+
return Y.error("joinWaitlist error:", e), {
|
|
409
409
|
success: !1,
|
|
410
410
|
error: "Network error. Please check your connection and try again."
|
|
411
411
|
};
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
async function
|
|
414
|
+
async function we(e, t) {
|
|
415
415
|
try {
|
|
416
416
|
let n = await _(`/checkout/validate-token/${e}`, { email: t });
|
|
417
417
|
return n.success ? {
|
|
@@ -424,14 +424,28 @@ async function Ce(e, t) {
|
|
|
424
424
|
errorCode: n.error
|
|
425
425
|
};
|
|
426
426
|
} catch (e) {
|
|
427
|
-
return
|
|
427
|
+
return Y.error("validateWaitlistToken error:", e), {
|
|
428
428
|
valid: !1,
|
|
429
429
|
eventId: 0,
|
|
430
430
|
errorCode: "invalid_token"
|
|
431
431
|
};
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
async function
|
|
434
|
+
async function Te(e, t) {
|
|
435
|
+
try {
|
|
436
|
+
let n = await _(`/waitlist/requeue/${e}`, { email: t });
|
|
437
|
+
return n.success ? { success: !0 } : {
|
|
438
|
+
success: !1,
|
|
439
|
+
errorCode: n.error
|
|
440
|
+
};
|
|
441
|
+
} catch (e) {
|
|
442
|
+
return Y.error("requeueWaitlistToFront error:", e), {
|
|
443
|
+
success: !1,
|
|
444
|
+
errorCode: "internal_error"
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
async function X(e) {
|
|
435
449
|
let t = {
|
|
436
450
|
waitlistEnabled: !1,
|
|
437
451
|
soldOut: !1,
|
|
@@ -445,12 +459,12 @@ async function we(e) {
|
|
|
445
459
|
gated: !!n.data?.gated
|
|
446
460
|
} : t;
|
|
447
461
|
} catch (e) {
|
|
448
|
-
return
|
|
462
|
+
return Y.error("getWaitlistStatus error:", e), t;
|
|
449
463
|
}
|
|
450
464
|
}
|
|
451
465
|
//#endregion
|
|
452
466
|
//#region src/lib/constants/colors.ts
|
|
453
|
-
var
|
|
467
|
+
var Ee = {
|
|
454
468
|
primary: "#0284fe",
|
|
455
469
|
secondary: "#1d4ed8",
|
|
456
470
|
tertiary: "#2563eb"
|
|
@@ -540,8 +554,8 @@ var Te = {
|
|
|
540
554
|
300: "#ffeaa7"
|
|
541
555
|
},
|
|
542
556
|
coral: "#ff6b6b"
|
|
543
|
-
},
|
|
544
|
-
blue:
|
|
557
|
+
}, De = { defaultThemePrimary: "#7c3aed" }, Oe = {
|
|
558
|
+
blue: Ee.tertiary,
|
|
545
559
|
black: "#000000",
|
|
546
560
|
darkGray: Z[700],
|
|
547
561
|
gray: "#666666",
|
|
@@ -555,4 +569,4 @@ var Te = {
|
|
|
555
569
|
green: $.green[500]
|
|
556
570
|
};
|
|
557
571
|
//#endregion
|
|
558
|
-
export {
|
|
572
|
+
export { S as A, ae as C, T as D, E, C as O, fe as S, re as T, B as _, Oe as a, G as b, Te as c, xe as d, be as f, V as g, ce as h, Q as i, w as j, te as k, we as l, me as m, De as n, X as o, he as p, Z as r, Ce as s, $ as t, ye as u, pe as v, ie as w, le as x, de as y };
|
|
@@ -522,6 +522,14 @@ var U = {
|
|
|
522
522
|
waitlistLinkEmailMismatch: "This link was sent to a different email address. You're still on the waitlist",
|
|
523
523
|
waitlistLinkInventoryExhausted: "Those tickets were just claimed. You're still on the waitlist — we'll email you if more free up",
|
|
524
524
|
waitlistLinkInvalid: "This link isn't valid. You're still on the waitlist — we'll email you if tickets free up",
|
|
525
|
+
waitlistWindowNotice: "These tickets are being held for you for",
|
|
526
|
+
waitlistWindowSuffix: "— after that, your spot passes to the next person in line",
|
|
527
|
+
waitlistWindowExpired: "Your purchase window has expired — the seat is being offered to the next person in line",
|
|
528
|
+
waitlistRequeueCta: "Take the next spot in line",
|
|
529
|
+
waitlistRequeueBusy: "Moving you up…",
|
|
530
|
+
waitlistRequeueDone: "You're first in line — we'll email you the moment the next seat opens up",
|
|
531
|
+
waitlistRequeueNotOnList: "You're no longer on this waitlist — join again from the button below",
|
|
532
|
+
waitlistRequeueFailed: "We couldn't move you up just now — you're still on the waitlist",
|
|
525
533
|
checkout: "Checkout",
|
|
526
534
|
unableToReserveTickets: "Unable to reserve tickets",
|
|
527
535
|
connectionIssue: "Connection issue",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as e } from "./constants-
|
|
1
|
+
import { J as e } from "./constants-CJl8xBgZ.js";
|
|
2
2
|
import "svelte/internal/disclose-version";
|
|
3
3
|
import * as t from "svelte/internal/client";
|
|
4
4
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/LocationIcon.svelte
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as e } from "./timezones-C5l0SSHK.js";
|
|
2
|
-
import { a as t, c as n, f as r, p as i, u as a } from "./constants-
|
|
2
|
+
import { a as t, c as n, f as r, p as i, u as a } from "./constants-CJl8xBgZ.js";
|
|
3
3
|
import { n as o, t as s } from "./event-BrptLro8.js";
|
|
4
|
-
import { A as c,
|
|
4
|
+
import { A as c, E as l, O as u, j as d, k as f, r as p } from "./colors-Cda5acAs.js";
|
|
5
5
|
//#region src/lib/utils/event-transform.js
|
|
6
6
|
var m = "data:image/svg+xml," + encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 300" fill="none">
|
|
7
7
|
<rect width="200" height="300" fill="${p[200]}"/>
|
|
@@ -94,11 +94,11 @@ function w(e, n, r, i) {
|
|
|
94
94
|
isSoldOut: t > 0 && e <= 0
|
|
95
95
|
};
|
|
96
96
|
} else {
|
|
97
|
-
let t =
|
|
97
|
+
let t = c(e.availableTickets || [], {
|
|
98
98
|
excludeDoorOnly: !0,
|
|
99
99
|
publicOnly: !1
|
|
100
100
|
});
|
|
101
|
-
o =
|
|
101
|
+
o = u(t);
|
|
102
102
|
}
|
|
103
103
|
return {
|
|
104
104
|
...r,
|
|
@@ -111,7 +111,7 @@ function w(e, n, r, i) {
|
|
|
111
111
|
ticketsRemaining: o.totalRemaining,
|
|
112
112
|
ticketsTotal: o.totalCapacity,
|
|
113
113
|
isSoldOut: o.isSoldOut,
|
|
114
|
-
hasPurchasableHiddenTickets:
|
|
114
|
+
hasPurchasableHiddenTickets: l(e),
|
|
115
115
|
stageId: n.stageId ?? null,
|
|
116
116
|
eventCategoryTypes: n.eventCategoryTypes ?? null,
|
|
117
117
|
ageRestriction: n.ageRestriction ?? null,
|
|
@@ -122,8 +122,8 @@ function w(e, n, r, i) {
|
|
|
122
122
|
function T(e, t, n, r, i) {
|
|
123
123
|
let a = (e.availableTickets || []).map((e) => ({
|
|
124
124
|
...e,
|
|
125
|
-
status:
|
|
126
|
-
})), o =
|
|
125
|
+
status: f(e)
|
|
126
|
+
})), o = c(a, {
|
|
127
127
|
excludeDoorOnly: !1,
|
|
128
128
|
publicOnly: !0
|
|
129
129
|
}), s = x(t.startDateTime, r);
|
|
@@ -140,13 +140,13 @@ function T(e, t, n, r, i) {
|
|
|
140
140
|
location: t.venue?.googleLocationNameCache || t.venue?.address || "",
|
|
141
141
|
...s,
|
|
142
142
|
coverImage: i,
|
|
143
|
-
price:
|
|
143
|
+
price: d(e.availableTickets),
|
|
144
144
|
status: t.status || "On Sale",
|
|
145
145
|
eventSummary: t.eventSummary,
|
|
146
146
|
password: t.password,
|
|
147
147
|
availableTickets: a,
|
|
148
148
|
publicTickets: o,
|
|
149
|
-
hasPurchasableHiddenTickets:
|
|
149
|
+
hasPurchasableHiddenTickets: l(e),
|
|
150
150
|
doorsOpenTime: t.doorsOpenTime,
|
|
151
151
|
venue: t.venue,
|
|
152
152
|
venueID: t.venueId,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as e } from "./Button-C4uFgl7L.js";
|
|
2
|
-
import { J as t } from "./constants-
|
|
2
|
+
import { J as t } from "./constants-CJl8xBgZ.js";
|
|
3
3
|
import { t as n } from "./Image-B3cEndLZ.js";
|
|
4
4
|
import "svelte/internal/disclose-version";
|
|
5
5
|
import * as r from "svelte/internal/client";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { E as e, R as t, m as n, y as r } from "./timezones-C5l0SSHK.js";
|
|
2
|
-
import { C as i, K as a, O as o, g as s, h as c, n as l, r as u, v as d } from "./constants-
|
|
2
|
+
import { C as i, K as a, O as o, g as s, h as c, n as l, r as u, v as d } from "./constants-CJl8xBgZ.js";
|
|
3
3
|
import { t as f } from "./Text-CqjLjIF8.js";
|
|
4
|
-
import {
|
|
4
|
+
import { D as p } from "./colors-Cda5acAs.js";
|
|
5
5
|
import { t as m } from "./createI18n-DBUVdZra.js";
|
|
6
|
-
import { t as h } from "./labels-
|
|
6
|
+
import { t as h } from "./labels-B3HOg72i.js";
|
|
7
7
|
import "svelte/internal/disclose-version";
|
|
8
8
|
import * as g from "svelte/internal/client";
|
|
9
9
|
//#region src/lib/api/cta.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as e } from "./timezones-C5l0SSHK.js";
|
|
2
|
-
import { o as t } from "./ModalFooter-
|
|
2
|
+
import { o as t } from "./ModalFooter-qMsABjsX.js";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as n from "svelte/internal/client";
|
|
5
5
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalHeader.svelte
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as e } from "./constants-
|
|
1
|
+
import { J as e } from "./constants-CJl8xBgZ.js";
|
|
2
2
|
import "svelte/internal/disclose-version";
|
|
3
3
|
import * as t from "svelte/internal/client";
|
|
4
4
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/ExclamationTriangleOutline.svelte
|