@getmicdrop/venue-calendar 4.0.52 → 4.0.54
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-BmYDMNDe.js → CarouselView.legacy-BnpF5veq.js} +7 -7
- package/dist/{CarouselView.legacy-BmYDMNDe.js.map → CarouselView.legacy-BnpF5veq.js.map} +1 -1
- package/dist/{CartView-4HmCFkp9.js → CartView-DAGCIiPW.js} +135 -135
- package/dist/{CartView-4HmCFkp9.js.map → CartView-DAGCIiPW.js.map} +1 -1
- package/dist/{Checkout-hBdJY0vn.js → Checkout-BNUcnVqY.js} +118 -118
- package/dist/Checkout-BNUcnVqY.js.map +1 -0
- package/dist/{Checkout-ZPerGgig.js → Checkout-DRiXexjl.js} +198 -198
- package/dist/Checkout-DRiXexjl.js.map +1 -0
- package/dist/{Checkout.legacy-Bzg6GVQC.js → Checkout.legacy-DW_HnIdJ.js} +14 -8
- package/dist/Checkout.legacy-DW_HnIdJ.js.map +1 -0
- package/dist/{CheckoutTimer-yNMdROpw.js → CheckoutTimer-BDIenRyO.js} +2 -2
- package/dist/{CheckoutTimer-yNMdROpw.js.map → CheckoutTimer-BDIenRyO.js.map} +1 -1
- package/dist/{CollectionView-DbHetbgj.js → CollectionView-Dww4iuh6.js} +15 -15
- package/dist/{CollectionView-DbHetbgj.js.map → CollectionView-Dww4iuh6.js.map} +1 -1
- package/dist/{CollectionView.legacy-CPzXR3_m.js → CollectionView.legacy-BVkf712w.js} +31 -31
- package/dist/{CollectionView.legacy-CPzXR3_m.js.map → CollectionView.legacy-BVkf712w.js.map} +1 -1
- package/dist/{Event-CHzUFY5p.js → Event-C136pj0g.js} +74 -74
- package/dist/{Event-CHzUFY5p.js.map → Event-C136pj0g.js.map} +1 -1
- package/dist/{EventDetailsView-CGvqsrYl.js → EventDetailsView-lFoAqGfU.js} +2 -2
- package/dist/{EventDetailsView-CGvqsrYl.js.map → EventDetailsView-lFoAqGfU.js.map} +1 -1
- package/dist/{FeaturedView.legacy-C1bIqfjK.js → FeaturedView.legacy-Y5x48BNX.js} +20 -20
- package/dist/{FeaturedView.legacy-C1bIqfjK.js.map → FeaturedView.legacy-Y5x48BNX.js.map} +1 -1
- package/dist/{GalleryCard-Be4xa4TJ.js → GalleryCard-BiTDWmTW.js} +17 -17
- package/dist/{GalleryCard-Be4xa4TJ.js.map → GalleryCard-BiTDWmTW.js.map} +1 -1
- package/dist/{GalleryView.legacy-heZGamzA.js → GalleryView.legacy-2R-LCFNV.js} +5 -5
- package/dist/{GalleryView.legacy-heZGamzA.js.map → GalleryView.legacy-2R-LCFNV.js.map} +1 -1
- package/dist/{GroupedListView.legacy-BFAO666M.js → GroupedListView.legacy-ChfEfIyz.js} +32 -32
- package/dist/{GroupedListView.legacy-BFAO666M.js.map → GroupedListView.legacy-ChfEfIyz.js.map} +1 -1
- package/dist/{SeriesPage-CcCgnE1U.js → SeriesPage-CyHj_HwR.js} +5 -5
- package/dist/{SeriesPage-CcCgnE1U.js.map → SeriesPage-CyHj_HwR.js.map} +1 -1
- package/dist/{SeriesPage.legacy-D7nb4a8N.js → SeriesPage.legacy-Bd3NnKa8.js} +27 -27
- package/dist/{SeriesPage.legacy-D7nb4a8N.js.map → SeriesPage.legacy-Bd3NnKa8.js.map} +1 -1
- package/dist/{Success-BmyPuc0H.js → Success-Dbwc9f8F.js} +27 -27
- package/dist/{Success-BmyPuc0H.js.map → Success-Dbwc9f8F.js.map} +1 -1
- package/dist/{Success.legacy-BK9xb7v0.js → Success.legacy-BoKh1cBe.js} +3 -3
- package/dist/{Success.legacy-BK9xb7v0.js.map → Success.legacy-BoKh1cBe.js.map} +1 -1
- package/dist/{VenueCalendar-DMFCxXA1.js → VenueCalendar-BysKrSpJ.js} +1832 -1829
- package/dist/{VenueCalendar-DMFCxXA1.js.map → VenueCalendar-BysKrSpJ.js.map} +1 -1
- package/dist/{ViewTicketsEmbed-DDxWQPgl.js → ViewTicketsEmbed-bZrOJEeo.js} +2 -2
- package/dist/{ViewTicketsEmbed-DDxWQPgl.js.map → ViewTicketsEmbed-bZrOJEeo.js.map} +1 -1
- package/dist/{colors-BZoMuXdh.js → colors-CmP-sSZD.js} +2 -8
- package/dist/colors-CmP-sSZD.js.map +1 -0
- package/dist/{data-toggle-store.svelte-DB5xgrbx.js → data-toggle-store.svelte-Dy0O2Ndi.js} +2 -2
- package/dist/{data-toggle-store.svelte-DB5xgrbx.js.map → data-toggle-store.svelte-Dy0O2Ndi.js.map} +1 -1
- package/dist/{labels-BhI7l0P7.js → labels-DjKR57fF.js} +2 -2
- package/dist/{labels-BhI7l0P7.js.map → labels-DjKR57fF.js.map} +1 -1
- package/dist/{transform-Cll4_pVF.js → transform-DiMdqML7.js} +6 -6
- package/dist/{transform-Cll4_pVF.js.map → transform-DiMdqML7.js.map} +1 -1
- package/dist/venue-calendar.es.js +1 -1
- package/dist/venue-calendar.iife.js +24 -24
- package/dist/venue-calendar.iife.js.map +1 -1
- package/dist/venue-calendar.umd.js +24 -24
- package/dist/venue-calendar.umd.js.map +1 -1
- package/package.json +2 -2
- package/dist/Checkout-ZPerGgig.js.map +0 -1
- package/dist/Checkout-hBdJY0vn.js.map +0 -1
- package/dist/Checkout.legacy-Bzg6GVQC.js.map +0 -1
- package/dist/colors-BZoMuXdh.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "svelte/internal/disclose-version";
|
|
2
|
-
import { f as Be,
|
|
2
|
+
import { f as Be, a7 as mt, B as xe, a8 as ht, a9 as _t, I as vt, aa as bt, ab as lt, o as gt, ac as Oe, ad as yt, ae as Qe, a6 as De, H as xt, A as kt, af as Tt, ag as wt, Y as It, U as Dt, ah as St, ai as Ct, J as it, aj as Et, ak as st, a5 as At, t as ot, k as Pt, al as nt, y as Ot, am as Mt, an as Ft, z as Lt, ao as dt, ap as Qt, aq as ct, ar as Bt } from "./VenueCalendar-BysKrSpJ.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 ft, onDestroy as qt } from "svelte";
|
|
7
7
|
import { g as ut } from "./__SKIP_NAVIGATION__-CJ96TTPE.js";
|
|
8
8
|
import { O as Nt } from "./OrderSummarySkeleton-dDKUH741.js";
|
|
9
|
-
import { C as
|
|
10
|
-
const
|
|
9
|
+
import { C as zt } from "./CheckoutTimer-BDIenRyO.js";
|
|
10
|
+
const Rt = {
|
|
11
11
|
/** Percent remaining at or below which a ticket is "urgent" (exact count). */
|
|
12
12
|
URGENT_PCT: 10,
|
|
13
13
|
/** Percent remaining at or below which a ticket is "low" (vague badge). */
|
|
@@ -15,17 +15,17 @@ const zt = {
|
|
|
15
15
|
/** Absolute cap on exact-count copy; above this we fall back to vague badge. */
|
|
16
16
|
MAX_EXACT_COUNT: 20
|
|
17
17
|
};
|
|
18
|
-
function Ht(
|
|
19
|
-
if (
|
|
18
|
+
function Ht(Y, t) {
|
|
19
|
+
if (Y <= 0) return "sold-out";
|
|
20
20
|
if (t <= 0) return "plenty";
|
|
21
|
-
const E =
|
|
22
|
-
return E <= _ &&
|
|
21
|
+
const E = Y / t * 100, { URGENT_PCT: _, LOW_PCT: k, MAX_EXACT_COUNT: s } = Rt;
|
|
22
|
+
return E <= _ && Y <= s ? "urgent" : E <= k ? "low" : "plenty";
|
|
23
23
|
}
|
|
24
|
-
function jt(
|
|
25
|
-
if (!
|
|
24
|
+
function jt(Y, t) {
|
|
25
|
+
if (!Y || typeof Y != "object") return {};
|
|
26
26
|
if (!Array.isArray(t) || t.length === 0) {
|
|
27
27
|
const k = {};
|
|
28
|
-
for (const [s, y] of Object.entries(
|
|
28
|
+
for (const [s, y] of Object.entries(Y))
|
|
29
29
|
typeof y == "number" && y > 0 && (k[s] = y);
|
|
30
30
|
return k;
|
|
31
31
|
}
|
|
@@ -33,24 +33,24 @@ function jt(Z, t) {
|
|
|
33
33
|
for (const k of t)
|
|
34
34
|
k && k.ID !== void 0 && k.ID !== null && E.set(String(k.ID), k);
|
|
35
35
|
const _ = {};
|
|
36
|
-
for (const [k, s] of Object.entries(
|
|
36
|
+
for (const [k, s] of Object.entries(Y)) {
|
|
37
37
|
if (typeof s != "number" || !Number.isFinite(s) || s <= 0) continue;
|
|
38
38
|
const y = E.get(String(k));
|
|
39
39
|
let a = s;
|
|
40
40
|
if (y) {
|
|
41
41
|
const C = y.remainingCapacity;
|
|
42
42
|
typeof C == "number" && Number.isFinite(C) && (a = Math.min(a, Math.max(0, C)));
|
|
43
|
-
const
|
|
44
|
-
typeof
|
|
43
|
+
const R = y.maxQuantity;
|
|
44
|
+
typeof R == "number" && Number.isFinite(R) && R > 0 && (a = Math.min(a, R));
|
|
45
45
|
}
|
|
46
46
|
a > 0 && (_[k] = a);
|
|
47
47
|
}
|
|
48
48
|
return _;
|
|
49
49
|
}
|
|
50
|
-
var Ut = 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>'), Gt = e.from_html('<span class="sold-out-pill text-xs whitespace-nowrap svelte-12zmutv" role="status"> </span>'), Vt = e.from_html('<span class="sales-start-badge text-xs text-secondary whitespace-nowrap svelte-12zmutv" role="status"> </span>'), Wt = e.from_html('<span class="sr-only" role="alert"> </span>'), Jt = e.from_html('<div class="donation-input-wrapper svelte-12zmutv"><!> <!></div>'),
|
|
51
|
-
function sa(
|
|
50
|
+
var Ut = 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>'), Gt = e.from_html('<span class="sold-out-pill text-xs whitespace-nowrap svelte-12zmutv" role="status"> </span>'), Vt = e.from_html('<span class="sales-start-badge text-xs text-secondary whitespace-nowrap svelte-12zmutv" role="status"> </span>'), Wt = e.from_html('<span class="sr-only" role="alert"> </span>'), Jt = e.from_html('<div class="donation-input-wrapper svelte-12zmutv"><!> <!></div>'), Yt = 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), Zt = e.from_html('<span class="price-lg text-primary svelte-12zmutv"> </span>'), Xt = 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), Kt = e.from_html('<span class="badge badge-discount"> </span>'), $t = e.from_html('<span class="badge badge-unlocked"> </span>'), ea = e.from_html('<div class="flex-row-2 mb-2 flex-wrap" role="status" aria-live="polite"><!> <!></div>'), ta = e.from_html('<p class="text-sm text-secondary mb-3 svelte-12zmutv"> </p>'), aa = e.from_html("<span> </span>"), ra = e.from_html('<p class="sales-end-text text-xs svelte-12zmutv" role="status"> </p>'), ia = 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>');
|
|
51
|
+
function sa(Y, t) {
|
|
52
52
|
e.push(t, !0);
|
|
53
|
-
let E = e.prop(t, "fee", 3, "0.00"), _ = e.prop(t, "quantity", 3, 0), k = e.prop(t, "soldOut", 3, !1), s = e.prop(t, "status", 3, null), y = e.prop(t, "salesBegin", 3, null), a = e.prop(t, "salesEnd", 3, null), C = e.prop(t, "remainingCapacity", 3, null),
|
|
53
|
+
let E = e.prop(t, "fee", 3, "0.00"), _ = e.prop(t, "quantity", 3, 0), k = e.prop(t, "soldOut", 3, !1), s = e.prop(t, "status", 3, null), y = e.prop(t, "salesBegin", 3, null), a = e.prop(t, "salesEnd", 3, null), C = e.prop(t, "remainingCapacity", 3, null), R = e.prop(
|
|
54
54
|
t,
|
|
55
55
|
"totalCapacity",
|
|
56
56
|
3,
|
|
@@ -94,14 +94,14 @@ function sa(Z, t) {
|
|
|
94
94
|
3,
|
|
95
95
|
0
|
|
96
96
|
// 0 = paid/standard, 1 = registration/free, 2 = donation
|
|
97
|
-
),
|
|
97
|
+
), Z = e.prop(
|
|
98
98
|
t,
|
|
99
99
|
"donationAmount",
|
|
100
100
|
3,
|
|
101
101
|
""
|
|
102
102
|
// User-entered donation amount (string for input binding)
|
|
103
103
|
), ve = e.prop(t, "syncing", 3, !1), g = e.prop(t, "labels", 19, () => ({}));
|
|
104
|
-
const V = e.derived(() => ce() === 2), w = e.derived(() => parseFloat(
|
|
104
|
+
const V = e.derived(() => ce() === 2), w = e.derived(() => parseFloat(Z()) || 0), G = e.derived(() => e.get(V) && Z() !== "" && e.get(w) < 1 ? g().minimumDonation || "Minimum $1.00" : ""), ue = e.derived(() => !e.get(V) || Z() !== "" && e.get(w) >= 1), $ = e.derived(() => parseFloat(t.price) || 0), h = e.derived(() => e.get($) === 0 ? 0 : parseFloat(E()) || 0), p = e.derived(() => Be(e.get($) + e.get(h))), x = e.derived(() => Be(e.get(h))), S = e.derived(() => se() ? parseFloat(se()) : null), v = e.derived(() => e.get(S) === null || e.get(S) === 0 ? 0 : parseFloat(E()) || 0), c = e.derived(() => e.get(S) !== null ? Be(e.get(S) + e.get(v)) : null), I = e.derived(() => R() ?? C() ?? 0), m = e.derived(() => {
|
|
105
105
|
const o = C() ?? 0, l = e.get(I);
|
|
106
106
|
if (l === 0 || s() === "scheduled" || s() === "sales_ended" || e.get(
|
|
107
107
|
$
|
|
@@ -189,9 +189,9 @@ function sa(Z, t) {
|
|
|
189
189
|
return null;
|
|
190
190
|
}
|
|
191
191
|
})());
|
|
192
|
-
var
|
|
192
|
+
var X = ia();
|
|
193
193
|
let le;
|
|
194
|
-
var b = e.child(
|
|
194
|
+
var b = e.child(X), ge = e.child(b), fe = e.child(ge), Se = e.child(fe), we = e.child(Se, !0);
|
|
195
195
|
e.reset(Se), e.reset(fe);
|
|
196
196
|
var je = e.sibling(fe, 2);
|
|
197
197
|
{
|
|
@@ -277,7 +277,7 @@ function sa(Z, t) {
|
|
|
277
277
|
inputmode: "decimal",
|
|
278
278
|
placeholder: "0.00",
|
|
279
279
|
get value() {
|
|
280
|
-
return
|
|
280
|
+
return Z();
|
|
281
281
|
},
|
|
282
282
|
oninputchange: (F) => t.ondonationchange?.(F),
|
|
283
283
|
get disabled() {
|
|
@@ -308,7 +308,7 @@ function sa(Z, t) {
|
|
|
308
308
|
}
|
|
309
309
|
e.reset(l), e.append(o, l);
|
|
310
310
|
}, Ae = (o) => {
|
|
311
|
-
var l =
|
|
311
|
+
var l = Yt(), f = e.first_child(l), H = e.child(f, !0);
|
|
312
312
|
e.reset(f);
|
|
313
313
|
var j = e.sibling(f, 2), L = e.child(j), Q = e.child(L, !0);
|
|
314
314
|
e.reset(L);
|
|
@@ -327,10 +327,10 @@ function sa(Z, t) {
|
|
|
327
327
|
]
|
|
328
328
|
), e.append(o, l);
|
|
329
329
|
}, Ne = (o) => {
|
|
330
|
-
var l =
|
|
330
|
+
var l = Zt(), f = e.child(l, !0);
|
|
331
331
|
e.reset(l), e.template_effect(() => e.set_text(f, g().free || "Free")), e.append(o, l);
|
|
332
332
|
}, Me = (o) => {
|
|
333
|
-
var l =
|
|
333
|
+
var l = Xt(), f = e.first_child(l), H = e.child(f, !0);
|
|
334
334
|
e.reset(f);
|
|
335
335
|
var j = e.sibling(f, 2), L = e.child(j, !0);
|
|
336
336
|
e.reset(j);
|
|
@@ -350,7 +350,7 @@ function sa(Z, t) {
|
|
|
350
350
|
});
|
|
351
351
|
}
|
|
352
352
|
e.reset(Ee);
|
|
353
|
-
var
|
|
353
|
+
var ze = e.sibling(Ee, 2);
|
|
354
354
|
{
|
|
355
355
|
var Fe = (o) => {
|
|
356
356
|
var l = ea(), f = e.child(l);
|
|
@@ -375,13 +375,13 @@ function sa(Z, t) {
|
|
|
375
375
|
}
|
|
376
376
|
e.reset(l), e.append(o, l);
|
|
377
377
|
};
|
|
378
|
-
e.if(
|
|
378
|
+
e.if(ze, (o) => {
|
|
379
379
|
(q() || ie()) && o(Fe);
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
|
-
var
|
|
382
|
+
var Re = e.sibling(ze, 2);
|
|
383
383
|
{
|
|
384
|
-
var
|
|
384
|
+
var Ye = (o) => {
|
|
385
385
|
var l = ta(), f = e.child(l, !0);
|
|
386
386
|
e.reset(l), e.template_effect(
|
|
387
387
|
(H) => {
|
|
@@ -392,11 +392,11 @@ function sa(Z, t) {
|
|
|
392
392
|
]
|
|
393
393
|
), e.append(o, l);
|
|
394
394
|
};
|
|
395
|
-
e.if(
|
|
396
|
-
t.description && o(
|
|
395
|
+
e.if(Re, (o) => {
|
|
396
|
+
t.description && o(Ye);
|
|
397
397
|
});
|
|
398
398
|
}
|
|
399
|
-
var We = e.sibling(
|
|
399
|
+
var We = e.sibling(Re, 2), ye = e.child(We);
|
|
400
400
|
{
|
|
401
401
|
var ae = (o) => {
|
|
402
402
|
var l = aa(), f = e.child(l, !0);
|
|
@@ -408,9 +408,9 @@ function sa(Z, t) {
|
|
|
408
408
|
e.get(W) && e.get(W).badge && o(ae);
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
|
-
var
|
|
411
|
+
var Ze = e.sibling(ye, 2);
|
|
412
412
|
{
|
|
413
|
-
var
|
|
413
|
+
var Xe = (o) => {
|
|
414
414
|
{
|
|
415
415
|
let l = e.derived(() => C() ?? 0);
|
|
416
416
|
bt(o, {
|
|
@@ -427,8 +427,8 @@ function sa(Z, t) {
|
|
|
427
427
|
});
|
|
428
428
|
}
|
|
429
429
|
};
|
|
430
|
-
e.if(
|
|
431
|
-
e.get(T) && o(
|
|
430
|
+
e.if(Ze, (o) => {
|
|
431
|
+
e.get(T) && o(Xe);
|
|
432
432
|
});
|
|
433
433
|
}
|
|
434
434
|
e.reset(We);
|
|
@@ -444,29 +444,29 @@ function sa(Z, t) {
|
|
|
444
444
|
a() && s() !== "sales_ended" && s() !== "scheduled" && o(et);
|
|
445
445
|
});
|
|
446
446
|
}
|
|
447
|
-
e.reset(Ce), e.reset(
|
|
447
|
+
e.reset(Ce), e.reset(X), e.template_effect(
|
|
448
448
|
(o, l, f) => {
|
|
449
|
-
le = e.set_class(
|
|
449
|
+
le = e.set_class(X, 1, `ticket-block rounded-lg border transition-all ${_() > 0 ? "shadow-sm" : ""}`, "svelte-12zmutv", le, {
|
|
450
450
|
selected: _() > 0,
|
|
451
451
|
"disabled-ticket": k() || s() === "scheduled" || s() === "sales_ended"
|
|
452
|
-
}), e.set_attribute(
|
|
452
|
+
}), e.set_attribute(X, "aria-label", `${o ?? ""}${(k() ? g().ticketSoldOutSuffix || ", sold out" : "") ?? ""}${(s() === "scheduled" ? g().ticketSalesNotStartedSuffix || ", sales not yet started" : "") ?? ""}${(s() === "sales_ended" ? g().ticketSalesEndedSuffix || ", sales ended" : "") ?? ""}`), e.set_attribute(Se, "id", `ticket-title-${l ?? ""}`), e.set_text(we, t.title), e.set_attribute(Ee, "id", `ticket-price-${f ?? ""}`);
|
|
453
453
|
},
|
|
454
454
|
[
|
|
455
455
|
() => (g().ticketAriaLabel || "{title} ticket").replace("{title}", t.title),
|
|
456
456
|
() => t.title?.replace(/\s+/g, "-").toLowerCase() || "ticket",
|
|
457
457
|
() => t.title?.replace(/\s+/g, "-").toLowerCase() || "ticket"
|
|
458
458
|
]
|
|
459
|
-
), e.append(
|
|
459
|
+
), e.append(Y, X), e.pop();
|
|
460
460
|
}
|
|
461
461
|
var na = 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>');
|
|
462
|
-
function la(
|
|
462
|
+
function la(Y, t) {
|
|
463
463
|
e.push(t, !0);
|
|
464
464
|
let E = e.prop(t, "labels", 19, () => ({}));
|
|
465
465
|
var _ = na();
|
|
466
|
-
e.template_effect(() => e.set_attribute(_, "aria-label", E().loadingTicketInfo || "Loading ticket information")), e.append(
|
|
466
|
+
e.template_effect(() => e.set_attribute(_, "aria-label", E().loadingTicketInfo || "Loading ticket information")), e.append(Y, _), e.pop();
|
|
467
467
|
}
|
|
468
468
|
var oa = 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>'), da = 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>'), ca = e.from_html('<div role="group"><!> <div role="list"><!></div></div>'), ua = e.from_html("<section></section>");
|
|
469
|
-
function va(
|
|
469
|
+
function va(Y, t) {
|
|
470
470
|
e.push(t, !0);
|
|
471
471
|
let E = e.prop(t, "venueFeesReady", 3, !1), _ = e.prop(t, "tickets", 19, () => []), k = e.prop(t, "quantities", 19, () => ({})), s = e.prop(t, "donationAmounts", 19, () => ({})), y = e.prop(t, "revealHiddenTickets", 3, !1), a = e.prop(t, "revealTicketIds", 19, () => []), C = e.prop(
|
|
472
472
|
t,
|
|
@@ -474,7 +474,7 @@ function va(Z, t) {
|
|
|
474
474
|
3,
|
|
475
475
|
null
|
|
476
476
|
// Current applied promo code rule
|
|
477
|
-
),
|
|
477
|
+
), R = e.prop(
|
|
478
478
|
t,
|
|
479
479
|
"syncing",
|
|
480
480
|
3,
|
|
@@ -497,7 +497,7 @@ function va(Z, t) {
|
|
|
497
497
|
}
|
|
498
498
|
return [...p, ...x];
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function Z(h) {
|
|
501
501
|
const p = {};
|
|
502
502
|
for (const x of h) {
|
|
503
503
|
const S = x.TicketSection?.name || M().other || "Other";
|
|
@@ -507,7 +507,7 @@ function va(Z, t) {
|
|
|
507
507
|
p[x] = ce(p[x]);
|
|
508
508
|
return p;
|
|
509
509
|
}
|
|
510
|
-
const ve = e.derived(() =>
|
|
510
|
+
const ve = e.derived(() => Z(e.get(q))), g = e.derived(() => M().other || "Other"), V = e.derived(() => Object.keys(e.get(ve)).filter((h) => h !== e.get(g)).length > 0);
|
|
511
511
|
var w = e.comment(), G = e.first_child(w);
|
|
512
512
|
{
|
|
513
513
|
var ue = (h) => {
|
|
@@ -525,10 +525,10 @@ function va(Z, t) {
|
|
|
525
525
|
var m = ca(), T = e.child(m);
|
|
526
526
|
{
|
|
527
527
|
var N = (ne) => {
|
|
528
|
-
var W = da(),
|
|
529
|
-
e.reset(
|
|
528
|
+
var W = da(), X = e.child(W), le = e.child(X, !0);
|
|
529
|
+
e.reset(X), e.reset(W), e.template_effect(
|
|
530
530
|
(b) => {
|
|
531
|
-
e.set_attribute(
|
|
531
|
+
e.set_attribute(X, "id", `section-${b ?? ""}`), e.set_text(le, c());
|
|
532
532
|
},
|
|
533
533
|
[() => c().replace(/\s+/g, "-").toLowerCase()]
|
|
534
534
|
), e.append(ne, W);
|
|
@@ -540,8 +540,8 @@ function va(Z, t) {
|
|
|
540
540
|
var te = e.sibling(T, 2), _e = e.child(te);
|
|
541
541
|
{
|
|
542
542
|
var ke = (ne) => {
|
|
543
|
-
var W = e.comment(),
|
|
544
|
-
e.each(
|
|
543
|
+
var W = e.comment(), X = e.first_child(W);
|
|
544
|
+
e.each(X, 17, I, e.index, (le, b) => {
|
|
545
545
|
const ge = e.derived(() => e.get(b).visibility >= 2 && y() || a().includes(e.get(b).ID)), fe = e.derived(() => C()?.discountTicketIds || []), Se = e.derived(() => e.get(fe).length === 0 || e.get(fe).includes(e.get(b).ID)), we = e.derived(() => C()?.provideDiscount && e.get(Se) && (C()?.discountType === "%" || C()?.discountType === "$")), je = e.derived(() => (() => {
|
|
546
546
|
if (!e.get(we)) return null;
|
|
547
547
|
const Ie = parseFloat(e.get(b).price) || 0, Ae = parseFloat(C()?.amount || "0") || 0;
|
|
@@ -549,7 +549,7 @@ function va(Z, t) {
|
|
|
549
549
|
})()), Ue = e.derived(() => se(e.get(b))), Ge = e.derived(() => ie(e.get(b))), Ve = e.derived(() => e.get(b).minQuantity ?? 1), Ce = e.derived(() => e.get(b).remainingCapacity), Ee = e.derived(() => e.get(b).soldOut || e.get(Ce) !== null && e.get(Ce) !== void 0 && e.get(Ve) > e.get(Ce)), qe = e.derived(() => e.get(b).type ?? 0);
|
|
550
550
|
e.derived(() => e.get(qe) === 2);
|
|
551
551
|
{
|
|
552
|
-
let Ie = e.derived(() => k()[e.get(b).ID] ?? 0), Ae = e.derived(() => e.get(b).totalCapacity ?? e.get(b).quantity ?? e.get(b).remainingCapacity), Ne = e.derived(() => e.get(b).minQuantity ?? 1), Me = e.derived(() => e.get(b).maxQuantity ?? null),
|
|
552
|
+
let Ie = e.derived(() => k()[e.get(b).ID] ?? 0), Ae = e.derived(() => e.get(b).totalCapacity ?? e.get(b).quantity ?? e.get(b).remainingCapacity), Ne = e.derived(() => e.get(b).minQuantity ?? 1), Me = e.derived(() => e.get(b).maxQuantity ?? null), ze = e.derived(() => s()[e.get(b).ID] ?? "");
|
|
553
553
|
sa(le, {
|
|
554
554
|
get labels() {
|
|
555
555
|
return M();
|
|
@@ -603,20 +603,20 @@ function va(Z, t) {
|
|
|
603
603
|
return e.get(qe);
|
|
604
604
|
},
|
|
605
605
|
get donationAmount() {
|
|
606
|
-
return e.get(
|
|
606
|
+
return e.get(ze);
|
|
607
607
|
},
|
|
608
608
|
onincrement: () => t.handleQuantityChange(e.get(b).ID, 1),
|
|
609
609
|
ondecrement: () => t.handleQuantityChange(e.get(b).ID, -1),
|
|
610
610
|
ondonationchange: (Fe) => t.handleDonationChange?.(e.get(b).ID, Fe),
|
|
611
611
|
get syncing() {
|
|
612
|
-
return
|
|
612
|
+
return R();
|
|
613
613
|
}
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
616
|
}), e.append(ne, W);
|
|
617
617
|
}, Te = (ne) => {
|
|
618
|
-
var W = e.comment(),
|
|
619
|
-
e.each(
|
|
618
|
+
var W = e.comment(), X = e.first_child(W);
|
|
619
|
+
e.each(X, 16, () => Array(2), e.index, (le, b) => {
|
|
620
620
|
la(le, {});
|
|
621
621
|
}), e.append(ne, W);
|
|
622
622
|
};
|
|
@@ -639,20 +639,20 @@ function va(Z, t) {
|
|
|
639
639
|
E() && e.get(q).length === 0 ? h(ue) : h($, !1);
|
|
640
640
|
});
|
|
641
641
|
}
|
|
642
|
-
e.append(
|
|
642
|
+
e.append(Y, w), e.pop();
|
|
643
643
|
}
|
|
644
644
|
const ga = gt("PromocodeInput");
|
|
645
645
|
var fa = e.from_html('<p id="promo-hint" class="promo-message success mt-2 body-sm text-accent-success" role="status" aria-live="polite"> </p>'), pa = e.from_html('<p id="promo-error" class="sr-only svelte-ztoygy" role="alert"> </p>'), ma = 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>');
|
|
646
|
-
function ha(
|
|
646
|
+
function ha(Y, t) {
|
|
647
647
|
e.push(t, !0);
|
|
648
|
-
let E = e.prop(t, "eventID", 3, ""), _ = e.prop(t, "labels", 19, () => ({})), k = e.state(""), s = e.state(!1), y = e.state(""), a = e.state(""), C = e.state(!1),
|
|
648
|
+
let E = e.prop(t, "eventID", 3, ""), _ = e.prop(t, "labels", 19, () => ({})), k = e.state(""), s = e.state(!1), y = e.state(""), a = e.state(""), C = e.state(!1), R = e.state(!1);
|
|
649
649
|
const M = async () => {
|
|
650
650
|
const v = e.get(k).trim().toUpperCase();
|
|
651
651
|
if (e.set(y, ""), e.set(a, ""), e.set(C, !1), !v) {
|
|
652
652
|
e.set(y, _().pleaseEnterPromoCode || "Please enter a promo code.", !0), e.set(s, !0);
|
|
653
653
|
return;
|
|
654
654
|
}
|
|
655
|
-
e.set(
|
|
655
|
+
e.set(R, !0);
|
|
656
656
|
try {
|
|
657
657
|
const c = await yt(E(), v);
|
|
658
658
|
if (c.valid) {
|
|
@@ -704,7 +704,7 @@ function ha(Z, t) {
|
|
|
704
704
|
} catch (c) {
|
|
705
705
|
ga.error("Error validating promo code:", c), e.set(y, _().unableToValidatePromoCode || "Unable to validate promo code. Please try again.", !0), e.set(s, !0);
|
|
706
706
|
} finally {
|
|
707
|
-
e.set(
|
|
707
|
+
e.set(R, !1);
|
|
708
708
|
}
|
|
709
709
|
}, se = () => {
|
|
710
710
|
e.set(k, ""), e.set(y, ""), e.set(a, ""), e.set(C, !1), e.set(s, !1), De(`checkout-promocode-${E()}`), De("checkout-promo-discount"), De(`checkout-promo-reveal-${E()}`), De(`checkout-promo-reveal-ids-${E()}`), De(`checkout-promo-discount-type-${E()}`), t.onpromoChange?.({
|
|
@@ -728,11 +728,11 @@ function ha(Z, t) {
|
|
|
728
728
|
const v = Oe(`checkout-promocode-${E()}`);
|
|
729
729
|
v && (e.set(k, v, !0), M());
|
|
730
730
|
});
|
|
731
|
-
var ce = ma(),
|
|
732
|
-
e.reset(
|
|
733
|
-
var g = e.sibling(
|
|
731
|
+
var ce = ma(), Z = e.child(ce), ve = e.child(Z, !0);
|
|
732
|
+
e.reset(Z);
|
|
733
|
+
var g = e.sibling(Z, 2), V = e.child(g), w = e.child(V);
|
|
734
734
|
{
|
|
735
|
-
let v = e.derived(() => _().promoCode || "Promo code"), c = e.derived(() => e.get(C) || e.get(
|
|
735
|
+
let v = e.derived(() => _().promoCode || "Promo code"), c = e.derived(() => e.get(C) || e.get(R)), I = e.derived(() => e.get(s) ? e.get(y) : ""), m = e.derived(() => e.get(a) ? "promo-hint" : e.get(y) ? "promo-error" : void 0);
|
|
736
736
|
vt(w, {
|
|
737
737
|
get label() {
|
|
738
738
|
return e.get(v);
|
|
@@ -782,11 +782,11 @@ function ha(Z, t) {
|
|
|
782
782
|
}
|
|
783
783
|
}, $ = (v) => {
|
|
784
784
|
{
|
|
785
|
-
let c = e.derived(() => e.get(
|
|
785
|
+
let c = e.derived(() => e.get(R) ? _().checkingPromoCode || "Checking promo code" : _().applyPromoCode || "Apply promo code");
|
|
786
786
|
xe(v, {
|
|
787
787
|
onclick: M,
|
|
788
788
|
get disabled() {
|
|
789
|
-
return e.get(
|
|
789
|
+
return e.get(R);
|
|
790
790
|
},
|
|
791
791
|
class: "h-10 self-start mt-5",
|
|
792
792
|
get "aria-label"() {
|
|
@@ -795,7 +795,7 @@ function ha(Z, t) {
|
|
|
795
795
|
children: (I, m) => {
|
|
796
796
|
e.next();
|
|
797
797
|
var T = e.text();
|
|
798
|
-
e.template_effect(() => e.set_text(T, e.get(
|
|
798
|
+
e.template_effect(() => e.set_text(T, e.get(R) ? _().checking || "Checking..." : _().apply || "Apply")), e.append(I, T);
|
|
799
799
|
},
|
|
800
800
|
$$slots: { default: !0 }
|
|
801
801
|
});
|
|
@@ -826,20 +826,20 @@ function ha(Z, t) {
|
|
|
826
826
|
e.get(y) && e.get(s) && v(S);
|
|
827
827
|
});
|
|
828
828
|
}
|
|
829
|
-
e.reset(ce), e.template_effect(() => e.set_text(ve, _().promoCodeEntry || "Promo code entry")), e.append(
|
|
829
|
+
e.reset(ce), e.template_effect(() => e.set_text(ve, _().promoCodeEntry || "Promo code entry")), e.append(Y, ce), e.pop();
|
|
830
830
|
}
|
|
831
831
|
var _a = e.from_html('<div class="w-14 h-14 shrink-0 rounded-md overflow-hidden bg-bg-secondary" aria-hidden="true"><!></div>'), ba = e.from_html("<p> </p>"), ya = 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>'), xa = 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>');
|
|
832
|
-
function ka(
|
|
832
|
+
function ka(Y, t) {
|
|
833
833
|
e.push(t, !0);
|
|
834
834
|
let E = e.prop(t, "variant", 3, "tickets"), _ = e.prop(t, "total", 3, 0), k = e.prop(t, "onCancel", 3, () => {
|
|
835
835
|
}), s = e.prop(t, "onInfoClick", 3, () => {
|
|
836
|
-
}), y = e.prop(t, "labels", 19, () => ({})), a = e.derived(() => t.event.timeZone || xt()), C = e.derived(() => t.event.displayEndTime === !0),
|
|
836
|
+
}), y = e.prop(t, "labels", 19, () => ({})), a = e.derived(() => t.event.timeZone || xt()), C = e.derived(() => t.event.displayEndTime === !0), R = e.derived(() => t.event.displayDoorsTime === !0), M = e.derived(() => E() === "checkout"), se = e.derived(() => _() > 0 ? `${Be(_())}` : (
|
|
837
837
|
/* 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. */
|
|
838
838
|
y().free || "Free"
|
|
839
839
|
));
|
|
840
840
|
var ie = xa(), q = e.child(ie), ce = e.child(q);
|
|
841
841
|
kt(ce, { size: 20, "aria-hidden": "true" }), e.reset(q);
|
|
842
|
-
var
|
|
842
|
+
var Z = e.sibling(q, 2);
|
|
843
843
|
{
|
|
844
844
|
var ve = (m) => {
|
|
845
845
|
var T = _a(), N = e.child(T);
|
|
@@ -851,11 +851,11 @@ function ka(Z, t) {
|
|
|
851
851
|
class: "w-full h-full"
|
|
852
852
|
}), e.reset(T), e.append(m, T);
|
|
853
853
|
};
|
|
854
|
-
e.if(
|
|
854
|
+
e.if(Z, (m) => {
|
|
855
855
|
t.event.image && m(ve);
|
|
856
856
|
});
|
|
857
857
|
}
|
|
858
|
-
var g = e.sibling(
|
|
858
|
+
var g = e.sibling(Z, 2), V = e.child(g), w = e.child(V, !0);
|
|
859
859
|
e.reset(V);
|
|
860
860
|
var G = e.sibling(V, 2), ue = e.child(G), $ = e.child(ue), h = e.child($, !0);
|
|
861
861
|
e.reset($), e.reset(ue);
|
|
@@ -870,7 +870,7 @@ function ka(Z, t) {
|
|
|
870
870
|
]), e.append(m, T);
|
|
871
871
|
};
|
|
872
872
|
e.if(S, (m) => {
|
|
873
|
-
e.get(
|
|
873
|
+
e.get(R) && t.event.doorsOpenTime && m(v);
|
|
874
874
|
});
|
|
875
875
|
}
|
|
876
876
|
e.reset(G), e.reset(g);
|
|
@@ -905,14 +905,14 @@ function ka(Z, t) {
|
|
|
905
905
|
]
|
|
906
906
|
), e.delegated("click", q, function(...m) {
|
|
907
907
|
k()?.apply(this, m);
|
|
908
|
-
}), e.append(
|
|
908
|
+
}), e.append(Y, ie), e.pop();
|
|
909
909
|
}
|
|
910
910
|
e.delegate(["click"]);
|
|
911
911
|
const he = gt("CartView");
|
|
912
|
-
var Ta = e.from_html('<div class="flex items-center justify-center py-12" aria-live="polite"><p class="text-text-secondary"> </p></div>'), wa = 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>'), Ia = 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>'), Da = 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>'), Sa = e.from_html('<div class="px-4 md:px-5 pt-3"><!></div>'), Ca = e.from_html('<div class="px-4 md:px-5 pt-3"><!></div>'), Ea = e.from_html('<div class="hidden md:block w-80 h-[calc(100vh-40px)]"></div>'), Aa = 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>'), Pa = e.from_html('<h3 id="error-modal-title" class="heading-lg"><!></h3>'), Oa = e.from_html('<p class="body-sm"> </p> <p class="text-text-secondary mt-2"> </p>', 1), Ma = e.from_html('<p class="body-sm"> </p> <p class="text-text-secondary mt-2"> </p>', 1), Fa = e.from_html('<div id="error-modal-description"><!></div>'), La = e.from_html("<!> <!>", 1), Qa = e.from_html('<div role="group" aria-label="Error modal actions"><!></div>'), Ba = e.from_html('<h3 id="expired-modal-title" class="heading-lg"> </h3>'), qa = e.from_html('<p id="expired-modal-description" class="body-sm text-text-secondary"> </p>'), Na = e.from_html('<h3 id="availability-modal-title" class="heading-lg"> </h3>'),
|
|
913
|
-
function er(
|
|
912
|
+
var Ta = e.from_html('<div class="flex items-center justify-center py-12" aria-live="polite"><p class="text-text-secondary"> </p></div>'), wa = 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>'), Ia = 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>'), Da = 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>'), Sa = e.from_html('<div class="px-4 md:px-5 pt-3"><!></div>'), Ca = e.from_html('<div class="px-4 md:px-5 pt-3"><!></div>'), Ea = e.from_html('<div class="hidden md:block w-80 h-[calc(100vh-40px)]"></div>'), Aa = 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>'), Pa = e.from_html('<h3 id="error-modal-title" class="heading-lg"><!></h3>'), Oa = e.from_html('<p class="body-sm"> </p> <p class="text-text-secondary mt-2"> </p>', 1), Ma = e.from_html('<p class="body-sm"> </p> <p class="text-text-secondary mt-2"> </p>', 1), Fa = e.from_html('<div id="error-modal-description"><!></div>'), La = e.from_html("<!> <!>", 1), Qa = e.from_html('<div role="group" aria-label="Error modal actions"><!></div>'), Ba = e.from_html('<h3 id="expired-modal-title" class="heading-lg"> </h3>'), qa = e.from_html('<p id="expired-modal-description" class="body-sm text-text-secondary"> </p>'), Na = e.from_html('<h3 id="availability-modal-title" class="heading-lg"> </h3>'), za = e.from_html('<li class="text-text-secondary text-sm"><span class="font-medium"> </span> <!></li>'), Ra = e.from_html('<p class="text-text-secondary mt-4"> </p>'), Ha = e.from_html('<p class="text-text-secondary mt-4"> </p>'), ja = e.from_html('<div id="availability-modal-description"><p class="text-text-secondary mb-4"> </p> <ul class="space-y-2"></ul> <!></div>'), Ua = e.from_html('<div role="group" aria-label="Availability modal actions"><!> <!></div>'), Ga = e.from_html('<div class="px-5 md:px-10 py-12 bg-card"><!></div> <!> <!> <!>', 1);
|
|
913
|
+
function er(Y, t) {
|
|
914
914
|
e.push(t, !0);
|
|
915
|
-
let E = e.prop(t, "organizationId", 3, ""), _ = e.prop(t, "venueId", 3, ""), k = e.prop(t, "initialEventData", 3, null), s = e.prop(t, "labels", 19, () => ({})), y = e.state(!1), a = e.state(null), C = e.state(null),
|
|
915
|
+
let E = e.prop(t, "organizationId", 3, ""), _ = e.prop(t, "venueId", 3, ""), k = e.prop(t, "initialEventData", 3, null), s = e.prop(t, "labels", 19, () => ({})), y = e.state(!1), a = e.state(null), C = e.state(null), R = e.state(e.proxy([])), M = e.state(!1), se = e.state(!0), ie = e.state(null), q = e.state(!1), ce = e.state(!1), Z = e.state(!1), ve = e.state(0), g = e.state(void 0), V = e.state(void 0), w = e.state(e.proxy({})), G = e.state(""), ue = e.state(""), $ = e.state(0), h = e.state(!1), p = e.state(0), x = e.state(!1), S = null, v = null, c = e.state(!1), I = e.state(!1), m = e.state(
|
|
916
916
|
"cart_failed"
|
|
917
917
|
// 'cart_failed' | 'cart_success_network_error'
|
|
918
918
|
), T = e.state(!1), N = e.state(!1), te = e.state(e.proxy(
|
|
@@ -930,8 +930,8 @@ function er(Z, t) {
|
|
|
930
930
|
return u ? i + it(n * u.price) : i;
|
|
931
931
|
},
|
|
932
932
|
0
|
|
933
|
-
))), W = 0,
|
|
934
|
-
e.derived(() => it(e.get(ne) + W + e.get(
|
|
933
|
+
))), W = 0, X = e.state(0), le = e.state(0), b = e.state(!1), ge = null;
|
|
934
|
+
e.derived(() => it(e.get(ne) + W + e.get(X)));
|
|
935
935
|
let fe = e.state(!1), Se = !1, we = e.state(!1);
|
|
936
936
|
async function je(i, r) {
|
|
937
937
|
if (e.get(we) || e.get(fe))
|
|
@@ -968,7 +968,7 @@ function er(Z, t) {
|
|
|
968
968
|
quantities: e.get(w),
|
|
969
969
|
promoCode: e.get(G) || void 0
|
|
970
970
|
});
|
|
971
|
-
i?.success && i.uuid && (Se = !0,
|
|
971
|
+
i?.success && i.uuid && (Se = !0, Xe());
|
|
972
972
|
} catch (i) {
|
|
973
973
|
he.error("Error creating cart on ticket select:", i);
|
|
974
974
|
} finally {
|
|
@@ -1003,7 +1003,7 @@ function er(Z, t) {
|
|
|
1003
1003
|
});
|
|
1004
1004
|
}
|
|
1005
1005
|
if (i.length === 0) {
|
|
1006
|
-
e.set(le, 0), e.set(
|
|
1006
|
+
e.set(le, 0), e.set(X, 0), e.set(b, !1);
|
|
1007
1007
|
return;
|
|
1008
1008
|
}
|
|
1009
1009
|
ge && ge.abort(), ge = new AbortController(), e.set(b, !0);
|
|
@@ -1015,14 +1015,14 @@ function er(Z, t) {
|
|
|
1015
1015
|
body: JSON.stringify({ venueId: Number(e.get(a).venueID), lineItems: i })
|
|
1016
1016
|
});
|
|
1017
1017
|
if (!r.ok) {
|
|
1018
|
-
r.status === 422 ? he.debug("Tax preview: venue has no tax address, falling back to 0") : he.error("Tax preview failed:", r.status), e.set(le, 0), e.set(
|
|
1018
|
+
r.status === 422 ? he.debug("Tax preview: venue has no tax address, falling back to 0") : he.error("Tax preview failed:", r.status), e.set(le, 0), e.set(X, 0), e.set(b, !1);
|
|
1019
1019
|
return;
|
|
1020
1020
|
}
|
|
1021
1021
|
const n = await r.json();
|
|
1022
|
-
e.set(le, (n.taxTotal ?? 0) / 100), e.set(
|
|
1022
|
+
e.set(le, (n.taxTotal ?? 0) / 100), e.set(X, e.get(le), !0);
|
|
1023
1023
|
} catch (r) {
|
|
1024
1024
|
if (r.name === "AbortError") return;
|
|
1025
|
-
he.error("Tax preview error:", r), e.set(le, 0), e.set(
|
|
1025
|
+
he.error("Tax preview error:", r), e.set(le, 0), e.set(X, 0);
|
|
1026
1026
|
} finally {
|
|
1027
1027
|
ge?.signal?.aborted || e.set(b, !1);
|
|
1028
1028
|
}
|
|
@@ -1120,25 +1120,25 @@ function er(Z, t) {
|
|
|
1120
1120
|
function Me() {
|
|
1121
1121
|
e.set(I, !1), e.get(m) === "cart_failed" && ye();
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1123
|
+
function ze() {
|
|
1124
1124
|
e.set(I, !1), window.location.reload();
|
|
1125
1125
|
}
|
|
1126
1126
|
function Fe() {
|
|
1127
1127
|
e.set(ce, window.innerWidth < 767);
|
|
1128
1128
|
}
|
|
1129
|
-
let
|
|
1130
|
-
function
|
|
1131
|
-
|
|
1132
|
-
We(),
|
|
1133
|
-
}),
|
|
1129
|
+
let Re = !1;
|
|
1130
|
+
function Ye() {
|
|
1131
|
+
Re || (window.requestAnimationFrame(() => {
|
|
1132
|
+
We(), Re = !1;
|
|
1133
|
+
}), Re = !0);
|
|
1134
1134
|
}
|
|
1135
1135
|
function We() {
|
|
1136
1136
|
if (e.get(ce) || !e.get(V) || !e.get(g)) {
|
|
1137
|
-
e.set(
|
|
1137
|
+
e.set(Z, !1);
|
|
1138
1138
|
return;
|
|
1139
1139
|
}
|
|
1140
1140
|
const i = e.get(V).getBoundingClientRect();
|
|
1141
|
-
if (e.set(
|
|
1141
|
+
if (e.set(Z, i.top <= 20), e.get(Z)) {
|
|
1142
1142
|
const r = e.get(g).getBoundingClientRect();
|
|
1143
1143
|
e.set(ve, r.left + r.width - 340 - 40);
|
|
1144
1144
|
}
|
|
@@ -1154,10 +1154,10 @@ function er(Z, t) {
|
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
1156
|
let ae = null;
|
|
1157
|
-
async function
|
|
1157
|
+
async function Ze() {
|
|
1158
1158
|
ae && localStorage.removeItem(`checkout-expiry-${ae}`), De("checkout-cartid"), ae = null, e.set(x, !1), e.set(p, 0), e.set(c, !0);
|
|
1159
1159
|
}
|
|
1160
|
-
async function
|
|
1160
|
+
async function Xe() {
|
|
1161
1161
|
if (e.get(x)) return;
|
|
1162
1162
|
if (e.set(x, !0), ae = typeof document < "u" ? Oe("checkout-cartid") ?? null : null, e.set(p, 900), ae) {
|
|
1163
1163
|
const n = localStorage.getItem(
|
|
@@ -1169,7 +1169,7 @@ function er(Z, t) {
|
|
|
1169
1169
|
if (u > 0)
|
|
1170
1170
|
e.set(p, u, !0);
|
|
1171
1171
|
else {
|
|
1172
|
-
await
|
|
1172
|
+
await Ze();
|
|
1173
1173
|
return;
|
|
1174
1174
|
}
|
|
1175
1175
|
} else if (Se)
|
|
@@ -1179,7 +1179,7 @@ function er(Z, t) {
|
|
|
1179
1179
|
String(Date.now() + 900 * 1e3)
|
|
1180
1180
|
);
|
|
1181
1181
|
else {
|
|
1182
|
-
await
|
|
1182
|
+
await Ze();
|
|
1183
1183
|
return;
|
|
1184
1184
|
}
|
|
1185
1185
|
}
|
|
@@ -1261,7 +1261,7 @@ function er(Z, t) {
|
|
|
1261
1261
|
try {
|
|
1262
1262
|
if (k()) {
|
|
1263
1263
|
if (e.set(C, k()), !e.get(q)) return;
|
|
1264
|
-
e.set(a, ot(e.get(C)), !0), e.set(
|
|
1264
|
+
e.set(a, ot(e.get(C)), !0), e.set(R, e.get(a).availableTickets || [], !0);
|
|
1265
1265
|
} else {
|
|
1266
1266
|
try {
|
|
1267
1267
|
if (e.set(C, await Pt(t.eventId), !0), !e.get(q)) return;
|
|
@@ -1271,18 +1271,18 @@ function er(Z, t) {
|
|
|
1271
1271
|
return;
|
|
1272
1272
|
}
|
|
1273
1273
|
try {
|
|
1274
|
-
if (e.set(
|
|
1275
|
-
e.get(
|
|
1274
|
+
if (e.set(R, await nt(t.eventId), !0), !e.get(q)) return;
|
|
1275
|
+
e.get(R).length > 0 && (e.get(a).availableTickets = e.get(R));
|
|
1276
1276
|
} catch (n) {
|
|
1277
1277
|
if (!e.get(q)) return;
|
|
1278
|
-
he.error("Error fetching tickets:", n), e.set(
|
|
1278
|
+
he.error("Error fetching tickets:", n), e.set(R, e.get(a).availableTickets || [], !0);
|
|
1279
1279
|
}
|
|
1280
1280
|
}
|
|
1281
1281
|
e.get(a).availableTickets && e.get(a).availableTickets.forEach((n) => e.get(w)[n.ID] = 0);
|
|
1282
1282
|
const i = Ot(e.get(a).eventID);
|
|
1283
1283
|
if (e.set(w, jt(i.quantities || {}, e.get(a).availableTickets), !0), e.set(G, i.promocode || "", !0), e.set($, i.promoDiscountAmount || 0, !0), e.get(a).eventID && (await Mt(e.get(a).eventID), !e.get(q)))
|
|
1284
1284
|
return;
|
|
1285
|
-
e.set(y, !0), Ge(), Object.values(e.get(w)).reduce((n, u) => n + u, 0) > 0 &&
|
|
1285
|
+
e.set(y, !0), Ge(), Object.values(e.get(w)).reduce((n, u) => n + u, 0) > 0 && Xe(), Ce(), await Ft(String(e.get(a).eventID));
|
|
1286
1286
|
} catch (i) {
|
|
1287
1287
|
e.get(q) && (he.error("Error loading event:", i), e.set(ie, i.message || s().failedToLoadEvent || "Failed to load event", !0));
|
|
1288
1288
|
} finally {
|
|
@@ -1291,20 +1291,20 @@ function er(Z, t) {
|
|
|
1291
1291
|
}
|
|
1292
1292
|
}
|
|
1293
1293
|
ft(async () => {
|
|
1294
|
-
e.set(q, !0), Fe(), window.addEventListener("resize", Fe), window.addEventListener("scroll",
|
|
1294
|
+
e.set(q, !0), Fe(), window.addEventListener("resize", Fe), window.addEventListener("scroll", Ye), await f(), Et(t.eventId).then((i) => {
|
|
1295
1295
|
e.set(h, i, !0);
|
|
1296
1296
|
}).catch(() => {
|
|
1297
1297
|
e.set(h, !0);
|
|
1298
1298
|
});
|
|
1299
1299
|
}), qt(() => {
|
|
1300
|
-
e.set(q, !1), window.removeEventListener("resize", Fe), window.removeEventListener("scroll",
|
|
1300
|
+
e.set(q, !1), window.removeEventListener("resize", Fe), window.removeEventListener("scroll", Ye), S && clearInterval(S), v && (typeof document < "u" && document.removeEventListener("visibilitychange", v), typeof window < "u" && window.removeEventListener("pageshow", v), v = null), ge && ge.abort();
|
|
1301
1301
|
});
|
|
1302
1302
|
let H = null;
|
|
1303
1303
|
e.user_effect(() => {
|
|
1304
1304
|
e.get(q) && t.eventId && t.eventId !== H && (H = t.eventId, f());
|
|
1305
1305
|
}), e.user_effect(() => {
|
|
1306
1306
|
const i = Object.values(e.get(w)).reduce((r, n) => r + n, 0);
|
|
1307
|
-
e.get(y) && e.get(a) && i > 0 ? Ve() : i === 0 && (e.set(le, 0), e.set(
|
|
1307
|
+
e.get(y) && e.get(a) && i > 0 ? Ve() : i === 0 && (e.set(le, 0), e.set(X, 0), e.set(b, !1));
|
|
1308
1308
|
});
|
|
1309
1309
|
var j = Ga(), L = e.first_child(j), Q = e.child(L);
|
|
1310
1310
|
{
|
|
@@ -1344,11 +1344,11 @@ function er(Z, t) {
|
|
|
1344
1344
|
});
|
|
1345
1345
|
var D = e.sibling(d, 2);
|
|
1346
1346
|
{
|
|
1347
|
-
var U = (
|
|
1347
|
+
var U = (z) => {
|
|
1348
1348
|
var re = Sa(), be = e.child(re);
|
|
1349
1349
|
{
|
|
1350
1350
|
let Je = e.derived(() => e.get(p) <= 300);
|
|
1351
|
-
|
|
1351
|
+
zt(be, {
|
|
1352
1352
|
get seconds() {
|
|
1353
1353
|
return e.get(p);
|
|
1354
1354
|
},
|
|
@@ -1360,15 +1360,15 @@ function er(Z, t) {
|
|
|
1360
1360
|
}
|
|
1361
1361
|
});
|
|
1362
1362
|
}
|
|
1363
|
-
e.reset(re), e.append(
|
|
1363
|
+
e.reset(re), e.append(z, re);
|
|
1364
1364
|
};
|
|
1365
|
-
e.if(D, (
|
|
1366
|
-
e.get(x) && e.get(p) > 0 &&
|
|
1365
|
+
e.if(D, (z) => {
|
|
1366
|
+
e.get(x) && e.get(p) > 0 && z(U);
|
|
1367
1367
|
});
|
|
1368
1368
|
}
|
|
1369
1369
|
var ee = e.sibling(D, 2);
|
|
1370
1370
|
{
|
|
1371
|
-
var B = (
|
|
1371
|
+
var B = (z) => {
|
|
1372
1372
|
var re = Ca(), be = e.child(re);
|
|
1373
1373
|
ha(be, {
|
|
1374
1374
|
get eventID() {
|
|
@@ -1378,15 +1378,15 @@ function er(Z, t) {
|
|
|
1378
1378
|
get labels() {
|
|
1379
1379
|
return s();
|
|
1380
1380
|
}
|
|
1381
|
-
}), e.reset(re), e.append(
|
|
1381
|
+
}), e.reset(re), e.append(z, re);
|
|
1382
1382
|
};
|
|
1383
|
-
e.if(ee, (
|
|
1384
|
-
e.get(h) &&
|
|
1383
|
+
e.if(ee, (z) => {
|
|
1384
|
+
e.get(h) && z(B);
|
|
1385
1385
|
});
|
|
1386
1386
|
}
|
|
1387
1387
|
var A = e.sibling(ee, 2), K = e.child(A);
|
|
1388
1388
|
{
|
|
1389
|
-
let
|
|
1389
|
+
let z = e.derived(() => e.get(we) || e.get(fe));
|
|
1390
1390
|
va(K, {
|
|
1391
1391
|
get tickets() {
|
|
1392
1392
|
return e.get(a).availableTickets;
|
|
@@ -1407,7 +1407,7 @@ function er(Z, t) {
|
|
|
1407
1407
|
return e.get(y);
|
|
1408
1408
|
},
|
|
1409
1409
|
get syncing() {
|
|
1410
|
-
return e.get(
|
|
1410
|
+
return e.get(z);
|
|
1411
1411
|
},
|
|
1412
1412
|
get labels() {
|
|
1413
1413
|
return s();
|
|
@@ -1417,24 +1417,24 @@ function er(Z, t) {
|
|
|
1417
1417
|
e.reset(A), e.reset(u), e.reset(n);
|
|
1418
1418
|
var de = e.sibling(n, 2);
|
|
1419
1419
|
{
|
|
1420
|
-
var P = (
|
|
1420
|
+
var P = (z) => {
|
|
1421
1421
|
var re = Ea();
|
|
1422
|
-
e.append(
|
|
1422
|
+
e.append(z, re);
|
|
1423
1423
|
};
|
|
1424
|
-
e.if(de, (
|
|
1425
|
-
e.get(
|
|
1424
|
+
e.if(de, (z) => {
|
|
1425
|
+
e.get(Z) && !e.get(ce) && z(P);
|
|
1426
1426
|
});
|
|
1427
1427
|
}
|
|
1428
1428
|
var O = e.sibling(de, 2);
|
|
1429
1429
|
let pe, me;
|
|
1430
1430
|
var tt = e.child(O);
|
|
1431
1431
|
{
|
|
1432
|
-
var at = (
|
|
1433
|
-
Nt(
|
|
1434
|
-
}, rt = (
|
|
1432
|
+
var at = (z) => {
|
|
1433
|
+
Nt(z, {});
|
|
1434
|
+
}, rt = (z) => {
|
|
1435
1435
|
{
|
|
1436
1436
|
let re = e.derived(() => s().checkout || "Checkout"), be = e.derived(() => !!e.get(ue));
|
|
1437
|
-
Bt(
|
|
1437
|
+
Bt(z, {
|
|
1438
1438
|
get btnText() {
|
|
1439
1439
|
return e.get(re);
|
|
1440
1440
|
},
|
|
@@ -1465,12 +1465,12 @@ function er(Z, t) {
|
|
|
1465
1465
|
});
|
|
1466
1466
|
}
|
|
1467
1467
|
};
|
|
1468
|
-
e.if(tt, (
|
|
1469
|
-
e.get(y) ? e.get(a) && e.get(a).availableTickets?.length &&
|
|
1468
|
+
e.if(tt, (z) => {
|
|
1469
|
+
e.get(y) ? e.get(a) && e.get(a).availableTickets?.length && z(rt, 1) : z(at);
|
|
1470
1470
|
});
|
|
1471
1471
|
}
|
|
1472
|
-
e.reset(O), e.reset(r), e.bind_this(r, (
|
|
1473
|
-
pe = e.set_class(O, 1, "w-full md:w-80 flex flex-col transition-all will-change-[left] svelte-19g9ni4", null, pe, { "is-sticky": e.get(
|
|
1472
|
+
e.reset(O), e.reset(r), e.bind_this(r, (z) => e.set(V, z), () => e.get(V)), e.template_effect(() => {
|
|
1473
|
+
pe = e.set_class(O, 1, "w-full md:w-80 flex flex-col transition-all will-change-[left] svelte-19g9ni4", null, pe, { "is-sticky": e.get(Z) }), me = e.set_style(O, "", me, { left: e.get(Z) ? `${e.get(ve)}px` : "auto" });
|
|
1474
1474
|
}), e.append(i, r);
|
|
1475
1475
|
};
|
|
1476
1476
|
e.if(Q, (i) => {
|
|
@@ -1572,7 +1572,7 @@ function er(Z, t) {
|
|
|
1572
1572
|
let P = e.derived(() => s().refreshPage || "Refresh Page");
|
|
1573
1573
|
xe(de, {
|
|
1574
1574
|
variant: "default",
|
|
1575
|
-
onclick:
|
|
1575
|
+
onclick: ze,
|
|
1576
1576
|
get "aria-label"() {
|
|
1577
1577
|
return e.get(P);
|
|
1578
1578
|
},
|
|
@@ -1652,7 +1652,7 @@ function er(Z, t) {
|
|
|
1652
1652
|
e.reset(D);
|
|
1653
1653
|
var ee = e.sibling(D, 2);
|
|
1654
1654
|
e.each(ee, 21, () => e.get(te), e.index, (P, O) => {
|
|
1655
|
-
var pe =
|
|
1655
|
+
var pe = za(), me = e.child(pe), tt = e.child(me);
|
|
1656
1656
|
e.reset(me);
|
|
1657
1657
|
var at = e.sibling(me, 2);
|
|
1658
1658
|
{
|
|
@@ -1661,14 +1661,14 @@ function er(Z, t) {
|
|
|
1661
1661
|
e.template_effect((Je) => e.set_text(be, Je), [
|
|
1662
1662
|
() => (s().onlyNAvailable || "Only {available} available (you selected {requested})").replace("{available}", String(e.get(O).availableQty)).replace("{requested}", String(e.get(O).requestedQty))
|
|
1663
1663
|
]), e.append(re, be);
|
|
1664
|
-
},
|
|
1664
|
+
}, z = (re) => {
|
|
1665
1665
|
var be = e.text();
|
|
1666
1666
|
e.template_effect((Je) => e.set_text(be, Je), [
|
|
1667
1667
|
() => (s().soldOutYouSelected || "Sold out (you selected {requested})").replace("{requested}", String(e.get(O).requestedQty))
|
|
1668
1668
|
]), e.append(re, be);
|
|
1669
1669
|
};
|
|
1670
1670
|
e.if(at, (re) => {
|
|
1671
|
-
e.get(O).availableQty > 0 ? re(rt) : re(
|
|
1671
|
+
e.get(O).availableQty > 0 ? re(rt) : re(z, !1);
|
|
1672
1672
|
});
|
|
1673
1673
|
}
|
|
1674
1674
|
e.reset(pe), e.template_effect(() => e.set_text(tt, `${e.get(O).ticketName ?? ""}:`)), e.append(P, pe);
|
|
@@ -1676,7 +1676,7 @@ function er(Z, t) {
|
|
|
1676
1676
|
var B = e.sibling(ee, 2);
|
|
1677
1677
|
{
|
|
1678
1678
|
var A = (P) => {
|
|
1679
|
-
var O =
|
|
1679
|
+
var O = Ra(), pe = e.child(O, !0);
|
|
1680
1680
|
e.reset(O), e.template_effect(() => e.set_text(pe, s().partialAvailabilityContinue || "Would you like to continue with the available tickets?")), e.append(P, O);
|
|
1681
1681
|
}, K = e.derived(() => e.get(te).some((P) => P.availableQty > 0)), de = (P) => {
|
|
1682
1682
|
var O = Ha(), pe = e.child(O, !0);
|
|
@@ -1735,10 +1735,10 @@ function er(Z, t) {
|
|
|
1735
1735
|
e.reset(d), e.append(u, d);
|
|
1736
1736
|
},
|
|
1737
1737
|
$$slots: { header: !0, body: !0, footer: !0 }
|
|
1738
|
-
}), e.append(
|
|
1738
|
+
}), e.append(Y, j), e.pop();
|
|
1739
1739
|
}
|
|
1740
1740
|
e.delegate(["click"]);
|
|
1741
1741
|
export {
|
|
1742
1742
|
er as default
|
|
1743
1743
|
};
|
|
1744
|
-
//# sourceMappingURL=CartView-
|
|
1744
|
+
//# sourceMappingURL=CartView-DAGCIiPW.js.map
|