@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.
Files changed (102) hide show
  1. package/dist/CartView-R5Z2q4Hy.js +2380 -0
  2. package/dist/CartView-R5Z2q4Hy.js.map +1 -0
  3. package/dist/Checkout-BUwdMMjA.js +1040 -0
  4. package/dist/Checkout-BUwdMMjA.js.map +1 -0
  5. package/dist/{Checkout-BscK0fmI.js → Checkout-avoTg_Zw.js} +612 -587
  6. package/dist/Checkout-avoTg_Zw.js.map +1 -0
  7. package/dist/{CheckoutTimer-CF6emJxC.js → CheckoutTimer-C_ax1Uo2.js} +37 -37
  8. package/dist/CheckoutTimer-C_ax1Uo2.js.map +1 -0
  9. package/dist/ClockIcon-C5muTIYL.js +32 -0
  10. package/dist/ClockIcon-C5muTIYL.js.map +1 -0
  11. package/dist/CollectionView-3MHrh5Zm.js +299 -0
  12. package/dist/CollectionView-3MHrh5Zm.js.map +1 -0
  13. package/dist/{Event-BzBZmp6N.js → Event-vR1aE543.js} +1593 -1509
  14. package/dist/Event-vR1aE543.js.map +1 -0
  15. package/dist/EventPage-Bhg-8-5x.js +566 -0
  16. package/dist/EventPage-Bhg-8-5x.js.map +1 -0
  17. package/dist/{Heading-BswFTsr3.js → Heading-ZcvybCi8.js} +30 -30
  18. package/dist/Heading-ZcvybCi8.js.map +1 -0
  19. package/dist/ScarcityBadge-CjTFAhat.js +167 -0
  20. package/dist/ScarcityBadge-CjTFAhat.js.map +1 -0
  21. package/dist/{SeriesPage-CbmuRofu.js → SeriesPage-DTEY83yR.js} +5 -5
  22. package/dist/{SeriesPage-CbmuRofu.js.map → SeriesPage-DTEY83yR.js.map} +1 -1
  23. package/dist/{Spinner-CAxL7NK0.js → Spinner--YBVljiP.js} +10 -10
  24. package/dist/Spinner--YBVljiP.js.map +1 -0
  25. package/dist/Success-ClCvTxTH.js +848 -0
  26. package/dist/Success-ClCvTxTH.js.map +1 -0
  27. package/dist/Text-SlV9H-GU.js +171 -0
  28. package/dist/Text-SlV9H-GU.js.map +1 -0
  29. package/dist/VenueCalendar-Bth_j-Wp.js +15657 -0
  30. package/dist/VenueCalendar-Bth_j-Wp.js.map +1 -0
  31. package/dist/{ViewTicketsEmbed-C7GPK33F.js → ViewTicketsEmbed-D7g7RYZI.js} +375 -364
  32. package/dist/{ViewTicketsEmbed-C7GPK33F.js.map → ViewTicketsEmbed-D7g7RYZI.js.map} +1 -1
  33. package/dist/api/{events.d.ts → api/events.d.ts} +9 -10
  34. package/dist/api/{index.d.ts → api/index.d.ts} +2 -1
  35. package/dist/api/api/result.d.ts +48 -0
  36. package/dist/api/{transformers → api/transformers}/event.d.ts +19 -10
  37. package/dist/api/api.cjs +1 -1
  38. package/dist/api/api.cjs.map +1 -1
  39. package/dist/api/api.mjs +688 -594
  40. package/dist/api/api.mjs.map +1 -1
  41. package/dist/api/types.d.ts +447 -438
  42. package/dist/{data-toggle-store.svelte-BUOQgWTH.js → data-toggle-store.svelte-CFAVM8I0.js} +2 -2
  43. package/dist/{data-toggle-store.svelte-BUOQgWTH.js.map → data-toggle-store.svelte-CFAVM8I0.js.map} +1 -1
  44. package/dist/labels-CnpAWtkz.js +640 -0
  45. package/dist/labels-CnpAWtkz.js.map +1 -0
  46. package/dist/{modalManager.svelte-C8L8XPBi.js → modalManager.svelte-T2RGHhZH.js} +2 -2
  47. package/dist/{modalManager.svelte-C8L8XPBi.js.map → modalManager.svelte-T2RGHhZH.js.map} +1 -1
  48. package/dist/seo/seo.cjs +1 -1
  49. package/dist/seo/seo.cjs.map +1 -1
  50. package/dist/seo/seo.mjs +78 -74
  51. package/dist/seo/seo.mjs.map +1 -1
  52. package/dist/transform-C3TwZSH6.js +349 -0
  53. package/dist/transform-C3TwZSH6.js.map +1 -0
  54. package/dist/types/index.d.ts +22 -10
  55. package/dist/venue-calendar.css +1 -1
  56. package/dist/venue-calendar.es.js +18 -18
  57. package/dist/venue-calendar.iife.js +46 -32
  58. package/dist/venue-calendar.iife.js.map +1 -1
  59. package/dist/venue-calendar.umd.js +45 -31
  60. package/dist/venue-calendar.umd.js.map +1 -1
  61. package/package.json +7 -5
  62. package/dist/CartView-IiXG4UTa.js +0 -2366
  63. package/dist/CartView-IiXG4UTa.js.map +0 -1
  64. package/dist/Checkout-BscK0fmI.js.map +0 -1
  65. package/dist/Checkout-Dx7QWFn9.js +0 -916
  66. package/dist/Checkout-Dx7QWFn9.js.map +0 -1
  67. package/dist/CheckoutTimer-CF6emJxC.js.map +0 -1
  68. package/dist/CollectionView-BAy5mYKg.js +0 -299
  69. package/dist/CollectionView-BAy5mYKg.js.map +0 -1
  70. package/dist/Event-BzBZmp6N.js.map +0 -1
  71. package/dist/EventPage-TNjZq1ls.js +0 -532
  72. package/dist/EventPage-TNjZq1ls.js.map +0 -1
  73. package/dist/Heading-BswFTsr3.js.map +0 -1
  74. package/dist/ScarcityBadge-DEzS1qXs.js +0 -90
  75. package/dist/ScarcityBadge-DEzS1qXs.js.map +0 -1
  76. package/dist/Spinner-CAxL7NK0.js.map +0 -1
  77. package/dist/Success-DdWMiFHS.js +0 -729
  78. package/dist/Success-DdWMiFHS.js.map +0 -1
  79. package/dist/Text-HvIEXENM.js +0 -167
  80. package/dist/Text-HvIEXENM.js.map +0 -1
  81. package/dist/VenueCalendar-DhxkKfli.js +0 -18400
  82. package/dist/VenueCalendar-DhxkKfli.js.map +0 -1
  83. package/dist/labels-Bwet5rDx.js +0 -965
  84. package/dist/labels-Bwet5rDx.js.map +0 -1
  85. package/dist/transform-5AH-sRWT.js +0 -274
  86. package/dist/transform-5AH-sRWT.js.map +0 -1
  87. /package/dist/api/{client.d.ts → api/client.d.ts} +0 -0
  88. /package/dist/api/{cta.d.ts → api/cta.d.ts} +0 -0
  89. /package/dist/api/{gift-cards.d.ts → api/gift-cards.d.ts} +0 -0
  90. /package/dist/api/{orders.d.ts → api/orders.d.ts} +0 -0
  91. /package/dist/api/{promo.d.ts → api/promo.d.ts} +0 -0
  92. /package/dist/api/{transformers → api/transformers}/address.d.ts +0 -0
  93. /package/dist/api/{transformers → api/transformers}/cart.d.ts +0 -0
  94. /package/dist/api/{transformers → api/transformers}/collection.d.ts +0 -0
  95. /package/dist/api/{transformers → api/transformers}/giftCard.d.ts +0 -0
  96. /package/dist/api/{transformers → api/transformers}/index.d.ts +0 -0
  97. /package/dist/api/{transformers → api/transformers}/order.d.ts +0 -0
  98. /package/dist/api/{transformers → api/transformers}/performer.d.ts +0 -0
  99. /package/dist/api/{transformers → api/transformers}/series.d.ts +0 -0
  100. /package/dist/api/{transformers → api/transformers}/venue.d.ts +0 -0
  101. /package/dist/api/{venues.d.ts → api/venues.d.ts} +0 -0
  102. /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 C = /<\/(?:p|div|h[1-6]|li|ul|ol|blockquote|tr)>/gi, D = /<br\s*\/?>/gi, U = /<[^>]*>/g, $ = {
4
+ const D = /<\/(?:p|div|h[1-6]|li|ul|ol|blockquote|tr)>/gi, C = /<br\s*\/?>/gi, U = /<[^>]*>/g, $ = {
5
5
  "&amp;": "&",
6
6
  "&lt;": "<",
7
7
  "&gt;": ">",
@@ -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(D, " ").replace(C, " ").replace(U, "");
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 J(i) {
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 s;
42
+ let r;
43
43
  try {
44
- s = new Intl.DateTimeFormat("en-US", { ...n, timeZone: t });
44
+ r = new Intl.DateTimeFormat("en-US", { ...n, timeZone: t });
45
45
  } catch {
46
- s = new Intl.DateTimeFormat("en-US", {
46
+ r = new Intl.DateTimeFormat("en-US", {
47
47
  ...n,
48
48
  timeZone: b()
49
49
  });
50
50
  }
51
- const a = s.formatToParts(e), r = (d) => a.find((_) => _.type === d)?.value || "", l = r("year"), c = r("month"), o = r("day"), u = r("hour"), m = r("minute"), h = r("second"), g = r("timeZoneName");
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((s) => s.trim());
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 I(i, t) {
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 L(i) {
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, s = i.salesEnd || i.saleEnd || i.onSaleEnd;
102
- return n && new Date(n) > e ? "https://schema.org/PreOrder" : s && new Date(s) < e ? "https://schema.org/SoldOut" : "https://schema.org/InStock";
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 s = Math.min(...n), a = Math.max(...n);
114
- if (s !== a)
113
+ const r = Math.min(...n), a = Math.max(...n);
114
+ if (r !== a)
115
115
  return {
116
116
  "@type": "AggregateOffer",
117
- lowPrice: s,
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 r = e[0];
124
+ const s = e[0];
125
125
  return {
126
126
  "@type": "Offer",
127
- price: s,
127
+ price: r,
128
128
  priceCurrency: "USD",
129
- availability: E(r),
129
+ availability: E(s),
130
130
  url: t || void 0,
131
- validFrom: r?.salesBegin || r?.salesStart || void 0
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, s = !e.shouldBeHidden, a = e.RosterPerformer?.User?.performerProfile, r = a?.firstName || a?.lastName || a?.displayName;
138
- return n && s && r;
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: s,
153
+ eventUrl: r,
154
154
  organizer: a
155
155
  } = i;
156
156
  if (!t) return null;
157
- const r = v(
157
+ const s = v(
158
158
  t.startDateTime,
159
159
  n
160
160
  );
161
- if (!t.name || !r || !e?.name)
161
+ if (!t.name || !s || !e?.name)
162
162
  return null;
163
- const l = I(
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: r,
176
- eventStatus: L(t.status),
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, s);
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 s && (o.url = s), o;
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
- (r) => r.status !== "sold_out" && r.status !== "ended"
214
+ (s) => s.status !== "sold_out" && s.status !== "ended"
215
215
  );
216
216
  if (e.length === 0) {
217
- const r = i.map((o) => o.price).filter((o) => !isNaN(o));
218
- if (r.length === 0) return null;
219
- const l = Math.min(...r), c = Math.max(...r);
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((r) => r.price).filter((r) => !isNaN(r));
233
+ const n = e.map((s) => s.price).filter((s) => !isNaN(s));
234
234
  if (n.length === 0) return null;
235
- const s = Math.min(...n), a = Math.max(...n);
236
- return s !== a ? {
235
+ const r = Math.min(...n), a = Math.max(...n);
236
+ return r !== a ? {
237
237
  "@type": "AggregateOffer",
238
- lowPrice: s,
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: s,
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 = I(
252
+ const n = L(
253
253
  t.venue,
254
254
  t.venue.googleLocationNameCache
255
- ), s = {
255
+ ), r = {
256
256
  "@type": "Place",
257
257
  name: t.venue.name
258
258
  };
259
- n && (s.address = 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: s
265
- }, r = S(t.description) || t.eventSummary;
266
- r && (a.description = r), t.image && (a.image = [t.image]);
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: L(o.status),
284
- location: s
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 r of t.events) {
299
- if (!r.title) continue;
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: r.title
303
+ name: s.title
304
304
  };
305
- e && (l.url = r.slug ? `${e}/${r.id}-${r.slug}` : `${e}/${r.id}`), n.push(l);
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 s = {
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 && (s.description = a), t.coverImage && (s.image = [t.coverImage]), s.mainEntity = {
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
- }, s;
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.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/--+/g, "-").replace(/^-+|-+$/g, "") : "";
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"]'), s = document.querySelector('meta[property="og:image"]'), a = document.querySelector('meta[property="og:url"]'), r = document.querySelector('meta[property="og:type"]'), l = document.querySelector('meta[name="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: s?.getAttribute("content") ?? null,
341
+ ogImage: r?.getAttribute("content") ?? null,
338
342
  ogUrl: a?.getAttribute("content") ?? null,
339
- ogType: r?.getAttribute("content") ?? null,
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 s = e.slug || y(e.name);
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}-${s}`
397
+ url: `${this._baseUrl}?e=${e.id}-${r}`
394
398
  };
395
399
  })
396
400
  };
397
401
  }
398
402
  _buildEntityUrl(t, e, n) {
399
- const s = t === "event" ? "e" : t === "series" ? "s" : "c";
400
- return `${this._baseUrl}?${s}=${e}-${n}`;
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 s = e.timeZone || e.timezone;
414
- s && (this._venueTimeZone = s);
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 s = null, a = "", r = "", l = "", c = "";
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), s = j({
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 || "", r = e.description || e.eventSummary || "", l = e.image || e.coverImage || e.ShowImage || "";
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), s = z({
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 || "", r = e.description || e.eventSummary || "", l = e.image || "";
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), s = B({
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 || "", r = e.description || e.summary || "", l = e.coverImage || "";
467
+ }), a = e.collectionTitle || "", s = e.description || e.summary || "", l = e.coverImage || "";
464
468
  }
465
- s && this._injectJsonLd(s), c && this._setCanonical(c), a && this._setMeta("og:title", a), r && this._setMeta("og:description", r), l && this._setMeta("og:image", l), c && this._setMeta("og:url", c), this._setMeta("og:type", "website"), this._setMeta("twitter:card", "summary_large_image"), r && this._setMeta("description", r), a && (document.title = `${a} | ${this._venueName}`), this._state = "entity";
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
- I as buildPostalAddress,
500
+ L as buildPostalAddress,
497
501
  z as buildSeriesJsonLd,
498
- J as escapeJsonLdForScript,
502
+ R as escapeJsonLdForScript,
499
503
  v as formatDateTimeWithOffset,
500
- L as getEventStatus,
504
+ I as getEventStatus,
501
505
  E as getTicketAvailability,
502
506
  w as parseAddressToPostal
503
507
  };