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