@getmicdrop/venue-calendar 4.3.24 → 4.3.26
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/dist/{ArrowLeftIcon-I5Ui2MMv.js → ArrowLeftIcon-BEoyQzGt.js} +1 -1
- package/dist/{BlockPlaceholder-CwJDSlRr.js → BlockPlaceholder-BEiQTRGx.js} +1 -1
- package/dist/{Calendar-BDxdp1v2.js → Calendar-D27gfN0x.js} +236 -230
- package/dist/{CalendarFoundryView-ylxXSy0Q.js → CalendarFoundryView-CBo25IoE.js} +37 -33
- package/dist/{CalendarIcon-iKBZIhcT.js → CalendarIcon-DxOagkl5.js} +1 -1
- package/dist/CartView-DSSU-0-_.js +2245 -0
- package/dist/{Checkout-BDKHhmry.js → Checkout-723DslXs.js} +247 -247
- package/dist/Checkout-D39bsHB6.js +1845 -0
- package/dist/{CheckoutTimer-Bq2I13Ae.js → CheckoutTimer-Dxct5HmQ.js} +5 -5
- package/dist/{ChevronDownIcon-BfAxe9v2.js → ChevronDownIcon-DIQAmQyH.js} +1 -1
- package/dist/{ClockIcon-nFiAeDJe.js → ClockIcon-CVPj8q7F.js} +1 -1
- package/dist/{CloseIcon-DvKvCZWt.js → CloseIcon-BQm8Xs1P.js} +1 -1
- package/dist/{CollectionView-Bec8fJQA.js → CollectionView-CSgSS8fB.js} +6 -6
- package/dist/{Event-K1P6JhKj.js → Event-BupNYi0B.js} +738 -675
- package/dist/{EventPage-Yvui8CAC.js → EventPage-DR8JraPo.js} +295 -262
- package/dist/{Input-CwFaXbO6.js → Input-Bpq_mV4s.js} +1 -1
- package/dist/{MailIcon-BRBkliz8.js → MailIcon-Wrsqe_uW.js} +1 -1
- package/dist/{PasswordInput-DsnCCqzu.js → PasswordInput-eMxkf9IC.js} +1 -1
- package/dist/{RecommendationsRail-D_JcJEX0.js → RecommendationsRail-CYvrLLwk.js} +119 -117
- package/dist/{ScarcityBadge-Bik8VKze.js → ScarcityBadge-D1IzCyTk.js} +3 -3
- package/dist/{SeriesPage-BAqPdsgR.js → SeriesPage-BHAuypj1.js} +3 -3
- package/dist/{Success-CSZ6OYWj.js → Success-Cda04nxq.js} +17 -17
- package/dist/{TagIcon-BlkIiP6A.js → TagIcon-DAHUalS9.js} +1 -1
- package/dist/{ViewTicketsEmbed-D1JmKNf1.js → ViewTicketsEmbed-B0agtnsM.js} +33 -33
- package/dist/{WarningCircleIcon-mcDExvi6.js → WarningCircleIcon-u-Y8M0N1.js} +1 -1
- package/dist/{WarningTriIcon-KJ6AJZhg.js → WarningTriIcon-DroD8KGE.js} +1 -1
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +283 -280
- package/dist/api/cta.d.ts +4 -0
- package/dist/api/types.d.ts +3 -1
- package/dist/{api-Bv-5UTvm.js → api-DxEN4thz.js} +79 -79
- package/dist/{constants-Dkkkks8H.js → constants-DuFw4kZc.js} +2 -1
- package/dist/{copyToClipboard-DGHxXO-R.js → copyToClipboard-CX0-qsMi.js} +1 -1
- package/dist/{de-CzupmMIa.js → de-BnjqU4K3.js} +1 -0
- package/dist/{defaultLabels-DP7tY9Pg.js → defaultLabels-BgBbv_Mu.js} +243 -234
- package/dist/{es-B-vQxM9Z.js → es-BJSttnC2.js} +1 -0
- package/dist/{event-transform-CQxO_ACI.js → event-transform-y9eZBvZJ.js} +9 -9
- package/dist/{eventStatusStream-CJodQtGK.js → eventStatusStream-uZrfQOCm.js} +1 -1
- package/dist/{fr-B2g-kG7i.js → fr-DqfagdtN.js} +1 -0
- package/dist/{href-B0sNxICB.js → href-EZSiOTvJ.js} +2 -2
- package/dist/{i18n-D6loEmFz.js → i18n-BZAWUSFx.js} +2 -2
- package/dist/i18n-CbpFLxO0.js +566 -0
- package/dist/{id-Dgu5-FC6.js → id-B1c1JsNl.js} +1 -0
- package/dist/{it-C580sMYp.js → it-DiFjoVSe.js} +1 -0
- package/dist/{ja-DLki4zXU.js → ja-CfeBSXBd.js} +1 -0
- package/dist/{ko-BUcfb1Gi.js → ko-DIjhPkQ7.js} +1 -0
- package/dist/locales/4.3.26/flow/de.js +1 -0
- package/dist/locales/4.3.26/flow/es.js +1 -0
- package/dist/locales/4.3.26/flow/fr.js +1 -0
- package/dist/locales/4.3.26/flow/id.js +1 -0
- package/dist/locales/4.3.26/flow/it.js +1 -0
- package/dist/locales/4.3.26/flow/ja.js +1 -0
- package/dist/locales/4.3.26/flow/ko.js +1 -0
- package/dist/locales/4.3.26/flow/nl.js +1 -0
- package/dist/locales/{4.3.24 → 4.3.26}/flow/pl.js +1 -1
- package/dist/locales/4.3.26/flow/pt-br.js +1 -0
- package/dist/locales/{4.3.24 → 4.3.26}/flow/tr.js +1 -1
- package/dist/locales/4.3.26/flow/zh.js +1 -0
- package/dist/{navigation-CJ403ByO.js → navigation-Dh-hGmN9.js} +2 -2
- package/dist/{nl-CivAQA0D.js → nl-DH8ATeT-.js} +1 -0
- package/dist/{order-totals-sQNKjXcZ.js → order-totals-CfYOfTyw.js} +4 -4
- package/dist/{orders-D1dybiYD.js → orders-BQRru8sl.js} +3 -3
- package/dist/{phoneUtils-B_9g7GJj.js → phoneUtils-DK8ry3Ji.js} +1 -1
- package/dist/{pixels-BMkfBngV.js → pixels-CAgpvPd8.js} +2 -2
- package/dist/{pl-C5VwFH2B.js → pl-DHSf0Tay.js} +1 -0
- package/dist/{promo-lMaGYLo-.js → promo-aAygcEn7.js} +3 -3
- package/dist/{pt-br-B0w9dhVB.js → pt-br-bUE81YH0.js} +1 -0
- package/dist/{scarcity-CZEPC-UR.js → scarcity-Dgvp7aCF.js} +67 -67
- package/dist/seo/seo.cjs +1 -1
- package/dist/seo/seo.mjs +50 -43
- package/dist/{serverTotals-BWRzJsle.js → serverTotals-96Luutwl.js} +8 -8
- package/dist/{showcase-state-options-CEKhIK66.js → showcase-state-options-DcNFRj34.js} +1 -1
- package/dist/{to-event-card-props-DUWp0etY.js → to-event-card-props-djxhqexI.js} +47 -45
- package/dist/{tr-LGkP5gpA.js → tr--NLWW7qi.js} +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/{utils-CuLU8uyA.js → utils-CiFOOjQd.js} +72 -69
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +1229 -1165
- package/dist/venue-calendar.iife.js +58 -58
- package/dist/venue-calendar.umd.js +54 -54
- package/dist/{zh-D2ZAdq3T.js → zh-ZYCR67Kf.js} +1 -0
- package/package.json +2 -2
- package/dist/CartView-9PGGgyk_.js +0 -2245
- package/dist/Checkout-BP3JTPsO.js +0 -1845
- package/dist/i18n-CMpXpjPv.js +0 -544
- package/dist/locales/4.3.24/flow/de.js +0 -1
- package/dist/locales/4.3.24/flow/es.js +0 -1
- package/dist/locales/4.3.24/flow/fr.js +0 -1
- package/dist/locales/4.3.24/flow/id.js +0 -1
- package/dist/locales/4.3.24/flow/it.js +0 -1
- package/dist/locales/4.3.24/flow/ja.js +0 -1
- package/dist/locales/4.3.24/flow/ko.js +0 -1
- package/dist/locales/4.3.24/flow/nl.js +0 -1
- package/dist/locales/4.3.24/flow/pt-br.js +0 -1
- package/dist/locales/4.3.24/flow/zh.js +0 -1
- /package/dist/locales/{4.3.24 → 4.3.26}/main/de.js +0 -0
- /package/dist/locales/{4.3.24 → 4.3.26}/main/es.js +0 -0
- /package/dist/locales/{4.3.24 → 4.3.26}/main/fr.js +0 -0
- /package/dist/locales/{4.3.24 → 4.3.26}/main/id.js +0 -0
- /package/dist/locales/{4.3.24 → 4.3.26}/main/it.js +0 -0
- /package/dist/locales/{4.3.24 → 4.3.26}/main/ja.js +0 -0
- /package/dist/locales/{4.3.24 → 4.3.26}/main/ko.js +0 -0
- /package/dist/locales/{4.3.24 → 4.3.26}/main/nl.js +0 -0
- /package/dist/locales/{4.3.24 → 4.3.26}/main/pl.js +0 -0
- /package/dist/locales/{4.3.24 → 4.3.26}/main/pt-br.js +0 -0
- /package/dist/locales/{4.3.24 → 4.3.26}/main/tr.js +0 -0
- /package/dist/locales/{4.3.24 → 4.3.26}/main/zh.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { S as e } from "./Button-klwKgfhG.js";
|
|
2
|
-
import { i as t, l as n, n as r, r as i } from "./scarcity-
|
|
2
|
+
import { i as t, l as n, n as r, r as i } from "./scarcity-Dgvp7aCF.js";
|
|
3
3
|
import { t as a } from "./Badge-n7TfNjln.js";
|
|
4
|
-
import {
|
|
4
|
+
import { A as o, U as s, g as c, i as l, t as u, x as d, y as f } from "./defaultLabels-BgBbv_Mu.js";
|
|
5
5
|
import "svelte/internal/disclose-version";
|
|
6
6
|
import * as p from "svelte/internal/client";
|
|
7
7
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/BlurBackdropImage/BlurBackdropImage.svelte
|
|
@@ -143,10 +143,10 @@ var x = {
|
|
|
143
143
|
function C() {
|
|
144
144
|
return S += 1;
|
|
145
145
|
}
|
|
146
|
-
var w = p.from_html("<div><!></div>"), T = p.from_html("<span class=\"event-card__badge svelte-18ndok6\"><!></span>"), E = p.from_html("<span> </span>"), D = p.from_html("<div class=\"event-card__pills flex flex-wrap gap-2 relative svelte-18ndok6\"></div>"), O = p.from_html("<p class=\"event-card__description type-body tone-secondary m-0 svelte-18ndok6\"> </p>"), k = p.from_html("<article class=\"event-card relative rounded-lg border bg-card border-border overflow-hidden svelte-18ndok6\"><!> <div class=\"event-card__content flex flex-col flex-1 min-w-0 svelte-18ndok6\"><header class=\"event-card__header\"><h3><!> <a class=\"event-card__title-link svelte-18ndok6\" rel=\"external\"> </a></h3></header> <!> <!> <!></div></article>");
|
|
146
|
+
var w = p.from_html("<div><!></div>"), T = p.from_html("<span class=\"event-card__badge svelte-18ndok6\"><!></span>"), E = p.from_html("<span> </span>"), D = p.from_html("<div class=\"event-card__pills flex flex-wrap gap-2 relative svelte-18ndok6\"></div>"), O = p.from_html("<p class=\"event-card__description type-body tone-secondary m-0 svelte-18ndok6\"> </p>"), k = p.from_html("<article class=\"event-card relative rounded-lg border bg-card border-border overflow-hidden svelte-18ndok6\"><!> <div class=\"event-card__content flex flex-col flex-1 min-w-0 svelte-18ndok6\"><header class=\"event-card__header\"><h3><span class=\"event-card__title-text\"><!> <a class=\"event-card__title-link svelte-18ndok6\" rel=\"external\"> </a></span></h3></header> <!> <!> <!></div></article>");
|
|
147
147
|
function A(t, n) {
|
|
148
148
|
p.push(n, !0);
|
|
149
|
-
let r = p.prop(n, "layout", 3, "vertical"), i = p.prop(n, "density", 3, "standard"),
|
|
149
|
+
let r = p.prop(n, "layout", 3, "vertical"), i = p.prop(n, "density", 3, "standard"), o = p.prop(n, "imageUrl", 3, ""), c = p.prop(n, "placeholderImage", 3, ""), u = p.prop(n, "hidePoster", 3, !1), d = p.prop(n, "posterFit", 3, "fit"), f = p.prop(n, "posterBackdrop", 3, "blur"), m = p.prop(n, "dateLabel", 3, ""), h = p.prop(n, "description", 3, ""), g = p.prop(n, "badge", 3, null), v = p.prop(n, "pills", 19, () => []), y = p.prop(n, "pillVariant", 3, "alternative"), b = p.prop(n, "showDescription", 3, !1), S = p.prop(n, "hideDate", 3, !1), A = p.derived(() => x[i()]), j = p.derived(() => d() === "fit" && f() === "color"), M = `event-card-title-${C()}`, N = p.derived(() => b() && !!h() && (i() === "standard" || i() === "featured")), P = p.derived(() => !S() && i() !== "micro" && !!m());
|
|
150
150
|
function F(e, t) {
|
|
151
151
|
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || n.onpillclick && (t.preventDefault(), t.stopPropagation(), n.onpillclick(e));
|
|
152
152
|
}
|
|
@@ -155,9 +155,9 @@ function A(t, n) {
|
|
|
155
155
|
}
|
|
156
156
|
var L = k(), R = p.child(L), z = (e) => {
|
|
157
157
|
var t = w(), n = p.child(t), r = (e) => {
|
|
158
|
-
|
|
158
|
+
s(e, {
|
|
159
159
|
get src() {
|
|
160
|
-
return
|
|
160
|
+
return o();
|
|
161
161
|
},
|
|
162
162
|
get fallback() {
|
|
163
163
|
return c();
|
|
@@ -171,7 +171,7 @@ function A(t, n) {
|
|
|
171
171
|
let t = p.derived(() => d() === "fill");
|
|
172
172
|
_(e, {
|
|
173
173
|
get src() {
|
|
174
|
-
return
|
|
174
|
+
return o();
|
|
175
175
|
},
|
|
176
176
|
get fallback() {
|
|
177
177
|
return c();
|
|
@@ -190,9 +190,9 @@ function A(t, n) {
|
|
|
190
190
|
}), p.append(e, t);
|
|
191
191
|
};
|
|
192
192
|
p.if(R, (e) => {
|
|
193
|
-
|
|
193
|
+
u() || e(z);
|
|
194
194
|
});
|
|
195
|
-
var B = p.sibling(R, 2), V = p.child(B), H = p.child(V), U = p.child(H), W = (e) => {
|
|
195
|
+
var B = p.sibling(R, 2), V = p.child(B), H = p.child(V), U = p.child(H), W = p.child(U), G = (e) => {
|
|
196
196
|
var t = T(), n = p.child(t);
|
|
197
197
|
a(n, {
|
|
198
198
|
get variant() {
|
|
@@ -209,26 +209,26 @@ function A(t, n) {
|
|
|
209
209
|
$$slots: { default: !0 }
|
|
210
210
|
}), p.reset(t), p.append(e, t);
|
|
211
211
|
};
|
|
212
|
-
p.if(
|
|
213
|
-
g() && e(
|
|
212
|
+
p.if(W, (e) => {
|
|
213
|
+
g() && e(G);
|
|
214
214
|
});
|
|
215
|
-
var
|
|
216
|
-
p.reset(
|
|
217
|
-
var
|
|
215
|
+
var K = p.sibling(W, 2), q = p.child(K, !0);
|
|
216
|
+
p.reset(K), p.reset(U), p.reset(H), p.reset(V);
|
|
217
|
+
var J = p.sibling(V, 2), Y = (t) => {
|
|
218
218
|
var n = E(), r = p.child(n, !0);
|
|
219
219
|
p.reset(n), p.template_effect(() => {
|
|
220
220
|
p.set_class(n, 1, `event-card__date tone-secondary ${e.emphasis ?? ""}`, "svelte-18ndok6"), p.set_text(r, m());
|
|
221
221
|
}), p.append(t, n);
|
|
222
222
|
};
|
|
223
|
-
p.if(
|
|
224
|
-
p.get(P) && e(
|
|
223
|
+
p.if(J, (e) => {
|
|
224
|
+
p.get(P) && e(Y);
|
|
225
225
|
});
|
|
226
|
-
var
|
|
226
|
+
var X = p.sibling(J, 2), Z = (e) => {
|
|
227
227
|
var t = D();
|
|
228
228
|
p.each(t, 21, v, p.index, (e, t, n) => {
|
|
229
229
|
{
|
|
230
230
|
let r = p.derived(() => y() === "primary" ? "default" : "alternative"), i = p.derived(() => p.get(t).ariaLabel ?? p.get(t).timeLabel);
|
|
231
|
-
|
|
231
|
+
l(e, {
|
|
232
232
|
get href() {
|
|
233
233
|
return p.get(t).href;
|
|
234
234
|
},
|
|
@@ -252,18 +252,18 @@ function A(t, n) {
|
|
|
252
252
|
}
|
|
253
253
|
}), p.reset(t), p.append(e, t);
|
|
254
254
|
};
|
|
255
|
-
p.if(
|
|
256
|
-
v().length > 0 && e(
|
|
255
|
+
p.if(X, (e) => {
|
|
256
|
+
v().length > 0 && e(Z);
|
|
257
257
|
});
|
|
258
|
-
var
|
|
258
|
+
var Q = p.sibling(X, 2), $ = (e) => {
|
|
259
259
|
var t = O(), n = p.child(t, !0);
|
|
260
260
|
p.reset(t), p.template_effect(() => p.set_text(n, h())), p.append(e, t);
|
|
261
261
|
};
|
|
262
|
-
p.if(
|
|
263
|
-
p.get(N) && e(
|
|
262
|
+
p.if(Q, (e) => {
|
|
263
|
+
p.get(N) && e($);
|
|
264
264
|
}), p.reset(B), p.reset(L), p.template_effect(() => {
|
|
265
|
-
p.set_attribute(L, "data-layout", r()), p.set_attribute(L, "data-density", i()), p.set_attribute(L, "data-hide-poster",
|
|
266
|
-
}), p.delegated("click",
|
|
265
|
+
p.set_attribute(L, "data-layout", r()), p.set_attribute(L, "data-density", i()), p.set_attribute(L, "data-hide-poster", u()), p.set_attribute(L, "aria-labelledby", M), p.set_class(H, 1, `event-card__title ${e.strong ?? ""} tone-primary m-0`, "svelte-18ndok6"), p.set_attribute(H, "id", M), p.set_attribute(K, "href", n.href), p.set_attribute(K, "aria-label", n.ariaLabel ?? n.title), p.set_text(q, n.title);
|
|
266
|
+
}), p.delegated("click", K, I), p.append(t, L), p.pop();
|
|
267
267
|
}
|
|
268
268
|
p.delegate(["click"]);
|
|
269
269
|
//#endregion
|
|
@@ -346,8 +346,8 @@ function z(e, t) {
|
|
|
346
346
|
break;
|
|
347
347
|
case "past":
|
|
348
348
|
if (e.startDateTime) {
|
|
349
|
-
let n =
|
|
350
|
-
if (n &&
|
|
349
|
+
let n = d(e.endDateTime || e.startDateTime);
|
|
350
|
+
if (n && c(n, o()) < 0) return {
|
|
351
351
|
text: t?.statusPastEvent || "Past event",
|
|
352
352
|
type: "past"
|
|
353
353
|
};
|
|
@@ -444,31 +444,33 @@ function G(e, t) {
|
|
|
444
444
|
variant: "warning"
|
|
445
445
|
} : null;
|
|
446
446
|
}
|
|
447
|
-
function K(e, t =
|
|
448
|
-
let
|
|
449
|
-
text:
|
|
450
|
-
variant: H(
|
|
447
|
+
function K(e, t = u, r, a = null, o = {}) {
|
|
448
|
+
let s = e.event, c = e.isSeries ? B(e.instances, t) : z(s, t), l = c && c.type !== "past" ? {
|
|
449
|
+
text: c.text,
|
|
450
|
+
variant: H(c.type)
|
|
451
451
|
} : null;
|
|
452
|
-
!
|
|
453
|
-
let
|
|
452
|
+
!l && !e.isSeries && (l = G(s, t));
|
|
453
|
+
let d = P(s), f = s.startDateTime && a?.date !== !1 ? i(s.startDateTime, s.timeZone, r) : "", p = e.isSeries ? e.instances : s.startDateTime ? [s] : [], m = p.map((e) => {
|
|
454
454
|
let i = n(e.startDateTime, e.timeZone, r), a = z(e, t)?.type === "sold_out";
|
|
455
455
|
return {
|
|
456
456
|
timeLabel: i,
|
|
457
457
|
href: P(e),
|
|
458
|
-
ariaLabel: `${
|
|
458
|
+
ariaLabel: `${s.name} at ${i}${a ? ", sold out" : ""}`
|
|
459
459
|
};
|
|
460
|
-
}),
|
|
461
|
-
return
|
|
462
|
-
title:
|
|
463
|
-
href:
|
|
464
|
-
imageUrl:
|
|
465
|
-
dateLabel:
|
|
466
|
-
description: a?.description === !1 ? "" :
|
|
467
|
-
ariaLabel:
|
|
460
|
+
}), h = [s.name];
|
|
461
|
+
return s.startDateTime && h.push(`on ${i(s.startDateTime, s.timeZone, r)}`), e.isSeries ? h.push(`${e.instances.length} showtimes available`) : s.startDateTime && h.push(`at ${n(s.startDateTime, s.timeZone, r)}`), c && h.push(c.text), {
|
|
462
|
+
title: s.name,
|
|
463
|
+
href: d,
|
|
464
|
+
imageUrl: s.imageUrl ?? "",
|
|
465
|
+
dateLabel: f,
|
|
466
|
+
description: a?.description === !1 ? "" : s.description ?? "",
|
|
467
|
+
ariaLabel: h.join(", "),
|
|
468
468
|
hidePoster: a?.poster === !1,
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
469
|
+
posterFit: o.posterFit ?? "fit",
|
|
470
|
+
posterBackdrop: o.posterBackdrop ?? "blur",
|
|
471
|
+
badge: l,
|
|
472
|
+
pills: m,
|
|
473
|
+
pillEvents: p
|
|
472
474
|
};
|
|
473
475
|
}
|
|
474
476
|
//#endregion
|
|
@@ -74,6 +74,7 @@ var e = {
|
|
|
74
74
|
payment: "Ödeme",
|
|
75
75
|
noPaymentRequired: "Ödeme gerekmiyor",
|
|
76
76
|
freeEventMessage: "Bu ücretsiz bir etkinliktir. Yerinizi ayırtmak için formu doldurun",
|
|
77
|
+
giftCardCoversOrderMessage: "Hediye kartınız bu siparişi karşılıyor. Biletlerinizi almak için yukarıdaki formu doldurun",
|
|
77
78
|
firstName: "Ad",
|
|
78
79
|
lastName: "Soyad",
|
|
79
80
|
emailAddress: "E-posta adresi",
|
package/dist/types/index.d.ts
CHANGED
|
@@ -163,6 +163,12 @@ export interface CalendarProps extends BaseInitOptions {
|
|
|
163
163
|
/** Level of the calendar's screen-reader heading: 2 when the host page
|
|
164
164
|
* already carries its h1 (default: 1) */
|
|
165
165
|
headingLevel?: 1 | 2;
|
|
166
|
+
/** How every card draws its poster: 'fit' shows the whole poster, 'fill'
|
|
167
|
+
* crops it to cover the frame (default: 'fit') */
|
|
168
|
+
posterFit?: 'fill' | 'fit';
|
|
169
|
+
/** What fills around a 'fit' poster: a blurred copy of it, or the
|
|
170
|
+
* section's own colour (default: 'blur') */
|
|
171
|
+
posterBackdrop?: 'blur' | 'color';
|
|
166
172
|
/** Opening a show rewrites the host page's title and share tags to the
|
|
167
173
|
* show's, restoring them on close. Both embeds turn it on unless the host
|
|
168
174
|
* sets inject-seo="false" (default for a direct call: false) */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as e } from "./Button-klwKgfhG.js";
|
|
2
|
-
import { $ as t, I as n, M as r, Y as i, Z as a, j as o, k as s, q as c } from "./orders-
|
|
3
|
-
import "./event-transform-
|
|
2
|
+
import { $ as t, I as n, M as r, Y as i, Z as a, j as o, k as s, q as c } from "./orders-BQRru8sl.js";
|
|
3
|
+
import "./event-transform-y9eZBvZJ.js";
|
|
4
4
|
//#region node_modules/js-cookie/dist/js.cookie.mjs
|
|
5
5
|
function l(e) {
|
|
6
6
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -70,7 +70,10 @@ function h(e) {
|
|
|
70
70
|
//#endregion
|
|
71
71
|
//#region src/lib/utils/checkoutState.ts
|
|
72
72
|
var g = e("checkoutState"), _ = (e) => `micdrop:vc:${e}`, v = (e) => `micdrop-${e}`, y = (e) => _(`checkout-state-${e}`), b = (e) => `checkout-state-${e}`, x = (e) => _(`checkout-expiry-${e}`), S = (e) => `checkout-expiry-${e}`, C = v("cartid"), w = "checkout-cartid";
|
|
73
|
-
function T() {
|
|
73
|
+
function T(e) {
|
|
74
|
+
return Number(e.type) === 2;
|
|
75
|
+
}
|
|
76
|
+
function E() {
|
|
74
77
|
let e = typeof window < "u" && window.location.protocol === "https:";
|
|
75
78
|
return {
|
|
76
79
|
secure: e,
|
|
@@ -78,7 +81,7 @@ function T() {
|
|
|
78
81
|
path: "/"
|
|
79
82
|
};
|
|
80
83
|
}
|
|
81
|
-
function
|
|
84
|
+
function D(e) {
|
|
82
85
|
let t = {}, n = {}, r = [], o = "", s = 0, l = {};
|
|
83
86
|
if (typeof window > "u") return {
|
|
84
87
|
quantities: t,
|
|
@@ -111,14 +114,14 @@ function ee(e) {
|
|
|
111
114
|
} catch (e) {
|
|
112
115
|
g.warn("Failed to parse checkout tickets cookie:", e), r = [];
|
|
113
116
|
}
|
|
114
|
-
return o = m(`checkout-promocode-${e}`) || "", s = parseFloat(m(`checkout-promo-discount-${e}`) || "0"), (Object.keys(t).length > 0 || r.length > 0 || o) && (
|
|
117
|
+
return o = m(`checkout-promocode-${e}`) || "", s = parseFloat(m(`checkout-promo-discount-${e}`) || "0"), (Object.keys(t).length > 0 || r.length > 0 || o) && (A({
|
|
115
118
|
eventID: e,
|
|
116
119
|
quantities: t,
|
|
117
120
|
donationAmounts: n,
|
|
118
121
|
promocode: o,
|
|
119
122
|
promoDiscountAmount: s,
|
|
120
123
|
tickets: r
|
|
121
|
-
}),
|
|
124
|
+
}), O(e)), {
|
|
122
125
|
quantities: t,
|
|
123
126
|
donationAmounts: n,
|
|
124
127
|
addOnQuantities: l,
|
|
@@ -127,13 +130,13 @@ function ee(e) {
|
|
|
127
130
|
tickets: r
|
|
128
131
|
};
|
|
129
132
|
}
|
|
130
|
-
function
|
|
133
|
+
function O(e) {
|
|
131
134
|
h(`checkout-quantities-${e}`), h(`checkout-tickets-${e}`), h(`checkout-promocode-${e}`), h(`checkout-promo-discount-${e}`);
|
|
132
135
|
}
|
|
133
|
-
function
|
|
134
|
-
i(y(e)), i(b(e)),
|
|
136
|
+
function k(e) {
|
|
137
|
+
i(y(e)), i(b(e)), O(e), h(`checkout-promo-discount-type-${e}`), h(`checkout-promo-reveal-${e}`), h(`checkout-promo-reveal-ids-${e}`), h(`checkout-promo-ticket-ids-${e}`);
|
|
135
138
|
}
|
|
136
|
-
function
|
|
139
|
+
function A({ eventID: e, quantities: t, donationAmounts: n, addOnQuantities: r, promocode: i, promoDiscountAmount: o, tickets: s }) {
|
|
137
140
|
if (typeof window > "u") return;
|
|
138
141
|
let c = (s || []).map((e) => ({
|
|
139
142
|
ID: e.ID,
|
|
@@ -153,91 +156,91 @@ function O({ eventID: e, quantities: t, donationAmounts: n, addOnQuantities: r,
|
|
|
153
156
|
};
|
|
154
157
|
a(y(e), l);
|
|
155
158
|
}
|
|
156
|
-
function
|
|
159
|
+
function j(e) {
|
|
157
160
|
if (!e) return null;
|
|
158
161
|
let t = c(x(e), null);
|
|
159
|
-
if (t != null) return
|
|
162
|
+
if (t != null) return P(t);
|
|
160
163
|
let n = c(S(e), null);
|
|
161
164
|
if (n == null) return null;
|
|
162
|
-
let r =
|
|
165
|
+
let r = P(n);
|
|
163
166
|
return r != null && (a(x(e), r), i(S(e))), r;
|
|
164
167
|
}
|
|
165
|
-
function
|
|
168
|
+
function M(e, t) {
|
|
166
169
|
!e || !Number.isFinite(t) || a(x(e), t);
|
|
167
170
|
}
|
|
168
|
-
function
|
|
171
|
+
function N(e) {
|
|
169
172
|
e && (i(x(e)), i(S(e)));
|
|
170
173
|
}
|
|
171
|
-
function
|
|
174
|
+
function P(e) {
|
|
172
175
|
let t = typeof e == "number" ? e : parseInt(e, 10);
|
|
173
176
|
return Number.isFinite(t) && t > 0 ? t : null;
|
|
174
177
|
}
|
|
175
|
-
function
|
|
176
|
-
let t =
|
|
178
|
+
function ee(e) {
|
|
179
|
+
let t = E();
|
|
177
180
|
p(C, e, t), p(w, e, t);
|
|
178
181
|
}
|
|
179
|
-
async function
|
|
182
|
+
async function te(e) {
|
|
180
183
|
let t = v(`order-id-${e}`), n = `order-id-${e}`, r = m(t) || m(n);
|
|
181
184
|
if (r) return r;
|
|
182
|
-
let i = `order-${e}-${Date.now()}`, a =
|
|
185
|
+
let i = `order-${e}-${Date.now()}`, a = E();
|
|
183
186
|
return p(t, i, a), p(n, i, a), i;
|
|
184
187
|
}
|
|
185
188
|
var F = (e) => _(`queue-token-${e}`);
|
|
186
|
-
function
|
|
189
|
+
function I(e) {
|
|
187
190
|
return c(F(e), null);
|
|
188
191
|
}
|
|
189
|
-
function
|
|
192
|
+
function L(e, t) {
|
|
190
193
|
t && a(F(e), t);
|
|
191
194
|
}
|
|
192
|
-
function
|
|
195
|
+
function R(e) {
|
|
193
196
|
i(F(e));
|
|
194
197
|
}
|
|
195
198
|
//#endregion
|
|
196
199
|
//#region src/lib/api/surge-queue.ts
|
|
197
|
-
var
|
|
200
|
+
var z = e("VC"), B = "queue_unavailable", V = {
|
|
198
201
|
armed: !1,
|
|
199
202
|
mode: "off",
|
|
200
203
|
waiting: 0,
|
|
201
204
|
etaSeconds: 0
|
|
202
|
-
},
|
|
203
|
-
function U(e) {
|
|
204
|
-
return typeof e == "number" && Number.isFinite(e) && e > 0 ? Math.floor(e) : 0;
|
|
205
|
-
}
|
|
205
|
+
}, H = 5e3, U = 1e3;
|
|
206
206
|
function W(e) {
|
|
207
|
-
return e
|
|
207
|
+
return typeof e == "number" && Number.isFinite(e) && e > 0 ? Math.floor(e) : 0;
|
|
208
208
|
}
|
|
209
209
|
function G(e) {
|
|
210
|
-
return e === "
|
|
210
|
+
return e === "off" || e === "auto" || e === "on" ? e : "off";
|
|
211
211
|
}
|
|
212
212
|
function K(e) {
|
|
213
|
-
return
|
|
213
|
+
return e === "open" || e === "waiting" || e === "admitted" ? e : "expired";
|
|
214
214
|
}
|
|
215
215
|
function q(e) {
|
|
216
|
-
|
|
216
|
+
return typeof e != "number" || !Number.isFinite(e) || e <= 0 ? H : Math.max(e, U);
|
|
217
|
+
}
|
|
218
|
+
function J(e) {
|
|
219
|
+
let t = K(e?.state), n = typeof e?.token == "string" ? e.token : "";
|
|
217
220
|
return !n && t !== "open" ? null : {
|
|
218
221
|
token: n,
|
|
219
222
|
state: t,
|
|
220
|
-
position:
|
|
221
|
-
ahead:
|
|
222
|
-
etaSeconds:
|
|
223
|
-
pollAfterMs:
|
|
223
|
+
position: W(e?.position),
|
|
224
|
+
ahead: W(e?.ahead),
|
|
225
|
+
etaSeconds: W(e?.etaSeconds),
|
|
226
|
+
pollAfterMs: q(e?.pollAfterMs),
|
|
224
227
|
expiresAt: typeof e?.expiresAt == "string" ? e.expiresAt : ""
|
|
225
228
|
};
|
|
226
229
|
}
|
|
227
|
-
async function
|
|
230
|
+
async function Y(e) {
|
|
228
231
|
try {
|
|
229
232
|
let t = await o(`/events/${e}/queue`);
|
|
230
233
|
return t.success ? {
|
|
231
234
|
armed: t.data?.armed === !0,
|
|
232
|
-
mode:
|
|
233
|
-
waiting:
|
|
234
|
-
etaSeconds:
|
|
235
|
-
} :
|
|
235
|
+
mode: G(t.data?.mode),
|
|
236
|
+
waiting: W(t.data?.waiting),
|
|
237
|
+
etaSeconds: W(t.data?.etaSeconds)
|
|
238
|
+
} : V;
|
|
236
239
|
} catch (e) {
|
|
237
|
-
return
|
|
240
|
+
return z.error("getQueueState error:", e), V;
|
|
238
241
|
}
|
|
239
242
|
}
|
|
240
|
-
async function
|
|
243
|
+
async function X(e) {
|
|
241
244
|
try {
|
|
242
245
|
let t = await r(`/events/${e}/queue/join`, {});
|
|
243
246
|
if (!t.success) return {
|
|
@@ -245,27 +248,27 @@ async function Y(e) {
|
|
|
245
248
|
errorCode: t.errorCode || "queue_unavailable",
|
|
246
249
|
statusCode: t.statusCode
|
|
247
250
|
};
|
|
248
|
-
let n =
|
|
251
|
+
let n = J(t.data);
|
|
249
252
|
return n ? {
|
|
250
253
|
success: !0,
|
|
251
254
|
entry: n,
|
|
252
255
|
statusCode: t.statusCode
|
|
253
256
|
} : {
|
|
254
257
|
success: !1,
|
|
255
|
-
errorCode:
|
|
258
|
+
errorCode: B,
|
|
256
259
|
statusCode: t.statusCode
|
|
257
260
|
};
|
|
258
261
|
} catch (e) {
|
|
259
|
-
return
|
|
262
|
+
return z.error("joinQueue error:", e), {
|
|
260
263
|
success: !1,
|
|
261
|
-
errorCode:
|
|
264
|
+
errorCode: B
|
|
262
265
|
};
|
|
263
266
|
}
|
|
264
267
|
}
|
|
265
|
-
async function
|
|
268
|
+
async function Z(e, t) {
|
|
266
269
|
if (!t) return {
|
|
267
270
|
success: !1,
|
|
268
|
-
errorCode:
|
|
271
|
+
errorCode: B
|
|
269
272
|
};
|
|
270
273
|
try {
|
|
271
274
|
let n = await o(`/events/${e}/queue/status?token=${encodeURIComponent(t)}`);
|
|
@@ -274,24 +277,24 @@ async function X(e, t) {
|
|
|
274
277
|
errorCode: n.errorCode || "queue_unavailable",
|
|
275
278
|
statusCode: n.statusCode
|
|
276
279
|
};
|
|
277
|
-
let r =
|
|
280
|
+
let r = J(n.data);
|
|
278
281
|
return r ? {
|
|
279
282
|
success: !0,
|
|
280
283
|
entry: r,
|
|
281
284
|
statusCode: n.statusCode
|
|
282
285
|
} : {
|
|
283
286
|
success: !1,
|
|
284
|
-
errorCode:
|
|
287
|
+
errorCode: B,
|
|
285
288
|
statusCode: n.statusCode
|
|
286
289
|
};
|
|
287
290
|
} catch (e) {
|
|
288
|
-
return
|
|
291
|
+
return z.error("getQueueStatus error:", e), {
|
|
289
292
|
success: !1,
|
|
290
|
-
errorCode:
|
|
293
|
+
errorCode: B
|
|
291
294
|
};
|
|
292
295
|
}
|
|
293
296
|
}
|
|
294
|
-
async function
|
|
297
|
+
async function ne(e, t) {
|
|
295
298
|
if (!t) return { released: !1 };
|
|
296
299
|
try {
|
|
297
300
|
return { released: (await r(`/events/${e}/queue/leave`, { token: t }, {
|
|
@@ -299,13 +302,13 @@ async function Z(e, t) {
|
|
|
299
302
|
suppressOnError: !0
|
|
300
303
|
})).data?.released === !0 };
|
|
301
304
|
} catch (e) {
|
|
302
|
-
return
|
|
305
|
+
return z.error("leaveQueue error:", e), { released: !1 };
|
|
303
306
|
}
|
|
304
307
|
}
|
|
305
308
|
//#endregion
|
|
306
309
|
//#region src/lib/utils/orderApi.ts
|
|
307
310
|
var Q = e("orderApi");
|
|
308
|
-
function
|
|
311
|
+
function re(e) {
|
|
309
312
|
if (typeof e == "string") return e;
|
|
310
313
|
if (e && typeof e == "object") {
|
|
311
314
|
let t = e.message;
|
|
@@ -315,17 +318,17 @@ function $(e) {
|
|
|
315
318
|
}
|
|
316
319
|
return "";
|
|
317
320
|
}
|
|
318
|
-
function
|
|
321
|
+
function ie(e) {
|
|
319
322
|
if (e && typeof e == "object") {
|
|
320
323
|
let t = e.code;
|
|
321
324
|
if (typeof t == "string") return t;
|
|
322
325
|
}
|
|
323
326
|
return "";
|
|
324
327
|
}
|
|
325
|
-
async function
|
|
328
|
+
async function ae() {
|
|
326
329
|
return null;
|
|
327
330
|
}
|
|
328
|
-
async function
|
|
331
|
+
async function oe(e) {
|
|
329
332
|
try {
|
|
330
333
|
let n = await o(`/venues/${e}`);
|
|
331
334
|
if (!n.success) throw new t(n.error ?? `API error: ${n.statusCode}`, n.statusCode ?? 0, {
|
|
@@ -337,9 +340,9 @@ async function ie(e) {
|
|
|
337
340
|
throw Q.error("getVenueDetails error:", e), e;
|
|
338
341
|
}
|
|
339
342
|
}
|
|
340
|
-
async function
|
|
343
|
+
async function $(e = {}, t) {
|
|
341
344
|
try {
|
|
342
|
-
let n = await
|
|
345
|
+
let n = await ae(), { eventID: i, quantities: a, donationAmounts: o, ...s } = e, c = a ? Object.fromEntries(Object.entries(a).map(([e, t]) => [parseInt(e, 10), t])) : {}, l = o ? Object.fromEntries(Object.entries(o).filter(([, e]) => parseFloat(String(e)) > 0).map(([e, t]) => [parseInt(e, 10), parseFloat(String(t))])) : void 0, u = {
|
|
343
346
|
purchaserIP: n,
|
|
344
347
|
eventID: i ? parseInt(String(i), 10) : void 0,
|
|
345
348
|
quantities: c,
|
|
@@ -347,8 +350,8 @@ async function ae(e = {}, t) {
|
|
|
347
350
|
...s
|
|
348
351
|
}, d = await r("/orders/create", u, t ? { headers: { "X-Queue-Token": t } } : void 0), f = d.data ?? {};
|
|
349
352
|
if (!d.success || f.error) {
|
|
350
|
-
let e =
|
|
351
|
-
if ((d.errorCode ||
|
|
353
|
+
let e = re(f.error) || (typeof f.message == "string" ? f.message : "") || d.error || "Order creation failed";
|
|
354
|
+
if ((d.errorCode || ie(f.error)) === "QUEUE_REQUIRED") return {
|
|
352
355
|
success: !1,
|
|
353
356
|
error: e,
|
|
354
357
|
errorType: "queue"
|
|
@@ -360,7 +363,7 @@ async function ae(e = {}, t) {
|
|
|
360
363
|
errorType: t.includes("inventory") || t.includes("sold out") || t.includes("not available") || t.includes("insufficient") || d.statusCode === 409 ? "inventory" : "server"
|
|
361
364
|
};
|
|
362
365
|
}
|
|
363
|
-
return
|
|
366
|
+
return ee(f.uuid || f.cartUUID), {
|
|
364
367
|
success: !0,
|
|
365
368
|
uuid: f.uuid || f.cartUUID,
|
|
366
369
|
serviceFee: f.serviceFee ?? 0,
|
|
@@ -375,7 +378,7 @@ async function ae(e = {}, t) {
|
|
|
375
378
|
};
|
|
376
379
|
}
|
|
377
380
|
}
|
|
378
|
-
async function
|
|
381
|
+
async function se(e) {
|
|
379
382
|
try {
|
|
380
383
|
let n = await o(`/orders/${e}`);
|
|
381
384
|
if (!n.success) {
|
|
@@ -392,14 +395,14 @@ async function oe(e) {
|
|
|
392
395
|
}
|
|
393
396
|
//#endregion
|
|
394
397
|
//#region src/lib/utils/utm.ts
|
|
395
|
-
var
|
|
396
|
-
async function
|
|
398
|
+
var ce = e("utm");
|
|
399
|
+
async function le(e) {
|
|
397
400
|
let t = new URLSearchParams(window.location.search), r = s(t.get("utm_source")) || "direct";
|
|
398
401
|
try {
|
|
399
402
|
await fetch(`${n()}/utm/${e}/${encodeURIComponent(r)}`);
|
|
400
403
|
} catch (e) {
|
|
401
|
-
|
|
404
|
+
ce.error("UTM tracking failed:", e);
|
|
402
405
|
}
|
|
403
406
|
}
|
|
404
407
|
//#endregion
|
|
405
|
-
export {
|
|
408
|
+
export { h as C, m as S, A as _, Y as a, M as b, ne as c, k as d, N as f, D as g, T as h, $ as i, C as l, te as m, se as n, Z as o, R as p, oe as r, X as s, le as t, w as u, j as v, p as w, L as x, I as y };
|