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