@getmicdrop/venue-calendar 4.0.93 → 4.0.94
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 +740 -740
- package/dist/CartView-hnrXbE_O.js +2385 -0
- package/dist/CartView-hnrXbE_O.js.map +1 -0
- package/dist/{Checkout-avoTg_Zw.js → Checkout-Bvre3lYs.js} +591 -588
- package/dist/Checkout-Bvre3lYs.js.map +1 -0
- package/dist/{Checkout-BUwdMMjA.js → Checkout-C4Kr5pVp.js} +268 -268
- package/dist/Checkout-C4Kr5pVp.js.map +1 -0
- package/dist/{CheckoutTimer-C_ax1Uo2.js → CheckoutTimer-D2HnWYm7.js} +5 -5
- package/dist/CheckoutTimer-D2HnWYm7.js.map +1 -0
- package/dist/{ClockIcon-C5muTIYL.js → ClockIcon-DA4wXK5Q.js} +2 -2
- package/dist/ClockIcon-DA4wXK5Q.js.map +1 -0
- package/dist/{CollectionView-3MHrh5Zm.js → CollectionView-DU1lTGU_.js} +5 -5
- package/dist/CollectionView-DU1lTGU_.js.map +1 -0
- package/dist/{Event-vR1aE543.js → Event-BuOnGjPB.js} +1046 -1052
- package/dist/Event-BuOnGjPB.js.map +1 -0
- package/dist/{EventPage-Bhg-8-5x.js → EventPage-vBSbuSaG.js} +6 -6
- package/dist/EventPage-vBSbuSaG.js.map +1 -0
- package/dist/{Heading-ZcvybCi8.js → Heading-D4iOOm-C.js} +8 -8
- package/dist/Heading-D4iOOm-C.js.map +1 -0
- package/dist/{ScarcityBadge-CjTFAhat.js → ScarcityBadge-D37JY-BJ.js} +8 -8
- package/dist/ScarcityBadge-D37JY-BJ.js.map +1 -0
- package/dist/{SeriesPage-DTEY83yR.js → SeriesPage-CZdi_-a4.js} +5 -5
- package/dist/SeriesPage-CZdi_-a4.js.map +1 -0
- package/dist/{Spinner--YBVljiP.js → Spinner-BZYln43S.js} +2 -2
- package/dist/Spinner-BZYln43S.js.map +1 -0
- package/dist/Success-CQYI5SZO.js +866 -0
- package/dist/Success-CQYI5SZO.js.map +1 -0
- package/dist/{Text-SlV9H-GU.js → Text-C-6sDfH2.js} +2 -2
- package/dist/Text-C-6sDfH2.js.map +1 -0
- package/dist/{VenueCalendar-Bth_j-Wp.js → VenueCalendar-Um0PQCVy.js} +1806 -1818
- package/dist/VenueCalendar-Um0PQCVy.js.map +1 -0
- package/dist/{ViewTicketsEmbed-D7g7RYZI.js → ViewTicketsEmbed-D2jQ8AMb.js} +148 -160
- package/dist/ViewTicketsEmbed-D2jQ8AMb.js.map +1 -0
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.cjs.map +1 -1
- package/dist/api/api.mjs +192 -195
- package/dist/api/api.mjs.map +1 -1
- package/dist/api/types.d.ts +447 -447
- package/dist/{data-toggle-store.svelte-CFAVM8I0.js → data-toggle-store.svelte-CyXPU9Oq.js} +2 -2
- package/dist/data-toggle-store.svelte-CyXPU9Oq.js.map +1 -0
- package/dist/{labels-CnpAWtkz.js → labels-BNiV89mT.js} +124 -128
- package/dist/labels-BNiV89mT.js.map +1 -0
- package/dist/{modalManager.svelte-T2RGHhZH.js → modalManager.svelte-D_9E6W5P.js} +2 -2
- package/dist/modalManager.svelte-D_9E6W5P.js.map +1 -0
- package/dist/seo/seo.cjs.map +1 -1
- package/dist/seo/seo.mjs.map +1 -1
- package/dist/transform-HKz55B2D.js +360 -0
- package/dist/transform-HKz55B2D.js.map +1 -0
- package/dist/types/index.d.ts +454 -454
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +11 -11
- package/dist/venue-calendar.iife.js +44 -44
- package/dist/venue-calendar.iife.js.map +1 -1
- package/dist/venue-calendar.umd.js +40 -40
- package/dist/venue-calendar.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/lib/theme.js +222 -222
- package/dist/CartView-R5Z2q4Hy.js +0 -2380
- package/dist/CartView-R5Z2q4Hy.js.map +0 -1
- package/dist/Checkout-BUwdMMjA.js.map +0 -1
- package/dist/Checkout-avoTg_Zw.js.map +0 -1
- package/dist/CheckoutTimer-C_ax1Uo2.js.map +0 -1
- package/dist/ClockIcon-C5muTIYL.js.map +0 -1
- package/dist/CollectionView-3MHrh5Zm.js.map +0 -1
- package/dist/Event-vR1aE543.js.map +0 -1
- package/dist/EventPage-Bhg-8-5x.js.map +0 -1
- package/dist/Heading-ZcvybCi8.js.map +0 -1
- package/dist/ScarcityBadge-CjTFAhat.js.map +0 -1
- package/dist/SeriesPage-DTEY83yR.js.map +0 -1
- package/dist/Spinner--YBVljiP.js.map +0 -1
- package/dist/Success-ClCvTxTH.js +0 -848
- package/dist/Success-ClCvTxTH.js.map +0 -1
- package/dist/Text-SlV9H-GU.js.map +0 -1
- package/dist/VenueCalendar-Bth_j-Wp.js.map +0 -1
- package/dist/ViewTicketsEmbed-D7g7RYZI.js.map +0 -1
- package/dist/data-toggle-store.svelte-CFAVM8I0.js.map +0 -1
- package/dist/labels-CnpAWtkz.js.map +0 -1
- package/dist/modalManager.svelte-T2RGHhZH.js.map +0 -1
- package/dist/transform-C3TwZSH6.js +0 -349
- package/dist/transform-C3TwZSH6.js.map +0 -1
package/dist/api/api.mjs
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { createLogger as b } from "@getmicdrop/svelte-components/utils/logger";
|
|
2
|
-
import { getLocalStorage as
|
|
3
|
-
import {
|
|
4
|
-
import { isHiddenTicketPurchasable as
|
|
5
|
-
|
|
2
|
+
import { getLocalStorage as ie, setLocalStorage as ce, getSessionStorage as J, setSessionStorage as ue, createLogger as le, AppError as E, formatCurrency as de, resolveImageUrl as Y } from "@getmicdrop/svelte-components";
|
|
3
|
+
import { formatLocal as L } from "@getmicdrop/svelte-components/datetime";
|
|
4
|
+
import { isHiddenTicketPurchasable as fe } from "@getmicdrop/svelte-components/transforms";
|
|
5
|
+
import "@getmicdrop/svelte-components/utils/timezones";
|
|
6
|
+
const q = b("VC"), me = {
|
|
6
7
|
baseUrl: "https://get-micdrop.com",
|
|
7
8
|
timeout: 3e4,
|
|
8
9
|
retries: 2,
|
|
9
10
|
retryDelay: 500,
|
|
10
11
|
onError: (t) => q.error("API Error:", t)
|
|
11
12
|
};
|
|
12
|
-
let p = { ...
|
|
13
|
+
let p = { ...me };
|
|
13
14
|
function ot(t) {
|
|
14
15
|
p = { ...p, ...t };
|
|
15
16
|
}
|
|
@@ -22,14 +23,14 @@ function c() {
|
|
|
22
23
|
function ct() {
|
|
23
24
|
return `${p.baseUrl}/api/public`;
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
+
function R() {
|
|
26
27
|
return `${p.baseUrl}/api/orders/v2/public`;
|
|
27
28
|
}
|
|
28
29
|
async function ut() {
|
|
29
30
|
return "";
|
|
30
31
|
}
|
|
31
|
-
const
|
|
32
|
-
async function
|
|
32
|
+
const pe = (t) => new Promise((e) => setTimeout(e, t));
|
|
33
|
+
async function K(t, e, r) {
|
|
33
34
|
const n = (e.method || "GET").toUpperCase(), s = n === "GET" || n === "HEAD" ? r.retries + 1 : 1;
|
|
34
35
|
let o;
|
|
35
36
|
for (let i = 1; i <= s; i++) {
|
|
@@ -47,7 +48,7 @@ async function Z(t, e, r) {
|
|
|
47
48
|
} finally {
|
|
48
49
|
clearTimeout(C), y && k && y.removeEventListener("abort", k);
|
|
49
50
|
}
|
|
50
|
-
i < s && await
|
|
51
|
+
i < s && await pe(r.retryDelay * Math.pow(2, i - 1));
|
|
51
52
|
}
|
|
52
53
|
throw o;
|
|
53
54
|
}
|
|
@@ -60,13 +61,13 @@ async function f(t, e, r) {
|
|
|
60
61
|
async function lt(t, e, r) {
|
|
61
62
|
return F("PUT", t, e, r);
|
|
62
63
|
}
|
|
63
|
-
async function
|
|
64
|
+
async function ye(t, e) {
|
|
64
65
|
return F("DELETE", t, void 0, e);
|
|
65
66
|
}
|
|
66
67
|
async function F(t, e, r, n) {
|
|
67
68
|
const a = e.startsWith("http") ? e : `${c()}${e}`;
|
|
68
69
|
try {
|
|
69
|
-
const s = await
|
|
70
|
+
const s = await K(
|
|
70
71
|
a,
|
|
71
72
|
{
|
|
72
73
|
method: t,
|
|
@@ -92,9 +93,9 @@ async function F(t, e, r, n) {
|
|
|
92
93
|
), { success: !1, error: o };
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
|
-
async function
|
|
96
|
+
async function A(t, e) {
|
|
96
97
|
try {
|
|
97
|
-
const r = await
|
|
98
|
+
const r = await K(
|
|
98
99
|
t,
|
|
99
100
|
{ credentials: "include", ...e },
|
|
100
101
|
p
|
|
@@ -108,7 +109,7 @@ async function E(t, e) {
|
|
|
108
109
|
return q.error("API request error:", r), null;
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
|
-
function
|
|
112
|
+
function ge(t) {
|
|
112
113
|
const e = t ?? {};
|
|
113
114
|
return {
|
|
114
115
|
ticketID: Number(e.TicketID ?? e.ticketID ?? 0),
|
|
@@ -119,39 +120,39 @@ function ve(t) {
|
|
|
119
120
|
status: String(e.Status ?? e.status ?? "")
|
|
120
121
|
};
|
|
121
122
|
}
|
|
122
|
-
function
|
|
123
|
-
const e = t ?? {}, r = e.UUID ?? e.uuid ?? "", n = Number(e.EventID ?? e.eventID ?? 0), a = e.Status ?? e.status ?? "", s = e.ExpiresAt ?? e.expiresAt ?? "", i = (e.Reservations ?? e.reservations ?? []).map(
|
|
123
|
+
function ve(t) {
|
|
124
|
+
const e = t ?? {}, r = e.UUID ?? e.uuid ?? "", n = Number(e.EventID ?? e.eventID ?? 0), a = e.Status ?? e.status ?? "", s = e.ExpiresAt ?? e.expiresAt ?? "", i = (e.Reservations ?? e.reservations ?? []).map(ge);
|
|
124
125
|
return { uuid: r, eventID: n, status: a, expiresAt: s, reservations: i };
|
|
125
126
|
}
|
|
126
|
-
const
|
|
127
|
+
const Z = [
|
|
127
128
|
"utmSource",
|
|
128
129
|
"utmMedium",
|
|
129
130
|
"utmCampaign",
|
|
130
131
|
"utmContent",
|
|
131
132
|
"utmTerm"
|
|
132
|
-
],
|
|
133
|
+
], he = {
|
|
133
134
|
utmSource: "utm_source",
|
|
134
135
|
utmMedium: "utm_medium",
|
|
135
136
|
utmCampaign: "utm_campaign",
|
|
136
137
|
utmContent: "utm_content",
|
|
137
138
|
utmTerm: "utm_term"
|
|
138
|
-
},
|
|
139
|
-
function
|
|
139
|
+
}, X = "direct";
|
|
140
|
+
function ee(t) {
|
|
140
141
|
return t ? t.trim().toLowerCase().replace(/\s+/g, "_") : "";
|
|
141
142
|
}
|
|
142
|
-
function
|
|
143
|
+
function _e(t) {
|
|
143
144
|
const e = {};
|
|
144
|
-
for (const r of
|
|
145
|
-
e[r] =
|
|
146
|
-
return e.utmSource || (e.utmSource =
|
|
145
|
+
for (const r of Z)
|
|
146
|
+
e[r] = ee(t[r]);
|
|
147
|
+
return e.utmSource || (e.utmSource = X), e;
|
|
147
148
|
}
|
|
148
|
-
function
|
|
149
|
+
function we(t) {
|
|
149
150
|
const e = {};
|
|
150
|
-
for (const r of
|
|
151
|
-
e[r] = t.get(
|
|
152
|
-
return
|
|
151
|
+
for (const r of Z)
|
|
152
|
+
e[r] = t.get(he[r]);
|
|
153
|
+
return _e(e);
|
|
153
154
|
}
|
|
154
|
-
function
|
|
155
|
+
function ke() {
|
|
155
156
|
if (typeof window > "u") return !0;
|
|
156
157
|
try {
|
|
157
158
|
return window.self === window.top;
|
|
@@ -159,29 +160,29 @@ function be() {
|
|
|
159
160
|
return !1;
|
|
160
161
|
}
|
|
161
162
|
}
|
|
162
|
-
function
|
|
163
|
-
const t = typeof window < "u", e =
|
|
163
|
+
function be() {
|
|
164
|
+
const t = typeof window < "u", e = ke(), r = t ? window.location.search : "", n = (typeof document < "u" ? document.referrer : "") ?? "", a = t && e ? window.location.href : "";
|
|
164
165
|
return {
|
|
165
|
-
utm:
|
|
166
|
+
utm: we(new URLSearchParams(r)),
|
|
166
167
|
referrer: n || "",
|
|
167
168
|
pageUrl: a || ""
|
|
168
169
|
};
|
|
169
170
|
}
|
|
170
|
-
let
|
|
171
|
-
function
|
|
171
|
+
let $e = !1;
|
|
172
|
+
function Ce() {
|
|
172
173
|
return typeof window < "u" && typeof window.__tcfapi == "function";
|
|
173
174
|
}
|
|
174
|
-
function
|
|
175
|
-
return
|
|
175
|
+
function Te() {
|
|
176
|
+
return Ce();
|
|
176
177
|
}
|
|
177
|
-
function
|
|
178
|
-
return
|
|
178
|
+
function Pe() {
|
|
179
|
+
return Te() ? $e : !0;
|
|
179
180
|
}
|
|
180
|
-
const
|
|
181
|
-
function
|
|
182
|
-
return typeof t == "string" &&
|
|
181
|
+
const H = "micdrop_session_id", W = "micdrop_visitor_id", Se = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
182
|
+
function Ie(t) {
|
|
183
|
+
return typeof t == "string" && Se.test(t);
|
|
183
184
|
}
|
|
184
|
-
function
|
|
185
|
+
function te() {
|
|
185
186
|
const t = typeof crypto < "u" ? crypto : void 0;
|
|
186
187
|
if (t?.randomUUID) return t.randomUUID();
|
|
187
188
|
const e = new Uint8Array(16);
|
|
@@ -194,27 +195,27 @@ function re() {
|
|
|
194
195
|
for (let n = 0; n < 16; n++) r.push(e[n].toString(16).padStart(2, "0"));
|
|
195
196
|
return `${r[0]}${r[1]}${r[2]}${r[3]}-${r[4]}${r[5]}-${r[6]}${r[7]}-${r[8]}${r[9]}-${r[10]}${r[11]}${r[12]}${r[13]}${r[14]}${r[15]}`;
|
|
196
197
|
}
|
|
198
|
+
function Ee() {
|
|
199
|
+
let t = J(H);
|
|
200
|
+
return t || (t = te(), ue(H, t)), t;
|
|
201
|
+
}
|
|
197
202
|
function Re() {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
}
|
|
208
|
-
const De = "micdrop_attribution";
|
|
209
|
-
function Ne() {
|
|
210
|
-
const t = Y(De);
|
|
203
|
+
if (!Pe()) return null;
|
|
204
|
+
const t = ie(W);
|
|
205
|
+
if (Ie(t)) return t;
|
|
206
|
+
const e = te();
|
|
207
|
+
return ce(W, e), e;
|
|
208
|
+
}
|
|
209
|
+
const Ae = "micdrop_attribution";
|
|
210
|
+
function De() {
|
|
211
|
+
const t = J(Ae);
|
|
211
212
|
return !t || !t.utm || typeof t.utm.utmSource != "string" ? null : t;
|
|
212
213
|
}
|
|
213
214
|
function U() {
|
|
214
|
-
const e =
|
|
215
|
+
const e = De() ?? be();
|
|
215
216
|
return {
|
|
216
|
-
sessionId:
|
|
217
|
-
visitorId:
|
|
217
|
+
sessionId: Ee(),
|
|
218
|
+
visitorId: Re(),
|
|
218
219
|
utmSource: e.utm.utmSource,
|
|
219
220
|
utmMedium: e.utm.utmMedium,
|
|
220
221
|
utmCampaign: e.utm.utmCampaign,
|
|
@@ -223,12 +224,12 @@ function U() {
|
|
|
223
224
|
referrer: e.referrer || ""
|
|
224
225
|
};
|
|
225
226
|
}
|
|
226
|
-
|
|
227
|
+
le("tracking");
|
|
227
228
|
const d = b("VC");
|
|
228
229
|
async function dt(t, e, r) {
|
|
229
230
|
try {
|
|
230
231
|
const n = await f(
|
|
231
|
-
`${
|
|
232
|
+
`${R()}/cart/${t}/payment-intent`,
|
|
232
233
|
{
|
|
233
234
|
productQuantities: e,
|
|
234
235
|
...r && Object.keys(r).length > 0 ? { donationAmounts: r } : {},
|
|
@@ -239,7 +240,7 @@ async function dt(t, e, r) {
|
|
|
239
240
|
}
|
|
240
241
|
);
|
|
241
242
|
if (!n.success)
|
|
242
|
-
throw d.error("Payment intent creation failed:", n.error), new
|
|
243
|
+
throw d.error("Payment intent creation failed:", n.error), new E(
|
|
243
244
|
n.error || "Failed to create payment intent",
|
|
244
245
|
"lib/api/orders/createPaymentIntent"
|
|
245
246
|
);
|
|
@@ -252,11 +253,11 @@ async function ft(t, e) {
|
|
|
252
253
|
if (!t) return null;
|
|
253
254
|
try {
|
|
254
255
|
const r = await $(
|
|
255
|
-
`${
|
|
256
|
+
`${R()}/cart/${t}`
|
|
256
257
|
);
|
|
257
258
|
if (!r.success)
|
|
258
259
|
return null;
|
|
259
|
-
const { uuid: n, eventID: a, status: s, expiresAt: o, reservations: i } =
|
|
260
|
+
const { uuid: n, eventID: a, status: s, expiresAt: o, reservations: i } = ve(
|
|
260
261
|
r.data
|
|
261
262
|
);
|
|
262
263
|
return s !== "reserved" && s !== "active" || e !== void 0 && a !== Number(e) ? null : { uuid: n, eventID: a, status: s, expiresAt: o, reservations: i };
|
|
@@ -277,7 +278,7 @@ async function mt(t, e, r) {
|
|
|
277
278
|
const u = typeof o == "number" ? o : parseInt(o, 10);
|
|
278
279
|
!Number.isNaN(u) && i > 0 && (a[u] = i);
|
|
279
280
|
}
|
|
280
|
-
const s = await fetch(`${
|
|
281
|
+
const s = await fetch(`${R()}/cart/${t}`, {
|
|
281
282
|
method: "PUT",
|
|
282
283
|
headers: { "Content-Type": "application/json" },
|
|
283
284
|
credentials: "include",
|
|
@@ -340,11 +341,11 @@ async function gt(t, e) {
|
|
|
340
341
|
}
|
|
341
342
|
}
|
|
342
343
|
async function vt(t) {
|
|
343
|
-
return
|
|
344
|
+
return A(`${c()}/orders/${t}`);
|
|
344
345
|
}
|
|
345
346
|
async function ht(t, e) {
|
|
346
347
|
try {
|
|
347
|
-
const r = await f(`${
|
|
348
|
+
const r = await f(`${R()}/validatePaymentIntent/${t}`, {
|
|
348
349
|
...e,
|
|
349
350
|
attribution: U()
|
|
350
351
|
});
|
|
@@ -425,7 +426,7 @@ async function kt(t = { eventID: "" }) {
|
|
|
425
426
|
}
|
|
426
427
|
async function bt(t) {
|
|
427
428
|
if (typeof window > "u") return;
|
|
428
|
-
const e = new URLSearchParams(window.location.search), r =
|
|
429
|
+
const e = new URLSearchParams(window.location.search), r = ee(e.get("utm_source")) || X;
|
|
429
430
|
try {
|
|
430
431
|
await fetch(
|
|
431
432
|
`${c()}/utm/${t}/${encodeURIComponent(r)}`
|
|
@@ -434,7 +435,7 @@ async function bt(t) {
|
|
|
434
435
|
d.error("UTM tracking failed:", n);
|
|
435
436
|
}
|
|
436
437
|
}
|
|
437
|
-
const V = b("VC"),
|
|
438
|
+
const V = b("VC"), Ne = () => R();
|
|
438
439
|
async function $t(t, e) {
|
|
439
440
|
try {
|
|
440
441
|
if (!e || !e.trim())
|
|
@@ -471,7 +472,7 @@ async function Ct(t) {
|
|
|
471
472
|
async function Tt(t, e) {
|
|
472
473
|
try {
|
|
473
474
|
const r = await f(
|
|
474
|
-
`${
|
|
475
|
+
`${Ne()}/cart/${t}/apply-promo`,
|
|
475
476
|
{ promoCode: e }
|
|
476
477
|
);
|
|
477
478
|
return r.success ? { success: !0 } : {
|
|
@@ -493,14 +494,14 @@ async function Pt(t) {
|
|
|
493
494
|
return V.error("Error removing promo code:", e), { success: !1, error: "Network error removing code" };
|
|
494
495
|
}
|
|
495
496
|
}
|
|
496
|
-
function
|
|
497
|
+
function Ue(t) {
|
|
497
498
|
const e = t ?? {};
|
|
498
499
|
return {
|
|
499
500
|
performers: Array.isArray(e.performers) ? e.performers : [],
|
|
500
501
|
showPerformers: e.showPerformers === !0
|
|
501
502
|
};
|
|
502
503
|
}
|
|
503
|
-
function
|
|
504
|
+
function xe(t) {
|
|
504
505
|
return { ok: !0, data: t };
|
|
505
506
|
}
|
|
506
507
|
function N(t) {
|
|
@@ -509,7 +510,7 @@ function N(t) {
|
|
|
509
510
|
function St(t) {
|
|
510
511
|
return t.ok;
|
|
511
512
|
}
|
|
512
|
-
function
|
|
513
|
+
function D(t, e) {
|
|
513
514
|
return t.ok ? t.data : e;
|
|
514
515
|
}
|
|
515
516
|
const m = b("VC"), O = /* @__PURE__ */ new Map();
|
|
@@ -523,7 +524,7 @@ async function It(t, e = fetch, r) {
|
|
|
523
524
|
try {
|
|
524
525
|
const s = r ? `${c()}/events/${t}?password=${encodeURIComponent(r)}` : `${c()}/events/${t}`, o = await e(s);
|
|
525
526
|
if (!o.ok)
|
|
526
|
-
throw new
|
|
527
|
+
throw new E(
|
|
527
528
|
`Failed to fetch event details: ${o.status}`,
|
|
528
529
|
"lib/api/events/fetchEventDetails"
|
|
529
530
|
);
|
|
@@ -538,108 +539,108 @@ async function It(t, e = fetch, r) {
|
|
|
538
539
|
}
|
|
539
540
|
async function w(t, e, r = (n) => n) {
|
|
540
541
|
try {
|
|
541
|
-
const n = await
|
|
542
|
-
return n ?
|
|
542
|
+
const n = await A(t);
|
|
543
|
+
return n ? xe(r(n)) : (m.error(`Failed to load (${e}): network or server error`), N(e));
|
|
543
544
|
} catch (n) {
|
|
544
545
|
return m.error(`Error loading (${e}):`, n), N(e);
|
|
545
546
|
}
|
|
546
547
|
}
|
|
547
|
-
function
|
|
548
|
+
function G(t) {
|
|
548
549
|
return Array.isArray(t) ? t : [];
|
|
549
550
|
}
|
|
550
|
-
async function
|
|
551
|
+
async function Oe(t) {
|
|
551
552
|
return w(
|
|
552
553
|
`${c()}/tickets/event/${t}`,
|
|
553
554
|
"tickets_fetch_failed",
|
|
554
|
-
|
|
555
|
+
G
|
|
555
556
|
);
|
|
556
557
|
}
|
|
557
558
|
async function Et(t) {
|
|
558
|
-
return
|
|
559
|
+
return D(await Oe(t), []);
|
|
559
560
|
}
|
|
560
|
-
async function
|
|
561
|
+
async function Fe(t) {
|
|
561
562
|
return t ? w(
|
|
562
563
|
`${c()}/events/${t}/performers`,
|
|
563
564
|
"performers_fetch_failed",
|
|
564
|
-
(e) =>
|
|
565
|
+
(e) => Ue(e)
|
|
565
566
|
) : (m.warn("fetchEventPerformers called without eventId"), N("performers_missing_event_id"));
|
|
566
567
|
}
|
|
567
568
|
async function Rt(t) {
|
|
568
|
-
return
|
|
569
|
+
return D(await Fe(t), {
|
|
569
570
|
performers: [],
|
|
570
571
|
showPerformers: !1
|
|
571
572
|
});
|
|
572
573
|
}
|
|
573
|
-
async function
|
|
574
|
+
async function Ve(t) {
|
|
574
575
|
return t ? w(
|
|
575
576
|
`${c()}/venues/organization/${t}`,
|
|
576
577
|
"venues_fetch_failed",
|
|
577
|
-
|
|
578
|
+
G
|
|
578
579
|
) : (m.warn("fetchAllVenues called without orgId"), N("venues_missing_org_id"));
|
|
579
580
|
}
|
|
580
581
|
async function At(t) {
|
|
581
|
-
return
|
|
582
|
+
return D(await Ve(t), []);
|
|
582
583
|
}
|
|
583
584
|
async function Le(t) {
|
|
584
585
|
return t ? w(
|
|
585
586
|
`${c()}/events/venue/${t}`,
|
|
586
587
|
"venue_events_fetch_failed",
|
|
587
|
-
|
|
588
|
+
G
|
|
588
589
|
) : (m.warn("fetchVenueEvents called without venueId"), N("venue_events_missing_venue_id"));
|
|
589
590
|
}
|
|
590
591
|
async function Dt(t) {
|
|
591
|
-
return
|
|
592
|
+
return D(await Le(t), []);
|
|
592
593
|
}
|
|
593
|
-
function
|
|
594
|
+
function re(t) {
|
|
594
595
|
return Array.isArray(t) ? t : Array.isArray(t.events) ? t.events : [];
|
|
595
596
|
}
|
|
596
|
-
async function
|
|
597
|
+
async function qe(t, e, r) {
|
|
597
598
|
return w(
|
|
598
599
|
`${c()}/events/venue/${t}/month/${e}/${r}`,
|
|
599
600
|
"month_events_fetch_failed",
|
|
600
|
-
(n) =>
|
|
601
|
+
(n) => re(n)
|
|
601
602
|
);
|
|
602
603
|
}
|
|
603
604
|
async function Nt(t, e, r) {
|
|
604
|
-
return
|
|
605
|
+
return D(await qe(t, e, r), []);
|
|
605
606
|
}
|
|
606
|
-
async function
|
|
607
|
+
async function Me(t, e, r) {
|
|
607
608
|
return w(
|
|
608
609
|
`${c()}/events/organization/${t}/month/${e}/${r}`,
|
|
609
610
|
"org_month_events_fetch_failed",
|
|
610
|
-
(n) =>
|
|
611
|
+
(n) => re(n)
|
|
611
612
|
);
|
|
612
613
|
}
|
|
613
614
|
async function Ut(t, e, r) {
|
|
614
|
-
return
|
|
615
|
+
return D(await Me(t, e, r), []);
|
|
615
616
|
}
|
|
616
|
-
async function
|
|
617
|
+
async function Ge(t) {
|
|
617
618
|
return w(
|
|
618
619
|
`${c()}/series/${t}/occurrences`,
|
|
619
620
|
"series_occurrences_fetch_failed"
|
|
620
621
|
);
|
|
621
622
|
}
|
|
622
623
|
async function xt(t) {
|
|
623
|
-
const e = await
|
|
624
|
+
const e = await Ge(t);
|
|
624
625
|
return e.ok ? e.data : null;
|
|
625
626
|
}
|
|
626
|
-
async function
|
|
627
|
+
async function je(t, e) {
|
|
627
628
|
return w(
|
|
628
629
|
`${c()}/series/${t}/occurrences?venueId=${e}`,
|
|
629
630
|
"series_cta_fetch_failed"
|
|
630
631
|
);
|
|
631
632
|
}
|
|
632
633
|
async function Ot(t, e) {
|
|
633
|
-
const r = await
|
|
634
|
+
const r = await je(t, e);
|
|
634
635
|
return r.ok ? r.data : null;
|
|
635
636
|
}
|
|
636
637
|
async function Ft(t, e) {
|
|
637
638
|
try {
|
|
638
|
-
const r = e ? `?slug=${encodeURIComponent(e)}` : "", n = await
|
|
639
|
+
const r = e ? `?slug=${encodeURIComponent(e)}` : "", n = await A(
|
|
639
640
|
`${c()}/resolve/${encodeURIComponent(String(t))}${r}`
|
|
640
641
|
);
|
|
641
642
|
if (!n || !n.type)
|
|
642
|
-
throw new
|
|
643
|
+
throw new E(
|
|
643
644
|
"Failed to resolve entity",
|
|
644
645
|
"lib/api/events/resolvePublicEntity"
|
|
645
646
|
);
|
|
@@ -650,11 +651,11 @@ async function Ft(t, e) {
|
|
|
650
651
|
}
|
|
651
652
|
async function Vt(t) {
|
|
652
653
|
try {
|
|
653
|
-
const e = await
|
|
654
|
+
const e = await A(
|
|
654
655
|
`${c()}/series/${t}/page`
|
|
655
656
|
);
|
|
656
657
|
if (!e)
|
|
657
|
-
throw new
|
|
658
|
+
throw new E(
|
|
658
659
|
"Failed to fetch series page",
|
|
659
660
|
"lib/api/events/fetchSeriesPage"
|
|
660
661
|
);
|
|
@@ -663,11 +664,11 @@ async function Vt(t) {
|
|
|
663
664
|
return m.error("Error fetching series page:", e), null;
|
|
664
665
|
}
|
|
665
666
|
}
|
|
666
|
-
async function
|
|
667
|
+
async function Lt(t, e) {
|
|
667
668
|
try {
|
|
668
|
-
const r = e ? `${c()}/collections/${t}?password=${encodeURIComponent(e)}` : `${c()}/collections/${t}`, n = await
|
|
669
|
+
const r = e ? `${c()}/collections/${t}?password=${encodeURIComponent(e)}` : `${c()}/collections/${t}`, n = await A(r);
|
|
669
670
|
if (!n)
|
|
670
|
-
throw new
|
|
671
|
+
throw new E(
|
|
671
672
|
"Failed to fetch collection",
|
|
672
673
|
"lib/api/events/fetchPublicCollection"
|
|
673
674
|
);
|
|
@@ -676,10 +677,10 @@ async function qt(t, e) {
|
|
|
676
677
|
return m.error("Error fetching collection:", r), null;
|
|
677
678
|
}
|
|
678
679
|
}
|
|
679
|
-
async function
|
|
680
|
+
async function qt(t, e) {
|
|
680
681
|
try {
|
|
681
682
|
const r = encodeURIComponent(e);
|
|
682
|
-
return (await
|
|
683
|
+
return (await A(
|
|
683
684
|
`${c()}/collections/${t}/check-password/${r}`
|
|
684
685
|
))?.valid === !0;
|
|
685
686
|
} catch (r) {
|
|
@@ -709,19 +710,19 @@ async function Gt(t, e) {
|
|
|
709
710
|
return m.error("Network connection test failed:", r), !1;
|
|
710
711
|
}
|
|
711
712
|
}
|
|
712
|
-
const
|
|
713
|
-
async function
|
|
713
|
+
const I = b("VC");
|
|
714
|
+
async function ze(t) {
|
|
714
715
|
try {
|
|
715
716
|
if (!t)
|
|
716
|
-
return
|
|
717
|
+
return I.warn("getVenue called without venueId"), null;
|
|
717
718
|
const e = await $(`/venues/${t}`);
|
|
718
|
-
return e.success ? e.data ?? null : (
|
|
719
|
+
return e.success ? e.data ?? null : (I.error(`Failed to fetch venue: ${e.statusCode}`), null);
|
|
719
720
|
} catch (e) {
|
|
720
|
-
return
|
|
721
|
+
return I.error("Error fetching venue:", e), null;
|
|
721
722
|
}
|
|
722
723
|
}
|
|
723
724
|
async function jt(t) {
|
|
724
|
-
const e = await
|
|
725
|
+
const e = await ze(t);
|
|
725
726
|
return e ? {
|
|
726
727
|
serviceFeePercentage: e.serviceFeePercentage ?? 0,
|
|
727
728
|
serviceFeeCents: e.serviceFeeCents ?? 0,
|
|
@@ -731,14 +732,14 @@ async function jt(t) {
|
|
|
731
732
|
async function zt(t) {
|
|
732
733
|
try {
|
|
733
734
|
if (!t)
|
|
734
|
-
return
|
|
735
|
+
return I.warn("getVenueBySlug called without slug"), null;
|
|
735
736
|
const e = encodeURIComponent(t), r = await $(`/venues/slug/${e}`);
|
|
736
|
-
return r.success ? r.data ?? null : (
|
|
737
|
+
return r.success ? r.data ?? null : (I.error(`Failed to fetch venue by slug: ${r.statusCode}`), null);
|
|
737
738
|
} catch (e) {
|
|
738
|
-
return
|
|
739
|
+
return I.error("Error fetching venue by slug:", e), null;
|
|
739
740
|
}
|
|
740
741
|
}
|
|
741
|
-
function
|
|
742
|
+
function Be(t) {
|
|
742
743
|
const e = t ?? {}, r = (e.appliedAmount ?? 0) / 100, n = e.remainingTotal ?? 0, a = e.fullyCoveredByCard ?? n <= 0, s = !a;
|
|
743
744
|
return {
|
|
744
745
|
valid: !0,
|
|
@@ -751,15 +752,15 @@ function He(t) {
|
|
|
751
752
|
requiresStripe: s
|
|
752
753
|
};
|
|
753
754
|
}
|
|
754
|
-
const h = b("VC"),
|
|
755
|
+
const h = b("VC"), He = "https://get-micdrop.com", We = `${He}/api/orders/v2`, j = () => R();
|
|
755
756
|
async function Bt(t) {
|
|
756
757
|
try {
|
|
757
758
|
const e = await f(
|
|
758
|
-
`${
|
|
759
|
+
`${We}/gift-cards`,
|
|
759
760
|
t
|
|
760
761
|
);
|
|
761
762
|
if (!e.success)
|
|
762
|
-
throw h.error("Gift card purchase creation failed:", e.error), new
|
|
763
|
+
throw h.error("Gift card purchase creation failed:", e.error), new E(
|
|
763
764
|
e.error || "Failed to create gift card purchase",
|
|
764
765
|
"lib/api/gift-cards/createGiftCardPurchase"
|
|
765
766
|
);
|
|
@@ -771,10 +772,10 @@ async function Bt(t) {
|
|
|
771
772
|
async function Ht(t, e) {
|
|
772
773
|
try {
|
|
773
774
|
const r = await f(
|
|
774
|
-
`${
|
|
775
|
+
`${j()}/cart/${t}/apply-gift-card`,
|
|
775
776
|
{ giftCardCode: e }
|
|
776
777
|
);
|
|
777
|
-
return r.success ?
|
|
778
|
+
return r.success ? Be(r.data) : r.statusCode === 429 ? {
|
|
778
779
|
valid: !1,
|
|
779
780
|
error: "Too many attempts. Please wait a moment and try again."
|
|
780
781
|
} : (h.error("Apply gift card failed:", r.error), {
|
|
@@ -790,8 +791,8 @@ async function Ht(t, e) {
|
|
|
790
791
|
}
|
|
791
792
|
async function Wt(t, e) {
|
|
792
793
|
try {
|
|
793
|
-
const r = await
|
|
794
|
-
`${
|
|
794
|
+
const r = await ye(
|
|
795
|
+
`${j()}/cart/${t}/gift-card`,
|
|
795
796
|
e ? { body: JSON.stringify({ giftCardCode: e }) } : void 0
|
|
796
797
|
);
|
|
797
798
|
return r.success ? { success: !0 } : (h.error("Remove gift card failed:", r.error), {
|
|
@@ -807,7 +808,7 @@ async function Wt(t, e) {
|
|
|
807
808
|
}
|
|
808
809
|
async function Qt(t, e) {
|
|
809
810
|
try {
|
|
810
|
-
const r = await f(`${
|
|
811
|
+
const r = await f(`${j()}/cart/${t}/complete-gift-card-payment`, {
|
|
811
812
|
firstName: e.firstName,
|
|
812
813
|
lastName: e.lastName,
|
|
813
814
|
email: e.email,
|
|
@@ -832,7 +833,7 @@ async function Qt(t, e) {
|
|
|
832
833
|
};
|
|
833
834
|
}
|
|
834
835
|
}
|
|
835
|
-
const
|
|
836
|
+
const M = b("VC"), Qe = {
|
|
836
837
|
waitlist_not_enabled: "Waitlist is not available for this event",
|
|
837
838
|
event_not_found: "Event not found",
|
|
838
839
|
invalid_phone: "Please enter a valid phone number",
|
|
@@ -850,12 +851,12 @@ async function Jt(t, e, r = null, n = !1) {
|
|
|
850
851
|
return s.success ? {
|
|
851
852
|
success: !0,
|
|
852
853
|
updated: s.data?.updated
|
|
853
|
-
} : (
|
|
854
|
+
} : (M.error("Join waitlist failed:", s.error), {
|
|
854
855
|
success: !1,
|
|
855
|
-
error:
|
|
856
|
+
error: Qe[s.error ?? ""] || "Failed to join waitlist. Please try again."
|
|
856
857
|
});
|
|
857
858
|
} catch (a) {
|
|
858
|
-
return
|
|
859
|
+
return M.error("joinWaitlist error:", a), {
|
|
859
860
|
success: !1,
|
|
860
861
|
error: "Network error. Please check your connection and try again."
|
|
861
862
|
};
|
|
@@ -877,7 +878,7 @@ async function Yt(t) {
|
|
|
877
878
|
gated: !!r.data?.gated
|
|
878
879
|
} : e;
|
|
879
880
|
} catch (r) {
|
|
880
|
-
return
|
|
881
|
+
return M.error("getWaitlistStatus error:", r), e;
|
|
881
882
|
}
|
|
882
883
|
}
|
|
883
884
|
function Kt(t, e, r = {}) {
|
|
@@ -891,7 +892,7 @@ function Kt(t, e, r = {}) {
|
|
|
891
892
|
const i = t.endDateTime || t.startDateTime;
|
|
892
893
|
if (i && new Date(i) < o)
|
|
893
894
|
return { text: "Sales ended", disabled: !0, reason: "event_past" };
|
|
894
|
-
const u = t?.hasPurchasableHiddenTickets === !0 || Array.isArray(e) && e.some(
|
|
895
|
+
const u = t?.hasPurchasableHiddenTickets === !0 || Array.isArray(e) && e.some(fe), C = (e || []).filter(
|
|
895
896
|
(l) => l.salesChannel !== 2 && !l.isHidden && !(typeof l.visibility == "number" && l.visibility >= 2)
|
|
896
897
|
);
|
|
897
898
|
if (C.length === 0)
|
|
@@ -906,10 +907,10 @@ function Kt(t, e, r = {}) {
|
|
|
906
907
|
};
|
|
907
908
|
let y = !1, k = !0, g = !0, v = null;
|
|
908
909
|
for (const l of C) {
|
|
909
|
-
const T = l.salesBegin || l.salesStart || l.saleBegin || l.onSaleStart, x = l.salesEnd || l.saleEnd || l.onSaleEnd,
|
|
910
|
-
if (!
|
|
911
|
-
const
|
|
912
|
-
(!v ||
|
|
910
|
+
const T = l.salesBegin || l.salesStart || l.saleBegin || l.onSaleStart, x = l.salesEnd || l.saleEnd || l.onSaleEnd, P = l.remainingCapacity ?? l.quantityRemaining ?? l.quantity, _ = l.soldOut || P != null && P <= 0, S = T ? new Date(T) > o : !1, z = x ? new Date(x) < o : !1;
|
|
911
|
+
if (!_ && !S && !z && (y = !0), _ || (k = !1), S || (g = !1), S && T && !_ && !z) {
|
|
912
|
+
const B = new Date(T);
|
|
913
|
+
(!v || B < v) && (v = B);
|
|
913
914
|
}
|
|
914
915
|
}
|
|
915
916
|
if (y)
|
|
@@ -925,25 +926,21 @@ function Kt(t, e, r = {}) {
|
|
|
925
926
|
disabled: !1,
|
|
926
927
|
reason: "hidden_only"
|
|
927
928
|
};
|
|
928
|
-
const l = v.getTime() - o.getTime(), T = l / (1e3 * 60 * 60), x = l / (1e3 * 60 * 60 * 24)
|
|
929
|
+
const l = v.getTime() - o.getTime(), T = l / (1e3 * 60 * 60), x = l / (1e3 * 60 * 60 * 24), P = (S) => L(
|
|
930
|
+
S,
|
|
931
|
+
{ hour: "numeric", minute: "2-digit", hour12: !0 },
|
|
932
|
+
"en-US"
|
|
933
|
+
);
|
|
929
934
|
let _;
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
const A = H(
|
|
940
|
-
v,
|
|
941
|
-
{ month: "short", day: "numeric" },
|
|
942
|
-
"en-US"
|
|
943
|
-
), D = B(v, { hour12: !0 }, "en-US");
|
|
944
|
-
_ = `${A} ${D}`;
|
|
945
|
-
}
|
|
946
|
-
return {
|
|
935
|
+
return T < 24 ? _ = P(v) : x <= 7 ? _ = L(
|
|
936
|
+
v,
|
|
937
|
+
{ weekday: "short", hour: "numeric", minute: "2-digit", hour12: !0 },
|
|
938
|
+
"en-US"
|
|
939
|
+
) : _ = `${L(
|
|
940
|
+
v,
|
|
941
|
+
{ month: "short", day: "numeric" },
|
|
942
|
+
"en-US"
|
|
943
|
+
)} ${P(v)}`, {
|
|
947
944
|
text: `On sale ${_}`,
|
|
948
945
|
disabled: !0,
|
|
949
946
|
reason: "coming_soon"
|
|
@@ -963,7 +960,7 @@ function Kt(t, e, r = {}) {
|
|
|
963
960
|
reason: "hidden_only"
|
|
964
961
|
} : { text: "Sales ended", disabled: !0, reason: "sales_ended" };
|
|
965
962
|
}
|
|
966
|
-
function
|
|
963
|
+
function ne(t) {
|
|
967
964
|
const e = t;
|
|
968
965
|
return {
|
|
969
966
|
uuid: e.uuid || String(e.id || e.ID || ""),
|
|
@@ -981,7 +978,7 @@ function ae(t) {
|
|
|
981
978
|
checkedInAt: e.checkedInAt || e.checked_in_at
|
|
982
979
|
};
|
|
983
980
|
}
|
|
984
|
-
function
|
|
981
|
+
function ae(t) {
|
|
985
982
|
const e = t, r = e.purchasedTickets || e.tickets || e.purchased_tickets || [];
|
|
986
983
|
return {
|
|
987
984
|
uuid: e.uuid || String(e.id || e.ID || ""),
|
|
@@ -997,21 +994,21 @@ function se(t) {
|
|
|
997
994
|
discount: e.discount || 0,
|
|
998
995
|
paymentIntentId: e.paymentIntentId || e.payment_intent_id,
|
|
999
996
|
paymentMethod: e.paymentMethod || e.payment_method,
|
|
1000
|
-
purchasedTickets: r.map(
|
|
997
|
+
purchasedTickets: r.map(ne),
|
|
1001
998
|
createdAt: e.createdAt || e.created_at,
|
|
1002
999
|
updatedAt: e.updatedAt || e.updated_at
|
|
1003
1000
|
};
|
|
1004
1001
|
}
|
|
1005
|
-
const Zt =
|
|
1002
|
+
const Zt = ne, Xt = ae;
|
|
1006
1003
|
function er(t) {
|
|
1007
|
-
const e =
|
|
1004
|
+
const e = ae(t), r = e.uuid.split("-")[0] || e.uuid;
|
|
1008
1005
|
return {
|
|
1009
1006
|
orderId: e.uuid,
|
|
1010
1007
|
displayOrderId: r,
|
|
1011
1008
|
email: e.customerEmail,
|
|
1012
1009
|
customerName: [e.customerFirstName, e.customerLastName].filter(Boolean).join(" "),
|
|
1013
1010
|
total: e.totalAmount,
|
|
1014
|
-
formattedTotal: `${
|
|
1011
|
+
formattedTotal: `${de(
|
|
1015
1012
|
e.totalAmount / 100
|
|
1016
1013
|
/* FIXME(canonical-cleanup:toFixed): this cast bypasses the brand boundary; replace with toCents/toUSD at the API-response-transform layer. */
|
|
1017
1014
|
)}`,
|
|
@@ -1019,14 +1016,14 @@ function er(t) {
|
|
|
1019
1016
|
status: e.status
|
|
1020
1017
|
};
|
|
1021
1018
|
}
|
|
1022
|
-
function
|
|
1023
|
-
return
|
|
1019
|
+
function Je(t) {
|
|
1020
|
+
return Y(t, { cdn: !0 });
|
|
1024
1021
|
}
|
|
1025
|
-
function
|
|
1022
|
+
function Q(t) {
|
|
1026
1023
|
const e = t.imageUrl || t.imageURL || t.image_url || t.image || "";
|
|
1027
|
-
return
|
|
1024
|
+
return Je(e);
|
|
1028
1025
|
}
|
|
1029
|
-
function
|
|
1026
|
+
function Ye(t) {
|
|
1030
1027
|
switch (t) {
|
|
1031
1028
|
case "available":
|
|
1032
1029
|
case "sold_out":
|
|
@@ -1037,10 +1034,10 @@ function Ke(t) {
|
|
|
1037
1034
|
return null;
|
|
1038
1035
|
}
|
|
1039
1036
|
}
|
|
1040
|
-
function
|
|
1037
|
+
function Ke(t) {
|
|
1041
1038
|
const e = t.ctaState || t.cta_state;
|
|
1042
1039
|
if (e) {
|
|
1043
|
-
const o =
|
|
1040
|
+
const o = Ye(e);
|
|
1044
1041
|
if (o)
|
|
1045
1042
|
return o;
|
|
1046
1043
|
}
|
|
@@ -1061,7 +1058,7 @@ function Ze(t) {
|
|
|
1061
1058
|
return o + Math.max(0, u - C);
|
|
1062
1059
|
}, 0) <= 0 ? "sold_out" : "available";
|
|
1063
1060
|
}
|
|
1064
|
-
function
|
|
1061
|
+
function se(t) {
|
|
1065
1062
|
const e = t;
|
|
1066
1063
|
return {
|
|
1067
1064
|
id: e.id || e.ID,
|
|
@@ -1082,8 +1079,8 @@ function oe(t) {
|
|
|
1082
1079
|
sortOrder: e.sortOrder || e.sort_order || 0
|
|
1083
1080
|
};
|
|
1084
1081
|
}
|
|
1085
|
-
function
|
|
1086
|
-
const e = t, n = (e.availableTickets || e.available_tickets || e.tickets || []).map(
|
|
1082
|
+
function oe(t) {
|
|
1083
|
+
const e = t, n = (e.availableTickets || e.available_tickets || e.tickets || []).map(se), a = n.map((i) => i.price).filter((i) => i > 0), s = a.length > 0 ? Math.min(...a) : void 0, o = a.length > 0 ? Math.max(...a) : void 0;
|
|
1087
1084
|
return {
|
|
1088
1085
|
eventID: e.eventID || e.id || e.ID || 0,
|
|
1089
1086
|
id: e.id || e.ID,
|
|
@@ -1100,8 +1097,8 @@ function ie(t) {
|
|
|
1100
1097
|
venueName: e.venueName || e.venue_name,
|
|
1101
1098
|
venueAddress: e.venueAddress || e.venue_address,
|
|
1102
1099
|
location: e.location || e.venueAddress || e.venue_address,
|
|
1103
|
-
imageUrl:
|
|
1104
|
-
imageURL:
|
|
1100
|
+
imageUrl: Q(e),
|
|
1101
|
+
imageURL: Q(e),
|
|
1105
1102
|
status: e.status,
|
|
1106
1103
|
isPublished: e.isPublished ?? e.is_published,
|
|
1107
1104
|
isCancelled: e.isCancelled ?? e.is_cancelled,
|
|
@@ -1111,7 +1108,7 @@ function ie(t) {
|
|
|
1111
1108
|
minPrice: e.minPrice ?? e.min_price ?? s,
|
|
1112
1109
|
maxPrice: e.maxPrice ?? e.max_price ?? o,
|
|
1113
1110
|
ctaText: e.ctaText || e.cta_text,
|
|
1114
|
-
ctaState:
|
|
1111
|
+
ctaState: Ke(e),
|
|
1115
1112
|
showPerformers: e.showPerformers ?? e.show_performers,
|
|
1116
1113
|
eventSeriesId: e.eventSeriesId || e.event_series_id,
|
|
1117
1114
|
seriesInstanceNumber: e.seriesInstanceNumber || e.series_instance_number,
|
|
@@ -1145,11 +1142,11 @@ function ie(t) {
|
|
|
1145
1142
|
purchasedTickets: e.purchasedTickets
|
|
1146
1143
|
};
|
|
1147
1144
|
}
|
|
1148
|
-
const tr =
|
|
1149
|
-
function
|
|
1150
|
-
return
|
|
1145
|
+
const tr = se, rr = oe, nr = oe;
|
|
1146
|
+
function Ze(t) {
|
|
1147
|
+
return Y(t, { cdn: !0 });
|
|
1151
1148
|
}
|
|
1152
|
-
function
|
|
1149
|
+
function Xe(t) {
|
|
1153
1150
|
const e = t, r = e.logoUrl || e.logo_url || e.logo;
|
|
1154
1151
|
return {
|
|
1155
1152
|
id: e.id || e.ID || 0,
|
|
@@ -1162,14 +1159,14 @@ function et(t) {
|
|
|
1162
1159
|
zipCode: e.zipCode || e.zip_code,
|
|
1163
1160
|
country: e.country,
|
|
1164
1161
|
timezone: e.timezone || e.time_zone,
|
|
1165
|
-
logoUrl:
|
|
1162
|
+
logoUrl: Ze(r),
|
|
1166
1163
|
serviceFeePercentage: e.serviceFeePercentage ?? e.service_fee_percentage ?? 0,
|
|
1167
1164
|
serviceFeeCents: e.serviceFeeCents ?? e.service_fee_cents ?? 0,
|
|
1168
1165
|
taxPercentage: e.taxPercentage ?? e.tax_percentage ?? 0,
|
|
1169
1166
|
organizationId: e.organizationId || e.organization_id
|
|
1170
1167
|
};
|
|
1171
1168
|
}
|
|
1172
|
-
const ar =
|
|
1169
|
+
const ar = Xe;
|
|
1173
1170
|
function sr(t) {
|
|
1174
1171
|
const e = t;
|
|
1175
1172
|
return {
|
|
@@ -1184,15 +1181,15 @@ function or(t) {
|
|
|
1184
1181
|
).join(", ");
|
|
1185
1182
|
}
|
|
1186
1183
|
export {
|
|
1187
|
-
|
|
1184
|
+
ye as apiDelete,
|
|
1188
1185
|
$ as apiGet,
|
|
1189
1186
|
f as apiPost,
|
|
1190
1187
|
lt as apiPut,
|
|
1191
1188
|
Ht as applyGiftCard,
|
|
1192
1189
|
Tt as applyPromoCode,
|
|
1193
|
-
|
|
1190
|
+
Ke as calculateCtaState,
|
|
1194
1191
|
yt as cancelReservation,
|
|
1195
|
-
|
|
1192
|
+
qt as checkCollectionPassword,
|
|
1196
1193
|
Mt as checkEventPassword,
|
|
1197
1194
|
Qt as completeGiftCardPayment,
|
|
1198
1195
|
pt as completeReservation,
|
|
@@ -1205,36 +1202,36 @@ export {
|
|
|
1205
1202
|
_t as extendCheckoutSession,
|
|
1206
1203
|
sr as extractVenueFees,
|
|
1207
1204
|
At as fetchAllVenues,
|
|
1208
|
-
|
|
1205
|
+
Ve as fetchAllVenuesResult,
|
|
1209
1206
|
It as fetchEventDetails,
|
|
1210
1207
|
Rt as fetchEventPerformers,
|
|
1211
|
-
|
|
1208
|
+
Fe as fetchEventPerformersResult,
|
|
1212
1209
|
Et as fetchEventTickets,
|
|
1213
|
-
|
|
1214
|
-
|
|
1210
|
+
Oe as fetchEventTicketsResult,
|
|
1211
|
+
Lt as fetchPublicCollection,
|
|
1215
1212
|
Ot as fetchSeriesOccurrences,
|
|
1216
|
-
|
|
1213
|
+
je as fetchSeriesOccurrencesResult,
|
|
1217
1214
|
Vt as fetchSeriesPage,
|
|
1218
1215
|
Dt as fetchVenueEvents,
|
|
1219
1216
|
Le as fetchVenueEventsResult,
|
|
1220
1217
|
or as formatVenueAddress,
|
|
1221
1218
|
it as getApiConfig,
|
|
1222
|
-
|
|
1219
|
+
Je as getCDNImageUrl,
|
|
1223
1220
|
ft as getCartByUUID,
|
|
1224
1221
|
ut as getClientIP,
|
|
1225
|
-
|
|
1222
|
+
Q as getEventImageUrl,
|
|
1226
1223
|
ct as getLegacyPublicUrl,
|
|
1227
1224
|
Nt as getMonthEvents,
|
|
1228
|
-
|
|
1225
|
+
qe as getMonthEventsResult,
|
|
1229
1226
|
vt as getOrder,
|
|
1230
|
-
|
|
1227
|
+
R as getOrdersV2Url,
|
|
1231
1228
|
Ut as getOrgMonthEvents,
|
|
1232
|
-
|
|
1229
|
+
Me as getOrgMonthEventsResult,
|
|
1233
1230
|
c as getPublicBaseUrl,
|
|
1234
1231
|
xt as getSeriesOccurrences,
|
|
1235
|
-
|
|
1232
|
+
Ge as getSeriesOccurrencesResult,
|
|
1236
1233
|
wt as getSessionStatus,
|
|
1237
|
-
|
|
1234
|
+
ze as getVenue,
|
|
1238
1235
|
zt as getVenueBySlug,
|
|
1239
1236
|
jt as getVenueFees,
|
|
1240
1237
|
Yt as getWaitlistStatus,
|
|
@@ -1242,7 +1239,7 @@ export {
|
|
|
1242
1239
|
kt as initiateOrder,
|
|
1243
1240
|
St as isOk,
|
|
1244
1241
|
Jt as joinWaitlist,
|
|
1245
|
-
|
|
1242
|
+
xe as ok,
|
|
1246
1243
|
Wt as removeGiftCard,
|
|
1247
1244
|
Pt as removePromoCode,
|
|
1248
1245
|
Ft as resolvePublicEntity,
|
|
@@ -1255,7 +1252,7 @@ export {
|
|
|
1255
1252
|
er as transformOrderForDisplay,
|
|
1256
1253
|
Zt as transformTicket,
|
|
1257
1254
|
ar as transformVenue,
|
|
1258
|
-
|
|
1255
|
+
D as unwrapOr,
|
|
1259
1256
|
mt as updateCartQuantities,
|
|
1260
1257
|
ht as validatePaymentIntent,
|
|
1261
1258
|
$t as validatePromoCode
|