@getmicdrop/venue-calendar 4.0.94 → 4.0.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CartView-hnrXbE_O.js → CartView-Cq0DU1Cy.js} +101 -101
- package/dist/{CartView-hnrXbE_O.js.map → CartView-Cq0DU1Cy.js.map} +1 -1
- package/dist/{Checkout-Bvre3lYs.js → Checkout-BA43iGDc.js} +263 -263
- package/dist/Checkout-BA43iGDc.js.map +1 -0
- package/dist/{Checkout-C4Kr5pVp.js → Checkout-BV5f49vY.js} +3 -3
- package/dist/{Checkout-C4Kr5pVp.js.map → Checkout-BV5f49vY.js.map} +1 -1
- package/dist/{CheckoutTimer-D2HnWYm7.js → CheckoutTimer-KyKyInco.js} +5 -5
- package/dist/{CheckoutTimer-D2HnWYm7.js.map → CheckoutTimer-KyKyInco.js.map} +1 -1
- package/dist/{ClockIcon-DA4wXK5Q.js → ClockIcon-BD24dBol.js} +2 -2
- package/dist/{ClockIcon-DA4wXK5Q.js.map → ClockIcon-BD24dBol.js.map} +1 -1
- package/dist/{CollectionView-DU1lTGU_.js → CollectionView-CKIxku9-.js} +18 -18
- package/dist/{CollectionView-DU1lTGU_.js.map → CollectionView-CKIxku9-.js.map} +1 -1
- package/dist/{Event-BuOnGjPB.js → Event-BPdt1Io5.js} +174 -169
- package/dist/{Event-BuOnGjPB.js.map → Event-BPdt1Io5.js.map} +1 -1
- package/dist/EventPage-DRnTMGTK.js +575 -0
- package/dist/EventPage-DRnTMGTK.js.map +1 -0
- package/dist/{Heading-D4iOOm-C.js → Heading-pQuVpBrL.js} +8 -8
- package/dist/{Heading-D4iOOm-C.js.map → Heading-pQuVpBrL.js.map} +1 -1
- package/dist/{ScarcityBadge-D37JY-BJ.js → ScarcityBadge-DoYdujCs.js} +7 -7
- package/dist/{ScarcityBadge-D37JY-BJ.js.map → ScarcityBadge-DoYdujCs.js.map} +1 -1
- package/dist/{SeriesPage-CZdi_-a4.js → SeriesPage-vw7Hva9F.js} +7 -7
- package/dist/{SeriesPage-CZdi_-a4.js.map → SeriesPage-vw7Hva9F.js.map} +1 -1
- package/dist/{Spinner-BZYln43S.js → Spinner-BfFZMaDP.js} +5 -5
- package/dist/{Spinner-BZYln43S.js.map → Spinner-BfFZMaDP.js.map} +1 -1
- package/dist/{Success-CQYI5SZO.js → Success-Cjj6CC4w.js} +325 -329
- package/dist/{Success-CQYI5SZO.js.map → Success-Cjj6CC4w.js.map} +1 -1
- package/dist/{Text-C-6sDfH2.js → Text-CT79Zi5n.js} +2 -2
- package/dist/{Text-C-6sDfH2.js.map → Text-CT79Zi5n.js.map} +1 -1
- package/dist/{VenueCalendar-Um0PQCVy.js → VenueCalendar-Cz7_VBC6.js} +1948 -1951
- package/dist/VenueCalendar-Cz7_VBC6.js.map +1 -0
- package/dist/{ViewTicketsEmbed-D2jQ8AMb.js → ViewTicketsEmbed-BvCfoKY3.js} +80 -80
- package/dist/{ViewTicketsEmbed-D2jQ8AMb.js.map → ViewTicketsEmbed-BvCfoKY3.js.map} +1 -1
- package/dist/api/api/events.d.ts +18 -0
- package/dist/api/api/gift-cards.d.ts +19 -0
- package/dist/api/api/index.d.ts +2 -2
- package/dist/api/api/result.d.ts +31 -1
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.cjs.map +1 -1
- package/dist/api/api.mjs +295 -284
- package/dist/api/api.mjs.map +1 -1
- package/dist/{data-toggle-store.svelte-CyXPU9Oq.js → data-toggle-store.svelte-BHwbM34q.js} +2 -2
- package/dist/{data-toggle-store.svelte-CyXPU9Oq.js.map → data-toggle-store.svelte-BHwbM34q.js.map} +1 -1
- package/dist/{labels-BNiV89mT.js → labels-_x9WkVuZ.js} +65 -62
- package/dist/labels-_x9WkVuZ.js.map +1 -0
- package/dist/{modalManager.svelte-D_9E6W5P.js → modalManager.svelte-Csm1WlvP.js} +2 -2
- package/dist/{modalManager.svelte-D_9E6W5P.js.map → modalManager.svelte-Csm1WlvP.js.map} +1 -1
- package/dist/{transform-HKz55B2D.js → transform-WRPgSKLN.js} +6 -6
- package/dist/{transform-HKz55B2D.js.map → transform-WRPgSKLN.js.map} +1 -1
- package/dist/venue-calendar.es.js +1 -1
- package/dist/venue-calendar.iife.js +33 -33
- package/dist/venue-calendar.iife.js.map +1 -1
- package/dist/venue-calendar.umd.js +36 -36
- package/dist/venue-calendar.umd.js.map +1 -1
- package/package.json +2 -2
- package/dist/Checkout-Bvre3lYs.js.map +0 -1
- package/dist/EventPage-vBSbuSaG.js +0 -566
- package/dist/EventPage-vBSbuSaG.js.map +0 -1
- package/dist/VenueCalendar-Um0PQCVy.js.map +0 -1
- package/dist/labels-BNiV89mT.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "svelte/internal/disclose-version";
|
|
2
2
|
import * as e from "svelte/internal/client";
|
|
3
3
|
import { onMount as ea, onDestroy as da } from "svelte";
|
|
4
|
-
import { C as ca, S as va, A as ua, a as pa, g as Lt } from "./ScarcityBadge-
|
|
5
|
-
import { u as fa,
|
|
6
|
-
import { M as jt, C as ja } from "./CheckoutTimer-
|
|
7
|
-
import { I as Ma } from "./Text-
|
|
8
|
-
import { c as Mt } from "./modalManager.svelte-
|
|
4
|
+
import { C as ca, S as va, A as ua, a as pa, g as Lt } from "./ScarcityBadge-DoYdujCs.js";
|
|
5
|
+
import { u as fa, K as tt, a3 as Bt, a4 as zt, t as ye, a5 as ga, r as $, a6 as Et, a7 as _a, a8 as Ot, a9 as ma, y as Ye, aa as ta, ab as ha, l as aa, ac as et, v as ba, ad as gt, a2 as at, J as xa, T as ya, ae as ka, af as wa, R as Ta, ag as Ca, ah as Ia, a1 as Da, z as Qt, f as Sa, ai as Ft, E as Aa, g as Pa, aj as Ea, G as Oa, m as qt, ak as Fa, n as Rt, o as Nt, q as Gt } from "./VenueCalendar-Cz7_VBC6.js";
|
|
6
|
+
import { M as jt, C as ja } from "./CheckoutTimer-KyKyInco.js";
|
|
7
|
+
import { I as Ma } from "./Text-CT79Zi5n.js";
|
|
8
|
+
import { c as Mt } from "./modalManager.svelte-Csm1WlvP.js";
|
|
9
9
|
import { cubicOut as Ht } from "svelte/easing";
|
|
10
|
-
import { S as Dt } from "./Spinner-
|
|
10
|
+
import { S as Dt } from "./Spinner-BfFZMaDP.js";
|
|
11
11
|
var La = e.from_svg('<svg aria-hidden="true" fill="none" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path></svg>');
|
|
12
12
|
function Ba(V, t) {
|
|
13
13
|
let z = e.prop(t, "size", 3, "24"), x = e.prop(t, "color", 3, "currentColor"), p = e.prop(t, "class", 3, "");
|
|
@@ -17,13 +17,13 @@ function Ba(V, t) {
|
|
|
17
17
|
}), e.append(V, n);
|
|
18
18
|
}
|
|
19
19
|
var za = e.from_svg('<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"></path>'), Qa = e.from_svg('<circle cx="128" cy="128" r="96" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></circle><path d="M120,120a8,8,0,0,1,8,8v40a8,8,0,0,0,8,8" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path><circle cx="124" cy="84" r="12"></circle>', 1), qa = e.from_svg('<svg aria-hidden="true" viewBox="0 0 256 256" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><!></svg>');
|
|
20
|
-
function
|
|
20
|
+
function Ra(V, t) {
|
|
21
21
|
e.push(t, !0);
|
|
22
22
|
let z = e.prop(t, "size", 3, "24"), x = e.prop(t, "color", 3, "currentColor"), p = e.prop(t, "class", 3, "");
|
|
23
23
|
const n = fa();
|
|
24
24
|
let I = e.derived(() => t.weight ?? n?.weight ?? "regular");
|
|
25
25
|
var i = qa();
|
|
26
|
-
let
|
|
26
|
+
let R;
|
|
27
27
|
var ee = e.child(i);
|
|
28
28
|
{
|
|
29
29
|
var W = (J) => {
|
|
@@ -38,10 +38,10 @@ function Na(V, t) {
|
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
e.reset(i), e.template_effect(() => {
|
|
41
|
-
e.set_class(i, 0, e.clsx(p())), e.set_attribute(i, "width", z()), e.set_attribute(i, "height", z()),
|
|
41
|
+
e.set_class(i, 0, e.clsx(p())), e.set_attribute(i, "width", z()), e.set_attribute(i, "height", z()), R = e.set_style(i, "", R, { color: x() });
|
|
42
42
|
}), e.append(V, i), e.pop();
|
|
43
43
|
}
|
|
44
|
-
var
|
|
44
|
+
var Na = e.from_html('<div class="py-8 text-center"><p> </p></div>'), Ga = e.from_html('<div class="flex justify-between py-3 border-b border-border/50"><div><p> </p> <p><!></p></div> <div><!></div></div>'), Ha = e.from_html('<div class="flex justify-between tone-secondary"><span> </span><span> </span></div>'), St = e.from_html('<div class="flex justify-between text-accent-success"><span> </span><span> </span></div>'), Vt = e.from_html('<span class="inline-flex items-center gap-1"><!> Calculating...</span>'), Ut = e.from_html('<div class="flex justify-between tone-muted type-caption"><span> </span> <span> </span></div>'), Wt = e.from_html('<div class="flex justify-between text-accent-success"><span> </span> <span> </span></div> <!>', 1), Va = e.from_html('<div class="flex justify-between py-4 type-subheading border-t border-border"><span class="font-semibold tone-primary"> </span> <span class="font-bold text-accent-success">$0.00</span></div> <p class="type-caption tone-muted text-center -mt-2 mb-2"> </p>', 1), Jt = e.from_html("<div><span> </span><span> </span></div>"), Ua = e.from_html('<!> <div><!> <!> <div class="flex justify-between tone-secondary"><span> </span><span> </span></div> <div class="flex justify-between tone-secondary"><span> </span><span> </span></div> <div class="flex justify-between tone-secondary"><span> </span> <span><!></span></div> <!></div> <!>', 1), Wa = e.from_html('<p> <a href="https://get-micdrop.com/tos" class="text-brand-primary underline hover:opacity-80" target="_blank" rel="noopener noreferrer"> </a></p>'), Zt = e.from_html('<span translate="no"> </span>'), Ja = e.from_html('<div class="flex justify-between py-4 border-b border-border"><div><p> </p> <p><!></p></div> <div><!></div></div>'), Za = e.from_html('<div class="flex justify-between"><span> </span><span> </span></div>'), Ya = e.from_html('<div class="flex justify-between py-5 border-t border-border"><span class="font-semibold tone-primary"> </span> <span class="font-bold text-accent-success">$0.00</span></div> <p class="type-caption tone-muted text-center -mt-2 mb-2"> </p>', 1), Xa = e.from_html('<button class="md:hidden fixed inset-0 bg-overlay-bg border-none cursor-pointer"></button> <div class="md:hidden fixed bottom-0 left-0 w-full overflow-x-hidden overflow-y-auto max-h-[80vh] rounded-t-lg shadow-xl bg-card"><div class="flex flex-row justify-between items-center px-5 py-4 border-b border-border"><h2> </h2> <button class="transition-colors p-2 rounded-lg tone-muted hover:tone-primary hover:bg-bg-secondary"><!></button></div> <div class="px-5 pb-5"><!> <div class="flex flex-col py-4 gap-3 tone-secondary"><!> <!> <div class="flex justify-between"><span> </span><span> </span></div> <div class="flex justify-between"><span> </span><span> </span></div> <div class="flex justify-between"><span> </span> <span><!></span></div> <!></div> <!></div></div>', 1), Ka = e.from_html('<div class="md:hidden fixed bottom-0 left-0 right-0 bg-card border-t border-border shadow-xl p-4 pb-[max(16px,calc(env(safe-area-inset-bottom)+8px))] select-none touch-manipulation"><div class="flex items-stretch gap-3"><button class="flex flex-col justify-between items-start shrink-0 whitespace-nowrap bg-transparent border-none p-0 cursor-pointer touch-manipulation"><span> <!></span> <span> </span></button> <button><!></button></div></div>'), $a = e.from_html('<div id="orderSummary" class="hidden md:block h-fit rounded-lg bg-card border border-border"><div class="px-5 py-4 border-b border-border"><h3> </h3></div> <div class="px-5 pb-5"><!> <!> <button><!></button></div></div> <!> <!>', 1);
|
|
45
45
|
function er(V, t) {
|
|
46
46
|
e.push(t, !0);
|
|
47
47
|
const z = {
|
|
@@ -67,7 +67,7 @@ function er(V, t) {
|
|
|
67
67
|
ticketPlural: "tickets",
|
|
68
68
|
closeOrderSummary: "Close order summary"
|
|
69
69
|
};
|
|
70
|
-
let x = e.prop(t, "loading", 3, !1), p = e.prop(t, "quantities", 19, () => ({})), n = e.prop(t, "donationAmounts", 19, () => ({})), I = e.prop(t, "eventTickets", 19, () => []), i = e.prop(t, "checkoutTicket", 3, null),
|
|
70
|
+
let x = e.prop(t, "loading", 3, !1), p = e.prop(t, "quantities", 19, () => ({})), n = e.prop(t, "donationAmounts", 19, () => ({})), I = e.prop(t, "eventTickets", 19, () => []), i = e.prop(t, "checkoutTicket", 3, null), R = e.prop(t, "isAgreed", 3, !0), ee = e.prop(t, "btnText", 3, void 0), W = e.prop(t, "showTerms", 3, !1), xe = e.prop(t, "promoApplied", 3, !1), J = e.prop(t, "promoDiscount", 3, 0), B = e.prop(t, "currentPromoRule", 3, null), De = e.prop(t, "executePurchase", 3, null), ge = e.prop(t, "elements", 3, null), Pe = e.prop(t, "venueServiceCharge", 19, () => ({
|
|
71
71
|
serviceFeeCents: 0,
|
|
72
72
|
serviceFeePercentage: 0,
|
|
73
73
|
serviceFeeChargeType: "both",
|
|
@@ -128,7 +128,7 @@ function er(V, t) {
|
|
|
128
128
|
const T = parseFloat(g.price) || 0, H = parseFloat(B()?.amount || "0") || 0;
|
|
129
129
|
return B().discountType === "%" ? (T * (1 - H / 100)).toFixed(2) : B().discountType === "$" ? Math.max(0, T - H).toFixed(2) : null;
|
|
130
130
|
}
|
|
131
|
-
let h = e.derived(() => Object.values(p()).reduce((g, y) => g + y, 0)),
|
|
131
|
+
let h = e.derived(() => Object.values(p()).reduce((g, y) => g + y, 0)), N = e.derived(() => e.get(h) > 0), Y = e.derived(() => tt(Object.keys(p()).reduce(
|
|
132
132
|
(g, y) => {
|
|
133
133
|
const T = I().find((te) => te.ID == y);
|
|
134
134
|
if (!T) return g;
|
|
@@ -168,10 +168,10 @@ function er(V, t) {
|
|
|
168
168
|
});
|
|
169
169
|
var ze = $a(), F = e.first_child(ze), Ee = e.child(F), je = e.child(Ee), Qe = e.child(je, !0);
|
|
170
170
|
e.reset(je), e.reset(Ee);
|
|
171
|
-
var Xe = e.sibling(Ee, 2),
|
|
171
|
+
var Xe = e.sibling(Ee, 2), Re = e.child(Xe);
|
|
172
172
|
{
|
|
173
173
|
var rt = (g) => {
|
|
174
|
-
var y =
|
|
174
|
+
var y = Na(), T = e.child(y), H = e.child(T, !0);
|
|
175
175
|
e.reset(T), e.reset(y), e.template_effect(() => {
|
|
176
176
|
e.set_class(T, 1, ye.smMuted), e.set_text(H, e.get(k).selectTickets);
|
|
177
177
|
}), e.append(g, y);
|
|
@@ -370,11 +370,11 @@ function er(V, t) {
|
|
|
370
370
|
]
|
|
371
371
|
), e.append(g, y);
|
|
372
372
|
};
|
|
373
|
-
e.if(
|
|
373
|
+
e.if(Re, (g) => {
|
|
374
374
|
e.get(h) === 0 ? g(rt) : g(Ge, -1);
|
|
375
375
|
});
|
|
376
376
|
}
|
|
377
|
-
var He = e.sibling(
|
|
377
|
+
var He = e.sibling(Re, 2);
|
|
378
378
|
{
|
|
379
379
|
var Ke = (g) => {
|
|
380
380
|
var y = Wa(), T = e.child(y), H = e.sibling(T), te = e.child(H, !0);
|
|
@@ -639,7 +639,7 @@ function er(V, t) {
|
|
|
639
639
|
}
|
|
640
640
|
e.reset(X), e.reset(H), e.reset(y), e.template_effect(
|
|
641
641
|
(j) => {
|
|
642
|
-
T = e.set_style(y, "", T, { "z-index": Et.overlay }), e.set_class(we, 1, `${ye.sm} flex items-center gap-1 tone-secondary`), e.set_text(Te, `${e.get(h) ?? ""} ${(e.get(h) > 1 ? e.get(k).ticketPlural : e.get(k).ticketSingular) ?? ""} `), e.set_class(v, 1, `${ye.h2} type-heading`), e.set_text(w, j), e.set_class(X, 1, `${ye.label} flex-1 min-w-36 h-12 rounded-lg touch-manipulation flex items-center justify-center ${e.get(h) === 0 || !
|
|
642
|
+
T = e.set_style(y, "", T, { "z-index": Et.overlay }), e.set_class(we, 1, `${ye.sm} flex items-center gap-1 tone-secondary`), e.set_text(Te, `${e.get(h) ?? ""} ${(e.get(h) > 1 ? e.get(k).ticketPlural : e.get(k).ticketSingular) ?? ""} `), e.set_class(v, 1, `${ye.h2} type-heading`), e.set_text(w, j), e.set_class(X, 1, `${ye.label} flex-1 min-w-36 h-12 rounded-lg touch-manipulation flex items-center justify-center ${e.get(h) === 0 || !R() || Q() ? "bg-bg-tertiary tone-muted cursor-not-allowed" : "bg-brand-primary text-white hover:bg-brand-primary/90"}`), X.disabled = e.get(h) === 0 || !R() || Q();
|
|
643
643
|
},
|
|
644
644
|
[() => $(e.get(ke))]
|
|
645
645
|
), e.delegated("click", te, f), e.delegated("click", X, () => {
|
|
@@ -647,13 +647,13 @@ function er(V, t) {
|
|
|
647
647
|
}), e.transition(3, y, () => Ot, () => ({ y: 100, duration: 200 })), e.append(g, y);
|
|
648
648
|
};
|
|
649
649
|
e.if(nt, (g) => {
|
|
650
|
-
e.get(
|
|
650
|
+
e.get(N) && g(lt);
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
653
|
e.template_effect(() => {
|
|
654
|
-
e.set_class(je, 1, e.clsx(ye.h3)), e.set_text(Qe, e.get(k).orderSummary), e.set_class(Ve, 1, `w-full h-12 font-semibold rounded-lg flex items-center justify-center transition-colors select-none touch-manipulation ${e.get(h) === 0 || !
|
|
654
|
+
e.set_class(je, 1, e.clsx(ye.h3)), e.set_text(Qe, e.get(k).orderSummary), e.set_class(Ve, 1, `w-full h-12 font-semibold rounded-lg flex items-center justify-center transition-colors select-none touch-manipulation ${e.get(h) === 0 || !R() || Q() ? "bg-bg-tertiary tone-muted cursor-not-allowed" : "bg-brand-primary text-white hover:bg-brand-primary/90"}`), Ve.disabled = e.get(h) === 0 || !R() || Q();
|
|
655
655
|
}), e.delegated("click", Ve, () => {
|
|
656
|
-
e.get(h) === 0 || !
|
|
656
|
+
e.get(h) === 0 || !R() || Q() || (De() ? De()(ge()) : i() && i()());
|
|
657
657
|
}), e.append(V, ze), e.pop();
|
|
658
658
|
}
|
|
659
659
|
e.delegate(["click"]);
|
|
@@ -696,8 +696,8 @@ function sr(V, t) {
|
|
|
696
696
|
const I = z.get(String(p));
|
|
697
697
|
let i = n;
|
|
698
698
|
if (I) {
|
|
699
|
-
const
|
|
700
|
-
typeof
|
|
699
|
+
const R = I.remainingCapacity;
|
|
700
|
+
typeof R == "number" && Number.isFinite(R) && (i = Math.min(i, Math.max(0, R)));
|
|
701
701
|
const ee = I.maxQuantity;
|
|
702
702
|
typeof ee == "number" && Number.isFinite(ee) && ee > 0 && (i = Math.min(i, ee));
|
|
703
703
|
}
|
|
@@ -708,7 +708,7 @@ function sr(V, t) {
|
|
|
708
708
|
var nr = 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>'), lr = e.from_html('<span class="sold-out-pill type-caption whitespace-nowrap svelte-12zmutv" role="status"> </span>'), or = e.from_html('<span class="sales-start-badge type-caption text-secondary whitespace-nowrap svelte-12zmutv" role="status"> </span>'), dr = e.from_html('<span class="sr-only" role="alert"> </span>'), cr = e.from_html('<div class="donation-input-wrapper svelte-12zmutv"><!> <!></div>'), vr = 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), ur = e.from_html('<span class="price-lg text-primary svelte-12zmutv"> </span>'), pr = 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), fr = e.from_html('<span class="badge badge-discount"> </span>'), gr = e.from_html('<span class="badge badge-unlocked"> </span>'), _r = e.from_html('<div class="flex-row-2 mb-2 flex-wrap" role="status" aria-live="polite"><!> <!></div>'), mr = e.from_html('<p class="type-body text-secondary mb-3 svelte-12zmutv"> </p>'), hr = e.from_html("<span> </span>"), br = e.from_html('<p class="sales-end-text type-caption svelte-12zmutv" role="status"> </p>'), xr = 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="type-subheading 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>');
|
|
709
709
|
function yr(V, t) {
|
|
710
710
|
e.push(t, !0);
|
|
711
|
-
let z = e.prop(t, "fee", 3, "0.00"), x = e.prop(t, "quantity", 3, 0), p = e.prop(t, "soldOut", 3, !1), n = e.prop(t, "status", 3, null), I = e.prop(t, "salesBegin", 3, null), i = e.prop(t, "salesEnd", 3, null),
|
|
711
|
+
let z = e.prop(t, "fee", 3, "0.00"), x = e.prop(t, "quantity", 3, 0), p = e.prop(t, "soldOut", 3, !1), n = e.prop(t, "status", 3, null), I = e.prop(t, "salesBegin", 3, null), i = e.prop(t, "salesEnd", 3, null), R = e.prop(t, "remainingCapacity", 3, null), ee = e.prop(
|
|
712
712
|
t,
|
|
713
713
|
"totalCapacity",
|
|
714
714
|
3,
|
|
@@ -759,8 +759,8 @@ function yr(V, t) {
|
|
|
759
759
|
""
|
|
760
760
|
// User-entered donation amount (string for input binding)
|
|
761
761
|
), Pe = e.prop(t, "syncing", 3, !1), _ = e.prop(t, "labels", 19, () => ({}));
|
|
762
|
-
const le = e.derived(() => De() === 2), Q = e.derived(() => parseFloat(ge()) || 0), ve = e.derived(() => e.get(le) && ge() !== "" && e.get(Q) < 1 ? _().minimumDonation || "Minimum $1.00" : ""), k = e.derived(() => !e.get(le) || ge() !== "" && e.get(Q) >= 1), ue = e.derived(() => parseFloat(t.price) || 0), C = e.derived(() => e.get(ue) === 0 ? 0 : parseFloat(z()) || 0), q = e.derived(() => $(e.get(ue) + e.get(C))), O = e.derived(() => $(e.get(C))), E = e.derived(() => xe() ? parseFloat(xe()) : null), b = e.derived(() => e.get(E) === null || e.get(E) === 0 ? 0 : parseFloat(z()) || 0), f = e.derived(() => e.get(E) !== null ? $(e.get(E) + e.get(b)) : null), U = e.derived(() => ee() ??
|
|
763
|
-
const o =
|
|
762
|
+
const le = e.derived(() => De() === 2), Q = e.derived(() => parseFloat(ge()) || 0), ve = e.derived(() => e.get(le) && ge() !== "" && e.get(Q) < 1 ? _().minimumDonation || "Minimum $1.00" : ""), k = e.derived(() => !e.get(le) || ge() !== "" && e.get(Q) >= 1), ue = e.derived(() => parseFloat(t.price) || 0), C = e.derived(() => e.get(ue) === 0 ? 0 : parseFloat(z()) || 0), q = e.derived(() => $(e.get(ue) + e.get(C))), O = e.derived(() => $(e.get(C))), E = e.derived(() => xe() ? parseFloat(xe()) : null), b = e.derived(() => e.get(E) === null || e.get(E) === 0 ? 0 : parseFloat(z()) || 0), f = e.derived(() => e.get(E) !== null ? $(e.get(E) + e.get(b)) : null), U = e.derived(() => ee() ?? R() ?? 0), h = e.derived(() => {
|
|
763
|
+
const o = R() ?? 0, v = e.get(U);
|
|
764
764
|
if (v === 0 || n() === "scheduled" || n() === "sales_ended" || e.get(
|
|
765
765
|
ue
|
|
766
766
|
// no scarcity on free tickets
|
|
@@ -771,7 +771,7 @@ function yr(V, t) {
|
|
|
771
771
|
type: "scarcity",
|
|
772
772
|
showFlame: !0
|
|
773
773
|
} : w === "low" ? { text: "Few tickets left", type: "scarcity", showFlame: !0 } : null;
|
|
774
|
-
}),
|
|
774
|
+
}), N = e.derived(() => e.get(h) != null && e.get(h).type === "scarcity");
|
|
775
775
|
function Y(o) {
|
|
776
776
|
return ma(o, "UTC");
|
|
777
777
|
}
|
|
@@ -845,7 +845,7 @@ function yr(V, t) {
|
|
|
845
845
|
e.reset(de);
|
|
846
846
|
var K = e.sibling(de, 2);
|
|
847
847
|
{
|
|
848
|
-
let Ce = e.derived(() => W() !== null && x() >= W() ||
|
|
848
|
+
let Ce = e.derived(() => W() !== null && x() >= W() || R() !== null && x() >= R() || !e.get(k) || Pe()), Me = e.derived(() => (_().increaseQuantity || "Increase quantity for {title}").replace("{title}", t.title));
|
|
849
849
|
Ye(K, {
|
|
850
850
|
variant: "icon-brand",
|
|
851
851
|
size: "icon-sm",
|
|
@@ -870,7 +870,7 @@ function yr(V, t) {
|
|
|
870
870
|
() => (_().quantitySelector || "Quantity selector for {title}").replace("{title}", t.title)
|
|
871
871
|
]
|
|
872
872
|
), e.append(o, v);
|
|
873
|
-
},
|
|
873
|
+
}, Re = (o) => {
|
|
874
874
|
var v = lr(), w = e.child(v, !0);
|
|
875
875
|
e.reset(v), e.template_effect(() => {
|
|
876
876
|
e.set_attribute(v, "aria-label", _().statusSoldOut || "Sold out"), e.set_text(w, _().statusSoldOut || "Sold out");
|
|
@@ -880,7 +880,7 @@ function yr(V, t) {
|
|
|
880
880
|
e.reset(v), e.template_effect(() => e.set_text(w, e.get(he).message)), e.append(o, v);
|
|
881
881
|
};
|
|
882
882
|
e.if(Qe, (o) => {
|
|
883
|
-
!p() && n() !== "scheduled" && n() !== "sales_ended" ? o(Xe) : p() ? o(
|
|
883
|
+
!p() && n() !== "scheduled" && n() !== "sales_ended" ? o(Xe) : p() ? o(Re, 1) : n() === "scheduled" && e.get(he)?.message && o(rt, 2);
|
|
884
884
|
});
|
|
885
885
|
}
|
|
886
886
|
e.reset(ze), e.reset(ke);
|
|
@@ -1034,7 +1034,7 @@ function yr(V, t) {
|
|
|
1034
1034
|
{
|
|
1035
1035
|
var te = (o) => {
|
|
1036
1036
|
{
|
|
1037
|
-
let v = e.derived(() =>
|
|
1037
|
+
let v = e.derived(() => R() ?? 0);
|
|
1038
1038
|
pa(o, {
|
|
1039
1039
|
get remaining() {
|
|
1040
1040
|
return e.get(v);
|
|
@@ -1050,7 +1050,7 @@ function yr(V, t) {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
};
|
|
1052
1052
|
e.if(H, (o) => {
|
|
1053
|
-
e.get(
|
|
1053
|
+
e.get(N) && o(te);
|
|
1054
1054
|
});
|
|
1055
1055
|
}
|
|
1056
1056
|
e.reset(g);
|
|
@@ -1090,7 +1090,7 @@ function wr(V, t) {
|
|
|
1090
1090
|
var Tr = 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 tone-muted 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> </h3> <p class="type-body tone-secondary max-w-72"> </p></div>'), Cr = e.from_html('<div class="section-header bg-bg-secondary px-5 py-3"><h2 class="type-subheading tone-primary"> </h2></div>'), Ir = e.from_html('<div role="group"><!> <div role="list"><!></div></div>'), Dr = e.from_html("<section></section>");
|
|
1091
1091
|
function Sr(V, t) {
|
|
1092
1092
|
e.push(t, !0);
|
|
1093
|
-
let z = e.prop(t, "venueFeesReady", 3, !1), x = e.prop(t, "tickets", 19, () => []), p = e.prop(t, "quantities", 19, () => ({})), n = e.prop(t, "donationAmounts", 19, () => ({})), I = e.prop(t, "revealHiddenTickets", 3, !1), i = e.prop(t, "revealTicketIds", 19, () => []),
|
|
1093
|
+
let z = e.prop(t, "venueFeesReady", 3, !1), x = e.prop(t, "tickets", 19, () => []), p = e.prop(t, "quantities", 19, () => ({})), n = e.prop(t, "donationAmounts", 19, () => ({})), I = e.prop(t, "revealHiddenTickets", 3, !1), i = e.prop(t, "revealTicketIds", 19, () => []), R = e.prop(
|
|
1094
1094
|
t,
|
|
1095
1095
|
"currentPromoRule",
|
|
1096
1096
|
3,
|
|
@@ -1144,7 +1144,7 @@ function Sr(V, t) {
|
|
|
1144
1144
|
e.each(q, 21, () => Object.entries(e.get(Pe)), e.index, (O, E) => {
|
|
1145
1145
|
var b = e.derived(() => e.to_array(e.get(E), 2));
|
|
1146
1146
|
let f = () => e.get(b)[0], U = () => e.get(b)[1];
|
|
1147
|
-
var h = Ir(),
|
|
1147
|
+
var h = Ir(), N = e.child(h);
|
|
1148
1148
|
{
|
|
1149
1149
|
var Y = (fe) => {
|
|
1150
1150
|
var be = Cr(), ke = e.child(be), ze = e.child(ke, !0);
|
|
@@ -1155,19 +1155,19 @@ function Sr(V, t) {
|
|
|
1155
1155
|
[() => f().replace(/\s+/g, "-").toLowerCase()]
|
|
1156
1156
|
), e.append(fe, be);
|
|
1157
1157
|
};
|
|
1158
|
-
e.if(
|
|
1158
|
+
e.if(N, (fe) => {
|
|
1159
1159
|
e.get(le) && f() !== e.get(_) && fe(Y);
|
|
1160
1160
|
});
|
|
1161
1161
|
}
|
|
1162
|
-
var oe = e.sibling(
|
|
1162
|
+
var oe = e.sibling(N, 2), pe = e.child(oe);
|
|
1163
1163
|
{
|
|
1164
1164
|
var Se = (fe) => {
|
|
1165
1165
|
var be = e.comment(), ke = e.first_child(be);
|
|
1166
1166
|
e.each(ke, 17, U, e.index, (ze, F) => {
|
|
1167
|
-
const Ee = e.derived(() => e.get(F).visibility >= 2 && I() || i().includes(e.get(F).ID)), je = e.derived(() =>
|
|
1167
|
+
const Ee = e.derived(() => e.get(F).visibility >= 2 && I() || i().includes(e.get(F).ID)), je = e.derived(() => R()?.discountTicketIds || []), Qe = e.derived(() => e.get(je).length === 0 || e.get(je).includes(e.get(F).ID)), Xe = e.derived(() => R()?.provideDiscount && e.get(Qe) && (R()?.discountType === "%" || R()?.discountType === "$")), Re = e.derived(() => (() => {
|
|
1168
1168
|
if (!e.get(Xe)) return null;
|
|
1169
|
-
const We = parseFloat(e.get(F).price) || 0, Je = parseFloat(
|
|
1170
|
-
return
|
|
1169
|
+
const We = parseFloat(e.get(F).price) || 0, Je = parseFloat(R()?.amount || "0") || 0;
|
|
1170
|
+
return R().discountType === "%" ? (We * (1 - Je / 100)).toFixed(2) : R().discountType === "$" ? Math.max(0, We - Je).toFixed(2) : null;
|
|
1171
1171
|
})()), rt = e.derived(() => xe(e.get(F))), Ge = e.derived(() => J(e.get(F))), He = e.derived(() => e.get(F).minQuantity ?? 1), Ke = e.derived(() => e.get(F).remainingCapacity), Ve = e.derived(() => e.get(F).soldOut || e.get(Ke) !== null && e.get(Ke) !== void 0 && e.get(He) > e.get(Ke)), it = e.derived(() => e.get(F).type ?? 0);
|
|
1172
1172
|
e.derived(() => e.get(it) === 2);
|
|
1173
1173
|
{
|
|
@@ -1186,7 +1186,7 @@ function Sr(V, t) {
|
|
|
1186
1186
|
return e.get(F).price;
|
|
1187
1187
|
},
|
|
1188
1188
|
get discountedPrice() {
|
|
1189
|
-
return e.get(
|
|
1189
|
+
return e.get(Re);
|
|
1190
1190
|
},
|
|
1191
1191
|
get quantity() {
|
|
1192
1192
|
return e.get(We);
|
|
@@ -1267,10 +1267,10 @@ const Ar = aa("PromocodeInput");
|
|
|
1267
1267
|
var Yt = e.from_html('<div class="self-start mt-5"><!></div>'), Pr = e.from_html('<p id="promo-hint" class="promo-message success mt-2 body-sm text-accent-success" role="status" aria-live="polite"> </p>'), Er = e.from_html('<p id="promo-error" class="sr-only svelte-ztoygy" role="alert"> </p>'), Or = 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>');
|
|
1268
1268
|
function Fr(V, t) {
|
|
1269
1269
|
e.push(t, !0);
|
|
1270
|
-
let z = e.prop(t, "eventID", 3, ""), x = e.prop(t, "labels", 19, () => ({})), p = e.state(""), n = e.state(!1), I = e.state(""), i = e.state(""),
|
|
1270
|
+
let z = e.prop(t, "eventID", 3, ""), x = e.prop(t, "labels", 19, () => ({})), p = e.state(""), n = e.state(!1), I = e.state(""), i = e.state(""), R = e.state(!1), ee = e.state(!1);
|
|
1271
1271
|
const W = async () => {
|
|
1272
1272
|
const b = e.get(p).trim().toUpperCase();
|
|
1273
|
-
if (e.set(I, ""), e.set(i, ""), e.set(
|
|
1273
|
+
if (e.set(I, ""), e.set(i, ""), e.set(R, !1), !b) {
|
|
1274
1274
|
e.set(I, x().pleaseEnterPromoCode || "Please enter a promo code.", !0), e.set(n, !0);
|
|
1275
1275
|
return;
|
|
1276
1276
|
}
|
|
@@ -1278,7 +1278,7 @@ function Fr(V, t) {
|
|
|
1278
1278
|
try {
|
|
1279
1279
|
const f = await ba(z(), b);
|
|
1280
1280
|
if (f.valid) {
|
|
1281
|
-
e.set(
|
|
1281
|
+
e.set(R, !0);
|
|
1282
1282
|
let U = 0;
|
|
1283
1283
|
const h = [];
|
|
1284
1284
|
if (f.revealHiddenTickets && h.push(x().hiddenTicketsVisible || "Hidden tickets are now visible."), f.provideDiscount) {
|
|
@@ -1293,8 +1293,8 @@ function Fr(V, t) {
|
|
|
1293
1293
|
h.length > 0 ? `${(x().promoApplied || "{code} applied.").replace("{code}", b)} ${h.join(" ")}` : (x().promoApplied || "{code} applied.").replace("{code}", b),
|
|
1294
1294
|
!0
|
|
1295
1295
|
);
|
|
1296
|
-
const
|
|
1297
|
-
gt(`checkout-promocode-${z()}`, b,
|
|
1296
|
+
const N = { expires: 1, secure: !0, sameSite: "none", path: "/" };
|
|
1297
|
+
gt(`checkout-promocode-${z()}`, b, N), gt("checkout-promo-discount", U.toString(), N), gt(`checkout-promo-reveal-${z()}`, f.revealHiddenTickets ? "1" : "0", N), gt(`checkout-promo-reveal-ids-${z()}`, JSON.stringify(f.revealTicketIds || []), N), gt(`checkout-promo-discount-type-${z()}`, f.discountType || "", N), t.onpromoChange?.({
|
|
1298
1298
|
code: b,
|
|
1299
1299
|
error: "",
|
|
1300
1300
|
hint: e.get(i),
|
|
@@ -1329,7 +1329,7 @@ function Fr(V, t) {
|
|
|
1329
1329
|
e.set(ee, !1);
|
|
1330
1330
|
}
|
|
1331
1331
|
}, xe = () => {
|
|
1332
|
-
e.set(p, ""), e.set(I, ""), e.set(i, ""), e.set(
|
|
1332
|
+
e.set(p, ""), e.set(I, ""), e.set(i, ""), e.set(R, !1), e.set(n, !1), at(`checkout-promocode-${z()}`), at("checkout-promo-discount"), at(`checkout-promo-reveal-${z()}`), at(`checkout-promo-reveal-ids-${z()}`), at(`checkout-promo-discount-type-${z()}`), t.onpromoChange?.({
|
|
1333
1333
|
code: "",
|
|
1334
1334
|
error: "",
|
|
1335
1335
|
hint: "",
|
|
@@ -1354,7 +1354,7 @@ function Fr(V, t) {
|
|
|
1354
1354
|
e.reset(ge);
|
|
1355
1355
|
var _ = e.sibling(ge, 2), le = e.child(_), Q = e.child(le);
|
|
1356
1356
|
{
|
|
1357
|
-
let b = e.derived(() => x().promoCode || "Promo code"), f = e.derived(() => e.get(
|
|
1357
|
+
let b = e.derived(() => x().promoCode || "Promo code"), f = e.derived(() => e.get(R) || e.get(ee)), U = e.derived(() => e.get(n) ? e.get(I) : ""), h = e.derived(() => e.get(i) ? "promo-hint" : e.get(I) ? "promo-error" : void 0);
|
|
1358
1358
|
ta(Q, {
|
|
1359
1359
|
get label() {
|
|
1360
1360
|
return e.get(b);
|
|
@@ -1376,8 +1376,8 @@ function Fr(V, t) {
|
|
|
1376
1376
|
get value() {
|
|
1377
1377
|
return e.get(p);
|
|
1378
1378
|
},
|
|
1379
|
-
set value(
|
|
1380
|
-
e.set(p,
|
|
1379
|
+
set value(N) {
|
|
1380
|
+
e.set(p, N, !0);
|
|
1381
1381
|
}
|
|
1382
1382
|
});
|
|
1383
1383
|
}
|
|
@@ -1387,13 +1387,13 @@ function Fr(V, t) {
|
|
|
1387
1387
|
var k = (b) => {
|
|
1388
1388
|
var f = Yt(), U = e.child(f);
|
|
1389
1389
|
{
|
|
1390
|
-
let h = e.derived(() => x().removePromoCode || "Remove promo code"),
|
|
1390
|
+
let h = e.derived(() => x().removePromoCode || "Remove promo code"), N = e.derived(() => e.get(p));
|
|
1391
1391
|
Ye(U, {
|
|
1392
1392
|
variant: "outline",
|
|
1393
1393
|
onclick: xe,
|
|
1394
1394
|
class: "h-10",
|
|
1395
1395
|
get "aria-label"() {
|
|
1396
|
-
return `${e.get(h) ?? ""} ${e.get(
|
|
1396
|
+
return `${e.get(h) ?? ""} ${e.get(N) ?? ""}`;
|
|
1397
1397
|
},
|
|
1398
1398
|
children: (Y, oe) => {
|
|
1399
1399
|
e.next();
|
|
@@ -1417,10 +1417,10 @@ function Fr(V, t) {
|
|
|
1417
1417
|
get "aria-label"() {
|
|
1418
1418
|
return e.get(h);
|
|
1419
1419
|
},
|
|
1420
|
-
children: (
|
|
1420
|
+
children: (N, Y) => {
|
|
1421
1421
|
e.next();
|
|
1422
1422
|
var oe = e.text();
|
|
1423
|
-
e.template_effect(() => e.set_text(oe, e.get(ee) ? x().checking || "Checking..." : x().apply || "Apply")), e.append(
|
|
1423
|
+
e.template_effect(() => e.set_text(oe, e.get(ee) ? x().checking || "Checking..." : x().apply || "Apply")), e.append(N, oe);
|
|
1424
1424
|
},
|
|
1425
1425
|
$$slots: { default: !0 }
|
|
1426
1426
|
});
|
|
@@ -1428,7 +1428,7 @@ function Fr(V, t) {
|
|
|
1428
1428
|
e.reset(f), e.append(b, f);
|
|
1429
1429
|
};
|
|
1430
1430
|
e.if(ve, (b) => {
|
|
1431
|
-
e.get(
|
|
1431
|
+
e.get(R) ? b(k) : b(ue, -1);
|
|
1432
1432
|
});
|
|
1433
1433
|
}
|
|
1434
1434
|
e.reset(_);
|
|
@@ -1465,11 +1465,11 @@ function Lr(V, t) {
|
|
|
1465
1465
|
}), e.next(4), e.reset(x), e.template_effect(() => e.set_attribute(x, "aria-label", z().loadingOrderSummary || "Loading order summary")), e.append(V, x), e.pop();
|
|
1466
1466
|
}
|
|
1467
1467
|
var Br = e.from_html('<div class="w-14 h-14 shrink-0 rounded-md overflow-hidden bg-bg-secondary" aria-hidden="true"><!></div>'), zr = e.from_html("<p> </p>"), Qr = 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>'), qr = 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 tone-secondary hover:bg-bg-secondary"><!></button> <!> <div class="flex-1 min-w-0"><h1 class="heading-lg break-words"> </h1> <div class="body-sm tone-secondary"><p><time> </time></p> <p> </p> <!></div></div> <!></header>');
|
|
1468
|
-
function
|
|
1468
|
+
function Rr(V, t) {
|
|
1469
1469
|
e.push(t, !0);
|
|
1470
1470
|
let z = e.prop(t, "variant", 3, "tickets"), x = e.prop(t, "total", 3, 0), p = e.prop(t, "onCancel", 3, () => {
|
|
1471
1471
|
}), n = e.prop(t, "onInfoClick", 3, () => {
|
|
1472
|
-
}), I = e.prop(t, "labels", 19, () => ({})), i = e.derived(() => t.event.timeZone || t.event.timezone || xa()),
|
|
1472
|
+
}), I = e.prop(t, "labels", 19, () => ({})), i = e.derived(() => t.event.timeZone || t.event.timezone || xa()), R = e.derived(() => t.event.displayEndTime === !0), ee = e.derived(() => t.event.displayDoorsTime === !0), W = e.derived(() => z() === "checkout"), xe = e.derived(() => x() > 0 ? `${$(x())}` : (
|
|
1473
1473
|
/* 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. */
|
|
1474
1474
|
I().free || "Free"
|
|
1475
1475
|
));
|
|
@@ -1478,14 +1478,14 @@ function Nr(V, t) {
|
|
|
1478
1478
|
var ge = e.sibling(B, 2);
|
|
1479
1479
|
{
|
|
1480
1480
|
var Pe = (h) => {
|
|
1481
|
-
var
|
|
1481
|
+
var N = Br(), Y = e.child(N);
|
|
1482
1482
|
Ma(Y, {
|
|
1483
1483
|
get src() {
|
|
1484
1484
|
return t.event.image;
|
|
1485
1485
|
},
|
|
1486
1486
|
alt: "",
|
|
1487
1487
|
class: "w-full h-full"
|
|
1488
|
-
}), e.reset(
|
|
1488
|
+
}), e.reset(N), e.append(h, N);
|
|
1489
1489
|
};
|
|
1490
1490
|
e.if(ge, (h) => {
|
|
1491
1491
|
t.event.image && h(Pe);
|
|
@@ -1500,10 +1500,10 @@ function Nr(V, t) {
|
|
|
1500
1500
|
var E = e.sibling(q, 2);
|
|
1501
1501
|
{
|
|
1502
1502
|
var b = (h) => {
|
|
1503
|
-
var
|
|
1504
|
-
e.reset(
|
|
1503
|
+
var N = zr(), Y = e.child(N, !0);
|
|
1504
|
+
e.reset(N), e.template_effect((oe) => e.set_text(Y, oe), [
|
|
1505
1505
|
() => (I().doorsOpen || "Doors open {time}").replace("{time}", Ca(t.event.doorsOpenTime, e.get(i)))
|
|
1506
|
-
]), e.append(h,
|
|
1506
|
+
]), e.append(h, N);
|
|
1507
1507
|
};
|
|
1508
1508
|
e.if(E, (h) => {
|
|
1509
1509
|
e.get(ee) && t.event.doorsOpenTime && h(b);
|
|
@@ -1513,10 +1513,10 @@ function Nr(V, t) {
|
|
|
1513
1513
|
var f = e.sibling(_, 2);
|
|
1514
1514
|
{
|
|
1515
1515
|
var U = (h) => {
|
|
1516
|
-
var
|
|
1516
|
+
var N = Qr(), Y = e.child(N), oe = e.child(Y, !0);
|
|
1517
1517
|
e.reset(Y);
|
|
1518
1518
|
var pe = e.sibling(Y, 2), Se = e.child(pe);
|
|
1519
|
-
|
|
1519
|
+
Ra(Se, { size: "20" }), e.reset(pe), e.reset(N), e.template_effect(
|
|
1520
1520
|
(he) => {
|
|
1521
1521
|
e.set_attribute(Y, "aria-label", he), e.set_text(oe, e.get(xe)), e.set_attribute(pe, "aria-label", I().viewOrderDetails || "View order details");
|
|
1522
1522
|
},
|
|
@@ -1525,31 +1525,31 @@ function Nr(V, t) {
|
|
|
1525
1525
|
]
|
|
1526
1526
|
), e.delegated("click", pe, function(...he) {
|
|
1527
1527
|
n()?.apply(this, he);
|
|
1528
|
-
}), e.append(h,
|
|
1528
|
+
}), e.append(h, N);
|
|
1529
1529
|
};
|
|
1530
1530
|
e.if(f, (h) => {
|
|
1531
1531
|
e.get(W) && h(U);
|
|
1532
1532
|
});
|
|
1533
1533
|
}
|
|
1534
1534
|
e.reset(J), e.template_effect(
|
|
1535
|
-
(h,
|
|
1536
|
-
e.set_attribute(B, "aria-label", e.get(W) ? I().goBackToTicketSelection || "Go back to ticket selection" : I().goBackToEventDetails || "Go back to event details"), e.set_text(Q, t.event.name), e.set_attribute(ve, "aria-label", I().ariaEventDateTime || "Event date and time"), e.set_attribute(ue, "datetime", t.event.startDateTime), e.set_text(C, h), e.set_text(O,
|
|
1535
|
+
(h, N) => {
|
|
1536
|
+
e.set_attribute(B, "aria-label", e.get(W) ? I().goBackToTicketSelection || "Go back to ticket selection" : I().goBackToEventDetails || "Go back to event details"), e.set_text(Q, t.event.name), e.set_attribute(ve, "aria-label", I().ariaEventDateTime || "Event date and time"), e.set_attribute(ue, "datetime", t.event.startDateTime), e.set_text(C, h), e.set_text(O, N);
|
|
1537
1537
|
},
|
|
1538
1538
|
[
|
|
1539
1539
|
() => ka(t.event.startDateTime, e.get(i)),
|
|
1540
|
-
() => e.get(
|
|
1540
|
+
() => e.get(R) && t.event.endDateTime ? wa(t.event.startDateTime, t.event.endDateTime, e.get(i)) : Ta(t.event.startDateTime, e.get(i))
|
|
1541
1541
|
]
|
|
1542
1542
|
), e.delegated("click", B, function(...h) {
|
|
1543
1543
|
p()?.apply(this, h);
|
|
1544
1544
|
}), e.append(V, J), e.pop();
|
|
1545
1545
|
}
|
|
1546
1546
|
e.delegate(["click"]);
|
|
1547
|
-
const
|
|
1548
|
-
var
|
|
1547
|
+
const Ne = aa("CartView");
|
|
1548
|
+
var Nr = e.from_html('<div class="flex items-center justify-center py-12" aria-live="polite"><p class="tone-secondary"> </p></div>'), Gr = 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>'), Hr = e.from_html('<div class="text-center py-12" role="alert"><p> </p> <p class="tone-secondary mb-6"> </p> <button class="go-back-btn text-white px-4 py-2 rounded-lg svelte-19g9ni4"> </button></div>'), Vr = e.from_html('<div class="text-center py-12" role="alert"><p>This event has ended</p> <p class="tone-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>'), Xt = e.from_html('<div class="px-4 md:px-5 pt-3"><!></div>'), Ur = e.from_html('<div class="hidden md:block w-80 h-[calc(100vh-40px)]"></div>'), Wr = 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>'), Jr = e.from_html('<h3 id="error-modal-title" class="heading-lg"><!></h3>'), Kt = e.from_html('<p class="body-sm"> </p> <p class="tone-secondary mt-2"> </p>', 1), Zr = e.from_html('<div id="error-modal-description"><!></div>'), Yr = e.from_html("<!> <!>", 1), Xr = e.from_html('<div role="group" aria-label="Error modal actions"><!></div>'), Kr = e.from_html('<h3 id="expired-modal-title" class="heading-lg"> </h3>'), $r = e.from_html('<p id="expired-modal-description" class="body-sm tone-secondary"> </p>'), ei = e.from_html('<h3 id="availability-modal-title" class="heading-lg"> </h3>'), ti = e.from_html('<li class="tone-secondary type-body"><span class="type-label"> </span> <!></li>'), $t = e.from_html('<p class="tone-secondary mt-4"> </p>'), ai = e.from_html('<div id="availability-modal-description"><p class="tone-secondary mb-4"> </p> <ul class="space-y-2"></ul> <!></div>'), ri = e.from_html('<div role="group" aria-label="Availability modal actions"><!> <!></div>'), ii = e.from_html('<div class="px-5 md:px-10 py-12 bg-card"><!></div> <!> <!> <!>', 1);
|
|
1549
1549
|
function fi(V, t) {
|
|
1550
1550
|
e.push(t, !0);
|
|
1551
|
-
let z = e.prop(t, "organizationId", 3, ""), x = e.prop(t, "venueId", 3, ""), p = e.prop(t, "initialEventData", 3, null), n = e.prop(t, "labels", 19, () => ({})), I = e.state(!1), i = e.state(null),
|
|
1552
|
-
const h = Mt(),
|
|
1551
|
+
let z = e.prop(t, "organizationId", 3, ""), x = e.prop(t, "venueId", 3, ""), p = e.prop(t, "initialEventData", 3, null), n = e.prop(t, "labels", 19, () => ({})), I = e.state(!1), i = e.state(null), R = e.state(null), ee = e.state(e.proxy([])), W = e.state(!1), xe = e.state(!0), J = e.state(null), B = e.state(!1), De = e.state(!1), ge = e.state(!1), Pe = e.state(0), _ = e.state(void 0), le = e.state(void 0), Q = e.state(e.proxy({})), ve = e.state(""), k = e.state(""), ue = e.state(0), C = e.state(""), q = e.state(!1), O = e.state(0), E = e.state(!1), b = null, f = null, U = null;
|
|
1552
|
+
const h = Mt(), N = Mt();
|
|
1553
1553
|
let Y = e.state(
|
|
1554
1554
|
"cart_failed"
|
|
1555
1555
|
// 'cart_failed' | 'cart_success_network_error'
|
|
@@ -1572,9 +1572,9 @@ function fi(V, t) {
|
|
|
1572
1572
|
0
|
|
1573
1573
|
))), ze = 0, F = e.state(0), Ee = e.state(0), je = e.state(!1), Qe = null;
|
|
1574
1574
|
e.derived(() => tt(e.get(ke) + ze + e.get(F)));
|
|
1575
|
-
let Xe = e.derived(() => ar(e.get(ke), e.get(ue), e.get(C))),
|
|
1575
|
+
let Xe = e.derived(() => ar(e.get(ke), e.get(ue), e.get(C))), Re = e.state(!1), rt = !1, Ge = e.state(!1);
|
|
1576
1576
|
async function He(l, r) {
|
|
1577
|
-
if (e.get(Ge) || e.get(
|
|
1577
|
+
if (e.get(Ge) || e.get(Re))
|
|
1578
1578
|
return;
|
|
1579
1579
|
const u = {
|
|
1580
1580
|
...e.get(Q),
|
|
@@ -1593,28 +1593,28 @@ function fi(V, t) {
|
|
|
1593
1593
|
if (!a) return;
|
|
1594
1594
|
e.set(Ge, !0);
|
|
1595
1595
|
try {
|
|
1596
|
-
await Fa(a, e.get(Q)) ||
|
|
1596
|
+
await Fa(a, e.get(Q)) || Ne.warn("Cart quantity sync failed; UI may not match server");
|
|
1597
1597
|
} finally {
|
|
1598
1598
|
e.set(Ge, !1);
|
|
1599
1599
|
}
|
|
1600
1600
|
}
|
|
1601
1601
|
}
|
|
1602
1602
|
async function Ke() {
|
|
1603
|
-
if (!(e.get(
|
|
1604
|
-
e.set(
|
|
1603
|
+
if (!(e.get(Re) || e.get(E))) {
|
|
1604
|
+
e.set(Re, !0);
|
|
1605
1605
|
try {
|
|
1606
|
-
const l = await
|
|
1606
|
+
const l = await Rt({
|
|
1607
1607
|
eventID: e.get(i).eventID,
|
|
1608
1608
|
quantities: e.get(Q),
|
|
1609
1609
|
promoCode: e.get(ve) || void 0,
|
|
1610
1610
|
// Attribution (MISSION-TRUTH C2) rides additively on cart-create.
|
|
1611
|
-
attribution:
|
|
1611
|
+
attribution: Nt()
|
|
1612
1612
|
});
|
|
1613
1613
|
l?.success && l.uuid && (rt = !0, w(), Gt(e.get(i).eventID, null, e.get(i).venueID || e.get(i).venueId || null));
|
|
1614
1614
|
} catch (l) {
|
|
1615
|
-
|
|
1615
|
+
Ne.error("Error creating cart on ticket select:", l);
|
|
1616
1616
|
} finally {
|
|
1617
|
-
e.set(
|
|
1617
|
+
e.set(Re, !1);
|
|
1618
1618
|
}
|
|
1619
1619
|
}
|
|
1620
1620
|
}
|
|
@@ -1657,14 +1657,14 @@ function fi(V, t) {
|
|
|
1657
1657
|
body: JSON.stringify({ venueId: Number(e.get(i).venueID), lineItems: l })
|
|
1658
1658
|
});
|
|
1659
1659
|
if (!r.ok) {
|
|
1660
|
-
r.status === 422 ?
|
|
1660
|
+
r.status === 422 ? Ne.debug("Tax preview: venue has no tax address, falling back to 0") : Ne.error("Tax preview failed:", r.status), e.set(Ee, 0), e.set(F, 0), e.set(je, !1);
|
|
1661
1661
|
return;
|
|
1662
1662
|
}
|
|
1663
1663
|
const u = await r.json();
|
|
1664
1664
|
e.set(Ee, (u.taxTotal ?? 0) / 100), e.set(F, e.get(Ee), !0);
|
|
1665
1665
|
} catch (r) {
|
|
1666
1666
|
if (r.name === "AbortError") return;
|
|
1667
|
-
|
|
1667
|
+
Ne.error("Tax preview error:", r), e.set(Ee, 0), e.set(F, 0);
|
|
1668
1668
|
} finally {
|
|
1669
1669
|
Qe?.signal?.aborted || e.set(je, !1);
|
|
1670
1670
|
}
|
|
@@ -1698,7 +1698,7 @@ function fi(V, t) {
|
|
|
1698
1698
|
}
|
|
1699
1699
|
return r;
|
|
1700
1700
|
} catch (l) {
|
|
1701
|
-
return
|
|
1701
|
+
return Ne.error("Error checking ticket availability:", l), [];
|
|
1702
1702
|
}
|
|
1703
1703
|
}
|
|
1704
1704
|
async function $e() {
|
|
@@ -1722,20 +1722,20 @@ function fi(V, t) {
|
|
|
1722
1722
|
e.set(oe, !0);
|
|
1723
1723
|
else
|
|
1724
1724
|
try {
|
|
1725
|
-
const r = await
|
|
1725
|
+
const r = await Rt({
|
|
1726
1726
|
eventID: e.get(i).eventID,
|
|
1727
1727
|
quantities: e.get(Q),
|
|
1728
1728
|
promoCode: e.get(ve) || void 0,
|
|
1729
1729
|
// Attribution (MISSION-TRUTH C2) rides additively on cart-create.
|
|
1730
|
-
attribution:
|
|
1730
|
+
attribution: Nt()
|
|
1731
1731
|
});
|
|
1732
1732
|
if (!r) {
|
|
1733
|
-
e.set(W, !1), e.set(Y, "cart_failed"),
|
|
1733
|
+
e.set(W, !1), e.set(Y, "cart_failed"), N.open();
|
|
1734
1734
|
return;
|
|
1735
1735
|
}
|
|
1736
1736
|
e.set(oe, !0), r.success && Gt(e.get(i).eventID, null, e.get(i).venueID || e.get(i).venueId || null);
|
|
1737
1737
|
} catch (r) {
|
|
1738
|
-
|
|
1738
|
+
Ne.error("Order initiation failed:", r), e.set(W, !1), e.set(Y, "cart_failed"), N.open();
|
|
1739
1739
|
return;
|
|
1740
1740
|
}
|
|
1741
1741
|
try {
|
|
@@ -1748,7 +1748,7 @@ function fi(V, t) {
|
|
|
1748
1748
|
const u = `/?${r.toString()}`;
|
|
1749
1749
|
Lt(u, { noScroll: !1 }), e.set(W, !1);
|
|
1750
1750
|
} catch (r) {
|
|
1751
|
-
|
|
1751
|
+
Ne.error("Navigation failed after cart creation:", r), e.set(W, !1), e.set(Y, "cart_success_network_error"), N.open();
|
|
1752
1752
|
}
|
|
1753
1753
|
}
|
|
1754
1754
|
function nt() {
|
|
@@ -1763,10 +1763,10 @@ function fi(V, t) {
|
|
|
1763
1763
|
pe.close(), e.set(Se, [], !0), Te();
|
|
1764
1764
|
}
|
|
1765
1765
|
function g() {
|
|
1766
|
-
|
|
1766
|
+
N.close(), e.get(Y) === "cart_failed" && Te();
|
|
1767
1767
|
}
|
|
1768
1768
|
function y() {
|
|
1769
|
-
|
|
1769
|
+
N.close(), window.location.reload();
|
|
1770
1770
|
}
|
|
1771
1771
|
function T() {
|
|
1772
1772
|
e.set(De, window.innerWidth < 767);
|
|
@@ -1880,7 +1880,7 @@ function fi(V, t) {
|
|
|
1880
1880
|
const D = await Ft(t.eventId);
|
|
1881
1881
|
c === j && D.length > 0 && e.get(i) && e.set(i, { ...e.get(i), availableTickets: D }, !0);
|
|
1882
1882
|
} catch (D) {
|
|
1883
|
-
|
|
1883
|
+
Ne.error("Error re-fetching tickets with promo:", D);
|
|
1884
1884
|
}
|
|
1885
1885
|
}
|
|
1886
1886
|
}
|
|
@@ -1908,15 +1908,15 @@ function fi(V, t) {
|
|
|
1908
1908
|
e.set(xe, !0), e.set(J, null);
|
|
1909
1909
|
try {
|
|
1910
1910
|
if (p()) {
|
|
1911
|
-
if (e.set(
|
|
1912
|
-
e.set(i, Qt(e.get(
|
|
1911
|
+
if (e.set(R, p()), !e.get(B)) return;
|
|
1912
|
+
e.set(i, Qt(e.get(R)), !0), e.set(ee, e.get(i).availableTickets || [], !0);
|
|
1913
1913
|
} else {
|
|
1914
1914
|
try {
|
|
1915
1915
|
const s = await Sa(t.eventId);
|
|
1916
1916
|
if (!e.get(B) || l !== j) return;
|
|
1917
|
-
e.set(
|
|
1917
|
+
e.set(R, s, !0), e.set(i, Qt(e.get(R)), !0);
|
|
1918
1918
|
} catch (s) {
|
|
1919
|
-
if (
|
|
1919
|
+
if (Ne.error("Event fetch failed:", s), !e.get(B) || l !== j) return;
|
|
1920
1920
|
e.set(J, n().failedToLoadEvent || "Failed to load event", !0), e.set(xe, !1);
|
|
1921
1921
|
return;
|
|
1922
1922
|
}
|
|
@@ -1926,7 +1926,7 @@ function fi(V, t) {
|
|
|
1926
1926
|
e.set(ee, s, !0), e.get(ee).length > 0 && (e.get(i).availableTickets = e.get(ee));
|
|
1927
1927
|
} catch (s) {
|
|
1928
1928
|
if (!e.get(B) || l !== j) return;
|
|
1929
|
-
|
|
1929
|
+
Ne.error("Error fetching tickets:", s), e.set(ee, e.get(i).availableTickets || [], !0);
|
|
1930
1930
|
}
|
|
1931
1931
|
}
|
|
1932
1932
|
e.get(i).availableTickets && e.get(i).availableTickets.forEach((s) => e.get(Q)[s.ID] = 0);
|
|
@@ -1935,7 +1935,7 @@ function fi(V, t) {
|
|
|
1935
1935
|
return;
|
|
1936
1936
|
e.set(I, !0), Ve(), Object.values(e.get(Q)).reduce((s, a) => s + a, 0) > 0 && w(), We(), await Ea(String(e.get(i).eventID));
|
|
1937
1937
|
} catch (r) {
|
|
1938
|
-
e.get(B) && (
|
|
1938
|
+
e.get(B) && (Ne.error("Error loading event:", r), e.set(J, r.message || n().failedToLoadEvent || "Failed to load event", !0));
|
|
1939
1939
|
} finally {
|
|
1940
1940
|
e.get(B) && e.set(xe, !1);
|
|
1941
1941
|
}
|
|
@@ -1959,7 +1959,7 @@ function fi(V, t) {
|
|
|
1959
1959
|
var Me = ii(), Le = e.first_child(Me), qe = e.child(Le);
|
|
1960
1960
|
{
|
|
1961
1961
|
var Ue = (l) => {
|
|
1962
|
-
var r =
|
|
1962
|
+
var r = Nr(), u = e.child(r), s = e.child(u, !0);
|
|
1963
1963
|
e.reset(u), e.reset(r), e.template_effect(() => e.set_text(s, n().loadingEvent || "Loading event...")), e.append(l, r);
|
|
1964
1964
|
}, xt = (l) => {
|
|
1965
1965
|
var r = Gr(), u = e.child(r), s = e.child(u);
|
|
@@ -1983,7 +1983,7 @@ function fi(V, t) {
|
|
|
1983
1983
|
e.reset(r), e.template_effect(() => e.set_class(u, 1, `mb-2 ${ye.h2}`, "svelte-19g9ni4")), e.delegated("click", s, Te), e.append(l, r);
|
|
1984
1984
|
}, vt = (l) => {
|
|
1985
1985
|
var r = Wr(), u = e.child(r), s = e.child(u), a = e.child(s);
|
|
1986
|
-
|
|
1986
|
+
Rr(a, {
|
|
1987
1987
|
get event() {
|
|
1988
1988
|
return e.get(i);
|
|
1989
1989
|
},
|
|
@@ -2036,7 +2036,7 @@ function fi(V, t) {
|
|
|
2036
2036
|
}
|
|
2037
2037
|
var P = e.sibling(G, 2), ie = e.child(P);
|
|
2038
2038
|
{
|
|
2039
|
-
let L = e.derived(() => e.get(Ge) || e.get(
|
|
2039
|
+
let L = e.derived(() => e.get(Ge) || e.get(Re));
|
|
2040
2040
|
Sr(ie, {
|
|
2041
2041
|
get tickets() {
|
|
2042
2042
|
return e.get(i).availableTickets;
|
|
@@ -2131,7 +2131,7 @@ function fi(V, t) {
|
|
|
2131
2131
|
var ot = e.sibling(Le, 2);
|
|
2132
2132
|
jt(ot, {
|
|
2133
2133
|
get open() {
|
|
2134
|
-
return
|
|
2134
|
+
return N.isOpen;
|
|
2135
2135
|
},
|
|
2136
2136
|
size: "sm",
|
|
2137
2137
|
oncancel: g,
|
|
@@ -2382,4 +2382,4 @@ e.delegate(["click"]);
|
|
|
2382
2382
|
export {
|
|
2383
2383
|
fi as default
|
|
2384
2384
|
};
|
|
2385
|
-
//# sourceMappingURL=CartView-
|
|
2385
|
+
//# sourceMappingURL=CartView-Cq0DU1Cy.js.map
|