@getmicdrop/venue-calendar 4.0.107 → 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.
Files changed (76) hide show
  1. package/dist/CartView-C3N5pw89.js +2381 -0
  2. package/dist/CartView-C3N5pw89.js.map +1 -0
  3. package/dist/{Checkout-Db6v9jHf.js → Checkout-CMEf_qnp.js} +604 -620
  4. package/dist/Checkout-CMEf_qnp.js.map +1 -0
  5. package/dist/{Checkout-JvsT5PvE.js → Checkout-Chki2df_.js} +130 -130
  6. package/dist/Checkout-Chki2df_.js.map +1 -0
  7. package/dist/{CheckoutTimer-3Hp1OSA3.js → CheckoutTimer-BAaY_60w.js} +5 -5
  8. package/dist/{CheckoutTimer-3Hp1OSA3.js.map → CheckoutTimer-BAaY_60w.js.map} +1 -1
  9. package/dist/{ClockIcon-CaqjP14C.js → ClockIcon-Dbbj_qur.js} +2 -2
  10. package/dist/{ClockIcon-CaqjP14C.js.map → ClockIcon-Dbbj_qur.js.map} +1 -1
  11. package/dist/{CollectionView-DXJfvNlt.js → CollectionView-RM30YPOJ.js} +41 -41
  12. package/dist/CollectionView-RM30YPOJ.js.map +1 -0
  13. package/dist/{Event-BJRx05iL.js → Event-kdxMa6OT.js} +1683 -1603
  14. package/dist/{Event-BJRx05iL.js.map → Event-kdxMa6OT.js.map} +1 -1
  15. package/dist/EventPage-BRBByBHe.js +1001 -0
  16. package/dist/EventPage-BRBByBHe.js.map +1 -0
  17. package/dist/{Heading-BbCHtFCM.js → Heading-CSDFD80h.js} +5 -5
  18. package/dist/{Heading-BbCHtFCM.js.map → Heading-CSDFD80h.js.map} +1 -1
  19. package/dist/{ScarcityBadge-iHyVN-k7.js → ScarcityBadge-B0ca48su.js} +12 -12
  20. package/dist/{ScarcityBadge-iHyVN-k7.js.map → ScarcityBadge-B0ca48su.js.map} +1 -1
  21. package/dist/{SeriesPage-b9aAGbcb.js → SeriesPage-CczfbUKO.js} +5 -5
  22. package/dist/{SeriesPage-b9aAGbcb.js.map → SeriesPage-CczfbUKO.js.map} +1 -1
  23. package/dist/{Spinner-DC99jWmt.js → Spinner--TOwvv9A.js} +2 -2
  24. package/dist/{Spinner-DC99jWmt.js.map → Spinner--TOwvv9A.js.map} +1 -1
  25. package/dist/{Success-H4fQrbfA.js → Success-DIWUGUPs.js} +136 -153
  26. package/dist/Success-DIWUGUPs.js.map +1 -0
  27. package/dist/{Text-CKmfSVMa.js → Text-WLl_ELy9.js} +7 -7
  28. package/dist/{Text-CKmfSVMa.js.map → Text-WLl_ELy9.js.map} +1 -1
  29. package/dist/{VenueCalendar-DmxiEy6q.js → VenueCalendar-CU5N9klc.js} +3366 -3319
  30. package/dist/VenueCalendar-CU5N9klc.js.map +1 -0
  31. package/dist/{ViewTicketsEmbed-BKrQgPf8.js → ViewTicketsEmbed-BOukxQIF.js} +6 -6
  32. package/dist/ViewTicketsEmbed-BOukxQIF.js.map +1 -0
  33. package/dist/api/api/events.d.ts +28 -12
  34. package/dist/api/api/index.d.ts +1 -1
  35. package/dist/api/api/route-manifest.d.ts +179 -0
  36. package/dist/api/api.cjs +1 -1
  37. package/dist/api/api.cjs.map +1 -1
  38. package/dist/api/api.mjs +316 -316
  39. package/dist/api/api.mjs.map +1 -1
  40. package/dist/{labels-DgU1irgj.js → labels-DXGieQXs.js} +86 -89
  41. package/dist/labels-DXGieQXs.js.map +1 -0
  42. package/dist/{modalManager.svelte-Ddxmimtn.js → modalManager.svelte-Dbd1xgTQ.js} +2 -2
  43. package/dist/{modalManager.svelte-Ddxmimtn.js.map → modalManager.svelte-Dbd1xgTQ.js.map} +1 -1
  44. package/dist/promo-oWi_MKmY.js +29 -0
  45. package/dist/promo-oWi_MKmY.js.map +1 -0
  46. package/dist/seo/helpers.d.ts +11 -0
  47. package/dist/seo/seo.cjs +1 -1
  48. package/dist/seo/seo.cjs.map +1 -1
  49. package/dist/seo/seo.mjs +170 -179
  50. package/dist/seo/seo.mjs.map +1 -1
  51. package/dist/{data-toggle-store.svelte-BEm-nTSr.js → showcase-state-options-DJJdjxvZ.js} +72 -45
  52. package/dist/showcase-state-options-DJJdjxvZ.js.map +1 -0
  53. package/dist/{transform-BOx8W51w.js → transform-Bgqwj9i-.js} +42 -42
  54. package/dist/transform-Bgqwj9i-.js.map +1 -0
  55. package/dist/venue-calendar.css +1 -1
  56. package/dist/venue-calendar.es.js +4 -4
  57. package/dist/venue-calendar.iife.js +50 -50
  58. package/dist/venue-calendar.iife.js.map +1 -1
  59. package/dist/venue-calendar.umd.js +44 -44
  60. package/dist/venue-calendar.umd.js.map +1 -1
  61. package/package.json +199 -187
  62. package/dist/CartView-DC_stfl4.js +0 -2348
  63. package/dist/CartView-DC_stfl4.js.map +0 -1
  64. package/dist/Checkout-Db6v9jHf.js.map +0 -1
  65. package/dist/Checkout-JvsT5PvE.js.map +0 -1
  66. package/dist/CollectionView-DXJfvNlt.js.map +0 -1
  67. package/dist/EventPage-E0tOQVFN.js +0 -940
  68. package/dist/EventPage-E0tOQVFN.js.map +0 -1
  69. package/dist/Success-H4fQrbfA.js.map +0 -1
  70. package/dist/VenueCalendar-DmxiEy6q.js.map +0 -1
  71. package/dist/ViewTicketsEmbed-BKrQgPf8.js.map +0 -1
  72. package/dist/data-toggle-store.svelte-BEm-nTSr.js.map +0 -1
  73. package/dist/labels-DgU1irgj.js.map +0 -1
  74. package/dist/promo-WWbp2OWI.js +0 -12
  75. package/dist/promo-WWbp2OWI.js.map +0 -1
  76. package/dist/transform-BOx8W51w.js.map +0 -1
