@getmicdrop/venue-calendar 4.0.108 → 4.0.110
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 +740 -740
- package/dist/CartView-bMHSoj75.js +2475 -0
- package/dist/CartView-bMHSoj75.js.map +1 -0
- package/dist/{Checkout-C4zUFYYG.js → Checkout-DDXZc-yj.js} +266 -276
- package/dist/Checkout-DDXZc-yj.js.map +1 -0
- package/dist/{Checkout-CACB_Qvi.js → Checkout-DG2iHmHC.js} +215 -214
- package/dist/Checkout-DG2iHmHC.js.map +1 -0
- package/dist/{CheckoutTimer-D5llSBPs.js → CheckoutTimer-Bwq6a_Hl.js} +5 -5
- package/dist/CheckoutTimer-Bwq6a_Hl.js.map +1 -0
- package/dist/{ClockIcon-BJnxLZ4f.js → ClockIcon-ZgeMNNI1.js} +2 -2
- package/dist/ClockIcon-ZgeMNNI1.js.map +1 -0
- package/dist/{CollectionView-BLpwWRcN.js → CollectionView-1pf2C4kX.js} +85 -84
- package/dist/CollectionView-1pf2C4kX.js.map +1 -0
- package/dist/{Event-DXp4Ypv4.js → Event-D3o0fguY.js} +1693 -1611
- package/dist/Event-D3o0fguY.js.map +1 -0
- package/dist/EventPage-DqO-AV8i.js +995 -0
- package/dist/EventPage-DqO-AV8i.js.map +1 -0
- package/dist/{Heading-C_Pc_j8f.js → Heading-pURRwiIC.js} +5 -5
- package/dist/Heading-pURRwiIC.js.map +1 -0
- package/dist/{ScarcityBadge-CSi-i0-w.js → ScarcityBadge-ykz32KS9.js} +25 -25
- package/dist/ScarcityBadge-ykz32KS9.js.map +1 -0
- package/dist/SeriesPage-BmNk80cF.js +34 -0
- package/dist/SeriesPage-BmNk80cF.js.map +1 -0
- package/dist/{Spinner-BFIjCOTb.js → Spinner-OGA1hrc5.js} +2 -2
- package/dist/Spinner-OGA1hrc5.js.map +1 -0
- package/dist/Success-DLlQ54_-.js +896 -0
- package/dist/Success-DLlQ54_-.js.map +1 -0
- package/dist/{Text-tWGKQJab.js → Text-DMpMLgcU.js} +27 -27
- package/dist/Text-DMpMLgcU.js.map +1 -0
- package/dist/{VenueCalendar-Dhoi9hF5.js → VenueCalendar-ClSRsS6u.js} +8133 -8270
- package/dist/VenueCalendar-ClSRsS6u.js.map +1 -0
- package/dist/{ViewTicketsEmbed-BrXae6cK.js → ViewTicketsEmbed-5LMG2xwn.js} +151 -150
- package/dist/ViewTicketsEmbed-5LMG2xwn.js.map +1 -0
- package/dist/__SKIP_PATHS__-BtJ0tS93.js +10 -0
- package/dist/__SKIP_PATHS__-BtJ0tS93.js.map +1 -0
- package/dist/api/api/events.d.ts +28 -12
- package/dist/api/api/index.d.ts +1 -1
- package/dist/api/api/route-manifest.d.ts +179 -0
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.cjs.map +1 -1
- package/dist/api/api.mjs +388 -385
- package/dist/api/api.mjs.map +1 -1
- package/dist/api/types.d.ts +483 -483
- package/dist/{labels-CGndTgO9.js → labels-Ws4MJjH5.js} +141 -136
- package/dist/labels-Ws4MJjH5.js.map +1 -0
- package/dist/{modalManager.svelte-BgW5Xd6y.js → modalManager.svelte-BPA2JF6c.js} +2 -2
- package/dist/modalManager.svelte-BPA2JF6c.js.map +1 -0
- package/dist/navigation--gZASiSa.js +19 -0
- package/dist/navigation--gZASiSa.js.map +1 -0
- package/dist/promo-vXx1bxQm.js +29 -0
- package/dist/promo-vXx1bxQm.js.map +1 -0
- package/dist/seo/helpers.d.ts +11 -0
- package/dist/seo/seo.cjs +1 -1
- package/dist/seo/seo.cjs.map +1 -1
- package/dist/seo/seo.mjs +463 -325
- package/dist/seo/seo.mjs.map +1 -1
- package/dist/seo/types.d.ts +0 -1
- package/dist/{showcase-state-options-BxLP2R1L.js → showcase-state-options-9SoS5WuT.js} +21 -21
- package/dist/showcase-state-options-9SoS5WuT.js.map +1 -0
- package/dist/{transform-CVOgA-Ky.js → transform-BD9xXAq7.js} +83 -79
- package/dist/transform-BD9xXAq7.js.map +1 -0
- package/dist/types/index.d.ts +459 -455
- package/dist/utm-rT0TPh8G.js +288 -0
- package/dist/utm-rT0TPh8G.js.map +1 -0
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +4 -4
- package/dist/venue-calendar.iife.js +49 -49
- package/dist/venue-calendar.iife.js.map +1 -1
- package/dist/venue-calendar.umd.js +44 -44
- package/dist/venue-calendar.umd.js.map +1 -1
- package/package.json +199 -195
- package/src/lib/theme.js +222 -222
- package/dist/CartView-eQNOdQSz.js +0 -2354
- package/dist/CartView-eQNOdQSz.js.map +0 -1
- package/dist/Checkout-C4zUFYYG.js.map +0 -1
- package/dist/Checkout-CACB_Qvi.js.map +0 -1
- package/dist/CheckoutTimer-D5llSBPs.js.map +0 -1
- package/dist/ClockIcon-BJnxLZ4f.js.map +0 -1
- package/dist/CollectionView-BLpwWRcN.js.map +0 -1
- package/dist/Event-DXp4Ypv4.js.map +0 -1
- package/dist/EventPage-Dfxyzfg2.js +0 -949
- package/dist/EventPage-Dfxyzfg2.js.map +0 -1
- package/dist/Heading-C_Pc_j8f.js.map +0 -1
- package/dist/ScarcityBadge-CSi-i0-w.js.map +0 -1
- package/dist/SeriesPage-bPZlyzQ6.js +0 -33
- package/dist/SeriesPage-bPZlyzQ6.js.map +0 -1
- package/dist/Spinner-BFIjCOTb.js.map +0 -1
- package/dist/Success-Cv8d2syu.js +0 -886
- package/dist/Success-Cv8d2syu.js.map +0 -1
- package/dist/Text-tWGKQJab.js.map +0 -1
- package/dist/VenueCalendar-Dhoi9hF5.js.map +0 -1
- package/dist/ViewTicketsEmbed-BrXae6cK.js.map +0 -1
- package/dist/labels-CGndTgO9.js.map +0 -1
- package/dist/modalManager.svelte-BgW5Xd6y.js.map +0 -1
- package/dist/promo-WWbp2OWI.js +0 -12
- package/dist/promo-WWbp2OWI.js.map +0 -1
- package/dist/showcase-state-options-BxLP2R1L.js.map +0 -1
- package/dist/transform-CVOgA-Ky.js.map +0 -1
package/dist/Success-Cv8d2syu.js
DELETED
|
@@ -1,886 +0,0 @@
|
|
|
1
|
-
import "svelte/internal/disclose-version";
|
|
2
|
-
import * as e from "svelte/internal/client";
|
|
3
|
-
import { onMount as le, onDestroy as Te } from "svelte";
|
|
4
|
-
import { u as ne, V as he, X as Ee, Y as Se, Z as ze, _ as Pe, g as ae, $ as De, a0 as Ae, a1 as Q, a2 as Ne, a3 as Ue, a4 as Me, a5 as Le, a6 as Oe, a7 as ve, a8 as Ve, a9 as Re, T as je, q as He } from "./VenueCalendar-Dhoi9hF5.js";
|
|
5
|
-
import { c as Fe, E as Be, L as qe, t as Ge } from "./transform-CVOgA-Ky.js";
|
|
6
|
-
import { d as ee, m as Ze, a as We, b as Ye, c as Ke, g as Xe } from "./showcase-state-options-BxLP2R1L.js";
|
|
7
|
-
import { O as Je, C as ue, m as Qe, c as $e } from "./labels-CGndTgO9.js";
|
|
8
|
-
import { C as _e, H as et } from "./Heading-C_Pc_j8f.js";
|
|
9
|
-
import { T as $, I as tt } from "./Text-tWGKQJab.js";
|
|
10
|
-
var rt = e.from_svg('<path d="M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"></path>'), at = e.from_svg('<line x1="128" y1="144" x2="128" y2="32" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></line><polyline points="216 144 216 208 40 208 40 144" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></polyline><polyline points="168 104 128 144 88 104" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></polyline>', 1), st = e.from_svg('<svg aria-hidden="true" viewBox="0 0 256 256" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><!></svg>');
|
|
11
|
-
function lt(h, t) {
|
|
12
|
-
e.push(t, !0);
|
|
13
|
-
let a = e.prop(t, "size", 3, "24"), _ = e.prop(t, "color", 3, "currentColor"), w = e.prop(t, "class", 3, "");
|
|
14
|
-
const E = ne();
|
|
15
|
-
let U = e.derived(() => t.weight ?? E?.weight ?? "regular");
|
|
16
|
-
var r = st();
|
|
17
|
-
let p;
|
|
18
|
-
var z = e.child(r);
|
|
19
|
-
{
|
|
20
|
-
var n = (o) => {
|
|
21
|
-
var m = rt();
|
|
22
|
-
e.append(o, m);
|
|
23
|
-
}, x = (o) => {
|
|
24
|
-
var m = at();
|
|
25
|
-
e.next(2), e.append(o, m);
|
|
26
|
-
};
|
|
27
|
-
e.if(z, (o) => {
|
|
28
|
-
e.get(U) === "fill" ? o(n) : o(x, -1);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
e.reset(r), e.template_effect(() => {
|
|
32
|
-
e.set_class(r, 0, e.clsx(w())), e.set_attribute(r, "width", a()), e.set_attribute(r, "height", a()), p = e.set_style(r, "", p, { color: _() });
|
|
33
|
-
}), e.append(h, r), e.pop();
|
|
34
|
-
}
|
|
35
|
-
var nt = e.from_svg('<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z"></path>'), it = e.from_svg('<circle cx="128" cy="180" r="12"></circle><path d="M128,144v-8c17.67,0,32-12.54,32-28s-14.33-28-32-28S96,92.54,96,108v4" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path><circle cx="128" cy="128" r="96" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></circle>', 1), ot = e.from_svg('<svg aria-hidden="true" viewBox="0 0 256 256" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><!></svg>');
|
|
36
|
-
function dt(h, t) {
|
|
37
|
-
e.push(t, !0);
|
|
38
|
-
let a = e.prop(t, "size", 3, "24"), _ = e.prop(t, "color", 3, "currentColor"), w = e.prop(t, "class", 3, "");
|
|
39
|
-
const E = ne();
|
|
40
|
-
let U = e.derived(() => t.weight ?? E?.weight ?? "regular");
|
|
41
|
-
var r = ot();
|
|
42
|
-
let p;
|
|
43
|
-
var z = e.child(r);
|
|
44
|
-
{
|
|
45
|
-
var n = (o) => {
|
|
46
|
-
var m = nt();
|
|
47
|
-
e.append(o, m);
|
|
48
|
-
}, x = (o) => {
|
|
49
|
-
var m = it();
|
|
50
|
-
e.next(2), e.append(o, m);
|
|
51
|
-
};
|
|
52
|
-
e.if(z, (o) => {
|
|
53
|
-
e.get(U) === "fill" ? o(n) : o(x, -1);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
e.reset(r), e.template_effect(() => {
|
|
57
|
-
e.set_class(r, 0, e.clsx(w())), e.set_attribute(r, "width", a()), e.set_attribute(r, "height", a()), p = e.set_style(r, "", p, { color: _() });
|
|
58
|
-
}), e.append(h, r), e.pop();
|
|
59
|
-
}
|
|
60
|
-
var ct = e.from_svg('<path d="M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM98.71,128,40,181.81V74.19Zm11.84,10.85,12,11.05a8,8,0,0,0,10.82,0l12-11.05,58,53.15H52.57ZM157.29,128,216,74.18V181.82Z"></path>'), vt = e.from_svg('<polyline points="224 56 128 144 32 56" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></polyline><path d="M32,56H224a0,0,0,0,1,0,0V192a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V56A0,0,0,0,1,32,56Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path><line x1="110.55" y1="128" x2="34.47" y2="197.74" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></line><line x1="221.53" y1="197.74" x2="145.45" y2="128" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></line>', 1), ut = e.from_svg('<svg aria-hidden="true" viewBox="0 0 256 256" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><!></svg>');
|
|
61
|
-
function gt(h, t) {
|
|
62
|
-
e.push(t, !0);
|
|
63
|
-
let a = e.prop(t, "size", 3, "24"), _ = e.prop(t, "color", 3, "currentColor"), w = e.prop(t, "class", 3, "");
|
|
64
|
-
const E = ne();
|
|
65
|
-
let U = e.derived(() => t.weight ?? E?.weight ?? "regular");
|
|
66
|
-
var r = ut();
|
|
67
|
-
let p;
|
|
68
|
-
var z = e.child(r);
|
|
69
|
-
{
|
|
70
|
-
var n = (o) => {
|
|
71
|
-
var m = ct();
|
|
72
|
-
e.append(o, m);
|
|
73
|
-
}, x = (o) => {
|
|
74
|
-
var m = vt();
|
|
75
|
-
e.next(3), e.append(o, m);
|
|
76
|
-
};
|
|
77
|
-
e.if(z, (o) => {
|
|
78
|
-
e.get(U) === "fill" ? o(n) : o(x, -1);
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
e.reset(r), e.template_effect(() => {
|
|
82
|
-
e.set_class(r, 0, e.clsx(w())), e.set_attribute(r, "width", a()), e.set_attribute(r, "height", a()), p = e.set_style(r, "", p, { color: _() });
|
|
83
|
-
}), e.append(h, r), e.pop();
|
|
84
|
-
}
|
|
85
|
-
const be = (h) => `micdrop_pending_validate_${h}`;
|
|
86
|
-
function mt(h) {
|
|
87
|
-
return h ? he(be(h), null) : null;
|
|
88
|
-
}
|
|
89
|
-
function ge(h) {
|
|
90
|
-
h && Ee(be(h));
|
|
91
|
-
}
|
|
92
|
-
var ft = e.from_html('<div class="p-6 md:p-8"><div class="flex justify-center mb-6"><div class="indicator-container svelte-667vry"><div></div> <svg viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="24" class="checkmark-circle svelte-667vry"></circle><circle cx="26" cy="26" r="24" class="checkmark-fill svelte-667vry"></circle><path d="M14 27l7 7 17-17" class="checkmark-check svelte-667vry"></path></svg></div></div> <div><div class="flex flex-col gap-3 text-center mb-6"><!> <!> <!></div> <div class="mb-6"><!></div> <div class="flex justify-between items-center py-3 border-t border-default"><!></div> <div class="flex items-center justify-center gap-2 p-3 rounded-lg bg-surface-secondary mt-4"><!> <!></div></div></div>');
|
|
93
|
-
function me(h, t) {
|
|
94
|
-
e.push(t, !0);
|
|
95
|
-
let a = e.prop(t, "labels", 19, () => ({})), _ = e.derived(() => t.orderTotals.lines.reduce((E, U) => E + U.quantity, 0)), w = e.derived(() => t.event.isRegistrationEvent ? a().youreRegistered || "You're registered" : a().youreIn || "You're in");
|
|
96
|
-
_e(h, {
|
|
97
|
-
border: !0,
|
|
98
|
-
padding: !1,
|
|
99
|
-
class: "rounded-xl shadow-lg overflow-hidden bg-surface-primary",
|
|
100
|
-
children: (E, U) => {
|
|
101
|
-
var r = ft(), p = e.child(r), z = e.child(p), n = e.child(z);
|
|
102
|
-
let x;
|
|
103
|
-
var o = e.sibling(n, 2);
|
|
104
|
-
let m;
|
|
105
|
-
e.reset(z), e.reset(p);
|
|
106
|
-
var C = e.sibling(p, 2);
|
|
107
|
-
let V;
|
|
108
|
-
var B = e.child(C), b = e.child(B);
|
|
109
|
-
et(b, {
|
|
110
|
-
level: 1,
|
|
111
|
-
size: "xl",
|
|
112
|
-
weight: "bold",
|
|
113
|
-
children: (l, s) => {
|
|
114
|
-
e.next();
|
|
115
|
-
var c = e.text();
|
|
116
|
-
e.template_effect(() => e.set_text(c, e.get(w))), e.append(l, c);
|
|
117
|
-
},
|
|
118
|
-
$$slots: { default: !0 }
|
|
119
|
-
});
|
|
120
|
-
var P = e.sibling(b, 2);
|
|
121
|
-
$(P, {
|
|
122
|
-
size: "lg",
|
|
123
|
-
weight: "semibold",
|
|
124
|
-
class: "block",
|
|
125
|
-
children: (l, s) => {
|
|
126
|
-
e.next();
|
|
127
|
-
var c = e.text();
|
|
128
|
-
e.template_effect(() => e.set_text(c, t.event.title)), e.append(l, c);
|
|
129
|
-
},
|
|
130
|
-
$$slots: { default: !0 }
|
|
131
|
-
});
|
|
132
|
-
var y = e.sibling(P, 2);
|
|
133
|
-
$(y, {
|
|
134
|
-
size: "sm",
|
|
135
|
-
color: "secondary",
|
|
136
|
-
class: "block",
|
|
137
|
-
children: (l, s) => {
|
|
138
|
-
e.next();
|
|
139
|
-
var c = e.text();
|
|
140
|
-
e.template_effect(() => e.set_text(c, `${e.get(_) ?? ""}
|
|
141
|
-
${(e.get(_) === 1 ? a().ticket || "ticket" : a().tickets || "tickets") ?? ""} confirmed`)), e.append(l, c);
|
|
142
|
-
},
|
|
143
|
-
$$slots: { default: !0 }
|
|
144
|
-
}), e.reset(B);
|
|
145
|
-
var D = e.sibling(B, 2), R = e.child(D);
|
|
146
|
-
Je(R, {
|
|
147
|
-
get orderTotals() {
|
|
148
|
-
return t.orderTotals;
|
|
149
|
-
},
|
|
150
|
-
get labels() {
|
|
151
|
-
return a();
|
|
152
|
-
}
|
|
153
|
-
}), e.reset(D);
|
|
154
|
-
var j = e.sibling(D, 2), M = e.child(j);
|
|
155
|
-
$(M, {
|
|
156
|
-
size: "sm",
|
|
157
|
-
weight: "semibold",
|
|
158
|
-
class: "font-mono",
|
|
159
|
-
children: (l, s) => {
|
|
160
|
-
e.next();
|
|
161
|
-
var c = e.text();
|
|
162
|
-
e.template_effect(() => e.set_text(c, `#${t.orderId ?? ""}`)), e.append(l, c);
|
|
163
|
-
},
|
|
164
|
-
$$slots: { default: !0 }
|
|
165
|
-
}), e.reset(j);
|
|
166
|
-
var L = e.sibling(j, 2), i = e.child(L);
|
|
167
|
-
gt(i, { size: "16", class: "shrink-0 text-color-muted" });
|
|
168
|
-
var u = e.sibling(i, 2);
|
|
169
|
-
$(u, {
|
|
170
|
-
size: "xs",
|
|
171
|
-
color: "secondary",
|
|
172
|
-
children: (l, s) => {
|
|
173
|
-
e.next();
|
|
174
|
-
var c = e.text();
|
|
175
|
-
e.template_effect(() => e.set_text(c, `${(a().confirmationSentTo || "Confirmation sent to") ?? ""}
|
|
176
|
-
${t.customerEmail ?? ""}`)), e.append(l, c);
|
|
177
|
-
},
|
|
178
|
-
$$slots: { default: !0 }
|
|
179
|
-
}), e.reset(L), e.reset(C), e.reset(r), e.template_effect(() => {
|
|
180
|
-
x = e.set_class(n, 1, "processing-spinner svelte-667vry", null, x, { "fade-out": t.showCheckmark }), m = e.set_class(o, 0, "checkmark-svg svelte-667vry", null, m, { active: t.showCheckmark }), V = e.set_class(C, 1, "content-section svelte-667vry", null, V, { visible: t.showContent });
|
|
181
|
-
}), e.append(E, r);
|
|
182
|
-
},
|
|
183
|
-
$$slots: { default: !0 }
|
|
184
|
-
}), e.pop();
|
|
185
|
-
}
|
|
186
|
-
var pt = e.from_html(" <!>", 1), ht = e.from_html('<p class="wallet-note caption svelte-4szgdz" role="status"> </p>'), _t = e.from_html("<!> <!>", 1), bt = e.from_html('<div class="dropdown-menu bg-surface-primary border-default svelte-4szgdz"><a rel="noopener noreferrer" class="dropdown-item text-color-primary hover:bg-surface-secondary svelte-4szgdz"><svg aria-hidden="true" class="shrink-0" width="16" height="16" viewBox="0 0 24 24" fill="none"><path d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z" fill="#4285F4"></path><path d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" fill="#34A853"></path><path d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18A10.96 10.96 0 0 0 1 12c0 1.77.42 3.45 1.18 4.93l3.66-2.84z" fill="#FBBC05"></path><path d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" fill="#EA4335"></path></svg> </a> <button type="button" class="dropdown-item text-color-primary hover:bg-surface-secondary svelte-4szgdz"><!> </button></div>'), fe = e.from_html("<!> ", 1), kt = e.from_html('<p class="copy-fallback caption svelte-4szgdz" role="alert">Copy failed — select to copy: <span class="copy-url svelte-4szgdz"> </span></p>'), xt = e.from_html('<span class="text-color-muted">·</span> <a class="text-link text-color-muted hover:text-color-secondary svelte-4szgdz"><!> </a>', 1), yt = e.from_html('<div class="rounded-t-xl overflow-hidden bg-surface-tertiary"><!></div> <div class="p-5 space-y-4"><div><!> <div class="flex items-center gap-1.5 mt-1.5"><!> <!></div> <div class="mt-0.5"><!></div></div> <div class="flex flex-col items-center gap-3"><button type="button" class="wallet-badge-btn svelte-4szgdz"><img src="/wallet-badges/apple-wallet.svg" class="wallet-badge-img svelte-4szgdz"/></button> <button type="button" class="wallet-badge-btn svelte-4szgdz"><img src="/wallet-badges/google-wallet-dark.svg" class="wallet-badge-img google-dark svelte-4szgdz"/> <img src="/wallet-badges/google-wallet-light.svg" class="wallet-badge-img google-light svelte-4szgdz"/></button> <!></div> <div class="divider"></div> <div class="calendar-dropdown relative"><!> <!></div> <div class="flex gap-2"><!> <!></div> <!> <div class="flex items-center justify-center gap-4 pt-1"><button type="button" class="text-link text-color-muted hover:text-color-secondary svelte-4szgdz"><!> </button> <!></div></div>', 1), wt = e.from_html("<div><!></div>");
|
|
187
|
-
function pe(h, t) {
|
|
188
|
-
e.push(t, !0);
|
|
189
|
-
let a = e.prop(t, "labels", 19, () => ({})), _ = e.state(!1);
|
|
190
|
-
const w = Fe();
|
|
191
|
-
let E = e.state("");
|
|
192
|
-
function U() {
|
|
193
|
-
e.set(_, !e.get(_));
|
|
194
|
-
}
|
|
195
|
-
le(() => {
|
|
196
|
-
function b(P) {
|
|
197
|
-
P.target.closest(".calendar-dropdown") || e.set(_, !1);
|
|
198
|
-
}
|
|
199
|
-
return document.addEventListener("click", b), () => document.removeEventListener("click", b);
|
|
200
|
-
});
|
|
201
|
-
let r = e.derived(() => (() => {
|
|
202
|
-
const b = new Date(t.event.startDateTime), P = t.event.endDateTime ? new Date(t.event.endDateTime) : (
|
|
203
|
-
// @datetime-escape: ICS/calendar-URL instant serialized to UTC — tz-independent
|
|
204
|
-
new Date(b.getTime() + 7200 * 1e3)
|
|
205
|
-
), y = (M) => M.toISOString().replace(/[-:]/g, "").replace(/\.\d{3}/, ""), R = [t.event.venue.name, t.event.venue.address].filter(Boolean).join(", ");
|
|
206
|
-
return `https://calendar.google.com/calendar/render?${new URLSearchParams({
|
|
207
|
-
action: "TEMPLATE",
|
|
208
|
-
text: t.event.title,
|
|
209
|
-
dates: `${y(b)}/${y(P)}`,
|
|
210
|
-
location: R,
|
|
211
|
-
details: `Event: ${t.eventUrl}
|
|
212
|
-
|
|
213
|
-
Ticket confirmation #${t.orderId}`
|
|
214
|
-
}).toString()}`;
|
|
215
|
-
})());
|
|
216
|
-
function p() {
|
|
217
|
-
const b = new Date(t.event.startDateTime), P = t.event.endDateTime ? new Date(t.event.endDateTime) : (
|
|
218
|
-
// @datetime-escape: ICS/calendar-URL instant serialized to UTC — tz-independent
|
|
219
|
-
new Date(b.getTime() + 7200 * 1e3)
|
|
220
|
-
), y = (s) => s.toISOString().replace(/[-:]/g, "").replace(/\.\d{3}/, ""), D = `order-${t.orderId}-event-${t.event.id}@micdrop.com`, R = y(/* @__PURE__ */ new Date()), M = [t.event.venue.name, t.event.venue.address].filter(Boolean).join(", "), L = (s) => s ? s.replace(/\\/g, "\\\\").replace(/;/g, "\\;").replace(/,/g, "\\,").replace(/\n/g, "\\n") : "", i = `BEGIN:VCALENDAR
|
|
221
|
-
VERSION:2.0
|
|
222
|
-
PRODID:-//MicDrop//Ticket Confirmation//EN
|
|
223
|
-
CALSCALE:GREGORIAN
|
|
224
|
-
METHOD:PUBLISH
|
|
225
|
-
BEGIN:VEVENT
|
|
226
|
-
UID:${D}
|
|
227
|
-
DTSTAMP:${R}
|
|
228
|
-
DTSTART:${y(b)}
|
|
229
|
-
DTEND:${y(P)}
|
|
230
|
-
SUMMARY:${L(t.event.title)}
|
|
231
|
-
LOCATION:${L(M)}
|
|
232
|
-
DESCRIPTION:${L(`Order #${t.orderId}
|
|
233
|
-
|
|
234
|
-
View event: ${t.eventUrl}`)}
|
|
235
|
-
URL:${t.eventUrl}
|
|
236
|
-
STATUS:CONFIRMED
|
|
237
|
-
END:VEVENT
|
|
238
|
-
END:VCALENDAR`, u = new Blob([i], { type: "text/calendar;charset=utf-8" }), l = URL.createObjectURL(u);
|
|
239
|
-
try {
|
|
240
|
-
const s = document.createElement("a");
|
|
241
|
-
s.href = l;
|
|
242
|
-
const c = (t.event.title || "event").replace(/[^a-zA-Z0-9\s-]/g, "").replace(/\s+/g, "-");
|
|
243
|
-
s.download = `${c}.ics`, document.body.appendChild(s), s.click(), s.remove();
|
|
244
|
-
} finally {
|
|
245
|
-
URL.revokeObjectURL(l);
|
|
246
|
-
}
|
|
247
|
-
e.set(_, !1);
|
|
248
|
-
}
|
|
249
|
-
function z() {
|
|
250
|
-
e.set(_, !1);
|
|
251
|
-
}
|
|
252
|
-
function n() {
|
|
253
|
-
w.share(t.eventUrl);
|
|
254
|
-
}
|
|
255
|
-
function x() {
|
|
256
|
-
e.set(E, a().walletComingSoon || "Wallet passes are coming soon. Your ticket is confirmed — check your email.", !0);
|
|
257
|
-
}
|
|
258
|
-
Te(w.dispose);
|
|
259
|
-
let o = e.derived(() => (() => {
|
|
260
|
-
const b = [t.event.venue.name, t.event.venue.address].filter(Boolean);
|
|
261
|
-
return `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(b.join(", "))}`;
|
|
262
|
-
})());
|
|
263
|
-
function m() {
|
|
264
|
-
window.location.href = t.eventUrl;
|
|
265
|
-
}
|
|
266
|
-
var C = wt();
|
|
267
|
-
let V;
|
|
268
|
-
var B = e.child(C);
|
|
269
|
-
_e(B, {
|
|
270
|
-
border: !0,
|
|
271
|
-
padding: !1,
|
|
272
|
-
class: "rounded-xl shadow-lg overflow-hidden bg-surface-secondary",
|
|
273
|
-
children: (b, P) => {
|
|
274
|
-
var y = yt(), D = e.first_child(y), R = e.child(D);
|
|
275
|
-
tt(R, {
|
|
276
|
-
get src() {
|
|
277
|
-
return t.event.imageUrl;
|
|
278
|
-
},
|
|
279
|
-
get alt() {
|
|
280
|
-
return t.event.title;
|
|
281
|
-
},
|
|
282
|
-
get fallback() {
|
|
283
|
-
return Se;
|
|
284
|
-
},
|
|
285
|
-
fit: "contain",
|
|
286
|
-
class: "w-full max-h-60 min-h-24"
|
|
287
|
-
}), e.reset(D);
|
|
288
|
-
var j = e.sibling(D, 2), M = e.child(j), L = e.child(M);
|
|
289
|
-
$(L, {
|
|
290
|
-
size: "sm",
|
|
291
|
-
weight: "semibold",
|
|
292
|
-
class: "block leading-tight",
|
|
293
|
-
children: (v, k) => {
|
|
294
|
-
e.next();
|
|
295
|
-
var d = e.text();
|
|
296
|
-
e.template_effect(() => e.set_text(d, t.event.title)), e.append(v, d);
|
|
297
|
-
},
|
|
298
|
-
$$slots: { default: !0 }
|
|
299
|
-
});
|
|
300
|
-
var i = e.sibling(L, 2), u = e.child(i);
|
|
301
|
-
ue(u, { size: "16", class: "shrink-0 icon-muted" });
|
|
302
|
-
var l = e.sibling(u, 2);
|
|
303
|
-
$(l, {
|
|
304
|
-
size: "xs",
|
|
305
|
-
color: "muted",
|
|
306
|
-
children: (v, k) => {
|
|
307
|
-
e.next();
|
|
308
|
-
var d = pt(), T = e.first_child(d), N = e.sibling(T);
|
|
309
|
-
{
|
|
310
|
-
var K = (W) => {
|
|
311
|
-
var ce = e.text();
|
|
312
|
-
e.template_effect((Ie) => e.set_text(ce, `· ${Ie ?? ""}`), [
|
|
313
|
-
() => Pe(t.event.startDateTime, t.event.timezone)
|
|
314
|
-
]), e.append(W, ce);
|
|
315
|
-
};
|
|
316
|
-
e.if(N, (W) => {
|
|
317
|
-
t.event.displayStartTime !== !1 && W(K);
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
e.template_effect((W) => e.set_text(T, `${W ?? ""} `), [
|
|
321
|
-
() => ze(t.event.startDateTime, t.event.timezone)
|
|
322
|
-
]), e.append(v, d);
|
|
323
|
-
},
|
|
324
|
-
$$slots: { default: !0 }
|
|
325
|
-
}), e.reset(i);
|
|
326
|
-
var s = e.sibling(i, 2), c = e.child(s);
|
|
327
|
-
$(c, {
|
|
328
|
-
size: "xs",
|
|
329
|
-
color: "muted",
|
|
330
|
-
class: "block",
|
|
331
|
-
children: (v, k) => {
|
|
332
|
-
e.next();
|
|
333
|
-
var d = e.text();
|
|
334
|
-
e.template_effect(() => e.set_text(d, t.event.venue.name)), e.append(v, d);
|
|
335
|
-
},
|
|
336
|
-
$$slots: { default: !0 }
|
|
337
|
-
}), e.reset(s), e.reset(M);
|
|
338
|
-
var S = e.sibling(M, 2), I = e.child(S), A = e.child(I);
|
|
339
|
-
e.reset(I);
|
|
340
|
-
var q = e.sibling(I, 2), H = e.child(q), G = e.sibling(H, 2);
|
|
341
|
-
e.reset(q);
|
|
342
|
-
var Z = e.sibling(q, 2);
|
|
343
|
-
{
|
|
344
|
-
var Y = (v) => {
|
|
345
|
-
var k = ht(), d = e.child(k, !0);
|
|
346
|
-
e.reset(k), e.template_effect(() => e.set_text(d, e.get(E))), e.append(v, k);
|
|
347
|
-
};
|
|
348
|
-
e.if(Z, (v) => {
|
|
349
|
-
e.get(E) && v(Y);
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
|
-
e.reset(S);
|
|
353
|
-
var X = e.sibling(S, 4), g = e.child(X);
|
|
354
|
-
ae(g, {
|
|
355
|
-
variant: "default",
|
|
356
|
-
size: "md",
|
|
357
|
-
class: "w-full",
|
|
358
|
-
onclick: U,
|
|
359
|
-
children: (v, k) => {
|
|
360
|
-
var d = _t(), T = e.first_child(d);
|
|
361
|
-
ue(T, { size: "16" });
|
|
362
|
-
var N = e.sibling(T), K = e.sibling(N);
|
|
363
|
-
{
|
|
364
|
-
let W = e.derived(() => e.get(_) ? "rotate-180" : "");
|
|
365
|
-
De(K, {
|
|
366
|
-
size: "16",
|
|
367
|
-
get class() {
|
|
368
|
-
return `ml-auto transition-transform ${e.get(W) ?? ""}`;
|
|
369
|
-
}
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
e.template_effect(() => e.set_text(N, ` ${(a().addToCalendar || "Add to calendar") ?? ""} `)), e.append(v, d);
|
|
373
|
-
},
|
|
374
|
-
$$slots: { default: !0 }
|
|
375
|
-
});
|
|
376
|
-
var O = e.sibling(g, 2);
|
|
377
|
-
{
|
|
378
|
-
var F = (v) => {
|
|
379
|
-
var k = bt(), d = e.child(k), T = e.sibling(e.child(d));
|
|
380
|
-
e.reset(d);
|
|
381
|
-
var N = e.sibling(d, 2), K = e.child(N);
|
|
382
|
-
lt(K, { size: "16", class: "shrink-0" });
|
|
383
|
-
var W = e.sibling(K);
|
|
384
|
-
e.reset(N), e.reset(k), e.template_effect(() => {
|
|
385
|
-
e.set_attribute(d, "href", e.get(r)), e.set_text(T, ` ${(a().googleCalendar || "Google Calendar") ?? ""}`), e.set_text(W, ` ${(a().appleCalendar || "Apple Calendar (.ics)") ?? ""}`);
|
|
386
|
-
}), e.delegated("click", d, z), e.delegated("click", N, p), e.append(v, k);
|
|
387
|
-
};
|
|
388
|
-
e.if(O, (v) => {
|
|
389
|
-
e.get(_) && v(F);
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
e.reset(X);
|
|
393
|
-
var f = e.sibling(X, 2), J = e.child(f);
|
|
394
|
-
ae(J, {
|
|
395
|
-
variant: "default",
|
|
396
|
-
size: "md",
|
|
397
|
-
class: "flex-1",
|
|
398
|
-
onclick: n,
|
|
399
|
-
children: (v, k) => {
|
|
400
|
-
var d = fe(), T = e.first_child(d);
|
|
401
|
-
Be(T, { size: "16" });
|
|
402
|
-
var N = e.sibling(T);
|
|
403
|
-
e.template_effect(() => e.set_text(N, ` ${(w.copyState === "copied" ? "Link copied" : a().share || "Share") ?? ""}`)), e.append(v, d);
|
|
404
|
-
},
|
|
405
|
-
$$slots: { default: !0 }
|
|
406
|
-
});
|
|
407
|
-
var te = e.sibling(J, 2);
|
|
408
|
-
{
|
|
409
|
-
var ke = (v) => {
|
|
410
|
-
ae(v, {
|
|
411
|
-
variant: "default",
|
|
412
|
-
size: "md",
|
|
413
|
-
class: "flex-1",
|
|
414
|
-
get href() {
|
|
415
|
-
return e.get(o);
|
|
416
|
-
},
|
|
417
|
-
children: (k, d) => {
|
|
418
|
-
var T = fe(), N = e.first_child(T);
|
|
419
|
-
qe(N, { size: "16" });
|
|
420
|
-
var K = e.sibling(N);
|
|
421
|
-
e.template_effect(() => e.set_text(K, ` ${(a().map || "Map") ?? ""}`)), e.append(k, T);
|
|
422
|
-
},
|
|
423
|
-
$$slots: { default: !0 }
|
|
424
|
-
});
|
|
425
|
-
};
|
|
426
|
-
e.if(te, (v) => {
|
|
427
|
-
t.event.venue.address && v(ke);
|
|
428
|
-
});
|
|
429
|
-
}
|
|
430
|
-
e.reset(f);
|
|
431
|
-
var ie = e.sibling(f, 2);
|
|
432
|
-
{
|
|
433
|
-
var xe = (v) => {
|
|
434
|
-
var k = kt(), d = e.sibling(e.child(k)), T = e.child(d, !0);
|
|
435
|
-
e.reset(d), e.reset(k), e.template_effect(() => e.set_text(T, w.copyFailedUrl)), e.append(v, k);
|
|
436
|
-
};
|
|
437
|
-
e.if(ie, (v) => {
|
|
438
|
-
w.copyState === "failed" && v(xe);
|
|
439
|
-
});
|
|
440
|
-
}
|
|
441
|
-
var oe = e.sibling(ie, 2), re = e.child(oe), de = e.child(re);
|
|
442
|
-
Ae(de, { size: "16", class: "shrink-0" });
|
|
443
|
-
var ye = e.sibling(de);
|
|
444
|
-
e.reset(re);
|
|
445
|
-
var we = e.sibling(re, 2);
|
|
446
|
-
{
|
|
447
|
-
var Ce = (v) => {
|
|
448
|
-
var k = xt(), d = e.sibling(e.first_child(k), 2), T = e.child(d);
|
|
449
|
-
dt(T, { size: "16", class: "shrink-0" });
|
|
450
|
-
var N = e.sibling(T);
|
|
451
|
-
e.reset(d), e.template_effect(() => {
|
|
452
|
-
e.set_attribute(d, "href", `mailto:${t.event.venue.contactEmail ?? ""}?subject=Help with Order ${t.orderId ?? ""}`), e.set_text(N, ` ${(a().needHelp || "Need help?") ?? ""}`);
|
|
453
|
-
}), e.append(v, k);
|
|
454
|
-
};
|
|
455
|
-
e.if(we, (v) => {
|
|
456
|
-
t.event.venue.contactEmail && v(Ce);
|
|
457
|
-
});
|
|
458
|
-
}
|
|
459
|
-
e.reset(oe), e.reset(j), e.template_effect(() => {
|
|
460
|
-
e.set_attribute(A, "alt", a().addToAppleWallet || "Add to Apple Wallet"), e.set_attribute(H, "alt", a().saveToGoogleWallet || "Save to Google Wallet"), e.set_attribute(G, "alt", a().saveToGoogleWallet || "Save to Google Wallet"), e.set_text(ye, ` ${(a().backToEvent || "Back to event") ?? ""}`);
|
|
461
|
-
}), e.delegated("click", I, x), e.delegated("click", q, x), e.delegated("click", re, m), e.append(b, y);
|
|
462
|
-
},
|
|
463
|
-
$$slots: { default: !0 }
|
|
464
|
-
}), e.reset(C), e.template_effect(() => V = e.set_class(C, 1, "actions-wrapper svelte-4szgdz", null, V, { visible: t.showContent })), e.append(h, C), e.pop();
|
|
465
|
-
}
|
|
466
|
-
e.delegate(["click"]);
|
|
467
|
-
var Ct = e.from_html('<div class="w-full min-h-screen bg-surface-primary text-color-primary"><div class="max-w-6xl mx-auto px-4 py-6 md:px-6 md:py-8"><div class="hidden md:grid grid-cols-booking-split gap-8 items-start"><!> <div class="sticky top-6"><!></div></div> <div class="md:hidden space-y-6"><!> <!></div></div></div>');
|
|
468
|
-
function It(h, t) {
|
|
469
|
-
e.push(t, !0);
|
|
470
|
-
const a = Xe();
|
|
471
|
-
let _ = e.derived(() => ee.current), w = e.prop(t, "data", 3, void 0), E = e.prop(t, "eventUrl", 3, void 0), U = e.prop(t, "labels", 19, () => ({}));
|
|
472
|
-
const r = e.derived(() => Qe(U()));
|
|
473
|
-
let p = e.derived(() => !w());
|
|
474
|
-
e.user_effect(() => {
|
|
475
|
-
if (e.get(p))
|
|
476
|
-
return ee.options = a, ee.current = "default", ee.isActive = !0, () => {
|
|
477
|
-
ee.isActive = !1, ee.options = [];
|
|
478
|
-
};
|
|
479
|
-
});
|
|
480
|
-
const z = {
|
|
481
|
-
default: {
|
|
482
|
-
event: Ke,
|
|
483
|
-
orderId: "12847",
|
|
484
|
-
lines: [
|
|
485
|
-
// eslint-disable-next-line micdrop/boundary-only-as-cast -- mock data: static showcase ticketIds
|
|
486
|
-
{
|
|
487
|
-
ticketId: Q(101),
|
|
488
|
-
ticketName: "General Admission",
|
|
489
|
-
quantity: 2,
|
|
490
|
-
unitPrice: 25,
|
|
491
|
-
fee: 2.5,
|
|
492
|
-
subtotal: 50
|
|
493
|
-
},
|
|
494
|
-
// eslint-disable-next-line micdrop/boundary-only-as-cast -- mock data: static showcase ticketIds
|
|
495
|
-
{
|
|
496
|
-
ticketId: Q(102),
|
|
497
|
-
ticketName: "VIP Front Row",
|
|
498
|
-
quantity: 1,
|
|
499
|
-
unitPrice: 55,
|
|
500
|
-
fee: 5.5,
|
|
501
|
-
subtotal: 55
|
|
502
|
-
}
|
|
503
|
-
],
|
|
504
|
-
customerEmail: "customer@example.com"
|
|
505
|
-
},
|
|
506
|
-
free: {
|
|
507
|
-
event: Ye,
|
|
508
|
-
orderId: "12848",
|
|
509
|
-
lines: [
|
|
510
|
-
// eslint-disable-next-line micdrop/boundary-only-as-cast -- mock data: static showcase ticketIds
|
|
511
|
-
{
|
|
512
|
-
ticketId: Q(201),
|
|
513
|
-
ticketName: "Free Entry",
|
|
514
|
-
quantity: 2,
|
|
515
|
-
unitPrice: 0,
|
|
516
|
-
fee: 0,
|
|
517
|
-
subtotal: 0
|
|
518
|
-
}
|
|
519
|
-
],
|
|
520
|
-
customerEmail: "comedy.fan@gmail.com"
|
|
521
|
-
},
|
|
522
|
-
registration: {
|
|
523
|
-
event: We,
|
|
524
|
-
orderId: "12849",
|
|
525
|
-
lines: [
|
|
526
|
-
// eslint-disable-next-line micdrop/boundary-only-as-cast -- mock data: static showcase ticketIds
|
|
527
|
-
{
|
|
528
|
-
ticketId: Q(301),
|
|
529
|
-
ticketName: "Workshop Seat",
|
|
530
|
-
quantity: 1,
|
|
531
|
-
unitPrice: 75,
|
|
532
|
-
fee: 7.5,
|
|
533
|
-
subtotal: 75
|
|
534
|
-
}
|
|
535
|
-
],
|
|
536
|
-
customerEmail: "learner@example.com"
|
|
537
|
-
},
|
|
538
|
-
donation: {
|
|
539
|
-
event: Ze,
|
|
540
|
-
orderId: "12850",
|
|
541
|
-
lines: [
|
|
542
|
-
// eslint-disable-next-line micdrop/boundary-only-as-cast -- mock data: static showcase ticketIds
|
|
543
|
-
{
|
|
544
|
-
ticketId: Q(401),
|
|
545
|
-
ticketName: "Donation",
|
|
546
|
-
quantity: 1,
|
|
547
|
-
unitPrice: 25,
|
|
548
|
-
fee: 0,
|
|
549
|
-
subtotal: 25
|
|
550
|
-
},
|
|
551
|
-
// eslint-disable-next-line micdrop/boundary-only-as-cast -- mock data: static showcase ticketIds
|
|
552
|
-
{
|
|
553
|
-
ticketId: Q(402),
|
|
554
|
-
ticketName: "Standard Admission",
|
|
555
|
-
quantity: 1,
|
|
556
|
-
unitPrice: 30,
|
|
557
|
-
fee: 3,
|
|
558
|
-
subtotal: 30
|
|
559
|
-
}
|
|
560
|
-
],
|
|
561
|
-
customerEmail: "generous@example.com"
|
|
562
|
-
}
|
|
563
|
-
};
|
|
564
|
-
let n = e.derived(() => e.get(p) ? z[e.get(_)] : w()), x = e.derived(() => (() => {
|
|
565
|
-
const u = e.get(n).lines;
|
|
566
|
-
if (e.get(n).serverTotals)
|
|
567
|
-
return {
|
|
568
|
-
lines: u,
|
|
569
|
-
subtotal: e.get(n).serverTotals.subtotal,
|
|
570
|
-
fees: e.get(n).serverTotals.fees,
|
|
571
|
-
taxes: e.get(n).serverTotals.taxes,
|
|
572
|
-
total: e.get(n).serverTotals.total,
|
|
573
|
-
promoDiscount: e.get(n).serverTotals.promoDiscount,
|
|
574
|
-
giftCardAmount: e.get(n).serverTotals.giftCardAmount
|
|
575
|
-
};
|
|
576
|
-
const l = u.reduce((S, I) => S + I.subtotal, 0), s = u.reduce((S, I) => S + I.fee * I.quantity, 0), c = $e(l + s, e.get(n).event.venue.taxPercentage);
|
|
577
|
-
return {
|
|
578
|
-
lines: u,
|
|
579
|
-
subtotal: l,
|
|
580
|
-
fees: s,
|
|
581
|
-
taxes: c,
|
|
582
|
-
total: l + s + c,
|
|
583
|
-
promoDiscount: 0,
|
|
584
|
-
giftCardAmount: 0
|
|
585
|
-
};
|
|
586
|
-
})()), o = e.derived(() => e.get(p) ? typeof window > "u" ? "#" : `${window.location.origin}/e/${e.get(n).event.id}-${e.get(n).event.slug}` : E() || "#"), m = e.state(!1), C = e.state(!1), V = e.state(!1);
|
|
587
|
-
function B() {
|
|
588
|
-
if (e.get(V)) {
|
|
589
|
-
e.set(m, !0), e.set(C, !0);
|
|
590
|
-
return;
|
|
591
|
-
}
|
|
592
|
-
e.set(m, !1), e.set(C, !1), setTimeout(
|
|
593
|
-
() => {
|
|
594
|
-
e.set(m, !0);
|
|
595
|
-
},
|
|
596
|
-
800
|
|
597
|
-
), setTimeout(
|
|
598
|
-
() => {
|
|
599
|
-
e.set(C, !0);
|
|
600
|
-
},
|
|
601
|
-
1600
|
|
602
|
-
);
|
|
603
|
-
}
|
|
604
|
-
e.user_effect(() => {
|
|
605
|
-
e.get(p) && (e.get(_), B());
|
|
606
|
-
}), le(() => {
|
|
607
|
-
e.set(V, window.matchMedia("(prefers-reduced-motion: reduce)").matches, !0), B();
|
|
608
|
-
});
|
|
609
|
-
var b = Ct(), P = e.child(b), y = e.child(P), D = e.child(y);
|
|
610
|
-
me(D, {
|
|
611
|
-
get event() {
|
|
612
|
-
return e.get(n).event;
|
|
613
|
-
},
|
|
614
|
-
get orderId() {
|
|
615
|
-
return e.get(n).orderId;
|
|
616
|
-
},
|
|
617
|
-
get orderTotals() {
|
|
618
|
-
return e.get(x);
|
|
619
|
-
},
|
|
620
|
-
get customerEmail() {
|
|
621
|
-
return e.get(n).customerEmail;
|
|
622
|
-
},
|
|
623
|
-
get showCheckmark() {
|
|
624
|
-
return e.get(m);
|
|
625
|
-
},
|
|
626
|
-
get showContent() {
|
|
627
|
-
return e.get(C);
|
|
628
|
-
},
|
|
629
|
-
get labels() {
|
|
630
|
-
return e.get(r);
|
|
631
|
-
}
|
|
632
|
-
});
|
|
633
|
-
var R = e.sibling(D, 2), j = e.child(R);
|
|
634
|
-
pe(j, {
|
|
635
|
-
get event() {
|
|
636
|
-
return e.get(n).event;
|
|
637
|
-
},
|
|
638
|
-
get orderId() {
|
|
639
|
-
return e.get(n).orderId;
|
|
640
|
-
},
|
|
641
|
-
get eventUrl() {
|
|
642
|
-
return e.get(o);
|
|
643
|
-
},
|
|
644
|
-
get showContent() {
|
|
645
|
-
return e.get(C);
|
|
646
|
-
},
|
|
647
|
-
get labels() {
|
|
648
|
-
return e.get(r);
|
|
649
|
-
}
|
|
650
|
-
}), e.reset(R), e.reset(y);
|
|
651
|
-
var M = e.sibling(y, 2), L = e.child(M);
|
|
652
|
-
me(L, {
|
|
653
|
-
get event() {
|
|
654
|
-
return e.get(n).event;
|
|
655
|
-
},
|
|
656
|
-
get orderId() {
|
|
657
|
-
return e.get(n).orderId;
|
|
658
|
-
},
|
|
659
|
-
get orderTotals() {
|
|
660
|
-
return e.get(x);
|
|
661
|
-
},
|
|
662
|
-
get customerEmail() {
|
|
663
|
-
return e.get(n).customerEmail;
|
|
664
|
-
},
|
|
665
|
-
get showCheckmark() {
|
|
666
|
-
return e.get(m);
|
|
667
|
-
},
|
|
668
|
-
get showContent() {
|
|
669
|
-
return e.get(C);
|
|
670
|
-
},
|
|
671
|
-
get labels() {
|
|
672
|
-
return e.get(r);
|
|
673
|
-
}
|
|
674
|
-
});
|
|
675
|
-
var i = e.sibling(L, 2);
|
|
676
|
-
pe(i, {
|
|
677
|
-
get event() {
|
|
678
|
-
return e.get(n).event;
|
|
679
|
-
},
|
|
680
|
-
get orderId() {
|
|
681
|
-
return e.get(n).orderId;
|
|
682
|
-
},
|
|
683
|
-
get eventUrl() {
|
|
684
|
-
return e.get(o);
|
|
685
|
-
},
|
|
686
|
-
get showContent() {
|
|
687
|
-
return e.get(C);
|
|
688
|
-
},
|
|
689
|
-
get labels() {
|
|
690
|
-
return e.get(r);
|
|
691
|
-
}
|
|
692
|
-
}), e.reset(M), e.reset(P), e.reset(b), e.append(h, b), e.pop();
|
|
693
|
-
}
|
|
694
|
-
const se = He("Success");
|
|
695
|
-
var Tt = e.from_html('<p class="payment-failed-title svelte-1mm1psu"> </p> <p class="payment-failed-message svelte-1mm1psu"> </p>', 1), Et = e.from_html('<p class="payment-failed-title svelte-1mm1psu"> </p> <p class="payment-failed-message svelte-1mm1psu"> </p> <a class="payment-failed-retry svelte-1mm1psu"> </a>', 1), St = e.from_html('<div class="flex flex-col items-center justify-center py-24 text-center gap-4 payment-failed-container"><!></div>'), zt = 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>'), Pt = e.from_html('<div class="flex items-center justify-center py-24 text-center loading-container svelte-1mm1psu"><p> </p></div>');
|
|
696
|
-
function Rt(h, t) {
|
|
697
|
-
e.push(t, !0);
|
|
698
|
-
let a = e.prop(t, "data", 19, () => ({})), _ = e.prop(t, "browseUrl", 3, "/"), w = e.prop(t, "eventUrl", 3, void 0), E = e.prop(t, "widgetId", 3, null), U = e.prop(t, "venueId", 3, null), r = e.prop(t, "labels", 19, () => ({})), p = e.state(null), z = e.state(""), n = e.state(null), x = e.state(!0), o = e.derived(() => String(a()?.redirectStatus || "")), m = e.derived(() => e.get(o) !== "" && e.get(o) !== "succeeded"), C = e.derived(() => e.get(o) === "pending" || e.get(o) === "processing"), V = e.state(!1), B = e.state(!1), b = e.derived(() => a()?.id && a()?.slug ? `/${a().id}/${a().slug}` : _());
|
|
699
|
-
async function P(i, u) {
|
|
700
|
-
if (!i) return "unconfirmed";
|
|
701
|
-
const l = mt(i);
|
|
702
|
-
if (l && u) {
|
|
703
|
-
const s = await je(i, { ...l, id: i, paymentIntentId: u });
|
|
704
|
-
if (s?.success)
|
|
705
|
-
return ge(i), "ok";
|
|
706
|
-
if (s && (s.eventCanceled || s.eventPostponed))
|
|
707
|
-
return ge(i), "no-charge";
|
|
708
|
-
}
|
|
709
|
-
try {
|
|
710
|
-
const c = (await ve(i))?.purchasedTickets;
|
|
711
|
-
return Array.isArray(c) && c.length > 0 ? "ok" : "unconfirmed";
|
|
712
|
-
} catch (s) {
|
|
713
|
-
return se.warn("Success: redirect-return order check failed:", s), "unconfirmed";
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
le(async () => {
|
|
717
|
-
if (e.get(m)) {
|
|
718
|
-
e.set(x, !1);
|
|
719
|
-
return;
|
|
720
|
-
}
|
|
721
|
-
if (e.get(o) === "succeeded") {
|
|
722
|
-
const g = String(a()?.orderId || a()?.orderUuid || ""), O = await P(g, String(a()?.paymentIntentId || ""));
|
|
723
|
-
if (O !== "ok") {
|
|
724
|
-
O === "no-charge" ? e.set(B, !0) : e.set(V, !0), e.set(x, !1);
|
|
725
|
-
return;
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
const {
|
|
729
|
-
id: i,
|
|
730
|
-
slug: u,
|
|
731
|
-
event: l,
|
|
732
|
-
orderId: s,
|
|
733
|
-
orderUuid: c,
|
|
734
|
-
// In-memory only (AC-EV-4): populated on the embed path where
|
|
735
|
-
// CalendarContainer hands the buyer email straight to this component. The
|
|
736
|
-
// full-page route never sources it from the URL/loader — email there comes
|
|
737
|
-
// from getOrder(orderId) below. Buyer email is PII and must not ride in a URL.
|
|
738
|
-
customerEmail: S,
|
|
739
|
-
ticketCount: I,
|
|
740
|
-
// Order total + currency threaded from Checkout → CalendarContainer
|
|
741
|
-
// (MISSION-TRUTH C6). Present on the embed purchase path; undefined on the
|
|
742
|
-
// full-page route (its pixels/postMessage fire at mount, before getOrder).
|
|
743
|
-
value: A,
|
|
744
|
-
currency: q
|
|
745
|
-
} = a() || {};
|
|
746
|
-
{
|
|
747
|
-
const { postMessageOnSuccess: g, postMessageTargetOrigin: O } = Ne();
|
|
748
|
-
if (g) {
|
|
749
|
-
const F = {
|
|
750
|
-
orderId: String(s || c || ""),
|
|
751
|
-
eventId: i ?? a()?.eventId ?? l?.id ?? null
|
|
752
|
-
};
|
|
753
|
-
typeof A == "number" && Number.isFinite(A) && (F.value = A, F.currency = q || "USD"), Ue(F, O);
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
{
|
|
757
|
-
const g = i ?? a()?.eventId ?? l?.id ?? null, O = String(s || c || ""), F = "micdrop_purchased_orders", f = he(F, []) ?? [], J = !!O && f.includes(O);
|
|
758
|
-
g != null && !J && (Me(g, E(), U() || l?.venueID || l?.venueId || null), Le({
|
|
759
|
-
eventId: g,
|
|
760
|
-
orderId: O,
|
|
761
|
-
value: typeof A == "number" ? A : null,
|
|
762
|
-
currency: q,
|
|
763
|
-
contentName: l?.name || l?.title || ""
|
|
764
|
-
}), O && Oe(F, [...f, O]));
|
|
765
|
-
}
|
|
766
|
-
e.set(z, w() || `${window.location.origin}/e/${i}-${u}`, !0);
|
|
767
|
-
let H;
|
|
768
|
-
try {
|
|
769
|
-
H = Ge(l);
|
|
770
|
-
} catch (g) {
|
|
771
|
-
se.warn("Success: transformApiEvent failed:", g), e.set(n, r().failedToLoadEventData || "Failed to load event data.", !0), e.set(x, !1);
|
|
772
|
-
return;
|
|
773
|
-
}
|
|
774
|
-
let G = s || "", Z = S || "", Y = [], X = null;
|
|
775
|
-
if (G)
|
|
776
|
-
try {
|
|
777
|
-
const g = await ve(G);
|
|
778
|
-
if (g) {
|
|
779
|
-
Z = g.customerEmail || Z;
|
|
780
|
-
const O = g.purchasedTickets || g.tickets || [], F = /* @__PURE__ */ new Map();
|
|
781
|
-
for (const f of O) {
|
|
782
|
-
const J = `${f.ticketTypeId || f.ticketId || 0}-${f.ticketName || f.name || ""}`, te = F.get(J);
|
|
783
|
-
te ? (te.quantity += 1, te.subtotal += f.purchasePrice || f.price || 0) : F.set(J, {
|
|
784
|
-
// @type-escape: OrderLine.ticketId is a branded TicketId, but the
|
|
785
|
-
// order-confirmation wire carries a raw numeric type-id (0 for
|
|
786
|
-
// legacy/unknown rows, which the validating toTicketId rejects as
|
|
787
|
-
// <= 0). Preserve the exact value with a scoped cast — an honest
|
|
788
|
-
// brand mint here needs the bs29 F1 shared wire<->domain contract.
|
|
789
|
-
ticketId: f.ticketTypeId || f.ticketId || 0,
|
|
790
|
-
ticketName: f.ticketName || f.name || r().ticketFallbackName || "Ticket",
|
|
791
|
-
quantity: 1,
|
|
792
|
-
unitPrice: f.purchasePrice || f.price || 0,
|
|
793
|
-
fee: 0,
|
|
794
|
-
subtotal: f.purchasePrice || f.price || 0
|
|
795
|
-
});
|
|
796
|
-
}
|
|
797
|
-
if (Y = Array.from(F.values()), typeof g.totalPrice == "number") {
|
|
798
|
-
const f = Number(g.totalPrice) - Number(g.giftCardPaymentAmount ?? 0);
|
|
799
|
-
X = {
|
|
800
|
-
subtotal: g.basePrice ?? 0,
|
|
801
|
-
fees: g.surcharge ?? 0,
|
|
802
|
-
taxes: g.tax ?? 0,
|
|
803
|
-
total: f,
|
|
804
|
-
promoDiscount: g.promoCodeStoredDiscountAmount ?? 0,
|
|
805
|
-
giftCardAmount: g.giftCardPaymentAmount ?? 0,
|
|
806
|
-
stripeAmount: f
|
|
807
|
-
};
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
} catch (g) {
|
|
811
|
-
se.warn("Success: getOrder failed, using route params:", g);
|
|
812
|
-
}
|
|
813
|
-
Y.length === 0 && I > 0 && (Y = [
|
|
814
|
-
{
|
|
815
|
-
ticketId: Q(0),
|
|
816
|
-
ticketName: r().ticketFallbackName || "Ticket",
|
|
817
|
-
quantity: I,
|
|
818
|
-
unitPrice: 0,
|
|
819
|
-
fee: 0,
|
|
820
|
-
subtotal: 0
|
|
821
|
-
}
|
|
822
|
-
]), e.set(
|
|
823
|
-
p,
|
|
824
|
-
{
|
|
825
|
-
event: H,
|
|
826
|
-
orderId: String(G),
|
|
827
|
-
lines: Y,
|
|
828
|
-
customerEmail: Z,
|
|
829
|
-
...X ? { serverTotals: X } : {}
|
|
830
|
-
},
|
|
831
|
-
!0
|
|
832
|
-
), Ve(String(i)), Re("checkout-cartid"), e.set(x, !1);
|
|
833
|
-
});
|
|
834
|
-
var y = e.comment(), D = e.first_child(y);
|
|
835
|
-
{
|
|
836
|
-
var R = (i) => {
|
|
837
|
-
var u = St(), l = e.child(u);
|
|
838
|
-
{
|
|
839
|
-
var s = (S) => {
|
|
840
|
-
var I = Tt(), A = e.first_child(I), q = e.child(A, !0);
|
|
841
|
-
e.reset(A);
|
|
842
|
-
var H = e.sibling(A, 2), G = e.child(H, !0);
|
|
843
|
-
e.reset(H), e.template_effect(() => {
|
|
844
|
-
e.set_text(q, r().paymentNotConfirmedTitle || "Payment not confirmed"), e.set_text(G, r().paymentNotConfirmedMessage || "We couldn’t confirm this payment yet. If it completes, a confirmation email will arrive shortly — please don’t try again until then.");
|
|
845
|
-
}), e.append(S, I);
|
|
846
|
-
}, c = (S) => {
|
|
847
|
-
var I = Et(), A = e.first_child(I), q = e.child(A, !0);
|
|
848
|
-
e.reset(A);
|
|
849
|
-
var H = e.sibling(A, 2), G = e.child(H, !0);
|
|
850
|
-
e.reset(H);
|
|
851
|
-
var Z = e.sibling(H, 2), Y = e.child(Z, !0);
|
|
852
|
-
e.reset(Z), e.template_effect(() => {
|
|
853
|
-
e.set_text(q, r().paymentNotCompletedTitle || "Payment wasn't completed"), e.set_text(G, r().paymentNotCompletedMessage || "The payment didn’t go through, so no tickets were issued. You can head back to the event and try again."), e.set_attribute(Z, "href", e.get(b)), e.set_text(Y, r().backToEvent || "Back to event");
|
|
854
|
-
}), e.append(S, I);
|
|
855
|
-
};
|
|
856
|
-
e.if(l, (S) => {
|
|
857
|
-
e.get(C) || e.get(V) ? S(s) : S(c, -1);
|
|
858
|
-
});
|
|
859
|
-
}
|
|
860
|
-
e.reset(u), e.append(i, u);
|
|
861
|
-
}, j = (i) => {
|
|
862
|
-
var u = zt(), l = e.child(u), s = e.child(l, !0);
|
|
863
|
-
e.reset(l), e.reset(u), e.template_effect(() => e.set_text(s, e.get(n))), e.append(i, u);
|
|
864
|
-
}, M = (i) => {
|
|
865
|
-
var u = Pt(), l = e.child(u), s = e.child(l, !0);
|
|
866
|
-
e.reset(l), e.reset(u), e.template_effect(() => e.set_text(s, r().loadingYourOrder || "Loading your order")), e.append(i, u);
|
|
867
|
-
}, L = (i) => {
|
|
868
|
-
It(i, {
|
|
869
|
-
get data() {
|
|
870
|
-
return e.get(p);
|
|
871
|
-
},
|
|
872
|
-
get eventUrl() {
|
|
873
|
-
return e.get(z);
|
|
874
|
-
}
|
|
875
|
-
});
|
|
876
|
-
};
|
|
877
|
-
e.if(D, (i) => {
|
|
878
|
-
e.get(m) || e.get(B) || e.get(V) ? i(R) : e.get(n) ? i(j, 1) : e.get(x) || !e.get(p) ? i(M, 2) : i(L, -1);
|
|
879
|
-
});
|
|
880
|
-
}
|
|
881
|
-
e.append(h, y), e.pop();
|
|
882
|
-
}
|
|
883
|
-
export {
|
|
884
|
-
Rt as default
|
|
885
|
-
};
|
|
886
|
-
//# sourceMappingURL=Success-Cv8d2syu.js.map
|