@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,5 +1,5 @@
|
|
|
1
1
|
import { C as e, O as t, S as n, T as r, _ as i, b as a } from "./Button-klwKgfhG.js";
|
|
2
|
-
import { x as o } from "./scarcity-
|
|
2
|
+
import { x as o } from "./scarcity-Dgvp7aCF.js";
|
|
3
3
|
import { d as s, n as c, r as l } from "./z-index-BgKs9X9U.js";
|
|
4
4
|
import { t as u } from "./RequiredIndicator-CYcnRFsA.js";
|
|
5
5
|
import "svelte/internal/disclose-version";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as e } from "./scarcity-
|
|
1
|
+
import { q as e } from "./scarcity-Dgvp7aCF.js";
|
|
2
2
|
import "svelte/internal/disclose-version";
|
|
3
3
|
import * as t from "svelte/internal/client";
|
|
4
4
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/DownloadIcon.svelte
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { O as e } from "./Button-klwKgfhG.js";
|
|
2
|
-
import { t } from "./Input-
|
|
2
|
+
import { t } from "./Input-Bpq_mV4s.js";
|
|
3
3
|
import { d as n, n as r, r as i } from "./z-index-BgKs9X9U.js";
|
|
4
4
|
import { t as a } from "./lazyOnce-CCfEO1xG.js";
|
|
5
5
|
import "svelte/internal/disclose-version";
|
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import { i as e, p as t, q as n } from "./scarcity-
|
|
2
|
-
import { t as r } from "./copyToClipboard-
|
|
3
|
-
import {
|
|
4
|
-
import { I as c, R as l } from "./orders-
|
|
5
|
-
import { c as u, i as d, s as f, t as p } from "./to-event-card-props-
|
|
1
|
+
import { i as e, p as t, q as n } from "./scarcity-Dgvp7aCF.js";
|
|
2
|
+
import { t as r } from "./copyToClipboard-CX0-qsMi.js";
|
|
3
|
+
import { A as i, C as a, g as o, x as s } from "./defaultLabels-BgBbv_Mu.js";
|
|
4
|
+
import { I as c, R as l } from "./orders-BQRru8sl.js";
|
|
5
|
+
import { c as u, i as d, s as f, t as p } from "./to-event-card-props-djxhqexI.js";
|
|
6
6
|
import { t as m } from "./Heading-D6bWtGZA.js";
|
|
7
|
-
import { d as h, l as g } from "./navigation-
|
|
8
|
-
import {
|
|
7
|
+
import { d as h, l as g } from "./navigation-Dh-hGmN9.js";
|
|
8
|
+
import { O as _ } from "./api-DxEN4thz.js";
|
|
9
|
+
import { t as v } from "./venue-CBos8YTa.js";
|
|
9
10
|
import "svelte/internal/disclose-version";
|
|
10
|
-
import * as
|
|
11
|
+
import * as y from "svelte/internal/client";
|
|
11
12
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ExportIcon.svelte
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
let r =
|
|
16
|
-
var c =
|
|
13
|
+
var b = y.from_svg("<path d=\"M216,112v96a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V112A16,16,0,0,1,56,96h64v48a8,8,0,0,0,16,0V96h64A16,16,0,0,1,216,112ZM136,43.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,69.66L120,43.31V96h16Z\"></path>"), x = y.from_svg("<path d=\"M176,104h24a8,8,0,0,1,8,8v96a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H80\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path><polyline points=\"88 64 128 24 168 64\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></polyline><line x1=\"128\" y1=\"24\" x2=\"128\" y2=\"136\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line>", 1), S = y.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
|
|
14
|
+
function C(e, t) {
|
|
15
|
+
y.push(t, !0);
|
|
16
|
+
let r = y.prop(t, "size", 3, "24"), i = y.prop(t, "color", 3, "currentColor"), a = y.prop(t, "class", 3, ""), o = n(), s = y.derived(() => t.weight ?? o?.weight ?? "regular");
|
|
17
|
+
var c = S();
|
|
17
18
|
let l;
|
|
18
|
-
var u =
|
|
19
|
-
var t = y();
|
|
20
|
-
v.append(e, t);
|
|
21
|
-
}, f = (e) => {
|
|
19
|
+
var u = y.child(c), d = (e) => {
|
|
22
20
|
var t = b();
|
|
23
|
-
|
|
21
|
+
y.append(e, t);
|
|
22
|
+
}, f = (e) => {
|
|
23
|
+
var t = x();
|
|
24
|
+
y.next(2), y.append(e, t);
|
|
24
25
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}),
|
|
28
|
-
|
|
29
|
-
}),
|
|
26
|
+
y.if(u, (e) => {
|
|
27
|
+
y.get(s) === "fill" ? e(d) : e(f, -1);
|
|
28
|
+
}), y.reset(c), y.template_effect(() => {
|
|
29
|
+
y.set_class(c, 0, y.clsx(a())), y.set_attribute(c, "width", r()), y.set_attribute(c, "height", r()), l = y.set_style(c, "", l, { color: i() === "currentColor" ? void 0 : i() });
|
|
30
|
+
}), y.append(e, c), y.pop();
|
|
30
31
|
}
|
|
31
32
|
//#endregion
|
|
32
33
|
//#region src/lib/api/transformers/address.ts
|
|
33
|
-
function
|
|
34
|
+
function w(e) {
|
|
34
35
|
if (!e) return [];
|
|
35
36
|
let t = e.split(",").map((e) => e.trim());
|
|
36
37
|
if (t.length < 2) return [e];
|
|
@@ -41,17 +42,17 @@ function C(e) {
|
|
|
41
42
|
}
|
|
42
43
|
return [t[0], t.slice(1).join(", ")];
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
+
function T(e) {
|
|
45
46
|
return e ? `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e)}` : "";
|
|
46
47
|
}
|
|
47
48
|
//#endregion
|
|
48
49
|
//#region src/lib/api/transformers/faq.ts
|
|
49
|
-
var
|
|
50
|
-
function
|
|
50
|
+
var E = "FAQ", D = 40, O = /^q\s*[:.)-]\s*/i, k = /^a\s*[:.)-]\s*/i;
|
|
51
|
+
function A(e) {
|
|
51
52
|
if (Array.isArray(e)) return e.map((e) => ({
|
|
52
53
|
question: String(e?.question ?? "").trim(),
|
|
53
54
|
answer: String(e?.answer ?? "").trim()
|
|
54
|
-
})).filter((e) => e.question || e.answer).slice(0,
|
|
55
|
+
})).filter((e) => e.question || e.answer).slice(0, D);
|
|
55
56
|
if (typeof e != "string") return [];
|
|
56
57
|
let t = e.trim();
|
|
57
58
|
if (!t) return [];
|
|
@@ -59,33 +60,33 @@ function k(e) {
|
|
|
59
60
|
if (n.length === 0) return [];
|
|
60
61
|
let r = [], i = null;
|
|
61
62
|
for (let e of n) {
|
|
62
|
-
let t =
|
|
63
|
+
let t = O.test(e), n = k.test(e);
|
|
63
64
|
if (t || !n && e.endsWith("?")) {
|
|
64
65
|
i && r.push(i), i = {
|
|
65
|
-
question: e.replace(
|
|
66
|
+
question: e.replace(O, "").trim(),
|
|
66
67
|
answer: ""
|
|
67
68
|
};
|
|
68
69
|
continue;
|
|
69
70
|
}
|
|
70
|
-
let a = e.replace(
|
|
71
|
+
let a = e.replace(k, "").trim();
|
|
71
72
|
if (!i) {
|
|
72
73
|
i = {
|
|
73
|
-
question:
|
|
74
|
+
question: E,
|
|
74
75
|
answer: a
|
|
75
76
|
};
|
|
76
77
|
continue;
|
|
77
78
|
}
|
|
78
79
|
i.answer = i.answer ? `${i.answer}\n${a}` : a;
|
|
79
80
|
}
|
|
80
|
-
return i && r.push(i), r.some((e) => e.question !==
|
|
81
|
-
question:
|
|
81
|
+
return i && r.push(i), r.some((e) => e.question !== E) ? r.filter((e) => e.question || e.answer).slice(0, D) : [{
|
|
82
|
+
question: E,
|
|
82
83
|
answer: n.join("\n")
|
|
83
84
|
}];
|
|
84
85
|
}
|
|
85
86
|
//#endregion
|
|
86
87
|
//#region src/lib/api/transformers/series.ts
|
|
87
|
-
function
|
|
88
|
-
let n = t, r =
|
|
88
|
+
function j(t) {
|
|
89
|
+
let n = t, r = a(t.timeZone || n.timezone || n.time_zone || "UTC"), i = h(t.image || "", { cdn: !0 }), o = (t.occurrences || []).map((e) => {
|
|
89
90
|
let t = e.venue, n = t ? [t.name, t.stageName].filter(Boolean).join(" — ") : "", r = t ? t.googleLocationNameCache || [
|
|
90
91
|
t.address,
|
|
91
92
|
t.city,
|
|
@@ -102,7 +103,7 @@ function A(t) {
|
|
|
102
103
|
...n ? { venueName: n } : {},
|
|
103
104
|
...r ? { venueAddress: r } : {}
|
|
104
105
|
};
|
|
105
|
-
}),
|
|
106
|
+
}), s = t.occurrences?.[0], c = s?.startDateTime ? e(s.startDateTime, r) : "", l = A(t.venue?.faq), u = (t.performers || []).map((e, t) => ({
|
|
106
107
|
id: t + 1,
|
|
107
108
|
displayName: e.displayName || [e.firstName, e.lastName].filter(Boolean).join(" "),
|
|
108
109
|
profileImage: e.profileImage || void 0
|
|
@@ -113,8 +114,8 @@ function A(t) {
|
|
|
113
114
|
slug: "",
|
|
114
115
|
description: t.description || t.eventSummary || "",
|
|
115
116
|
date: c,
|
|
116
|
-
startDateTime:
|
|
117
|
-
endDateTime:
|
|
117
|
+
startDateTime: s?.startDateTime || "",
|
|
118
|
+
endDateTime: s?.endDateTime || "",
|
|
118
119
|
doorsOpenTime: "",
|
|
119
120
|
timezone: r,
|
|
120
121
|
imageUrl: i,
|
|
@@ -131,28 +132,29 @@ function A(t) {
|
|
|
131
132
|
tickets: [],
|
|
132
133
|
faqs: l,
|
|
133
134
|
disclaimer: t.venue?.disclaimer || void 0,
|
|
134
|
-
...
|
|
135
|
+
...v(t.venue),
|
|
135
136
|
status: "on_sale",
|
|
136
137
|
eventSeriesId: t.id,
|
|
137
|
-
seriesOccurrences:
|
|
138
|
+
seriesOccurrences: o,
|
|
138
139
|
isPasswordProtected: !1,
|
|
139
140
|
isRegistrationEvent: !1,
|
|
140
141
|
totalTicketsRemaining: 0,
|
|
141
142
|
totalTicketsCapacity: 0,
|
|
142
|
-
venueAddressLines:
|
|
143
|
-
googleMapsUrl:
|
|
143
|
+
venueAddressLines: w(d),
|
|
144
|
+
googleMapsUrl: T(d)
|
|
144
145
|
};
|
|
145
146
|
}
|
|
146
147
|
//#endregion
|
|
147
148
|
//#region src/lib/api/transformers/collection.ts
|
|
148
|
-
function
|
|
149
|
+
function M(e) {
|
|
149
150
|
let t = (e.events || []).map((e) => ({
|
|
150
151
|
id: e.id,
|
|
151
152
|
name: e.title || "",
|
|
152
153
|
slug: e.slug || "",
|
|
153
154
|
image: h(e.image || "", { cdn: !0 }),
|
|
154
155
|
startDateTime: e.startDateTime || "",
|
|
155
|
-
status: e.status || "on_sale"
|
|
156
|
+
status: e.status || "on_sale",
|
|
157
|
+
timezone: e.timeZone || e.timezone || e.venue?.timeZone || e.venue?.timezone || ""
|
|
156
158
|
})), n = h(e.coverImage || "", { cdn: !0 });
|
|
157
159
|
return {
|
|
158
160
|
id: e.id,
|
|
@@ -188,15 +190,15 @@ function j(e) {
|
|
|
188
190
|
}
|
|
189
191
|
//#endregion
|
|
190
192
|
//#region src/lib/public-calendar-flow/transform.ts
|
|
191
|
-
function
|
|
192
|
-
let t = i(), n = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity ?? 0, r = e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart,
|
|
193
|
+
function N(e) {
|
|
194
|
+
let t = i(), n = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity ?? 0, r = e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart, a = e.salesEnd || e.saleEnd || e.onSaleEnd;
|
|
193
195
|
if (n <= 0) return "sold_out";
|
|
194
|
-
let c = a
|
|
196
|
+
let c = s(a);
|
|
195
197
|
if (c && o(c, t) < 0) return "sales_ended";
|
|
196
|
-
let l =
|
|
198
|
+
let l = s(r);
|
|
197
199
|
return l && o(l, t) > 0 ? "coming_soon" : "on_sale";
|
|
198
200
|
}
|
|
199
|
-
function
|
|
201
|
+
function P(e, t, n = !1) {
|
|
200
202
|
let r = (e || "").toLowerCase().replace(/\s+/g, "_");
|
|
201
203
|
if (r === "cancelled" || r === "canceled") return "cancelled";
|
|
202
204
|
if (r === "postponed") return "postponed";
|
|
@@ -210,8 +212,8 @@ function N(e, t, n = !1) {
|
|
|
210
212
|
}
|
|
211
213
|
return r === "sold_out" || r === "soldout" ? "sold_out" : r === "coming_soon" || r === "comingsoon" ? "coming_soon" : r === "sales_ended" || r === "salesended" ? "sales_ended" : "on_sale";
|
|
212
214
|
}
|
|
213
|
-
function
|
|
214
|
-
let r = g(n), i = r.venue || {},
|
|
215
|
+
function F(n) {
|
|
216
|
+
let r = g(n), i = r.venue || {}, o = a(r.timeZone || r.timezone || i.timeZone || i.timezone || "UTC"), s = (n.availableTickets || []).map((e) => ({
|
|
215
217
|
id: e.id || e.ID,
|
|
216
218
|
name: e.name || e.title || "",
|
|
217
219
|
description: e.description || void 0,
|
|
@@ -221,28 +223,28 @@ function P(n) {
|
|
|
221
223
|
quantityTotal: e.totalCapacity ?? e.quantity ?? 0,
|
|
222
224
|
minPerOrder: e.minPerOrder ?? e.minQuantity ?? 1,
|
|
223
225
|
maxPerOrder: e.maxPerOrder ?? e.maxQuantity ?? 10,
|
|
224
|
-
status:
|
|
226
|
+
status: N(e),
|
|
225
227
|
salesStartDate: e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart || void 0,
|
|
226
228
|
salesEndDate: e.salesEnd || e.saleEnd || e.onSaleEnd || void 0,
|
|
227
229
|
isDonation: e.type === 2 || e.ticketType === 2 || e.isDonation === !0,
|
|
228
|
-
isHidden: e.
|
|
230
|
+
isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= _.HIDDEN,
|
|
229
231
|
ticketType: e.type || e.ticketType || void 0,
|
|
230
232
|
sectionName: e.sectionName || e.section || void 0
|
|
231
|
-
})), c =
|
|
233
|
+
})), c = s.filter((e) => !e.isHidden && !e.isDonation && e.status === "on_sale"), l = c.reduce((e, t) => e + t.quantityAvailable, 0), u = c.reduce((e, t) => e + t.quantityTotal, 0), d = n.hasPurchasableHiddenTickets === !0, f = P(r.status, s, d), p = n.image || n.imageUrl || n.image_url || "", m = p.startsWith("http") ? p : h(p, { cdn: !0 }), y = {
|
|
232
234
|
id: i.id || i.ID || 0,
|
|
233
235
|
name: i.name || i.googleLocationNameCache || "",
|
|
234
236
|
address: i.address || i.googleLocationNameCache || "",
|
|
235
|
-
timezone:
|
|
237
|
+
timezone: o,
|
|
236
238
|
serviceFeePercentage: i.serviceFeePercentage ?? i.fee ?? 0,
|
|
237
239
|
serviceFeeCents: i.serviceFeeCents == null ? 0 : i.serviceFeeCents,
|
|
238
240
|
taxPercentage: i.taxPercentage ?? i.tax ?? 0,
|
|
239
241
|
contactEmail: i.contactEmail || i.email || void 0
|
|
240
|
-
},
|
|
242
|
+
}, b = (r.performers || []).map((e) => ({
|
|
241
243
|
id: e.id || e.ID,
|
|
242
244
|
displayName: e.displayName || e.name || "",
|
|
243
245
|
profileImage: e.avatar || e.profileImage || void 0,
|
|
244
246
|
role: e.role || void 0
|
|
245
|
-
})),
|
|
247
|
+
})), x = r.faqs ? A(r.faqs) : A(i.faq), S = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
|
|
246
248
|
id: e.id ?? e.eventId ?? t + 1,
|
|
247
249
|
slug: e.slug || "",
|
|
248
250
|
startDateTime: e.startDateTime || e.startTime || "",
|
|
@@ -250,30 +252,30 @@ function P(n) {
|
|
|
250
252
|
status: e.ctaState?.reason === "sold_out" ? "sold_out" : "on_sale",
|
|
251
253
|
ctaText: e.ctaState?.text || "Get tickets",
|
|
252
254
|
ctaDisabled: e.ctaState?.disabled || !1
|
|
253
|
-
})),
|
|
255
|
+
})), C = r.startDateTime ? e(r.startDateTime, o) : "";
|
|
254
256
|
return {
|
|
255
257
|
id: r.id,
|
|
256
258
|
title: r.title || "",
|
|
257
259
|
slug: r.slug || "",
|
|
258
260
|
description: r.description || r.eventSummary || "",
|
|
259
|
-
date:
|
|
261
|
+
date: C,
|
|
260
262
|
startDateTime: r.startDateTime || "",
|
|
261
263
|
endDateTime: r.endDateTime || "",
|
|
262
264
|
doorsOpenTime: r.doorsOpenTime || "",
|
|
263
|
-
timezone:
|
|
265
|
+
timezone: o,
|
|
264
266
|
imageUrl: m,
|
|
265
|
-
venue:
|
|
266
|
-
performers:
|
|
267
|
-
tickets:
|
|
267
|
+
venue: y,
|
|
268
|
+
performers: b,
|
|
269
|
+
tickets: s,
|
|
268
270
|
...Array.isArray(n.addOns) && n.addOns.length > 0 ? { addOns: n.addOns } : {},
|
|
269
|
-
faqs:
|
|
271
|
+
faqs: x,
|
|
270
272
|
disclaimer: r.disclaimer || i.disclaimer || void 0,
|
|
271
|
-
...
|
|
273
|
+
...v(i),
|
|
272
274
|
status: f,
|
|
273
275
|
salesStatus: r.salesStatus || void 0,
|
|
274
276
|
...d ? { hasPurchasableHiddenTickets: !0 } : {},
|
|
275
277
|
eventSeriesId: r.eventSeriesId || void 0,
|
|
276
|
-
seriesOccurrences:
|
|
278
|
+
seriesOccurrences: S.length ? S : void 0,
|
|
277
279
|
isPasswordProtected: r.hasPassword === !0 || !!r.password,
|
|
278
280
|
isRegistrationEvent: r.ticketType === 1 || r.eventTicketingType === 1,
|
|
279
281
|
totalTicketsRemaining: l,
|
|
@@ -288,19 +290,19 @@ function P(n) {
|
|
|
288
290
|
summary: r.eventSummary || void 0,
|
|
289
291
|
postSalesMessage: r.postSalesMessage || void 0,
|
|
290
292
|
collectionId: r.collectionId || void 0,
|
|
291
|
-
venueAddressLines:
|
|
292
|
-
googleMapsUrl:
|
|
293
|
+
venueAddressLines: w(i.address || i.googleLocationNameCache || ""),
|
|
294
|
+
googleMapsUrl: T(i.address || i.googleLocationNameCache || "")
|
|
293
295
|
};
|
|
294
296
|
}
|
|
295
|
-
function F(e) {
|
|
296
|
-
return A(e);
|
|
297
|
-
}
|
|
298
297
|
function I(e) {
|
|
299
298
|
return j(e);
|
|
300
299
|
}
|
|
300
|
+
function L(e) {
|
|
301
|
+
return M(e);
|
|
302
|
+
}
|
|
301
303
|
//#endregion
|
|
302
304
|
//#region src/lib/public-calendar-flow/shareEventLink.ts
|
|
303
|
-
async function
|
|
305
|
+
async function R(e) {
|
|
304
306
|
if (typeof navigator < "u" && typeof navigator.share == "function") try {
|
|
305
307
|
return await navigator.share({ url: e }), "shared";
|
|
306
308
|
} catch (e) {
|
|
@@ -310,21 +312,21 @@ async function L(e) {
|
|
|
310
312
|
}
|
|
311
313
|
//#endregion
|
|
312
314
|
//#region src/lib/public-calendar-flow/shareCopyFeedback.svelte.ts
|
|
313
|
-
function
|
|
314
|
-
let e =
|
|
315
|
+
function z() {
|
|
316
|
+
let e = y.state("idle"), t = y.state(""), n;
|
|
315
317
|
async function r(r) {
|
|
316
|
-
let i = await
|
|
317
|
-
i === "copied" ? (
|
|
318
|
+
let i = await R(r);
|
|
319
|
+
i === "copied" ? (y.set(t, ""), y.set(e, "copied"), clearTimeout(n), n = setTimeout(() => y.set(e, "idle"), 2500)) : i === "failed" && (clearTimeout(n), y.set(e, "failed"), y.set(t, r, !0));
|
|
318
320
|
}
|
|
319
321
|
function i() {
|
|
320
322
|
clearTimeout(n);
|
|
321
323
|
}
|
|
322
324
|
return {
|
|
323
325
|
get copyState() {
|
|
324
|
-
return
|
|
326
|
+
return y.get(e);
|
|
325
327
|
},
|
|
326
328
|
get copyFailedUrl() {
|
|
327
|
-
return
|
|
329
|
+
return y.get(t);
|
|
328
330
|
},
|
|
329
331
|
share: r,
|
|
330
332
|
dispose: i
|
|
@@ -332,12 +334,12 @@ function R() {
|
|
|
332
334
|
}
|
|
333
335
|
//#endregion
|
|
334
336
|
//#region src/lib/api/recommendations.ts
|
|
335
|
-
async function
|
|
337
|
+
async function B(e, t = "event_page", n) {
|
|
336
338
|
return e ? (await l(`${c()}/events/${e}/recommendations?surface=${t}`, { widgetKey: n }))?.recommendations ?? [] : [];
|
|
337
339
|
}
|
|
338
340
|
//#endregion
|
|
339
341
|
//#region src/lib/public-calendar-flow/recommendation-cards.ts
|
|
340
|
-
function
|
|
342
|
+
function V(t) {
|
|
341
343
|
return t.filter((e) => !!e.startsAt).map((t) => ({
|
|
342
344
|
eventID: t.eventId,
|
|
343
345
|
name: t.title,
|
|
@@ -353,19 +355,19 @@ function B(t) {
|
|
|
353
355
|
}
|
|
354
356
|
//#endregion
|
|
355
357
|
//#region src/lib/public-calendar-flow/RecommendationsRail.svelte
|
|
356
|
-
var
|
|
357
|
-
function
|
|
358
|
-
|
|
359
|
-
let n =
|
|
360
|
-
|
|
358
|
+
var H = y.from_html("<span class=\"self-start rounded-full bg-status-info-bg px-2 py-0.5 text-status-info-text\" data-testid=\"recommendation-why\"> </span>"), U = y.from_html("<div class=\"flex flex-col gap-2\"><!> <!></div>"), W = y.from_html("<section data-testid=\"recommendations-rail\"><div class=\"mb-4\"><!></div> <!></section>");
|
|
359
|
+
function G(e, t) {
|
|
360
|
+
y.push(t, !0);
|
|
361
|
+
let n = y.prop(t, "surface", 3, "event_page"), r = y.prop(t, "locale", 3, "en"), i = y.state(y.proxy([]));
|
|
362
|
+
y.user_effect(() => {
|
|
361
363
|
let e = t.eventId, r = !0;
|
|
362
|
-
return
|
|
363
|
-
r && e === t.eventId &&
|
|
364
|
+
return B(e, n(), t.widgetKey).then((n) => {
|
|
365
|
+
r && e === t.eventId && y.set(i, n, !0);
|
|
364
366
|
}), () => {
|
|
365
367
|
r = !1;
|
|
366
368
|
};
|
|
367
369
|
});
|
|
368
|
-
let a =
|
|
370
|
+
let a = y.derived(() => d(V(y.get(i))));
|
|
369
371
|
function o(e) {
|
|
370
372
|
let n = s(e);
|
|
371
373
|
if (!n) return "";
|
|
@@ -379,7 +381,7 @@ function W(e, t) {
|
|
|
379
381
|
}
|
|
380
382
|
}
|
|
381
383
|
function s(e) {
|
|
382
|
-
return
|
|
384
|
+
return y.get(i).find((t) => t.eventId === e.eventID);
|
|
383
385
|
}
|
|
384
386
|
function c(e) {
|
|
385
387
|
let n = s(e)?.url;
|
|
@@ -389,57 +391,57 @@ function W(e, t) {
|
|
|
389
391
|
}
|
|
390
392
|
t.onselect?.(e);
|
|
391
393
|
}
|
|
392
|
-
var l =
|
|
393
|
-
var n =
|
|
394
|
+
var l = y.comment(), h = y.first_child(l), g = (e) => {
|
|
395
|
+
var n = W(), i = y.child(n), s = y.child(i);
|
|
394
396
|
m(s, {
|
|
395
397
|
size: "xl",
|
|
396
398
|
weight: "semibold",
|
|
397
399
|
children: (e, n) => {
|
|
398
|
-
|
|
399
|
-
var r =
|
|
400
|
-
|
|
400
|
+
y.next();
|
|
401
|
+
var r = y.text();
|
|
402
|
+
y.template_effect(() => y.set_text(r, t.labels.recommendationsHeading)), y.append(e, r);
|
|
401
403
|
},
|
|
402
404
|
$$slots: { default: !0 }
|
|
403
|
-
}),
|
|
404
|
-
var l =
|
|
405
|
+
}), y.reset(i);
|
|
406
|
+
var l = y.sibling(i, 2);
|
|
405
407
|
u(l, {
|
|
406
408
|
cols: "auto",
|
|
407
409
|
minWidth: "240px",
|
|
408
410
|
gap: "6",
|
|
409
411
|
children: (e, n) => {
|
|
410
|
-
var i =
|
|
411
|
-
|
|
412
|
-
let i =
|
|
413
|
-
let { pillEvents: e, ...i } = p(
|
|
412
|
+
var i = y.comment(), s = y.first_child(i);
|
|
413
|
+
y.each(s, 17, () => y.get(a), (e) => e.event.eventID, (e, n) => {
|
|
414
|
+
let i = y.derived(() => {
|
|
415
|
+
let { pillEvents: e, ...i } = p(y.get(n), t.labels, r());
|
|
414
416
|
return {
|
|
415
417
|
_pillEvents: e,
|
|
416
418
|
card: i
|
|
417
419
|
};
|
|
418
420
|
});
|
|
419
|
-
var a =
|
|
420
|
-
f(s,
|
|
421
|
+
var a = U(), s = y.child(a);
|
|
422
|
+
f(s, y.spread_props(() => y.get(i).card, {
|
|
421
423
|
layout: "vertical",
|
|
422
424
|
density: "standard",
|
|
423
425
|
get placeholderImage() {
|
|
424
426
|
return t.placeholderImage;
|
|
425
427
|
},
|
|
426
|
-
onclick: () => c(
|
|
428
|
+
onclick: () => c(y.get(n).event)
|
|
427
429
|
}));
|
|
428
|
-
var l =
|
|
429
|
-
var t =
|
|
430
|
-
|
|
431
|
-
}, d =
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
}),
|
|
435
|
-
}),
|
|
430
|
+
var l = y.sibling(s, 2), u = (e) => {
|
|
431
|
+
var t = H(), r = y.child(t, !0);
|
|
432
|
+
y.reset(t), y.template_effect((e) => y.set_text(r, e), [() => o(y.get(n).event)]), y.append(e, t);
|
|
433
|
+
}, d = y.derived(() => o(y.get(n).event));
|
|
434
|
+
y.if(l, (e) => {
|
|
435
|
+
y.get(d) && e(u);
|
|
436
|
+
}), y.reset(a), y.append(e, a);
|
|
437
|
+
}), y.append(e, i);
|
|
436
438
|
},
|
|
437
439
|
$$slots: { default: !0 }
|
|
438
|
-
}),
|
|
440
|
+
}), y.reset(n), y.append(e, n);
|
|
439
441
|
};
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
}),
|
|
442
|
+
y.if(h, (e) => {
|
|
443
|
+
y.get(a).length > 0 && e(g);
|
|
444
|
+
}), y.append(e, l), y.pop();
|
|
443
445
|
}
|
|
444
446
|
//#endregion
|
|
445
|
-
export {
|
|
447
|
+
export { I as a, L as i, z as n, C as o, F as r, G as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "./WarningCircleIcon-
|
|
2
|
-
import { n as t, q as n } from "./scarcity-
|
|
1
|
+
import { t as e } from "./WarningCircleIcon-u-Y8M0N1.js";
|
|
2
|
+
import { n as t, q as n } from "./scarcity-Dgvp7aCF.js";
|
|
3
3
|
import { t as r } from "./Badge-n7TfNjln.js";
|
|
4
|
-
import { t as i } from "./defaultLabels-
|
|
4
|
+
import { t as i } from "./defaultLabels-BgBbv_Mu.js";
|
|
5
5
|
import { r as a } from "./__SKIP_PATHS__-BQgiZG5h.js";
|
|
6
6
|
import "svelte/internal/disclose-version";
|
|
7
7
|
import * as o from "svelte/internal/client";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as e } from "./Button-klwKgfhG.js";
|
|
2
|
-
import { t } from "./Event-
|
|
3
|
-
import { a as n } from "./RecommendationsRail-
|
|
4
|
-
import { n as r } from "./ScarcityBadge-
|
|
2
|
+
import { t } from "./Event-BupNYi0B.js";
|
|
3
|
+
import { a as n } from "./RecommendationsRail-CYvrLLwk.js";
|
|
4
|
+
import { n as r } from "./ScarcityBadge-D1IzCyTk.js";
|
|
5
5
|
import { t as i } from "./__SKIP_PATHS__-BQgiZG5h.js";
|
|
6
6
|
import "svelte/internal/disclose-version";
|
|
7
7
|
import * as a from "svelte/internal/client";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { E as e } from "./Button-klwKgfhG.js";
|
|
2
|
-
import { l as t, q as n, r } from "./scarcity-
|
|
3
|
-
import { t as i } from "./ArrowLeftIcon-
|
|
4
|
-
import { t as a } from "./CalendarIcon-
|
|
5
|
-
import { t as o } from "./ChevronDownIcon-
|
|
6
|
-
import { n as s, t as c } from "./MailIcon-
|
|
7
|
-
import { n as l, o as u, r as d, t as f } from "./RecommendationsRail-
|
|
8
|
-
import { n as p } from "./copyToClipboard-
|
|
9
|
-
import {
|
|
10
|
-
import { B as _, J as v, Q as y, X as b, g as x, s as S } from "./orders-
|
|
2
|
+
import { l as t, q as n, r } from "./scarcity-Dgvp7aCF.js";
|
|
3
|
+
import { t as i } from "./ArrowLeftIcon-BEoyQzGt.js";
|
|
4
|
+
import { t as a } from "./CalendarIcon-DxOagkl5.js";
|
|
5
|
+
import { t as o } from "./ChevronDownIcon-DIQAmQyH.js";
|
|
6
|
+
import { n as s, t as c } from "./MailIcon-Wrsqe_uW.js";
|
|
7
|
+
import { n as l, o as u, r as d, t as f } from "./RecommendationsRail-CYvrLLwk.js";
|
|
8
|
+
import { n as p } from "./copyToClipboard-CX0-qsMi.js";
|
|
9
|
+
import { U as m, V as h, i as g } from "./defaultLabels-BgBbv_Mu.js";
|
|
10
|
+
import { B as _, J as v, Q as y, X as b, g as x, s as S } from "./orders-BQRru8sl.js";
|
|
11
11
|
import { n as C, t as w } from "./__SKIP_PATHS__-BQgiZG5h.js";
|
|
12
12
|
import { n as T, t as E } from "./Heading-D6bWtGZA.js";
|
|
13
13
|
import { t as D } from "./Text-CqjLjIF8.js";
|
|
14
|
-
import { a as O, o as k } from "./navigation-
|
|
15
|
-
import "./api-
|
|
16
|
-
import { c as A, r as j } from "./pixels-
|
|
17
|
-
import { i as M, n as N, t as P } from "./i18n-
|
|
18
|
-
import { n as ee, t as F } from "./i18n-
|
|
19
|
-
import {
|
|
20
|
-
import { n as B, t as te } from "./constants-
|
|
21
|
-
import { a as V, i as H, n as ne, o as re, r as U, s as W } from "./showcase-state-options-
|
|
14
|
+
import { a as O, o as k } from "./navigation-Dh-hGmN9.js";
|
|
15
|
+
import "./api-DxEN4thz.js";
|
|
16
|
+
import { c as A, r as j } from "./pixels-CAgpvPd8.js";
|
|
17
|
+
import { i as M, n as N, t as P } from "./i18n-CbpFLxO0.js";
|
|
18
|
+
import { n as ee, t as F } from "./i18n-BZAWUSFx.js";
|
|
19
|
+
import { C as I, d as L, l as R, n as z } from "./utils-CiFOOjQd.js";
|
|
20
|
+
import { n as B, t as te } from "./constants-DuFw4kZc.js";
|
|
21
|
+
import { a as V, i as H, n as ne, o as re, r as U, s as W } from "./showcase-state-options-DcNFRj34.js";
|
|
22
22
|
import { n as ie, t as ae } from "./buyerEmail-BfCq-gDt.js";
|
|
23
23
|
import "svelte/internal/disclose-version";
|
|
24
24
|
import * as G from "svelte/internal/client";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as e } from "./scarcity-
|
|
1
|
+
import { q as e } from "./scarcity-Dgvp7aCF.js";
|
|
2
2
|
import "svelte/internal/disclose-version";
|
|
3
3
|
import * as t from "svelte/internal/client";
|
|
4
4
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/TagIcon.svelte
|