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