@getmicdrop/venue-calendar 4.0.6 → 4.0.7
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/{AirbnbSplitMain-CCv3Iffq.js → AirbnbSplitMain-QRE-W2ZL.js} +4 -4
- package/dist/{AirbnbSplitMain-CCv3Iffq.js.map → AirbnbSplitMain-QRE-W2ZL.js.map} +1 -1
- package/dist/{CarouselView.legacy-CrRZOj_r.js → CarouselView.legacy-DtUAYloL.js} +3 -3
- package/dist/{CarouselView.legacy-CrRZOj_r.js.map → CarouselView.legacy-DtUAYloL.js.map} +1 -1
- package/dist/{CartView-iQo98Gz9.js → CartView-Be1-gajf.js} +130 -127
- package/dist/{CartView-iQo98Gz9.js.map → CartView-Be1-gajf.js.map} +1 -1
- package/dist/{Checkout-B5cpBC_C.js → Checkout-DET04TDs.js} +4 -4
- package/dist/{Checkout-B5cpBC_C.js.map → Checkout-DET04TDs.js.map} +1 -1
- package/dist/{Checkout.legacy-BbnADZBS.js → Checkout.legacy-Dg8qlXGF.js} +4 -4
- package/dist/{Checkout.legacy-BbnADZBS.js.map → Checkout.legacy-Dg8qlXGF.js.map} +1 -1
- package/dist/{CheckoutMain-Cucw7O5q.js → CheckoutMain-CddDRMZ6.js} +4 -4
- package/dist/{CheckoutMain-Cucw7O5q.js.map → CheckoutMain-CddDRMZ6.js.map} +1 -1
- package/dist/{CheckoutTimer-CA8JRNNX.js → CheckoutTimer-12XARKCb.js} +2 -2
- package/dist/{CheckoutTimer-CA8JRNNX.js.map → CheckoutTimer-12XARKCb.js.map} +1 -1
- package/dist/{CollectionView-B9vBgPTn.js → CollectionView-DsNE9b9o.js} +5 -5
- package/dist/{CollectionView-B9vBgPTn.js.map → CollectionView-DsNE9b9o.js.map} +1 -1
- package/dist/{CollectionView.legacy-lSUeA4gS.js → CollectionView.legacy-C0EfF6bO.js} +3 -3
- package/dist/{CollectionView.legacy-lSUeA4gS.js.map → CollectionView.legacy-C0EfF6bO.js.map} +1 -1
- package/dist/{EventDetailsView-xfnj-hRQ.js → EventDetailsView-CKpXTip_.js} +2 -2
- package/dist/{EventDetailsView-xfnj-hRQ.js.map → EventDetailsView-CKpXTip_.js.map} +1 -1
- package/dist/{FeaturedView.legacy-BnqQQ1Hx.js → FeaturedView.legacy-CKANudQ1.js} +2 -2
- package/dist/{FeaturedView.legacy-BnqQQ1Hx.js.map → FeaturedView.legacy-CKANudQ1.js.map} +1 -1
- package/dist/{GalleryCard-CfQenZ6B.js → GalleryCard-X_ux5Ig_.js} +2 -2
- package/dist/{GalleryCard-CfQenZ6B.js.map → GalleryCard-X_ux5Ig_.js.map} +1 -1
- package/dist/{GalleryView.legacy-DTSxVx10.js → GalleryView.legacy-DiJEEg4a.js} +3 -3
- package/dist/{GalleryView.legacy-DTSxVx10.js.map → GalleryView.legacy-DiJEEg4a.js.map} +1 -1
- package/dist/{GroupedListView.legacy-B4a7OzQZ.js → GroupedListView.legacy-BlY6IUF7.js} +2 -2
- package/dist/{GroupedListView.legacy-B4a7OzQZ.js.map → GroupedListView.legacy-BlY6IUF7.js.map} +1 -1
- package/dist/{SeriesPage-BudI30aC.js → SeriesPage-AHd2GQvo.js} +5 -5
- package/dist/{SeriesPage-BudI30aC.js.map → SeriesPage-AHd2GQvo.js.map} +1 -1
- package/dist/{SeriesPage.legacy-Bv0HHWbw.js → SeriesPage.legacy-DRoCeh7t.js} +2 -2
- package/dist/{SeriesPage.legacy-Bv0HHWbw.js.map → SeriesPage.legacy-DRoCeh7t.js.map} +1 -1
- package/dist/{Success-BGNZH5BM.js → Success-BH-b9NQ-.js} +5 -5
- package/dist/{Success-BGNZH5BM.js.map → Success-BH-b9NQ-.js.map} +1 -1
- package/dist/{Success.legacy-CRUwkdEm.js → Success.legacy-BuElevkX.js} +2 -2
- package/dist/{Success.legacy-CRUwkdEm.js.map → Success.legacy-BuElevkX.js.map} +1 -1
- package/dist/{VenueCalendar-DO07BAoR.js → VenueCalendar-D3g_j17B.js} +14 -14
- package/dist/{VenueCalendar-DO07BAoR.js.map → VenueCalendar-D3g_j17B.js.map} +1 -1
- package/dist/{ViewTicketsEmbed-HD3tu9Yo.js → ViewTicketsEmbed-BUIrA7s5.js} +2 -2
- package/dist/{ViewTicketsEmbed-HD3tu9Yo.js.map → ViewTicketsEmbed-BUIrA7s5.js.map} +1 -1
- package/dist/{labels-CuX0_TVA.js → labels-CJIz5Cek.js} +2 -2
- package/dist/{labels-CuX0_TVA.js.map → labels-CJIz5Cek.js.map} +1 -1
- package/dist/{transform-B0K6j8y8.js → transform-CXAZf_M1.js} +2 -2
- package/dist/{transform-B0K6j8y8.js.map → transform-CXAZf_M1.js.map} +1 -1
- package/dist/venue-calendar.es.js +1 -1
- package/dist/venue-calendar.iife.js +2 -2
- package/dist/venue-calendar.iife.js.map +1 -1
- package/dist/venue-calendar.umd.js +2 -2
- package/dist/venue-calendar.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "svelte/internal/disclose-version";
|
|
2
|
-
import { f as Ce, X as pt, B as Ie, Y as mt, Z as ht, I as vt, _ as _t, $ as nt, h as gt, a0 as Ue, a1 as bt, a2 as He, u as xt, A as yt, a3 as kt, a4 as Tt, J as wt, a5 as Dt, a6 as It, v as it, a7 as St, M as lt, U as Ct, t as ot, b as Et, a8 as st, p as At, a9 as Pt, aa as Mt, q as Ot, ab as dt, ac as ct, ad as Ft } from "./VenueCalendar-
|
|
2
|
+
import { f as Ce, X as pt, B as Ie, Y as mt, Z as ht, I as vt, _ as _t, $ as nt, h as gt, a0 as Ue, a1 as bt, a2 as He, u as xt, A as yt, a3 as kt, a4 as Tt, J as wt, a5 as Dt, a6 as It, v as it, a7 as St, M as lt, U as Ct, t as ot, b as Et, a8 as st, p as At, a9 as Pt, aa as Mt, q as Ot, ab as dt, ac as ct, ad as Ft } from "./VenueCalendar-D3g_j17B.js";
|
|
3
3
|
import * as e from "svelte/internal/client";
|
|
4
4
|
import "svelte/internal/flags/legacy";
|
|
5
5
|
import "svelte/transition";
|
|
@@ -7,12 +7,12 @@ import "svelte/easing";
|
|
|
7
7
|
import { onMount as ft, onDestroy as Bt } from "svelte";
|
|
8
8
|
import { g as ut } from "./__SKIP_NAVIGATION__-CJ96TTPE.js";
|
|
9
9
|
import { O as Qt } from "./OrderSummarySkeleton-dDKUH741.js";
|
|
10
|
-
import { C as Lt } from "./CheckoutTimer-
|
|
11
|
-
function qt(
|
|
12
|
-
if (!
|
|
10
|
+
import { C as Lt } from "./CheckoutTimer-12XARKCb.js";
|
|
11
|
+
function qt(ne, t) {
|
|
12
|
+
if (!ne || typeof ne != "object") return {};
|
|
13
13
|
if (!Array.isArray(t) || t.length === 0) {
|
|
14
14
|
const I = {};
|
|
15
|
-
for (const [s, h] of Object.entries(
|
|
15
|
+
for (const [s, h] of Object.entries(ne))
|
|
16
16
|
typeof h == "number" && h > 0 && (I[s] = h);
|
|
17
17
|
return I;
|
|
18
18
|
}
|
|
@@ -20,7 +20,7 @@ function qt(se, t) {
|
|
|
20
20
|
for (const I of t)
|
|
21
21
|
I && I.ID !== void 0 && I.ID !== null && Q.set(String(I.ID), I);
|
|
22
22
|
const b = {};
|
|
23
|
-
for (const [I, s] of Object.entries(
|
|
23
|
+
for (const [I, s] of Object.entries(ne)) {
|
|
24
24
|
if (typeof s != "number" || !Number.isFinite(s) || s <= 0) continue;
|
|
25
25
|
const h = Q.get(String(I));
|
|
26
26
|
let i = s;
|
|
@@ -35,7 +35,7 @@ function qt(se, t) {
|
|
|
35
35
|
return b;
|
|
36
36
|
}
|
|
37
37
|
var Nt = e.from_html('<div role="group"><!> <span class="qty-display svelte-12zmutv" aria-live="polite" aria-atomic="true" role="status"><span class="sr-only"> </span> </span> <!></div>'), zt = e.from_html('<span class="sold-out-pill text-xs whitespace-nowrap svelte-12zmutv" role="status"> </span>'), Rt = e.from_html('<span class="sales-start-badge text-xs text-secondary whitespace-nowrap svelte-12zmutv" role="status"> </span>'), jt = e.from_html('<span class="sr-only" role="alert"> </span>'), Ht = e.from_html('<div class="donation-input-wrapper svelte-12zmutv"><!> <!></div>'), Ut = e.from_html('<span class="price-lg text-primary svelte-12zmutv"> </span> <span class="price-strikethrough"><span class="sr-only"> </span> </span> <span class="price-fee" aria-hidden="true"> </span> <span class="sr-only"> </span>', 1), Gt = e.from_html('<span class="price-lg text-primary svelte-12zmutv"> </span>'), Vt = e.from_html('<span class="price-lg text-primary svelte-12zmutv"> </span> <span class="price-fee" aria-hidden="true"> </span> <span class="sr-only"> </span>', 1), Wt = e.from_html('<span class="badge badge-discount"> </span>'), Zt = e.from_html('<span class="badge badge-unlocked"> </span>'), Jt = e.from_html('<div class="flex-row-2 mb-2 flex-wrap" role="status" aria-live="polite"><!> <!></div>'), Yt = e.from_html('<p class="text-sm text-secondary mb-3 svelte-12zmutv"> </p>'), Xt = e.from_html("<span> </span>"), Kt = e.from_html('<p class="sales-end-text text-xs svelte-12zmutv" role="status"> </p>'), $t = e.from_html('<article><div class="p-4 pb-0"><div class="vc-flex-between-start gap-4"><div class="flex-1 min-w-0"><h3 class="font-medium text-primary svelte-12zmutv"> </h3></div> <!></div></div> <hr class="divider-line my-3 svelte-12zmutv" aria-hidden="true"/> <div class="p-4 pt-0"><div class="flex-row-2 mb-2"><!></div> <!> <!> <div class="flex-row-2 mb-2 flex-wrap" role="status"><!> <!></div> <!></div></article>');
|
|
38
|
-
function ea(
|
|
38
|
+
function ea(ne, t) {
|
|
39
39
|
e.push(t, !0);
|
|
40
40
|
let Q = e.prop(t, "fee", 3, "0.00"), b = e.prop(t, "quantity", 3, 0), I = e.prop(t, "soldOut", 3, !1), s = e.prop(t, "status", 3, null), h = e.prop(t, "salesBegin", 3, null), i = e.prop(t, "salesEnd", 3, null), S = e.prop(t, "remainingCapacity", 3, null), C = e.prop(
|
|
41
41
|
t,
|
|
@@ -75,7 +75,7 @@ function ea(se, t) {
|
|
|
75
75
|
3,
|
|
76
76
|
!1
|
|
77
77
|
// Badge: Discount applied
|
|
78
|
-
),
|
|
78
|
+
), ue = e.prop(
|
|
79
79
|
t,
|
|
80
80
|
"ticketType",
|
|
81
81
|
3,
|
|
@@ -88,8 +88,8 @@ function ea(se, t) {
|
|
|
88
88
|
""
|
|
89
89
|
// User-entered donation amount (string for input binding)
|
|
90
90
|
), f = e.prop(t, "labels", 19, () => ({}));
|
|
91
|
-
const J = e.derived(() =>
|
|
92
|
-
function
|
|
91
|
+
const J = e.derived(() => ue() === 2), te = e.derived(() => parseFloat(U()) || 0), T = e.derived(() => e.get(J) && U() !== "" && e.get(te) < 1 ? f().minimumDonation || "Minimum $1.00" : ""), $ = e.derived(() => !e.get(J) || U() !== "" && e.get(te) >= 1), le = e.derived(() => parseFloat(t.price) || 0), p = e.derived(() => e.get(le) === 0 ? 0 : parseFloat(Q()) || 0), x = e.derived(() => Ce(e.get(le) + e.get(p))), m = e.derived(() => Ce(e.get(p))), y = e.derived(() => oe() ? parseFloat(oe()) : null), Y = e.derived(() => e.get(y) === null || e.get(y) === 0 ? 0 : parseFloat(Q()) || 0), d = e.derived(() => e.get(y) !== null ? Ce(e.get(y) + e.get(Y)) : null), u = e.derived(() => C() ?? S() ?? 0), w = 10, k = 15, D = 30, L = 5, me = 20;
|
|
92
|
+
function ve(l, n) {
|
|
93
93
|
if (n === 0) return 0;
|
|
94
94
|
const v = D / n * 100, q = L / n * 100;
|
|
95
95
|
return Math.max(Math.min(l, v), q);
|
|
@@ -99,24 +99,24 @@ function ea(se, t) {
|
|
|
99
99
|
if (n === 0 || s() === "scheduled" || s() === "sales_ended") return null;
|
|
100
100
|
if (l <= 0) return { text: "Sold out", type: "sold-out" };
|
|
101
101
|
if (e.get(
|
|
102
|
-
|
|
102
|
+
le
|
|
103
103
|
// no scarcity on free tickets
|
|
104
104
|
) === 0) return null;
|
|
105
|
-
const v = l / n * 100, q =
|
|
105
|
+
const v = l / n * 100, q = ve(w, n), z = ve(k, n);
|
|
106
106
|
return v <= q && l <= me ? {
|
|
107
107
|
text: `Only ${l} left`,
|
|
108
108
|
type: "scarcity",
|
|
109
109
|
showFlame: !0
|
|
110
110
|
} : v <= z ? { text: "Few tickets left", type: "scarcity", showFlame: !0 } : null;
|
|
111
111
|
}), G = e.derived(() => e.get(ye) != null && e.get(ye).type === "scarcity");
|
|
112
|
-
function
|
|
112
|
+
function X(l) {
|
|
113
113
|
return l ? pt(l, { year: void 0, timeZone: "UTC" }) : "";
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function ie(l) {
|
|
116
116
|
const n = /* @__PURE__ */ new Date(), v = new Date(n);
|
|
117
117
|
return v.setDate(v.getDate() + 1), l.toDateString() === v.toDateString();
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function de(l) {
|
|
120
120
|
const n = /* @__PURE__ */ new Date(), q = (l.getTime() - n.getTime()) / (1e3 * 60 * 60 * 24);
|
|
121
121
|
return q > 0 && q <= 7;
|
|
122
122
|
}
|
|
@@ -134,17 +134,17 @@ function ea(se, t) {
|
|
|
134
134
|
preposition: ""
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
|
-
if (
|
|
137
|
+
if (ie(n)) {
|
|
138
138
|
const B = nt(l, { timeZone: "UTC" });
|
|
139
139
|
return {
|
|
140
140
|
text: (f().tomorrowAtTime || "tomorrow at {time}").replace("{time}", B),
|
|
141
141
|
preposition: ""
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
|
-
if (
|
|
145
|
-
const B = new Intl.DateTimeFormat(F, { weekday: "long" }).format(n),
|
|
144
|
+
if (de(n)) {
|
|
145
|
+
const B = new Intl.DateTimeFormat(F, { weekday: "long" }).format(n), se = nt(l, { timeZone: "UTC" });
|
|
146
146
|
return {
|
|
147
|
-
text: (f().onDayAtTime || "on {day} at {time}").replace("{day}", B).replace("{time}",
|
|
147
|
+
text: (f().onDayAtTime || "on {day} at {time}").replace("{day}", B).replace("{time}", se),
|
|
148
148
|
preposition: ""
|
|
149
149
|
};
|
|
150
150
|
}
|
|
@@ -178,7 +178,7 @@ function ea(se, t) {
|
|
|
178
178
|
badge: f().statusSalesEnded || "Sales ended",
|
|
179
179
|
badgeClass: "badge-ended",
|
|
180
180
|
label: "Ended",
|
|
181
|
-
date:
|
|
181
|
+
date: X(i())
|
|
182
182
|
};
|
|
183
183
|
default:
|
|
184
184
|
return null;
|
|
@@ -195,13 +195,13 @@ function ea(se, t) {
|
|
|
195
195
|
let v;
|
|
196
196
|
var q = e.child(n);
|
|
197
197
|
{
|
|
198
|
-
let
|
|
198
|
+
let se = e.derived(() => b() === 0), a = e.derived(() => (f().decreaseQuantity || "Decrease quantity for {title}").replace("{title}", t.title));
|
|
199
199
|
Ie(q, {
|
|
200
200
|
iconbtn: !0,
|
|
201
201
|
strokebtn: !0,
|
|
202
202
|
onclick: () => t.ondecrement?.(),
|
|
203
203
|
get disabled() {
|
|
204
|
-
return e.get(
|
|
204
|
+
return e.get(se);
|
|
205
205
|
},
|
|
206
206
|
get "aria-label"() {
|
|
207
207
|
return e.get(a);
|
|
@@ -219,12 +219,12 @@ function ea(se, t) {
|
|
|
219
219
|
e.reset(z);
|
|
220
220
|
var B = e.sibling(z, 2);
|
|
221
221
|
{
|
|
222
|
-
let
|
|
222
|
+
let se = e.derived(() => H() !== null && b() >= H() || S() !== null && b() >= S() || !e.get($)), a = e.derived(() => (f().increaseQuantity || "Increase quantity for {title}").replace("{title}", t.title));
|
|
223
223
|
Ie(B, {
|
|
224
224
|
iconbtn: !0,
|
|
225
225
|
onclick: () => t.onincrement?.(),
|
|
226
226
|
get disabled() {
|
|
227
|
-
return e.get(
|
|
227
|
+
return e.get(se);
|
|
228
228
|
},
|
|
229
229
|
get "aria-label"() {
|
|
230
230
|
return e.get(a);
|
|
@@ -237,8 +237,8 @@ function ea(se, t) {
|
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
239
|
e.reset(n), e.template_effect(
|
|
240
|
-
(
|
|
241
|
-
v = e.set_class(n, 1, "flex items-center quantity-selector svelte-12zmutv", null, v, { active: b() > 0 }), e.set_attribute(n, "aria-label",
|
|
240
|
+
(se) => {
|
|
241
|
+
v = e.set_class(n, 1, "flex items-center quantity-selector svelte-12zmutv", null, v, { active: b() > 0 }), e.set_attribute(n, "aria-label", se), e.set_text(F, f().quantity || "Quantity:"), e.set_text(V, ` ${b() ?? ""}`);
|
|
242
242
|
},
|
|
243
243
|
[
|
|
244
244
|
() => (f().quantitySelector || "Quantity selector for {title}").replace("{title}", t.title)
|
|
@@ -275,7 +275,7 @@ function ea(se, t) {
|
|
|
275
275
|
get value() {
|
|
276
276
|
return U();
|
|
277
277
|
},
|
|
278
|
-
oninput: (
|
|
278
|
+
oninput: (se) => t.ondonationchange?.(se.target.value),
|
|
279
279
|
get disabled() {
|
|
280
280
|
return e.get(F);
|
|
281
281
|
},
|
|
@@ -313,12 +313,12 @@ function ea(se, t) {
|
|
|
313
313
|
e.reset(R);
|
|
314
314
|
var V = e.sibling(R, 1, !0);
|
|
315
315
|
e.reset(z);
|
|
316
|
-
var B = e.sibling(z, 2),
|
|
316
|
+
var B = e.sibling(z, 2), se = e.child(B, !0);
|
|
317
317
|
e.reset(B);
|
|
318
318
|
var a = e.sibling(B, 2), r = e.child(a, !0);
|
|
319
319
|
e.reset(a), e.template_effect(
|
|
320
320
|
(o, g) => {
|
|
321
|
-
e.set_attribute(v, "aria-label", `Discounted price ${e.get(d) ?? ""}`), e.set_text(q, e.get(d)), e.set_attribute(z, "aria-label", `Original price ${e.get(x) ?? ""}`), e.set_text(F, f().originalPrice || "Original price:"), e.set_text(V, e.get(x)), e.set_text(
|
|
321
|
+
e.set_attribute(v, "aria-label", `Discounted price ${e.get(d) ?? ""}`), e.set_text(q, e.get(d)), e.set_attribute(z, "aria-label", `Original price ${e.get(x) ?? ""}`), e.set_text(F, f().originalPrice || "Original price:"), e.set_text(V, e.get(x)), e.set_text(se, o), e.set_text(r, g);
|
|
322
322
|
},
|
|
323
323
|
[
|
|
324
324
|
() => (f().inclFee || "incl. {fee} fee").replace("{fee}", e.get(m)),
|
|
@@ -335,8 +335,8 @@ function ea(se, t) {
|
|
|
335
335
|
e.reset(z);
|
|
336
336
|
var F = e.sibling(z, 2), V = e.child(F, !0);
|
|
337
337
|
e.reset(F), e.template_effect(
|
|
338
|
-
(B,
|
|
339
|
-
e.set_attribute(v, "aria-label", `Price ${e.get(x) ?? ""}`), e.set_text(q, e.get(x)), e.set_text(R, B), e.set_text(V,
|
|
338
|
+
(B, se) => {
|
|
339
|
+
e.set_attribute(v, "aria-label", `Price ${e.get(x) ?? ""}`), e.set_text(q, e.get(x)), e.set_text(R, B), e.set_text(V, se);
|
|
340
340
|
},
|
|
341
341
|
[
|
|
342
342
|
() => (f().inclFee || "incl. {fee} fee").replace("{fee}", e.get(m)),
|
|
@@ -345,7 +345,7 @@ function ea(se, t) {
|
|
|
345
345
|
), e.append(l, n);
|
|
346
346
|
};
|
|
347
347
|
e.if(Oe, (l) => {
|
|
348
|
-
e.get(J) ? l(Ge) : e.get(d) !== null ? l($e, 1) : e.get(
|
|
348
|
+
e.get(J) ? l(Ge) : e.get(d) !== null ? l($e, 1) : e.get(le) === 0 ? l(De, 2) : l(ae, !1);
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
e.reset(xe);
|
|
@@ -455,17 +455,17 @@ function ea(se, t) {
|
|
|
455
455
|
() => t.title?.replace(/\s+/g, "-").toLowerCase() || "ticket",
|
|
456
456
|
() => t.title?.replace(/\s+/g, "-").toLowerCase() || "ticket"
|
|
457
457
|
]
|
|
458
|
-
), e.append(
|
|
458
|
+
), e.append(ne, be), e.pop();
|
|
459
459
|
}
|
|
460
460
|
var ta = e.from_html('<div class="rounded-lg overflow-hidden animate-pulse bg-surface-primary border-default" role="status" aria-busy="true"><span class="sr-only svelte-1hpsukj">Loading ticket...</span> <div class="px-3 py-2.5 rounded-t-lg border-t border-l border-r border-border" aria-hidden="true"><div class="skeleton h-4 w-2/3 mb-2"></div> <div class="skeleton h-3 w-1/2"></div></div> <div class="flex items-center gap-2" aria-hidden="true"><div class="border w-6 rounded-full h-6 -ml-3 -mt-0.5 bg-card border-border"></div> <hr class="skeleton-divider w-full my-3 svelte-1hpsukj"/> <div class="border w-6 rounded-full h-6 -mr-3 -mt-0.5 bg-card border-border"></div></div> <div class="flex justify-between items-center px-3 py-2.5 rounded-b-lg -mt-0.5 border-b border-l border-r border-border" aria-hidden="true"><div class="space-y-1"><div class="h-4 rounded w-16 bg-bg-tertiary"></div> <div class="h-3 rounded w-20 bg-muted"></div></div> <div class="flex items-center gap-2"><div class="w-10 h-10 rounded-md bg-bg-tertiary"></div> <div class="w-10 h-10 rounded-md bg-muted"></div> <div class="w-10 h-10 rounded-md bg-bg-tertiary"></div></div></div></div>');
|
|
461
|
-
function aa(
|
|
461
|
+
function aa(ne, t) {
|
|
462
462
|
e.push(t, !0);
|
|
463
463
|
let Q = e.prop(t, "labels", 19, () => ({}));
|
|
464
464
|
var b = ta();
|
|
465
|
-
e.template_effect(() => e.set_attribute(b, "aria-label", Q().loadingTicketInfo || "Loading ticket information")), e.append(
|
|
465
|
+
e.template_effect(() => e.set_attribute(b, "aria-label", Q().loadingTicketInfo || "Loading ticket information")), e.append(ne, b), e.pop();
|
|
466
466
|
}
|
|
467
467
|
var ra = e.from_html('<div class="empty-state flex flex-col items-center justify-center py-12 px-6 text-center" role="status"><div class="empty-state-icon text-muted-foreground mb-4" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z"></path><path d="M13 5v2"></path><path d="M13 17v2"></path><path d="M13 11v2"></path></svg></div> <h3 class="text-lg font-semibold text-text-primary mb-2"> </h3> <p class="text-sm text-text-secondary max-w-72"> </p></div>'), ia = e.from_html('<div class="section-header bg-bg-secondary px-5 py-3"><h2 class="text-text-primary text-md font-semibold"> </h2></div>'), sa = e.from_html('<div role="group"><!> <div role="list"><!></div></div>'), na = e.from_html("<section></section>");
|
|
468
|
-
function la(
|
|
468
|
+
function la(ne, t) {
|
|
469
469
|
e.push(t, !0);
|
|
470
470
|
let Q = e.prop(t, "venueFeesReady", 3, !1), b = e.prop(t, "tickets", 19, () => []), I = e.prop(t, "quantities", 19, () => ({})), s = e.prop(t, "donationAmounts", 19, () => ({})), h = e.prop(t, "revealHiddenTickets", 3, !1), i = e.prop(t, "revealTicketIds", 19, () => []), S = e.prop(
|
|
471
471
|
t,
|
|
@@ -485,12 +485,12 @@ function la(se, t) {
|
|
|
485
485
|
function N(p) {
|
|
486
486
|
const x = [], m = [];
|
|
487
487
|
for (const y of p) {
|
|
488
|
-
const
|
|
489
|
-
|
|
488
|
+
const Y = H(y), d = y.minQuantity ?? 1, u = y.remainingCapacity, w = y.soldOut || u != null && d > u;
|
|
489
|
+
Y === "on_sale" && !w ? x.push(y) : m.push(y);
|
|
490
490
|
}
|
|
491
491
|
return [...x, ...m];
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function ue(p) {
|
|
494
494
|
const x = {};
|
|
495
495
|
for (const m of p) {
|
|
496
496
|
const y = m.TicketSection?.name || C().other || "Other";
|
|
@@ -500,31 +500,31 @@ function la(se, t) {
|
|
|
500
500
|
x[m] = N(x[m]);
|
|
501
501
|
return x;
|
|
502
502
|
}
|
|
503
|
-
const U = e.derived(() =>
|
|
503
|
+
const U = e.derived(() => ue(e.get(ee))), f = e.derived(() => C().other || "Other"), J = e.derived(() => Object.keys(e.get(U)).filter((p) => p !== e.get(f)).length > 0);
|
|
504
504
|
var te = e.comment(), T = e.first_child(te);
|
|
505
505
|
{
|
|
506
506
|
var $ = (p) => {
|
|
507
507
|
var x = ra(), m = e.sibling(e.child(x), 2), y = e.child(m, !0);
|
|
508
508
|
e.reset(m);
|
|
509
|
-
var
|
|
510
|
-
e.reset(
|
|
509
|
+
var Y = e.sibling(m, 2), d = e.child(Y, !0);
|
|
510
|
+
e.reset(Y), e.reset(x), e.template_effect(() => {
|
|
511
511
|
e.set_attribute(x, "aria-label", C().noTicketsAvailable || "No tickets available"), e.set_text(y, C().noTicketsAvailable || "No tickets available"), e.set_text(d, C().noTicketsAvailableDescription || "There are currently no tickets available for this event.");
|
|
512
512
|
}), e.append(p, x);
|
|
513
|
-
},
|
|
513
|
+
}, le = (p) => {
|
|
514
514
|
var x = na();
|
|
515
515
|
e.each(x, 21, () => Object.entries(e.get(U)), e.index, (m, y) => {
|
|
516
|
-
var
|
|
517
|
-
let d = () => e.get(
|
|
516
|
+
var Y = e.derived(() => e.to_array(e.get(y), 2));
|
|
517
|
+
let d = () => e.get(Y)[0], u = () => e.get(Y)[1];
|
|
518
518
|
var w = sa(), k = e.child(w);
|
|
519
519
|
{
|
|
520
520
|
var D = (G) => {
|
|
521
|
-
var
|
|
522
|
-
e.reset(
|
|
521
|
+
var X = ia(), ie = e.child(X), de = e.child(ie, !0);
|
|
522
|
+
e.reset(ie), e.reset(X), e.template_effect(
|
|
523
523
|
(_) => {
|
|
524
|
-
e.set_attribute(
|
|
524
|
+
e.set_attribute(ie, "id", `section-${_ ?? ""}`), e.set_text(de, d());
|
|
525
525
|
},
|
|
526
526
|
[() => d().replace(/\s+/g, "-").toLowerCase()]
|
|
527
|
-
), e.append(G,
|
|
527
|
+
), e.append(G, X);
|
|
528
528
|
};
|
|
529
529
|
e.if(k, (G) => {
|
|
530
530
|
e.get(J) && d() !== e.get(f) && G(D);
|
|
@@ -532,9 +532,9 @@ function la(se, t) {
|
|
|
532
532
|
}
|
|
533
533
|
var L = e.sibling(k, 2), me = e.child(L);
|
|
534
534
|
{
|
|
535
|
-
var
|
|
536
|
-
var
|
|
537
|
-
e.each(
|
|
535
|
+
var ve = (G) => {
|
|
536
|
+
var X = e.comment(), ie = e.first_child(X);
|
|
537
|
+
e.each(ie, 17, u, e.index, (de, _) => {
|
|
538
538
|
const qe = e.derived(() => e.get(_).visibility >= 2 && h() || i().includes(e.get(_).ID)), ke = e.derived(() => S()?.discountTicketIds || []), ge = e.derived(() => e.get(ke).length === 0 || e.get(ke).includes(e.get(_).ID)), be = e.derived(() => S()?.provideDiscount && e.get(ge) && (S()?.discountType === "%" || S()?.discountType === "$")), Fe = e.derived(() => (() => {
|
|
539
539
|
if (!e.get(be)) return null;
|
|
540
540
|
const Se = parseFloat(e.get(_).price) || 0, we = parseFloat(S()?.amount || "0") || 0;
|
|
@@ -547,7 +547,7 @@ function la(se, t) {
|
|
|
547
547
|
e.derived(() => e.get(Pe) === 2);
|
|
548
548
|
{
|
|
549
549
|
let Se = e.derived(() => I()[e.get(_).ID] ?? 0), we = e.derived(() => e.get(_).totalCapacity ?? e.get(_).quantity ?? e.get(_).remainingCapacity), Me = e.derived(() => e.get(_).minQuantity ?? 1), Qe = e.derived(() => e.get(_).maxQuantity ?? null), xe = e.derived(() => s()[e.get(_).ID] ?? "");
|
|
550
|
-
ea(
|
|
550
|
+
ea(de, {
|
|
551
551
|
get labels() {
|
|
552
552
|
return C();
|
|
553
553
|
},
|
|
@@ -607,20 +607,20 @@ function la(se, t) {
|
|
|
607
607
|
ondonationchange: (Oe) => t.handleDonationChange?.(e.get(_).ID, Oe)
|
|
608
608
|
});
|
|
609
609
|
}
|
|
610
|
-
}), e.append(G,
|
|
610
|
+
}), e.append(G, X);
|
|
611
611
|
}, ye = (G) => {
|
|
612
|
-
var
|
|
613
|
-
e.each(
|
|
614
|
-
aa(
|
|
615
|
-
}), e.append(G,
|
|
612
|
+
var X = e.comment(), ie = e.first_child(X);
|
|
613
|
+
e.each(ie, 16, () => Array(2), e.index, (de, _) => {
|
|
614
|
+
aa(de, {});
|
|
615
|
+
}), e.append(G, X);
|
|
616
616
|
};
|
|
617
617
|
e.if(me, (G) => {
|
|
618
|
-
Q() ? G(
|
|
618
|
+
Q() ? G(ve) : G(ye, !1);
|
|
619
619
|
});
|
|
620
620
|
}
|
|
621
621
|
e.reset(L), e.reset(w), e.template_effect(
|
|
622
|
-
(G,
|
|
623
|
-
e.set_class(w, 1, e.clsx(e.get(J) && d() !== e.get(f) ? "ticket-section-group border border-border rounded-lg overflow-hidden" : "")), e.set_attribute(w, "aria-labelledby", G), e.set_class(L, 1, `space-y-4 ${e.get(J) && d() !== e.get(f) ? "p-4" : ""}`), e.set_attribute(L, "aria-label",
|
|
622
|
+
(G, X) => {
|
|
623
|
+
e.set_class(w, 1, e.clsx(e.get(J) && d() !== e.get(f) ? "ticket-section-group border border-border rounded-lg overflow-hidden" : "")), e.set_attribute(w, "aria-labelledby", G), e.set_class(L, 1, `space-y-4 ${e.get(J) && d() !== e.get(f) ? "p-4" : ""}`), e.set_attribute(L, "aria-label", X);
|
|
624
624
|
},
|
|
625
625
|
[
|
|
626
626
|
() => e.get(J) && d() !== e.get(f) ? `section-${d().replace(/\s+/g, "-").toLowerCase()}` : void 0,
|
|
@@ -630,14 +630,14 @@ function la(se, t) {
|
|
|
630
630
|
}), e.reset(x), e.template_effect(() => e.set_attribute(x, "aria-label", C().availableTickets || "Available tickets")), e.append(p, x);
|
|
631
631
|
};
|
|
632
632
|
e.if(T, (p) => {
|
|
633
|
-
Q() && e.get(ee).length === 0 ? p($) : p(
|
|
633
|
+
Q() && e.get(ee).length === 0 ? p($) : p(le, !1);
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
|
-
e.append(
|
|
636
|
+
e.append(ne, te), e.pop();
|
|
637
637
|
}
|
|
638
638
|
const oa = gt("PromocodeInput");
|
|
639
639
|
var da = e.from_html('<p id="promo-hint" class="promo-message success mt-2 body-sm text-accent-success" role="status" aria-live="polite"> </p>'), ca = e.from_html('<p id="promo-error" class="sr-only svelte-ztoygy" role="alert"> </p>'), ua = e.from_html('<div class="promo-section p-4 md:p-5" role="group" aria-labelledby="promo-label"><span id="promo-label" class="sr-only svelte-ztoygy"> </span> <div class="promo-input-wrapper flex gap-2 items-start"><div class="flex-1"><!></div> <!></div> <!> <!></div>');
|
|
640
|
-
function va(
|
|
640
|
+
function va(ne, t) {
|
|
641
641
|
e.push(t, !0);
|
|
642
642
|
let Q = e.prop(t, "eventID", 3, ""), b = e.prop(t, "labels", 19, () => ({})), I = e.state(""), s = e.state(!1), h = e.state(""), i = e.state(""), S = e.state(!1), C = e.state(!1);
|
|
643
643
|
const H = async () => {
|
|
@@ -717,7 +717,7 @@ function va(se, t) {
|
|
|
717
717
|
const d = Ue(`checkout-promocode-${Q()}`);
|
|
718
718
|
d && (e.set(I, d, !0), H());
|
|
719
719
|
});
|
|
720
|
-
var
|
|
720
|
+
var ue = ua(), U = e.child(ue), f = e.child(U, !0);
|
|
721
721
|
e.reset(U);
|
|
722
722
|
var J = e.sibling(U, 2), te = e.child(J), T = e.child(te);
|
|
723
723
|
{
|
|
@@ -754,7 +754,7 @@ function va(se, t) {
|
|
|
754
754
|
e.reset(te);
|
|
755
755
|
var $ = e.sibling(te, 2);
|
|
756
756
|
{
|
|
757
|
-
var
|
|
757
|
+
var le = (d) => {
|
|
758
758
|
{
|
|
759
759
|
let u = e.derived(() => b().removePromoCode || "Remove promo code"), w = e.derived(() => e.get(I));
|
|
760
760
|
Ie(d, {
|
|
@@ -794,7 +794,7 @@ function va(se, t) {
|
|
|
794
794
|
}
|
|
795
795
|
};
|
|
796
796
|
e.if($, (d) => {
|
|
797
|
-
e.get(S) ? d(
|
|
797
|
+
e.get(S) ? d(le) : d(p, !1);
|
|
798
798
|
});
|
|
799
799
|
}
|
|
800
800
|
e.reset(J);
|
|
@@ -810,18 +810,18 @@ function va(se, t) {
|
|
|
810
810
|
}
|
|
811
811
|
var y = e.sibling(x, 2);
|
|
812
812
|
{
|
|
813
|
-
var
|
|
813
|
+
var Y = (d) => {
|
|
814
814
|
var u = ca(), w = e.child(u, !0);
|
|
815
815
|
e.reset(u), e.template_effect(() => e.set_text(w, e.get(h))), e.append(d, u);
|
|
816
816
|
};
|
|
817
817
|
e.if(y, (d) => {
|
|
818
|
-
e.get(h) && e.get(s) && d(
|
|
818
|
+
e.get(h) && e.get(s) && d(Y);
|
|
819
819
|
});
|
|
820
820
|
}
|
|
821
|
-
e.reset(
|
|
821
|
+
e.reset(ue), e.template_effect(() => e.set_text(f, b().promoCodeEntry || "Promo code entry")), e.append(ne, ue), e.pop();
|
|
822
822
|
}
|
|
823
823
|
var ga = e.from_html('<div class="w-14 h-14 shrink-0 rounded-md overflow-hidden bg-bg-secondary" aria-hidden="true"><img alt="" class="w-full h-full object-contain"/></div>'), fa = e.from_html("<p> </p>"), pa = e.from_html('<div class="flex-row-2 shrink-0"><span class="price-md"> </span> <button type="button" class="sc-btn-icon btn-icon-ghost w-7 h-7"><!></button></div>'), ma = e.from_html('<header class="flex items-center gap-3 px-4 md:px-5 py-4 border-b border-border"><button type="button" class="p-2 -ml-2 rounded-full transition-colors shrink-0 text-text-secondary hover:bg-bg-secondary"><!></button> <!> <div class="flex-1 min-w-0"><h1 class="heading-lg break-words"> </h1> <div class="body-sm text-text-secondary"><p><time> </time></p> <p> </p> <!></div></div> <!></header>');
|
|
824
|
-
function ha(
|
|
824
|
+
function ha(ne, t) {
|
|
825
825
|
e.push(t, !0);
|
|
826
826
|
let Q = e.prop(t, "variant", 3, "tickets"), b = e.prop(t, "total", 3, 0), I = e.prop(t, "onCancel", 3, () => {
|
|
827
827
|
}), s = e.prop(t, "onInfoClick", 3, () => {
|
|
@@ -829,8 +829,8 @@ function ha(se, t) {
|
|
|
829
829
|
/* FIXME(canonical-cleanup:toFixed): heuristic guess — verify this is USD (not cents); when migrating to TS, add `as USD` brand cast at the API-response-transform layer. */
|
|
830
830
|
h().free || "Free"
|
|
831
831
|
));
|
|
832
|
-
var ee = ma(), N = e.child(ee),
|
|
833
|
-
yt(
|
|
832
|
+
var ee = ma(), N = e.child(ee), ue = e.child(N);
|
|
833
|
+
yt(ue, { size: 20, "aria-hidden": "true" }), e.reset(N);
|
|
834
834
|
var U = e.sibling(N, 2);
|
|
835
835
|
{
|
|
836
836
|
var f = (k) => {
|
|
@@ -843,11 +843,11 @@ function ha(se, t) {
|
|
|
843
843
|
}
|
|
844
844
|
var J = e.sibling(U, 2), te = e.child(J), T = e.child(te, !0);
|
|
845
845
|
e.reset(te);
|
|
846
|
-
var $ = e.sibling(te, 2),
|
|
847
|
-
e.reset(p), e.reset(
|
|
848
|
-
var m = e.sibling(
|
|
846
|
+
var $ = e.sibling(te, 2), le = e.child($), p = e.child(le), x = e.child(p, !0);
|
|
847
|
+
e.reset(p), e.reset(le);
|
|
848
|
+
var m = e.sibling(le, 2), y = e.child(m, !0);
|
|
849
849
|
e.reset(m);
|
|
850
|
-
var
|
|
850
|
+
var Y = e.sibling(m, 2);
|
|
851
851
|
{
|
|
852
852
|
var d = (k) => {
|
|
853
853
|
var D = fa(), L = e.child(D, !0);
|
|
@@ -855,7 +855,7 @@ function ha(se, t) {
|
|
|
855
855
|
() => (h().doorsOpen || "Doors open {time}").replace("{time}", Dt(t.event.doorsOpenTime, e.get(i)))
|
|
856
856
|
]), e.append(k, D);
|
|
857
857
|
};
|
|
858
|
-
e.if(
|
|
858
|
+
e.if(Y, (k) => {
|
|
859
859
|
e.get(C) && t.event.doorsOpenTime && k(d);
|
|
860
860
|
});
|
|
861
861
|
}
|
|
@@ -865,15 +865,15 @@ function ha(se, t) {
|
|
|
865
865
|
var w = (k) => {
|
|
866
866
|
var D = pa(), L = e.child(D), me = e.child(L, !0);
|
|
867
867
|
e.reset(L);
|
|
868
|
-
var
|
|
869
|
-
It(ye, { size: 18, "aria-hidden": "true" }), e.reset(
|
|
868
|
+
var ve = e.sibling(L, 2), ye = e.child(ve);
|
|
869
|
+
It(ye, { size: 18, "aria-hidden": "true" }), e.reset(ve), e.reset(D), e.template_effect(
|
|
870
870
|
(G) => {
|
|
871
|
-
e.set_attribute(L, "aria-label", G), e.set_text(me, e.get(oe)), e.set_attribute(
|
|
871
|
+
e.set_attribute(L, "aria-label", G), e.set_text(me, e.get(oe)), e.set_attribute(ve, "aria-label", h().viewOrderDetails || "View order details");
|
|
872
872
|
},
|
|
873
873
|
[
|
|
874
874
|
() => (h().ariaOrderTotal || "Order total: {total}").replace("{total}", e.get(oe))
|
|
875
875
|
]
|
|
876
|
-
), e.delegated("click",
|
|
876
|
+
), e.delegated("click", ve, function(...G) {
|
|
877
877
|
s()?.apply(this, G);
|
|
878
878
|
}), e.append(k, D);
|
|
879
879
|
};
|
|
@@ -891,26 +891,26 @@ function ha(se, t) {
|
|
|
891
891
|
]
|
|
892
892
|
), e.delegated("click", N, function(...k) {
|
|
893
893
|
I()?.apply(this, k);
|
|
894
|
-
}), e.append(
|
|
894
|
+
}), e.append(ne, ee), e.pop();
|
|
895
895
|
}
|
|
896
896
|
e.delegate(["click"]);
|
|
897
897
|
const _e = gt("CartView");
|
|
898
898
|
var _a = e.from_html('<div class="flex items-center justify-center py-12" role="status" aria-live="polite"><p class="text-text-secondary"> </p></div>'), ba = e.from_html('<div class="text-center py-8" role="alert"><p class="text-accent-danger mb-2"> </p> <button class="go-back-btn text-white mt-4 px-4 py-2 rounded-lg svelte-19g9ni4"> </button></div>'), xa = e.from_html('<div class="text-center py-12" role="alert"><p class="text-xl font-semibold text-text-primary mb-2"> </p> <p class="text-text-secondary mb-6"> </p> <button class="go-back-btn text-white px-4 py-2 rounded-lg svelte-19g9ni4"> </button></div>'), ya = e.from_html('<div class="text-center py-12" role="alert"><p class="text-xl font-semibold text-text-primary mb-2">This event has ended</p> <p class="text-text-secondary mb-6">Tickets are no longer available for this event.</p> <button class="go-back-btn px-4 py-2 rounded-lg svelte-19g9ni4" aria-label="Go back to event details">Go back</button></div>'), ka = e.from_html('<div class="px-4 md:px-5 pt-3"><!></div>'), Ta = e.from_html('<div class="px-4 md:px-5 pt-3"><!></div>'), wa = e.from_html('<div class="hidden md:block w-80 h-[calc(100vh-40px)]"></div>'), Da = e.from_html('<div class="w-full flex md:gap-5 flex-wrap"><div class="flex-1 pb-16 md:pb-0"><div class="bg-card border-border rounded-lg md:shadow md:border py-3"><!> <!> <!> <div class="space-y-4 md:px-5"><!></div></div></div> <!> <div><!></div></div>'), Ia = e.from_html('<h3 id="error-modal-title" class="heading-lg"><!></h3>'), Sa = e.from_html('<p class="body-sm"> </p> <p class="text-text-secondary mt-2"> </p>', 1), Ca = e.from_html('<p class="body-sm"> </p> <p class="text-text-secondary mt-2"> </p>', 1), Ea = e.from_html('<div id="error-modal-description"><!></div>'), Aa = e.from_html("<!> <!>", 1), Pa = e.from_html('<div role="group" aria-label="Error modal actions"><!></div>'), Ma = e.from_html('<div class="fixed inset-0 z-50 flex items-center justify-center bg-black/50" role="alertdialog" aria-labelledby="expired-modal-title" aria-describedby="expired-modal-description"><div class="bg-card rounded-xl shadow-lg p-6 max-w-sm mx-4 text-center"><h3 id="expired-modal-title" class="text-lg font-semibold text-text-primary mb-2"> </h3> <p id="expired-modal-description" class="text-text-secondary text-sm mb-6"> </p> <button class="px-6 py-2.5 bg-brand-primary text-white rounded-lg font-medium hover:opacity-90 transition-opacity"> </button></div></div>'), Oa = e.from_html('<h3 id="availability-modal-title" class="heading-lg"> </h3>'), Fa = e.from_html('<li class="text-text-secondary text-sm"><span class="font-medium"> </span> <!></li>'), Ba = e.from_html('<p class="text-text-secondary mt-4"> </p>'), Qa = e.from_html('<p class="text-text-secondary mt-4"> </p>'), La = e.from_html('<div id="availability-modal-description"><p class="text-text-secondary mb-4"> </p> <ul class="space-y-2"></ul> <!></div>'), qa = e.from_html('<div role="group" aria-label="Availability modal actions"><!> <!></div>'), Na = e.from_html('<div class="px-5 md:px-10 py-12 bg-card"><!></div> <!> <!> <!>', 1);
|
|
899
|
-
function Ja(
|
|
899
|
+
function Ja(ne, t) {
|
|
900
900
|
e.push(t, !0);
|
|
901
|
-
let Q = e.prop(t, "organizationId", 3, ""), b = e.prop(t, "venueId", 3, ""), I = e.prop(t, "initialEventData", 3, null), s = e.prop(t, "labels", 19, () => ({})), h = e.state(!1), i = e.state(null), S = e.state(null), C = e.state(e.proxy([])), H = e.state(!1), oe = e.state(!0), ee = e.state(null), N = e.state(!1),
|
|
901
|
+
let Q = e.prop(t, "organizationId", 3, ""), b = e.prop(t, "venueId", 3, ""), I = e.prop(t, "initialEventData", 3, null), s = e.prop(t, "labels", 19, () => ({})), h = e.state(!1), i = e.state(null), S = e.state(null), C = e.state(e.proxy([])), H = e.state(!1), oe = e.state(!0), ee = e.state(null), N = e.state(!1), ue = e.state(!1), U = e.state(!1), f = e.state(0), J = e.state(void 0), te = e.state(void 0), T = e.state(e.proxy({})), $ = e.state(""), le = e.state(""), p = e.state(0), x = e.state(!1), m = e.state(0), y = e.state(!1), Y = null, d = e.state(!1), u = e.state(!1), w = e.state(
|
|
902
902
|
"cart_failed"
|
|
903
903
|
// 'cart_failed' | 'cart_success_network_error'
|
|
904
904
|
), k = e.state(!1), D = e.state(!1), L = e.state(e.proxy(
|
|
905
905
|
[]
|
|
906
906
|
// Array of {ticketId, ticketName, requestedQty, availableQty}
|
|
907
|
-
)), me = e.state(0),
|
|
907
|
+
)), me = e.state(0), ve = e.state(0), ye = e.derived(() => e.get(Ze) ? 0 : it(Object.entries(e.get(T)).reduce(
|
|
908
908
|
(a, [r, o]) => {
|
|
909
909
|
const g = e.get(i)?.availableTickets?.find((c) => c.ID == r);
|
|
910
910
|
return g ? a + it(o * g.price) : a;
|
|
911
911
|
},
|
|
912
912
|
0
|
|
913
|
-
))), G = e.state(0),
|
|
913
|
+
))), G = e.state(0), X = e.state(0), ie = e.state(0), de = e.state(!1), _ = null, qe = e.derived(() => it(e.get(ye) + e.get(G) + e.get(X))), ke = !1, ge = !1;
|
|
914
914
|
function be(a, r) {
|
|
915
915
|
e.set(
|
|
916
916
|
T,
|
|
@@ -947,13 +947,13 @@ function Ja(se, t) {
|
|
|
947
947
|
if (!e.get(i)?.availableTickets) return;
|
|
948
948
|
const r = e.get(i).availableTickets.filter((o) => o.visibility === 0).map((o) => parseFloat(o.price) || 0);
|
|
949
949
|
if (r.length === 0) {
|
|
950
|
-
e.set(me, e.set(
|
|
950
|
+
e.set(me, e.set(ve, 0), !0);
|
|
951
951
|
return;
|
|
952
952
|
}
|
|
953
953
|
e.set(me, Ce(
|
|
954
954
|
Math.min(...r)
|
|
955
955
|
/* FIXME(canonical-cleanup:toFixed): heuristic guess — verify this is USD (not cents); when migrating to TS, add `as USD` brand cast at the API-response-transform layer. */
|
|
956
|
-
), !0), e.set(
|
|
956
|
+
), !0), e.set(ve, Ce(
|
|
957
957
|
Math.max(...r)
|
|
958
958
|
/* FIXME(canonical-cleanup:toFixed): heuristic guess — verify this is USD (not cents); when migrating to TS, add `as USD` brand cast at the API-response-transform layer. */
|
|
959
959
|
), !0);
|
|
@@ -970,10 +970,10 @@ function Ja(se, t) {
|
|
|
970
970
|
});
|
|
971
971
|
}
|
|
972
972
|
if (a.length === 0) {
|
|
973
|
-
e.set(
|
|
973
|
+
e.set(ie, 0), e.set(X, 0), e.set(de, !1);
|
|
974
974
|
return;
|
|
975
975
|
}
|
|
976
|
-
_ && _.abort(), _ = new AbortController(), e.set(
|
|
976
|
+
_ && _.abort(), _ = new AbortController(), e.set(de, !0);
|
|
977
977
|
try {
|
|
978
978
|
const r = await fetch("https://get-micdrop.com/api/v2/public/tax-preview", {
|
|
979
979
|
method: "POST",
|
|
@@ -982,23 +982,23 @@ function Ja(se, t) {
|
|
|
982
982
|
body: JSON.stringify({ venueId: Number(e.get(i).venueID), lineItems: a })
|
|
983
983
|
});
|
|
984
984
|
if (!r.ok) {
|
|
985
|
-
r.status === 422 ? _e.debug("Tax preview: venue has no tax address, falling back to 0") : _e.error("Tax preview failed:", r.status), e.set(
|
|
985
|
+
r.status === 422 ? _e.debug("Tax preview: venue has no tax address, falling back to 0") : _e.error("Tax preview failed:", r.status), e.set(ie, 0), e.set(X, 0), e.set(de, !1);
|
|
986
986
|
return;
|
|
987
987
|
}
|
|
988
988
|
const o = await r.json();
|
|
989
|
-
e.set(
|
|
989
|
+
e.set(ie, (o.taxTotal ?? 0) / 100), e.set(X, e.get(ie), !0);
|
|
990
990
|
} catch (r) {
|
|
991
991
|
if (r.name === "AbortError") return;
|
|
992
|
-
_e.error("Tax preview error:", r), e.set(
|
|
992
|
+
_e.error("Tax preview error:", r), e.set(ie, 0), e.set(X, 0);
|
|
993
993
|
} finally {
|
|
994
|
-
_?.signal?.aborted || e.set(
|
|
994
|
+
_?.signal?.aborted || e.set(de, !1);
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
997
|
function Ae() {
|
|
998
998
|
if (!e.get(i)) return;
|
|
999
999
|
e.set($, Ue(`checkout-promocode-${e.get(i).eventID}`) || "", !0);
|
|
1000
1000
|
const a = parseFloat(Ue("checkout-promo-discount") || 0);
|
|
1001
|
-
e.set(
|
|
1001
|
+
e.set(le, e.get($) ? `${e.get($)} applied.` : "", !0), e.set(p, a, !0);
|
|
1002
1002
|
}
|
|
1003
1003
|
async function Te() {
|
|
1004
1004
|
try {
|
|
@@ -1087,7 +1087,7 @@ function Ja(se, t) {
|
|
|
1087
1087
|
e.set(u, !1), window.location.reload();
|
|
1088
1088
|
}
|
|
1089
1089
|
function xe() {
|
|
1090
|
-
e.set(
|
|
1090
|
+
e.set(ue, window.innerWidth < 767);
|
|
1091
1091
|
}
|
|
1092
1092
|
let Oe = !1;
|
|
1093
1093
|
function Ge() {
|
|
@@ -1096,7 +1096,7 @@ function Ja(se, t) {
|
|
|
1096
1096
|
}), Oe = !0);
|
|
1097
1097
|
}
|
|
1098
1098
|
function $e() {
|
|
1099
|
-
if (e.get(
|
|
1099
|
+
if (e.get(ue) || !e.get(te) || !e.get(J)) {
|
|
1100
1100
|
e.set(U, !1);
|
|
1101
1101
|
return;
|
|
1102
1102
|
}
|
|
@@ -1139,9 +1139,9 @@ function Ja(se, t) {
|
|
|
1139
1139
|
return;
|
|
1140
1140
|
}
|
|
1141
1141
|
}
|
|
1142
|
-
|
|
1142
|
+
Y = setInterval(
|
|
1143
1143
|
() => {
|
|
1144
|
-
e.get(m) > 0 ? (e.set(m, e.get(m) - 1), e.get(m) % 10 === 0 && ae && localStorage.setItem(`checkout-expiry-${ae}`, String(Date.now() + e.get(m) * 1e3))) : (clearInterval(
|
|
1144
|
+
e.get(m) > 0 ? (e.set(m, e.get(m) - 1), e.get(m) % 10 === 0 && ae && localStorage.setItem(`checkout-expiry-${ae}`, String(Date.now() + e.get(m) * 1e3))) : (clearInterval(Y), e.set(y, !1), e.set(d, !0), ae && localStorage.removeItem(`checkout-expiry-${ae}`));
|
|
1145
1145
|
},
|
|
1146
1146
|
1e3
|
|
1147
1147
|
);
|
|
@@ -1171,7 +1171,7 @@ function Ja(se, t) {
|
|
|
1171
1171
|
}
|
|
1172
1172
|
async function We(a) {
|
|
1173
1173
|
const r = a?.detail ?? a, { code: o, discount: g } = r;
|
|
1174
|
-
if (e.set($, o || "", !0), e.set(p, g || 0, !0), e.set(
|
|
1174
|
+
if (e.set($, o || "", !0), e.set(p, g || 0, !0), e.set(le, o ? `${o} applied.` : "", !0), r.revealHiddenTickets !== void 0 && e.get(i) && (document.cookie = `checkout-promo-reveal-${e.get(i).eventID}=${r.revealHiddenTickets ? "1" : "0"}; path=/`, r.revealTicketIds?.length && (document.cookie = `checkout-promo-reveal-ids-${e.get(i).eventID}=${JSON.stringify(r.revealTicketIds)}; path=/`), o && r.revealHiddenTickets))
|
|
1175
1175
|
try {
|
|
1176
1176
|
const c = await st(t.eventId, o);
|
|
1177
1177
|
c.length > 0 && e.get(i) && e.set(i, { ...e.get(i), availableTickets: c }, !0);
|
|
@@ -1238,14 +1238,14 @@ function Ja(se, t) {
|
|
|
1238
1238
|
}), () => {
|
|
1239
1239
|
window.removeEventListener("resize", xe), window.removeEventListener("scroll", Ge);
|
|
1240
1240
|
})), Bt(() => {
|
|
1241
|
-
e.set(N, !1),
|
|
1241
|
+
e.set(N, !1), Y && clearInterval(Y), _ && _.abort();
|
|
1242
1242
|
});
|
|
1243
1243
|
let Xe = null;
|
|
1244
1244
|
e.user_effect(() => {
|
|
1245
1245
|
e.get(N) && t.eventId && t.eventId !== Xe && (Xe = t.eventId, Ye());
|
|
1246
1246
|
}), e.user_effect(() => {
|
|
1247
1247
|
const a = Object.values(e.get(T)).reduce((r, o) => r + o, 0);
|
|
1248
|
-
e.get(h) && e.get(i) && a > 0 ? Be() : a === 0 && (e.set(
|
|
1248
|
+
e.get(h) && e.get(i) && a > 0 ? Be() : a === 0 && (e.set(ie, 0), e.set(X, 0), e.set(de, !1));
|
|
1249
1249
|
});
|
|
1250
1250
|
var Ke = Na(), Le = e.first_child(Ke), l = e.child(Le);
|
|
1251
1251
|
{
|
|
@@ -1282,7 +1282,7 @@ function Ja(se, t) {
|
|
|
1282
1282
|
return e.get(me);
|
|
1283
1283
|
},
|
|
1284
1284
|
get highestPrice() {
|
|
1285
|
-
return e.get(
|
|
1285
|
+
return e.get(ve);
|
|
1286
1286
|
},
|
|
1287
1287
|
onCancel: De,
|
|
1288
1288
|
get venueFeesReady() {
|
|
@@ -1356,17 +1356,17 @@ function Ja(se, t) {
|
|
|
1356
1356
|
return s();
|
|
1357
1357
|
}
|
|
1358
1358
|
}), e.reset(E), e.reset(g), e.reset(o);
|
|
1359
|
-
var
|
|
1359
|
+
var ce = e.sibling(o, 2);
|
|
1360
1360
|
{
|
|
1361
1361
|
var A = (Z) => {
|
|
1362
1362
|
var re = wa();
|
|
1363
1363
|
e.append(Z, re);
|
|
1364
1364
|
};
|
|
1365
|
-
e.if(
|
|
1366
|
-
e.get(U) && !e.get(
|
|
1365
|
+
e.if(ce, (Z) => {
|
|
1366
|
+
e.get(U) && !e.get(ue) && Z(A);
|
|
1367
1367
|
});
|
|
1368
1368
|
}
|
|
1369
|
-
var P = e.sibling(
|
|
1369
|
+
var P = e.sibling(ce, 2);
|
|
1370
1370
|
let fe, pe;
|
|
1371
1371
|
var tt = e.child(P);
|
|
1372
1372
|
{
|
|
@@ -1374,7 +1374,7 @@ function Ja(se, t) {
|
|
|
1374
1374
|
Qt(Z, {});
|
|
1375
1375
|
}, rt = (Z) => {
|
|
1376
1376
|
{
|
|
1377
|
-
let re = e.derived(() => s().checkout || "Checkout"), he = e.derived(() => !!e.get(
|
|
1377
|
+
let re = e.derived(() => s().checkout || "Checkout"), he = e.derived(() => !!e.get(le));
|
|
1378
1378
|
Ft(Z, {
|
|
1379
1379
|
get btnText() {
|
|
1380
1380
|
return e.get(re);
|
|
@@ -1401,8 +1401,11 @@ function Ja(se, t) {
|
|
|
1401
1401
|
get fees() {
|
|
1402
1402
|
return e.get(G);
|
|
1403
1403
|
},
|
|
1404
|
-
get
|
|
1405
|
-
return e.get(
|
|
1404
|
+
get taxAmount() {
|
|
1405
|
+
return e.get(ie);
|
|
1406
|
+
},
|
|
1407
|
+
get taxLoading() {
|
|
1408
|
+
return e.get(de);
|
|
1406
1409
|
},
|
|
1407
1410
|
get total() {
|
|
1408
1411
|
return e.get(qe);
|
|
@@ -1456,18 +1459,18 @@ function Ja(se, t) {
|
|
|
1456
1459
|
var c = Ea(), M = e.child(c);
|
|
1457
1460
|
{
|
|
1458
1461
|
var W = (O) => {
|
|
1459
|
-
var E = Sa(), K = e.first_child(E),
|
|
1462
|
+
var E = Sa(), K = e.first_child(E), ce = e.child(K, !0);
|
|
1460
1463
|
e.reset(K);
|
|
1461
1464
|
var A = e.sibling(K, 2), P = e.child(A, !0);
|
|
1462
1465
|
e.reset(A), e.template_effect(() => {
|
|
1463
|
-
e.set_text(
|
|
1466
|
+
e.set_text(ce, s().cartFailedMessage || "We couldn't reserve your tickets. This may be due to a network issue or the tickets may no longer be available."), e.set_text(P, s().pleaseGoBackAndTryAgain || "Please go back and try again.");
|
|
1464
1467
|
}), e.append(O, E);
|
|
1465
1468
|
}, j = (O) => {
|
|
1466
|
-
var E = Ca(), K = e.first_child(E),
|
|
1469
|
+
var E = Ca(), K = e.first_child(E), ce = e.child(K, !0);
|
|
1467
1470
|
e.reset(K);
|
|
1468
1471
|
var A = e.sibling(K, 2), P = e.child(A, !0);
|
|
1469
1472
|
e.reset(A), e.template_effect(() => {
|
|
1470
|
-
e.set_text(
|
|
1473
|
+
e.set_text(ce, s().cartSuccessMessage || "Good news! Your tickets have been reserved and are being held for you."), e.set_text(P, s().cartSuccessNetworkError || "However, we encountered a connection issue. Please refresh the page to continue to checkout.");
|
|
1471
1474
|
}), e.append(O, E);
|
|
1472
1475
|
};
|
|
1473
1476
|
e.if(M, (O) => {
|
|
@@ -1488,7 +1491,7 @@ function Ja(se, t) {
|
|
|
1488
1491
|
get "aria-label"() {
|
|
1489
1492
|
return e.get(E);
|
|
1490
1493
|
},
|
|
1491
|
-
children: (K,
|
|
1494
|
+
children: (K, ce) => {
|
|
1492
1495
|
e.next();
|
|
1493
1496
|
var A = e.text();
|
|
1494
1497
|
e.template_effect(() => e.set_text(A, s().goBack || "Go back")), e.append(K, A);
|
|
@@ -1514,10 +1517,10 @@ function Ja(se, t) {
|
|
|
1514
1517
|
$$slots: { default: !0 }
|
|
1515
1518
|
});
|
|
1516
1519
|
}
|
|
1517
|
-
var
|
|
1520
|
+
var ce = e.sibling(K, 2);
|
|
1518
1521
|
{
|
|
1519
1522
|
let A = e.derived(() => s().refreshPage || "Refresh Page");
|
|
1520
|
-
Ie(
|
|
1523
|
+
Ie(ce, {
|
|
1521
1524
|
variant: "default",
|
|
1522
1525
|
onclick: Qe,
|
|
1523
1526
|
get "aria-label"() {
|
|
@@ -1559,8 +1562,8 @@ function Ja(se, t) {
|
|
|
1559
1562
|
e.get(d) && a(B);
|
|
1560
1563
|
});
|
|
1561
1564
|
}
|
|
1562
|
-
var
|
|
1563
|
-
lt(
|
|
1565
|
+
var se = e.sibling(V, 2);
|
|
1566
|
+
lt(se, {
|
|
1564
1567
|
size: "sm",
|
|
1565
1568
|
oncancel: we,
|
|
1566
1569
|
role: "alertdialog",
|
|
@@ -1607,12 +1610,12 @@ function Ja(se, t) {
|
|
|
1607
1610
|
var E = (A) => {
|
|
1608
1611
|
var P = Ba(), fe = e.child(P, !0);
|
|
1609
1612
|
e.reset(P), e.template_effect(() => e.set_text(fe, s().partialAvailabilityContinue || "Would you like to continue with the available tickets?")), e.append(A, P);
|
|
1610
|
-
}, K = e.derived(() => e.get(L).some((A) => A.availableQty > 0)),
|
|
1613
|
+
}, K = e.derived(() => e.get(L).some((A) => A.availableQty > 0)), ce = (A) => {
|
|
1611
1614
|
var P = Qa(), fe = e.child(P, !0);
|
|
1612
1615
|
e.reset(P), e.template_effect(() => e.set_text(fe, s().allTicketsSoldOut || "Unfortunately, all the tickets you selected have sold out.")), e.append(A, P);
|
|
1613
1616
|
};
|
|
1614
1617
|
e.if(O, (A) => {
|
|
1615
|
-
e.get(K) ? A(E) : A(
|
|
1618
|
+
e.get(K) ? A(E) : A(ce, !1);
|
|
1616
1619
|
});
|
|
1617
1620
|
}
|
|
1618
1621
|
e.reset(c), e.template_effect(() => {
|
|
@@ -1629,7 +1632,7 @@ function Ja(se, t) {
|
|
|
1629
1632
|
get "aria-label"() {
|
|
1630
1633
|
return e.get(E);
|
|
1631
1634
|
},
|
|
1632
|
-
children: (K,
|
|
1635
|
+
children: (K, ce) => {
|
|
1633
1636
|
e.next();
|
|
1634
1637
|
var A = e.text();
|
|
1635
1638
|
e.template_effect(() => e.set_text(A, s().goBack || "Go back")), e.append(K, A);
|
|
@@ -1648,10 +1651,10 @@ function Ja(se, t) {
|
|
|
1648
1651
|
get "aria-label"() {
|
|
1649
1652
|
return e.get(K);
|
|
1650
1653
|
},
|
|
1651
|
-
children: (
|
|
1654
|
+
children: (ce, A) => {
|
|
1652
1655
|
e.next();
|
|
1653
1656
|
var P = e.text();
|
|
1654
|
-
e.template_effect(() => e.set_text(P, s().continueWithAvailable || "Continue with available")), e.append(
|
|
1657
|
+
e.template_effect(() => e.set_text(P, s().continueWithAvailable || "Continue with available")), e.append(ce, P);
|
|
1655
1658
|
},
|
|
1656
1659
|
$$slots: { default: !0 }
|
|
1657
1660
|
});
|
|
@@ -1664,10 +1667,10 @@ function Ja(se, t) {
|
|
|
1664
1667
|
e.reset(c), e.append(g, c);
|
|
1665
1668
|
},
|
|
1666
1669
|
$$slots: { header: !0, body: !0, footer: !0 }
|
|
1667
|
-
}), e.append(
|
|
1670
|
+
}), e.append(ne, Ke), e.pop();
|
|
1668
1671
|
}
|
|
1669
1672
|
e.delegate(["click"]);
|
|
1670
1673
|
export {
|
|
1671
1674
|
Ja as default
|
|
1672
1675
|
};
|
|
1673
|
-
//# sourceMappingURL=CartView-
|
|
1676
|
+
//# sourceMappingURL=CartView-Be1-gajf.js.map
|