@getmicdrop/venue-calendar 4.3.39 → 4.3.40
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-BMuyNOqe.js → ArrowLeftIcon-DahiD9EF.js} +1 -1
- package/dist/{BlockPlaceholder-CUusOhOf.js → BlockPlaceholder-BfbLTliy.js} +1 -1
- package/dist/{Calendar-Dy-jZDff.js → Calendar-CM-dDG7x.js} +13 -13
- package/dist/{CalendarFoundryView-BWyEe7Xe.js → CalendarFoundryView-Bv0EsOwe.js} +630 -612
- package/dist/{CalendarIcon-B1JasL-W.js → CalendarIcon-DOAS1a6F.js} +1 -1
- package/dist/{CartView-CyU9g9ss.js → CartView-CYJMgWS2.js} +615 -617
- package/dist/{Checkout-DrP1KLR_.js → Checkout-C8BrLSYw.js} +54 -54
- package/dist/{Checkout-BGXlW2j2.js → Checkout-D6GEwsKQ.js} +24 -24
- package/dist/{CheckoutTimer-CAKT63di.js → CheckoutTimer-DjaTq2_0.js} +2 -2
- package/dist/{ChevronDownIcon--mG1fNDx.js → ChevronDownIcon-CiYpE3Hq.js} +1 -1
- package/dist/{ClockIcon-B8ahXV8G.js → ClockIcon-BSlM7HM2.js} +1 -1
- package/dist/{CloseIcon-C9guTa4C.js → CloseIcon-ojn3Lny5.js} +1 -1
- package/dist/{CollectionView-BhBCM-01.js → CollectionView-BZuyx4kC.js} +5 -5
- package/dist/{Event-DyX1UrZe.js → Event-CqQ0yP-h.js} +87 -87
- package/dist/{EventPage-DxyEqU7R.js → EventPage-CMH2gocB.js} +9 -9
- package/dist/{Input-DNzDcf6I.js → Input-Ck0Q7LwW.js} +1 -1
- package/dist/{MailIcon-Cf77TYiB.js → MailIcon-CqCCKGgC.js} +1 -1
- package/dist/{PasswordInput-C-BH1Do3.js → PasswordInput-yTDvehkW.js} +1 -1
- package/dist/{RecommendationsRail-CG0vCtgJ.js → RecommendationsRail-CN_dtLWp.js} +131 -131
- package/dist/{ScarcityBadge-D0D6Hqp0.js → ScarcityBadge-BJrsvt6e.js} +8 -8
- package/dist/{SeriesPage-D9_Nn8gF.js → SeriesPage-B1bK_MeR.js} +3 -3
- package/dist/{Success-Db843hJe.js → Success-D8dgqzkd.js} +44 -44
- package/dist/{TagIcon-DUY8KSZ0.js → TagIcon-D_kSJfGZ.js} +1 -1
- package/dist/{WarningCircleIcon-C1-Aj9ut.js → WarningCircleIcon-DhNvSQag.js} +1 -1
- package/dist/{WarningTriIcon-BrwQ58VB.js → WarningTriIcon-V6pL3ERG.js} +1 -1
- package/dist/{api-DDVVRbC-.js → api-Di0gC83p.js} +1 -1
- package/dist/{constants-7hsFMWgp.js → constants-CQ8nJvPW.js} +1 -1
- package/dist/{copyToClipboard-4LAkJ_1y.js → copyToClipboard-zcPgoppJ.js} +1 -1
- package/dist/{event-transform-CbFR1hRl.js → event-transform-BpB65AAX.js} +4 -4
- package/dist/{href-B4azVXj-.js → href-B-lH1SYh.js} +1 -1
- package/dist/{i18n-srcm-H61.js → i18n-BpodazP1.js} +102 -102
- package/dist/{order-totals-DFE6UVG4.js → order-totals-iUg6d6MJ.js} +1 -1
- package/dist/{phoneUtils-CxLRaM5n.js → phoneUtils-BPEB92vB.js} +1 -1
- package/dist/{scarcity-DqbDh1cS.js → scarcity-CJ6IsR7f.js} +2 -11
- package/dist/{to-event-card-props-CRaeqRxY.js → to-event-card-props-Cr5Uq0Ef.js} +8 -8
- package/dist/{utils-kRsfuFcG.js → utils-CG0ZJ6gb.js} +1 -1
- package/dist/venue-calendar.es.js +59 -59
- package/dist/venue-calendar.iife.js +59 -59
- package/dist/venue-calendar.umd.js +56 -56
- package/package.json +2 -2
- /package/dist/locales/{4.3.39 → 4.3.40}/flow/de.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/flow/es.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/flow/id.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/flow/it.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/flow/zh.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/main/de.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/main/es.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/main/fr.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/main/id.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/main/it.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/main/ja.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/main/ko.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/main/nl.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/main/pl.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/main/pt-br.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/main/tr.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.40}/main/zh.js +0 -0
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as r } from "./copyToClipboard-
|
|
3
|
-
import { A as i, C as a, g as o,
|
|
4
|
-
import { B as
|
|
5
|
-
import { t as
|
|
6
|
-
import { c as
|
|
7
|
-
import { r as
|
|
8
|
-
import { z as
|
|
9
|
-
import { t as
|
|
1
|
+
import { K as e, f as t, i as n } from "./scarcity-CJ6IsR7f.js";
|
|
2
|
+
import { t as r } from "./copyToClipboard-zcPgoppJ.js";
|
|
3
|
+
import { A as i, C as a, g as o, k as s, x as c } from "./defaultLabels-BkjXKQDd.js";
|
|
4
|
+
import { B as l, R as u } from "./orders-DABdaHOy.js";
|
|
5
|
+
import { t as d } from "./Heading-D6bWtGZA.js";
|
|
6
|
+
import { c as f, i as p, s as m, t as h } from "./to-event-card-props-Cr5Uq0Ef.js";
|
|
7
|
+
import { r as g, t as _ } from "./event-Dew6DCL7.js";
|
|
8
|
+
import { z as v } from "./api-Di0gC83p.js";
|
|
9
|
+
import { t as y } from "./venue-CBos8YTa.js";
|
|
10
10
|
import "svelte/internal/disclose-version";
|
|
11
|
-
import * as
|
|
11
|
+
import * as b from "svelte/internal/client";
|
|
12
12
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ExportIcon.svelte
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
let r =
|
|
17
|
-
var c =
|
|
13
|
+
var x = b.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>"), S = b.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), C = b.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
|
|
14
|
+
function w(t, n) {
|
|
15
|
+
b.push(n, !0);
|
|
16
|
+
let r = b.prop(n, "size", 3, "24"), i = b.prop(n, "color", 3, "currentColor"), a = b.prop(n, "class", 3, ""), o = e(), s = b.derived(() => n.weight ?? o?.weight ?? "regular");
|
|
17
|
+
var c = C();
|
|
18
18
|
let l;
|
|
19
|
-
var u =
|
|
20
|
-
var t = b();
|
|
21
|
-
y.append(e, t);
|
|
22
|
-
}, f = (e) => {
|
|
19
|
+
var u = b.child(c), d = (e) => {
|
|
23
20
|
var t = x();
|
|
24
|
-
|
|
21
|
+
b.append(e, t);
|
|
22
|
+
}, f = (e) => {
|
|
23
|
+
var t = S();
|
|
24
|
+
b.next(2), b.append(e, t);
|
|
25
25
|
};
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}),
|
|
29
|
-
|
|
30
|
-
}),
|
|
26
|
+
b.if(u, (e) => {
|
|
27
|
+
b.get(s) === "fill" ? e(d) : e(f, -1);
|
|
28
|
+
}), b.reset(c), b.template_effect(() => {
|
|
29
|
+
b.set_class(c, 0, b.clsx(a())), b.set_attribute(c, "width", r()), b.set_attribute(c, "height", r()), l = b.set_style(c, "", l, { color: i() === "currentColor" ? void 0 : i() });
|
|
30
|
+
}), b.append(t, c), b.pop();
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/lib/api/transformers/address.ts
|
|
34
|
-
function
|
|
34
|
+
function T(e) {
|
|
35
35
|
if (!e) return [];
|
|
36
36
|
let t = e.split(",").map((e) => e.trim());
|
|
37
37
|
if (t.length < 2) return [e];
|
|
@@ -42,17 +42,17 @@ function w(e) {
|
|
|
42
42
|
}
|
|
43
43
|
return [t[0], t.slice(1).join(", ")];
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function E(e) {
|
|
46
46
|
return e ? `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e)}` : "";
|
|
47
47
|
}
|
|
48
48
|
//#endregion
|
|
49
49
|
//#region src/lib/api/transformers/faq.ts
|
|
50
|
-
var
|
|
51
|
-
function
|
|
50
|
+
var D = "FAQ", O = 40, k = /^q\s*[:.)-]\s*/i, A = /^a\s*[:.)-]\s*/i;
|
|
51
|
+
function j(e) {
|
|
52
52
|
if (Array.isArray(e)) return e.map((e) => ({
|
|
53
53
|
question: String(e?.question ?? "").trim(),
|
|
54
54
|
answer: String(e?.answer ?? "").trim()
|
|
55
|
-
})).filter((e) => e.question || e.answer).slice(0,
|
|
55
|
+
})).filter((e) => e.question || e.answer).slice(0, O);
|
|
56
56
|
if (typeof e != "string") return [];
|
|
57
57
|
let t = e.trim();
|
|
58
58
|
if (!t) return [];
|
|
@@ -60,33 +60,33 @@ function A(e) {
|
|
|
60
60
|
if (n.length === 0) return [];
|
|
61
61
|
let r = [], i = null;
|
|
62
62
|
for (let e of n) {
|
|
63
|
-
let t =
|
|
63
|
+
let t = k.test(e), n = A.test(e);
|
|
64
64
|
if (t || !n && e.endsWith("?")) {
|
|
65
65
|
i && r.push(i), i = {
|
|
66
|
-
question: e.replace(
|
|
66
|
+
question: e.replace(k, "").trim(),
|
|
67
67
|
answer: ""
|
|
68
68
|
};
|
|
69
69
|
continue;
|
|
70
70
|
}
|
|
71
|
-
let a = e.replace(
|
|
71
|
+
let a = e.replace(A, "").trim();
|
|
72
72
|
if (!i) {
|
|
73
73
|
i = {
|
|
74
|
-
question:
|
|
74
|
+
question: D,
|
|
75
75
|
answer: a
|
|
76
76
|
};
|
|
77
77
|
continue;
|
|
78
78
|
}
|
|
79
79
|
i.answer = i.answer ? `${i.answer}\n${a}` : a;
|
|
80
80
|
}
|
|
81
|
-
return i && r.push(i), r.some((e) => e.question !==
|
|
82
|
-
question:
|
|
81
|
+
return i && r.push(i), r.some((e) => e.question !== D) ? r.filter((e) => e.question || e.answer).slice(0, O) : [{
|
|
82
|
+
question: D,
|
|
83
83
|
answer: n.join("\n")
|
|
84
84
|
}];
|
|
85
85
|
}
|
|
86
86
|
//#endregion
|
|
87
87
|
//#region src/lib/api/transformers/series.ts
|
|
88
|
-
function
|
|
89
|
-
let
|
|
88
|
+
function M(e) {
|
|
89
|
+
let t = e, r = a(e.timeZone || t.timezone || t.time_zone), i = g(e.image || "", { cdn: !0 }), o = (e.occurrences || []).map((e) => {
|
|
90
90
|
let t = e.venue, n = t ? [t.name, t.stageName].filter(Boolean).join(" — ") : "", r = t ? t.googleLocationNameCache || [
|
|
91
91
|
t.address,
|
|
92
92
|
t.city,
|
|
@@ -103,16 +103,16 @@ function j(t) {
|
|
|
103
103
|
...n ? { venueName: n } : {},
|
|
104
104
|
...r ? { venueAddress: r } : {}
|
|
105
105
|
};
|
|
106
|
-
}), s =
|
|
106
|
+
}), s = e.occurrences?.[0], c = s?.startDateTime ? n(s.startDateTime, r) : "", l = j(e.venue?.faq), u = (e.performers || []).map((e, t) => ({
|
|
107
107
|
id: t + 1,
|
|
108
108
|
displayName: e.displayName || [e.firstName, e.lastName].filter(Boolean).join(" "),
|
|
109
109
|
profileImage: e.profileImage || void 0
|
|
110
|
-
})), d =
|
|
110
|
+
})), d = e.venue?.location || e.venue?.googleLocationNameCache || "";
|
|
111
111
|
return {
|
|
112
|
-
id:
|
|
113
|
-
title:
|
|
112
|
+
id: e.id,
|
|
113
|
+
title: e.title || "",
|
|
114
114
|
slug: "",
|
|
115
|
-
description:
|
|
115
|
+
description: e.description || e.eventSummary || "",
|
|
116
116
|
date: c,
|
|
117
117
|
startDateTime: s?.startDateTime || "",
|
|
118
118
|
endDateTime: s?.endDateTime || "",
|
|
@@ -120,8 +120,8 @@ function j(t) {
|
|
|
120
120
|
timezone: r,
|
|
121
121
|
imageUrl: i,
|
|
122
122
|
venue: {
|
|
123
|
-
id:
|
|
124
|
-
name:
|
|
123
|
+
id: e.venue?.id || 0,
|
|
124
|
+
name: e.venue?.name || "",
|
|
125
125
|
address: d,
|
|
126
126
|
timezone: r,
|
|
127
127
|
serviceFeePercentage: 0,
|
|
@@ -131,31 +131,31 @@ function j(t) {
|
|
|
131
131
|
performers: u,
|
|
132
132
|
tickets: [],
|
|
133
133
|
faqs: l,
|
|
134
|
-
disclaimer:
|
|
135
|
-
...
|
|
134
|
+
disclaimer: e.venue?.disclaimer || void 0,
|
|
135
|
+
...y(e.venue),
|
|
136
136
|
status: "on_sale",
|
|
137
|
-
eventSeriesId:
|
|
137
|
+
eventSeriesId: e.id,
|
|
138
138
|
seriesOccurrences: o,
|
|
139
139
|
isPasswordProtected: !1,
|
|
140
140
|
isRegistrationEvent: !1,
|
|
141
141
|
totalTicketsRemaining: 0,
|
|
142
142
|
totalTicketsCapacity: 0,
|
|
143
|
-
venueAddressLines:
|
|
144
|
-
googleMapsUrl:
|
|
143
|
+
venueAddressLines: T(d),
|
|
144
|
+
googleMapsUrl: E(d)
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
//#endregion
|
|
148
148
|
//#region src/lib/api/transformers/collection.ts
|
|
149
|
-
function
|
|
149
|
+
function N(e) {
|
|
150
150
|
let t = (e.events || []).map((e) => ({
|
|
151
151
|
id: e.id,
|
|
152
152
|
name: e.title || "",
|
|
153
153
|
slug: e.slug || "",
|
|
154
|
-
image:
|
|
154
|
+
image: g(e.image || "", { cdn: !0 }),
|
|
155
155
|
startDateTime: e.startDateTime || "",
|
|
156
156
|
status: e.status || "on_sale",
|
|
157
157
|
timezone: e.timeZone || e.timezone || e.venue?.timeZone || e.venue?.timezone || ""
|
|
158
|
-
})), n =
|
|
158
|
+
})), n = g(e.coverImage || "", { cdn: !0 });
|
|
159
159
|
return {
|
|
160
160
|
id: e.id,
|
|
161
161
|
title: e.collectionTitle || "",
|
|
@@ -165,13 +165,13 @@ function M(e) {
|
|
|
165
165
|
startDateTime: "",
|
|
166
166
|
endDateTime: "",
|
|
167
167
|
doorsOpenTime: "",
|
|
168
|
-
timezone:
|
|
168
|
+
timezone: s,
|
|
169
169
|
imageUrl: n,
|
|
170
170
|
venue: {
|
|
171
171
|
id: 0,
|
|
172
172
|
name: "",
|
|
173
173
|
address: "",
|
|
174
|
-
timezone:
|
|
174
|
+
timezone: s,
|
|
175
175
|
serviceFeePercentage: 0,
|
|
176
176
|
serviceFeeCents: 0,
|
|
177
177
|
taxPercentage: 0
|
|
@@ -190,15 +190,15 @@ function M(e) {
|
|
|
190
190
|
}
|
|
191
191
|
//#endregion
|
|
192
192
|
//#region src/lib/public-calendar-flow/transform.ts
|
|
193
|
-
function
|
|
193
|
+
function P(e) {
|
|
194
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;
|
|
195
195
|
if (n <= 0) return "sold_out";
|
|
196
|
-
let
|
|
197
|
-
if (
|
|
198
|
-
let l =
|
|
196
|
+
let s = c(a);
|
|
197
|
+
if (s && o(s, t) < 0) return "sales_ended";
|
|
198
|
+
let l = c(r);
|
|
199
199
|
return l && o(l, t) > 0 ? "coming_soon" : "on_sale";
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function F(e, t, n = !1) {
|
|
202
202
|
let r = (e || "").toLowerCase().replace(/\s+/g, "_");
|
|
203
203
|
if (r === "cancelled" || r === "canceled") return "cancelled";
|
|
204
204
|
if (r === "postponed") return "postponed";
|
|
@@ -212,8 +212,8 @@ function P(e, t, n = !1) {
|
|
|
212
212
|
}
|
|
213
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";
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
let r =
|
|
215
|
+
function I(e) {
|
|
216
|
+
let r = _(e), i = r.venue || {}, o = a(r.timeZone || r.timezone || i.timeZone || i.timezone), s = (e.availableTickets || []).map((e) => ({
|
|
217
217
|
id: e.id || e.ID,
|
|
218
218
|
name: e.name || e.title || "",
|
|
219
219
|
description: e.description || void 0,
|
|
@@ -223,14 +223,14 @@ function F(n) {
|
|
|
223
223
|
quantityTotal: e.totalCapacity ?? e.quantity ?? 0,
|
|
224
224
|
minPerOrder: e.minPerOrder ?? e.minQuantity ?? 1,
|
|
225
225
|
maxPerOrder: e.maxPerOrder ?? e.maxQuantity ?? 10,
|
|
226
|
-
status:
|
|
226
|
+
status: P(e),
|
|
227
227
|
salesStartDate: e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart || void 0,
|
|
228
228
|
salesEndDate: e.salesEnd || e.saleEnd || e.onSaleEnd || void 0,
|
|
229
229
|
isDonation: e.type === 2 || e.ticketType === 2 || e.isDonation === !0,
|
|
230
|
-
isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >=
|
|
230
|
+
isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= v.HIDDEN,
|
|
231
231
|
ticketType: e.type || e.ticketType || void 0,
|
|
232
232
|
sectionName: e.sectionName || e.section || void 0
|
|
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 =
|
|
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 = e.hasPurchasableHiddenTickets === !0, f = F(r.status, s, d), p = e.image || e.imageUrl || e.image_url || "", m = p.startsWith("http") ? p : g(p, { cdn: !0 }), h = {
|
|
234
234
|
id: i.id || i.ID || 0,
|
|
235
235
|
name: i.name || i.googleLocationNameCache || "",
|
|
236
236
|
address: i.address || i.googleLocationNameCache || "",
|
|
@@ -244,7 +244,7 @@ function F(n) {
|
|
|
244
244
|
displayName: e.displayName || e.name || "",
|
|
245
245
|
profileImage: e.avatar || e.profileImage || void 0,
|
|
246
246
|
role: e.role || void 0
|
|
247
|
-
})), x = r.faqs ?
|
|
247
|
+
})), x = r.faqs ? j(r.faqs) : j(i.faq), S = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
|
|
248
248
|
id: e.id ?? e.eventId ?? t + 1,
|
|
249
249
|
slug: e.slug || "",
|
|
250
250
|
startDateTime: e.startDateTime || e.startTime || "",
|
|
@@ -252,7 +252,7 @@ function F(n) {
|
|
|
252
252
|
status: e.ctaState?.reason === "sold_out" ? "sold_out" : "on_sale",
|
|
253
253
|
ctaText: e.ctaState?.text || "",
|
|
254
254
|
ctaDisabled: e.ctaState?.disabled || !1
|
|
255
|
-
})), C = r.startDateTime ?
|
|
255
|
+
})), C = r.startDateTime ? n(r.startDateTime, o) : "";
|
|
256
256
|
return {
|
|
257
257
|
id: r.id,
|
|
258
258
|
title: r.title || "",
|
|
@@ -264,13 +264,13 @@ function F(n) {
|
|
|
264
264
|
doorsOpenTime: r.doorsOpenTime || "",
|
|
265
265
|
timezone: o,
|
|
266
266
|
imageUrl: m,
|
|
267
|
-
venue:
|
|
267
|
+
venue: h,
|
|
268
268
|
performers: b,
|
|
269
269
|
tickets: s,
|
|
270
|
-
...Array.isArray(
|
|
270
|
+
...Array.isArray(e.addOns) && e.addOns.length > 0 ? { addOns: e.addOns } : {},
|
|
271
271
|
faqs: x,
|
|
272
272
|
disclaimer: r.disclaimer || i.disclaimer || void 0,
|
|
273
|
-
...
|
|
273
|
+
...y(i),
|
|
274
274
|
status: f,
|
|
275
275
|
salesStatus: r.salesStatus || void 0,
|
|
276
276
|
...d ? { hasPurchasableHiddenTickets: !0 } : {},
|
|
@@ -290,19 +290,19 @@ function F(n) {
|
|
|
290
290
|
summary: r.eventSummary || void 0,
|
|
291
291
|
postSalesMessage: r.postSalesMessage || void 0,
|
|
292
292
|
collectionId: r.collectionId || void 0,
|
|
293
|
-
venueAddressLines:
|
|
294
|
-
googleMapsUrl:
|
|
293
|
+
venueAddressLines: T(i.address || i.googleLocationNameCache || ""),
|
|
294
|
+
googleMapsUrl: E(i.address || i.googleLocationNameCache || "")
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
function I(e) {
|
|
298
|
-
return j(e);
|
|
299
|
-
}
|
|
300
297
|
function L(e) {
|
|
301
298
|
return M(e);
|
|
302
299
|
}
|
|
300
|
+
function R(e) {
|
|
301
|
+
return N(e);
|
|
302
|
+
}
|
|
303
303
|
//#endregion
|
|
304
304
|
//#region src/lib/public-calendar-flow/shareEventLink.ts
|
|
305
|
-
async function
|
|
305
|
+
async function z(e) {
|
|
306
306
|
if (typeof navigator < "u" && typeof navigator.share == "function") try {
|
|
307
307
|
return await navigator.share({ url: e }), "shared";
|
|
308
308
|
} catch (e) {
|
|
@@ -312,21 +312,21 @@ async function R(e) {
|
|
|
312
312
|
}
|
|
313
313
|
//#endregion
|
|
314
314
|
//#region src/lib/public-calendar-flow/shareCopyFeedback.svelte.ts
|
|
315
|
-
function
|
|
316
|
-
let e =
|
|
315
|
+
function B() {
|
|
316
|
+
let e = b.state("idle"), t = b.state(""), n;
|
|
317
317
|
async function r(r) {
|
|
318
|
-
let i = await
|
|
319
|
-
i === "copied" ? (
|
|
318
|
+
let i = await z(r);
|
|
319
|
+
i === "copied" ? (b.set(t, ""), b.set(e, "copied"), clearTimeout(n), n = setTimeout(() => b.set(e, "idle"), 2500)) : i === "failed" && (clearTimeout(n), b.set(e, "failed"), b.set(t, r, !0));
|
|
320
320
|
}
|
|
321
321
|
function i() {
|
|
322
322
|
clearTimeout(n);
|
|
323
323
|
}
|
|
324
324
|
return {
|
|
325
325
|
get copyState() {
|
|
326
|
-
return
|
|
326
|
+
return b.get(e);
|
|
327
327
|
},
|
|
328
328
|
get copyFailedUrl() {
|
|
329
|
-
return
|
|
329
|
+
return b.get(t);
|
|
330
330
|
},
|
|
331
331
|
share: r,
|
|
332
332
|
dispose: i
|
|
@@ -334,40 +334,40 @@ function z() {
|
|
|
334
334
|
}
|
|
335
335
|
//#endregion
|
|
336
336
|
//#region src/lib/api/recommendations.ts
|
|
337
|
-
async function
|
|
338
|
-
return e ? (await
|
|
337
|
+
async function V(e, t = "event_page", n) {
|
|
338
|
+
return e ? (await l(`${u()}/events/${e}/recommendations?surface=${t}`, { widgetKey: n }))?.recommendations ?? [] : [];
|
|
339
339
|
}
|
|
340
340
|
//#endregion
|
|
341
341
|
//#region src/lib/public-calendar-flow/recommendation-cards.ts
|
|
342
|
-
function
|
|
343
|
-
return
|
|
344
|
-
eventID:
|
|
345
|
-
name:
|
|
346
|
-
date: e
|
|
347
|
-
startDateTime:
|
|
348
|
-
imageUrl:
|
|
342
|
+
function H(e) {
|
|
343
|
+
return e.filter((e) => !!e.startsAt).map((e) => ({
|
|
344
|
+
eventID: e.eventId,
|
|
345
|
+
name: e.title,
|
|
346
|
+
date: n(e.startsAt, e.timeZone),
|
|
347
|
+
startDateTime: e.startsAt,
|
|
348
|
+
imageUrl: e.image ?? "",
|
|
349
349
|
status: "on_sale",
|
|
350
|
-
timeZone:
|
|
351
|
-
venueName:
|
|
350
|
+
timeZone: e.timeZone,
|
|
351
|
+
venueName: e.venueName,
|
|
352
352
|
ticketsRemaining: void 0,
|
|
353
353
|
ticketsTotal: void 0
|
|
354
354
|
}));
|
|
355
355
|
}
|
|
356
356
|
//#endregion
|
|
357
357
|
//#region src/lib/public-calendar-flow/RecommendationsRail.svelte
|
|
358
|
-
var
|
|
359
|
-
function
|
|
360
|
-
|
|
361
|
-
let n =
|
|
362
|
-
|
|
358
|
+
var U = b.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>"), W = b.from_html("<div class=\"flex flex-col gap-2\"><!> <!></div>"), G = b.from_html("<section data-testid=\"recommendations-rail\"><div class=\"mb-4\"><!></div> <!></section>");
|
|
359
|
+
function K(e, t) {
|
|
360
|
+
b.push(t, !0);
|
|
361
|
+
let n = b.prop(t, "surface", 3, "event_page"), r = b.prop(t, "locale", 3, "en"), i = b.state(b.proxy([]));
|
|
362
|
+
b.user_effect(() => {
|
|
363
363
|
let e = t.eventId, r = !0;
|
|
364
|
-
return
|
|
365
|
-
r && e === t.eventId &&
|
|
364
|
+
return V(e, n(), t.widgetKey).then((n) => {
|
|
365
|
+
r && e === t.eventId && b.set(i, n, !0);
|
|
366
366
|
}), () => {
|
|
367
367
|
r = !1;
|
|
368
368
|
};
|
|
369
369
|
});
|
|
370
|
-
let a =
|
|
370
|
+
let a = b.derived(() => p(H(b.get(i))));
|
|
371
371
|
function o(e) {
|
|
372
372
|
let n = s(e);
|
|
373
373
|
if (!n) return "";
|
|
@@ -381,7 +381,7 @@ function G(e, t) {
|
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
function s(e) {
|
|
384
|
-
return
|
|
384
|
+
return b.get(i).find((t) => t.eventId === e.eventID);
|
|
385
385
|
}
|
|
386
386
|
function c(e) {
|
|
387
387
|
let n = s(e)?.url;
|
|
@@ -391,57 +391,57 @@ function G(e, t) {
|
|
|
391
391
|
}
|
|
392
392
|
t.onselect?.(e);
|
|
393
393
|
}
|
|
394
|
-
var l =
|
|
395
|
-
var n =
|
|
396
|
-
|
|
394
|
+
var l = b.comment(), u = b.first_child(l), g = (e) => {
|
|
395
|
+
var n = G(), i = b.child(n), s = b.child(i);
|
|
396
|
+
d(s, {
|
|
397
397
|
size: "xl",
|
|
398
398
|
weight: "semibold",
|
|
399
399
|
children: (e, n) => {
|
|
400
|
-
|
|
401
|
-
var r =
|
|
402
|
-
|
|
400
|
+
b.next();
|
|
401
|
+
var r = b.text();
|
|
402
|
+
b.template_effect(() => b.set_text(r, t.labels.recommendationsHeading)), b.append(e, r);
|
|
403
403
|
},
|
|
404
404
|
$$slots: { default: !0 }
|
|
405
|
-
}),
|
|
406
|
-
var l =
|
|
407
|
-
|
|
405
|
+
}), b.reset(i);
|
|
406
|
+
var l = b.sibling(i, 2);
|
|
407
|
+
f(l, {
|
|
408
408
|
cols: "auto",
|
|
409
409
|
minWidth: "240px",
|
|
410
410
|
gap: "6",
|
|
411
411
|
children: (e, n) => {
|
|
412
|
-
var i =
|
|
413
|
-
|
|
414
|
-
let i =
|
|
415
|
-
let { pillEvents: e, ...i } =
|
|
412
|
+
var i = b.comment(), s = b.first_child(i);
|
|
413
|
+
b.each(s, 17, () => b.get(a), (e) => e.event.eventID, (e, n) => {
|
|
414
|
+
let i = b.derived(() => {
|
|
415
|
+
let { pillEvents: e, ...i } = h(b.get(n), t.labels, r());
|
|
416
416
|
return {
|
|
417
417
|
_pillEvents: e,
|
|
418
418
|
card: i
|
|
419
419
|
};
|
|
420
420
|
});
|
|
421
|
-
var a =
|
|
422
|
-
|
|
421
|
+
var a = W(), s = b.child(a);
|
|
422
|
+
m(s, b.spread_props(() => b.get(i).card, {
|
|
423
423
|
layout: "vertical",
|
|
424
424
|
density: "standard",
|
|
425
425
|
get placeholderImage() {
|
|
426
426
|
return t.placeholderImage;
|
|
427
427
|
},
|
|
428
|
-
onclick: () => c(
|
|
428
|
+
onclick: () => c(b.get(n).event)
|
|
429
429
|
}));
|
|
430
|
-
var l =
|
|
431
|
-
var t =
|
|
432
|
-
|
|
433
|
-
}, d =
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
}),
|
|
437
|
-
}),
|
|
430
|
+
var l = b.sibling(s, 2), u = (e) => {
|
|
431
|
+
var t = U(), r = b.child(t, !0);
|
|
432
|
+
b.reset(t), b.template_effect((e) => b.set_text(r, e), [() => o(b.get(n).event)]), b.append(e, t);
|
|
433
|
+
}, d = b.derived(() => o(b.get(n).event));
|
|
434
|
+
b.if(l, (e) => {
|
|
435
|
+
b.get(d) && e(u);
|
|
436
|
+
}), b.reset(a), b.append(e, a);
|
|
437
|
+
}), b.append(e, i);
|
|
438
438
|
},
|
|
439
439
|
$$slots: { default: !0 }
|
|
440
|
-
}),
|
|
440
|
+
}), b.reset(n), b.append(e, n);
|
|
441
441
|
};
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
}),
|
|
442
|
+
b.if(u, (e) => {
|
|
443
|
+
b.get(a).length > 0 && e(g);
|
|
444
|
+
}), b.append(e, l), b.pop();
|
|
445
445
|
}
|
|
446
446
|
//#endregion
|
|
447
|
-
export {
|
|
447
|
+
export { L as a, R as i, B as n, w as o, I as r, K as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./WarningCircleIcon-
|
|
2
|
-
import {
|
|
1
|
+
import { t as e } from "./WarningCircleIcon-DhNvSQag.js";
|
|
2
|
+
import { K as t, n } from "./scarcity-CJ6IsR7f.js";
|
|
3
3
|
import { t as r } from "./Badge-n7TfNjln.js";
|
|
4
4
|
import { t as i } from "./defaultLabels-BkjXKQDd.js";
|
|
5
5
|
import { n as a } from "./liveAnnouncer-D3xVL7qA.js";
|
|
@@ -7,9 +7,9 @@ import "svelte/internal/disclose-version";
|
|
|
7
7
|
import * as o from "svelte/internal/client";
|
|
8
8
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/SubtractIcon.svelte
|
|
9
9
|
var s = o.from_svg("<path d=\"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z\"></path>"), c = o.from_svg("<line x1=\"40\" y1=\"128\" x2=\"216\" y2=\"128\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line>"), l = o.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
|
|
10
|
-
function u(e,
|
|
11
|
-
o.push(
|
|
12
|
-
let r = o.prop(
|
|
10
|
+
function u(e, n) {
|
|
11
|
+
o.push(n, !0);
|
|
12
|
+
let r = o.prop(n, "size", 3, "24"), i = o.prop(n, "color", 3, "currentColor"), a = o.prop(n, "class", 3, ""), u = t(), d = o.derived(() => n.weight ?? u?.weight ?? "regular");
|
|
13
13
|
var f = l();
|
|
14
14
|
let p;
|
|
15
15
|
var m = o.child(f), h = (e) => {
|
|
@@ -37,9 +37,9 @@ function m(e) {
|
|
|
37
37
|
(p[e] ??= a(f))(e, { politeness: "polite" });
|
|
38
38
|
}
|
|
39
39
|
var h = o.from_html("<span><!> </span>");
|
|
40
|
-
function g(
|
|
40
|
+
function g(t, a) {
|
|
41
41
|
o.push(a, !0);
|
|
42
|
-
let s = o.prop(a, "context", 3, "browse"), c = o.prop(a, "variant", 3, "default"), l = o.prop(a, "isFree", 3, !1), u = o.prop(a, "labels", 3, i), d = o.derived(() =>
|
|
42
|
+
let s = o.prop(a, "context", 3, "browse"), c = o.prop(a, "variant", 3, "default"), l = o.prop(a, "isFree", 3, !1), u = o.prop(a, "labels", 3, i), d = o.derived(() => n(a.remaining, a.total)), f = o.derived(() => {
|
|
43
43
|
let e = u().statusSoldOut || "Sold out", t = u().statusSellingFast || "Selling fast", n = u().scarcityOnlyNLeft || "Only {remaining} left";
|
|
44
44
|
return o.get(d) === "sold-out" ? {
|
|
45
45
|
type: "sold-out",
|
|
@@ -110,7 +110,7 @@ function g(n, a) {
|
|
|
110
110
|
};
|
|
111
111
|
o.if(y, (e) => {
|
|
112
112
|
o.get(f) && e(b);
|
|
113
|
-
}), o.append(
|
|
113
|
+
}), o.append(t, v), o.pop();
|
|
114
114
|
}
|
|
115
115
|
//#endregion
|
|
116
116
|
export { d as n, u as r, g as t };
|
|
@@ -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-CqQ0yP-h.js";
|
|
3
|
+
import { a as n } from "./RecommendationsRail-CN_dtLWp.js";
|
|
4
|
+
import { n as r } from "./ScarcityBadge-BJrsvt6e.js";
|
|
5
5
|
import { t as i } from "./__SKIP_PATHS__-C0ixDSSm.js";
|
|
6
6
|
import "svelte/internal/disclose-version";
|
|
7
7
|
import * as a from "svelte/internal/client";
|