@getmicdrop/venue-calendar 4.0.108 → 4.0.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +740 -740
- package/dist/CartView-C3N5pw89.js +2381 -0
- package/dist/CartView-C3N5pw89.js.map +1 -0
- package/dist/{Checkout-C4zUFYYG.js → Checkout-CMEf_qnp.js} +156 -156
- package/dist/Checkout-CMEf_qnp.js.map +1 -0
- package/dist/{Checkout-CACB_Qvi.js → Checkout-Chki2df_.js} +130 -130
- package/dist/Checkout-Chki2df_.js.map +1 -0
- package/dist/{CheckoutTimer-D5llSBPs.js → CheckoutTimer-BAaY_60w.js} +5 -5
- package/dist/CheckoutTimer-BAaY_60w.js.map +1 -0
- package/dist/{ClockIcon-BJnxLZ4f.js → ClockIcon-Dbbj_qur.js} +2 -2
- package/dist/ClockIcon-Dbbj_qur.js.map +1 -0
- package/dist/{CollectionView-BLpwWRcN.js → CollectionView-RM30YPOJ.js} +24 -24
- package/dist/CollectionView-RM30YPOJ.js.map +1 -0
- package/dist/{Event-DXp4Ypv4.js → Event-kdxMa6OT.js} +1682 -1602
- package/dist/Event-kdxMa6OT.js.map +1 -0
- package/dist/EventPage-BRBByBHe.js +1001 -0
- package/dist/EventPage-BRBByBHe.js.map +1 -0
- package/dist/{Heading-C_Pc_j8f.js → Heading-CSDFD80h.js} +5 -5
- package/dist/Heading-CSDFD80h.js.map +1 -0
- package/dist/{ScarcityBadge-CSi-i0-w.js → ScarcityBadge-B0ca48su.js} +27 -27
- package/dist/ScarcityBadge-B0ca48su.js.map +1 -0
- package/dist/{SeriesPage-bPZlyzQ6.js → SeriesPage-CczfbUKO.js} +5 -5
- package/dist/SeriesPage-CczfbUKO.js.map +1 -0
- package/dist/{Spinner-BFIjCOTb.js → Spinner--TOwvv9A.js} +2 -2
- package/dist/Spinner--TOwvv9A.js.map +1 -0
- package/dist/{Success-Cv8d2syu.js → Success-DIWUGUPs.js} +29 -29
- package/dist/Success-DIWUGUPs.js.map +1 -0
- package/dist/{Text-tWGKQJab.js → Text-WLl_ELy9.js} +12 -12
- package/dist/Text-WLl_ELy9.js.map +1 -0
- package/dist/{VenueCalendar-Dhoi9hF5.js → VenueCalendar-CU5N9klc.js} +4238 -4270
- package/dist/VenueCalendar-CU5N9klc.js.map +1 -0
- package/dist/{ViewTicketsEmbed-BrXae6cK.js → ViewTicketsEmbed-BOukxQIF.js} +80 -80
- package/dist/ViewTicketsEmbed-BOukxQIF.js.map +1 -0
- package/dist/api/api/events.d.ts +28 -12
- package/dist/api/api/index.d.ts +1 -1
- package/dist/api/api/route-manifest.d.ts +179 -0
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.cjs.map +1 -1
- package/dist/api/api.mjs +316 -316
- package/dist/api/api.mjs.map +1 -1
- package/dist/api/types.d.ts +483 -483
- package/dist/{labels-CGndTgO9.js → labels-DXGieQXs.js} +61 -61
- package/dist/labels-DXGieQXs.js.map +1 -0
- package/dist/{modalManager.svelte-BgW5Xd6y.js → modalManager.svelte-Dbd1xgTQ.js} +2 -2
- package/dist/modalManager.svelte-Dbd1xgTQ.js.map +1 -0
- package/dist/promo-oWi_MKmY.js +29 -0
- package/dist/promo-oWi_MKmY.js.map +1 -0
- package/dist/seo/helpers.d.ts +11 -0
- package/dist/seo/seo.cjs +1 -1
- package/dist/seo/seo.cjs.map +1 -1
- package/dist/seo/seo.mjs +170 -179
- package/dist/seo/seo.mjs.map +1 -1
- package/dist/{showcase-state-options-BxLP2R1L.js → showcase-state-options-DJJdjxvZ.js} +2 -2
- package/dist/showcase-state-options-DJJdjxvZ.js.map +1 -0
- package/dist/{transform-CVOgA-Ky.js → transform-Bgqwj9i-.js} +38 -38
- package/dist/transform-Bgqwj9i-.js.map +1 -0
- package/dist/types/index.d.ts +455 -455
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +4 -4
- package/dist/venue-calendar.iife.js +50 -50
- package/dist/venue-calendar.iife.js.map +1 -1
- package/dist/venue-calendar.umd.js +44 -44
- package/dist/venue-calendar.umd.js.map +1 -1
- package/package.json +199 -195
- package/src/lib/theme.js +222 -222
- package/dist/CartView-eQNOdQSz.js +0 -2354
- package/dist/CartView-eQNOdQSz.js.map +0 -1
- package/dist/Checkout-C4zUFYYG.js.map +0 -1
- package/dist/Checkout-CACB_Qvi.js.map +0 -1
- package/dist/CheckoutTimer-D5llSBPs.js.map +0 -1
- package/dist/ClockIcon-BJnxLZ4f.js.map +0 -1
- package/dist/CollectionView-BLpwWRcN.js.map +0 -1
- package/dist/Event-DXp4Ypv4.js.map +0 -1
- package/dist/EventPage-Dfxyzfg2.js +0 -949
- package/dist/EventPage-Dfxyzfg2.js.map +0 -1
- package/dist/Heading-C_Pc_j8f.js.map +0 -1
- package/dist/ScarcityBadge-CSi-i0-w.js.map +0 -1
- package/dist/SeriesPage-bPZlyzQ6.js.map +0 -1
- package/dist/Spinner-BFIjCOTb.js.map +0 -1
- package/dist/Success-Cv8d2syu.js.map +0 -1
- package/dist/Text-tWGKQJab.js.map +0 -1
- package/dist/VenueCalendar-Dhoi9hF5.js.map +0 -1
- package/dist/ViewTicketsEmbed-BrXae6cK.js.map +0 -1
- package/dist/labels-CGndTgO9.js.map +0 -1
- package/dist/modalManager.svelte-BgW5Xd6y.js.map +0 -1
- package/dist/promo-WWbp2OWI.js +0 -12
- package/dist/promo-WWbp2OWI.js.map +0 -1
- package/dist/showcase-state-options-BxLP2R1L.js.map +0 -1
- package/dist/transform-CVOgA-Ky.js.map +0 -1
package/dist/seo/seo.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
function
|
|
1
|
+
function A() {
|
|
2
2
|
return "America/Los_Angeles";
|
|
3
3
|
}
|
|
4
|
-
const
|
|
4
|
+
const $ = /<\/(?:p|div|h[1-6]|li|ul|ol|blockquote|tr)>/gi, O = /<br\s*\/?>/gi, P = /<[^>]*>/g, C = {
|
|
5
5
|
"&": "&",
|
|
6
6
|
"<": "<",
|
|
7
7
|
">": ">",
|
|
@@ -11,25 +11,28 @@ const O = /<\/(?:p|div|h[1-6]|li|ul|ol|blockquote|tr)>/gi, C = /<br\s*\/?>/gi, U
|
|
|
11
11
|
" ": " "
|
|
12
12
|
};
|
|
13
13
|
function M(i) {
|
|
14
|
-
return i.replace(/&#x([0-9a-f]+);/gi, (t, e) =>
|
|
14
|
+
return i.replace(/&#x([0-9a-f]+);/gi, (t, e) => N(parseInt(e, 16))).replace(/&#(\d+);/g, (t, e) => N(Number(e))).replace(/&[a-z0-9]+;/gi, (t) => C[t.toLowerCase()] ?? t);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function N(i) {
|
|
17
17
|
return Number.isFinite(i) && i > 0 && i <= 1114111 ? String.fromCodePoint(i) : "";
|
|
18
18
|
}
|
|
19
19
|
function y(i, t) {
|
|
20
20
|
if (!i)
|
|
21
21
|
return "";
|
|
22
|
-
let e = String(i).replace(
|
|
22
|
+
let e = String(i).replace(O, " ").replace($, " ").replace(P, "");
|
|
23
23
|
if (e = M(e).replace(/\s+/g, " ").trim(), t && t > 0 && e.length > t) {
|
|
24
24
|
const n = e.slice(0, t), s = n.lastIndexOf(" ");
|
|
25
25
|
e = (s > 40 ? n.slice(0, s) : n).trimEnd() + "…";
|
|
26
26
|
}
|
|
27
27
|
return e;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function U() {
|
|
30
|
+
return /* @__PURE__ */ new Date();
|
|
31
|
+
}
|
|
32
|
+
function H(i) {
|
|
30
33
|
return i.replace(/</g, "\\u003c").replace(/>/g, "\\u003e").replace(/&/g, "\\u0026");
|
|
31
34
|
}
|
|
32
|
-
function
|
|
35
|
+
function v(i, t) {
|
|
33
36
|
if (!i) return null;
|
|
34
37
|
const e = new Date(i);
|
|
35
38
|
if (isNaN(e.getTime())) return null;
|
|
@@ -49,21 +52,21 @@ function _(i, t) {
|
|
|
49
52
|
} catch {
|
|
50
53
|
s = new Intl.DateTimeFormat("en-US", {
|
|
51
54
|
...n,
|
|
52
|
-
timeZone:
|
|
55
|
+
timeZone: A()
|
|
53
56
|
});
|
|
54
57
|
}
|
|
55
|
-
const
|
|
58
|
+
const o = s.formatToParts(e), a = (d) => o.find((b) => b.type === d)?.value || "", l = a("year"), u = a("month"), r = a("day"), m = a("hour"), c = a("minute"), h = a("second"), g = a("timeZoneName");
|
|
56
59
|
let p = "+00:00";
|
|
57
60
|
if (g) {
|
|
58
|
-
const
|
|
59
|
-
if (
|
|
60
|
-
const b =
|
|
61
|
-
p = `${b}${
|
|
61
|
+
const d = g.match(/GMT([+-])(\d+)(?::(\d+))?/);
|
|
62
|
+
if (d) {
|
|
63
|
+
const b = d[1], L = d[2].padStart(2, "0"), D = d[3] || "00";
|
|
64
|
+
p = `${b}${L}:${D}`;
|
|
62
65
|
}
|
|
63
66
|
}
|
|
64
|
-
return `${l}-${
|
|
67
|
+
return `${l}-${u}-${r}T${m}:${c}:${h}${p}`;
|
|
65
68
|
}
|
|
66
|
-
function
|
|
69
|
+
function Z(i) {
|
|
67
70
|
if (!i) return null;
|
|
68
71
|
const t = i.split(",").map((s) => s.trim());
|
|
69
72
|
if (t.length < 2)
|
|
@@ -87,59 +90,65 @@ function w(i) {
|
|
|
87
90
|
addressCountry: "US"
|
|
88
91
|
};
|
|
89
92
|
}
|
|
90
|
-
function
|
|
93
|
+
function T(i, t) {
|
|
91
94
|
if (i && (i.city || i.state || i.postalCode)) {
|
|
92
95
|
const e = { "@type": "PostalAddress" };
|
|
93
96
|
return i.address && (e.streetAddress = i.address), i.city && (e.addressLocality = i.city), i.state && (e.addressRegion = i.state), i.postalCode && (e.postalCode = i.postalCode), e.addressCountry = i.country || "US", e;
|
|
94
97
|
}
|
|
95
|
-
return
|
|
98
|
+
return Z(i && i.address || t || null);
|
|
96
99
|
}
|
|
97
|
-
function
|
|
100
|
+
function I(i) {
|
|
98
101
|
if (!i) return "https://schema.org/EventScheduled";
|
|
99
102
|
const t = i.toLowerCase();
|
|
100
103
|
return t === "cancelled" || t === "canceled" ? "https://schema.org/EventCancelled" : t === "postponed" ? "https://schema.org/EventPostponed" : t === "rescheduled" ? "https://schema.org/EventRescheduled" : "https://schema.org/EventScheduled";
|
|
101
104
|
}
|
|
102
|
-
function
|
|
105
|
+
function w(i) {
|
|
103
106
|
if ((i.remainingCapacity ?? i.quantityRemaining ?? i.quantity) === 0 || i.soldOut)
|
|
104
107
|
return "https://schema.org/SoldOut";
|
|
105
|
-
const e =
|
|
108
|
+
const e = U(), n = i.salesBegin || i.salesStart || i.saleBegin || i.onSaleStart, s = i.salesEnd || i.saleEnd || i.onSaleEnd;
|
|
106
109
|
return n && new Date(n) > e ? "https://schema.org/PreOrder" : s && new Date(s) < e ? "https://schema.org/SoldOut" : "https://schema.org/InStock";
|
|
107
110
|
}
|
|
108
|
-
function
|
|
111
|
+
function S(i, t, e, n = {}) {
|
|
112
|
+
return i !== t ? {
|
|
113
|
+
"@type": "AggregateOffer",
|
|
114
|
+
lowPrice: i,
|
|
115
|
+
highPrice: t,
|
|
116
|
+
priceCurrency: "USD",
|
|
117
|
+
availability: e,
|
|
118
|
+
...n
|
|
119
|
+
} : {
|
|
120
|
+
"@type": "Offer",
|
|
121
|
+
price: i,
|
|
122
|
+
priceCurrency: "USD",
|
|
123
|
+
availability: e,
|
|
124
|
+
...n
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function q(i, t) {
|
|
109
128
|
if (!i || i.length === 0) return null;
|
|
110
129
|
const e = i.filter((l) => {
|
|
111
|
-
const
|
|
112
|
-
return
|
|
130
|
+
const u = l.visibility ?? 0, r = u === 0 || u === 1, m = l.salesChannel !== 2;
|
|
131
|
+
return r && m;
|
|
113
132
|
});
|
|
114
133
|
if (e.length === 0) return null;
|
|
115
134
|
const n = e.map((l) => parseFloat(String(l.price ?? 0))).filter((l) => !isNaN(l));
|
|
116
135
|
if (n.length === 0) return null;
|
|
117
|
-
const s = Math.min(...n),
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
priceCurrency: "USD",
|
|
124
|
-
availability: E(e[0]),
|
|
136
|
+
const s = Math.min(...n), o = Math.max(...n), a = e[0];
|
|
137
|
+
return S(
|
|
138
|
+
s,
|
|
139
|
+
o,
|
|
140
|
+
w(a),
|
|
141
|
+
{
|
|
125
142
|
url: t || void 0,
|
|
126
|
-
validFrom:
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
return {
|
|
130
|
-
"@type": "Offer",
|
|
131
|
-
price: s,
|
|
132
|
-
priceCurrency: "USD",
|
|
133
|
-
availability: E(r),
|
|
134
|
-
url: t || void 0,
|
|
135
|
-
validFrom: r?.salesBegin || r?.salesStart || void 0
|
|
136
|
-
};
|
|
143
|
+
validFrom: a?.salesBegin || a?.salesStart || void 0
|
|
144
|
+
}
|
|
145
|
+
);
|
|
137
146
|
}
|
|
138
|
-
function
|
|
147
|
+
function j(i) {
|
|
139
148
|
if (!i || i.length === 0) return null;
|
|
140
149
|
const t = i.filter((e) => {
|
|
141
|
-
const n = e.acceptedState === 2, s = !e.shouldBeHidden,
|
|
142
|
-
return n && s &&
|
|
150
|
+
const n = e.acceptedState === 2, s = !e.shouldBeHidden, o = e.RosterPerformer?.User?.performerProfile, a = o?.firstName || o?.lastName || o?.displayName;
|
|
151
|
+
return n && s && a;
|
|
143
152
|
});
|
|
144
153
|
return t.length === 0 ? null : t.map((e) => {
|
|
145
154
|
const n = e.RosterPerformer?.User?.performerProfile;
|
|
@@ -149,56 +158,56 @@ function q(i) {
|
|
|
149
158
|
};
|
|
150
159
|
});
|
|
151
160
|
}
|
|
152
|
-
function
|
|
161
|
+
function z(i) {
|
|
153
162
|
const {
|
|
154
163
|
event: t,
|
|
155
164
|
venue: e,
|
|
156
|
-
venueTimeZone: n =
|
|
165
|
+
venueTimeZone: n = A(),
|
|
157
166
|
eventUrl: s,
|
|
158
|
-
organizer:
|
|
167
|
+
organizer: o
|
|
159
168
|
} = i;
|
|
160
169
|
if (!t) return null;
|
|
161
|
-
const
|
|
170
|
+
const a = v(
|
|
162
171
|
t.startDateTime,
|
|
163
172
|
n
|
|
164
173
|
);
|
|
165
|
-
if (!t.name || !
|
|
174
|
+
if (!t.name || !a || !e?.name)
|
|
166
175
|
return null;
|
|
167
|
-
const l =
|
|
176
|
+
const l = T(
|
|
168
177
|
e,
|
|
169
178
|
e?.googleLocationNameCache
|
|
170
|
-
),
|
|
179
|
+
), u = {
|
|
171
180
|
"@type": "Place",
|
|
172
181
|
name: e.name
|
|
173
182
|
};
|
|
174
|
-
l && (
|
|
175
|
-
const
|
|
183
|
+
l && (u.address = l);
|
|
184
|
+
const r = {
|
|
176
185
|
"@context": "https://schema.org",
|
|
177
186
|
"@type": "Event",
|
|
178
187
|
name: t.name,
|
|
179
|
-
startDate:
|
|
180
|
-
eventStatus:
|
|
188
|
+
startDate: a,
|
|
189
|
+
eventStatus: I(t.status),
|
|
181
190
|
eventAttendanceMode: "https://schema.org/OfflineEventAttendanceMode",
|
|
182
|
-
location:
|
|
183
|
-
},
|
|
184
|
-
|
|
185
|
-
const
|
|
186
|
-
|
|
191
|
+
location: u
|
|
192
|
+
}, m = v(t.endDateTime, n);
|
|
193
|
+
m && (r.endDate = m);
|
|
194
|
+
const c = y(t.description) || t.eventSummary;
|
|
195
|
+
c && (r.description = c);
|
|
187
196
|
const h = t.image || t.coverImage || t.ShowImage;
|
|
188
|
-
h && (
|
|
189
|
-
const g =
|
|
190
|
-
g && (
|
|
191
|
-
const p =
|
|
192
|
-
if (p && p.length > 0 && (
|
|
193
|
-
const
|
|
197
|
+
h && (r.image = [h]);
|
|
198
|
+
const g = q(t.availableTickets, s);
|
|
199
|
+
g && (r.offers = g);
|
|
200
|
+
const p = j(t.performers);
|
|
201
|
+
if (p && p.length > 0 && (r.performer = p), o?.name) {
|
|
202
|
+
const d = {
|
|
194
203
|
"@type": "Organization",
|
|
195
|
-
name:
|
|
204
|
+
name: o.name
|
|
196
205
|
};
|
|
197
|
-
|
|
206
|
+
o.url && (d.url = o.url), r.organizer = d;
|
|
198
207
|
}
|
|
199
|
-
return s && (
|
|
208
|
+
return s && (r.url = s), r;
|
|
200
209
|
}
|
|
201
|
-
function
|
|
210
|
+
function x(i) {
|
|
202
211
|
switch (i) {
|
|
203
212
|
case "available":
|
|
204
213
|
return "https://schema.org/InStock";
|
|
@@ -212,48 +221,30 @@ function N(i) {
|
|
|
212
221
|
return "https://schema.org/InStock";
|
|
213
222
|
}
|
|
214
223
|
}
|
|
215
|
-
function
|
|
224
|
+
function B(i, t) {
|
|
216
225
|
if (!i || i.length === 0) return null;
|
|
217
226
|
const e = i.filter(
|
|
218
|
-
(
|
|
227
|
+
(s) => s.status !== "sold_out" && s.status !== "ended"
|
|
219
228
|
);
|
|
220
229
|
if (e.length === 0) {
|
|
221
|
-
const
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
"
|
|
226
|
-
|
|
227
|
-
highPrice: c,
|
|
228
|
-
priceCurrency: "USD",
|
|
229
|
-
availability: "https://schema.org/SoldOut"
|
|
230
|
-
} : {
|
|
231
|
-
"@type": "Offer",
|
|
232
|
-
price: l,
|
|
233
|
-
priceCurrency: "USD",
|
|
234
|
-
availability: "https://schema.org/SoldOut"
|
|
235
|
-
};
|
|
230
|
+
const s = i.map((o) => o.price).filter((o) => !isNaN(o));
|
|
231
|
+
return s.length === 0 ? null : S(
|
|
232
|
+
Math.min(...s),
|
|
233
|
+
Math.max(...s),
|
|
234
|
+
"https://schema.org/SoldOut"
|
|
235
|
+
);
|
|
236
236
|
}
|
|
237
|
-
const n = e.map((
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
highPrice: a,
|
|
244
|
-
priceCurrency: "USD",
|
|
245
|
-
availability: N(e[0].status)
|
|
246
|
-
} : {
|
|
247
|
-
"@type": "Offer",
|
|
248
|
-
price: s,
|
|
249
|
-
priceCurrency: "USD",
|
|
250
|
-
availability: N(e[0].status)
|
|
251
|
-
};
|
|
237
|
+
const n = e.map((s) => s.price).filter((s) => !isNaN(s));
|
|
238
|
+
return n.length === 0 ? null : S(
|
|
239
|
+
Math.min(...n),
|
|
240
|
+
Math.max(...n),
|
|
241
|
+
x(e[0].status)
|
|
242
|
+
);
|
|
252
243
|
}
|
|
253
|
-
function
|
|
244
|
+
function J(i) {
|
|
254
245
|
const { series: t, baseEventUrl: e } = i;
|
|
255
246
|
if (!t.title || !t.occurrences || t.occurrences.length === 0 || !t.venue?.name) return null;
|
|
256
|
-
const n =
|
|
247
|
+
const n = T(
|
|
257
248
|
t.venue,
|
|
258
249
|
t.venue.googleLocationNameCache
|
|
259
250
|
), s = {
|
|
@@ -261,75 +252,75 @@ function x(i) {
|
|
|
261
252
|
name: t.venue.name
|
|
262
253
|
};
|
|
263
254
|
n && (s.address = n);
|
|
264
|
-
const
|
|
255
|
+
const o = {
|
|
265
256
|
"@context": "https://schema.org",
|
|
266
257
|
"@type": "EventSeries",
|
|
267
258
|
name: t.title,
|
|
268
259
|
location: s
|
|
269
|
-
},
|
|
270
|
-
|
|
271
|
-
const l = t.performers?.filter((
|
|
272
|
-
l && l.length > 0 && (
|
|
260
|
+
}, a = y(t.description) || t.eventSummary;
|
|
261
|
+
a && (o.description = a), t.image && (o.image = [t.image]);
|
|
262
|
+
const l = t.performers?.filter((r) => r.displayName);
|
|
263
|
+
l && l.length > 0 && (o.performer = l.map((r) => ({
|
|
273
264
|
"@type": "PerformingGroup",
|
|
274
|
-
name:
|
|
265
|
+
name: r.displayName
|
|
275
266
|
})));
|
|
276
|
-
const
|
|
277
|
-
for (const
|
|
278
|
-
const
|
|
279
|
-
|
|
267
|
+
const u = [];
|
|
268
|
+
for (const r of t.occurrences) {
|
|
269
|
+
const m = v(
|
|
270
|
+
r.startDateTime,
|
|
280
271
|
t.timeZone
|
|
281
272
|
);
|
|
282
|
-
if (!
|
|
283
|
-
const
|
|
273
|
+
if (!m) continue;
|
|
274
|
+
const c = {
|
|
284
275
|
"@type": "Event",
|
|
285
|
-
name:
|
|
286
|
-
startDate:
|
|
287
|
-
eventStatus:
|
|
276
|
+
name: r.title,
|
|
277
|
+
startDate: m,
|
|
278
|
+
eventStatus: I(r.status),
|
|
288
279
|
location: s
|
|
289
280
|
};
|
|
290
|
-
e && (
|
|
291
|
-
const h =
|
|
292
|
-
h && (
|
|
293
|
-
const g =
|
|
294
|
-
g && (
|
|
281
|
+
e && (c["@id"] = `${e}/${r.id}-${r.slug}`);
|
|
282
|
+
const h = v(r.endDateTime, t.timeZone);
|
|
283
|
+
h && (c.endDate = h);
|
|
284
|
+
const g = B(r.tickets, r.status);
|
|
285
|
+
g && (c.offers = g), u.push(c);
|
|
295
286
|
}
|
|
296
|
-
return
|
|
287
|
+
return u.length === 0 ? null : (o.subEvent = u, o);
|
|
297
288
|
}
|
|
298
|
-
function
|
|
289
|
+
function F(i) {
|
|
299
290
|
const { collection: t, baseEventUrl: e } = i;
|
|
300
291
|
if (!t.collectionTitle || !t.events || t.events.length === 0) return null;
|
|
301
292
|
const n = [];
|
|
302
|
-
for (const
|
|
303
|
-
if (!
|
|
293
|
+
for (const a of t.events) {
|
|
294
|
+
if (!a.title) continue;
|
|
304
295
|
const l = {
|
|
305
296
|
"@type": "ListItem",
|
|
306
297
|
position: n.length + 1,
|
|
307
|
-
name:
|
|
298
|
+
name: a.title
|
|
308
299
|
};
|
|
309
|
-
e && (l.url =
|
|
300
|
+
e && (l.url = a.slug ? `${e}/${a.id}-${a.slug}` : `${e}/${a.id}`), n.push(l);
|
|
310
301
|
}
|
|
311
302
|
if (n.length === 0) return null;
|
|
312
303
|
const s = {
|
|
313
304
|
"@context": "https://schema.org",
|
|
314
305
|
"@type": "CollectionPage",
|
|
315
306
|
name: t.collectionTitle
|
|
316
|
-
},
|
|
317
|
-
return
|
|
307
|
+
}, o = y(t.description) || t.summary;
|
|
308
|
+
return o && (s.description = o), t.coverImage && (s.image = [t.coverImage]), s.mainEntity = {
|
|
318
309
|
"@type": "ItemList",
|
|
319
310
|
numberOfItems: n.length,
|
|
320
311
|
itemListElement: n
|
|
321
312
|
}, s;
|
|
322
313
|
}
|
|
323
|
-
const
|
|
324
|
-
function
|
|
325
|
-
return i.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "").slice(0,
|
|
314
|
+
const R = 70;
|
|
315
|
+
function G(i) {
|
|
316
|
+
return i.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "").slice(0, R).replace(/-+$/g, "");
|
|
326
317
|
}
|
|
327
|
-
function
|
|
328
|
-
return i ?
|
|
318
|
+
function _(i) {
|
|
319
|
+
return i ? G(i) : "";
|
|
329
320
|
}
|
|
330
321
|
const f = class f {
|
|
331
322
|
constructor(t) {
|
|
332
|
-
this._state = "idle", this._originals = null, this._originalsSaved = !1, this._events = [], !(typeof document > "u") && (f._activeInstance && f._activeInstance !== this && f._activeInstance.destroy(), this._venueName = t.venueName, this._venueAddress = t.venueAddress, this._venueTimeZone = t.venueTimeZone ||
|
|
323
|
+
this._state = "idle", this._originals = null, this._originalsSaved = !1, this._events = [], !(typeof document > "u") && (f._activeInstance && f._activeInstance !== this && f._activeInstance.destroy(), this._venueName = t.venueName, this._venueAddress = t.venueAddress, this._venueTimeZone = t.venueTimeZone || A(), this._baseUrl = t.baseUrl || window.location.origin + window.location.pathname, this._saveOriginals(), f._activeInstance = this);
|
|
333
324
|
}
|
|
334
325
|
// ---------------------------------------------------------------------------
|
|
335
326
|
// Private helpers
|
|
@@ -344,9 +335,9 @@ const f = class f {
|
|
|
344
335
|
'meta[property="og:description"]'
|
|
345
336
|
), s = document.querySelector(
|
|
346
337
|
'meta[property="og:image"]'
|
|
347
|
-
),
|
|
338
|
+
), o = document.querySelector(
|
|
348
339
|
'meta[property="og:url"]'
|
|
349
|
-
),
|
|
340
|
+
), a = document.querySelector(
|
|
350
341
|
'meta[property="og:type"]'
|
|
351
342
|
), l = document.querySelector(
|
|
352
343
|
'meta[name="description"]'
|
|
@@ -357,8 +348,8 @@ const f = class f {
|
|
|
357
348
|
ogTitle: e?.getAttribute("content") ?? null,
|
|
358
349
|
ogDescription: n?.getAttribute("content") ?? null,
|
|
359
350
|
ogImage: s?.getAttribute("content") ?? null,
|
|
360
|
-
ogUrl:
|
|
361
|
-
ogType:
|
|
351
|
+
ogUrl: o?.getAttribute("content") ?? null,
|
|
352
|
+
ogType: a?.getAttribute("content") ?? null,
|
|
362
353
|
metaDescription: l?.getAttribute("content") ?? null
|
|
363
354
|
}, this._originalsSaved = !0;
|
|
364
355
|
}
|
|
@@ -420,7 +411,7 @@ const f = class f {
|
|
|
420
411
|
"@context": "https://schema.org",
|
|
421
412
|
"@type": "ItemList",
|
|
422
413
|
itemListElement: t.map((e, n) => {
|
|
423
|
-
const s = e.slug ||
|
|
414
|
+
const s = e.slug || _(e.name);
|
|
424
415
|
return {
|
|
425
416
|
"@type": "ListItem",
|
|
426
417
|
position: n + 1,
|
|
@@ -460,28 +451,28 @@ const f = class f {
|
|
|
460
451
|
if (typeof document > "u" || this._state === "destroyed") return;
|
|
461
452
|
if (this._saveOriginals(), n) {
|
|
462
453
|
this._venueName = n.name || this._venueName, this._venueAddress = n.address || n.googleLocationNameCache || this._venueAddress;
|
|
463
|
-
const
|
|
464
|
-
|
|
454
|
+
const c = n.timeZone || n.timezone;
|
|
455
|
+
c && (this._venueTimeZone = c);
|
|
465
456
|
}
|
|
466
|
-
let s = null,
|
|
457
|
+
let s = null, o = "", a = "", l = "", u = "", r = "";
|
|
467
458
|
if (t === "event") {
|
|
468
|
-
const
|
|
469
|
-
|
|
459
|
+
const c = e.slug || _(e.name || "");
|
|
460
|
+
r = this._buildEntityUrl(
|
|
470
461
|
"event",
|
|
471
462
|
e.id || e.eventID || "",
|
|
472
|
-
|
|
473
|
-
), s =
|
|
463
|
+
c
|
|
464
|
+
), s = z({
|
|
474
465
|
event: e,
|
|
475
466
|
venue: {
|
|
476
467
|
name: this._venueName,
|
|
477
468
|
googleLocationNameCache: this._venueAddress
|
|
478
469
|
},
|
|
479
470
|
venueTimeZone: this._venueTimeZone,
|
|
480
|
-
eventUrl:
|
|
481
|
-
}),
|
|
471
|
+
eventUrl: r
|
|
472
|
+
}), o = e.name || "", a = e.description || "", l = e.eventSummary || "", u = e.image || e.coverImage || e.ShowImage || "";
|
|
482
473
|
} else if (t === "series") {
|
|
483
|
-
const
|
|
484
|
-
|
|
474
|
+
const c = e.slug || _(e.title || "");
|
|
475
|
+
r = this._buildEntityUrl("series", e.id || "", c), s = J({
|
|
485
476
|
series: {
|
|
486
477
|
...e,
|
|
487
478
|
venue: {
|
|
@@ -490,25 +481,25 @@ const f = class f {
|
|
|
490
481
|
},
|
|
491
482
|
timeZone: this._venueTimeZone
|
|
492
483
|
},
|
|
493
|
-
baseEventUrl:
|
|
494
|
-
}),
|
|
484
|
+
baseEventUrl: r
|
|
485
|
+
}), o = e.title || "", a = e.description || "", l = e.eventSummary || "", u = e.image || "";
|
|
495
486
|
} else if (t === "collection") {
|
|
496
|
-
const
|
|
497
|
-
|
|
487
|
+
const c = e.slug || _(e.collectionTitle || "");
|
|
488
|
+
r = this._buildEntityUrl("collection", e.id || "", c), s = F({
|
|
498
489
|
collection: e,
|
|
499
|
-
baseEventUrl:
|
|
490
|
+
baseEventUrl: r,
|
|
500
491
|
defaultTimeZone: this._venueTimeZone
|
|
501
|
-
}),
|
|
492
|
+
}), o = e.collectionTitle || "", a = e.description || "", l = e.summary || "", u = e.coverImage || "";
|
|
502
493
|
}
|
|
503
|
-
s && this._injectJsonLd(s),
|
|
504
|
-
const
|
|
505
|
-
|
|
494
|
+
s && this._injectJsonLd(s), r && this._setCanonical(r), o && this._setMeta("og:title", o);
|
|
495
|
+
const m = y(a, 160) || y(l, 160);
|
|
496
|
+
m ? this._setMeta("og:description", m) : this._restoreMetaProperty(
|
|
506
497
|
"og:description",
|
|
507
498
|
this._originals?.ogDescription ?? null
|
|
508
|
-
),
|
|
499
|
+
), u && this._setMeta("og:image", u), r && this._setMeta("og:url", r), this._setMeta("og:type", "website"), this._setMeta("twitter:card", "summary_large_image"), m ? this._setMeta("description", m) : this._restoreMetaName(
|
|
509
500
|
"description",
|
|
510
501
|
this._originals?.metaDescription ?? null
|
|
511
|
-
),
|
|
502
|
+
), o && (document.title = `${o} | ${this._venueName}`), this._state = "entity";
|
|
512
503
|
}
|
|
513
504
|
/**
|
|
514
505
|
* Called when the user navigates back to the event listing.
|
|
@@ -532,19 +523,19 @@ const f = class f {
|
|
|
532
523
|
}
|
|
533
524
|
};
|
|
534
525
|
f._activeInstance = null;
|
|
535
|
-
let
|
|
526
|
+
let E = f;
|
|
536
527
|
export {
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
528
|
+
E as HostSeoController,
|
|
529
|
+
F as buildCollectionJsonLd,
|
|
530
|
+
z as buildEventJsonLd,
|
|
531
|
+
q as buildOffers,
|
|
532
|
+
j as buildPerformers,
|
|
533
|
+
T as buildPostalAddress,
|
|
534
|
+
J as buildSeriesJsonLd,
|
|
535
|
+
H as escapeJsonLdForScript,
|
|
536
|
+
v as formatDateTimeWithOffset,
|
|
537
|
+
I as getEventStatus,
|
|
538
|
+
w as getTicketAvailability,
|
|
539
|
+
Z as parseAddressToPostal
|
|
549
540
|
};
|
|
550
541
|
//# sourceMappingURL=seo.mjs.map
|