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