package/dist/seo/seo.mjs CHANGED
@@ -1,7 +1,7 @@
1
- function S() {
1
+ function A() {
2
2
  return "America/Los_Angeles";
3
3
  }
4
- const O = /<\/(?:p|div|h[1-6]|li|ul|ol|blockquote|tr)>/gi, C = /<br\s*\/?>/gi, U = /<[^>]*>/g, $ = {
4
+ const $ = /<\/(?:p|div|h[1-6]|li|ul|ol|blockquote|tr)>/gi, O = /<br\s*\/?>/gi, P = /<[^>]*>/g, C = {
5
5
  "&amp;": "&",
6
6
  "&lt;": "<",
7
7
  "&gt;": ">",
@@ -11,25 +11,28 @@ const O = /<\/(?:p|div|h[1-6]|li|ul|ol|blockquote|tr)>/gi, C = /<br\s*\/?>/gi, U
11
11
  "&nbsp;": " "
12
12
  };
13
13
  function M(i) {
14
- return i.replace(/&#x([0-9a-f]+);/gi, (t, e) => A(parseInt(e, 16))).replace(/&#(\d+);/g, (t, e) => A(Number(e))).replace(/&[a-z0-9]+;/gi, (t) => $[t.toLowerCase()] ?? t);
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 A(i) {
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(C, " ").replace(O, " ").replace(U, "");
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 R(i) {
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 _(i, t) {
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: S()
55
+ timeZone: A()
53
56
  });
54
57
  }
55
- const a = s.formatToParts(e), r = (m) => a.find((b) => b.type === m)?.value || "", l = r("year"), c = r("month"), o = r("day"), d = r("hour"), u = r("minute"), h = r("second"), g = r("timeZoneName");
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 m = g.match(/GMT([+-])(\d+)(?::(\d+))?/);
59
- if (m) {
60
- const b = m[1], D = m[2].padStart(2, "0"), L = m[3] || "00";
61
- p = `${b}${D}:${L}`;
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}-${c}-${o}T${d}:${u}:${h}${p}`;
67
+ return `${l}-${u}-${r}T${m}:${c}:${h}${p}`;
65
68
  }
66
- function w(i) {
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 I(i, t) {
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 w(i && i.address || t || null);
98
+ return Z(i && i.address || t || null);
96
99
  }
97
- function P(i) {
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 E(i) {
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 = /* @__PURE__ */ new Date(), n = i.salesBegin || i.salesStart || i.saleBegin || i.onSaleStart, s = i.salesEnd || i.saleEnd || i.onSaleEnd;
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 Z(i, t) {
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 c = l.visibility ?? 0, o = c === 0 || c === 1, d = l.salesChannel !== 2;
112
- return o && d;
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), a = Math.max(...n);
118
- if (s !== a)
119
- return {
120
- "@type": "AggregateOffer",
121
- lowPrice: s,
122
- highPrice: a,
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: e[0]?.salesBegin || e[0]?.salesStart || void 0
127
- };
128
- const r = e[0];
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 q(i) {
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, a = e.RosterPerformer?.User?.performerProfile, r = a?.firstName || a?.lastName || a?.displayName;
142
- return n && s && r;
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 j(i) {
161
+ function z(i) {
153
162
  const {
154
163
  event: t,
155
164
  venue: e,
156
- venueTimeZone: n = S(),
165
+ venueTimeZone: n = A(),
157
166
  eventUrl: s,
158
- organizer: a
167
+ organizer: o
159
168
  } = i;
160
169
  if (!t) return null;
161
- const r = _(
170
+ const a = v(
162
171
  t.startDateTime,
163
172
  n
164
173
  );
165
- if (!t.name || !r || !e?.name)
174
+ if (!t.name || !a || !e?.name)
166
175
  return null;
167
- const l = I(
176
+ const l = T(
168
177
  e,
169
178
  e?.googleLocationNameCache
170
- ), c = {
179
+ ), u = {
171
180
  "@type": "Place",
172
181
  name: e.name
173
182
  };
174
- l && (c.address = l);
175
- const o = {
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: r,
180
- eventStatus: P(t.status),
188
+ startDate: a,
189
+ eventStatus: I(t.status),
181
190
  eventAttendanceMode: "https://schema.org/OfflineEventAttendanceMode",
182
- location: c
183
- }, d = _(t.endDateTime, n);
184
- d && (o.endDate = d);
185
- const u = y(t.description) || t.eventSummary;
186
- u && (o.description = u);
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 && (o.image = [h]);
189
- const g = Z(t.availableTickets, s);
190
- g && (o.offers = g);
191
- const p = q(t.performers);
192
- if (p && p.length > 0 && (o.performer = p), a?.name) {
193
- const m = {
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: a.name
204
+ name: o.name
196
205
  };
197
- a.url && (m.url = a.url), o.organizer = m;
206
+ o.url && (d.url = o.url), r.organizer = d;
198
207
  }
199
- return s && (o.url = s), o;
208
+ return s && (r.url = s), r;
200
209
  }
201
- function N(i) {
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 z(i, t) {
224
+ function B(i, t) {
216
225
  if (!i || i.length === 0) return null;
217
226
  const e = i.filter(
218
- (r) => r.status !== "sold_out" && r.status !== "ended"
227
+ (s) => s.status !== "sold_out" && s.status !== "ended"
219
228
  );
220
229
  if (e.length === 0) {
221
- const r = i.map((o) => o.price).filter((o) => !isNaN(o));
222
- if (r.length === 0) return null;
223
- const l = Math.min(...r), c = Math.max(...r);
224
- return l !== c ? {
225
- "@type": "AggregateOffer",
226
- lowPrice: l,
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((r) => r.price).filter((r) => !isNaN(r));
238
- if (n.length === 0) return null;
239
- const s = Math.min(...n), a = Math.max(...n);
240
- return s !== a ? {
241
- "@type": "AggregateOffer",
242
- lowPrice: s,
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 x(i) {
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 = I(
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 a = {
255
+ const o = {
265
256
  "@context": "https://schema.org",
266
257
  "@type": "EventSeries",
267
258
  name: t.title,
268
259
  location: s
269
- }, r = y(t.description) || t.eventSummary;
270
- r && (a.description = r), t.image && (a.image = [t.image]);
271
- const l = t.performers?.filter((o) => o.displayName);
272
- l && l.length > 0 && (a.performer = l.map((o) => ({
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: o.displayName
265
+ name: r.displayName
275
266
  })));
276
- const c = [];
277
- for (const o of t.occurrences) {
278
- const d = _(
279
- o.startDateTime,
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 (!d) continue;
283
- const u = {
273
+ if (!m) continue;
274
+ const c = {
284
275
  "@type": "Event",
285
- name: o.title,
286
- startDate: d,
287
- eventStatus: P(o.status),
276
+ name: r.title,
277
+ startDate: m,
278
+ eventStatus: I(r.status),
288
279
  location: s
289
280
  };
290
- e && (u["@id"] = `${e}/${o.id}-${o.slug}`);
291
- const h = _(o.endDateTime, t.timeZone);
292
- h && (u.endDate = h);
293
- const g = z(o.tickets, o.status);
294
- g && (u.offers = g), c.push(u);
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 c.length === 0 ? null : (a.subEvent = c, a);
287
+ return u.length === 0 ? null : (o.subEvent = u, o);
297
288
  }
298
- function B(i) {
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 r of t.events) {
303
- if (!r.title) continue;
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: r.title
298
+ name: a.title
308
299
  };
309
- e && (l.url = r.slug ? `${e}/${r.id}-${r.slug}` : `${e}/${r.id}`), n.push(l);
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
- }, a = y(t.description) || t.summary;
317
- return a && (s.description = a), t.coverImage && (s.image = [t.coverImage]), s.mainEntity = {
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 F = 70;
324
- function J(i) {
325
- return i.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "").slice(0, F).replace(/-+$/g, "");
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 v(i) {
328
- return i ? J(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 || S(), this._baseUrl = t.baseUrl || window.location.origin + window.location.pathname, this._saveOriginals(), f._activeInstance = this);
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
- ), a = document.querySelector(
338
+ ), o = document.querySelector(
348
339
  'meta[property="og:url"]'
349
- ), r = document.querySelector(
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: a?.getAttribute("content") ?? null,
361
- ogType: r?.getAttribute("content") ?? null,
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 || v(e.name);
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 u = n.timeZone || n.timezone;
464
- u && (this._venueTimeZone = u);
454
+ const c = n.timeZone || n.timezone;
455
+ c && (this._venueTimeZone = c);
465
456
  }
466
- let s = null, a = "", r = "", l = "", c = "", o = "";
457
+ let s = null, o = "", a = "", l = "", u = "", r = "";
467
458
  if (t === "event") {
468
- const u = e.slug || v(e.name || "");
469
- o = this._buildEntityUrl(
459
+ const c = e.slug || _(e.name || "");
460
+ r = this._buildEntityUrl(
470
461
  "event",
471
462
  e.id || e.eventID || "",
472
- u
473
- ), s = j({
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: o
481
- }), a = e.name || "", r = e.description || "", l = e.eventSummary || "", c = e.image || e.coverImage || e.ShowImage || "";
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 u = e.slug || v(e.title || "");
484
- o = this._buildEntityUrl("series", e.id || "", u), s = x({
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: o
494
- }), a = e.title || "", r = e.description || "", l = e.eventSummary || "", c = e.image || "";
484
+ baseEventUrl: r
485
+ }), o = e.title || "", a = e.description || "", l = e.eventSummary || "", u = e.image || "";
495
486
  } else if (t === "collection") {
496
- const u = e.slug || v(e.collectionTitle || "");
497
- o = this._buildEntityUrl("collection", e.id || "", u), s = B({
487
+ const c = e.slug || _(e.collectionTitle || "");
488
+ r = this._buildEntityUrl("collection", e.id || "", c), s = F({
498
489
  collection: e,
499
- baseEventUrl: o,
490
+ baseEventUrl: r,
500
491
  defaultTimeZone: this._venueTimeZone
501
- }), a = e.collectionTitle || "", r = e.description || "", l = e.summary || "", c = e.coverImage || "";
492
+ }), o = e.collectionTitle || "", a = e.description || "", l = e.summary || "", u = e.coverImage || "";
502
493
  }
503
- s && this._injectJsonLd(s), o && this._setCanonical(o), a && this._setMeta("og:title", a);
504
- const d = y(r, 160) || y(l, 160);
505
- d ? this._setMeta("og:description", d) : this._restoreMetaProperty(
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
- ), c && this._setMeta("og:image", c), o && this._setMeta("og:url", o), this._setMeta("og:type", "website"), this._setMeta("twitter:card", "summary_large_image"), d ? this._setMeta("description", d) : this._restoreMetaName(
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
- ), a && (document.title = `${a} | ${this._venueName}`), this._state = "entity";
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 T = f;
526
+ let E = f;
536
527
  export {
537
- T as HostSeoController,
538
- B as buildCollectionJsonLd,
539
- j as buildEventJsonLd,
540
- Z as buildOffers,
541
- q as buildPerformers,
542
- I as buildPostalAddress,
543
- x as buildSeriesJsonLd,
544
- R as escapeJsonLdForScript,
545
- _ as formatDateTimeWithOffset,
546
- P as getEventStatus,
547
- E as getTicketAvailability,
548
- w as parseAddressToPostal
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