@getmicdrop/venue-calendar 4.0.88 → 4.0.90
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/dist/CartView-YGOycNP9.js +2366 -0
- package/dist/CartView-YGOycNP9.js.map +1 -0
- package/dist/Checkout-DdbW2jB6.js +1672 -0
- package/dist/Checkout-DdbW2jB6.js.map +1 -0
- package/dist/Checkout-M9JI43f1.js +916 -0
- package/dist/Checkout-M9JI43f1.js.map +1 -0
- package/dist/{CheckoutTimer-Bz2_04Xe.js → CheckoutTimer-CvoOYwFZ.js} +11 -11
- package/dist/{CheckoutTimer-Bz2_04Xe.js.map → CheckoutTimer-CvoOYwFZ.js.map} +1 -1
- package/dist/{CollectionView-DDHYYddJ.js → CollectionView-LMZ1_xzU.js} +67 -67
- package/dist/CollectionView-LMZ1_xzU.js.map +1 -0
- package/dist/{Event-WRI_FwEM.js → Event-DfXV9XWA.js} +1152 -1145
- package/dist/{Event-WRI_FwEM.js.map → Event-DfXV9XWA.js.map} +1 -1
- package/dist/EventPage-BSKZxOUi.js +532 -0
- package/dist/EventPage-BSKZxOUi.js.map +1 -0
- package/dist/{Heading-BRqoCNl0.js → Heading-BePwi_sf.js} +2 -2
- package/dist/Heading-BePwi_sf.js.map +1 -0
- package/dist/{ScarcityBadge-BLOwSR1L.js → ScarcityBadge-B4h5S5UO.js} +15 -15
- package/dist/ScarcityBadge-B4h5S5UO.js.map +1 -0
- package/dist/{SeriesPage-DMFNiJOI.js → SeriesPage-DAPzTeim.js} +5 -5
- package/dist/{SeriesPage-DMFNiJOI.js.map → SeriesPage-DAPzTeim.js.map} +1 -1
- package/dist/{Spinner-CHr6srqY.js → Spinner-GnsJF25V.js} +6 -6
- package/dist/{Spinner-CHr6srqY.js.map → Spinner-GnsJF25V.js.map} +1 -1
- package/dist/{Success-B_9iqKYy.js → Success-BGxC7bqX.js} +164 -164
- package/dist/Success-BGxC7bqX.js.map +1 -0
- package/dist/{Text-B5672MkO.js → Text-CNt-8lMW.js} +16 -16
- package/dist/{Text-B5672MkO.js.map → Text-CNt-8lMW.js.map} +1 -1
- package/dist/{VenueCalendar-DzDOAkMF.js → VenueCalendar-BTMDuPMc.js} +136 -131
- package/dist/VenueCalendar-BTMDuPMc.js.map +1 -0
- package/dist/{ViewTicketsEmbed-eBIPcuYB.js → ViewTicketsEmbed-BvHbIb2e.js} +474 -474
- package/dist/ViewTicketsEmbed-BvHbIb2e.js.map +1 -0
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.cjs.map +1 -1
- package/dist/api/api.mjs +39 -37
- package/dist/api/api.mjs.map +1 -1
- package/dist/api/types.d.ts +433 -423
- package/dist/{data-toggle-store.svelte-CxTAIAQ_.js → data-toggle-store.svelte-BV2z5rQb.js} +6 -6
- package/dist/{data-toggle-store.svelte-CxTAIAQ_.js.map → data-toggle-store.svelte-BV2z5rQb.js.map} +1 -1
- package/dist/{labels-BtDlhHx5.js → labels-DzApvhnF.js} +43 -43
- package/dist/{labels-BtDlhHx5.js.map → labels-DzApvhnF.js.map} +1 -1
- package/dist/modalManager.svelte-Cm_Q9jBH.js +56 -0
- package/dist/modalManager.svelte-Cm_Q9jBH.js.map +1 -0
- package/dist/seo/types.d.ts +150 -150
- package/dist/{transform-CAkWnN33.js → transform-CdOhGVMK.js} +6 -6
- package/dist/{transform-CAkWnN33.js.map → transform-CdOhGVMK.js.map} +1 -1
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +2 -2
- package/dist/venue-calendar.iife.js +23 -22
- package/dist/venue-calendar.iife.js.map +1 -1
- package/dist/venue-calendar.umd.js +20 -19
- package/dist/venue-calendar.umd.js.map +1 -1
- package/package.json +3 -2
- package/dist/CartView-BHJKr40a.js +0 -2366
- package/dist/CartView-BHJKr40a.js.map +0 -1
- package/dist/Checkout-Bu28X8js.js +0 -1669
- package/dist/Checkout-Bu28X8js.js.map +0 -1
- package/dist/Checkout-r5FFzlI-.js +0 -809
- package/dist/Checkout-r5FFzlI-.js.map +0 -1
- package/dist/CollectionView-DDHYYddJ.js.map +0 -1
- package/dist/EventPage-DS0nenKR.js +0 -529
- package/dist/EventPage-DS0nenKR.js.map +0 -1
- package/dist/Heading-BRqoCNl0.js.map +0 -1
- package/dist/ModalHeader-CJi8ydrv.js +0 -22
- package/dist/ModalHeader-CJi8ydrv.js.map +0 -1
- package/dist/ScarcityBadge-BLOwSR1L.js.map +0 -1
- package/dist/Success-B_9iqKYy.js.map +0 -1
- package/dist/VenueCalendar-DzDOAkMF.js.map +0 -1
- package/dist/ViewTicketsEmbed-eBIPcuYB.js.map +0 -1
package/dist/api/api.mjs
CHANGED
|
@@ -10,21 +10,21 @@ const F = b("VC"), X = {
|
|
|
10
10
|
retryDelay: 500,
|
|
11
11
|
onError: (r) => F.error("API Error:", r)
|
|
12
12
|
};
|
|
13
|
-
let
|
|
13
|
+
let v = { ...X };
|
|
14
14
|
function $e(r) {
|
|
15
|
-
|
|
15
|
+
v = { ...v, ...r };
|
|
16
16
|
}
|
|
17
17
|
function Pe() {
|
|
18
|
-
return { ...
|
|
18
|
+
return { ...v };
|
|
19
19
|
}
|
|
20
20
|
function u() {
|
|
21
|
-
return `${
|
|
21
|
+
return `${v.baseUrl}/api/v2/public`;
|
|
22
22
|
}
|
|
23
23
|
function Te() {
|
|
24
|
-
return `${
|
|
24
|
+
return `${v.baseUrl}/api/public`;
|
|
25
25
|
}
|
|
26
26
|
function I() {
|
|
27
|
-
return `${
|
|
27
|
+
return `${v.baseUrl}/api/orders/v2/public`;
|
|
28
28
|
}
|
|
29
29
|
async function Ee() {
|
|
30
30
|
return "";
|
|
@@ -38,13 +38,13 @@ async function M(r, e, t) {
|
|
|
38
38
|
let k;
|
|
39
39
|
m && (m.aborted ? c.abort() : (k = () => c.abort(), m.addEventListener("abort", k, { once: !0 })));
|
|
40
40
|
try {
|
|
41
|
-
const
|
|
42
|
-
if (
|
|
43
|
-
s = new Error(`HTTP ${
|
|
41
|
+
const g = await fetch(r, { ...e, signal: c.signal });
|
|
42
|
+
if (g.status >= 500 && i < o)
|
|
43
|
+
s = new Error(`HTTP ${g.status}`);
|
|
44
44
|
else
|
|
45
|
-
return
|
|
46
|
-
} catch (
|
|
47
|
-
if (s =
|
|
45
|
+
return g;
|
|
46
|
+
} catch (g) {
|
|
47
|
+
if (s = g, m?.aborted) throw g;
|
|
48
48
|
} finally {
|
|
49
49
|
clearTimeout(_), m && k && m.removeEventListener("abort", k);
|
|
50
50
|
}
|
|
@@ -79,16 +79,16 @@ async function N(r, e, t, n) {
|
|
|
79
79
|
credentials: "include",
|
|
80
80
|
...n
|
|
81
81
|
},
|
|
82
|
-
|
|
82
|
+
v
|
|
83
83
|
);
|
|
84
84
|
if (!o.ok) {
|
|
85
85
|
const i = await o.json().catch(() => ({})), c = i.error || i.message || `HTTP ${o.status}`;
|
|
86
|
-
return
|
|
86
|
+
return v.onError(new Error(c)), { success: !1, error: c, statusCode: o.status };
|
|
87
87
|
}
|
|
88
88
|
return { success: !0, data: await o.json(), statusCode: o.status };
|
|
89
89
|
} catch (o) {
|
|
90
90
|
const s = o instanceof Error ? o.name === "AbortError" ? "Request timed out" : o.message : "Unknown error";
|
|
91
|
-
return
|
|
91
|
+
return v.onError(
|
|
92
92
|
o instanceof Error ? o : new Error(s)
|
|
93
93
|
), { success: !1, error: s };
|
|
94
94
|
}
|
|
@@ -98,7 +98,7 @@ async function y(r, e) {
|
|
|
98
98
|
const t = await M(
|
|
99
99
|
r,
|
|
100
100
|
{ credentials: "include", ...e },
|
|
101
|
-
|
|
101
|
+
v
|
|
102
102
|
);
|
|
103
103
|
if (!t.ok) {
|
|
104
104
|
const n = await t.json().catch(() => ({}));
|
|
@@ -135,7 +135,10 @@ async function Ae(r, e, t) {
|
|
|
135
135
|
}
|
|
136
136
|
);
|
|
137
137
|
if (!n.success)
|
|
138
|
-
throw f.error("Payment intent creation failed:", n.error), new E(
|
|
138
|
+
throw f.error("Payment intent creation failed:", n.error), new E(
|
|
139
|
+
n.error || "Failed to create payment intent",
|
|
140
|
+
"lib/api/orders/createPaymentIntent"
|
|
141
|
+
);
|
|
139
142
|
return f.debug("Payment intent created:", n.data), n.data;
|
|
140
143
|
} catch (n) {
|
|
141
144
|
return f.error("createPaymentIntent error:", n), null;
|
|
@@ -236,10 +239,7 @@ async function Ue(r) {
|
|
|
236
239
|
}
|
|
237
240
|
async function Fe(r, e) {
|
|
238
241
|
try {
|
|
239
|
-
const t = await p(
|
|
240
|
-
`${I()}/validatePaymentIntent/${r}`,
|
|
241
|
-
e
|
|
242
|
-
);
|
|
242
|
+
const t = await p(`${I()}/validatePaymentIntent/${r}`, e);
|
|
243
243
|
if (!t.success)
|
|
244
244
|
return f.error("Payment validation failed:", t.error), {
|
|
245
245
|
success: !1,
|
|
@@ -247,7 +247,12 @@ async function Fe(r, e) {
|
|
|
247
247
|
error: t.error || "Payment validation failed"
|
|
248
248
|
};
|
|
249
249
|
const n = t.data;
|
|
250
|
-
return {
|
|
250
|
+
return n.eventCanceled || n.eventPostponed ? {
|
|
251
|
+
success: !1,
|
|
252
|
+
status: "failed",
|
|
253
|
+
eventCanceled: n.eventCanceled,
|
|
254
|
+
eventPostponed: n.eventPostponed
|
|
255
|
+
} : {
|
|
251
256
|
success: !0,
|
|
252
257
|
status: n.status || "Payment succeeded",
|
|
253
258
|
orderUUID: n.orderUUID || n.uuid
|
|
@@ -258,10 +263,7 @@ async function Fe(r, e) {
|
|
|
258
263
|
}
|
|
259
264
|
async function Oe(r) {
|
|
260
265
|
try {
|
|
261
|
-
const e = await p(
|
|
262
|
-
`${u()}/orders/extend-session`,
|
|
263
|
-
{ orderUuid: r }
|
|
264
|
-
);
|
|
266
|
+
const e = await p(`${u()}/orders/extend-session`, { orderUuid: r });
|
|
265
267
|
if (!e.success)
|
|
266
268
|
return {
|
|
267
269
|
success: !1,
|
|
@@ -759,10 +761,10 @@ function pr(r, e, t = {}) {
|
|
|
759
761
|
disabled: !0,
|
|
760
762
|
reason: "no_tickets"
|
|
761
763
|
};
|
|
762
|
-
let m = !1, k = !0,
|
|
764
|
+
let m = !1, k = !0, g = !0, h = null;
|
|
763
765
|
for (const d of _) {
|
|
764
766
|
const P = d.salesBegin || d.salesStart || d.saleBegin || d.onSaleStart, R = d.salesEnd || d.saleEnd || d.onSaleEnd, C = d.remainingCapacity ?? d.quantityRemaining ?? d.quantity, A = d.soldOut || C != null && C <= 0, S = P ? new Date(P) > s : !1, G = R ? new Date(R) < s : !1;
|
|
765
|
-
if (!A && !S && !G && (m = !0), A || (k = !1), S || (
|
|
767
|
+
if (!A && !S && !G && (m = !0), A || (k = !1), S || (g = !1), S && P && !A && !G) {
|
|
766
768
|
const j = new Date(P);
|
|
767
769
|
(!h || j < h) && (h = j);
|
|
768
770
|
}
|
|
@@ -773,7 +775,7 @@ function pr(r, e, t = {}) {
|
|
|
773
775
|
disabled: !1,
|
|
774
776
|
reason: "available"
|
|
775
777
|
};
|
|
776
|
-
if (
|
|
778
|
+
if (g && h) {
|
|
777
779
|
if (c)
|
|
778
780
|
return {
|
|
779
781
|
text: a ? "Reserve a spot" : "Get tickets",
|
|
@@ -857,8 +859,8 @@ function Q(r) {
|
|
|
857
859
|
updatedAt: e.updatedAt || e.updated_at
|
|
858
860
|
};
|
|
859
861
|
}
|
|
860
|
-
const yr = W,
|
|
861
|
-
function
|
|
862
|
+
const yr = W, vr = Q;
|
|
863
|
+
function gr(r) {
|
|
862
864
|
const e = Q(r), t = e.uuid.split("-")[0] || e.uuid;
|
|
863
865
|
return {
|
|
864
866
|
orderId: e.uuid,
|
|
@@ -991,7 +993,7 @@ const hr = J, wr = Z, _r = Z, pe = "https://micdrop-images.sfo3.digitaloceanspac
|
|
|
991
993
|
function ye(r) {
|
|
992
994
|
return r ? r.startsWith("http") ? r : `${pe}/${r.replace(/^\//, "")}` : "";
|
|
993
995
|
}
|
|
994
|
-
function
|
|
996
|
+
function ve(r) {
|
|
995
997
|
const e = r, t = e.logoUrl || e.logo_url || e.logo;
|
|
996
998
|
return {
|
|
997
999
|
id: e.id || e.ID || 0,
|
|
@@ -1011,7 +1013,7 @@ function ge(r) {
|
|
|
1011
1013
|
organizationId: e.organizationId || e.organization_id
|
|
1012
1014
|
};
|
|
1013
1015
|
}
|
|
1014
|
-
const kr =
|
|
1016
|
+
const kr = ve;
|
|
1015
1017
|
function Cr(r) {
|
|
1016
1018
|
const e = r;
|
|
1017
1019
|
return {
|
|
@@ -1033,7 +1035,7 @@ function x(r) {
|
|
|
1033
1035
|
}
|
|
1034
1036
|
return r;
|
|
1035
1037
|
}
|
|
1036
|
-
var
|
|
1038
|
+
var ge = {
|
|
1037
1039
|
read: function(r) {
|
|
1038
1040
|
return r[0] === '"' && (r = r.slice(1, -1)), r.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
1039
1041
|
},
|
|
@@ -1094,7 +1096,7 @@ function q(r, e) {
|
|
|
1094
1096
|
}
|
|
1095
1097
|
);
|
|
1096
1098
|
}
|
|
1097
|
-
q(
|
|
1099
|
+
q(ge, { path: "/" });
|
|
1098
1100
|
L("checkoutState");
|
|
1099
1101
|
L("orderApi");
|
|
1100
1102
|
L("utm");
|
|
@@ -1155,8 +1157,8 @@ export {
|
|
|
1155
1157
|
hr as transformAvailableTicket,
|
|
1156
1158
|
wr as transformEvent,
|
|
1157
1159
|
_r as transformEventData,
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
+
vr as transformOrder,
|
|
1161
|
+
gr as transformOrderForDisplay,
|
|
1160
1162
|
yr as transformTicket,
|
|
1161
1163
|
kr as transformVenue,
|
|
1162
1164
|
Re as updateCartQuantities,
|