@getmicdrop/venue-calendar 4.0.68 → 4.0.70
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/{CarouselView.legacy-DtlaKenI.js → CarouselView.legacy-CAtJAiSb.js} +3 -3
- package/dist/{CarouselView.legacy-DtlaKenI.js.map → CarouselView.legacy-CAtJAiSb.js.map} +1 -1
- package/dist/{CartView-xAVJT3Wf.js → CartView-CpA__vH7.js} +53 -53
- package/dist/{CartView-xAVJT3Wf.js.map → CartView-CpA__vH7.js.map} +1 -1
- package/dist/{Checkout-C8E5Q9nl.js → Checkout-Bm3yGYYr.js} +278 -273
- package/dist/Checkout-Bm3yGYYr.js.map +1 -0
- package/dist/{Checkout-WYIEsOZ0.js → Checkout-CRBwRTOc.js} +114 -114
- package/dist/{Checkout-WYIEsOZ0.js.map → Checkout-CRBwRTOc.js.map} +1 -1
- package/dist/{Checkout.legacy-Bjj390J_.js → Checkout.legacy-CpgxTxZl.js} +5 -5
- package/dist/{Checkout.legacy-Bjj390J_.js.map → Checkout.legacy-CpgxTxZl.js.map} +1 -1
- package/dist/{CheckoutTimer-DlnXHs-c.js → CheckoutTimer-SMZRnL_T.js} +2 -2
- package/dist/{CheckoutTimer-DlnXHs-c.js.map → CheckoutTimer-SMZRnL_T.js.map} +1 -1
- package/dist/{CollectionView-89AFwGuE.js → CollectionView-DgVzimMX.js} +5 -5
- package/dist/{CollectionView-89AFwGuE.js.map → CollectionView-DgVzimMX.js.map} +1 -1
- package/dist/{CollectionView.legacy-Czq6UrTZ.js → CollectionView.legacy-BTAS-mTd.js} +31 -31
- package/dist/{CollectionView.legacy-Czq6UrTZ.js.map → CollectionView.legacy-BTAS-mTd.js.map} +1 -1
- package/dist/{Event-DhvEjKVz.js → Event-BNVO_E6j.js} +145 -145
- package/dist/{Event-DhvEjKVz.js.map → Event-BNVO_E6j.js.map} +1 -1
- package/dist/{EventDetailsView-4f1xNl1a.js → EventDetailsView-CXvl9xwe.js} +140 -140
- package/dist/EventDetailsView-CXvl9xwe.js.map +1 -0
- package/dist/{EventPage-D75bt8XZ.js → EventPage-Dc4CtBeS.js} +5 -5
- package/dist/{EventPage-D75bt8XZ.js.map → EventPage-Dc4CtBeS.js.map} +1 -1
- package/dist/{EventPage.legacy-DU0ZcZg9.js → EventPage.legacy-D-9svuzb.js} +49 -49
- package/dist/{EventPage.legacy-DU0ZcZg9.js.map → EventPage.legacy-D-9svuzb.js.map} +1 -1
- package/dist/{FeaturedView.legacy-BgZu-R0y.js → FeaturedView.legacy-BKF3u2sH.js} +19 -19
- package/dist/{FeaturedView.legacy-BgZu-R0y.js.map → FeaturedView.legacy-BKF3u2sH.js.map} +1 -1
- package/dist/{GalleryCard-DdHqVAXD.js → GalleryCard-lNx3CEtB.js} +9 -9
- package/dist/{GalleryCard-DdHqVAXD.js.map → GalleryCard-lNx3CEtB.js.map} +1 -1
- package/dist/{GalleryView.legacy-F46Bwi9x.js → GalleryView.legacy-CMjIfp2b.js} +3 -3
- package/dist/{GalleryView.legacy-F46Bwi9x.js.map → GalleryView.legacy-CMjIfp2b.js.map} +1 -1
- package/dist/{GroupedListView.legacy-CLnOs7Ls.js → GroupedListView.legacy-BybmHzIV.js} +23 -23
- package/dist/{GroupedListView.legacy-CLnOs7Ls.js.map → GroupedListView.legacy-BybmHzIV.js.map} +1 -1
- package/dist/{OrderSummary-BYSCmf9h.js → OrderSummary-B1GhsUnc.js} +7 -7
- package/dist/{OrderSummary-BYSCmf9h.js.map → OrderSummary-B1GhsUnc.js.map} +1 -1
- package/dist/{PromoCodeInput-B8agz1bc.js → PromoCodeInput-CrXBD0oq.js} +30 -30
- package/dist/{PromoCodeInput-B8agz1bc.js.map → PromoCodeInput-CrXBD0oq.js.map} +1 -1
- package/dist/{SeriesPage-CH8STWTA.js → SeriesPage-DEDSbKuu.js} +5 -5
- package/dist/{SeriesPage-CH8STWTA.js.map → SeriesPage-DEDSbKuu.js.map} +1 -1
- package/dist/{SeriesPage.legacy-Cg5j7_1m.js → SeriesPage.legacy-BlqTBr4n.js} +38 -38
- package/dist/{SeriesPage.legacy-Cg5j7_1m.js.map → SeriesPage.legacy-BlqTBr4n.js.map} +1 -1
- package/dist/{Success-DMGAgbh-.js → Success-CD4K7aRv.js} +24 -24
- package/dist/{Success-DMGAgbh-.js.map → Success-CD4K7aRv.js.map} +1 -1
- package/dist/{Success.legacy-CY33Nix8.js → Success.legacy-B1Jvy8N0.js} +2 -2
- package/dist/{Success.legacy-CY33Nix8.js.map → Success.legacy-B1Jvy8N0.js.map} +1 -1
- package/dist/{VenueCalendar-H0gMPiFX.js → VenueCalendar-BoSdP7xI.js} +1472 -1457
- package/dist/{VenueCalendar-H0gMPiFX.js.map → VenueCalendar-BoSdP7xI.js.map} +1 -1
- package/dist/{ViewTicketsEmbed-DiGhZiyP.js → ViewTicketsEmbed-D1nD9zJY.js} +42 -42
- package/dist/{ViewTicketsEmbed-DiGhZiyP.js.map → ViewTicketsEmbed-D1nD9zJY.js.map} +1 -1
- package/dist/{WaitlistModal-CA8-Rcff.js → WaitlistModal-DWcbQmfW.js} +35 -35
- package/dist/{WaitlistModal-CA8-Rcff.js.map → WaitlistModal-DWcbQmfW.js.map} +1 -1
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.cjs.map +1 -1
- package/dist/api/api.mjs +160 -157
- package/dist/api/api.mjs.map +1 -1
- package/dist/{api-IWcZsS94.js → api-CCKXC9Qs.js} +2 -2
- package/dist/{api-IWcZsS94.js.map → api-CCKXC9Qs.js.map} +1 -1
- package/dist/{data-toggle-store.svelte-D6pqR0Zt.js → data-toggle-store.svelte-CB6WLZEE.js} +2 -2
- package/dist/{data-toggle-store.svelte-D6pqR0Zt.js.map → data-toggle-store.svelte-CB6WLZEE.js.map} +1 -1
- package/dist/{transform-BPCR9pPY.js → transform-BrlBxayh.js} +6 -3
- package/dist/transform-BrlBxayh.js.map +1 -0
- package/dist/venue-calendar.es.js +1 -1
- package/dist/venue-calendar.iife.js +32 -32
- package/dist/venue-calendar.iife.js.map +1 -1
- package/dist/venue-calendar.umd.js +30 -30
- package/dist/venue-calendar.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/Checkout-C8E5Q9nl.js.map +0 -1
- package/dist/EventDetailsView-4f1xNl1a.js.map +0 -1
- package/dist/transform-BPCR9pPY.js.map +0 -1
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import "svelte/internal/disclose-version";
|
|
2
|
-
import { g as fe, B as ee, L as at, T as Ue, S as yt, h as Be, M as kt, j as wt, k as Tt, l as Pt, m as Ct, n as
|
|
2
|
+
import { g as fe, B as ee, L as at, T as Ue, S as yt, h as Be, M as kt, j as wt, k as Tt, l as Pt, m as Ct, n as St, I as Et, b as At, v as It, d as Dt, i as Ft, e as Rt, o as Ke, q as Ze, f as Lt, r as qt, A as zt, s as Xe, u as Mt, c as Bt, W as Wt, F as Ot } from "./VenueCalendar-BoSdP7xI.js";
|
|
3
3
|
import * as e from "svelte/internal/client";
|
|
4
4
|
import "svelte/transition";
|
|
5
5
|
import "svelte/easing";
|
|
6
6
|
import { onMount as it, onDestroy as rt } from "svelte";
|
|
7
7
|
import { g as Ye } from "./__SKIP_NAVIGATION__-CJ96TTPE.js";
|
|
8
|
-
import { t as jt } from "./transform-
|
|
8
|
+
import { t as jt } from "./transform-BrlBxayh.js";
|
|
9
9
|
import "svelte/internal/flags/legacy";
|
|
10
|
-
import { W as Nt } from "./WaitlistModal-
|
|
10
|
+
import { W as Nt } from "./WaitlistModal-DWcbQmfW.js";
|
|
11
11
|
import { H as $e } from "./Heading-AFd3o0xt.js";
|
|
12
|
-
import { T as et, P as Jt } from "./PromoCodeInput-
|
|
13
|
-
import { c as Ie, a as Ht, O as Vt } from "./OrderSummary-
|
|
12
|
+
import { T as et, P as Jt } from "./PromoCodeInput-CrXBD0oq.js";
|
|
13
|
+
import { c as Ie, a as Ht, O as Vt } from "./OrderSummary-B1GhsUnc.js";
|
|
14
14
|
var Gt = e.from_html('<span class="text-lg font-semibold text-text-primary"> </span>'), Qt = e.from_html('<span class="text-lg font-semibold text-text-primary"> </span>'), Ut = e.from_html('<span class="text-xs text-muted-foreground" aria-hidden="true"> </span>'), Kt = e.from_html('<div class="flex flex-col items-end gap-0.5"><!> <!></div>');
|
|
15
15
|
function Zt(V, t) {
|
|
16
16
|
e.push(t, !0);
|
|
17
17
|
let b = e.prop(t, "labels", 19, () => ({}));
|
|
18
18
|
const R = e.derived(() => t.tickets.length === 1 && parseFloat(t.tickets[0].price) === 0);
|
|
19
|
-
var
|
|
20
|
-
|
|
19
|
+
var E = Kt(), s = e.child(
|
|
20
|
+
E
|
|
21
21
|
/* 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. */
|
|
22
22
|
/* 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. */
|
|
23
23
|
);
|
|
24
24
|
{
|
|
25
|
-
var
|
|
25
|
+
var u = (a) => {
|
|
26
26
|
var l = Gt(), z = e.child(l, !0);
|
|
27
27
|
e.reset(l), e.template_effect(() => e.set_text(z, e.get(R) ? b().free || "Free" : "$0.00")), e.append(a, l);
|
|
28
|
-
},
|
|
28
|
+
}, c = (a) => {
|
|
29
29
|
var l = Qt(), z = e.child(l, !0);
|
|
30
30
|
e.reset(l), e.template_effect((h) => e.set_text(z, h), [() => fe(t.price)]), e.append(a, l);
|
|
31
31
|
};
|
|
32
32
|
e.if(s, (a) => {
|
|
33
|
-
t.price === 0 ? a(
|
|
33
|
+
t.price === 0 ? a(u) : a(c, !1);
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
var v = e.sibling(s, 2);
|
|
@@ -45,10 +45,10 @@ function Zt(V, t) {
|
|
|
45
45
|
t.fee > 0 && a(n);
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
e.reset(
|
|
48
|
+
e.reset(E), e.template_effect((a, l) => e.set_attribute(E, "aria-label", `Ticket price: ${a ?? ""}${l ?? ""}`), [
|
|
49
49
|
() => t.price === 0 ? e.get(R) ? b().free || "Free" : "$0.00" : `${fe(t.price)}`,
|
|
50
50
|
() => t.fee > 0 ? `, ${(b().includingFee || "including {fee} service fee").replace("{fee}", fe(t.fee))}` : ""
|
|
51
|
-
]), e.append(V,
|
|
51
|
+
]), e.append(V, E), e.pop();
|
|
52
52
|
}
|
|
53
53
|
var Xt = e.from_html('<div class="flex items-center gap-2 animate-pulse" role="status" aria-busy="true" aria-label="Loading price"><span class="sr-only svelte-1sc8cjx">Loading price...</span> <div class="h-5 w-16 rounded-md bg-bg-tertiary" aria-hidden="true"></div> <div class="h-3 w-12 rounded-md bg-muted" aria-hidden="true"></div></div>');
|
|
54
54
|
function Yt(V) {
|
|
@@ -58,9 +58,9 @@ function Yt(V) {
|
|
|
58
58
|
var $t = e.from_html('<div class="flex items-baseline gap-1.5"><span class="text-xl font-semibold text-text-primary"> </span> <span class="text-xs text-muted-foreground" aria-hidden="true"> </span></div>'), ea = e.from_html('<div class="h-6 w-20 skeleton rounded" role="status" aria-busy="true"></div>'), ta = e.from_html("<!> ", 1), aa = e.from_html('<div class="mobile-drawer flex items-center justify-between gap-4 px-4 py-3 safe-area-bottom svelte-yxa700" role="region"><div class="flex flex-col min-w-0"><span class="text-xs text-muted-foreground"> </span> <!></div> <div class="shrink-0"><!></div></div>'), ia = e.from_html("<!> ", 1), ra = e.from_html('<!> <div class="flex items-center justify-center gap-1.5 mt-3 text-color-tertiary" aria-hidden="true"><span class="caption"> </span></div>', 1), sa = e.from_html('<!> <div class="flex items-center justify-center gap-1.5 mt-3 text-muted-foreground" aria-hidden="true"><!> <span class="text-xs"> </span></div>', 1), la = e.from_html('<div class="card p-5 mt-5" role="region"><div class="flex flex-col gap-3"><div class="flex items-center justify-between"><span class="text-sm text-muted-foreground"> </span> <!></div> <div><!></div></div></div>');
|
|
59
59
|
function tt(V, t) {
|
|
60
60
|
e.push(t, !0);
|
|
61
|
-
let b = e.prop(t, "dataReady", 3, !1), R = e.prop(t, "availableTickets", 19, () => []),
|
|
61
|
+
let b = e.prop(t, "dataReady", 3, !1), R = e.prop(t, "availableTickets", 19, () => []), E = e.prop(t, "isMobileDrawer", 3, !1), s = e.prop(t, "isCancelled", 3, !1), u = e.prop(t, "purchasedTickets", 19, () => t.event.purchasedTickets || 0), c = e.prop(t, "waitlistEnabled", 3, !1), v = e.prop(t, "gated", 3, !1), n = e.prop(t, "onJoinWaitlist", 3, () => {
|
|
62
62
|
}), a = e.prop(t, "labels", 19, () => ({}));
|
|
63
|
-
const l = e.derived(() => R().filter((O) => O.visibility === 0)), z = e.derived(() => e.get(l).reduce((O, D) => O + D.remainingCapacity, 0)), h = e.derived(() => v() ||
|
|
63
|
+
const l = e.derived(() => R().filter((O) => O.visibility === 0)), z = e.derived(() => e.get(l).reduce((O, D) => O + D.remainingCapacity, 0)), h = e.derived(() => v() || u() >= e.get(z)), J = e.derived(() => e.get(l).length === 0), M = e.derived(() => e.get(l).length > 0 ? Math.min(...e.get(l).map((O) => O.price)) : 0);
|
|
64
64
|
var L = e.comment(), H = e.first_child(L);
|
|
65
65
|
{
|
|
66
66
|
var oe = (O) => {
|
|
@@ -69,21 +69,21 @@ function tt(V, t) {
|
|
|
69
69
|
var f = e.sibling(G, 2);
|
|
70
70
|
{
|
|
71
71
|
var _ = (p) => {
|
|
72
|
-
var
|
|
72
|
+
var d = $t(), m = e.child(d), P = e.child(m, !0);
|
|
73
73
|
e.reset(m);
|
|
74
74
|
var x = e.sibling(m, 2), y = e.child(x);
|
|
75
|
-
e.reset(x), e.reset(
|
|
75
|
+
e.reset(x), e.reset(d), e.template_effect(
|
|
76
76
|
(A, I) => {
|
|
77
|
-
e.set_attribute(
|
|
77
|
+
e.set_attribute(d, "aria-label", `Price: from ${A ?? ""}`), e.set_text(P, I), e.set_text(y, `+ ${(a().fees || "fees") ?? ""}`);
|
|
78
78
|
},
|
|
79
79
|
[
|
|
80
80
|
() => fe(e.get(M)),
|
|
81
81
|
() => fe(e.get(M))
|
|
82
82
|
]
|
|
83
|
-
), e.append(p,
|
|
83
|
+
), e.append(p, d);
|
|
84
84
|
}, B = (p) => {
|
|
85
|
-
var
|
|
86
|
-
e.template_effect(() => e.set_attribute(
|
|
85
|
+
var d = ea();
|
|
86
|
+
e.template_effect(() => e.set_attribute(d, "aria-label", a().loadingPrice || "Loading price")), e.append(p, d);
|
|
87
87
|
};
|
|
88
88
|
e.if(f, (p) => {
|
|
89
89
|
b() ? p(_) : p(B, !1);
|
|
@@ -94,12 +94,12 @@ function tt(V, t) {
|
|
|
94
94
|
{
|
|
95
95
|
var X = (p) => {
|
|
96
96
|
{
|
|
97
|
-
let
|
|
97
|
+
let d = e.derived(() => a().eventCancelled || "Event Cancelled");
|
|
98
98
|
ee(p, {
|
|
99
99
|
variant: "red-outline",
|
|
100
100
|
disabled: !0,
|
|
101
101
|
get "aria-label"() {
|
|
102
|
-
return e.get(
|
|
102
|
+
return e.get(d);
|
|
103
103
|
},
|
|
104
104
|
children: (m, P) => {
|
|
105
105
|
e.next();
|
|
@@ -111,12 +111,12 @@ function tt(V, t) {
|
|
|
111
111
|
}
|
|
112
112
|
}, K = (p) => {
|
|
113
113
|
{
|
|
114
|
-
let
|
|
114
|
+
let d = e.derived(() => a().salesEnded || "Sales Ended");
|
|
115
115
|
ee(p, {
|
|
116
116
|
variant: "red-outline",
|
|
117
117
|
disabled: !0,
|
|
118
118
|
get "aria-label"() {
|
|
119
|
-
return e.get(
|
|
119
|
+
return e.get(d);
|
|
120
120
|
},
|
|
121
121
|
children: (m, P) => {
|
|
122
122
|
e.next();
|
|
@@ -127,7 +127,7 @@ function tt(V, t) {
|
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
}, Q = (p) => {
|
|
130
|
-
var
|
|
130
|
+
var d = e.comment(), m = e.first_child(d);
|
|
131
131
|
{
|
|
132
132
|
var P = (y) => {
|
|
133
133
|
{
|
|
@@ -168,20 +168,20 @@ function tt(V, t) {
|
|
|
168
168
|
}
|
|
169
169
|
};
|
|
170
170
|
e.if(m, (y) => {
|
|
171
|
-
|
|
171
|
+
c() ? y(P) : y(x, !1);
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
|
-
e.append(p,
|
|
174
|
+
e.append(p, d);
|
|
175
175
|
}, ie = (p) => {
|
|
176
176
|
{
|
|
177
|
-
let
|
|
177
|
+
let d = e.derived(() => t.ticketType === 1 ? a().reserve || "Reserve a spot for this event" : a().getTickets || "Get tickets for this event");
|
|
178
178
|
ee(p, {
|
|
179
179
|
get onclick() {
|
|
180
180
|
return t.goToCheckout;
|
|
181
181
|
},
|
|
182
182
|
class: "px-6 py-3 text-base font-semibold",
|
|
183
183
|
get "aria-label"() {
|
|
184
|
-
return e.get(
|
|
184
|
+
return e.get(d);
|
|
185
185
|
},
|
|
186
186
|
children: (m, P) => {
|
|
187
187
|
e.next();
|
|
@@ -204,8 +204,8 @@ function tt(V, t) {
|
|
|
204
204
|
e.reset(o);
|
|
205
205
|
var _ = e.sibling(o, 2);
|
|
206
206
|
{
|
|
207
|
-
var B = (
|
|
208
|
-
Zt(
|
|
207
|
+
var B = (d) => {
|
|
208
|
+
Zt(d, {
|
|
209
209
|
get price() {
|
|
210
210
|
return e.get(M);
|
|
211
211
|
},
|
|
@@ -214,20 +214,20 @@ function tt(V, t) {
|
|
|
214
214
|
return R();
|
|
215
215
|
}
|
|
216
216
|
});
|
|
217
|
-
}, q = (
|
|
218
|
-
Yt(
|
|
217
|
+
}, q = (d) => {
|
|
218
|
+
Yt(d);
|
|
219
219
|
};
|
|
220
|
-
e.if(_, (
|
|
221
|
-
b() ?
|
|
220
|
+
e.if(_, (d) => {
|
|
221
|
+
b() ? d(B) : d(q, !1);
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
224
|
e.reset(G);
|
|
225
225
|
var C = e.sibling(G, 2), X = e.child(C);
|
|
226
226
|
{
|
|
227
|
-
var K = (
|
|
227
|
+
var K = (d) => {
|
|
228
228
|
{
|
|
229
229
|
let m = e.derived(() => a().eventCancelled || "Event Cancelled");
|
|
230
|
-
ee(
|
|
230
|
+
ee(d, {
|
|
231
231
|
size: "lg",
|
|
232
232
|
variant: "red-outline",
|
|
233
233
|
disabled: !0,
|
|
@@ -242,10 +242,10 @@ function tt(V, t) {
|
|
|
242
242
|
$$slots: { default: !0 }
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
|
-
}, Q = (
|
|
245
|
+
}, Q = (d) => {
|
|
246
246
|
{
|
|
247
247
|
let m = e.derived(() => a().salesEnded || "Sales Ended");
|
|
248
|
-
ee(
|
|
248
|
+
ee(d, {
|
|
249
249
|
size: "lg",
|
|
250
250
|
variant: "red-outline",
|
|
251
251
|
disabled: !0,
|
|
@@ -260,7 +260,7 @@ function tt(V, t) {
|
|
|
260
260
|
$$slots: { default: !0 }
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
|
-
}, ie = (
|
|
263
|
+
}, ie = (d) => {
|
|
264
264
|
var m = e.comment(), P = e.first_child(m);
|
|
265
265
|
{
|
|
266
266
|
var x = (A) => {
|
|
@@ -306,11 +306,11 @@ function tt(V, t) {
|
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
308
|
e.if(P, (A) => {
|
|
309
|
-
|
|
309
|
+
c() ? A(x) : A(y, !1);
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
|
-
e.append(
|
|
313
|
-
}, p = (
|
|
312
|
+
e.append(d, m);
|
|
313
|
+
}, p = (d) => {
|
|
314
314
|
var m = sa(), P = e.first_child(m);
|
|
315
315
|
{
|
|
316
316
|
let j = e.derived(() => t.ticketType === 1 ? a().reserveASpot || "Reserve a spot for this event" : a().getTickets || "Get tickets for this event");
|
|
@@ -333,10 +333,10 @@ function tt(V, t) {
|
|
|
333
333
|
var x = e.sibling(P, 2), y = e.child(x);
|
|
334
334
|
at(y, { size: 16, "aria-hidden": "true" });
|
|
335
335
|
var A = e.sibling(y, 2), I = e.child(A, !0);
|
|
336
|
-
e.reset(A), e.reset(x), e.template_effect(() => e.set_text(I, a().secureCheckout || "Secure checkout")), e.append(
|
|
336
|
+
e.reset(A), e.reset(x), e.template_effect(() => e.set_text(I, a().secureCheckout || "Secure checkout")), e.append(d, m);
|
|
337
337
|
};
|
|
338
|
-
e.if(X, (
|
|
339
|
-
s() ?
|
|
338
|
+
e.if(X, (d) => {
|
|
339
|
+
s() ? d(K) : e.get(J) ? d(Q, 1) : e.get(h) ? d(ie, 2) : d(p, !1);
|
|
340
340
|
});
|
|
341
341
|
}
|
|
342
342
|
e.reset(C), e.reset(Z), e.reset(D), e.template_effect(() => {
|
|
@@ -344,7 +344,7 @@ function tt(V, t) {
|
|
|
344
344
|
}), e.append(O, D);
|
|
345
345
|
};
|
|
346
346
|
e.if(H, (O) => {
|
|
347
|
-
|
|
347
|
+
E() ? O(oe) : O(me, !1);
|
|
348
348
|
});
|
|
349
349
|
}
|
|
350
350
|
e.append(V, L), e.pop();
|
|
@@ -352,7 +352,7 @@ function tt(V, t) {
|
|
|
352
352
|
var na = e.from_html('<aside><!> <!></aside> <div class="lg:hidden fixed bottom-0 left-0 right-0 z-50 bg-card border-t border-border shadow-xl" role="region"><!></div>', 1);
|
|
353
353
|
function oa(V, t) {
|
|
354
354
|
e.push(t, !0);
|
|
355
|
-
let b = e.prop(t, "dataReady", 3, !1), R = e.prop(t, "showtimes", 19, () => []),
|
|
355
|
+
let b = e.prop(t, "dataReady", 3, !1), R = e.prop(t, "showtimes", 19, () => []), E = e.prop(t, "availableTickets", 19, () => []), s = e.prop(t, "isSticky", 3, !1), u = e.prop(t, "sidebarLeft", 3, 0), c = e.prop(t, "isCancelled", 3, !1), v = e.prop(t, "waitlistEnabled", 3, !1), n = e.prop(t, "gated", 3, !1), a = e.prop(t, "onJoinWaitlist", 3, () => {
|
|
356
356
|
}), l = e.prop(t, "labels", 19, () => ({}));
|
|
357
357
|
var z = na(), h = e.first_child(z);
|
|
358
358
|
let J;
|
|
@@ -376,7 +376,7 @@ function oa(V, t) {
|
|
|
376
376
|
return t.ticketType;
|
|
377
377
|
},
|
|
378
378
|
get availableTickets() {
|
|
379
|
-
return
|
|
379
|
+
return E();
|
|
380
380
|
},
|
|
381
381
|
get goToCheckout() {
|
|
382
382
|
return t.goToCheckout;
|
|
@@ -385,7 +385,7 @@ function oa(V, t) {
|
|
|
385
385
|
return b();
|
|
386
386
|
},
|
|
387
387
|
get isCancelled() {
|
|
388
|
-
return
|
|
388
|
+
return c();
|
|
389
389
|
},
|
|
390
390
|
get waitlistEnabled() {
|
|
391
391
|
return v();
|
|
@@ -409,7 +409,7 @@ function oa(V, t) {
|
|
|
409
409
|
return t.ticketType;
|
|
410
410
|
},
|
|
411
411
|
get availableTickets() {
|
|
412
|
-
return
|
|
412
|
+
return E();
|
|
413
413
|
},
|
|
414
414
|
get goToCheckout() {
|
|
415
415
|
return t.goToCheckout;
|
|
@@ -418,7 +418,7 @@ function oa(V, t) {
|
|
|
418
418
|
return b();
|
|
419
419
|
},
|
|
420
420
|
get isCancelled() {
|
|
421
|
-
return
|
|
421
|
+
return c();
|
|
422
422
|
},
|
|
423
423
|
get waitlistEnabled() {
|
|
424
424
|
return v();
|
|
@@ -434,14 +434,14 @@ function oa(V, t) {
|
|
|
434
434
|
return l();
|
|
435
435
|
}
|
|
436
436
|
}), e.reset(H), e.template_effect(() => {
|
|
437
|
-
e.set_class(h, 1, `hidden lg:flex w-80 flex-col transition-all duration-200 ${s() ? "fixed top-5 max-h-[calc(100vh-40px)] overflow-y-auto" : "relative max-h-none overflow-visible"}`), e.set_attribute(h, "aria-label", l().ariaEventBooking || "Event booking"), J = e.set_style(h, "", J, { left: s() ? `${
|
|
437
|
+
e.set_class(h, 1, `hidden lg:flex w-80 flex-col transition-all duration-200 ${s() ? "fixed top-5 max-h-[calc(100vh-40px)] overflow-y-auto" : "relative max-h-none overflow-visible"}`), e.set_attribute(h, "aria-label", l().ariaEventBooking || "Event booking"), J = e.set_style(h, "", J, { left: s() ? `${u()}px` : "auto" }), e.set_attribute(H, "aria-label", l().ariaGetTickets || "Get tickets");
|
|
438
438
|
}), e.append(V, z), e.pop();
|
|
439
439
|
}
|
|
440
440
|
var da = e.from_html('<p class="text-sm text-muted-foreground py-6 text-center"> </p>'), ca = e.from_html('<div class="mb-6 last:mb-0"><!> <div class="space-y-3"></div></div>'), va = e.from_html('<div class="space-y-3"></div>'), ua = e.from_html('<div class="mt-4"><!></div>'), ga = e.from_html('<div class="mt-4 pt-4 border-t border-default"><!></div>'), fa = e.from_html('<div class="max-h-[70vh] overflow-y-auto px-1"><!> <!> <!> <!></div>'), ma = e.from_html("<!> <!>", 1), pa = e.from_html("<!> <!>", 1), ha = e.from_html("<!> <!>", 1);
|
|
441
441
|
function _a(V, t) {
|
|
442
442
|
e.push(t, !0);
|
|
443
443
|
let b = e.prop(t, "show", 15, !1), R = e.prop(t, "onClose", 3, () => {
|
|
444
|
-
}),
|
|
444
|
+
}), E = e.prop(t, "onPromoApply", 3, void 0), s = e.prop(t, "onPromoRemove", 3, void 0), u = e.prop(t, "submitting", 3, !1), c = e.prop(t, "labels", 19, () => ({})), v = e.state(e.proxy({})), n = e.state(e.proxy({})), a = e.state(e.proxy(Ie()));
|
|
445
445
|
e.user_effect(() => {
|
|
446
446
|
t.event?.id, b() || (e.set(v, {}, !0), e.set(n, {}, !0), e.set(a, Ie(), !0));
|
|
447
447
|
});
|
|
@@ -461,12 +461,12 @@ function _a(V, t) {
|
|
|
461
461
|
const K = C.isDonation || C.ticketType === 2, Q = K ? parseFloat(e.get(n)[C.id]) || 0 : C.price, ie = K ? 0 : C.fee;
|
|
462
462
|
let p = 0;
|
|
463
463
|
e.get(a).isApplied && e.get(a).discountAmount > 0 && !K && (e.get(a).discountTicketIds.length === 0 || e.get(a).discountTicketIds.includes(C.id)) && (e.get(a).discountType === "%" ? p = Q * (e.get(a).discountAmount / 100) : e.get(a).discountType === "$" && (p = Math.min(e.get(a).discountAmount, Q)));
|
|
464
|
-
const
|
|
464
|
+
const d = Math.max(0, Q - p), m = d * X, P = ie * X;
|
|
465
465
|
o.push({
|
|
466
466
|
ticketId: Be(C.id),
|
|
467
467
|
ticketName: C.name,
|
|
468
468
|
quantity: X,
|
|
469
|
-
unitPrice:
|
|
469
|
+
unitPrice: d,
|
|
470
470
|
fee: ie,
|
|
471
471
|
subtotal: m
|
|
472
472
|
}), f += m, _ += P, B += p * X;
|
|
@@ -489,7 +489,7 @@ function _a(V, t) {
|
|
|
489
489
|
e.set(n, { ...e.get(n), [o]: f }, !0);
|
|
490
490
|
}
|
|
491
491
|
function me(o) {
|
|
492
|
-
|
|
492
|
+
E() && (e.set(
|
|
493
493
|
a,
|
|
494
494
|
{
|
|
495
495
|
...e.get(a),
|
|
@@ -498,7 +498,7 @@ function _a(V, t) {
|
|
|
498
498
|
hint: ""
|
|
499
499
|
},
|
|
500
500
|
!0
|
|
501
|
-
),
|
|
501
|
+
), E()(o).then((f) => {
|
|
502
502
|
e.set(a, f, !0);
|
|
503
503
|
}).catch(() => {
|
|
504
504
|
e.set(
|
|
@@ -526,7 +526,7 @@ function _a(V, t) {
|
|
|
526
526
|
b(!1), R()();
|
|
527
527
|
}
|
|
528
528
|
function G() {
|
|
529
|
-
if (!e.get(M) ||
|
|
529
|
+
if (!e.get(M) || u()) return;
|
|
530
530
|
const o = {}, f = {};
|
|
531
531
|
for (const _ of e.get(J).lines) {
|
|
532
532
|
const B = Number(_.ticketId);
|
|
@@ -558,7 +558,7 @@ function _a(V, t) {
|
|
|
558
558
|
children: (C, X) => {
|
|
559
559
|
var K = pa(), Q = e.first_child(K);
|
|
560
560
|
Pt(Q, {
|
|
561
|
-
children: (p,
|
|
561
|
+
children: (p, d) => {
|
|
562
562
|
var m = fa(), P = e.child(m);
|
|
563
563
|
$e(P, {
|
|
564
564
|
size: "lg",
|
|
@@ -567,7 +567,7 @@ function _a(V, t) {
|
|
|
567
567
|
children: (T, g) => {
|
|
568
568
|
e.next();
|
|
569
569
|
var k = e.text();
|
|
570
|
-
e.template_effect(() => e.set_text(k,
|
|
570
|
+
e.template_effect(() => e.set_text(k, c().selectTickets || "Select tickets")), e.append(T, k);
|
|
571
571
|
},
|
|
572
572
|
$$slots: { default: !0 }
|
|
573
573
|
});
|
|
@@ -575,7 +575,7 @@ function _a(V, t) {
|
|
|
575
575
|
{
|
|
576
576
|
var y = (T) => {
|
|
577
577
|
var g = da(), k = e.child(g, !0);
|
|
578
|
-
e.reset(g), e.template_effect(() => e.set_text(k,
|
|
578
|
+
e.reset(g), e.template_effect(() => e.set_text(k, c().noTicketsAvailable || "No tickets are currently available.")), e.append(T, g);
|
|
579
579
|
}, A = (T) => {
|
|
580
580
|
var g = e.comment(), k = e.first_child(g);
|
|
581
581
|
e.each(k, 17, () => Object.entries(e.get(z)), ([W, te]) => W, (W, te) => {
|
|
@@ -628,7 +628,7 @@ function _a(V, t) {
|
|
|
628
628
|
return e.get(le).discountedPrice;
|
|
629
629
|
},
|
|
630
630
|
get labels() {
|
|
631
|
-
return
|
|
631
|
+
return c();
|
|
632
632
|
}
|
|
633
633
|
});
|
|
634
634
|
}
|
|
@@ -662,7 +662,7 @@ function _a(V, t) {
|
|
|
662
662
|
return e.get(te).discountedPrice;
|
|
663
663
|
},
|
|
664
664
|
get labels() {
|
|
665
|
-
return
|
|
665
|
+
return c();
|
|
666
666
|
}
|
|
667
667
|
});
|
|
668
668
|
}
|
|
@@ -683,12 +683,12 @@ function _a(V, t) {
|
|
|
683
683
|
onApply: me,
|
|
684
684
|
onRemove: O,
|
|
685
685
|
get labels() {
|
|
686
|
-
return
|
|
686
|
+
return c();
|
|
687
687
|
}
|
|
688
688
|
}), e.reset(g), e.append(T, g);
|
|
689
689
|
};
|
|
690
690
|
e.if(j, (T) => {
|
|
691
|
-
|
|
691
|
+
E() && e.get(l).length > 0 && T(N);
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
694
|
var U = e.sibling(j, 2);
|
|
@@ -701,7 +701,7 @@ function _a(V, t) {
|
|
|
701
701
|
},
|
|
702
702
|
mode: "totals",
|
|
703
703
|
get labels() {
|
|
704
|
-
return
|
|
704
|
+
return c();
|
|
705
705
|
}
|
|
706
706
|
}), e.reset(g), e.append(T, g);
|
|
707
707
|
};
|
|
@@ -715,24 +715,24 @@ function _a(V, t) {
|
|
|
715
715
|
});
|
|
716
716
|
var ie = e.sibling(Q, 2);
|
|
717
717
|
Ct(ie, {
|
|
718
|
-
children: (p,
|
|
718
|
+
children: (p, d) => {
|
|
719
719
|
var m = ma(), P = e.first_child(m);
|
|
720
720
|
ee(P, {
|
|
721
721
|
variant: "alternative",
|
|
722
722
|
onclick: Z,
|
|
723
723
|
get disabled() {
|
|
724
|
-
return
|
|
724
|
+
return u();
|
|
725
725
|
},
|
|
726
726
|
children: (y, A) => {
|
|
727
727
|
e.next();
|
|
728
728
|
var I = e.text();
|
|
729
|
-
e.template_effect(() => e.set_text(I,
|
|
729
|
+
e.template_effect(() => e.set_text(I, c().cancel || "Cancel")), e.append(y, I);
|
|
730
730
|
},
|
|
731
731
|
$$slots: { default: !0 }
|
|
732
732
|
});
|
|
733
733
|
var x = e.sibling(P, 2);
|
|
734
734
|
{
|
|
735
|
-
let y = e.derived(() => !e.get(M) ||
|
|
735
|
+
let y = e.derived(() => !e.get(M) || u());
|
|
736
736
|
ee(x, {
|
|
737
737
|
variant: "default",
|
|
738
738
|
class: "flex-1",
|
|
@@ -745,16 +745,16 @@ function _a(V, t) {
|
|
|
745
745
|
{
|
|
746
746
|
var U = (g) => {
|
|
747
747
|
var k = e.text();
|
|
748
|
-
e.template_effect(() => e.set_text(k,
|
|
748
|
+
e.template_effect(() => e.set_text(k, c().processing || "Processing…")), e.append(g, k);
|
|
749
749
|
}, $ = (g) => {
|
|
750
750
|
var k = e.text();
|
|
751
|
-
e.template_effect(() => e.set_text(k,
|
|
751
|
+
e.template_effect(() => e.set_text(k, c().getTickets || "Get tickets")), e.append(g, k);
|
|
752
752
|
}, T = (g) => {
|
|
753
753
|
var k = e.text();
|
|
754
|
-
e.template_effect((W) => e.set_text(k, `${(
|
|
754
|
+
e.template_effect((W) => e.set_text(k, `${(c().checkout || "Checkout") ?? ""} · ${W ?? ""}`), [() => fe(e.get(J).total)]), e.append(g, k);
|
|
755
755
|
};
|
|
756
756
|
e.if(N, (g) => {
|
|
757
|
-
|
|
757
|
+
u() ? g(U) : e.get(L) ? g($, 1) : g(T, !1);
|
|
758
758
|
});
|
|
759
759
|
}
|
|
760
760
|
e.append(A, j);
|
|
@@ -777,24 +777,24 @@ var ba = e.from_html('<section class="flex flex-col gap-3" aria-labelledby="disc
|
|
|
777
777
|
function xa(V, t) {
|
|
778
778
|
e.push(t, !0);
|
|
779
779
|
let b = e.prop(t, "disclaimer", 19, () => []), R = e.prop(t, "labels", 19, () => ({}));
|
|
780
|
-
const
|
|
781
|
-
var s = ba(),
|
|
782
|
-
e.reset(
|
|
783
|
-
var v = e.sibling(
|
|
780
|
+
const E = e.derived(() => Array.isArray(b()) ? b().join(" ") : b());
|
|
781
|
+
var s = ba(), u = e.child(s), c = e.child(u, !0);
|
|
782
|
+
e.reset(u);
|
|
783
|
+
var v = e.sibling(u, 2), n = e.child(v, !0);
|
|
784
784
|
e.reset(v), e.reset(s), e.template_effect(() => {
|
|
785
|
-
e.set_text(
|
|
785
|
+
e.set_text(c, R().disclaimer || "Disclaimer"), e.set_text(n, e.get(E));
|
|
786
786
|
}), e.append(V, s), e.pop();
|
|
787
787
|
}
|
|
788
788
|
var ya = e.from_html('<span class="tab-indicator absolute bottom-0 left-0 right-0 h-0.5 bg-bg-primary" aria-hidden="true"></span>'), ka = e.from_html('<button type="button" role="tab"> <!></button>'), wa = e.from_html('<div class="tab-container flex justify-start gap-1 sm:gap-2 border-b border-border" role="tablist" aria-label="Page sections"></div>');
|
|
789
789
|
function Ta(V, t) {
|
|
790
790
|
e.push(t, !0);
|
|
791
|
-
let b = e.prop(t, "items", 19, () => []), R = e.state(e.proxy(b()[0]?.id || "")),
|
|
791
|
+
let b = e.prop(t, "items", 19, () => []), R = e.state(e.proxy(b()[0]?.id || "")), E;
|
|
792
792
|
function s(v) {
|
|
793
793
|
e.set(R, v, !0);
|
|
794
794
|
const n = document.getElementById(v);
|
|
795
795
|
n && n.scrollIntoView({ behavior: "smooth" });
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function u(v, n) {
|
|
798
798
|
let a = n;
|
|
799
799
|
if (v.key === "ArrowRight")
|
|
800
800
|
v.preventDefault(), a = (n + 1) % b().length;
|
|
@@ -810,7 +810,7 @@ function Ta(V, t) {
|
|
|
810
810
|
s(l), document.getElementById(`tab-${l}`)?.focus();
|
|
811
811
|
}
|
|
812
812
|
it(() => {
|
|
813
|
-
|
|
813
|
+
E = new IntersectionObserver(
|
|
814
814
|
(v) => {
|
|
815
815
|
v.forEach((n) => {
|
|
816
816
|
n.isIntersecting && e.set(R, n.target.id, !0);
|
|
@@ -819,13 +819,13 @@ function Ta(V, t) {
|
|
|
819
819
|
{ rootMargin: "-20% 0px -70% 0px" }
|
|
820
820
|
), b().forEach((v) => {
|
|
821
821
|
const n = document.getElementById(v.id);
|
|
822
|
-
n &&
|
|
822
|
+
n && E.observe(n);
|
|
823
823
|
});
|
|
824
824
|
}), rt(() => {
|
|
825
|
-
|
|
825
|
+
E && E.disconnect();
|
|
826
826
|
});
|
|
827
|
-
var
|
|
828
|
-
e.each(
|
|
827
|
+
var c = wa();
|
|
828
|
+
e.each(c, 21, b, e.index, (v, n, a) => {
|
|
829
829
|
var l = ka();
|
|
830
830
|
let z;
|
|
831
831
|
var h = e.child(l), J = e.sibling(h);
|
|
@@ -840,15 +840,15 @@ function Ta(V, t) {
|
|
|
840
840
|
}
|
|
841
841
|
e.reset(l), e.template_effect(() => {
|
|
842
842
|
z = e.set_class(l, 1, "tab-button py-3 px-3 sm:px-4 text-sm sm:text-base font-medium transition-colors relative text-muted-foreground:outline-brand-primary svelte-3lsv1m", null, z, { active: e.get(R) === e.get(n).id }), e.set_attribute(l, "aria-selected", e.get(R) === e.get(n).id), e.set_attribute(l, "aria-controls", e.get(n).id), e.set_attribute(l, "tabindex", e.get(R) === e.get(n).id ? 0 : -1), e.set_attribute(l, "id", `tab-${e.get(n).id ?? ""}`), e.set_text(h, `${e.get(n).label ?? ""} `);
|
|
843
|
-
}), e.delegated("click", l, () => s(e.get(n).id)), e.delegated("keydown", l, (L) =>
|
|
844
|
-
}), e.reset(
|
|
843
|
+
}), e.delegated("click", l, () => s(e.get(n).id)), e.delegated("keydown", l, (L) => u(L, a)), e.append(v, l);
|
|
844
|
+
}), e.reset(c), e.append(V, c), e.pop();
|
|
845
845
|
}
|
|
846
846
|
e.delegate(["click", "keydown"]);
|
|
847
847
|
const We = Bt("EventDetailsView");
|
|
848
|
-
var Pa = e.from_html('<div class="flex items-center justify-center py-12" role="status" aria-live="polite"><p class="loading-text svelte-abxi04"> </p></div>'), Ca = e.from_html('<div class="text-center py-8" role="alert"><p class="error-text mb-2 svelte-abxi04"> </p> <button class="go-back-btn mt-4 px-4 py-2 rounded-lg svelte-abxi04"> </button></div>'),
|
|
848
|
+
var Pa = e.from_html('<div class="flex items-center justify-center py-12" role="status" aria-live="polite"><p class="loading-text svelte-abxi04"> </p></div>'), Ca = e.from_html('<div class="text-center py-8" role="alert"><p class="error-text mb-2 svelte-abxi04"> </p> <button class="go-back-btn mt-4 px-4 py-2 rounded-lg svelte-abxi04"> </button></div>'), Sa = e.from_html('<div class="locked-overlay absolute inset-0 z-20 flex flex-col items-center justify-center bg-card/95 rounded-lg svelte-abxi04"><div class="locked-content text-center p-8"><div class="locked-icon-wrapper mx-auto mb-4 svelte-abxi04"><!></div> <h2 class="locked-title text-xl font-semibold mb-2 svelte-abxi04"> </h2> <p class="locked-description text-sm mb-6 svelte-abxi04"> </p> <button class="unlock-btn px-6 py-3 rounded-lg font-medium svelte-abxi04"> </button></div></div>'), Ea = e.from_html('<div class="cancelled-banner mb-6 p-4 rounded-lg svelte-abxi04" role="alert" aria-live="assertive"><div class="flex items-start gap-3"><div class="cancelled-icon-wrapper shrink-0 mt-0.5" aria-hidden="true"><!></div> <div class="cancelled-content svelte-abxi04"><h3 class="cancelled-title text-base font-semibold mb-1 svelte-abxi04"> </h3> <p class="cancelled-message text-sm mb-2 svelte-abxi04"> </p> <p class="cancelled-refund text-sm svelte-abxi04"><strong class="svelte-abxi04"> </strong> </p></div></div></div>'), Aa = e.from_html('<div class="hidden lg:block w-80 shrink-0" aria-hidden="true"></div>'), Ia = e.from_html('<section id="featuring" class="my-8" aria-labelledby="featuring-title"><h2 id="featuring-title" class="section-title font-medium text-2xl mb-4 svelte-abxi04"> </h2> <!></section>'), Da = e.from_html('<section id="faqs" class="my-8" aria-label="Frequently asked questions"><!></section>'), Fa = e.from_html('<section id="disclaimers" class="my-8" aria-label="Disclaimers"><!></section>'), Ra = e.from_html('<div class="flex flex-col w-full relative"><!> <!> <div><div class="flex-1 relative"><img class="w-full rounded-lg object-contain bg-bg-secondary svelte-abxi04"/> <button class="bg-bg-secondary rounded-full size-8 sm:size-10 flex items-center justify-center absolute top-3 left-3 z-10"><!></button></div> <!> <!></div> <div><div class="flex-1"><div class="my-3 px-0 sm:my-5 sm:px-4"><!></div> <div id="about" class="my-8"><!></div> <!> <!> <!></div> <div class="w-full sm:w-80 flex flex-col"></div></div></div>'), La = e.from_html('<div class="px-5 sm:px-10 py-12 bg-card"><h1 class="sr-only svelte-abxi04"> </h1> <!></div> <!> <!> <!>', 1);
|
|
849
849
|
function Qa(V, t) {
|
|
850
850
|
e.push(t, !0);
|
|
851
|
-
let b = e.prop(t, "organizationId", 3, ""), R = e.prop(t, "venueId", 3, ""),
|
|
851
|
+
let b = e.prop(t, "organizationId", 3, ""), R = e.prop(t, "venueId", 3, ""), E = e.prop(t, "initialEventData", 3, null), s = e.prop(t, "labels", 19, () => ({})), u = e.state(null), c = e.state(null), v = e.state(!0), n = e.state(null), a = e.state(!1), l = e.state(e.proxy([])), z = e.state(e.proxy({})), h = e.state(!1), J = e.state(!1), M = e.state(void 0), L = e.state(void 0), H = e.state(!1), oe = e.state(0), me = e.state(0), O = e.state(0), D = e.state(!1), Z = e.state(""), G = e.state(""), o = e.state(!1), f = e.state(!1), _ = e.state(!1);
|
|
852
852
|
function B(i) {
|
|
853
853
|
return typeof window > "u" ? !1 : JSON.parse(
|
|
854
854
|
sessionStorage.getItem("authedEvents") || "[]"
|
|
@@ -876,15 +876,15 @@ function Qa(V, t) {
|
|
|
876
876
|
}
|
|
877
877
|
}
|
|
878
878
|
}
|
|
879
|
-
let X = e.derived(() => e.get(
|
|
880
|
-
function
|
|
879
|
+
let X = e.derived(() => e.get(c)?.hasPassword === !0 || !!e.get(c)?.password && String(e.get(c).password).trim() !== ""), K = e.derived(() => e.get(X) && !e.get(f) && !B(t.eventId)), Q = e.derived(() => e.get(u)?.status?.toLowerCase() === "cancelled" || e.get(u)?.status?.toLowerCase() === "canceled"), ie = e.derived(() => e.get(c)?.waitlistEnabled === !0), p = e.state(!1);
|
|
880
|
+
function d() {
|
|
881
881
|
e.set(_, !0);
|
|
882
882
|
}
|
|
883
883
|
function m(i) {
|
|
884
884
|
return Array.isArray(i) ? i.filter((r) => r.published === void 0 && r.isPublished === void 0 ? !0 : r.published === !0 || r.isPublished === !0) : [];
|
|
885
885
|
}
|
|
886
886
|
const P = (i) => i ? Array.isArray(i) ? i.map((r) => typeof r == "string" ? { question: "", answer: r.trim() } : r) : [{ question: "", answer: String(i).trim() }] : [];
|
|
887
|
-
let x = e.derived(() => e.get(
|
|
887
|
+
let x = e.derived(() => e.get(c)?.venue || {}), y = e.derived(() => P(e.get(x).faq)), A = e.derived(() => e.get(x).disclaimer || ""), I = e.derived(() => e.get(A) ? e.get(A).split(new RegExp("(?<=[.?!])\\s+(?=[A-Z])", "g")).map((i) => i.trim()).filter(Boolean) : []), j = e.derived(() => e.get(u)?.performers && e.get(u).performers.length > 0), N = e.derived(() => [
|
|
888
888
|
{
|
|
889
889
|
id: "about",
|
|
890
890
|
label: s().tabAboutTheShow || "About the show"
|
|
@@ -899,7 +899,7 @@ function Qa(V, t) {
|
|
|
899
899
|
label: s().tabDisclaimers || "Disclaimers"
|
|
900
900
|
}
|
|
901
901
|
] : []
|
|
902
|
-
]), U = e.derived(() => e.get(
|
|
902
|
+
]), U = e.derived(() => e.get(u)?.eventTicketingType ?? e.get(u)?.ticketType ?? 0), $ = e.derived(() => e.get(u)?.availableTickets || []);
|
|
903
903
|
function T() {
|
|
904
904
|
if (t.onNavigateBack)
|
|
905
905
|
t.onNavigateBack();
|
|
@@ -910,7 +910,7 @@ function Qa(V, t) {
|
|
|
910
910
|
Ye(r, {});
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
let g = e.state(!1), k = e.state(!1), W = e.derived(() => e.get(
|
|
913
|
+
let g = e.state(!1), k = e.state(!1), W = e.derived(() => e.get(c) ? jt(e.get(c)) : null);
|
|
914
914
|
function te() {
|
|
915
915
|
e.set(g, !0);
|
|
916
916
|
}
|
|
@@ -950,12 +950,12 @@ function Qa(V, t) {
|
|
|
950
950
|
donationAmounts: i.donationAmounts,
|
|
951
951
|
promocode: i.promocode,
|
|
952
952
|
promoDiscountAmount: i.promoDiscountAmount,
|
|
953
|
-
tickets: e.get(W).tickets.map((
|
|
954
|
-
ID:
|
|
955
|
-
name:
|
|
956
|
-
price:
|
|
957
|
-
type: String(
|
|
958
|
-
visibility: String(
|
|
953
|
+
tickets: e.get(W).tickets.map((S) => ({
|
|
954
|
+
ID: S.id,
|
|
955
|
+
name: S.name,
|
|
956
|
+
price: S.price,
|
|
957
|
+
type: String(S.ticketType || 0),
|
|
958
|
+
visibility: String(S.isHidden ? 1 : 0),
|
|
959
959
|
salesChannel: "0"
|
|
960
960
|
}))
|
|
961
961
|
});
|
|
@@ -970,10 +970,10 @@ function Qa(V, t) {
|
|
|
970
970
|
return;
|
|
971
971
|
}
|
|
972
972
|
if (e.set(g, !1), t.onNavigateToCart)
|
|
973
|
-
t.onNavigateToCart(t.eventId, Ke(e.get(
|
|
973
|
+
t.onNavigateToCart(t.eventId, Ke(e.get(u)?.name || "event"), e.get(c));
|
|
974
974
|
else {
|
|
975
|
-
const
|
|
976
|
-
|
|
975
|
+
const S = new URLSearchParams(window.location.search);
|
|
976
|
+
S.set("event_id", t.eventId), S.set("subroute", "cart"), S.set("slug", Ke(e.get(u)?.name || "event")), Ye(`/?${S.toString()}`, { noScroll: !1 });
|
|
977
977
|
}
|
|
978
978
|
} finally {
|
|
979
979
|
e.set(k, !1);
|
|
@@ -1008,18 +1008,18 @@ function Qa(V, t) {
|
|
|
1008
1008
|
}
|
|
1009
1009
|
e.set(v, !0), e.set(n, null);
|
|
1010
1010
|
try {
|
|
1011
|
-
if (
|
|
1012
|
-
if (e.set(
|
|
1013
|
-
e.set(
|
|
1011
|
+
if (E()) {
|
|
1012
|
+
if (e.set(c, E()), !e.get(h)) return;
|
|
1013
|
+
e.set(u, Ze(e.get(c)), !0), e.set(l, m(e.get(c)?.showtimes || []), !0);
|
|
1014
1014
|
} else
|
|
1015
1015
|
try {
|
|
1016
|
-
if (e.set(
|
|
1017
|
-
e.set(
|
|
1016
|
+
if (e.set(c, await Lt(t.eventId), !0), !e.get(h)) return;
|
|
1017
|
+
e.set(u, Ze(e.get(c)), !0), e.set(l, m(e.get(c)?.showtimes || []), !0);
|
|
1018
1018
|
} catch (r) {
|
|
1019
1019
|
We.error("Event fetch failed:", r), e.set(n, s().failedToLoadEvent || "Failed to load event", !0), e.set(v, !1);
|
|
1020
1020
|
return;
|
|
1021
1021
|
}
|
|
1022
|
-
const i = e.get(
|
|
1022
|
+
const i = e.get(u)?.venueID || R() || null;
|
|
1023
1023
|
if (i)
|
|
1024
1024
|
try {
|
|
1025
1025
|
const r = await qt(i);
|
|
@@ -1039,7 +1039,7 @@ function Qa(V, t) {
|
|
|
1039
1039
|
if (!e.get(h)) return;
|
|
1040
1040
|
We.error("Error fetching venue data:", r);
|
|
1041
1041
|
}
|
|
1042
|
-
e.get(h) && (e.set(a, !0), e.get(
|
|
1042
|
+
e.get(h) && (e.set(a, !0), (e.get(c)?.hasPassword === !0 || e.get(c)?.password && String(e.get(c).password).trim() !== "") && (B(t.eventId) ? e.set(f, !0) : e.set(D, !0)));
|
|
1043
1043
|
} catch (i) {
|
|
1044
1044
|
e.get(h) && (We.error("Error loading event:", i), e.set(n, i.message || s().failedToLoadEvent || "Failed to load event", !0));
|
|
1045
1045
|
} finally {
|
|
@@ -1052,7 +1052,7 @@ function Qa(V, t) {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
it(async () => {
|
|
1054
1054
|
if (e.set(h, !0), _e(), window.addEventListener("resize", _e), window.addEventListener("scroll", be), await Ce(), t.eventId) {
|
|
1055
|
-
const i = await
|
|
1055
|
+
const i = await St(t.eventId);
|
|
1056
1056
|
e.get(h) && e.set(p, i.gated, !0);
|
|
1057
1057
|
}
|
|
1058
1058
|
if (e.get(L) && e.get(h)) {
|
|
@@ -1068,20 +1068,20 @@ function Qa(V, t) {
|
|
|
1068
1068
|
var st = e.sibling(ce, 2);
|
|
1069
1069
|
{
|
|
1070
1070
|
var lt = (i) => {
|
|
1071
|
-
var r = Pa(),
|
|
1072
|
-
e.reset(
|
|
1071
|
+
var r = Pa(), S = e.child(r), ge = e.child(S, !0);
|
|
1072
|
+
e.reset(S), e.reset(r), e.template_effect(() => e.set_text(ge, s().loadingEvent || "Loading event...")), e.append(i, r);
|
|
1073
1073
|
}, nt = (i) => {
|
|
1074
|
-
var r = Ca(),
|
|
1075
|
-
e.reset(
|
|
1076
|
-
var ne = e.sibling(
|
|
1074
|
+
var r = Ca(), S = e.child(r), ge = e.child(S);
|
|
1075
|
+
e.reset(S);
|
|
1076
|
+
var ne = e.sibling(S, 2), xe = e.child(ne, !0);
|
|
1077
1077
|
e.reset(ne), e.reset(r), e.template_effect(() => {
|
|
1078
1078
|
e.set_text(ge, `${(s().errorPrefix || "Error:") ?? ""} ${e.get(n) ?? ""}`), e.set_attribute(ne, "aria-label", s().goBackToCalendar || "Go back to calendar"), e.set_text(xe, s().goBack || "Go back");
|
|
1079
1079
|
}), e.delegated("click", ne, T), e.append(i, r);
|
|
1080
1080
|
}, ot = (i) => {
|
|
1081
|
-
var r = Ra(),
|
|
1081
|
+
var r = Ra(), S = e.child(r);
|
|
1082
1082
|
{
|
|
1083
1083
|
var ge = (w) => {
|
|
1084
|
-
var F =
|
|
1084
|
+
var F = Sa(), Y = e.child(F), ae = e.child(Y), ye = e.child(ae);
|
|
1085
1085
|
at(ye, { class: "w-12 h-12 text-muted-foreground" }), e.reset(ae);
|
|
1086
1086
|
var he = e.sibling(ae, 2), ke = e.child(he, !0);
|
|
1087
1087
|
e.reset(he);
|
|
@@ -1092,14 +1092,14 @@ function Qa(V, t) {
|
|
|
1092
1092
|
e.set_text(ke, s().passwordProtectedTitle || "This event is password protected"), e.set_text(Te, s().passwordProtectedDescription || "Enter the event password to view details and purchase tickets."), e.set_text(Ae, s().enterPassword || "Enter password");
|
|
1093
1093
|
}), e.delegated("click", Pe, () => e.set(D, !0)), e.append(w, F);
|
|
1094
1094
|
};
|
|
1095
|
-
e.if(
|
|
1095
|
+
e.if(S, (w) => {
|
|
1096
1096
|
e.get(K) && w(ge);
|
|
1097
1097
|
});
|
|
1098
1098
|
}
|
|
1099
|
-
var ne = e.sibling(
|
|
1099
|
+
var ne = e.sibling(S, 2);
|
|
1100
1100
|
{
|
|
1101
1101
|
var xe = (w) => {
|
|
1102
|
-
var F =
|
|
1102
|
+
var F = Ea(), Y = e.child(F), ae = e.child(Y), ye = e.child(ae);
|
|
1103
1103
|
Wt(ye, { size: 24, class: "cancelled-icon" }), e.reset(ae);
|
|
1104
1104
|
var he = e.sibling(ae, 2), ke = e.child(he), we = e.child(ke, !0);
|
|
1105
1105
|
e.reset(ke);
|
|
@@ -1118,12 +1118,12 @@ function Qa(V, t) {
|
|
|
1118
1118
|
}
|
|
1119
1119
|
var ve = e.sibling(ne, 2);
|
|
1120
1120
|
let Ne;
|
|
1121
|
-
var
|
|
1121
|
+
var Se = e.child(ve), Re = e.child(Se), Ee = e.sibling(Re, 2), ct = e.child(Ee);
|
|
1122
1122
|
zt(ct, {
|
|
1123
1123
|
class: "size-3.5 sm:size-5 text-white",
|
|
1124
1124
|
"aria-hidden": "true"
|
|
1125
|
-
}), e.reset(
|
|
1126
|
-
var Je = e.sibling(
|
|
1125
|
+
}), e.reset(Ee), e.reset(Se), e.bind_this(Se, (w) => e.set(L, w), () => e.get(L));
|
|
1126
|
+
var Je = e.sibling(Se, 2);
|
|
1127
1127
|
{
|
|
1128
1128
|
var vt = (w) => {
|
|
1129
1129
|
var F = Aa();
|
|
@@ -1136,7 +1136,7 @@ function Qa(V, t) {
|
|
|
1136
1136
|
var ut = e.sibling(Je, 2);
|
|
1137
1137
|
oa(ut, {
|
|
1138
1138
|
get event() {
|
|
1139
|
-
return e.get(
|
|
1139
|
+
return e.get(u);
|
|
1140
1140
|
},
|
|
1141
1141
|
get showtimes() {
|
|
1142
1142
|
return e.get(l);
|
|
@@ -1166,7 +1166,7 @@ function Qa(V, t) {
|
|
|
1166
1166
|
get gated() {
|
|
1167
1167
|
return e.get(p);
|
|
1168
1168
|
},
|
|
1169
|
-
onJoinWaitlist:
|
|
1169
|
+
onJoinWaitlist: d,
|
|
1170
1170
|
get labels() {
|
|
1171
1171
|
return s();
|
|
1172
1172
|
}
|
|
@@ -1185,7 +1185,7 @@ function Qa(V, t) {
|
|
|
1185
1185
|
Xe(ft, {
|
|
1186
1186
|
ShowImage: "",
|
|
1187
1187
|
get description() {
|
|
1188
|
-
return e.get(
|
|
1188
|
+
return e.get(u).description;
|
|
1189
1189
|
},
|
|
1190
1190
|
performers: [],
|
|
1191
1191
|
get title() {
|
|
@@ -1205,7 +1205,7 @@ function Qa(V, t) {
|
|
|
1205
1205
|
ShowImage: "",
|
|
1206
1206
|
description: "",
|
|
1207
1207
|
get performers() {
|
|
1208
|
-
return e.get(
|
|
1208
|
+
return e.get(u).performers;
|
|
1209
1209
|
},
|
|
1210
1210
|
showTitle: !1
|
|
1211
1211
|
}), e.reset(F), e.template_effect(() => e.set_text(ae, s().tabFeaturing || "Featuring")), e.append(w, F);
|
|
@@ -1251,25 +1251,25 @@ function Qa(V, t) {
|
|
|
1251
1251
|
Ne = e.set_class(ve, 1, "flex-1 flex flex-col lg:flex-row w-full gap-7 relative svelte-abxi04", null, Ne, {
|
|
1252
1252
|
"blur-content": e.get(K),
|
|
1253
1253
|
"cancelled-content": e.get(Q)
|
|
1254
|
-
}), e.set_attribute(Re, "src", w), e.set_attribute(Re, "alt", e.get(
|
|
1254
|
+
}), e.set_attribute(Re, "src", w), e.set_attribute(Re, "alt", e.get(u).name ? (s().eventPoster || "Event poster") + " — " + e.get(u).name : s().eventPoster || "Event poster"), e.set_attribute(Ee, "aria-label", s().goBackToCalendar || "Go back to calendar"), He = e.set_class(Le, 1, "flex-1 flex flex-col lg:flex-row w-full gap-7 svelte-abxi04", null, He, {
|
|
1255
1255
|
"blur-content": e.get(K),
|
|
1256
1256
|
"cancelled-content": e.get(Q)
|
|
1257
1257
|
});
|
|
1258
1258
|
},
|
|
1259
1259
|
[
|
|
1260
|
-
() => e.get(
|
|
1260
|
+
() => e.get(u).coverImage ? Mt(e.get(u).coverImage) : "https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1200&h=800&fit=crop"
|
|
1261
1261
|
]
|
|
1262
|
-
), e.delegated("click",
|
|
1262
|
+
), e.delegated("click", Ee, T), e.append(i, r);
|
|
1263
1263
|
};
|
|
1264
1264
|
e.if(st, (i) => {
|
|
1265
|
-
e.get(v) ? i(lt) : e.get(n) ? i(nt, 1) : e.get(
|
|
1265
|
+
e.get(v) ? i(lt) : e.get(n) ? i(nt, 1) : e.get(u) && i(ot, 2);
|
|
1266
1266
|
});
|
|
1267
1267
|
}
|
|
1268
1268
|
e.reset(le), e.bind_this(le, (i) => e.set(M, i), () => e.get(M));
|
|
1269
1269
|
var Oe = e.sibling(le, 2);
|
|
1270
1270
|
{
|
|
1271
|
-
let i = e.derived(() => s().enterEventPassword || "Enter event password"), r = e.derived(() => s().passwordModalDescription || "This event requires a password to view. Please enter the password provided by the event organizer."),
|
|
1272
|
-
|
|
1271
|
+
let i = e.derived(() => s().enterEventPassword || "Enter event password"), r = e.derived(() => s().passwordModalDescription || "This event requires a password to view. Please enter the password provided by the event organizer."), S = e.derived(() => s().passwordLabel || "Password"), ge = e.derived(() => !!e.get(G)), ne = e.derived(() => s().unlockEvent || "Unlock event"), xe = e.derived(() => s().goBack || "Go back");
|
|
1272
|
+
Et(Oe, {
|
|
1273
1273
|
size: "md",
|
|
1274
1274
|
get title() {
|
|
1275
1275
|
return e.get(i);
|
|
@@ -1278,7 +1278,7 @@ function Qa(V, t) {
|
|
|
1278
1278
|
return e.get(r);
|
|
1279
1279
|
},
|
|
1280
1280
|
get inputLabel() {
|
|
1281
|
-
return e.get(
|
|
1281
|
+
return e.get(S);
|
|
1282
1282
|
},
|
|
1283
1283
|
inputType: "password",
|
|
1284
1284
|
inputRequired: !0,
|
|
@@ -1316,7 +1316,7 @@ function Qa(V, t) {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
var je = e.sibling(Oe, 2);
|
|
1318
1318
|
{
|
|
1319
|
-
let i = e.derived(() => e.get(
|
|
1319
|
+
let i = e.derived(() => e.get(u)?.name || "this event");
|
|
1320
1320
|
Nt(je, {
|
|
1321
1321
|
get eventId() {
|
|
1322
1322
|
return t.eventId;
|
|
@@ -1356,11 +1356,11 @@ function Qa(V, t) {
|
|
|
1356
1356
|
e.set(g, i, !0);
|
|
1357
1357
|
}
|
|
1358
1358
|
}), e.template_effect(() => {
|
|
1359
|
-
e.set_attribute(le, "data-org-id", b()), e.set_text(Fe, e.get(
|
|
1359
|
+
e.set_attribute(le, "data-org-id", b()), e.set_text(Fe, e.get(u)?.name || s().eventDetails || "Event Details");
|
|
1360
1360
|
}), e.append(V, se), e.pop();
|
|
1361
1361
|
}
|
|
1362
1362
|
e.delegate(["click"]);
|
|
1363
1363
|
export {
|
|
1364
1364
|
Qa as default
|
|
1365
1365
|
};
|
|
1366
|
-
//# sourceMappingURL=EventDetailsView-
|
|
1366
|
+
//# sourceMappingURL=EventDetailsView-CXvl9xwe.js.map
|