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