@getmicdrop/venue-calendar 4.0.92 → 4.0.93
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/CartView-R5Z2q4Hy.js +2380 -0
- package/dist/CartView-R5Z2q4Hy.js.map +1 -0
- package/dist/Checkout-BUwdMMjA.js +1040 -0
- package/dist/Checkout-BUwdMMjA.js.map +1 -0
- package/dist/{Checkout-BscK0fmI.js → Checkout-avoTg_Zw.js} +612 -587
- package/dist/Checkout-avoTg_Zw.js.map +1 -0
- package/dist/{CheckoutTimer-CF6emJxC.js → CheckoutTimer-C_ax1Uo2.js} +37 -37
- package/dist/CheckoutTimer-C_ax1Uo2.js.map +1 -0
- package/dist/ClockIcon-C5muTIYL.js +32 -0
- package/dist/ClockIcon-C5muTIYL.js.map +1 -0
- package/dist/CollectionView-3MHrh5Zm.js +299 -0
- package/dist/CollectionView-3MHrh5Zm.js.map +1 -0
- package/dist/{Event-BzBZmp6N.js → Event-vR1aE543.js} +1593 -1509
- package/dist/Event-vR1aE543.js.map +1 -0
- package/dist/EventPage-Bhg-8-5x.js +566 -0
- package/dist/EventPage-Bhg-8-5x.js.map +1 -0
- package/dist/{Heading-BswFTsr3.js → Heading-ZcvybCi8.js} +30 -30
- package/dist/Heading-ZcvybCi8.js.map +1 -0
- package/dist/ScarcityBadge-CjTFAhat.js +167 -0
- package/dist/ScarcityBadge-CjTFAhat.js.map +1 -0
- package/dist/{SeriesPage-CbmuRofu.js → SeriesPage-DTEY83yR.js} +5 -5
- package/dist/{SeriesPage-CbmuRofu.js.map → SeriesPage-DTEY83yR.js.map} +1 -1
- package/dist/{Spinner-CAxL7NK0.js → Spinner--YBVljiP.js} +10 -10
- package/dist/Spinner--YBVljiP.js.map +1 -0
- package/dist/Success-ClCvTxTH.js +848 -0
- package/dist/Success-ClCvTxTH.js.map +1 -0
- package/dist/Text-SlV9H-GU.js +171 -0
- package/dist/Text-SlV9H-GU.js.map +1 -0
- package/dist/VenueCalendar-Bth_j-Wp.js +15657 -0
- package/dist/VenueCalendar-Bth_j-Wp.js.map +1 -0
- package/dist/{ViewTicketsEmbed-C7GPK33F.js → ViewTicketsEmbed-D7g7RYZI.js} +375 -364
- package/dist/{ViewTicketsEmbed-C7GPK33F.js.map → ViewTicketsEmbed-D7g7RYZI.js.map} +1 -1
- package/dist/api/{events.d.ts → api/events.d.ts} +9 -10
- package/dist/api/{index.d.ts → api/index.d.ts} +2 -1
- package/dist/api/api/result.d.ts +48 -0
- package/dist/api/{transformers → api/transformers}/event.d.ts +19 -10
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.cjs.map +1 -1
- package/dist/api/api.mjs +688 -594
- package/dist/api/api.mjs.map +1 -1
- package/dist/api/types.d.ts +447 -438
- package/dist/{data-toggle-store.svelte-BUOQgWTH.js → data-toggle-store.svelte-CFAVM8I0.js} +2 -2
- package/dist/{data-toggle-store.svelte-BUOQgWTH.js.map → data-toggle-store.svelte-CFAVM8I0.js.map} +1 -1
- package/dist/labels-CnpAWtkz.js +640 -0
- package/dist/labels-CnpAWtkz.js.map +1 -0
- package/dist/{modalManager.svelte-C8L8XPBi.js → modalManager.svelte-T2RGHhZH.js} +2 -2
- package/dist/{modalManager.svelte-C8L8XPBi.js.map → modalManager.svelte-T2RGHhZH.js.map} +1 -1
- package/dist/seo/seo.cjs +1 -1
- package/dist/seo/seo.cjs.map +1 -1
- package/dist/seo/seo.mjs +78 -74
- package/dist/seo/seo.mjs.map +1 -1
- package/dist/transform-C3TwZSH6.js +349 -0
- package/dist/transform-C3TwZSH6.js.map +1 -0
- package/dist/types/index.d.ts +22 -10
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +18 -18
- package/dist/venue-calendar.iife.js +46 -32
- package/dist/venue-calendar.iife.js.map +1 -1
- package/dist/venue-calendar.umd.js +45 -31
- package/dist/venue-calendar.umd.js.map +1 -1
- package/package.json +7 -5
- package/dist/CartView-IiXG4UTa.js +0 -2366
- package/dist/CartView-IiXG4UTa.js.map +0 -1
- package/dist/Checkout-BscK0fmI.js.map +0 -1
- package/dist/Checkout-Dx7QWFn9.js +0 -916
- package/dist/Checkout-Dx7QWFn9.js.map +0 -1
- package/dist/CheckoutTimer-CF6emJxC.js.map +0 -1
- package/dist/CollectionView-BAy5mYKg.js +0 -299
- package/dist/CollectionView-BAy5mYKg.js.map +0 -1
- package/dist/Event-BzBZmp6N.js.map +0 -1
- package/dist/EventPage-TNjZq1ls.js +0 -532
- package/dist/EventPage-TNjZq1ls.js.map +0 -1
- package/dist/Heading-BswFTsr3.js.map +0 -1
- package/dist/ScarcityBadge-DEzS1qXs.js +0 -90
- package/dist/ScarcityBadge-DEzS1qXs.js.map +0 -1
- package/dist/Spinner-CAxL7NK0.js.map +0 -1
- package/dist/Success-DdWMiFHS.js +0 -729
- package/dist/Success-DdWMiFHS.js.map +0 -1
- package/dist/Text-HvIEXENM.js +0 -167
- package/dist/Text-HvIEXENM.js.map +0 -1
- package/dist/VenueCalendar-DhxkKfli.js +0 -18400
- package/dist/VenueCalendar-DhxkKfli.js.map +0 -1
- package/dist/labels-Bwet5rDx.js +0 -965
- package/dist/labels-Bwet5rDx.js.map +0 -1
- package/dist/transform-5AH-sRWT.js +0 -274
- package/dist/transform-5AH-sRWT.js.map +0 -1
- /package/dist/api/{client.d.ts → api/client.d.ts} +0 -0
- /package/dist/api/{cta.d.ts → api/cta.d.ts} +0 -0
- /package/dist/api/{gift-cards.d.ts → api/gift-cards.d.ts} +0 -0
- /package/dist/api/{orders.d.ts → api/orders.d.ts} +0 -0
- /package/dist/api/{promo.d.ts → api/promo.d.ts} +0 -0
- /package/dist/api/{transformers → api/transformers}/address.d.ts +0 -0
- /package/dist/api/{transformers → api/transformers}/cart.d.ts +0 -0
- /package/dist/api/{transformers → api/transformers}/collection.d.ts +0 -0
- /package/dist/api/{transformers → api/transformers}/giftCard.d.ts +0 -0
- /package/dist/api/{transformers → api/transformers}/index.d.ts +0 -0
- /package/dist/api/{transformers → api/transformers}/order.d.ts +0 -0
- /package/dist/api/{transformers → api/transformers}/performer.d.ts +0 -0
- /package/dist/api/{transformers → api/transformers}/series.d.ts +0 -0
- /package/dist/api/{transformers → api/transformers}/venue.d.ts +0 -0
- /package/dist/api/{venues.d.ts → api/venues.d.ts} +0 -0
- /package/dist/api/{waitlist.d.ts → api/waitlist.d.ts} +0 -0
package/dist/seo/seo.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function b() {
|
|
2
2
|
return "America/Los_Angeles";
|
|
3
3
|
}
|
|
4
|
-
const
|
|
4
|
+
const D = /<\/(?:p|div|h[1-6]|li|ul|ol|blockquote|tr)>/gi, C = /<br\s*\/?>/gi, U = /<[^>]*>/g, $ = {
|
|
5
5
|
"&": "&",
|
|
6
6
|
"<": "<",
|
|
7
7
|
">": ">",
|
|
@@ -19,10 +19,10 @@ function A(i) {
|
|
|
19
19
|
function S(i, t) {
|
|
20
20
|
if (!i)
|
|
21
21
|
return "";
|
|
22
|
-
let e = String(i).replace(
|
|
22
|
+
let e = String(i).replace(C, " ").replace(D, " ").replace(U, "");
|
|
23
23
|
return e = M(e).replace(/\s+/g, " ").trim(), e;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function R(i) {
|
|
26
26
|
return i.replace(/</g, "\\u003c").replace(/>/g, "\\u003e").replace(/&/g, "\\u0026");
|
|
27
27
|
}
|
|
28
28
|
function v(i, t) {
|
|
@@ -39,16 +39,16 @@ function v(i, t) {
|
|
|
39
39
|
hour12: !1,
|
|
40
40
|
timeZoneName: "shortOffset"
|
|
41
41
|
};
|
|
42
|
-
let
|
|
42
|
+
let r;
|
|
43
43
|
try {
|
|
44
|
-
|
|
44
|
+
r = new Intl.DateTimeFormat("en-US", { ...n, timeZone: t });
|
|
45
45
|
} catch {
|
|
46
|
-
|
|
46
|
+
r = new Intl.DateTimeFormat("en-US", {
|
|
47
47
|
...n,
|
|
48
48
|
timeZone: b()
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
const a =
|
|
51
|
+
const a = r.formatToParts(e), s = (d) => a.find((_) => _.type === d)?.value || "", l = s("year"), c = s("month"), o = s("day"), u = s("hour"), m = s("minute"), h = s("second"), g = s("timeZoneName");
|
|
52
52
|
let p = "+00:00";
|
|
53
53
|
if (g) {
|
|
54
54
|
const d = g.match(/GMT([+-])(\d+)(?::(\d+))?/);
|
|
@@ -61,7 +61,7 @@ function v(i, t) {
|
|
|
61
61
|
}
|
|
62
62
|
function w(i) {
|
|
63
63
|
if (!i) return null;
|
|
64
|
-
const t = i.split(",").map((
|
|
64
|
+
const t = i.split(",").map((r) => r.trim());
|
|
65
65
|
if (t.length < 2)
|
|
66
66
|
return {
|
|
67
67
|
"@type": "PostalAddress",
|
|
@@ -83,14 +83,14 @@ function w(i) {
|
|
|
83
83
|
addressCountry: "US"
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function L(i, t) {
|
|
87
87
|
if (i && (i.city || i.state || i.postalCode)) {
|
|
88
88
|
const e = { "@type": "PostalAddress" };
|
|
89
89
|
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;
|
|
90
90
|
}
|
|
91
91
|
return w(i && i.address || t || null);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function I(i) {
|
|
94
94
|
if (!i) return "https://schema.org/EventScheduled";
|
|
95
95
|
const t = i.toLowerCase();
|
|
96
96
|
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";
|
|
@@ -98,8 +98,8 @@ function L(i) {
|
|
|
98
98
|
function E(i) {
|
|
99
99
|
if ((i.remainingCapacity ?? i.quantityRemaining ?? i.quantity) === 0 || i.soldOut)
|
|
100
100
|
return "https://schema.org/SoldOut";
|
|
101
|
-
const e = /* @__PURE__ */ new Date(), n = i.salesBegin || i.salesStart || i.saleBegin || i.onSaleStart,
|
|
102
|
-
return n && new Date(n) > e ? "https://schema.org/PreOrder" :
|
|
101
|
+
const e = /* @__PURE__ */ new Date(), n = i.salesBegin || i.salesStart || i.saleBegin || i.onSaleStart, r = i.salesEnd || i.saleEnd || i.onSaleEnd;
|
|
102
|
+
return n && new Date(n) > e ? "https://schema.org/PreOrder" : r && new Date(r) < e ? "https://schema.org/SoldOut" : "https://schema.org/InStock";
|
|
103
103
|
}
|
|
104
104
|
function Z(i, t) {
|
|
105
105
|
if (!i || i.length === 0) return null;
|
|
@@ -110,32 +110,32 @@ function Z(i, t) {
|
|
|
110
110
|
if (e.length === 0) return null;
|
|
111
111
|
const n = e.map((l) => parseFloat(String(l.price ?? 0))).filter((l) => !isNaN(l));
|
|
112
112
|
if (n.length === 0) return null;
|
|
113
|
-
const
|
|
114
|
-
if (
|
|
113
|
+
const r = Math.min(...n), a = Math.max(...n);
|
|
114
|
+
if (r !== a)
|
|
115
115
|
return {
|
|
116
116
|
"@type": "AggregateOffer",
|
|
117
|
-
lowPrice:
|
|
117
|
+
lowPrice: r,
|
|
118
118
|
highPrice: a,
|
|
119
119
|
priceCurrency: "USD",
|
|
120
120
|
availability: E(e[0]),
|
|
121
121
|
url: t || void 0,
|
|
122
122
|
validFrom: e[0]?.salesBegin || e[0]?.salesStart || void 0
|
|
123
123
|
};
|
|
124
|
-
const
|
|
124
|
+
const s = e[0];
|
|
125
125
|
return {
|
|
126
126
|
"@type": "Offer",
|
|
127
|
-
price:
|
|
127
|
+
price: r,
|
|
128
128
|
priceCurrency: "USD",
|
|
129
|
-
availability: E(
|
|
129
|
+
availability: E(s),
|
|
130
130
|
url: t || void 0,
|
|
131
|
-
validFrom:
|
|
131
|
+
validFrom: s?.salesBegin || s?.salesStart || void 0
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
function q(i) {
|
|
135
135
|
if (!i || i.length === 0) return null;
|
|
136
136
|
const t = i.filter((e) => {
|
|
137
|
-
const n = e.acceptedState === 2,
|
|
138
|
-
return n &&
|
|
137
|
+
const n = e.acceptedState === 2, r = !e.shouldBeHidden, a = e.RosterPerformer?.User?.performerProfile, s = a?.firstName || a?.lastName || a?.displayName;
|
|
138
|
+
return n && r && s;
|
|
139
139
|
});
|
|
140
140
|
return t.length === 0 ? null : t.map((e) => {
|
|
141
141
|
const n = e.RosterPerformer?.User?.performerProfile;
|
|
@@ -150,17 +150,17 @@ function j(i) {
|
|
|
150
150
|
event: t,
|
|
151
151
|
venue: e,
|
|
152
152
|
venueTimeZone: n = b(),
|
|
153
|
-
eventUrl:
|
|
153
|
+
eventUrl: r,
|
|
154
154
|
organizer: a
|
|
155
155
|
} = i;
|
|
156
156
|
if (!t) return null;
|
|
157
|
-
const
|
|
157
|
+
const s = v(
|
|
158
158
|
t.startDateTime,
|
|
159
159
|
n
|
|
160
160
|
);
|
|
161
|
-
if (!t.name || !
|
|
161
|
+
if (!t.name || !s || !e?.name)
|
|
162
162
|
return null;
|
|
163
|
-
const l =
|
|
163
|
+
const l = L(
|
|
164
164
|
e,
|
|
165
165
|
e?.googleLocationNameCache
|
|
166
166
|
), c = {
|
|
@@ -172,8 +172,8 @@ function j(i) {
|
|
|
172
172
|
"@context": "https://schema.org",
|
|
173
173
|
"@type": "Event",
|
|
174
174
|
name: t.name,
|
|
175
|
-
startDate:
|
|
176
|
-
eventStatus:
|
|
175
|
+
startDate: s,
|
|
176
|
+
eventStatus: I(t.status),
|
|
177
177
|
eventAttendanceMode: "https://schema.org/OfflineEventAttendanceMode",
|
|
178
178
|
location: c
|
|
179
179
|
}, u = v(t.endDateTime, n);
|
|
@@ -182,7 +182,7 @@ function j(i) {
|
|
|
182
182
|
m && (o.description = m);
|
|
183
183
|
const h = t.image || t.coverImage || t.ShowImage;
|
|
184
184
|
h && (o.image = [h]);
|
|
185
|
-
const g = Z(t.availableTickets,
|
|
185
|
+
const g = Z(t.availableTickets, r);
|
|
186
186
|
g && (o.offers = g);
|
|
187
187
|
const p = q(t.performers);
|
|
188
188
|
if (p && p.length > 0 && (o.performer = p), a?.name) {
|
|
@@ -192,7 +192,7 @@ function j(i) {
|
|
|
192
192
|
};
|
|
193
193
|
a.url && (d.url = a.url), o.organizer = d;
|
|
194
194
|
}
|
|
195
|
-
return
|
|
195
|
+
return r && (o.url = r), o;
|
|
196
196
|
}
|
|
197
197
|
function N(i) {
|
|
198
198
|
switch (i) {
|
|
@@ -211,12 +211,12 @@ function N(i) {
|
|
|
211
211
|
function x(i, t) {
|
|
212
212
|
if (!i || i.length === 0) return null;
|
|
213
213
|
const e = i.filter(
|
|
214
|
-
(
|
|
214
|
+
(s) => s.status !== "sold_out" && s.status !== "ended"
|
|
215
215
|
);
|
|
216
216
|
if (e.length === 0) {
|
|
217
|
-
const
|
|
218
|
-
if (
|
|
219
|
-
const l = Math.min(...
|
|
217
|
+
const s = i.map((o) => o.price).filter((o) => !isNaN(o));
|
|
218
|
+
if (s.length === 0) return null;
|
|
219
|
+
const l = Math.min(...s), c = Math.max(...s);
|
|
220
220
|
return l !== c ? {
|
|
221
221
|
"@type": "AggregateOffer",
|
|
222
222
|
lowPrice: l,
|
|
@@ -230,18 +230,18 @@ function x(i, t) {
|
|
|
230
230
|
availability: "https://schema.org/SoldOut"
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
|
-
const n = e.map((
|
|
233
|
+
const n = e.map((s) => s.price).filter((s) => !isNaN(s));
|
|
234
234
|
if (n.length === 0) return null;
|
|
235
|
-
const
|
|
236
|
-
return
|
|
235
|
+
const r = Math.min(...n), a = Math.max(...n);
|
|
236
|
+
return r !== a ? {
|
|
237
237
|
"@type": "AggregateOffer",
|
|
238
|
-
lowPrice:
|
|
238
|
+
lowPrice: r,
|
|
239
239
|
highPrice: a,
|
|
240
240
|
priceCurrency: "USD",
|
|
241
241
|
availability: N(e[0].status)
|
|
242
242
|
} : {
|
|
243
243
|
"@type": "Offer",
|
|
244
|
-
price:
|
|
244
|
+
price: r,
|
|
245
245
|
priceCurrency: "USD",
|
|
246
246
|
availability: N(e[0].status)
|
|
247
247
|
};
|
|
@@ -249,21 +249,21 @@ function x(i, t) {
|
|
|
249
249
|
function z(i) {
|
|
250
250
|
const { series: t, baseEventUrl: e } = i;
|
|
251
251
|
if (!t.title || !t.occurrences || t.occurrences.length === 0 || !t.venue?.name) return null;
|
|
252
|
-
const n =
|
|
252
|
+
const n = L(
|
|
253
253
|
t.venue,
|
|
254
254
|
t.venue.googleLocationNameCache
|
|
255
|
-
),
|
|
255
|
+
), r = {
|
|
256
256
|
"@type": "Place",
|
|
257
257
|
name: t.venue.name
|
|
258
258
|
};
|
|
259
|
-
n && (
|
|
259
|
+
n && (r.address = n);
|
|
260
260
|
const a = {
|
|
261
261
|
"@context": "https://schema.org",
|
|
262
262
|
"@type": "EventSeries",
|
|
263
263
|
name: t.title,
|
|
264
|
-
location:
|
|
265
|
-
},
|
|
266
|
-
|
|
264
|
+
location: r
|
|
265
|
+
}, s = S(t.description) || t.eventSummary;
|
|
266
|
+
s && (a.description = s), t.image && (a.image = [t.image]);
|
|
267
267
|
const l = t.performers?.filter((o) => o.displayName);
|
|
268
268
|
l && l.length > 0 && (a.performer = l.map((o) => ({
|
|
269
269
|
"@type": "PerformingGroup",
|
|
@@ -280,8 +280,8 @@ function z(i) {
|
|
|
280
280
|
"@type": "Event",
|
|
281
281
|
name: o.title,
|
|
282
282
|
startDate: u,
|
|
283
|
-
eventStatus:
|
|
284
|
-
location:
|
|
283
|
+
eventStatus: I(o.status),
|
|
284
|
+
location: r
|
|
285
285
|
};
|
|
286
286
|
e && (m["@id"] = `${e}/${o.id}-${o.slug}`);
|
|
287
287
|
const h = v(o.endDateTime, t.timeZone);
|
|
@@ -295,29 +295,33 @@ function B(i) {
|
|
|
295
295
|
const { collection: t, baseEventUrl: e } = i;
|
|
296
296
|
if (!t.collectionTitle || !t.events || t.events.length === 0) return null;
|
|
297
297
|
const n = [];
|
|
298
|
-
for (const
|
|
299
|
-
if (!
|
|
298
|
+
for (const s of t.events) {
|
|
299
|
+
if (!s.title) continue;
|
|
300
300
|
const l = {
|
|
301
301
|
"@type": "ListItem",
|
|
302
302
|
position: n.length + 1,
|
|
303
|
-
name:
|
|
303
|
+
name: s.title
|
|
304
304
|
};
|
|
305
|
-
e && (l.url =
|
|
305
|
+
e && (l.url = s.slug ? `${e}/${s.id}-${s.slug}` : `${e}/${s.id}`), n.push(l);
|
|
306
306
|
}
|
|
307
307
|
if (n.length === 0) return null;
|
|
308
|
-
const
|
|
308
|
+
const r = {
|
|
309
309
|
"@context": "https://schema.org",
|
|
310
310
|
"@type": "CollectionPage",
|
|
311
311
|
name: t.collectionTitle
|
|
312
312
|
}, a = S(t.description) || t.summary;
|
|
313
|
-
return a && (
|
|
313
|
+
return a && (r.description = a), t.coverImage && (r.image = [t.coverImage]), r.mainEntity = {
|
|
314
314
|
"@type": "ItemList",
|
|
315
315
|
numberOfItems: n.length,
|
|
316
316
|
itemListElement: n
|
|
317
|
-
},
|
|
317
|
+
}, r;
|
|
318
|
+
}
|
|
319
|
+
const F = 70;
|
|
320
|
+
function J(i) {
|
|
321
|
+
return i.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "").slice(0, F).replace(/-+$/g, "");
|
|
318
322
|
}
|
|
319
323
|
function y(i) {
|
|
320
|
-
return i ? i
|
|
324
|
+
return i ? J(i) : "";
|
|
321
325
|
}
|
|
322
326
|
const f = class f {
|
|
323
327
|
constructor(t) {
|
|
@@ -328,15 +332,15 @@ const f = class f {
|
|
|
328
332
|
// ---------------------------------------------------------------------------
|
|
329
333
|
_saveOriginals() {
|
|
330
334
|
if (this._originalsSaved) return;
|
|
331
|
-
const t = document.querySelector('link[rel="canonical"]'), e = document.querySelector('meta[property="og:title"]'), n = document.querySelector('meta[property="og:description"]'),
|
|
335
|
+
const t = document.querySelector('link[rel="canonical"]'), e = document.querySelector('meta[property="og:title"]'), n = document.querySelector('meta[property="og:description"]'), r = document.querySelector('meta[property="og:image"]'), a = document.querySelector('meta[property="og:url"]'), s = document.querySelector('meta[property="og:type"]'), l = document.querySelector('meta[name="description"]');
|
|
332
336
|
this._originals = {
|
|
333
337
|
title: document.title,
|
|
334
338
|
canonicalHref: t?.getAttribute("href") ?? null,
|
|
335
339
|
ogTitle: e?.getAttribute("content") ?? null,
|
|
336
340
|
ogDescription: n?.getAttribute("content") ?? null,
|
|
337
|
-
ogImage:
|
|
341
|
+
ogImage: r?.getAttribute("content") ?? null,
|
|
338
342
|
ogUrl: a?.getAttribute("content") ?? null,
|
|
339
|
-
ogType:
|
|
343
|
+
ogType: s?.getAttribute("content") ?? null,
|
|
340
344
|
metaDescription: l?.getAttribute("content") ?? null
|
|
341
345
|
}, this._originalsSaved = !0;
|
|
342
346
|
}
|
|
@@ -386,18 +390,18 @@ const f = class f {
|
|
|
386
390
|
"@context": "https://schema.org",
|
|
387
391
|
"@type": "ItemList",
|
|
388
392
|
itemListElement: t.map((e, n) => {
|
|
389
|
-
const
|
|
393
|
+
const r = e.slug || y(e.name);
|
|
390
394
|
return {
|
|
391
395
|
"@type": "ListItem",
|
|
392
396
|
position: n + 1,
|
|
393
|
-
url: `${this._baseUrl}?e=${e.id}-${
|
|
397
|
+
url: `${this._baseUrl}?e=${e.id}-${r}`
|
|
394
398
|
};
|
|
395
399
|
})
|
|
396
400
|
};
|
|
397
401
|
}
|
|
398
402
|
_buildEntityUrl(t, e, n) {
|
|
399
|
-
const
|
|
400
|
-
return `${this._baseUrl}?${
|
|
403
|
+
const r = t === "event" ? "e" : t === "series" ? "s" : "c";
|
|
404
|
+
return `${this._baseUrl}?${r}=${e}-${n}`;
|
|
401
405
|
}
|
|
402
406
|
// ---------------------------------------------------------------------------
|
|
403
407
|
// Public API
|
|
@@ -410,8 +414,8 @@ const f = class f {
|
|
|
410
414
|
if (typeof document > "u" || this._state === "destroyed") return;
|
|
411
415
|
if (e) {
|
|
412
416
|
this._venueName = e.name || this._venueName, this._venueAddress = e.address || e.googleLocationNameCache || this._venueAddress;
|
|
413
|
-
const
|
|
414
|
-
|
|
417
|
+
const r = e.timeZone || e.timezone;
|
|
418
|
+
r && (this._venueTimeZone = r);
|
|
415
419
|
}
|
|
416
420
|
this._events = t;
|
|
417
421
|
const n = this._buildItemList(t);
|
|
@@ -429,10 +433,10 @@ const f = class f {
|
|
|
429
433
|
const o = n.timeZone || n.timezone;
|
|
430
434
|
o && (this._venueTimeZone = o);
|
|
431
435
|
}
|
|
432
|
-
let
|
|
436
|
+
let r = null, a = "", s = "", l = "", c = "";
|
|
433
437
|
if (t === "event") {
|
|
434
438
|
const o = e.slug || y(e.name || "");
|
|
435
|
-
c = this._buildEntityUrl("event", e.id || e.eventID || "", o),
|
|
439
|
+
c = this._buildEntityUrl("event", e.id || e.eventID || "", o), r = j({
|
|
436
440
|
event: e,
|
|
437
441
|
venue: {
|
|
438
442
|
name: this._venueName,
|
|
@@ -440,10 +444,10 @@ const f = class f {
|
|
|
440
444
|
},
|
|
441
445
|
venueTimeZone: this._venueTimeZone,
|
|
442
446
|
eventUrl: c
|
|
443
|
-
}), a = e.name || "",
|
|
447
|
+
}), a = e.name || "", s = e.description || e.eventSummary || "", l = e.image || e.coverImage || e.ShowImage || "";
|
|
444
448
|
} else if (t === "series") {
|
|
445
449
|
const o = e.slug || y(e.title || "");
|
|
446
|
-
c = this._buildEntityUrl("series", e.id || "", o),
|
|
450
|
+
c = this._buildEntityUrl("series", e.id || "", o), r = z({
|
|
447
451
|
series: {
|
|
448
452
|
...e,
|
|
449
453
|
venue: {
|
|
@@ -453,16 +457,16 @@ const f = class f {
|
|
|
453
457
|
timeZone: this._venueTimeZone
|
|
454
458
|
},
|
|
455
459
|
baseEventUrl: c
|
|
456
|
-
}), a = e.title || "",
|
|
460
|
+
}), a = e.title || "", s = e.description || e.eventSummary || "", l = e.image || "";
|
|
457
461
|
} else if (t === "collection") {
|
|
458
462
|
const o = e.slug || y(e.collectionTitle || "");
|
|
459
|
-
c = this._buildEntityUrl("collection", e.id || "", o),
|
|
463
|
+
c = this._buildEntityUrl("collection", e.id || "", o), r = B({
|
|
460
464
|
collection: e,
|
|
461
465
|
baseEventUrl: c,
|
|
462
466
|
defaultTimeZone: this._venueTimeZone
|
|
463
|
-
}), a = e.collectionTitle || "",
|
|
467
|
+
}), a = e.collectionTitle || "", s = e.description || e.summary || "", l = e.coverImage || "";
|
|
464
468
|
}
|
|
465
|
-
|
|
469
|
+
r && this._injectJsonLd(r), c && this._setCanonical(c), a && this._setMeta("og:title", a), s && this._setMeta("og:description", s), l && this._setMeta("og:image", l), c && this._setMeta("og:url", c), this._setMeta("og:type", "website"), this._setMeta("twitter:card", "summary_large_image"), s && this._setMeta("description", s), a && (document.title = `${a} | ${this._venueName}`), this._state = "entity";
|
|
466
470
|
}
|
|
467
471
|
/**
|
|
468
472
|
* Called when the user navigates back to the event listing.
|
|
@@ -493,11 +497,11 @@ export {
|
|
|
493
497
|
j as buildEventJsonLd,
|
|
494
498
|
Z as buildOffers,
|
|
495
499
|
q as buildPerformers,
|
|
496
|
-
|
|
500
|
+
L as buildPostalAddress,
|
|
497
501
|
z as buildSeriesJsonLd,
|
|
498
|
-
|
|
502
|
+
R as escapeJsonLdForScript,
|
|
499
503
|
v as formatDateTimeWithOffset,
|
|
500
|
-
|
|
504
|
+
I as getEventStatus,
|
|
501
505
|
E as getTicketAvailability,
|
|
502
506
|
w as parseAddressToPostal
|
|
503
507
|
};
|