@getmicdrop/venue-calendar 4.0.27 → 4.0.29
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/{AirbnbSplitMain-Cehdzt-P.js → AirbnbSplitMain-COiTuRaQ.js} +316 -315
- package/dist/AirbnbSplitMain-COiTuRaQ.js.map +1 -0
- package/dist/{CarouselView.legacy-D6ENR1KW.js → CarouselView.legacy-CTZuOqjQ.js} +5 -5
- package/dist/{CarouselView.legacy-D6ENR1KW.js.map → CarouselView.legacy-CTZuOqjQ.js.map} +1 -1
- package/dist/{CartView-CBpeHgLR.js → CartView-Cpop92mo.js} +3 -3
- package/dist/CartView-Cpop92mo.js.map +1 -0
- package/dist/{Checkout-DH_eYJnc.js → Checkout-BS8WjuN-.js} +4 -4
- package/dist/{Checkout-DH_eYJnc.js.map → Checkout-BS8WjuN-.js.map} +1 -1
- package/dist/{Checkout.legacy-CYZNny1R.js → Checkout.legacy-CSrIeRxh.js} +75 -75
- package/dist/Checkout.legacy-CSrIeRxh.js.map +1 -0
- package/dist/{CheckoutMain-hVH6m1bo.js → CheckoutMain-scUMflQB.js} +267 -255
- package/dist/{CheckoutMain-hVH6m1bo.js.map → CheckoutMain-scUMflQB.js.map} +1 -1
- package/dist/{CheckoutTimer-CNLrz8of.js → CheckoutTimer-Rf_TikC8.js} +2 -2
- package/dist/{CheckoutTimer-CNLrz8of.js.map → CheckoutTimer-Rf_TikC8.js.map} +1 -1
- package/dist/{CollectionView-drOiZZdZ.js → CollectionView-UpBNvOKB.js} +5 -5
- package/dist/{CollectionView-drOiZZdZ.js.map → CollectionView-UpBNvOKB.js.map} +1 -1
- package/dist/{CollectionView.legacy-Vg7qvoqL.js → CollectionView.legacy-CEcD9Hxu.js} +28 -28
- package/dist/{CollectionView.legacy-Vg7qvoqL.js.map → CollectionView.legacy-CEcD9Hxu.js.map} +1 -1
- package/dist/{EventDetailsView-DilCgCeT.js → EventDetailsView-C9-PBjZb.js} +2 -2
- package/dist/{EventDetailsView-DilCgCeT.js.map → EventDetailsView-C9-PBjZb.js.map} +1 -1
- package/dist/{FeaturedView.legacy-CeyATdIk.js → FeaturedView.legacy-COSqtrpe.js} +19 -19
- package/dist/{FeaturedView.legacy-CeyATdIk.js.map → FeaturedView.legacy-COSqtrpe.js.map} +1 -1
- package/dist/{GalleryCard-w1OkpFq-.js → GalleryCard-BQMlMtfV.js} +13 -13
- package/dist/{GalleryCard-w1OkpFq-.js.map → GalleryCard-BQMlMtfV.js.map} +1 -1
- package/dist/{GalleryView.legacy-4MERpwC3.js → GalleryView.legacy-C5G42_EE.js} +9 -9
- package/dist/{GalleryView.legacy-4MERpwC3.js.map → GalleryView.legacy-C5G42_EE.js.map} +1 -1
- package/dist/{GroupedListView.legacy-BqPhYCox.js → GroupedListView.legacy-TpcV8O2O.js} +11 -11
- package/dist/{GroupedListView.legacy-BqPhYCox.js.map → GroupedListView.legacy-TpcV8O2O.js.map} +1 -1
- package/dist/{SeriesPage-CBhL-zrE.js → SeriesPage-C2dwRO-e.js} +5 -5
- package/dist/{SeriesPage-CBhL-zrE.js.map → SeriesPage-C2dwRO-e.js.map} +1 -1
- package/dist/{SeriesPage.legacy-CIkcSQ7z.js → SeriesPage.legacy-_nBN01Hk.js} +41 -41
- package/dist/{SeriesPage.legacy-CIkcSQ7z.js.map → SeriesPage.legacy-_nBN01Hk.js.map} +1 -1
- package/dist/{Success-oWzMnrIe.js → Success-BCUnIuMQ.js} +120 -113
- package/dist/Success-BCUnIuMQ.js.map +1 -0
- package/dist/{Success.legacy-BPKHQze7.js → Success.legacy-DpahkG6g.js} +31 -31
- package/dist/Success.legacy-DpahkG6g.js.map +1 -0
- package/dist/{VenueCalendar-CDqY8VKt.js → VenueCalendar-CjAweiq_.js} +187 -186
- package/dist/{VenueCalendar-CDqY8VKt.js.map → VenueCalendar-CjAweiq_.js.map} +1 -1
- package/dist/{ViewTicketsEmbed-CLcJt0Uo.js → ViewTicketsEmbed-C3PdxoRj.js} +270 -270
- package/dist/{ViewTicketsEmbed-CLcJt0Uo.js.map → ViewTicketsEmbed-C3PdxoRj.js.map} +1 -1
- package/dist/api/types.d.ts +2 -2
- package/dist/{labels-CWjBdG1l.js → labels-nXtydtUA.js} +2 -2
- package/dist/{labels-CWjBdG1l.js.map → labels-nXtydtUA.js.map} +1 -1
- package/dist/{transform-BshN1G3E.js → transform-BOPZtrWr.js} +2 -2
- package/dist/{transform-BshN1G3E.js.map → transform-BOPZtrWr.js.map} +1 -1
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +6 -6
- package/dist/venue-calendar.iife.js +25 -25
- package/dist/venue-calendar.iife.js.map +1 -1
- package/dist/venue-calendar.umd.js +25 -25
- package/dist/venue-calendar.umd.js.map +1 -1
- package/package.json +3 -4
- package/dist/AirbnbSplitMain-Cehdzt-P.js.map +0 -1
- package/dist/CartView-CBpeHgLR.js.map +0 -1
- package/dist/Checkout.legacy-CYZNny1R.js.map +0 -1
- package/dist/Success-oWzMnrIe.js.map +0 -1
- package/dist/Success.legacy-BPKHQze7.js.map +0 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import "svelte/internal/disclose-version";
|
|
2
|
-
import { E as
|
|
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-CjAweiq_.js";
|
|
3
3
|
import * as e from "svelte/internal/client";
|
|
4
4
|
import "svelte/internal/flags/legacy";
|
|
5
5
|
import "svelte/transition";
|
|
6
6
|
import "svelte/easing";
|
|
7
|
-
import { onMount as
|
|
8
|
-
import { t as
|
|
9
|
-
import { O as
|
|
10
|
-
import { H as
|
|
11
|
-
import { T as
|
|
12
|
-
var
|
|
13
|
-
function
|
|
7
|
+
import { onMount as X } from "svelte";
|
|
8
|
+
import { t as De } from "./transform-BOPZtrWr.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-nXtydtUA.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
14
|
e.push(t, !0);
|
|
15
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
|
-
|
|
16
|
+
ie(F, {
|
|
17
17
|
border: !0,
|
|
18
18
|
padding: !1,
|
|
19
19
|
class: "rounded-xl shadow-lg overflow-hidden bg-surface-primary",
|
|
20
20
|
children: (O, A) => {
|
|
21
|
-
var y =
|
|
21
|
+
var y = Re(), T = e.child(y), S = e.child(T), l = e.child(S);
|
|
22
22
|
let z;
|
|
23
23
|
var B = e.sibling(l, 2);
|
|
24
24
|
let D;
|
|
@@ -26,7 +26,7 @@ function re(F, t) {
|
|
|
26
26
|
var m = e.sibling(T, 2);
|
|
27
27
|
let U;
|
|
28
28
|
var L = e.child(m), r = e.child(L);
|
|
29
|
-
|
|
29
|
+
Ne(r, {
|
|
30
30
|
level: 1,
|
|
31
31
|
size: "xl",
|
|
32
32
|
weight: "bold",
|
|
@@ -39,7 +39,7 @@ function re(F, t) {
|
|
|
39
39
|
$$slots: { default: !0 }
|
|
40
40
|
});
|
|
41
41
|
var i = e.sibling(r, 2);
|
|
42
|
-
|
|
42
|
+
V(i, {
|
|
43
43
|
size: "lg",
|
|
44
44
|
class: "font-semibold block mb-1",
|
|
45
45
|
children: (u, o) => {
|
|
@@ -50,7 +50,7 @@ function re(F, t) {
|
|
|
50
50
|
$$slots: { default: !0 }
|
|
51
51
|
});
|
|
52
52
|
var d = e.sibling(i, 2);
|
|
53
|
-
|
|
53
|
+
V(d, {
|
|
54
54
|
size: "sm",
|
|
55
55
|
color: "secondary",
|
|
56
56
|
class: "block",
|
|
@@ -62,7 +62,7 @@ function re(F, t) {
|
|
|
62
62
|
$$slots: { default: !0 }
|
|
63
63
|
}), e.reset(L);
|
|
64
64
|
var v = e.sibling(L, 2), p = e.child(v);
|
|
65
|
-
|
|
65
|
+
Pe(p, {
|
|
66
66
|
get orderTotals() {
|
|
67
67
|
return t.orderTotals;
|
|
68
68
|
},
|
|
@@ -71,7 +71,7 @@ function re(F, t) {
|
|
|
71
71
|
}
|
|
72
72
|
}), e.reset(v);
|
|
73
73
|
var E = e.sibling(v, 2), _ = e.child(E);
|
|
74
|
-
|
|
74
|
+
V(_, {
|
|
75
75
|
size: "sm",
|
|
76
76
|
class: "font-semibold font-mono",
|
|
77
77
|
children: (u, o) => {
|
|
@@ -82,9 +82,9 @@ function re(F, t) {
|
|
|
82
82
|
$$slots: { default: !0 }
|
|
83
83
|
}), e.reset(E);
|
|
84
84
|
var w = e.sibling(E, 2), k = e.child(w);
|
|
85
|
-
|
|
85
|
+
fe(k, { size: 16, class: "shrink-0 text-color-muted" });
|
|
86
86
|
var C = e.sibling(k, 2);
|
|
87
|
-
|
|
87
|
+
V(C, {
|
|
88
88
|
size: "xs",
|
|
89
89
|
color: "secondary",
|
|
90
90
|
children: (u, o) => {
|
|
@@ -100,14 +100,14 @@ function re(F, t) {
|
|
|
100
100
|
$$slots: { default: !0 }
|
|
101
101
|
}), e.pop();
|
|
102
102
|
}
|
|
103
|
-
var
|
|
104
|
-
function
|
|
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
105
|
e.push(t, !0);
|
|
106
106
|
let s = e.prop(t, "labels", 19, () => ({})), f = e.state(!1);
|
|
107
107
|
function R() {
|
|
108
108
|
e.set(f, !e.get(f));
|
|
109
109
|
}
|
|
110
|
-
|
|
110
|
+
X(() => {
|
|
111
111
|
function r(i) {
|
|
112
112
|
i.target.closest(".calendar-dropdown") || e.set(f, !1);
|
|
113
113
|
}
|
|
@@ -165,18 +165,18 @@ END:VCALENDAR`, C = new Blob([k], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
165
165
|
}
|
|
166
166
|
function S() {
|
|
167
167
|
navigator.clipboard.writeText(t.eventUrl).then(() => {
|
|
168
|
-
|
|
168
|
+
Z.success(s().linkCopied || "Link copied to clipboard!");
|
|
169
169
|
}).catch(() => {
|
|
170
|
-
|
|
170
|
+
Z.error(s().copyLink || "Could not copy link — please copy it manually: " + t.eventUrl);
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
function l() {
|
|
174
|
-
|
|
174
|
+
Z.info("Apple Wallet coming soon", {
|
|
175
175
|
description: "Wallet integration requires backend signing infrastructure. Your ticket is confirmed — check your email."
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
178
|
function z() {
|
|
179
|
-
|
|
179
|
+
Z.info("Google Wallet coming soon", {
|
|
180
180
|
description: "Wallet integration requires backend signing infrastructure. Your ticket is confirmed — check your email."
|
|
181
181
|
});
|
|
182
182
|
}
|
|
@@ -187,18 +187,18 @@ END:VCALENDAR`, C = new Blob([k], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
187
187
|
function D() {
|
|
188
188
|
window.location.href = t.eventUrl;
|
|
189
189
|
}
|
|
190
|
-
var m =
|
|
190
|
+
var m = We();
|
|
191
191
|
let U;
|
|
192
192
|
var L = e.child(m);
|
|
193
|
-
|
|
193
|
+
ie(L, {
|
|
194
194
|
border: !0,
|
|
195
195
|
padding: !1,
|
|
196
196
|
class: "rounded-xl shadow-lg overflow-hidden bg-surface-secondary",
|
|
197
197
|
children: (r, i) => {
|
|
198
|
-
var d =
|
|
198
|
+
var d = Ve(), v = e.first_child(d), p = e.child(v);
|
|
199
199
|
e.reset(v);
|
|
200
200
|
var E = e.sibling(v, 2), _ = e.child(E), w = e.child(_);
|
|
201
|
-
|
|
201
|
+
V(w, {
|
|
202
202
|
size: "sm",
|
|
203
203
|
class: "font-semibold block leading-tight",
|
|
204
204
|
children: (g, I) => {
|
|
@@ -209,33 +209,33 @@ END:VCALENDAR`, C = new Blob([k], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
209
209
|
$$slots: { default: !0 }
|
|
210
210
|
});
|
|
211
211
|
var k = e.sibling(w, 2), C = e.child(k);
|
|
212
|
-
|
|
212
|
+
re(C, { size: 16, class: "shrink-0 icon-muted" });
|
|
213
213
|
var u = e.sibling(C, 2);
|
|
214
|
-
|
|
214
|
+
V(u, {
|
|
215
215
|
size: "xs",
|
|
216
216
|
color: "muted",
|
|
217
217
|
children: (g, I) => {
|
|
218
218
|
e.next();
|
|
219
|
-
var c =
|
|
219
|
+
var c = Oe(), h = e.first_child(c), x = e.sibling(h);
|
|
220
220
|
{
|
|
221
221
|
var G = (M) => {
|
|
222
|
-
var
|
|
223
|
-
e.template_effect((
|
|
224
|
-
() =>
|
|
225
|
-
]), e.append(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
226
|
};
|
|
227
227
|
e.if(x, (M) => {
|
|
228
228
|
t.event.displayStartTime !== !1 && M(G);
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
231
|
e.template_effect((M) => e.set_text(h, `${M ?? ""} `), [
|
|
232
|
-
() =>
|
|
232
|
+
() => be(t.event.startDateTime, t.event.timezone)
|
|
233
233
|
]), e.append(g, c);
|
|
234
234
|
},
|
|
235
235
|
$$slots: { default: !0 }
|
|
236
236
|
}), e.reset(k);
|
|
237
237
|
var o = e.sibling(k, 2);
|
|
238
|
-
|
|
238
|
+
V(o, {
|
|
239
239
|
size: "xs",
|
|
240
240
|
color: "muted",
|
|
241
241
|
class: "block mt-0.5",
|
|
@@ -250,19 +250,19 @@ END:VCALENDAR`, C = new Blob([k], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
250
250
|
e.reset(b);
|
|
251
251
|
var n = e.sibling(b, 2), P = e.child(n), q = e.sibling(P, 2);
|
|
252
252
|
e.reset(n), e.reset(a);
|
|
253
|
-
var
|
|
254
|
-
|
|
253
|
+
var W = e.sibling(a, 4), H = e.child(W);
|
|
254
|
+
K(H, {
|
|
255
255
|
variant: "default",
|
|
256
256
|
size: "md",
|
|
257
257
|
class: "w-full",
|
|
258
258
|
onclick: R,
|
|
259
259
|
children: (g, I) => {
|
|
260
|
-
var c =
|
|
261
|
-
|
|
260
|
+
var c = Me(), h = e.first_child(c);
|
|
261
|
+
re(h, { size: 16 });
|
|
262
262
|
var x = e.sibling(h), G = e.sibling(x);
|
|
263
263
|
{
|
|
264
264
|
let M = e.derived(() => e.get(f) ? "rotate-180" : "");
|
|
265
|
-
|
|
265
|
+
pe(G, {
|
|
266
266
|
size: 16,
|
|
267
267
|
get class() {
|
|
268
268
|
return `ml-auto transition-transform ${e.get(M) ?? ""}`;
|
|
@@ -273,41 +273,41 @@ END:VCALENDAR`, C = new Blob([k], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
273
273
|
},
|
|
274
274
|
$$slots: { default: !0 }
|
|
275
275
|
});
|
|
276
|
-
var
|
|
276
|
+
var ne = e.sibling(H, 2);
|
|
277
277
|
{
|
|
278
|
-
var
|
|
279
|
-
var I =
|
|
278
|
+
var oe = (g) => {
|
|
279
|
+
var I = Be(), c = e.child(I), h = e.sibling(e.child(c));
|
|
280
280
|
e.reset(c);
|
|
281
281
|
var x = e.sibling(c, 2), G = e.child(x);
|
|
282
|
-
|
|
282
|
+
xe(G, { size: 16, class: "shrink-0" });
|
|
283
283
|
var M = e.sibling(G);
|
|
284
284
|
e.reset(x), e.reset(I), e.template_effect(() => {
|
|
285
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
286
|
}), e.delegated("click", c, y), e.delegated("click", x, A), e.append(g, I);
|
|
287
287
|
};
|
|
288
|
-
e.if(
|
|
289
|
-
e.get(f) && g(
|
|
288
|
+
e.if(ne, (g) => {
|
|
289
|
+
e.get(f) && g(oe);
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
|
-
e.reset(
|
|
293
|
-
var
|
|
294
|
-
|
|
292
|
+
e.reset(W);
|
|
293
|
+
var J = e.sibling(W, 2), $ = e.child(J);
|
|
294
|
+
K($, {
|
|
295
295
|
variant: "default",
|
|
296
296
|
size: "md",
|
|
297
297
|
class: "flex-1",
|
|
298
298
|
onclick: T,
|
|
299
299
|
children: (g, I) => {
|
|
300
|
-
var c =
|
|
301
|
-
|
|
300
|
+
var c = Ge(), h = e.first_child(c);
|
|
301
|
+
_e(h, { size: 16 });
|
|
302
302
|
var x = e.sibling(h);
|
|
303
303
|
e.template_effect(() => e.set_text(x, ` ${(s().share || "Share") ?? ""}`)), e.append(g, c);
|
|
304
304
|
},
|
|
305
305
|
$$slots: { default: !0 }
|
|
306
306
|
});
|
|
307
|
-
var
|
|
307
|
+
var ce = e.sibling($, 2);
|
|
308
308
|
{
|
|
309
|
-
var
|
|
310
|
-
|
|
309
|
+
var de = (g) => {
|
|
310
|
+
K(g, {
|
|
311
311
|
variant: "default",
|
|
312
312
|
size: "md",
|
|
313
313
|
class: "flex-1",
|
|
@@ -316,47 +316,47 @@ END:VCALENDAR`, C = new Blob([k], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
316
316
|
},
|
|
317
317
|
target: "_blank",
|
|
318
318
|
children: (I, c) => {
|
|
319
|
-
var h =
|
|
320
|
-
|
|
319
|
+
var h = Fe(), x = e.first_child(h);
|
|
320
|
+
ye(x, { size: 16 });
|
|
321
321
|
var G = e.sibling(x);
|
|
322
322
|
e.template_effect(() => e.set_text(G, ` ${(s().map || "Map") ?? ""}`)), e.append(I, h);
|
|
323
323
|
},
|
|
324
324
|
$$slots: { default: !0 }
|
|
325
325
|
});
|
|
326
326
|
};
|
|
327
|
-
e.if(
|
|
328
|
-
t.event.venue.address && g(
|
|
327
|
+
e.if(ce, (g) => {
|
|
328
|
+
t.event.venue.address && g(de);
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
|
-
e.reset(
|
|
332
|
-
var
|
|
333
|
-
|
|
334
|
-
var
|
|
335
|
-
e.reset(
|
|
336
|
-
var
|
|
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
337
|
{
|
|
338
|
-
var
|
|
339
|
-
var I =
|
|
340
|
-
|
|
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
341
|
var x = e.sibling(h);
|
|
342
342
|
e.reset(c), e.template_effect(() => {
|
|
343
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
344
|
}), e.append(g, I);
|
|
345
345
|
};
|
|
346
|
-
e.if(
|
|
347
|
-
t.event.venue.contactEmail && g(
|
|
346
|
+
e.if(ue, (g) => {
|
|
347
|
+
t.event.venue.contactEmail && g(ge);
|
|
348
348
|
});
|
|
349
349
|
}
|
|
350
|
-
e.reset(
|
|
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(
|
|
352
|
-
}), e.delegated("click", b, l), e.delegated("click", n, z), e.delegated("click",
|
|
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
353
|
},
|
|
354
354
|
$$slots: { default: !0 }
|
|
355
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
356
|
}
|
|
357
357
|
e.delegate(["click"]);
|
|
358
|
-
var
|
|
359
|
-
function
|
|
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
360
|
e.push(t, !0);
|
|
361
361
|
let s = e.state("default");
|
|
362
362
|
const f = [
|
|
@@ -378,23 +378,25 @@ function Ze(F, t) {
|
|
|
378
378
|
}
|
|
379
379
|
];
|
|
380
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(() =>
|
|
381
|
+
const y = e.derived(() => Ae(A()));
|
|
382
382
|
let T = e.derived(() => !R());
|
|
383
383
|
const S = {
|
|
384
384
|
default: {
|
|
385
|
-
event:
|
|
385
|
+
event: Ue,
|
|
386
386
|
orderId: "12847",
|
|
387
387
|
lines: [
|
|
388
|
+
// eslint-disable-next-line micdrop/boundary-only-as-cast -- mock data: static showcase ticketIds
|
|
388
389
|
{
|
|
389
|
-
ticketId: 101,
|
|
390
|
+
ticketId: j(101),
|
|
390
391
|
ticketName: "General Admission",
|
|
391
392
|
quantity: 2,
|
|
392
393
|
unitPrice: 25,
|
|
393
394
|
fee: 2.5,
|
|
394
395
|
subtotal: 50
|
|
395
396
|
},
|
|
397
|
+
// eslint-disable-next-line micdrop/boundary-only-as-cast -- mock data: static showcase ticketIds
|
|
396
398
|
{
|
|
397
|
-
ticketId: 102,
|
|
399
|
+
ticketId: j(102),
|
|
398
400
|
ticketName: "VIP Front Row",
|
|
399
401
|
quantity: 1,
|
|
400
402
|
unitPrice: 55,
|
|
@@ -405,11 +407,12 @@ function Ze(F, t) {
|
|
|
405
407
|
customerEmail: "customer@example.com"
|
|
406
408
|
},
|
|
407
409
|
free: {
|
|
408
|
-
event:
|
|
410
|
+
event: ze,
|
|
409
411
|
orderId: "12848",
|
|
410
412
|
lines: [
|
|
413
|
+
// eslint-disable-next-line micdrop/boundary-only-as-cast -- mock data: static showcase ticketIds
|
|
411
414
|
{
|
|
412
|
-
ticketId: 201,
|
|
415
|
+
ticketId: j(201),
|
|
413
416
|
ticketName: "Free Entry",
|
|
414
417
|
quantity: 2,
|
|
415
418
|
unitPrice: 0,
|
|
@@ -420,11 +423,12 @@ function Ze(F, t) {
|
|
|
420
423
|
customerEmail: "comedy.fan@gmail.com"
|
|
421
424
|
},
|
|
422
425
|
registration: {
|
|
423
|
-
event:
|
|
426
|
+
event: qe,
|
|
424
427
|
orderId: "12849",
|
|
425
428
|
lines: [
|
|
429
|
+
// eslint-disable-next-line micdrop/boundary-only-as-cast -- mock data: static showcase ticketIds
|
|
426
430
|
{
|
|
427
|
-
ticketId: 301,
|
|
431
|
+
ticketId: j(301),
|
|
428
432
|
ticketName: "Workshop Seat",
|
|
429
433
|
quantity: 1,
|
|
430
434
|
unitPrice: 75,
|
|
@@ -435,19 +439,21 @@ function Ze(F, t) {
|
|
|
435
439
|
customerEmail: "learner@example.com"
|
|
436
440
|
},
|
|
437
441
|
donation: {
|
|
438
|
-
event:
|
|
442
|
+
event: Se,
|
|
439
443
|
orderId: "12850",
|
|
440
444
|
lines: [
|
|
445
|
+
// eslint-disable-next-line micdrop/boundary-only-as-cast -- mock data: static showcase ticketIds
|
|
441
446
|
{
|
|
442
|
-
ticketId: 401,
|
|
447
|
+
ticketId: j(401),
|
|
443
448
|
ticketName: "Donation",
|
|
444
449
|
quantity: 1,
|
|
445
450
|
unitPrice: 25,
|
|
446
451
|
fee: 0,
|
|
447
452
|
subtotal: 25
|
|
448
453
|
},
|
|
454
|
+
// eslint-disable-next-line micdrop/boundary-only-as-cast -- mock data: static showcase ticketIds
|
|
449
455
|
{
|
|
450
|
-
ticketId: 402,
|
|
456
|
+
ticketId: j(402),
|
|
451
457
|
ticketName: "Standard Admission",
|
|
452
458
|
quantity: 1,
|
|
453
459
|
unitPrice: 30,
|
|
@@ -470,7 +476,7 @@ function Ze(F, t) {
|
|
|
470
476
|
promoDiscount: e.get(l).serverTotals.promoDiscount,
|
|
471
477
|
giftCardAmount: e.get(l).serverTotals.giftCardAmount
|
|
472
478
|
};
|
|
473
|
-
const a = o.reduce((n, P) => n + P.subtotal, 0), b = o.reduce((n, P) => n + P.fee * P.quantity, 0), N =
|
|
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);
|
|
474
480
|
return {
|
|
475
481
|
lines: o,
|
|
476
482
|
subtotal: a,
|
|
@@ -500,23 +506,23 @@ function Ze(F, t) {
|
|
|
500
506
|
}
|
|
501
507
|
e.user_effect(() => {
|
|
502
508
|
e.get(T) && (e.get(s), L());
|
|
503
|
-
}),
|
|
509
|
+
}), X(() => {
|
|
504
510
|
e.set(U, window.matchMedia("(prefers-reduced-motion: reduce)").matches, !0), L();
|
|
505
511
|
});
|
|
506
|
-
var r =
|
|
512
|
+
var r = Ze(), i = e.child(r);
|
|
507
513
|
{
|
|
508
514
|
var d = (o) => {
|
|
509
|
-
var a =
|
|
515
|
+
var a = Ye(), b = e.sibling(e.child(a), 2);
|
|
510
516
|
e.each(b, 17, () => f, e.index, (N, n) => {
|
|
511
517
|
const P = e.derived(() => e.get(s) === e.get(n).value);
|
|
512
|
-
var q =
|
|
518
|
+
var q = He(), W = e.child(q), H = e.sibling(W);
|
|
513
519
|
e.reset(q), e.template_effect(() => {
|
|
514
520
|
e.set_class(
|
|
515
521
|
q,
|
|
516
522
|
1,
|
|
517
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"}`,
|
|
518
524
|
"svelte-1cyfs2"
|
|
519
|
-
), e.set_class(
|
|
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 ?? ""}`);
|
|
520
526
|
}), e.delegated("click", q, () => {
|
|
521
527
|
e.set(s, e.get(n).value, !0);
|
|
522
528
|
}), e.append(N, q);
|
|
@@ -527,7 +533,7 @@ function Ze(F, t) {
|
|
|
527
533
|
});
|
|
528
534
|
}
|
|
529
535
|
var v = e.sibling(i, 2), p = e.child(v), E = e.child(p);
|
|
530
|
-
|
|
536
|
+
le(E, {
|
|
531
537
|
get event() {
|
|
532
538
|
return e.get(l).event;
|
|
533
539
|
},
|
|
@@ -551,7 +557,7 @@ function Ze(F, t) {
|
|
|
551
557
|
}
|
|
552
558
|
});
|
|
553
559
|
var _ = e.sibling(E, 2), w = e.child(_);
|
|
554
|
-
|
|
560
|
+
se(w, {
|
|
555
561
|
get event() {
|
|
556
562
|
return e.get(l).event;
|
|
557
563
|
},
|
|
@@ -569,7 +575,7 @@ function Ze(F, t) {
|
|
|
569
575
|
}
|
|
570
576
|
}), e.reset(_), e.reset(p);
|
|
571
577
|
var k = e.sibling(p, 2), C = e.child(k);
|
|
572
|
-
|
|
578
|
+
le(C, {
|
|
573
579
|
get event() {
|
|
574
580
|
return e.get(l).event;
|
|
575
581
|
},
|
|
@@ -593,7 +599,7 @@ function Ze(F, t) {
|
|
|
593
599
|
}
|
|
594
600
|
});
|
|
595
601
|
var u = e.sibling(C, 2);
|
|
596
|
-
|
|
602
|
+
se(u, {
|
|
597
603
|
get event() {
|
|
598
604
|
return e.get(l).event;
|
|
599
605
|
},
|
|
@@ -612,20 +618,20 @@ function Ze(F, t) {
|
|
|
612
618
|
}), e.reset(k), e.reset(v), e.reset(r), e.append(F, r), e.pop();
|
|
613
619
|
}
|
|
614
620
|
e.delegate(["click"]);
|
|
615
|
-
const
|
|
616
|
-
var
|
|
617
|
-
function
|
|
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) {
|
|
618
624
|
e.push(t, !0);
|
|
619
625
|
let s = e.state(!1), f = e.state(null);
|
|
620
626
|
typeof window < "u" && new URLSearchParams(window.location.search).get("legacy") === "1" && e.set(s, !0), e.user_effect(() => {
|
|
621
|
-
e.get(s) && !e.get(f) && (
|
|
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-DpahkG6g.js").then((r) => {
|
|
622
628
|
e.set(f, r.default, !0);
|
|
623
629
|
}).catch(() => {
|
|
624
630
|
e.set(s, !1);
|
|
625
631
|
}));
|
|
626
632
|
});
|
|
627
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);
|
|
628
|
-
|
|
634
|
+
X(async () => {
|
|
629
635
|
const {
|
|
630
636
|
id: r,
|
|
631
637
|
slug: i,
|
|
@@ -638,15 +644,15 @@ function nt(F, t) {
|
|
|
638
644
|
e.set(T, `${window.location.origin}/e/${r}-${i}`);
|
|
639
645
|
let w;
|
|
640
646
|
try {
|
|
641
|
-
w =
|
|
647
|
+
w = De(d);
|
|
642
648
|
} catch (a) {
|
|
643
|
-
|
|
649
|
+
Q.warn("Success: transformApiEvent failed:", a), e.set(S, A().failedToLoadEventData || "Failed to load event data.", !0), e.set(l, !1);
|
|
644
650
|
return;
|
|
645
651
|
}
|
|
646
652
|
let k = v || "", C = E || "", u = [], o = null;
|
|
647
653
|
if (k)
|
|
648
654
|
try {
|
|
649
|
-
const a = await
|
|
655
|
+
const a = await Te(k);
|
|
650
656
|
if (a) {
|
|
651
657
|
C = a.customerEmail || C;
|
|
652
658
|
const b = a.purchasedTickets || a.tickets || [], N = /* @__PURE__ */ new Map();
|
|
@@ -672,11 +678,12 @@ function nt(F, t) {
|
|
|
672
678
|
});
|
|
673
679
|
}
|
|
674
680
|
} catch (a) {
|
|
675
|
-
|
|
681
|
+
Q.warn("Success: getOrder failed, using route params:", a);
|
|
676
682
|
}
|
|
677
683
|
u.length === 0 && _ > 0 && (u = [
|
|
678
684
|
{
|
|
679
|
-
|
|
685
|
+
// eslint-disable-next-line micdrop/boundary-only-as-cast -- fallback placeholder: no real ticketId available
|
|
686
|
+
ticketId: j(0),
|
|
680
687
|
ticketName: A().ticketFallbackName || "Ticket",
|
|
681
688
|
quantity: _,
|
|
682
689
|
unitPrice: 0,
|
|
@@ -693,7 +700,7 @@ function nt(F, t) {
|
|
|
693
700
|
...o ? { serverTotals: o } : {}
|
|
694
701
|
},
|
|
695
702
|
!0
|
|
696
|
-
),
|
|
703
|
+
), Ee(String(r)), Ce("checkout-cartid"), e.set(l, !1);
|
|
697
704
|
});
|
|
698
705
|
var z = e.comment(), B = e.first_child(z);
|
|
699
706
|
{
|
|
@@ -710,13 +717,13 @@ function nt(F, t) {
|
|
|
710
717
|
});
|
|
711
718
|
}), e.append(r, i);
|
|
712
719
|
}, m = (r) => {
|
|
713
|
-
var i =
|
|
720
|
+
var i = Ke(), d = e.child(i), v = e.child(d, !0);
|
|
714
721
|
e.reset(d), e.reset(i), e.template_effect(() => e.set_text(v, e.get(S))), e.append(r, i);
|
|
715
722
|
}, U = (r) => {
|
|
716
|
-
var i =
|
|
723
|
+
var i = Qe(), d = e.child(i), v = e.child(d, !0);
|
|
717
724
|
e.reset(d), e.reset(i), e.template_effect(() => e.set_text(v, A().loadingYourOrder || "Loading your order")), e.append(r, i);
|
|
718
725
|
}, L = (r) => {
|
|
719
|
-
|
|
726
|
+
Je(r, {
|
|
720
727
|
get data() {
|
|
721
728
|
return e.get(y);
|
|
722
729
|
},
|
|
@@ -732,6 +739,6 @@ function nt(F, t) {
|
|
|
732
739
|
e.append(F, z), e.pop();
|
|
733
740
|
}
|
|
734
741
|
export {
|
|
735
|
-
|
|
742
|
+
ot as default
|
|
736
743
|
};
|
|
737
|
-
//# sourceMappingURL=Success-
|
|
744
|
+
//# sourceMappingURL=Success-BCUnIuMQ.js.map
|