@getmicdrop/venue-calendar 4.0.82 → 4.0.84
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-DwAGELwG.js +2365 -0
- package/dist/CartView-DwAGELwG.js.map +1 -0
- package/dist/{Checkout-B15JygVy.js → Checkout-CHo11MsU.js} +466 -470
- package/dist/Checkout-CHo11MsU.js.map +1 -0
- package/dist/Checkout-_NuoBAKt.js +789 -0
- package/dist/Checkout-_NuoBAKt.js.map +1 -0
- package/dist/{CheckoutTimer-qLOtPDt3.js → CheckoutTimer-CAGR7L-7.js} +13 -13
- package/dist/{CheckoutTimer-qLOtPDt3.js.map → CheckoutTimer-CAGR7L-7.js.map} +1 -1
- package/dist/CollectionView-Dstgu8sR.js +299 -0
- package/dist/CollectionView-Dstgu8sR.js.map +1 -0
- package/dist/{Event-DZpU-Ec1.js → Event-kfRjkMzQ.js} +1875 -1249
- package/dist/Event-kfRjkMzQ.js.map +1 -0
- package/dist/EventPage-CnhccVCI.js +529 -0
- package/dist/EventPage-CnhccVCI.js.map +1 -0
- package/dist/{Heading-5CT9Nk0b.js → Heading-Ielp7dS-.js} +2 -2
- package/dist/{Heading-5CT9Nk0b.js.map → Heading-Ielp7dS-.js.map} +1 -1
- package/dist/{ModalHeader-CGaXzdcs.js → ModalHeader-Q7levd4l.js} +2 -2
- package/dist/{ModalHeader-CGaXzdcs.js.map → ModalHeader-Q7levd4l.js.map} +1 -1
- package/dist/ScarcityBadge-CG7Mz5YN.js +90 -0
- package/dist/ScarcityBadge-CG7Mz5YN.js.map +1 -0
- package/dist/SeriesPage-C8fIvt63.js +33 -0
- package/dist/SeriesPage-C8fIvt63.js.map +1 -0
- package/dist/Success-SZNXo-Ou.js +729 -0
- package/dist/{Success-B4CM_cy1.js.map → Success-SZNXo-Ou.js.map} +1 -1
- package/dist/{Text-WY42WIKI.js → Text-DHgQP4rA.js} +16 -16
- package/dist/{Text-WY42WIKI.js.map → Text-DHgQP4rA.js.map} +1 -1
- package/dist/{VenueCalendar-DMSeDRSN.js → VenueCalendar-DTOyAhDU.js} +3820 -4111
- package/dist/VenueCalendar-DTOyAhDU.js.map +1 -0
- package/dist/{ViewTicketsEmbed-AlVzNvxE.js → ViewTicketsEmbed-DBEOjijY.js} +31 -31
- package/dist/{ViewTicketsEmbed-AlVzNvxE.js.map → ViewTicketsEmbed-DBEOjijY.js.map} +1 -1
- package/dist/api/api.cjs.map +1 -1
- package/dist/api/api.mjs +3 -6
- package/dist/api/api.mjs.map +1 -1
- package/dist/{data-toggle-store.svelte-CtW4s3Vw.js → data-toggle-store.svelte-E2JyoGTV.js} +2 -2
- package/dist/{data-toggle-store.svelte-CtW4s3Vw.js.map → data-toggle-store.svelte-E2JyoGTV.js.map} +1 -1
- package/dist/{labels-BB1JG19g.js → labels-nQIooadc.js} +29 -30
- package/dist/{labels-BB1JG19g.js.map → labels-nQIooadc.js.map} +1 -1
- package/dist/seo/seo.cjs +1 -1
- package/dist/seo/seo.cjs.map +1 -1
- package/dist/seo/seo.mjs +79 -58
- package/dist/seo/seo.mjs.map +1 -1
- package/dist/{transform-BlXf-shc.js → transform-C1Rmuzlt.js} +2 -4
- package/dist/{transform-BlXf-shc.js.map → transform-C1Rmuzlt.js.map} +1 -1
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +18 -18
- package/dist/venue-calendar.iife.js +31 -41
- package/dist/venue-calendar.iife.js.map +1 -1
- package/dist/venue-calendar.umd.js +24 -34
- package/dist/venue-calendar.umd.js.map +1 -1
- package/package.json +170 -170
- package/dist/CarouselView.legacy-DAixPl6l.js +0 -65
- package/dist/CarouselView.legacy-DAixPl6l.js.map +0 -1
- package/dist/CartView-CsdqWB24.js +0 -1744
- package/dist/CartView-CsdqWB24.js.map +0 -1
- package/dist/Checkout-B15JygVy.js.map +0 -1
- package/dist/Checkout-CUwOrErt.js +0 -831
- package/dist/Checkout-CUwOrErt.js.map +0 -1
- package/dist/Checkout.legacy-CrFgAYYe.js +0 -1156
- package/dist/Checkout.legacy-CrFgAYYe.js.map +0 -1
- package/dist/CollectionView-D2bRelLR.js +0 -338
- package/dist/CollectionView-D2bRelLR.js.map +0 -1
- package/dist/CollectionView.legacy-DLb5fzi-.js +0 -241
- package/dist/CollectionView.legacy-DLb5fzi-.js.map +0 -1
- package/dist/Event-DZpU-Ec1.js.map +0 -1
- package/dist/EventPage-CL0yuKWZ.js +0 -577
- package/dist/EventPage-CL0yuKWZ.js.map +0 -1
- package/dist/EventPage.legacy-EujdNc3A.js +0 -1324
- package/dist/EventPage.legacy-EujdNc3A.js.map +0 -1
- package/dist/FeaturedView.legacy-CbLBD-tn.js +0 -128
- package/dist/FeaturedView.legacy-CbLBD-tn.js.map +0 -1
- package/dist/GalleryCard-BcIcYghD.js +0 -93
- package/dist/GalleryCard-BcIcYghD.js.map +0 -1
- package/dist/GalleryView.legacy-XpQUg-5_.js +0 -52
- package/dist/GalleryView.legacy-XpQUg-5_.js.map +0 -1
- package/dist/GroupedListView.legacy-qvwIV5Qm.js +0 -145
- package/dist/GroupedListView.legacy-qvwIV5Qm.js.map +0 -1
- package/dist/OrderSummarySkeleton-pqfhjvKT.js +0 -632
- package/dist/OrderSummarySkeleton-pqfhjvKT.js.map +0 -1
- package/dist/ScarcityBadge-BkRFHRif.js +0 -77
- package/dist/ScarcityBadge-BkRFHRif.js.map +0 -1
- package/dist/SeriesPage-NWCA_Aez.js +0 -54
- package/dist/SeriesPage-NWCA_Aez.js.map +0 -1
- package/dist/SeriesPage.legacy-BXSwM5jV.js +0 -193
- package/dist/SeriesPage.legacy-BXSwM5jV.js.map +0 -1
- package/dist/Success-B4CM_cy1.js +0 -748
- package/dist/Success.legacy-BWAmPmZz.js +0 -192
- package/dist/Success.legacy-BWAmPmZz.js.map +0 -1
- package/dist/VenueCalendar-DMSeDRSN.js.map +0 -1
- package/dist/__SKIP_NAVIGATION__-CmipjatL.js +0 -18
- package/dist/__SKIP_NAVIGATION__-CmipjatL.js.map +0 -1
- package/dist/api-ChzBkXfo.js +0 -6
- package/dist/api-ChzBkXfo.js.map +0 -1
- package/dist/colors-CmP-sSZD.js +0 -56
- package/dist/colors-CmP-sSZD.js.map +0 -1
|
@@ -0,0 +1,729 @@
|
|
|
1
|
+
import "svelte/internal/disclose-version";
|
|
2
|
+
import * as e from "svelte/internal/client";
|
|
3
|
+
import { onMount as J } from "svelte";
|
|
4
|
+
import { J as pe, P as be, K as re, N as _e, O as ke, Q as Z, R as xe, S as ye, T as we, U as Te, V as Ce, X as Ee, Y as B, Z as Ie, _ as De, $ as ze, a0 as Pe, a1 as Ae, j as Se } from "./VenueCalendar-DTOyAhDU.js";
|
|
5
|
+
import { t as Ue } from "./transform-C1Rmuzlt.js";
|
|
6
|
+
import { d as F, m as Ne, a as Le, b as Oe, c as Re } from "./data-toggle-store.svelte-E2JyoGTV.js";
|
|
7
|
+
import { O as Me, t as W, m as qe, c as Be } from "./labels-nQIooadc.js";
|
|
8
|
+
import { C as ie, H as Ge } from "./Heading-Ielp7dS-.js";
|
|
9
|
+
import { T as G, I as Fe } from "./Text-DHgQP4rA.js";
|
|
10
|
+
var je = e.from_html('<div class="p-6 md:p-8"><div class="flex justify-center mb-6"><div class="indicator-container svelte-667vry"><div></div> <svg viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="24" class="checkmark-circle svelte-667vry"></circle><circle cx="26" cy="26" r="24" class="checkmark-fill svelte-667vry"></circle><path d="M14 27l7 7 17-17" class="checkmark-check svelte-667vry"></path></svg></div></div> <div><div class="flex flex-col gap-3 text-center mb-6"><!> <!> <!></div> <div class="mb-6"><!></div> <div class="flex justify-between items-center py-3 border-t border-default"><!></div> <div class="flex items-center justify-center gap-2 p-3 rounded-lg bg-surface-secondary mt-4"><!> <!></div></div></div>');
|
|
11
|
+
function ae(q, t) {
|
|
12
|
+
e.push(t, !0);
|
|
13
|
+
let o = e.prop(t, "labels", 19, () => ({})), x = e.derived(() => t.orderTotals.lines.reduce((A, N) => A + N.quantity, 0)), P = e.derived(() => t.event.isRegistrationEvent ? o().youreRegistered || "You're registered!" : o().youreIn || "You're in!");
|
|
14
|
+
ie(q, {
|
|
15
|
+
border: !0,
|
|
16
|
+
padding: !1,
|
|
17
|
+
class: "rounded-xl shadow-lg overflow-hidden bg-surface-primary",
|
|
18
|
+
children: (A, N) => {
|
|
19
|
+
var w = je(), T = e.child(w), S = e.child(T), s = e.child(S);
|
|
20
|
+
let L;
|
|
21
|
+
var R = e.sibling(s, 2);
|
|
22
|
+
let z;
|
|
23
|
+
e.reset(S), e.reset(T);
|
|
24
|
+
var l = e.sibling(T, 2);
|
|
25
|
+
let u;
|
|
26
|
+
var f = e.child(l), n = e.child(f);
|
|
27
|
+
Ge(n, {
|
|
28
|
+
level: 1,
|
|
29
|
+
size: "xl",
|
|
30
|
+
weight: "bold",
|
|
31
|
+
children: (d, v) => {
|
|
32
|
+
e.next();
|
|
33
|
+
var r = e.text();
|
|
34
|
+
e.template_effect(() => e.set_text(r, e.get(P))), e.append(d, r);
|
|
35
|
+
},
|
|
36
|
+
$$slots: { default: !0 }
|
|
37
|
+
});
|
|
38
|
+
var g = e.sibling(n, 2);
|
|
39
|
+
G(g, {
|
|
40
|
+
size: "lg",
|
|
41
|
+
class: "font-semibold block",
|
|
42
|
+
children: (d, v) => {
|
|
43
|
+
e.next();
|
|
44
|
+
var r = e.text();
|
|
45
|
+
e.template_effect(() => e.set_text(r, t.event.title)), e.append(d, r);
|
|
46
|
+
},
|
|
47
|
+
$$slots: { default: !0 }
|
|
48
|
+
});
|
|
49
|
+
var m = e.sibling(g, 2);
|
|
50
|
+
G(m, {
|
|
51
|
+
size: "sm",
|
|
52
|
+
color: "secondary",
|
|
53
|
+
class: "block",
|
|
54
|
+
children: (d, v) => {
|
|
55
|
+
e.next();
|
|
56
|
+
var r = e.text();
|
|
57
|
+
e.template_effect(() => e.set_text(r, `${e.get(x) ?? ""} ${(e.get(x) === 1 ? o().ticket || "ticket" : o().tickets || "tickets") ?? ""} confirmed`)), e.append(d, r);
|
|
58
|
+
},
|
|
59
|
+
$$slots: { default: !0 }
|
|
60
|
+
}), e.reset(f);
|
|
61
|
+
var p = e.sibling(f, 2), I = e.child(p);
|
|
62
|
+
Me(I, {
|
|
63
|
+
get orderTotals() {
|
|
64
|
+
return t.orderTotals;
|
|
65
|
+
},
|
|
66
|
+
get labels() {
|
|
67
|
+
return o();
|
|
68
|
+
}
|
|
69
|
+
}), e.reset(p);
|
|
70
|
+
var C = e.sibling(p, 2), b = e.child(C);
|
|
71
|
+
G(b, {
|
|
72
|
+
size: "sm",
|
|
73
|
+
class: "font-semibold font-mono",
|
|
74
|
+
children: (d, v) => {
|
|
75
|
+
e.next();
|
|
76
|
+
var r = e.text();
|
|
77
|
+
e.template_effect(() => e.set_text(r, `#${t.orderId ?? ""}`)), e.append(d, r);
|
|
78
|
+
},
|
|
79
|
+
$$slots: { default: !0 }
|
|
80
|
+
}), e.reset(C);
|
|
81
|
+
var h = e.sibling(C, 2), E = e.child(h);
|
|
82
|
+
pe(E, { size: 16, class: "shrink-0 text-color-muted" });
|
|
83
|
+
var a = e.sibling(E, 2);
|
|
84
|
+
G(a, {
|
|
85
|
+
size: "xs",
|
|
86
|
+
color: "secondary",
|
|
87
|
+
children: (d, v) => {
|
|
88
|
+
e.next();
|
|
89
|
+
var r = e.text();
|
|
90
|
+
e.template_effect(() => e.set_text(r, `${(o().confirmationSentTo || "Confirmation sent to") ?? ""} ${t.customerEmail ?? ""}`)), e.append(d, r);
|
|
91
|
+
},
|
|
92
|
+
$$slots: { default: !0 }
|
|
93
|
+
}), e.reset(h), e.reset(l), e.reset(w), e.template_effect(() => {
|
|
94
|
+
L = e.set_class(s, 1, "processing-spinner svelte-667vry", null, L, { "fade-out": t.showCheckmark }), z = e.set_class(R, 0, "checkmark-svg svelte-667vry", null, z, { active: t.showCheckmark }), u = e.set_class(l, 1, "content-section svelte-667vry", null, u, { visible: t.showContent });
|
|
95
|
+
}), e.append(A, w);
|
|
96
|
+
},
|
|
97
|
+
$$slots: { default: !0 }
|
|
98
|
+
}), e.pop();
|
|
99
|
+
}
|
|
100
|
+
var We = e.from_html(" <!>", 1), Ve = e.from_html("<!> <!>", 1), He = e.from_html('<div class="dropdown-menu bg-surface-primary border-default svelte-4szgdz"><a rel="noopener noreferrer" class="dropdown-item text-color-primary hover:bg-surface-secondary svelte-4szgdz"><svg aria-hidden="true" class="shrink-0" width="16" height="16" viewBox="0 0 24 24" fill="none"><path d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z" fill="#4285F4"></path><path d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" fill="#34A853"></path><path d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18A10.96 10.96 0 0 0 1 12c0 1.77.42 3.45 1.18 4.93l3.66-2.84z" fill="#FBBC05"></path><path d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" fill="#EA4335"></path></svg> </a> <button type="button" class="dropdown-item text-color-primary hover:bg-surface-secondary svelte-4szgdz"><!> </button></div>'), le = e.from_html("<!> ", 1), Ye = e.from_html('<span class="text-color-muted">·</span> <a class="text-link text-color-muted hover:text-color-secondary svelte-4szgdz"><!> </a>', 1), Ze = e.from_html('<div class="rounded-t-xl overflow-hidden bg-surface-tertiary"><!></div> <div class="p-5 space-y-4"><div><!> <div class="flex items-center gap-1.5 mt-1.5"><!> <!></div> <!></div> <div class="flex flex-col items-center gap-3"><button type="button" class="wallet-badge-btn svelte-4szgdz"><img src="/wallet-badges/apple-wallet.svg" class="wallet-badge-img svelte-4szgdz"/></button> <button type="button" class="wallet-badge-btn svelte-4szgdz"><img src="/wallet-badges/google-wallet-dark.svg" class="wallet-badge-img google-dark svelte-4szgdz"/> <img src="/wallet-badges/google-wallet-light.svg" class="wallet-badge-img google-light svelte-4szgdz"/></button></div> <div class="divider"></div> <div class="calendar-dropdown relative"><!> <!></div> <div class="flex gap-2"><!> <!></div> <div class="flex items-center justify-center gap-4 pt-1"><button type="button" class="text-link text-color-muted hover:text-color-secondary svelte-4szgdz"><!> </button> <!></div></div>', 1), Je = e.from_html("<div><!></div>");
|
|
101
|
+
function se(q, t) {
|
|
102
|
+
e.push(t, !0);
|
|
103
|
+
let o = e.prop(t, "labels", 19, () => ({})), x = e.state(!1);
|
|
104
|
+
function P() {
|
|
105
|
+
e.set(x, !e.get(x));
|
|
106
|
+
}
|
|
107
|
+
J(() => {
|
|
108
|
+
function n(g) {
|
|
109
|
+
g.target.closest(".calendar-dropdown") || e.set(x, !1);
|
|
110
|
+
}
|
|
111
|
+
return document.addEventListener("click", n), () => document.removeEventListener("click", n);
|
|
112
|
+
});
|
|
113
|
+
let A = e.derived(() => (() => {
|
|
114
|
+
const n = new Date(t.event.startDateTime), g = t.event.endDateTime ? new Date(t.event.endDateTime) : new Date(n.getTime() + 7200 * 1e3), m = (b) => b.toISOString().replace(/[-:]/g, "").replace(/\.\d{3}/, ""), I = [t.event.venue.name, t.event.venue.address].filter(Boolean).join(", ");
|
|
115
|
+
return `https://calendar.google.com/calendar/render?${new URLSearchParams({
|
|
116
|
+
action: "TEMPLATE",
|
|
117
|
+
text: t.event.title,
|
|
118
|
+
dates: `${m(n)}/${m(g)}`,
|
|
119
|
+
location: I,
|
|
120
|
+
details: `Event: ${t.eventUrl}
|
|
121
|
+
|
|
122
|
+
Ticket confirmation #${t.orderId}`
|
|
123
|
+
}).toString()}`;
|
|
124
|
+
})());
|
|
125
|
+
function N() {
|
|
126
|
+
const n = new Date(t.event.startDateTime), g = t.event.endDateTime ? new Date(t.event.endDateTime) : new Date(n.getTime() + 7200 * 1e3), m = (_) => _.toISOString().replace(/[-:]/g, "").replace(/\.\d{3}/, ""), p = `order-${t.orderId}-event-${t.event.id}@micdrop.com`, I = m(/* @__PURE__ */ new Date()), b = [t.event.venue.name, t.event.venue.address].filter(Boolean).join(", "), h = (_) => _ ? _.replace(/\\/g, "\\\\").replace(/;/g, "\\;").replace(/,/g, "\\,").replace(/\n/g, "\\n") : "", E = `BEGIN:VCALENDAR
|
|
127
|
+
VERSION:2.0
|
|
128
|
+
PRODID:-//MicDrop//Ticket Confirmation//EN
|
|
129
|
+
CALSCALE:GREGORIAN
|
|
130
|
+
METHOD:PUBLISH
|
|
131
|
+
BEGIN:VEVENT
|
|
132
|
+
UID:${p}
|
|
133
|
+
DTSTAMP:${I}
|
|
134
|
+
DTSTART:${m(n)}
|
|
135
|
+
DTEND:${m(g)}
|
|
136
|
+
SUMMARY:${h(t.event.title)}
|
|
137
|
+
LOCATION:${h(b)}
|
|
138
|
+
DESCRIPTION:${h(`Order #${t.orderId}
|
|
139
|
+
|
|
140
|
+
View event: ${t.eventUrl}`)}
|
|
141
|
+
URL:${t.eventUrl}
|
|
142
|
+
STATUS:CONFIRMED
|
|
143
|
+
END:VEVENT
|
|
144
|
+
END:VCALENDAR`, a = new Blob([E], { type: "text/calendar;charset=utf-8" }), d = URL.createObjectURL(a), v = document.createElement("a");
|
|
145
|
+
v.href = d;
|
|
146
|
+
const r = (t.event.title || "event").replace(/[^a-zA-Z0-9\s-]/g, "").replace(/\s+/g, "-");
|
|
147
|
+
v.download = `${r}.ics`, document.body.appendChild(v), v.click(), document.body.removeChild(v), URL.revokeObjectURL(d), e.set(x, !1);
|
|
148
|
+
}
|
|
149
|
+
function w() {
|
|
150
|
+
e.set(x, !1);
|
|
151
|
+
}
|
|
152
|
+
async function T() {
|
|
153
|
+
const n = { url: t.eventUrl };
|
|
154
|
+
if (navigator.share)
|
|
155
|
+
try {
|
|
156
|
+
await navigator.share(n);
|
|
157
|
+
} catch (g) {
|
|
158
|
+
g instanceof Error && g.name !== "AbortError" && S();
|
|
159
|
+
}
|
|
160
|
+
else
|
|
161
|
+
S();
|
|
162
|
+
}
|
|
163
|
+
function S() {
|
|
164
|
+
navigator.clipboard.writeText(t.eventUrl).then(() => {
|
|
165
|
+
W.success(o().linkCopied || "Link copied to clipboard!");
|
|
166
|
+
}).catch(() => {
|
|
167
|
+
W.error(o().copyLink || "Could not copy link — please copy it manually: " + t.eventUrl);
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
function s() {
|
|
171
|
+
W.info("Apple Wallet coming soon", {
|
|
172
|
+
description: "Wallet integration requires backend signing infrastructure. Your ticket is confirmed — check your email."
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
function L() {
|
|
176
|
+
W.info("Google Wallet coming soon", {
|
|
177
|
+
description: "Wallet integration requires backend signing infrastructure. Your ticket is confirmed — check your email."
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
let R = e.derived(() => (() => {
|
|
181
|
+
const n = [t.event.venue.name, t.event.venue.address].filter(Boolean);
|
|
182
|
+
return `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(n.join(", "))}`;
|
|
183
|
+
})());
|
|
184
|
+
function z() {
|
|
185
|
+
window.location.href = t.eventUrl;
|
|
186
|
+
}
|
|
187
|
+
var l = Je();
|
|
188
|
+
let u;
|
|
189
|
+
var f = e.child(l);
|
|
190
|
+
ie(f, {
|
|
191
|
+
border: !0,
|
|
192
|
+
padding: !1,
|
|
193
|
+
class: "rounded-xl shadow-lg overflow-hidden bg-surface-secondary",
|
|
194
|
+
children: (n, g) => {
|
|
195
|
+
var m = Ze(), p = e.first_child(m), I = e.child(p);
|
|
196
|
+
Fe(I, {
|
|
197
|
+
get src() {
|
|
198
|
+
return t.event.imageUrl;
|
|
199
|
+
},
|
|
200
|
+
get alt() {
|
|
201
|
+
return t.event.title;
|
|
202
|
+
},
|
|
203
|
+
get fallback() {
|
|
204
|
+
return be;
|
|
205
|
+
},
|
|
206
|
+
fit: "contain",
|
|
207
|
+
class: "w-full max-h-60 min-h-24"
|
|
208
|
+
}), e.reset(p);
|
|
209
|
+
var C = e.sibling(p, 2), b = e.child(C), h = e.child(b);
|
|
210
|
+
G(h, {
|
|
211
|
+
size: "sm",
|
|
212
|
+
class: "font-semibold block leading-tight",
|
|
213
|
+
children: (c, D) => {
|
|
214
|
+
e.next();
|
|
215
|
+
var i = e.text();
|
|
216
|
+
e.template_effect(() => e.set_text(i, t.event.title)), e.append(c, i);
|
|
217
|
+
},
|
|
218
|
+
$$slots: { default: !0 }
|
|
219
|
+
});
|
|
220
|
+
var E = e.sibling(h, 2), a = e.child(E);
|
|
221
|
+
re(a, { size: 16, class: "shrink-0 icon-muted" });
|
|
222
|
+
var d = e.sibling(a, 2);
|
|
223
|
+
G(d, {
|
|
224
|
+
size: "xs",
|
|
225
|
+
color: "muted",
|
|
226
|
+
children: (c, D) => {
|
|
227
|
+
e.next();
|
|
228
|
+
var i = We(), k = e.first_child(i), y = e.sibling(k);
|
|
229
|
+
{
|
|
230
|
+
var M = (O) => {
|
|
231
|
+
var te = e.text();
|
|
232
|
+
e.template_effect((he) => e.set_text(te, `· ${he ?? ""}`), [
|
|
233
|
+
() => ke(t.event.startDateTime, t.event.timezone)
|
|
234
|
+
]), e.append(O, te);
|
|
235
|
+
};
|
|
236
|
+
e.if(y, (O) => {
|
|
237
|
+
t.event.displayStartTime !== !1 && O(M);
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
e.template_effect((O) => e.set_text(k, `${O ?? ""} `), [
|
|
241
|
+
() => _e(t.event.startDateTime, t.event.timezone)
|
|
242
|
+
]), e.append(c, i);
|
|
243
|
+
},
|
|
244
|
+
$$slots: { default: !0 }
|
|
245
|
+
}), e.reset(E);
|
|
246
|
+
var v = e.sibling(E, 2);
|
|
247
|
+
G(v, {
|
|
248
|
+
size: "xs",
|
|
249
|
+
color: "muted",
|
|
250
|
+
class: "block mt-0.5",
|
|
251
|
+
children: (c, D) => {
|
|
252
|
+
e.next();
|
|
253
|
+
var i = e.text();
|
|
254
|
+
e.template_effect(() => e.set_text(i, t.event.venue.name)), e.append(c, i);
|
|
255
|
+
},
|
|
256
|
+
$$slots: { default: !0 }
|
|
257
|
+
}), e.reset(b);
|
|
258
|
+
var r = e.sibling(b, 2), _ = e.child(r), U = e.child(_);
|
|
259
|
+
e.reset(_);
|
|
260
|
+
var V = e.sibling(_, 2), K = e.child(V), oe = e.sibling(K, 2);
|
|
261
|
+
e.reset(V), e.reset(r);
|
|
262
|
+
var H = e.sibling(r, 4), Q = e.child(H);
|
|
263
|
+
Z(Q, {
|
|
264
|
+
variant: "default",
|
|
265
|
+
size: "md",
|
|
266
|
+
class: "w-full",
|
|
267
|
+
onclick: P,
|
|
268
|
+
children: (c, D) => {
|
|
269
|
+
var i = Ve(), k = e.first_child(i);
|
|
270
|
+
re(k, { size: 16 });
|
|
271
|
+
var y = e.sibling(k), M = e.sibling(y);
|
|
272
|
+
{
|
|
273
|
+
let O = e.derived(() => e.get(x) ? "rotate-180" : "");
|
|
274
|
+
xe(M, {
|
|
275
|
+
size: 16,
|
|
276
|
+
get class() {
|
|
277
|
+
return `ml-auto transition-transform ${e.get(O) ?? ""}`;
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
e.template_effect(() => e.set_text(y, ` ${(o().addToCalendar || "Add to Calendar") ?? ""} `)), e.append(c, i);
|
|
282
|
+
},
|
|
283
|
+
$$slots: { default: !0 }
|
|
284
|
+
});
|
|
285
|
+
var de = e.sibling(Q, 2);
|
|
286
|
+
{
|
|
287
|
+
var ce = (c) => {
|
|
288
|
+
var D = He(), i = e.child(D), k = e.sibling(e.child(i));
|
|
289
|
+
e.reset(i);
|
|
290
|
+
var y = e.sibling(i, 2), M = e.child(y);
|
|
291
|
+
Te(M, { size: 16, class: "shrink-0" });
|
|
292
|
+
var O = e.sibling(M);
|
|
293
|
+
e.reset(y), e.reset(D), e.template_effect(() => {
|
|
294
|
+
e.set_attribute(i, "href", e.get(A)), e.set_text(k, ` ${(o().googleCalendar || "Google Calendar") ?? ""}`), e.set_text(O, ` ${(o().appleCalendar || "Apple Calendar (.ics)") ?? ""}`);
|
|
295
|
+
}), e.delegated("click", i, w), e.delegated("click", y, N), e.append(c, D);
|
|
296
|
+
};
|
|
297
|
+
e.if(de, (c) => {
|
|
298
|
+
e.get(x) && c(ce);
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
e.reset(H);
|
|
302
|
+
var Y = e.sibling(H, 2), X = e.child(Y);
|
|
303
|
+
Z(X, {
|
|
304
|
+
variant: "default",
|
|
305
|
+
size: "md",
|
|
306
|
+
class: "flex-1",
|
|
307
|
+
onclick: T,
|
|
308
|
+
children: (c, D) => {
|
|
309
|
+
var i = le(), k = e.first_child(i);
|
|
310
|
+
ye(k, { size: 16 });
|
|
311
|
+
var y = e.sibling(k);
|
|
312
|
+
e.template_effect(() => e.set_text(y, ` ${(o().share || "Share") ?? ""}`)), e.append(c, i);
|
|
313
|
+
},
|
|
314
|
+
$$slots: { default: !0 }
|
|
315
|
+
});
|
|
316
|
+
var ve = e.sibling(X, 2);
|
|
317
|
+
{
|
|
318
|
+
var ue = (c) => {
|
|
319
|
+
Z(c, {
|
|
320
|
+
variant: "default",
|
|
321
|
+
size: "md",
|
|
322
|
+
class: "flex-1",
|
|
323
|
+
get href() {
|
|
324
|
+
return e.get(R);
|
|
325
|
+
},
|
|
326
|
+
children: (D, i) => {
|
|
327
|
+
var k = le(), y = e.first_child(k);
|
|
328
|
+
Ce(y, { size: 16 });
|
|
329
|
+
var M = e.sibling(y);
|
|
330
|
+
e.template_effect(() => e.set_text(M, ` ${(o().map || "Map") ?? ""}`)), e.append(D, k);
|
|
331
|
+
},
|
|
332
|
+
$$slots: { default: !0 }
|
|
333
|
+
});
|
|
334
|
+
};
|
|
335
|
+
e.if(ve, (c) => {
|
|
336
|
+
t.event.venue.address && c(ue);
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
e.reset(Y);
|
|
340
|
+
var $ = e.sibling(Y, 2), j = e.child($), ee = e.child(j);
|
|
341
|
+
we(ee, { size: 16, class: "shrink-0" });
|
|
342
|
+
var ge = e.sibling(ee);
|
|
343
|
+
e.reset(j);
|
|
344
|
+
var me = e.sibling(j, 2);
|
|
345
|
+
{
|
|
346
|
+
var fe = (c) => {
|
|
347
|
+
var D = Ye(), i = e.sibling(e.first_child(D), 2), k = e.child(i);
|
|
348
|
+
Ee(k, { size: 16, class: "shrink-0" });
|
|
349
|
+
var y = e.sibling(k);
|
|
350
|
+
e.reset(i), e.template_effect(() => {
|
|
351
|
+
e.set_attribute(i, "href", `mailto:${t.event.venue.contactEmail ?? ""}?subject=Help with Order ${t.orderId ?? ""}`), e.set_text(y, ` ${(o().needHelp || "Need help?") ?? ""}`);
|
|
352
|
+
}), e.append(c, D);
|
|
353
|
+
};
|
|
354
|
+
e.if(me, (c) => {
|
|
355
|
+
t.event.venue.contactEmail && c(fe);
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
e.reset($), e.reset(C), e.template_effect(() => {
|
|
359
|
+
e.set_attribute(U, "alt", o().addToAppleWallet || "Add to Apple Wallet"), e.set_attribute(K, "alt", o().saveToGoogleWallet || "Save to Google Wallet"), e.set_attribute(oe, "alt", o().saveToGoogleWallet || "Save to Google Wallet"), e.set_text(ge, ` ${(o().backToEvent || "Back to event") ?? ""}`);
|
|
360
|
+
}), e.delegated("click", _, s), e.delegated("click", V, L), e.delegated("click", j, z), e.append(n, m);
|
|
361
|
+
},
|
|
362
|
+
$$slots: { default: !0 }
|
|
363
|
+
}), e.reset(l), e.template_effect(() => u = e.set_class(l, 1, "actions-wrapper svelte-4szgdz", null, u, { visible: t.showContent })), e.append(q, l), e.pop();
|
|
364
|
+
}
|
|
365
|
+
e.delegate(["click"]);
|
|
366
|
+
var Ke = e.from_html('<div class="w-full min-h-screen bg-surface-primary text-color-primary"><div class="max-w-6xl mx-auto px-4 py-6 md:px-6 md:py-8"><div class="hidden md:grid grid-cols-booking-split gap-8 items-start"><!> <div class="sticky top-6"><!></div></div> <div class="md:hidden space-y-6"><!> <!></div></div></div>');
|
|
367
|
+
function Qe(q, t) {
|
|
368
|
+
e.push(t, !0);
|
|
369
|
+
const o = [
|
|
370
|
+
{
|
|
371
|
+
value: "default",
|
|
372
|
+
label: "Standard",
|
|
373
|
+
color: "bg-accent-success"
|
|
374
|
+
},
|
|
375
|
+
{ value: "free", label: "Free", color: "bg-sky-500" },
|
|
376
|
+
{
|
|
377
|
+
value: "registration",
|
|
378
|
+
label: "Registration",
|
|
379
|
+
color: "bg-brand-primary"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
value: "donation",
|
|
383
|
+
label: "Donation",
|
|
384
|
+
color: "bg-accent-danger"
|
|
385
|
+
}
|
|
386
|
+
];
|
|
387
|
+
let x = e.derived(() => F.current), P = e.prop(t, "data", 3, void 0), A = e.prop(t, "eventUrl", 3, void 0), N = e.prop(t, "labels", 19, () => ({}));
|
|
388
|
+
const w = e.derived(() => qe(N()));
|
|
389
|
+
let T = e.derived(() => !P());
|
|
390
|
+
e.user_effect(() => {
|
|
391
|
+
if (e.get(T))
|
|
392
|
+
return F.options = o, F.current = "default", F.isActive = !0, () => {
|
|
393
|
+
F.isActive = !1, F.options = [];
|
|
394
|
+
};
|
|
395
|
+
});
|
|
396
|
+
const S = {
|
|
397
|
+
default: {
|
|
398
|
+
event: Re,
|
|
399
|
+
orderId: "12847",
|
|
400
|
+
lines: [
|
|
401
|
+
// eslint-disable-next-line micdrop/boundary-only-as-cast -- mock data: static showcase ticketIds
|
|
402
|
+
{
|
|
403
|
+
ticketId: B(101),
|
|
404
|
+
ticketName: "General Admission",
|
|
405
|
+
quantity: 2,
|
|
406
|
+
unitPrice: 25,
|
|
407
|
+
fee: 2.5,
|
|
408
|
+
subtotal: 50
|
|
409
|
+
},
|
|
410
|
+
// eslint-disable-next-line micdrop/boundary-only-as-cast -- mock data: static showcase ticketIds
|
|
411
|
+
{
|
|
412
|
+
ticketId: B(102),
|
|
413
|
+
ticketName: "VIP Front Row",
|
|
414
|
+
quantity: 1,
|
|
415
|
+
unitPrice: 55,
|
|
416
|
+
fee: 5.5,
|
|
417
|
+
subtotal: 55
|
|
418
|
+
}
|
|
419
|
+
],
|
|
420
|
+
customerEmail: "customer@example.com"
|
|
421
|
+
},
|
|
422
|
+
free: {
|
|
423
|
+
event: Oe,
|
|
424
|
+
orderId: "12848",
|
|
425
|
+
lines: [
|
|
426
|
+
// eslint-disable-next-line micdrop/boundary-only-as-cast -- mock data: static showcase ticketIds
|
|
427
|
+
{
|
|
428
|
+
ticketId: B(201),
|
|
429
|
+
ticketName: "Free Entry",
|
|
430
|
+
quantity: 2,
|
|
431
|
+
unitPrice: 0,
|
|
432
|
+
fee: 0,
|
|
433
|
+
subtotal: 0
|
|
434
|
+
}
|
|
435
|
+
],
|
|
436
|
+
customerEmail: "comedy.fan@gmail.com"
|
|
437
|
+
},
|
|
438
|
+
registration: {
|
|
439
|
+
event: Le,
|
|
440
|
+
orderId: "12849",
|
|
441
|
+
lines: [
|
|
442
|
+
// eslint-disable-next-line micdrop/boundary-only-as-cast -- mock data: static showcase ticketIds
|
|
443
|
+
{
|
|
444
|
+
ticketId: B(301),
|
|
445
|
+
ticketName: "Workshop Seat",
|
|
446
|
+
quantity: 1,
|
|
447
|
+
unitPrice: 75,
|
|
448
|
+
fee: 7.5,
|
|
449
|
+
subtotal: 75
|
|
450
|
+
}
|
|
451
|
+
],
|
|
452
|
+
customerEmail: "learner@example.com"
|
|
453
|
+
},
|
|
454
|
+
donation: {
|
|
455
|
+
event: Ne,
|
|
456
|
+
orderId: "12850",
|
|
457
|
+
lines: [
|
|
458
|
+
// eslint-disable-next-line micdrop/boundary-only-as-cast -- mock data: static showcase ticketIds
|
|
459
|
+
{
|
|
460
|
+
ticketId: B(401),
|
|
461
|
+
ticketName: "Donation",
|
|
462
|
+
quantity: 1,
|
|
463
|
+
unitPrice: 25,
|
|
464
|
+
fee: 0,
|
|
465
|
+
subtotal: 25
|
|
466
|
+
},
|
|
467
|
+
// eslint-disable-next-line micdrop/boundary-only-as-cast -- mock data: static showcase ticketIds
|
|
468
|
+
{
|
|
469
|
+
ticketId: B(402),
|
|
470
|
+
ticketName: "Standard Admission",
|
|
471
|
+
quantity: 1,
|
|
472
|
+
unitPrice: 30,
|
|
473
|
+
fee: 3,
|
|
474
|
+
subtotal: 30
|
|
475
|
+
}
|
|
476
|
+
],
|
|
477
|
+
customerEmail: "generous@example.com"
|
|
478
|
+
}
|
|
479
|
+
};
|
|
480
|
+
let s = e.derived(() => e.get(T) ? S[e.get(x)] : P()), L = e.derived(() => (() => {
|
|
481
|
+
const a = e.get(s).lines;
|
|
482
|
+
if (e.get(s).serverTotals)
|
|
483
|
+
return {
|
|
484
|
+
lines: a,
|
|
485
|
+
subtotal: e.get(s).serverTotals.subtotal,
|
|
486
|
+
fees: e.get(s).serverTotals.fees,
|
|
487
|
+
taxes: e.get(s).serverTotals.taxes,
|
|
488
|
+
total: e.get(s).serverTotals.total,
|
|
489
|
+
promoDiscount: e.get(s).serverTotals.promoDiscount,
|
|
490
|
+
giftCardAmount: e.get(s).serverTotals.giftCardAmount
|
|
491
|
+
};
|
|
492
|
+
const d = a.reduce((_, U) => _ + U.subtotal, 0), v = a.reduce((_, U) => _ + U.fee * U.quantity, 0), r = Be(d + v, e.get(s).event.venue.taxPercentage);
|
|
493
|
+
return {
|
|
494
|
+
lines: a,
|
|
495
|
+
subtotal: d,
|
|
496
|
+
fees: v,
|
|
497
|
+
taxes: r,
|
|
498
|
+
total: d + v + r,
|
|
499
|
+
promoDiscount: 0,
|
|
500
|
+
giftCardAmount: 0
|
|
501
|
+
};
|
|
502
|
+
})()), R = e.derived(() => e.get(T) ? typeof window > "u" ? "#" : `${window.location.origin}/e/${e.get(s).event.id}-${e.get(s).event.slug}` : A() || "#"), z = e.state(!1), l = e.state(!1), u = e.state(!1);
|
|
503
|
+
function f() {
|
|
504
|
+
if (e.get(u)) {
|
|
505
|
+
e.set(z, !0), e.set(l, !0);
|
|
506
|
+
return;
|
|
507
|
+
}
|
|
508
|
+
e.set(z, !1), e.set(l, !1), setTimeout(
|
|
509
|
+
() => {
|
|
510
|
+
e.set(z, !0);
|
|
511
|
+
},
|
|
512
|
+
800
|
|
513
|
+
), setTimeout(
|
|
514
|
+
() => {
|
|
515
|
+
e.set(l, !0);
|
|
516
|
+
},
|
|
517
|
+
1600
|
|
518
|
+
);
|
|
519
|
+
}
|
|
520
|
+
e.user_effect(() => {
|
|
521
|
+
e.get(T) && (e.get(x), f());
|
|
522
|
+
}), J(() => {
|
|
523
|
+
e.set(u, window.matchMedia("(prefers-reduced-motion: reduce)").matches, !0), f();
|
|
524
|
+
});
|
|
525
|
+
var n = Ke(), g = e.child(n), m = e.child(g), p = e.child(m);
|
|
526
|
+
ae(p, {
|
|
527
|
+
get event() {
|
|
528
|
+
return e.get(s).event;
|
|
529
|
+
},
|
|
530
|
+
get orderId() {
|
|
531
|
+
return e.get(s).orderId;
|
|
532
|
+
},
|
|
533
|
+
get orderTotals() {
|
|
534
|
+
return e.get(L);
|
|
535
|
+
},
|
|
536
|
+
get customerEmail() {
|
|
537
|
+
return e.get(s).customerEmail;
|
|
538
|
+
},
|
|
539
|
+
get showCheckmark() {
|
|
540
|
+
return e.get(z);
|
|
541
|
+
},
|
|
542
|
+
get showContent() {
|
|
543
|
+
return e.get(l);
|
|
544
|
+
},
|
|
545
|
+
get labels() {
|
|
546
|
+
return e.get(w);
|
|
547
|
+
}
|
|
548
|
+
});
|
|
549
|
+
var I = e.sibling(p, 2), C = e.child(I);
|
|
550
|
+
se(C, {
|
|
551
|
+
get event() {
|
|
552
|
+
return e.get(s).event;
|
|
553
|
+
},
|
|
554
|
+
get orderId() {
|
|
555
|
+
return e.get(s).orderId;
|
|
556
|
+
},
|
|
557
|
+
get eventUrl() {
|
|
558
|
+
return e.get(R);
|
|
559
|
+
},
|
|
560
|
+
get showContent() {
|
|
561
|
+
return e.get(l);
|
|
562
|
+
},
|
|
563
|
+
get labels() {
|
|
564
|
+
return e.get(w);
|
|
565
|
+
}
|
|
566
|
+
}), e.reset(I), e.reset(m);
|
|
567
|
+
var b = e.sibling(m, 2), h = e.child(b);
|
|
568
|
+
ae(h, {
|
|
569
|
+
get event() {
|
|
570
|
+
return e.get(s).event;
|
|
571
|
+
},
|
|
572
|
+
get orderId() {
|
|
573
|
+
return e.get(s).orderId;
|
|
574
|
+
},
|
|
575
|
+
get orderTotals() {
|
|
576
|
+
return e.get(L);
|
|
577
|
+
},
|
|
578
|
+
get customerEmail() {
|
|
579
|
+
return e.get(s).customerEmail;
|
|
580
|
+
},
|
|
581
|
+
get showCheckmark() {
|
|
582
|
+
return e.get(z);
|
|
583
|
+
},
|
|
584
|
+
get showContent() {
|
|
585
|
+
return e.get(l);
|
|
586
|
+
},
|
|
587
|
+
get labels() {
|
|
588
|
+
return e.get(w);
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
var E = e.sibling(h, 2);
|
|
592
|
+
se(E, {
|
|
593
|
+
get event() {
|
|
594
|
+
return e.get(s).event;
|
|
595
|
+
},
|
|
596
|
+
get orderId() {
|
|
597
|
+
return e.get(s).orderId;
|
|
598
|
+
},
|
|
599
|
+
get eventUrl() {
|
|
600
|
+
return e.get(R);
|
|
601
|
+
},
|
|
602
|
+
get showContent() {
|
|
603
|
+
return e.get(l);
|
|
604
|
+
},
|
|
605
|
+
get labels() {
|
|
606
|
+
return e.get(w);
|
|
607
|
+
}
|
|
608
|
+
}), e.reset(b), e.reset(g), e.reset(n), e.append(q, n), e.pop();
|
|
609
|
+
}
|
|
610
|
+
const ne = Se("Success");
|
|
611
|
+
var Xe = e.from_html('<div class="flex flex-col items-center justify-center py-24 text-center gap-4 error-container svelte-1mm1psu"><p class="svelte-1mm1psu"> </p></div>'), $e = e.from_html('<div class="flex items-center justify-center py-24 text-center loading-container svelte-1mm1psu"><p> </p></div>');
|
|
612
|
+
function ot(q, t) {
|
|
613
|
+
e.push(t, !0);
|
|
614
|
+
let o = e.prop(t, "data", 19, () => ({}));
|
|
615
|
+
e.prop(t, "browseUrl", 3, "/");
|
|
616
|
+
let x = e.prop(t, "eventUrl", 3, void 0), P = e.prop(t, "labels", 19, () => ({})), A = e.state(null), N = e.state(""), w = e.state(null), T = e.state(!0);
|
|
617
|
+
J(async () => {
|
|
618
|
+
const {
|
|
619
|
+
id: l,
|
|
620
|
+
slug: u,
|
|
621
|
+
event: f,
|
|
622
|
+
orderId: n,
|
|
623
|
+
orderUuid: g,
|
|
624
|
+
customerEmail: m,
|
|
625
|
+
ticketCount: p
|
|
626
|
+
} = o() || {};
|
|
627
|
+
{
|
|
628
|
+
const { postMessageOnSuccess: a, postMessageTargetOrigin: d } = Ie();
|
|
629
|
+
a && De(
|
|
630
|
+
// orderId covers the embed successData shape; orderUuid covers the
|
|
631
|
+
// full-page route, whose +page.js reads BOTH ?orderId= and
|
|
632
|
+
// ?orderUuid= query params (success/+page.js:26-27) and either may
|
|
633
|
+
// be the populated one. Success.svelte already destructures both
|
|
634
|
+
// (paramOrderId/paramOrderUuid above). Non-PII payload (id + eventId).
|
|
635
|
+
{
|
|
636
|
+
orderId: String(n || g || ""),
|
|
637
|
+
eventId: l ?? o()?.eventId ?? f?.id ?? null
|
|
638
|
+
},
|
|
639
|
+
d
|
|
640
|
+
);
|
|
641
|
+
}
|
|
642
|
+
e.set(N, x() || `${window.location.origin}/e/${l}-${u}`, !0);
|
|
643
|
+
let I;
|
|
644
|
+
try {
|
|
645
|
+
I = Ue(f);
|
|
646
|
+
} catch (a) {
|
|
647
|
+
ne.warn("Success: transformApiEvent failed:", a), e.set(w, P().failedToLoadEventData || "Failed to load event data.", !0), e.set(T, !1);
|
|
648
|
+
return;
|
|
649
|
+
}
|
|
650
|
+
let C = n || "", b = m || "", h = [], E = null;
|
|
651
|
+
if (C)
|
|
652
|
+
try {
|
|
653
|
+
const a = await ze(C);
|
|
654
|
+
if (a) {
|
|
655
|
+
b = a.customerEmail || b;
|
|
656
|
+
const d = a.purchasedTickets || a.tickets || [], v = /* @__PURE__ */ new Map();
|
|
657
|
+
for (const r of d) {
|
|
658
|
+
const _ = `${r.ticketTypeId || r.ticketId || 0}-${r.ticketName || r.name || ""}`, U = v.get(_);
|
|
659
|
+
U ? (U.quantity += 1, U.subtotal += r.purchasePrice || r.price || 0) : v.set(_, {
|
|
660
|
+
ticketId: r.ticketTypeId || r.ticketId || 0,
|
|
661
|
+
ticketName: r.ticketName || r.name || P().ticketFallbackName || "Ticket",
|
|
662
|
+
quantity: 1,
|
|
663
|
+
unitPrice: r.purchasePrice || r.price || 0,
|
|
664
|
+
fee: 0,
|
|
665
|
+
subtotal: r.purchasePrice || r.price || 0
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
h = Array.from(v.values()), typeof a.totalPrice == "number" && (E = {
|
|
669
|
+
subtotal: a.basePrice ?? 0,
|
|
670
|
+
fees: a.surcharge ?? 0,
|
|
671
|
+
taxes: a.tax ?? 0,
|
|
672
|
+
total: a.totalPrice,
|
|
673
|
+
promoDiscount: a.promoCodeStoredDiscountAmount ?? 0,
|
|
674
|
+
giftCardAmount: a.giftCardPaymentAmount ?? 0,
|
|
675
|
+
stripeAmount: Number(a.totalPrice) - Number(a.giftCardPaymentAmount ?? 0)
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
} catch (a) {
|
|
679
|
+
ne.warn("Success: getOrder failed, using route params:", a);
|
|
680
|
+
}
|
|
681
|
+
h.length === 0 && p > 0 && (h = [
|
|
682
|
+
{
|
|
683
|
+
ticketId: B(0),
|
|
684
|
+
ticketName: P().ticketFallbackName || "Ticket",
|
|
685
|
+
quantity: p,
|
|
686
|
+
unitPrice: 0,
|
|
687
|
+
fee: 0,
|
|
688
|
+
subtotal: 0
|
|
689
|
+
}
|
|
690
|
+
]), e.set(
|
|
691
|
+
A,
|
|
692
|
+
{
|
|
693
|
+
event: I,
|
|
694
|
+
orderId: String(C),
|
|
695
|
+
lines: h,
|
|
696
|
+
customerEmail: b,
|
|
697
|
+
...E ? { serverTotals: E } : {}
|
|
698
|
+
},
|
|
699
|
+
!0
|
|
700
|
+
), Pe(String(l)), Ae("checkout-cartid"), e.set(T, !1);
|
|
701
|
+
});
|
|
702
|
+
var S = e.comment(), s = e.first_child(S);
|
|
703
|
+
{
|
|
704
|
+
var L = (l) => {
|
|
705
|
+
var u = Xe(), f = e.child(u), n = e.child(f, !0);
|
|
706
|
+
e.reset(f), e.reset(u), e.template_effect(() => e.set_text(n, e.get(w))), e.append(l, u);
|
|
707
|
+
}, R = (l) => {
|
|
708
|
+
var u = $e(), f = e.child(u), n = e.child(f, !0);
|
|
709
|
+
e.reset(f), e.reset(u), e.template_effect(() => e.set_text(n, P().loadingYourOrder || "Loading your order")), e.append(l, u);
|
|
710
|
+
}, z = (l) => {
|
|
711
|
+
Qe(l, {
|
|
712
|
+
get data() {
|
|
713
|
+
return e.get(A);
|
|
714
|
+
},
|
|
715
|
+
get eventUrl() {
|
|
716
|
+
return e.get(N);
|
|
717
|
+
}
|
|
718
|
+
});
|
|
719
|
+
};
|
|
720
|
+
e.if(s, (l) => {
|
|
721
|
+
e.get(w) ? l(L) : e.get(T) || !e.get(A) ? l(R, 1) : l(z, -1);
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
e.append(q, S), e.pop();
|
|
725
|
+
}
|
|
726
|
+
export {
|
|
727
|
+
ot as default
|
|
728
|
+
};
|
|
729
|
+
//# sourceMappingURL=Success-SZNXo-Ou.js.map
|