@getmicdrop/venue-calendar 4.2.15 → 4.2.19
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 +809 -809
- package/dist/{CartView-DP5TuBgM.js → CartView-cHL2n0fE.js} +5 -5
- package/dist/{Checkout-B36Tx1N3.js → Checkout-Blc7IuZ2.js} +5 -5
- package/dist/{Checkout-C7S--vSV.js → Checkout-DNVyBcrm.js} +4 -4
- package/dist/{CheckoutTimer-C9tJJZC8.js → CheckoutTimer-D5i2F8al.js} +1 -1
- package/dist/{CollectionView-DIWLyNiY.js → CollectionView-DzoCBduF.js} +2 -2
- package/dist/{Event-78cbicQy.js → Event-D5u7y0w3.js} +224 -218
- package/dist/EventPage-Ddslq4xC.js +931 -0
- package/dist/{SeriesPage-B42dakZY.js → SeriesPage-BPm7CNzY.js} +1 -1
- package/dist/{Success-DgUD_STB.js → Success-CXI2Xtdz.js} +4 -4
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +2 -1
- package/dist/api/types.d.ts +545 -545
- package/dist/api/waitlist.d.ts +6 -0
- package/dist/{colors-Dk53YuNz.js → colors-5g6cmoXX.js} +2 -1
- package/dist/{event-transform-DUqXNcXz.js → event-transform-0VCBk_zn.js} +1 -1
- package/dist/{i18n-nPKgIP_8.js → i18n-D7pvVga7.js} +2 -2
- package/dist/{labels-YAwDbsF8.js → labels-7f_yKBtq.js} +1 -1
- package/dist/seo/types.d.ts +156 -156
- package/dist/{serverTotals-BO126TTd.js → serverTotals-COgFExPF.js} +692 -689
- package/dist/types/index.d.ts +509 -509
- package/dist/{utils-CcxQIxOO.js → utils-DLfxcnPk.js} +1 -1
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +14 -14
- package/dist/venue-calendar.iife.js +34 -34
- package/dist/venue-calendar.umd.js +31 -31
- package/package.json +1 -1
- package/src/lib/theme.js +222 -222
- package/dist/EventPage-ChQ04taO.js +0 -880
- /package/dist/locales/{4.2.15 → 4.2.19}/flow/de.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/flow/es.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/flow/fr.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/flow/id.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/flow/it.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/flow/ja.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/flow/ko.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/flow/nl.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/flow/pl.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/flow/tr.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/flow/zh.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/main/de.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/main/es.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/main/fr.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/main/id.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/main/it.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/main/ja.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/main/ko.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/main/nl.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/main/pl.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/main/pt-br.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/main/tr.js +0 -0
- /package/dist/locales/{4.2.15 → 4.2.19}/main/zh.js +0 -0
|
@@ -1,880 +0,0 @@
|
|
|
1
|
-
import { C as e, h as t, t as n, v as r, x as i } from "./Button-C4uFgl7L.js";
|
|
2
|
-
import { A as a, M as o, r as s } from "./timezones-C5l0SSHK.js";
|
|
3
|
-
import { t as c } from "./Event-78cbicQy.js";
|
|
4
|
-
import { n as l, t as u } from "./Input-BvutquC_.js";
|
|
5
|
-
import { a as d, c as f, n as p, o as m, s as h } from "./phoneUtils-PJqYw0dJ.js";
|
|
6
|
-
import { y as g } from "./constants-BWfNecCz.js";
|
|
7
|
-
import { t as _ } from "./ClockIcon-DNJWLc1C.js";
|
|
8
|
-
import { n as v } from "./shareCopyFeedback.svelte-DZMLGA3y.js";
|
|
9
|
-
import { n as y } from "./ScarcityBadge-R32tzjFi.js";
|
|
10
|
-
import { i as b } from "./Badge-Bv_MT-Vt.js";
|
|
11
|
-
import { c as x, g as S, u as C } from "./orders-xGH8-IQn.js";
|
|
12
|
-
import { i as w, n as T, s as E, t as D } from "./__SKIP_PATHS__-DmdRxELE.js";
|
|
13
|
-
import { a as O, i as k, n as A, r as j, t as M } from "./ModalFooter-DMxM0E8Y.js";
|
|
14
|
-
import { n as N, t as P } from "./modalManager.svelte-DDWCrGed.js";
|
|
15
|
-
import { c as ee, h as te, m as F, o as I, p as ne, s as L, v as re, w as ie } from "./colors-Dk53YuNz.js";
|
|
16
|
-
import { t as ae } from "./eventStatusStream-C5KadkMh.js";
|
|
17
|
-
import { d as R, i as oe, t as z } from "./utils-CcxQIxOO.js";
|
|
18
|
-
import { r as B } from "./promo-DtLZRskK.js";
|
|
19
|
-
import { a as se, r as ce } from "./gate-password-cache-oOcDm9Ki.js";
|
|
20
|
-
import "svelte/internal/disclose-version";
|
|
21
|
-
import * as V from "svelte/internal/client";
|
|
22
|
-
import { onMount as le } from "svelte";
|
|
23
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/recipes/modals/InputModal.svelte
|
|
24
|
-
var H = V.from_html("<img class=\"w-5 h-5\"/>"), U = V.from_html("<div class=\"flex justify-end -mt-2 -mr-2 mb-2\"><!></div>"), W = V.from_html("<h3> </h3>"), G = V.from_html("<div class=\"text-left\"><!> <!></div>"), K = V.from_html("<p> </p>"), ue = V.from_html("<label for=\"modal-input\"> </label>"), q = V.from_html("<textarea id=\"modal-input\" name=\"value\"></textarea>"), J = V.from_html("<div class=\"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none\"><!></div>"), de = V.from_html("<div class=\"relative\"><!> <input id=\"modal-input\" name=\"value\"/></div>"), Y = V.from_html("<p><!> </p>"), X = V.from_html("<div class=\"text-left mt-4\"><!> <div><!> <!> <!></div></div>"), fe = V.from_html("<div class=\"flex gap-3\"><!> <!></div>"), pe = V.from_html("<!> <!> <!>", 1), me = V.from_html("<!> <!>", 1);
|
|
25
|
-
function he(i, o) {
|
|
26
|
-
V.push(o, !0);
|
|
27
|
-
let s = {
|
|
28
|
-
confirm: "Confirm",
|
|
29
|
-
cancel: "Cancel",
|
|
30
|
-
close: "Close",
|
|
31
|
-
invalidEmail: "Please enter a valid email address"
|
|
32
|
-
}, c = V.prop(o, "open", 15, !1), l = V.prop(o, "size", 3, "md"), u = V.prop(o, "title", 3, ""), p = V.prop(o, "description", 3, ""), m = V.prop(o, "closeBtn", 3, !1), h = V.prop(o, "persistent", 3, !1), g = V.prop(o, "inputLabel", 3, ""), _ = V.prop(o, "inputPlaceholder", 3, ""), v = V.prop(o, "inputType", 3, "text"), y = V.prop(o, "inputValue", 15, ""), x = V.prop(o, "inputRequired", 3, !1), S = V.prop(o, "inputRows", 3, 4), C = V.prop(o, "inputIcon", 3, null), w = V.prop(o, "helpText", 3, ""), T = V.prop(o, "errorMessage", 3, ""), E = V.prop(o, "showError", 3, !1), D = V.prop(o, "validateEmail", 3, !1), P = V.prop(o, "primaryButtonText", 3, void 0), ee = V.prop(o, "secondaryButtonText", 3, void 0), te = V.prop(o, "primaryButtonVariant", 3, "default"), F = V.prop(o, "disabled", 3, !1), I = V.prop(o, "loading", 3, !1), ne = V.prop(o, "labels", 19, () => ({})), L = V.derived(() => e(s, ne())), re = V.derived(() => P() ?? V.get(L).confirm), ie = V.derived(() => ee() ?? V.get(L).cancel), ae = (e) => a(e), R = V.derived(() => !!(D() && y() && !ae(y()))), oe = V.derived(() => !!(x() && (!y() || y().trim() === ""))), z = V.derived(() => E() || V.get(R)), B = V.derived(() => F() || I() || V.get(oe) || V.get(R)), se = () => {
|
|
33
|
-
V.get(B) || o.onconfirm?.({ value: y() });
|
|
34
|
-
}, ce = (e) => {
|
|
35
|
-
if (!(e.isComposing || e.keyCode === 229) && b(e)) {
|
|
36
|
-
if (v() === "textarea") {
|
|
37
|
-
if (!(e.metaKey || e.ctrlKey)) return;
|
|
38
|
-
} else if (e.shiftKey) return;
|
|
39
|
-
e.preventDefault(), se();
|
|
40
|
-
}
|
|
41
|
-
}, le = () => {
|
|
42
|
-
!F() && !I() && (o.oncancel?.(), he());
|
|
43
|
-
}, he = () => {
|
|
44
|
-
c(!1), o.onclose?.();
|
|
45
|
-
}, ge = () => {
|
|
46
|
-
F() || I() || he();
|
|
47
|
-
};
|
|
48
|
-
O(i, {
|
|
49
|
-
get size() {
|
|
50
|
-
return l();
|
|
51
|
-
},
|
|
52
|
-
get persistent() {
|
|
53
|
-
return h();
|
|
54
|
-
},
|
|
55
|
-
get open() {
|
|
56
|
-
return c();
|
|
57
|
-
},
|
|
58
|
-
set open(e) {
|
|
59
|
-
c(e);
|
|
60
|
-
},
|
|
61
|
-
children: (e, i) => {
|
|
62
|
-
var a = me(), o = V.first_child(a);
|
|
63
|
-
k(o, {});
|
|
64
|
-
var s = V.sibling(o, 2);
|
|
65
|
-
j(s, {
|
|
66
|
-
children: (e, i) => {
|
|
67
|
-
var a = pe(), o = V.first_child(a);
|
|
68
|
-
N(o, {
|
|
69
|
-
children: (e, t) => {
|
|
70
|
-
var i = G(), a = V.child(i), o = (e) => {
|
|
71
|
-
var t = U(), r = V.child(t);
|
|
72
|
-
n(r, {
|
|
73
|
-
variant: "icon",
|
|
74
|
-
size: "xs",
|
|
75
|
-
onclick: ge,
|
|
76
|
-
get disabled() {
|
|
77
|
-
return F();
|
|
78
|
-
},
|
|
79
|
-
children: (e, t) => {
|
|
80
|
-
var n = H();
|
|
81
|
-
V.template_effect(() => {
|
|
82
|
-
V.set_attribute(n, "src", d), V.set_attribute(n, "alt", V.get(L).close);
|
|
83
|
-
}), V.append(e, n);
|
|
84
|
-
},
|
|
85
|
-
$$slots: { default: !0 }
|
|
86
|
-
}), V.reset(t), V.append(e, t);
|
|
87
|
-
};
|
|
88
|
-
V.if(a, (e) => {
|
|
89
|
-
m() && e(o);
|
|
90
|
-
});
|
|
91
|
-
var s = V.sibling(a, 2), c = (e) => {
|
|
92
|
-
var t = W(), n = V.child(t, !0);
|
|
93
|
-
V.reset(t), V.template_effect(() => {
|
|
94
|
-
V.set_class(t, 1, V.clsx(r.h2)), V.set_text(n, u());
|
|
95
|
-
}), V.append(e, t);
|
|
96
|
-
};
|
|
97
|
-
V.if(s, (e) => {
|
|
98
|
-
u() && e(c);
|
|
99
|
-
}), V.reset(i), V.append(e, i);
|
|
100
|
-
},
|
|
101
|
-
$$slots: { default: !0 }
|
|
102
|
-
});
|
|
103
|
-
var s = V.sibling(o, 2);
|
|
104
|
-
A(s, {
|
|
105
|
-
children: (e, n) => {
|
|
106
|
-
var i = X(), a = V.child(i), o = (e) => {
|
|
107
|
-
var n = K(), i = V.child(n, !0);
|
|
108
|
-
V.reset(n), V.template_effect(() => {
|
|
109
|
-
V.set_class(n, 1, `${r.smMuted} ${t.relaxed} mb-4`), V.set_text(i, p());
|
|
110
|
-
}), V.append(e, n);
|
|
111
|
-
};
|
|
112
|
-
V.if(a, (e) => {
|
|
113
|
-
p() && e(o);
|
|
114
|
-
});
|
|
115
|
-
var s = V.sibling(a, 2), c = V.child(s), l = (e) => {
|
|
116
|
-
var t = ue(), n = V.child(t, !0);
|
|
117
|
-
V.reset(t), V.template_effect(() => {
|
|
118
|
-
V.set_class(t, 1, `${r.label} block mb-2`), V.set_text(n, g());
|
|
119
|
-
}), V.append(e, t);
|
|
120
|
-
};
|
|
121
|
-
V.if(c, (e) => {
|
|
122
|
-
g() && e(l);
|
|
123
|
-
});
|
|
124
|
-
var u = V.sibling(c, 2), d = (e) => {
|
|
125
|
-
var t = q();
|
|
126
|
-
V.remove_textarea_child(t), V.template_effect(() => {
|
|
127
|
-
V.set_attribute(t, "placeholder", _()), V.set_attribute(t, "rows", S()), V.set_class(t, 1, `w-full px-3 py-2 border ${V.get(z) ? "border-status-error-border" : "border-stroke-primary"} bg-bg-secondary ${r.body ?? ""} rounded-lg focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:border-transparent resize-none`), t.disabled = F() || I();
|
|
128
|
-
}), V.delegated("keydown", t, ce), V.bind_value(t, y), V.append(e, t);
|
|
129
|
-
}, m = (e) => {
|
|
130
|
-
var t = de(), n = V.child(t), i = (e) => {
|
|
131
|
-
let t = V.derived(C);
|
|
132
|
-
var n = J(), i = V.child(n);
|
|
133
|
-
{
|
|
134
|
-
let e = V.derived(() => `w-5 h-5 ${r.iconMuted}`);
|
|
135
|
-
V.component(i, () => V.get(t), (t, n) => {
|
|
136
|
-
n(t, { get class() {
|
|
137
|
-
return V.get(e);
|
|
138
|
-
} });
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
V.reset(n), V.append(e, n);
|
|
142
|
-
};
|
|
143
|
-
V.if(n, (e) => {
|
|
144
|
-
C() && e(i);
|
|
145
|
-
});
|
|
146
|
-
var a = V.sibling(n, 2);
|
|
147
|
-
V.remove_input_defaults(a), V.reset(t), V.template_effect(() => {
|
|
148
|
-
V.set_attribute(a, "type", v()), V.set_attribute(a, "placeholder", _()), a.required = x(), a.disabled = F() || I(), V.set_class(a, 1, `w-full ${C() ? "pl-10" : "px-3"} py-2 border ${V.get(z) ? "border-status-error-border" : "border-stroke-primary"} rounded-lg ${r.body ?? ""} bg-card focus:ring-2 focus:ring-focus-ring focus:border-transparent disabled:opacity-50 disabled:cursor-not-allowed`);
|
|
149
|
-
}), V.delegated("keydown", a, ce), V.bind_value(a, y), V.append(e, t);
|
|
150
|
-
};
|
|
151
|
-
V.if(u, (e) => {
|
|
152
|
-
v() === "textarea" ? e(d) : e(m, -1);
|
|
153
|
-
});
|
|
154
|
-
var h = V.sibling(u, 2), b = (e) => {
|
|
155
|
-
var t = Y(), n = V.child(t);
|
|
156
|
-
f(n, { class: "w-4 h-4" });
|
|
157
|
-
var i = V.sibling(n);
|
|
158
|
-
V.reset(t), V.template_effect(() => {
|
|
159
|
-
V.set_class(t, 1, `${r.label} text-accent-danger mt-2 flex items-center gap-1`), V.set_text(i, ` ${(V.get(R) ? V.get(L).invalidEmail : T()) ?? ""}`);
|
|
160
|
-
}), V.append(e, t);
|
|
161
|
-
}, E = (e) => {
|
|
162
|
-
var t = K(), n = V.child(t, !0);
|
|
163
|
-
V.reset(t), V.template_effect(() => {
|
|
164
|
-
V.set_class(t, 1, `${r.xsMuted} pt-2`), V.set_text(n, w());
|
|
165
|
-
}), V.append(e, t);
|
|
166
|
-
};
|
|
167
|
-
V.if(h, (e) => {
|
|
168
|
-
V.get(z) && (T() || V.get(R)) ? e(b) : w() && !V.get(z) && e(E, 1);
|
|
169
|
-
}), V.reset(s), V.reset(i), V.append(e, i);
|
|
170
|
-
},
|
|
171
|
-
$$slots: { default: !0 }
|
|
172
|
-
});
|
|
173
|
-
var c = V.sibling(s, 2);
|
|
174
|
-
M(c, {
|
|
175
|
-
children: (e, t) => {
|
|
176
|
-
var r = fe(), i = V.child(r), a = (e) => {
|
|
177
|
-
{
|
|
178
|
-
let t = V.derived(() => F() || I());
|
|
179
|
-
n(e, {
|
|
180
|
-
size: "full",
|
|
181
|
-
variant: "alternative",
|
|
182
|
-
onclick: le,
|
|
183
|
-
get disabled() {
|
|
184
|
-
return V.get(t);
|
|
185
|
-
},
|
|
186
|
-
children: (e, t) => {
|
|
187
|
-
V.next();
|
|
188
|
-
var n = V.text();
|
|
189
|
-
V.template_effect(() => V.set_text(n, V.get(ie))), V.append(e, n);
|
|
190
|
-
},
|
|
191
|
-
$$slots: { default: !0 }
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
};
|
|
195
|
-
V.if(i, (e) => {
|
|
196
|
-
V.get(ie) && e(a);
|
|
197
|
-
});
|
|
198
|
-
var o = V.sibling(i, 2);
|
|
199
|
-
n(o, {
|
|
200
|
-
size: "full",
|
|
201
|
-
get variant() {
|
|
202
|
-
return te();
|
|
203
|
-
},
|
|
204
|
-
onclick: se,
|
|
205
|
-
get disabled() {
|
|
206
|
-
return V.get(B);
|
|
207
|
-
},
|
|
208
|
-
get loading() {
|
|
209
|
-
return I();
|
|
210
|
-
},
|
|
211
|
-
children: (e, t) => {
|
|
212
|
-
V.next();
|
|
213
|
-
var n = V.text();
|
|
214
|
-
V.template_effect(() => V.set_text(n, V.get(re))), V.append(e, n);
|
|
215
|
-
},
|
|
216
|
-
$$slots: { default: !0 }
|
|
217
|
-
}), V.reset(r), V.append(e, r);
|
|
218
|
-
},
|
|
219
|
-
$$slots: { default: !0 }
|
|
220
|
-
}), V.append(e, a);
|
|
221
|
-
},
|
|
222
|
-
$$slots: { default: !0 }
|
|
223
|
-
}), V.append(e, a);
|
|
224
|
-
},
|
|
225
|
-
$$slots: { default: !0 }
|
|
226
|
-
}), V.pop();
|
|
227
|
-
}
|
|
228
|
-
V.delegate(["keydown"]);
|
|
229
|
-
//#endregion
|
|
230
|
-
//#region src/lib/public-calendar-flow/promo-state.ts
|
|
231
|
-
function ge(e, t) {
|
|
232
|
-
if (!e.valid) return {
|
|
233
|
-
code: t,
|
|
234
|
-
isApplied: !1,
|
|
235
|
-
isValidating: !1,
|
|
236
|
-
error: e.error || "Invalid promo code",
|
|
237
|
-
hint: "",
|
|
238
|
-
discountAmount: 0,
|
|
239
|
-
discountType: "",
|
|
240
|
-
discountTicketIds: [],
|
|
241
|
-
revealHiddenTickets: !1,
|
|
242
|
-
revealTicketIds: []
|
|
243
|
-
};
|
|
244
|
-
let n = e.code || t;
|
|
245
|
-
return {
|
|
246
|
-
code: n,
|
|
247
|
-
isApplied: !0,
|
|
248
|
-
isValidating: !1,
|
|
249
|
-
error: "",
|
|
250
|
-
hint: `${n.toUpperCase()} applied`,
|
|
251
|
-
discountAmount: e.amount == null ? 0 : e.amount,
|
|
252
|
-
discountType: e.discountType === "percentage" ? "%" : e.discountType === "fixed" ? "$" : "",
|
|
253
|
-
discountTicketIds: B(e),
|
|
254
|
-
revealHiddenTickets: e.revealHiddenTickets || !1,
|
|
255
|
-
revealTicketIds: e.revealTicketIds || []
|
|
256
|
-
};
|
|
257
|
-
}
|
|
258
|
-
//#endregion
|
|
259
|
-
//#region src/components/Modals/WaitlistModal.svelte
|
|
260
|
-
var _e = V.from_html("<p> </p>"), ve = V.from_html("<div class=\"flex flex-col items-center text-center pt-6 px-4 pb-4\"><div class=\"w-16 h-16 rounded-full flex items-center justify-center mb-4 bg-accent-success/10 text-accent-success\" aria-hidden=\"true\"><!></div> <h3 id=\"waitlist-title\"> </h3> <p id=\"waitlist-description\" class=\"type-body tone-secondary max-w-72\"> </p> <!></div>"), ye = V.from_html("<p class=\"type-caption text-accent-danger mt-1\"> </p>"), be = V.from_html("<div class=\"ml-7\"><!> <!> <p> </p></div>"), Z = V.from_html("<div class=\"p-3 bg-status-error-bg border border-status-error-border rounded-lg\"><p> </p></div>"), xe = V.from_html("<div class=\"flex flex-col pt-6 px-4 pb-4\"><div class=\"flex items-center justify-center mb-4\"><div class=\"w-12 h-12 rounded-full flex items-center justify-center bg-brand-primary/10 text-brand-primary\" aria-hidden=\"true\"><!></div></div> <h3 id=\"waitlist-title\"> </h3> <p id=\"waitlist-description\" class=\"type-body tone-secondary text-center mb-6\"> </p> <form class=\"space-y-4\"><div><label for=\"waitlist-email\" class=\"block type-label tone-secondary mb-1\"> </label> <div class=\"relative\"><!></div> <!></div> <div class=\"space-y-2\"><label class=\"flex items-start gap-3 cursor-pointer\"><input type=\"checkbox\" name=\"smsOptIn\" class=\"mt-0.5 w-4 h-4 text-brand-primary border-stroke-primary rounded focus-ring\"/> <span class=\"type-body tone-secondary\"> </span></label> <!></div> <!></form></div>"), Q = V.from_html("<!> <!>", 1), Se = V.from_html("<div class=\"flex gap-3 w-full\" role=\"group\"><!></div>");
|
|
261
|
-
function Ce(e, t) {
|
|
262
|
-
V.push(t, !0);
|
|
263
|
-
let n = V.prop(t, "show", 15, !1);
|
|
264
|
-
V.prop(t, "eventName", 3, "this event");
|
|
265
|
-
let i = V.prop(t, "onClose", 3, () => {}), o = V.prop(t, "labels", 3, g), c = V.state(""), d = V.state(""), f = V.state(!1), m = V.state(!1), v = V.state(""), y = V.state(!1), b = V.derived(() => V.get(c) && !S(V.get(c)) ? o().pleaseEnterValidEmail || "Please enter a valid email" : ""), x = V.derived(() => V.get(d) && V.get(f) && !C(V.get(d)) ? o().pleaseEnterValidPhone || "Please enter a valid phone number" : "");
|
|
266
|
-
function S(e) {
|
|
267
|
-
return a(e);
|
|
268
|
-
}
|
|
269
|
-
function C(e) {
|
|
270
|
-
return p(l(e));
|
|
271
|
-
}
|
|
272
|
-
async function w() {
|
|
273
|
-
if (V.set(v, ""), !V.get(c) || !S(V.get(c))) {
|
|
274
|
-
V.set(v, o().pleaseEnterValidEmailAddress || "Please enter a valid email address", !0);
|
|
275
|
-
return;
|
|
276
|
-
}
|
|
277
|
-
if (V.get(f) && V.get(d) && !C(V.get(d))) {
|
|
278
|
-
V.set(v, o().pleaseEnterValidPhone || "Please enter a valid phone number", !0);
|
|
279
|
-
return;
|
|
280
|
-
}
|
|
281
|
-
V.set(m, !0);
|
|
282
|
-
let e = await L(t.eventId, V.get(c), V.get(f) ? V.get(d) : null, V.get(f));
|
|
283
|
-
V.set(m, !1), e.success ? V.set(y, !0) : V.set(v, e.error, !0);
|
|
284
|
-
}
|
|
285
|
-
function T() {
|
|
286
|
-
V.set(c, ""), V.set(d, ""), V.set(f, !1), V.set(v, ""), V.set(y, !1), n(!1), i()();
|
|
287
|
-
}
|
|
288
|
-
O(e, {
|
|
289
|
-
size: "sm",
|
|
290
|
-
class: "micdrop",
|
|
291
|
-
get open() {
|
|
292
|
-
return n();
|
|
293
|
-
},
|
|
294
|
-
set open(e) {
|
|
295
|
-
n(e);
|
|
296
|
-
},
|
|
297
|
-
children: (e, t) => {
|
|
298
|
-
var n = Q(), i = V.first_child(n);
|
|
299
|
-
k(i, {});
|
|
300
|
-
var a = V.sibling(i, 2);
|
|
301
|
-
j(a, {
|
|
302
|
-
children: (e, t) => {
|
|
303
|
-
var n = Q(), i = V.first_child(n);
|
|
304
|
-
A(i, {
|
|
305
|
-
children: (e, t) => {
|
|
306
|
-
var n = V.comment(), i = V.first_child(n), a = (e) => {
|
|
307
|
-
var t = ve(), n = V.child(t), i = V.child(n);
|
|
308
|
-
h(i, { size: "32" }), V.reset(n);
|
|
309
|
-
var a = V.sibling(n, 2), s = V.child(a, !0);
|
|
310
|
-
V.reset(a);
|
|
311
|
-
var c = V.sibling(a, 2), l = V.child(c, !0);
|
|
312
|
-
V.reset(c);
|
|
313
|
-
var u = V.sibling(c, 2), p = (e) => {
|
|
314
|
-
var t = _e(), n = V.child(t, !0);
|
|
315
|
-
V.reset(t), V.template_effect(() => {
|
|
316
|
-
V.set_class(t, 1, `mt-2 ${r.xsMuted ?? ""}`), V.set_text(n, o().waitlistSmsAlerts || "You'll also receive SMS alerts");
|
|
317
|
-
}), V.append(e, t);
|
|
318
|
-
};
|
|
319
|
-
V.if(u, (e) => {
|
|
320
|
-
V.get(f) && V.get(d) && e(p);
|
|
321
|
-
}), V.reset(t), V.template_effect(() => {
|
|
322
|
-
V.set_class(a, 1, `mb-2 ${r.heading ?? ""}`), V.set_text(s, o().youreOnTheList || "You're on the waitlist"), V.set_text(l, o().waitlistNotifyByEmail || "We'll let you know if tickets become available");
|
|
323
|
-
}), V.append(e, t);
|
|
324
|
-
}, s = (e) => {
|
|
325
|
-
var t = xe(), n = V.child(t), i = V.child(n), a = V.child(i);
|
|
326
|
-
_(a, { size: "24" }), V.reset(i), V.reset(n);
|
|
327
|
-
var s = V.sibling(n, 2), l = V.child(s, !0);
|
|
328
|
-
V.reset(s);
|
|
329
|
-
var p = V.sibling(s, 2), h = V.child(p, !0);
|
|
330
|
-
V.reset(p);
|
|
331
|
-
var g = V.sibling(p, 2), y = V.child(g), S = V.child(y), C = V.child(S, !0);
|
|
332
|
-
V.reset(S);
|
|
333
|
-
var T = V.sibling(S, 2), E = V.child(T);
|
|
334
|
-
{
|
|
335
|
-
let e = V.derived(() => o().waitlistEmailPlaceholder || "you@example.com"), t = V.derived(() => V.get(b) ? "border-status-error-border" : "");
|
|
336
|
-
u(E, {
|
|
337
|
-
id: "waitlist-email",
|
|
338
|
-
type: "email",
|
|
339
|
-
get placeholder() {
|
|
340
|
-
return V.get(e);
|
|
341
|
-
},
|
|
342
|
-
required: !0,
|
|
343
|
-
get disabled() {
|
|
344
|
-
return V.get(m);
|
|
345
|
-
},
|
|
346
|
-
get class() {
|
|
347
|
-
return V.get(t);
|
|
348
|
-
},
|
|
349
|
-
get value() {
|
|
350
|
-
return V.get(c);
|
|
351
|
-
},
|
|
352
|
-
set value(e) {
|
|
353
|
-
V.set(c, e, !0);
|
|
354
|
-
}
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
V.reset(T);
|
|
358
|
-
var D = V.sibling(T, 2), O = (e) => {
|
|
359
|
-
var t = ye(), n = V.child(t, !0);
|
|
360
|
-
V.reset(t), V.template_effect(() => V.set_text(n, V.get(b))), V.append(e, t);
|
|
361
|
-
};
|
|
362
|
-
V.if(D, (e) => {
|
|
363
|
-
V.get(b) && e(O);
|
|
364
|
-
}), V.reset(y);
|
|
365
|
-
var k = V.sibling(y, 2), A = V.child(k), j = V.child(A);
|
|
366
|
-
V.remove_input_defaults(j);
|
|
367
|
-
var M = V.sibling(j, 2), N = V.child(M, !0);
|
|
368
|
-
V.reset(M), V.reset(A);
|
|
369
|
-
var P = V.sibling(A, 2), ee = (e) => {
|
|
370
|
-
var t = be(), n = V.child(t);
|
|
371
|
-
{
|
|
372
|
-
let e = V.derived(() => o().waitlistPhonePlaceholder || "(555) 123-4567"), t = V.derived(() => V.get(x) ? "border-status-error-border" : "");
|
|
373
|
-
u(n, {
|
|
374
|
-
id: "waitlist-phone",
|
|
375
|
-
type: "tel",
|
|
376
|
-
get placeholder() {
|
|
377
|
-
return V.get(e);
|
|
378
|
-
},
|
|
379
|
-
get disabled() {
|
|
380
|
-
return V.get(m);
|
|
381
|
-
},
|
|
382
|
-
get class() {
|
|
383
|
-
return V.get(t);
|
|
384
|
-
},
|
|
385
|
-
get value() {
|
|
386
|
-
return V.get(d);
|
|
387
|
-
},
|
|
388
|
-
set value(e) {
|
|
389
|
-
V.set(d, e, !0);
|
|
390
|
-
}
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
var i = V.sibling(n, 2), a = (e) => {
|
|
394
|
-
var t = ye(), n = V.child(t, !0);
|
|
395
|
-
V.reset(t), V.template_effect(() => V.set_text(n, V.get(x))), V.append(e, t);
|
|
396
|
-
};
|
|
397
|
-
V.if(i, (e) => {
|
|
398
|
-
V.get(x) && e(a);
|
|
399
|
-
});
|
|
400
|
-
var s = V.sibling(i, 2), c = V.child(s, !0);
|
|
401
|
-
V.reset(s), V.reset(t), V.template_effect(() => {
|
|
402
|
-
V.set_class(s, 1, `mt-1 ${r.xsMuted ?? ""}`), V.set_text(c, o().smsDisclaimer || "Message & data rates may apply. Reply STOP to unsubscribe");
|
|
403
|
-
}), V.append(e, t);
|
|
404
|
-
};
|
|
405
|
-
V.if(P, (e) => {
|
|
406
|
-
V.get(f) && e(ee);
|
|
407
|
-
}), V.reset(k);
|
|
408
|
-
var te = V.sibling(k, 2), F = (e) => {
|
|
409
|
-
var t = Z(), n = V.child(t), i = V.child(n, !0);
|
|
410
|
-
V.reset(n), V.reset(t), V.template_effect(() => {
|
|
411
|
-
V.set_class(n, 1, V.clsx(r.error)), V.set_text(i, V.get(v));
|
|
412
|
-
}), V.append(e, t);
|
|
413
|
-
};
|
|
414
|
-
V.if(te, (e) => {
|
|
415
|
-
V.get(v) && e(F);
|
|
416
|
-
}), V.reset(g), V.reset(t), V.template_effect(() => {
|
|
417
|
-
V.set_class(s, 1, `mb-2 text-center ${r.heading ?? ""}`), V.set_text(l, o().waitlistTitle || "This show is sold out"), V.set_text(h, o().waitlistDescription || "Want to be notified if tickets become available?"), V.set_text(C, o().waitlistEmailLabel || "Email address"), V.set_attribute(j, "aria-label", o().smsOptIn || "Text me when tickets are available"), j.disabled = V.get(m), V.set_text(N, o().smsOptIn || "Text me when tickets are available");
|
|
418
|
-
}), V.event("submit", g, (e) => {
|
|
419
|
-
e.preventDefault(), w();
|
|
420
|
-
}), V.bind_checked(j, () => V.get(f), (e) => V.set(f, e)), V.append(e, t);
|
|
421
|
-
};
|
|
422
|
-
V.if(i, (e) => {
|
|
423
|
-
V.get(y) ? e(a) : e(s, -1);
|
|
424
|
-
}), V.append(e, n);
|
|
425
|
-
},
|
|
426
|
-
$$slots: { default: !0 }
|
|
427
|
-
});
|
|
428
|
-
var a = V.sibling(i, 2);
|
|
429
|
-
M(a, {
|
|
430
|
-
children: (e, t) => {
|
|
431
|
-
var n = Se(), r = V.child(n), i = (e) => {
|
|
432
|
-
s(e, {
|
|
433
|
-
size: "full",
|
|
434
|
-
variant: "default",
|
|
435
|
-
onclick: T,
|
|
436
|
-
children: (e, t) => {
|
|
437
|
-
V.next();
|
|
438
|
-
var n = V.text();
|
|
439
|
-
V.template_effect(() => V.set_text(n, o().done || "Done")), V.append(e, n);
|
|
440
|
-
},
|
|
441
|
-
$$slots: { default: !0 }
|
|
442
|
-
});
|
|
443
|
-
}, a = (e) => {
|
|
444
|
-
var t = Q(), n = V.first_child(t);
|
|
445
|
-
s(n, {
|
|
446
|
-
size: "full",
|
|
447
|
-
variant: "alternative",
|
|
448
|
-
onclick: T,
|
|
449
|
-
get disabled() {
|
|
450
|
-
return V.get(m);
|
|
451
|
-
},
|
|
452
|
-
children: (e, t) => {
|
|
453
|
-
V.next();
|
|
454
|
-
var n = V.text();
|
|
455
|
-
V.template_effect(() => V.set_text(n, o().cancel || "Cancel")), V.append(e, n);
|
|
456
|
-
},
|
|
457
|
-
$$slots: { default: !0 }
|
|
458
|
-
});
|
|
459
|
-
var r = V.sibling(n, 2);
|
|
460
|
-
{
|
|
461
|
-
let e = V.derived(() => !V.get(c) || !!V.get(b) || V.get(f) && V.get(d) && !!V.get(x));
|
|
462
|
-
s(r, {
|
|
463
|
-
size: "full",
|
|
464
|
-
variant: "default",
|
|
465
|
-
onclick: w,
|
|
466
|
-
get loading() {
|
|
467
|
-
return V.get(m);
|
|
468
|
-
},
|
|
469
|
-
get disabled() {
|
|
470
|
-
return V.get(e);
|
|
471
|
-
},
|
|
472
|
-
children: (e, t) => {
|
|
473
|
-
V.next();
|
|
474
|
-
var n = V.text();
|
|
475
|
-
V.template_effect(() => V.set_text(n, V.get(m) ? o().joining || "Joining..." : o().notifyMe || "Notify me")), V.append(e, n);
|
|
476
|
-
},
|
|
477
|
-
$$slots: { default: !0 }
|
|
478
|
-
});
|
|
479
|
-
}
|
|
480
|
-
V.append(e, t);
|
|
481
|
-
};
|
|
482
|
-
V.if(r, (e) => {
|
|
483
|
-
V.get(y) ? e(i) : e(a, -1);
|
|
484
|
-
}), V.reset(n), V.template_effect(() => V.set_attribute(n, "aria-label", o().dialogActions || "Dialog actions")), V.append(e, n);
|
|
485
|
-
},
|
|
486
|
-
$$slots: { default: !0 }
|
|
487
|
-
}), V.append(e, n);
|
|
488
|
-
},
|
|
489
|
-
$$slots: { default: !0 }
|
|
490
|
-
}), V.append(e, n);
|
|
491
|
-
},
|
|
492
|
-
$$slots: { default: !0 }
|
|
493
|
-
}), V.pop();
|
|
494
|
-
}
|
|
495
|
-
//#endregion
|
|
496
|
-
//#region src/components/Views/EventPage.svelte
|
|
497
|
-
var we = i("EventPage"), Te = V.from_html("<div class=\"flex items-center justify-center py-12 text-center loading-container svelte-1dk5n3m\"><p> </p></div>"), Ee = V.from_html("<div class=\"flex flex-col items-center justify-center py-12 text-center gap-4\"><p class=\"error-text svelte-1dk5n3m\"> </p> <!></div>"), De = V.from_html("<div class=\"locked-wrapper svelte-1dk5n3m\"><div class=\"locked-overlay absolute inset-0 z-navigation flex flex-col items-center justify-center min-h-96 svelte-1dk5n3m\"><div class=\"text-center p-8\"><div class=\"locked-icon-wrapper w-20 h-20 mx-auto mb-4 rounded-full flex items-center justify-center svelte-1dk5n3m\"><!></div> <h2 class=\"locked-title type-heading mb-2 svelte-1dk5n3m\"> </h2> <p class=\"locked-description type-body max-w-xs mx-auto mb-6 svelte-1dk5n3m\"> </p> <!></div></div> <div class=\"blur-content svelte-1dk5n3m\"><!></div></div>"), Oe = V.from_html("<!> <!> <!>", 1);
|
|
498
|
-
function ke(e, t) {
|
|
499
|
-
V.push(t, !0);
|
|
500
|
-
let n = V.prop(t, "rawEvent", 3, void 0), r = V.prop(t, "eventId", 3, void 0), i = V.prop(t, "slug", 3, "");
|
|
501
|
-
V.prop(t, "currentEventId", 3, void 0);
|
|
502
|
-
let a = V.prop(t, "onNavigateBack", 3, void 0), l = V.prop(t, "onBuyTickets", 3, void 0), u = V.prop(t, "onNavigateToCart", 3, void 0), d = V.prop(t, "onCollectionEventClick", 3, void 0);
|
|
503
|
-
V.prop(t, "organizationId", 3, "");
|
|
504
|
-
let f = V.prop(t, "widgetId", 3, null), p = V.prop(t, "venueId", 3, null), h = V.prop(t, "waitlistToken", 3, void 0), _ = V.prop(t, "waitlistEmail", 3, void 0), b = V.prop(t, "labels", 3, g), O = V.prop(t, "locale", 3, void 0), k = () => p() || V.get(A)?.venueID || V.get(A)?.venueId || null, A = V.state(V.proxy(n() ?? null)), j = V.state(V.proxy(!n() && !!r()));
|
|
505
|
-
V.user_effect(() => {
|
|
506
|
-
n() && V.set(A, n());
|
|
507
|
-
});
|
|
508
|
-
let M = V.state(null), N = V.state(""), L = V.state(null), B = V.derived(() => {
|
|
509
|
-
if (!V.get(A) || !V.get(L)?.length) return V.get(A);
|
|
510
|
-
let e = V.get(A).availableTickets || [], t = new Set(e.map((e) => String(e.id ?? e.ID))), n = V.get(L).filter((e) => !t.has(String(e.id ?? e.ID)));
|
|
511
|
-
return n.length === 0 ? V.get(A) : {
|
|
512
|
-
...V.get(A),
|
|
513
|
-
availableTickets: [...e, ...n]
|
|
514
|
-
};
|
|
515
|
-
}), H = V.derived(() => V.get(B) ? v(V.get(B)) : null), U = V.derived(() => r() || V.get(H)?.id || ""), W = V.state(!1), G = V.state("");
|
|
516
|
-
V.user_effect(() => {
|
|
517
|
-
let e = V.get(U);
|
|
518
|
-
if (e) return ae(e, {
|
|
519
|
-
onUnavailable: (e) => {
|
|
520
|
-
V.set(W, !0), V.set(G, e, !0);
|
|
521
|
-
},
|
|
522
|
-
onAvailable: () => {
|
|
523
|
-
V.set(W, !1), V.set(G, "");
|
|
524
|
-
}
|
|
525
|
-
});
|
|
526
|
-
});
|
|
527
|
-
let K = V.derived(() => i() || V.get(H)?.slug || ""), ue = V.state(V.proxy([])), q = V.derived(() => V.get(H) ? {
|
|
528
|
-
...V.get(H),
|
|
529
|
-
seriesOccurrences: V.get(ue).length > 0 ? V.get(ue) : V.get(H).seriesOccurrences || []
|
|
530
|
-
} : null), J = P(), de = V.state(!1), Y = V.state(""), X = V.state(""), fe = V.state(!1), pe = V.derived(() => V.get(H)?.isPasswordProtected === !0 || V.get(A)?.hasPassword === !0), me = V.derived(() => V.get(pe) && !V.get(de) && (V.get(A)?.passwordRequired === !0 || !_e(V.get(U))));
|
|
531
|
-
function _e(e) {
|
|
532
|
-
return ce("event", e);
|
|
533
|
-
}
|
|
534
|
-
function ve(e) {
|
|
535
|
-
se("event", e);
|
|
536
|
-
}
|
|
537
|
-
async function ye(e) {
|
|
538
|
-
let t = e.detail?.value || V.get(Y);
|
|
539
|
-
if (!(!t || !V.get(U))) {
|
|
540
|
-
V.set(fe, !0), V.set(X, "");
|
|
541
|
-
try {
|
|
542
|
-
if ((await ne(String(V.get(U)), t)).valid) {
|
|
543
|
-
try {
|
|
544
|
-
let e = await F(V.get(U), fetch, t);
|
|
545
|
-
e && V.set(A, e, !0);
|
|
546
|
-
} catch {}
|
|
547
|
-
ve(V.get(U)), V.set(de, !0), J.close(), V.set(Y, "");
|
|
548
|
-
} else V.set(X, b().incorrectPassword || "Incorrect password. Please try again", !0);
|
|
549
|
-
} catch {
|
|
550
|
-
V.set(X, b().unableToVerifyPassword || "Unable to verify password. Please try again", !0);
|
|
551
|
-
} finally {
|
|
552
|
-
V.set(fe, !1);
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
function be() {
|
|
557
|
-
J.close(), a() && a()();
|
|
558
|
-
}
|
|
559
|
-
let Z = V.state(""), xe = V.state(0), Q = 0;
|
|
560
|
-
async function Se(e) {
|
|
561
|
-
let t = ++Q, n = await ie(String(V.get(U)), e), r = ge(n, e);
|
|
562
|
-
if (r.isApplied && t === Q && (V.set(Z, r.code, !0), V.set(xe, r.discountAmount, !0), n.revealHiddenTickets || n.revealTicketIds?.length)) {
|
|
563
|
-
let n = await te(String(V.get(U)), e);
|
|
564
|
-
t === Q && n.length > 0 && V.set(L, n, !0);
|
|
565
|
-
}
|
|
566
|
-
return r;
|
|
567
|
-
}
|
|
568
|
-
function ke() {
|
|
569
|
-
Q++, V.set(Z, ""), V.set(xe, 0), V.set(L, null);
|
|
570
|
-
}
|
|
571
|
-
let Ae = V.state(!1), je = V.state(!1), Me = V.state(!1), Ne = V.state(""), $ = P(), Pe = V.derived(() => V.get(je) && !V.get(Me));
|
|
572
|
-
function Fe(e) {
|
|
573
|
-
switch (e) {
|
|
574
|
-
case "token_expired": return b().waitlistLinkExpired || "This link has expired. You're still on the waitlist";
|
|
575
|
-
case "token_used": return b().waitlistLinkUsed || "This link has already been used. You're still on the waitlist";
|
|
576
|
-
case "email_mismatch": return b().waitlistLinkEmailMismatch || "This link was sent to a different email address. You're still on the waitlist";
|
|
577
|
-
case "inventory_exhausted": return b().waitlistLinkInventoryExhausted || "Those tickets were just claimed. You're still on the waitlist — we'll email you if more free up";
|
|
578
|
-
default: return b().waitlistLinkInvalid || "This link isn't valid. You're still on the waitlist — we'll email you if tickets free up";
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
function Ie() {
|
|
582
|
-
$.open();
|
|
583
|
-
}
|
|
584
|
-
function Le() {
|
|
585
|
-
V.set(Ne, "");
|
|
586
|
-
}
|
|
587
|
-
async function Re(e) {
|
|
588
|
-
if (!V.get(q)) return;
|
|
589
|
-
if (V.set(N, ""), e.total === null) {
|
|
590
|
-
V.set(N, b().priceUnavailable || "We couldn't load the price for this order — refresh the page or contact the venue", !0);
|
|
591
|
-
return;
|
|
592
|
-
}
|
|
593
|
-
let t = {}, n = {};
|
|
594
|
-
for (let r of e.lines) t[r.ticketId] = r.quantity, V.get(q).tickets.find((e) => e.id === r.ticketId)?.isDonation && (n[r.ticketId] = r.unitPrice);
|
|
595
|
-
R({
|
|
596
|
-
eventID: String(V.get(U)),
|
|
597
|
-
quantities: t,
|
|
598
|
-
donationAmounts: n,
|
|
599
|
-
promocode: V.get(Z),
|
|
600
|
-
promoDiscountAmount: V.get(xe),
|
|
601
|
-
tickets: V.get(q).tickets.map((e) => ({
|
|
602
|
-
ID: e.id,
|
|
603
|
-
name: e.name,
|
|
604
|
-
price: e.price,
|
|
605
|
-
type: String(e.ticketType || 0),
|
|
606
|
-
visibility: String(+!!e.isHidden),
|
|
607
|
-
salesChannel: "0"
|
|
608
|
-
}))
|
|
609
|
-
});
|
|
610
|
-
let r = await oe({
|
|
611
|
-
eventID: V.get(U),
|
|
612
|
-
quantities: t,
|
|
613
|
-
promoCode: V.get(Z) || void 0,
|
|
614
|
-
attribution: S()
|
|
615
|
-
});
|
|
616
|
-
if (!r?.success) {
|
|
617
|
-
V.set(N, r?.error || b().failedToCompleteOrder || "Failed to complete order. Please try again", !0);
|
|
618
|
-
return;
|
|
619
|
-
}
|
|
620
|
-
x(V.get(U), f(), k()), u() ? u()(V.get(U), V.get(K), V.get(A)) : y(D(T(V.get(U), V.get(K)), {}));
|
|
621
|
-
}
|
|
622
|
-
function ze(e) {
|
|
623
|
-
if (d()) {
|
|
624
|
-
d()(e);
|
|
625
|
-
return;
|
|
626
|
-
}
|
|
627
|
-
e.id ? y(D(E(e.id, e.slug), {})) : (we.warn("Collection event missing id, navigating by slug only"), y(D(w(e.slug), {})));
|
|
628
|
-
}
|
|
629
|
-
function Be(e) {
|
|
630
|
-
l() ? l()(o(e.id), e.slug) : y(D(E(e.id, e.slug), {}));
|
|
631
|
-
}
|
|
632
|
-
le(async () => {
|
|
633
|
-
if (!V.get(A) && r()) {
|
|
634
|
-
try {
|
|
635
|
-
let e = await F(r());
|
|
636
|
-
V.set(A, e, !0);
|
|
637
|
-
} catch (e) {
|
|
638
|
-
V.set(M, e.message || b().failedToLoadEvent || "Failed to load event", !0), V.set(j, !1);
|
|
639
|
-
return;
|
|
640
|
-
}
|
|
641
|
-
V.set(j, !1);
|
|
642
|
-
}
|
|
643
|
-
if (!V.get(A)) return;
|
|
644
|
-
let e = V.get(A).ID || V.get(A).id;
|
|
645
|
-
e && (z(e), C(e, f(), k()));
|
|
646
|
-
let t = V.get(A).eventSeriesId || 0, n = V.get(A).venueID || V.get(A).venueId || 0;
|
|
647
|
-
if (t > 0 && n > 0) try {
|
|
648
|
-
let e = await re(t, n);
|
|
649
|
-
if (Array.isArray(e) && e.length > 0) {
|
|
650
|
-
let t = V.get(A).stageId ?? V.get(A).stageID ?? 0;
|
|
651
|
-
V.set(ue, e.map((e) => {
|
|
652
|
-
let r = e.venue || {}, i = r.id && r.id !== n || e.stageId && e.stageId !== t, a = i ? [r.name, e.stage?.name].filter(Boolean).join(" — ") : "", o = i ? r.googleLocationNameCache || [
|
|
653
|
-
r.address,
|
|
654
|
-
r.city,
|
|
655
|
-
r.state
|
|
656
|
-
].filter(Boolean).join(", ") : "";
|
|
657
|
-
return {
|
|
658
|
-
id: e.id,
|
|
659
|
-
slug: e.slug || "",
|
|
660
|
-
startDateTime: e.startDateTime,
|
|
661
|
-
endDateTime: e.endDateTime || "",
|
|
662
|
-
status: e.ctaState?.reason === "sold_out" ? "sold_out" : "on_sale",
|
|
663
|
-
ctaText: e.ctaState?.text || "Get tickets",
|
|
664
|
-
ctaDisabled: e.ctaState?.disabled || !1,
|
|
665
|
-
...a ? { venueName: a } : {},
|
|
666
|
-
...o ? { venueAddress: o } : {}
|
|
667
|
-
};
|
|
668
|
-
}), !0);
|
|
669
|
-
}
|
|
670
|
-
} catch {}
|
|
671
|
-
if (V.get(pe) && !_e(V.get(U)) && J.open(), V.get(U)) {
|
|
672
|
-
let e = await I(V.get(U));
|
|
673
|
-
V.set(Ae, e.waitlistEnabled, !0), V.set(je, e.gated, !0);
|
|
674
|
-
}
|
|
675
|
-
if (h() && _()) {
|
|
676
|
-
let e = await ee(h(), _());
|
|
677
|
-
e.valid ? V.set(Me, !0) : V.set(Ne, Fe(e.errorCode), !0);
|
|
678
|
-
}
|
|
679
|
-
});
|
|
680
|
-
var Ve = Oe(), He = V.first_child(Ve), Ue = (e) => {
|
|
681
|
-
var t = Te(), n = V.child(t), r = V.child(n, !0);
|
|
682
|
-
V.reset(n), V.reset(t), V.template_effect(() => V.set_text(r, b().loadingEvent || "Loading event...")), V.append(e, t);
|
|
683
|
-
}, We = (e) => {
|
|
684
|
-
var t = Ee(), n = V.child(t), r = V.child(n);
|
|
685
|
-
V.reset(n);
|
|
686
|
-
var i = V.sibling(n, 2), o = (e) => {
|
|
687
|
-
s(e, {
|
|
688
|
-
variant: "default",
|
|
689
|
-
get onclick() {
|
|
690
|
-
return a();
|
|
691
|
-
},
|
|
692
|
-
children: (e, t) => {
|
|
693
|
-
V.next();
|
|
694
|
-
var n = V.text();
|
|
695
|
-
V.template_effect(() => V.set_text(n, b().goBack || "Go back")), V.append(e, n);
|
|
696
|
-
},
|
|
697
|
-
$$slots: { default: !0 }
|
|
698
|
-
});
|
|
699
|
-
};
|
|
700
|
-
V.if(i, (e) => {
|
|
701
|
-
a() && e(o);
|
|
702
|
-
}), V.reset(t), V.template_effect(() => V.set_text(r, `${(b().errorPrefix || "Error:") ?? ""} ${V.get(M) ?? ""}`)), V.append(e, t);
|
|
703
|
-
}, Ge = (e) => {
|
|
704
|
-
var t = V.comment(), n = V.first_child(t), r = (e) => {
|
|
705
|
-
var t = De(), n = V.child(t), r = V.child(n), i = V.child(r), a = V.child(i);
|
|
706
|
-
m(a, { size: "32" }), V.reset(i);
|
|
707
|
-
var o = V.sibling(i, 2), l = V.child(o, !0);
|
|
708
|
-
V.reset(o);
|
|
709
|
-
var u = V.sibling(o, 2), d = V.child(u, !0);
|
|
710
|
-
V.reset(u);
|
|
711
|
-
var f = V.sibling(u, 2);
|
|
712
|
-
s(f, {
|
|
713
|
-
variant: "default",
|
|
714
|
-
size: "lg",
|
|
715
|
-
onclick: () => J.open(),
|
|
716
|
-
children: (e, t) => {
|
|
717
|
-
V.next();
|
|
718
|
-
var n = V.text();
|
|
719
|
-
V.template_effect(() => V.set_text(n, b().enterPassword || "Enter password")), V.append(e, n);
|
|
720
|
-
},
|
|
721
|
-
$$slots: { default: !0 }
|
|
722
|
-
}), V.reset(r), V.reset(n);
|
|
723
|
-
var p = V.sibling(n, 2), h = V.child(p);
|
|
724
|
-
c(h, {
|
|
725
|
-
get event() {
|
|
726
|
-
return V.get(q);
|
|
727
|
-
},
|
|
728
|
-
onCheckout: Re,
|
|
729
|
-
get checkoutError() {
|
|
730
|
-
return V.get(N);
|
|
731
|
-
},
|
|
732
|
-
onPromoApply: Se,
|
|
733
|
-
onPromoRemove: ke,
|
|
734
|
-
onCollectionEventClick: ze,
|
|
735
|
-
onShowtimeClick: Be,
|
|
736
|
-
get gated() {
|
|
737
|
-
return V.get(Pe);
|
|
738
|
-
},
|
|
739
|
-
get unavailable() {
|
|
740
|
-
return V.get(W);
|
|
741
|
-
},
|
|
742
|
-
get unavailableReason() {
|
|
743
|
-
return V.get(G);
|
|
744
|
-
},
|
|
745
|
-
get waitlistEnabled() {
|
|
746
|
-
return V.get(Ae);
|
|
747
|
-
},
|
|
748
|
-
onJoinWaitlist: Ie,
|
|
749
|
-
get waitlistLinkError() {
|
|
750
|
-
return V.get(Ne);
|
|
751
|
-
},
|
|
752
|
-
onDismissWaitlistLinkError: Le,
|
|
753
|
-
get labels() {
|
|
754
|
-
return b();
|
|
755
|
-
},
|
|
756
|
-
get locale() {
|
|
757
|
-
return O();
|
|
758
|
-
}
|
|
759
|
-
}), V.reset(p), V.reset(t), V.template_effect(() => {
|
|
760
|
-
V.set_text(l, b().passwordProtectedTitle || "This event is password protected"), V.set_text(d, b().passwordProtectedDescription || "Enter the event password to view details and purchase tickets");
|
|
761
|
-
}), V.append(e, t);
|
|
762
|
-
}, i = (e) => {
|
|
763
|
-
c(e, {
|
|
764
|
-
get event() {
|
|
765
|
-
return V.get(q);
|
|
766
|
-
},
|
|
767
|
-
onCheckout: Re,
|
|
768
|
-
get checkoutError() {
|
|
769
|
-
return V.get(N);
|
|
770
|
-
},
|
|
771
|
-
onPromoApply: Se,
|
|
772
|
-
onPromoRemove: ke,
|
|
773
|
-
onCollectionEventClick: ze,
|
|
774
|
-
onShowtimeClick: Be,
|
|
775
|
-
get gated() {
|
|
776
|
-
return V.get(Pe);
|
|
777
|
-
},
|
|
778
|
-
get unavailable() {
|
|
779
|
-
return V.get(W);
|
|
780
|
-
},
|
|
781
|
-
get unavailableReason() {
|
|
782
|
-
return V.get(G);
|
|
783
|
-
},
|
|
784
|
-
get waitlistEnabled() {
|
|
785
|
-
return V.get(Ae);
|
|
786
|
-
},
|
|
787
|
-
onJoinWaitlist: Ie,
|
|
788
|
-
get waitlistLinkError() {
|
|
789
|
-
return V.get(Ne);
|
|
790
|
-
},
|
|
791
|
-
onDismissWaitlistLinkError: Le,
|
|
792
|
-
get labels() {
|
|
793
|
-
return b();
|
|
794
|
-
},
|
|
795
|
-
get locale() {
|
|
796
|
-
return O();
|
|
797
|
-
}
|
|
798
|
-
});
|
|
799
|
-
};
|
|
800
|
-
V.if(n, (e) => {
|
|
801
|
-
V.get(me) ? e(r) : e(i, -1);
|
|
802
|
-
}), V.append(e, t);
|
|
803
|
-
};
|
|
804
|
-
V.if(He, (e) => {
|
|
805
|
-
V.get(j) ? e(Ue) : V.get(M) ? e(We, 1) : V.get(q) && e(Ge, 2);
|
|
806
|
-
});
|
|
807
|
-
var Ke = V.sibling(He, 2), qe = () => J.isOpen, Je = (e) => e ? J.open() : J.close();
|
|
808
|
-
{
|
|
809
|
-
let e = V.derived(() => b().enterEventPassword || "Enter event password"), t = V.derived(() => b().passwordModalDescription || "This event requires a password to view. Please enter the password provided by the event organizer"), n = V.derived(() => b().passwordLabel || "Password"), r = V.derived(() => !!V.get(X)), i = V.derived(() => b().unlockEvent || "Unlock event"), a = V.derived(() => b().goBack || "Go back");
|
|
810
|
-
he(Ke, {
|
|
811
|
-
get open() {
|
|
812
|
-
return qe();
|
|
813
|
-
},
|
|
814
|
-
set open(e) {
|
|
815
|
-
Je(e);
|
|
816
|
-
},
|
|
817
|
-
size: "md",
|
|
818
|
-
get title() {
|
|
819
|
-
return V.get(e);
|
|
820
|
-
},
|
|
821
|
-
get description() {
|
|
822
|
-
return V.get(t);
|
|
823
|
-
},
|
|
824
|
-
get inputLabel() {
|
|
825
|
-
return V.get(n);
|
|
826
|
-
},
|
|
827
|
-
inputType: "password",
|
|
828
|
-
inputRequired: !0,
|
|
829
|
-
get errorMessage() {
|
|
830
|
-
return V.get(X);
|
|
831
|
-
},
|
|
832
|
-
get showError() {
|
|
833
|
-
return V.get(r);
|
|
834
|
-
},
|
|
835
|
-
get primaryButtonText() {
|
|
836
|
-
return V.get(i);
|
|
837
|
-
},
|
|
838
|
-
get secondaryButtonText() {
|
|
839
|
-
return V.get(a);
|
|
840
|
-
},
|
|
841
|
-
get loading() {
|
|
842
|
-
return V.get(fe);
|
|
843
|
-
},
|
|
844
|
-
onconfirm: ye,
|
|
845
|
-
oncancel: be,
|
|
846
|
-
onclose: be,
|
|
847
|
-
get inputValue() {
|
|
848
|
-
return V.get(Y);
|
|
849
|
-
},
|
|
850
|
-
set inputValue(e) {
|
|
851
|
-
V.set(Y, e, !0);
|
|
852
|
-
}
|
|
853
|
-
});
|
|
854
|
-
}
|
|
855
|
-
var Ye = V.sibling(Ke, 2), Xe = () => $.isOpen, Ze = (e) => e ? $.open() : $.close();
|
|
856
|
-
{
|
|
857
|
-
let e = V.derived(() => V.get(q)?.title || "this event");
|
|
858
|
-
Ce(Ye, {
|
|
859
|
-
get show() {
|
|
860
|
-
return Xe();
|
|
861
|
-
},
|
|
862
|
-
set show(e) {
|
|
863
|
-
Ze(e);
|
|
864
|
-
},
|
|
865
|
-
get eventId() {
|
|
866
|
-
return V.get(U);
|
|
867
|
-
},
|
|
868
|
-
get eventName() {
|
|
869
|
-
return V.get(e);
|
|
870
|
-
},
|
|
871
|
-
onClose: () => $.close(),
|
|
872
|
-
get labels() {
|
|
873
|
-
return b();
|
|
874
|
-
}
|
|
875
|
-
});
|
|
876
|
-
}
|
|
877
|
-
V.append(e, Ve), V.pop();
|
|
878
|
-
}
|
|
879
|
-
//#endregion
|
|
880
|
-
export { ke as default };
|