@getmicdrop/venue-calendar 4.0.79 → 4.0.81

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 (125) hide show
  1. package/README.md +173 -128
  2. package/dist/{CarouselView.legacy-CsMGxVbb.js → CarouselView.legacy-Bn76lnuH.js} +3 -3
  3. package/dist/{CarouselView.legacy-CsMGxVbb.js.map → CarouselView.legacy-Bn76lnuH.js.map} +1 -1
  4. package/dist/{CartView-BOaZufWZ.js → CartView-lR1zLxmN.js} +277 -280
  5. package/dist/CartView-lR1zLxmN.js.map +1 -0
  6. package/dist/{Checkout-bkXNpxIB.js → Checkout-D5mXj5zN.js} +69 -73
  7. package/dist/Checkout-D5mXj5zN.js.map +1 -0
  8. package/dist/Checkout-KyLZlwLk.js +1673 -0
  9. package/dist/Checkout-KyLZlwLk.js.map +1 -0
  10. package/dist/{Checkout.legacy-BOPwZMyO.js → Checkout.legacy-Dl8Oh7y3.js} +95 -99
  11. package/dist/Checkout.legacy-Dl8Oh7y3.js.map +1 -0
  12. package/dist/CheckoutTimer-Deo1mLnO.js +141 -0
  13. package/dist/CheckoutTimer-Deo1mLnO.js.map +1 -0
  14. package/dist/CollectionView-C1O9xfVC.js +338 -0
  15. package/dist/CollectionView-C1O9xfVC.js.map +1 -0
  16. package/dist/{CollectionView.legacy-Dw-J6Ycd.js → CollectionView.legacy-DK_mCA_g.js} +21 -24
  17. package/dist/{CollectionView.legacy-Dw-J6Ycd.js.map → CollectionView.legacy-DK_mCA_g.js.map} +1 -1
  18. package/dist/Event-B5WRygEf.js +2240 -0
  19. package/dist/Event-B5WRygEf.js.map +1 -0
  20. package/dist/EventPage-f1AOk4Jb.js +577 -0
  21. package/dist/EventPage-f1AOk4Jb.js.map +1 -0
  22. package/dist/{EventPage.legacy-Br2M8N9-.js → EventPage.legacy-Bk3PJyJs.js} +408 -411
  23. package/dist/EventPage.legacy-Bk3PJyJs.js.map +1 -0
  24. package/dist/{FeaturedView.legacy-B86kMzvH.js → FeaturedView.legacy-BzCt1X1W.js} +18 -18
  25. package/dist/{FeaturedView.legacy-B86kMzvH.js.map → FeaturedView.legacy-BzCt1X1W.js.map} +1 -1
  26. package/dist/{GalleryCard-CTsYUZu6.js → GalleryCard-C1EKGErR.js} +14 -14
  27. package/dist/{GalleryCard-CTsYUZu6.js.map → GalleryCard-C1EKGErR.js.map} +1 -1
  28. package/dist/{GalleryView.legacy-uIexOsl5.js → GalleryView.legacy-BmQtZKl7.js} +3 -3
  29. package/dist/{GalleryView.legacy-uIexOsl5.js.map → GalleryView.legacy-BmQtZKl7.js.map} +1 -1
  30. package/dist/{GroupedListView.legacy-DMAwHQ9T.js → GroupedListView.legacy-D72fbNfA.js} +21 -21
  31. package/dist/{GroupedListView.legacy-DMAwHQ9T.js.map → GroupedListView.legacy-D72fbNfA.js.map} +1 -1
  32. package/dist/Heading-Bwevh2c4.js +81 -0
  33. package/dist/Heading-Bwevh2c4.js.map +1 -0
  34. package/dist/ModalHeader-DKwE5ZYZ.js +22 -0
  35. package/dist/ModalHeader-DKwE5ZYZ.js.map +1 -0
  36. package/dist/OrderSummarySkeleton-DKWKZNLL.js +632 -0
  37. package/dist/OrderSummarySkeleton-DKWKZNLL.js.map +1 -0
  38. package/dist/{ScarcityBadge-D9RzN3Tz.js → ScarcityBadge-3cFxTOCh.js} +25 -29
  39. package/dist/{ScarcityBadge-D9RzN3Tz.js.map → ScarcityBadge-3cFxTOCh.js.map} +1 -1
  40. package/dist/{SeriesPage-D0pf6VuS.js → SeriesPage-Cq4Q8Vah.js} +17 -21
  41. package/dist/{SeriesPage-D0pf6VuS.js.map → SeriesPage-Cq4Q8Vah.js.map} +1 -1
  42. package/dist/{SeriesPage.legacy-VYpfyT7B.js → SeriesPage.legacy-zvgW0S_y.js} +67 -71
  43. package/dist/SeriesPage.legacy-zvgW0S_y.js.map +1 -0
  44. package/dist/{Success-Dxgbo_Ct.js → Success-kyiEO6_Z.js} +186 -175
  45. package/dist/{Success-Dxgbo_Ct.js.map → Success-kyiEO6_Z.js.map} +1 -1
  46. package/dist/{Success.legacy-umzUtow7.js → Success.legacy-BxKYmXgz.js} +53 -57
  47. package/dist/{Success.legacy-umzUtow7.js.map → Success.legacy-BxKYmXgz.js.map} +1 -1
  48. package/dist/Text-_bLxSPv-.js +158 -0
  49. package/dist/Text-_bLxSPv-.js.map +1 -0
  50. package/dist/{VenueCalendar-D9TCV_XB.js → VenueCalendar-d8u6MKEu.js} +8131 -22680
  51. package/dist/VenueCalendar-d8u6MKEu.js.map +1 -0
  52. package/dist/ViewTicketsEmbed-DquJJVIK.js +2081 -0
  53. package/dist/ViewTicketsEmbed-DquJJVIK.js.map +1 -0
  54. package/dist/__SKIP_NAVIGATION__-CmipjatL.js +18 -0
  55. package/dist/__SKIP_NAVIGATION__-CmipjatL.js.map +1 -0
  56. package/dist/api/api.cjs +1 -1
  57. package/dist/api/api.cjs.map +1 -1
  58. package/dist/api/api.mjs +482 -374
  59. package/dist/api/api.mjs.map +1 -1
  60. package/dist/api/cta.d.ts +2 -10
  61. package/dist/api/transformers/address.d.ts +18 -0
  62. package/dist/api/transformers/cart.d.ts +19 -0
  63. package/dist/api/transformers/collection.d.ts +12 -0
  64. package/dist/api/transformers/event.d.ts +50 -1
  65. package/dist/api/transformers/giftCard.d.ts +11 -0
  66. package/dist/api/transformers/index.d.ts +10 -3
  67. package/dist/api/transformers/performer.d.ts +8 -0
  68. package/dist/api/transformers/series.d.ts +12 -0
  69. package/dist/api/types.d.ts +423 -383
  70. package/dist/api-BzICORqy.js +6 -0
  71. package/dist/{api-DFMsiBOR.js.map → api-BzICORqy.js.map} +1 -1
  72. package/dist/colors-CmP-sSZD.js.map +1 -1
  73. package/dist/{data-toggle-store.svelte-DtDqN-QD.js → data-toggle-store.svelte-BGbzblUJ.js} +10 -15
  74. package/dist/data-toggle-store.svelte-BGbzblUJ.js.map +1 -0
  75. package/dist/index-BsWecoW1.js +63 -0
  76. package/dist/index-BsWecoW1.js.map +1 -0
  77. package/dist/labels-Bj_cocb1.js +966 -0
  78. package/dist/labels-Bj_cocb1.js.map +1 -0
  79. package/dist/seo/seo.cjs +1 -1
  80. package/dist/seo/seo.cjs.map +1 -1
  81. package/dist/seo/seo.mjs +131 -122
  82. package/dist/seo/seo.mjs.map +1 -1
  83. package/dist/transform-D7Oe8jUp.js +276 -0
  84. package/dist/transform-D7Oe8jUp.js.map +1 -0
  85. package/dist/types/index.d.ts +45 -0
  86. package/dist/venue-calendar.css +1 -1
  87. package/dist/venue-calendar.es.js +31 -37
  88. package/dist/venue-calendar.es.js.map +1 -1
  89. package/dist/venue-calendar.iife.js +40 -107
  90. package/dist/venue-calendar.iife.js.map +1 -1
  91. package/dist/venue-calendar.umd.js +38 -125
  92. package/dist/venue-calendar.umd.js.map +1 -1
  93. package/package.json +170 -169
  94. package/dist/CartView-BOaZufWZ.js.map +0 -1
  95. package/dist/Checkout-DD6ZTUh-.js +0 -1531
  96. package/dist/Checkout-DD6ZTUh-.js.map +0 -1
  97. package/dist/Checkout-bkXNpxIB.js.map +0 -1
  98. package/dist/Checkout.legacy-BOPwZMyO.js.map +0 -1
  99. package/dist/CheckoutTimer-CHoKjZyH.js +0 -35
  100. package/dist/CheckoutTimer-CHoKjZyH.js.map +0 -1
  101. package/dist/CollectionView-Ce-OAEC4.js +0 -148
  102. package/dist/CollectionView-Ce-OAEC4.js.map +0 -1
  103. package/dist/Event-rdstzev0.js +0 -1910
  104. package/dist/Event-rdstzev0.js.map +0 -1
  105. package/dist/EventPage-B8VRC83d.js +0 -336
  106. package/dist/EventPage-B8VRC83d.js.map +0 -1
  107. package/dist/EventPage.legacy-Br2M8N9-.js.map +0 -1
  108. package/dist/Heading-AFd3o0xt.js +0 -44
  109. package/dist/Heading-AFd3o0xt.js.map +0 -1
  110. package/dist/OrderSummarySkeleton-dDKUH741.js +0 -16
  111. package/dist/OrderSummarySkeleton-dDKUH741.js.map +0 -1
  112. package/dist/SeriesPage.legacy-VYpfyT7B.js.map +0 -1
  113. package/dist/Text-CXR2fhx6.js +0 -54
  114. package/dist/Text-CXR2fhx6.js.map +0 -1
  115. package/dist/VenueCalendar-D9TCV_XB.js.map +0 -1
  116. package/dist/ViewTicketsEmbed-Bt05E5Ex.js +0 -2039
  117. package/dist/ViewTicketsEmbed-Bt05E5Ex.js.map +0 -1
  118. package/dist/__SKIP_NAVIGATION__-CJ96TTPE.js +0 -7
  119. package/dist/__SKIP_NAVIGATION__-CJ96TTPE.js.map +0 -1
  120. package/dist/api-DFMsiBOR.js +0 -12
  121. package/dist/data-toggle-store.svelte-DtDqN-QD.js.map +0 -1
  122. package/dist/labels-CClq3Rb9.js +0 -659
  123. package/dist/labels-CClq3Rb9.js.map +0 -1
  124. package/dist/transform-CWf-YI_e.js +0 -275
  125. package/dist/transform-CWf-YI_e.js.map +0 -1
package/dist/seo/seo.mjs CHANGED
@@ -1,15 +1,14 @@
1
- function A() {
1
+ function b() {
2
2
  return "America/Los_Angeles";
3
3
  }
4
- function M(i) {
4
+ function w(i) {
5
5
  return i.replace(/</g, "\\u003c").replace(/>/g, "\\u003e").replace(/&/g, "\\u0026");
6
6
  }
7
7
  function v(i, t) {
8
8
  if (!i) return null;
9
9
  const e = new Date(i);
10
10
  if (isNaN(e.getTime())) return null;
11
- const s = new Intl.DateTimeFormat("en-US", {
12
- timeZone: t,
11
+ const n = {
13
12
  year: "numeric",
14
13
  month: "2-digit",
15
14
  day: "2-digit",
@@ -18,18 +17,28 @@ function v(i, t) {
18
17
  second: "2-digit",
19
18
  hour12: !1,
20
19
  timeZoneName: "shortOffset"
21
- }).formatToParts(e), r = (u) => s.find((p) => p.type === u)?.value || "", o = r("year"), l = r("month"), c = r("day"), a = r("hour"), d = r("minute"), m = r("second"), h = r("timeZoneName");
22
- let g = "+00:00";
20
+ };
21
+ let s;
22
+ try {
23
+ s = new Intl.DateTimeFormat("en-US", { ...n, timeZone: t });
24
+ } catch {
25
+ s = new Intl.DateTimeFormat("en-US", {
26
+ ...n,
27
+ timeZone: b()
28
+ });
29
+ }
30
+ const a = s.formatToParts(e), r = (m) => a.find((_) => _.type === m)?.value || "", l = r("year"), c = r("month"), o = r("day"), u = r("hour"), d = r("minute"), g = r("second"), h = r("timeZoneName");
31
+ let p = "+00:00";
23
32
  if (h) {
24
- const u = h.match(/GMT([+-])(\d+)(?::(\d+))?/);
25
- if (u) {
26
- const p = u[1], E = u[2].padStart(2, "0"), P = u[3] || "00";
27
- g = `${p}${E}:${P}`;
33
+ const m = h.match(/GMT([+-])(\d+)(?::(\d+))?/);
34
+ if (m) {
35
+ const _ = m[1], P = m[2].padStart(2, "0"), I = m[3] || "00";
36
+ p = `${_}${P}:${I}`;
28
37
  }
29
38
  }
30
- return `${o}-${l}-${c}T${a}:${d}:${m}${g}`;
39
+ return `${l}-${c}-${o}T${u}:${d}:${g}${p}`;
31
40
  }
32
- function I(i) {
41
+ function L(i) {
33
42
  if (!i) return null;
34
43
  const t = i.split(",").map((s) => s.trim());
35
44
  if (t.length < 2)
@@ -53,59 +62,59 @@ function I(i) {
53
62
  addressCountry: "US"
54
63
  };
55
64
  }
56
- function T(i, t) {
65
+ function N(i, t) {
57
66
  if (i && (i.city || i.state || i.postalCode)) {
58
67
  const e = { "@type": "PostalAddress" };
59
68
  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;
60
69
  }
61
- return I(i && i.address || t || null);
70
+ return L(i && i.address || t || null);
62
71
  }
63
- function N(i) {
72
+ function E(i) {
64
73
  if (!i) return "https://schema.org/EventScheduled";
65
74
  const t = i.toLowerCase();
66
75
  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";
67
76
  }
68
- function _(i) {
77
+ function S(i) {
69
78
  if ((i.remainingCapacity ?? i.quantityRemaining ?? i.quantity) === 0 || i.soldOut)
70
79
  return "https://schema.org/SoldOut";
71
80
  const e = /* @__PURE__ */ new Date(), n = i.salesBegin || i.salesStart || i.saleBegin || i.onSaleStart, s = i.salesEnd || i.saleEnd || i.onSaleEnd;
72
81
  return n && new Date(n) > e ? "https://schema.org/PreOrder" : s && new Date(s) < e ? "https://schema.org/SoldOut" : "https://schema.org/InStock";
73
82
  }
74
- function L(i, t) {
83
+ function O(i, t) {
75
84
  if (!i || i.length === 0) return null;
76
85
  const e = i.filter((l) => {
77
- const c = l.visibility ?? 0, a = c === 0 || c === 1, d = l.salesChannel !== 2;
78
- return a && d;
86
+ const c = l.visibility ?? 0, o = c === 0 || c === 1, u = l.salesChannel !== 2;
87
+ return o && u;
79
88
  });
80
89
  if (e.length === 0) return null;
81
90
  const n = e.map((l) => parseFloat(String(l.price ?? 0))).filter((l) => !isNaN(l));
82
91
  if (n.length === 0) return null;
83
- const s = Math.min(...n), r = Math.max(...n);
84
- if (s !== r)
92
+ const s = Math.min(...n), a = Math.max(...n);
93
+ if (s !== a)
85
94
  return {
86
95
  "@type": "AggregateOffer",
87
96
  lowPrice: s,
88
- highPrice: r,
97
+ highPrice: a,
89
98
  priceCurrency: "USD",
90
- availability: _(e[0]),
99
+ availability: S(e[0]),
91
100
  url: t || void 0,
92
101
  validFrom: e[0]?.salesBegin || e[0]?.salesStart || void 0
93
102
  };
94
- const o = e[0];
103
+ const r = e[0];
95
104
  return {
96
105
  "@type": "Offer",
97
106
  price: s,
98
107
  priceCurrency: "USD",
99
- availability: _(o),
108
+ availability: S(r),
100
109
  url: t || void 0,
101
- validFrom: o?.salesBegin || o?.salesStart || void 0
110
+ validFrom: r?.salesBegin || r?.salesStart || void 0
102
111
  };
103
112
  }
104
- function $(i) {
113
+ function U(i) {
105
114
  if (!i || i.length === 0) return null;
106
115
  const t = i.filter((e) => {
107
- const n = e.acceptedState === 2, s = !e.shouldBeHidden, r = e.RosterPerformer?.User?.performerProfile, o = r?.firstName || r?.lastName || r?.displayName;
108
- return n && s && o;
116
+ const n = e.acceptedState === 2, s = !e.shouldBeHidden, a = e.RosterPerformer?.User?.performerProfile, r = a?.firstName || a?.lastName || a?.displayName;
117
+ return n && s && r;
109
118
  });
110
119
  return t.length === 0 ? null : t.map((e) => {
111
120
  const n = e.RosterPerformer?.User?.performerProfile;
@@ -115,22 +124,22 @@ function $(i) {
115
124
  };
116
125
  });
117
126
  }
118
- function O(i) {
127
+ function $(i) {
119
128
  const {
120
129
  event: t,
121
130
  venue: e,
122
- venueTimeZone: n = A(),
131
+ venueTimeZone: n = b(),
123
132
  eventUrl: s,
124
- organizer: r
133
+ organizer: a
125
134
  } = i;
126
135
  if (!t) return null;
127
- const o = v(
136
+ const r = v(
128
137
  t.startDateTime,
129
138
  n
130
139
  );
131
- if (!t.name || !o || !e?.name)
140
+ if (!t.name || !r || !e?.name)
132
141
  return null;
133
- const l = T(
142
+ const l = N(
134
143
  e,
135
144
  e?.googleLocationNameCache
136
145
  ), c = {
@@ -138,33 +147,33 @@ function O(i) {
138
147
  name: e.name
139
148
  };
140
149
  l && (c.address = l);
141
- const a = {
150
+ const o = {
142
151
  "@context": "https://schema.org",
143
152
  "@type": "Event",
144
153
  name: t.name,
145
- startDate: o,
146
- eventStatus: N(t.status),
154
+ startDate: r,
155
+ eventStatus: E(t.status),
147
156
  eventAttendanceMode: "https://schema.org/OfflineEventAttendanceMode",
148
157
  location: c
149
- }, d = v(t.endDateTime, n);
150
- d && (a.endDate = d);
151
- const m = t.description || t.eventSummary;
152
- m && (a.description = m);
153
- const h = t.image || t.coverImage || t.ShowImage;
154
- h && (a.image = [h]);
155
- const g = L(t.availableTickets, s);
156
- g && (a.offers = g);
157
- const u = $(t.performers);
158
- if (u && u.length > 0 && (a.performer = u), r?.name) {
159
- const p = {
158
+ }, u = v(t.endDateTime, n);
159
+ u && (o.endDate = u);
160
+ const d = t.description || t.eventSummary;
161
+ d && (o.description = d);
162
+ const g = t.image || t.coverImage || t.ShowImage;
163
+ g && (o.image = [g]);
164
+ const h = O(t.availableTickets, s);
165
+ h && (o.offers = h);
166
+ const p = U(t.performers);
167
+ if (p && p.length > 0 && (o.performer = p), a?.name) {
168
+ const m = {
160
169
  "@type": "Organization",
161
- name: r.name
170
+ name: a.name
162
171
  };
163
- r.url && (p.url = r.url), a.organizer = p;
172
+ a.url && (m.url = a.url), o.organizer = m;
164
173
  }
165
- return s && (a.url = s), a;
174
+ return s && (o.url = s), o;
166
175
  }
167
- function b(i) {
176
+ function A(i) {
168
177
  switch (i) {
169
178
  case "available":
170
179
  return "https://schema.org/InStock";
@@ -178,15 +187,15 @@ function b(i) {
178
187
  return "https://schema.org/InStock";
179
188
  }
180
189
  }
181
- function U(i, t) {
190
+ function D(i, t) {
182
191
  if (!i || i.length === 0) return null;
183
192
  const e = i.filter(
184
- (o) => o.status !== "sold_out" && o.status !== "ended"
193
+ (r) => r.status !== "sold_out" && r.status !== "ended"
185
194
  );
186
195
  if (e.length === 0) {
187
- const o = i.map((a) => a.price).filter((a) => !isNaN(a));
188
- if (o.length === 0) return null;
189
- const l = Math.min(...o), c = Math.max(...o);
196
+ const r = i.map((o) => o.price).filter((o) => !isNaN(o));
197
+ if (r.length === 0) return null;
198
+ const l = Math.min(...r), c = Math.max(...r);
190
199
  return l !== c ? {
191
200
  "@type": "AggregateOffer",
192
201
  lowPrice: l,
@@ -200,26 +209,26 @@ function U(i, t) {
200
209
  availability: "https://schema.org/SoldOut"
201
210
  };
202
211
  }
203
- const n = e.map((o) => o.price).filter((o) => !isNaN(o));
212
+ const n = e.map((r) => r.price).filter((r) => !isNaN(r));
204
213
  if (n.length === 0) return null;
205
- const s = Math.min(...n), r = Math.max(...n);
206
- return s !== r ? {
214
+ const s = Math.min(...n), a = Math.max(...n);
215
+ return s !== a ? {
207
216
  "@type": "AggregateOffer",
208
217
  lowPrice: s,
209
- highPrice: r,
218
+ highPrice: a,
210
219
  priceCurrency: "USD",
211
- availability: b(e[0].status)
220
+ availability: A(e[0].status)
212
221
  } : {
213
222
  "@type": "Offer",
214
223
  price: s,
215
224
  priceCurrency: "USD",
216
- availability: b(e[0].status)
225
+ availability: A(e[0].status)
217
226
  };
218
227
  }
219
- function D(i) {
228
+ function C(i) {
220
229
  const { series: t, baseEventUrl: e } = i;
221
230
  if (!t.title || !t.occurrences || t.occurrences.length === 0 || !t.venue?.name) return null;
222
- const n = T(
231
+ const n = N(
223
232
  t.venue,
224
233
  t.venue.googleLocationNameCache
225
234
  ), s = {
@@ -227,60 +236,60 @@ function D(i) {
227
236
  name: t.venue.name
228
237
  };
229
238
  n && (s.address = n);
230
- const r = {
239
+ const a = {
231
240
  "@context": "https://schema.org",
232
241
  "@type": "EventSeries",
233
242
  name: t.title,
234
243
  location: s
235
- }, o = t.description || t.eventSummary;
236
- o && (r.description = o), t.image && (r.image = [t.image]);
237
- const l = t.performers?.filter((a) => a.displayName);
238
- l && l.length > 0 && (r.performer = l.map((a) => ({
244
+ }, r = t.description || t.eventSummary;
245
+ r && (a.description = r), t.image && (a.image = [t.image]);
246
+ const l = t.performers?.filter((o) => o.displayName);
247
+ l && l.length > 0 && (a.performer = l.map((o) => ({
239
248
  "@type": "PerformingGroup",
240
- name: a.displayName
249
+ name: o.displayName
241
250
  })));
242
251
  const c = [];
243
- for (const a of t.occurrences) {
244
- const d = v(
245
- a.startDateTime,
252
+ for (const o of t.occurrences) {
253
+ const u = v(
254
+ o.startDateTime,
246
255
  t.timeZone
247
256
  );
248
- if (!d) continue;
249
- const m = {
257
+ if (!u) continue;
258
+ const d = {
250
259
  "@type": "Event",
251
- name: a.title,
252
- startDate: d,
253
- eventStatus: N(a.status),
260
+ name: o.title,
261
+ startDate: u,
262
+ eventStatus: E(o.status),
254
263
  location: s
255
264
  };
256
- e && (m["@id"] = `${e}/${a.id}-${a.slug}`);
257
- const h = v(a.endDateTime, t.timeZone);
258
- h && (m.endDate = h);
259
- const g = U(a.tickets, a.status);
260
- g && (m.offers = g), c.push(m);
265
+ e && (d["@id"] = `${e}/${o.id}-${o.slug}`);
266
+ const g = v(o.endDateTime, t.timeZone);
267
+ g && (d.endDate = g);
268
+ const h = D(o.tickets, o.status);
269
+ h && (d.offers = h), c.push(d);
261
270
  }
262
- return c.length === 0 ? null : (r.subEvent = c, r);
271
+ return c.length === 0 ? null : (a.subEvent = c, a);
263
272
  }
264
- function C(i) {
273
+ function M(i) {
265
274
  const { collection: t, baseEventUrl: e } = i;
266
275
  if (!t.collectionTitle || !t.events || t.events.length === 0) return null;
267
276
  const n = [];
268
- for (const o of t.events) {
269
- if (!o.title) continue;
277
+ for (const r of t.events) {
278
+ if (!r.title) continue;
270
279
  const l = {
271
280
  "@type": "ListItem",
272
281
  position: n.length + 1,
273
- name: o.title
282
+ name: r.title
274
283
  };
275
- e && (l.url = o.slug ? `${e}/${o.id}-${o.slug}` : `${e}/${o.id}`), n.push(l);
284
+ e && (l.url = r.slug ? `${e}/${r.id}-${r.slug}` : `${e}/${r.id}`), n.push(l);
276
285
  }
277
286
  if (n.length === 0) return null;
278
287
  const s = {
279
288
  "@context": "https://schema.org",
280
289
  "@type": "CollectionPage",
281
290
  name: t.collectionTitle
282
- }, r = t.description || t.summary;
283
- return r && (s.description = r), t.coverImage && (s.image = [t.coverImage]), s.mainEntity = {
291
+ }, a = t.description || t.summary;
292
+ return a && (s.description = a), t.coverImage && (s.image = [t.coverImage]), s.mainEntity = {
284
293
  "@type": "ItemList",
285
294
  numberOfItems: n.length,
286
295
  itemListElement: n
@@ -291,22 +300,22 @@ function y(i) {
291
300
  }
292
301
  const f = class f {
293
302
  constructor(t) {
294
- 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);
303
+ 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 || b(), this._baseUrl = t.baseUrl || window.location.origin + window.location.pathname, this._saveOriginals(), f._activeInstance = this);
295
304
  }
296
305
  // ---------------------------------------------------------------------------
297
306
  // Private helpers
298
307
  // ---------------------------------------------------------------------------
299
308
  _saveOriginals() {
300
309
  if (this._originalsSaved) return;
301
- 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"]'), r = document.querySelector('meta[property="og:url"]'), o = document.querySelector('meta[property="og:type"]'), l = document.querySelector('meta[name="description"]');
310
+ 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"]');
302
311
  this._originals = {
303
312
  title: document.title,
304
313
  canonicalHref: t?.getAttribute("href") ?? null,
305
314
  ogTitle: e?.getAttribute("content") ?? null,
306
315
  ogDescription: n?.getAttribute("content") ?? null,
307
316
  ogImage: s?.getAttribute("content") ?? null,
308
- ogUrl: r?.getAttribute("content") ?? null,
309
- ogType: o?.getAttribute("content") ?? null,
317
+ ogUrl: a?.getAttribute("content") ?? null,
318
+ ogType: r?.getAttribute("content") ?? null,
310
319
  metaDescription: l?.getAttribute("content") ?? null
311
320
  }, this._originalsSaved = !0;
312
321
  }
@@ -396,13 +405,13 @@ const f = class f {
396
405
  if (typeof document > "u" || this._state === "destroyed") return;
397
406
  if (this._saveOriginals(), n) {
398
407
  this._venueName = n.name || this._venueName, this._venueAddress = n.address || n.googleLocationNameCache || this._venueAddress;
399
- const a = n.timeZone || n.timezone;
400
- a && (this._venueTimeZone = a);
408
+ const o = n.timeZone || n.timezone;
409
+ o && (this._venueTimeZone = o);
401
410
  }
402
- let s = null, r = "", o = "", l = "", c = "";
411
+ let s = null, a = "", r = "", l = "", c = "";
403
412
  if (t === "event") {
404
- const a = e.slug || y(e.name || "");
405
- c = this._buildEntityUrl("event", e.id || e.eventID || "", a), s = O({
413
+ const o = e.slug || y(e.name || "");
414
+ c = this._buildEntityUrl("event", e.id || e.eventID || "", o), s = $({
406
415
  event: e,
407
416
  venue: {
408
417
  name: this._venueName,
@@ -410,10 +419,10 @@ const f = class f {
410
419
  },
411
420
  venueTimeZone: this._venueTimeZone,
412
421
  eventUrl: c
413
- }), r = e.name || "", o = e.description || e.eventSummary || "", l = e.image || e.coverImage || e.ShowImage || "";
422
+ }), a = e.name || "", r = e.description || e.eventSummary || "", l = e.image || e.coverImage || e.ShowImage || "";
414
423
  } else if (t === "series") {
415
- const a = e.slug || y(e.title || "");
416
- c = this._buildEntityUrl("series", e.id || "", a), s = D({
424
+ const o = e.slug || y(e.title || "");
425
+ c = this._buildEntityUrl("series", e.id || "", o), s = C({
417
426
  series: {
418
427
  ...e,
419
428
  venue: {
@@ -423,16 +432,16 @@ const f = class f {
423
432
  timeZone: this._venueTimeZone
424
433
  },
425
434
  baseEventUrl: c
426
- }), r = e.title || "", o = e.description || e.eventSummary || "", l = e.image || "";
435
+ }), a = e.title || "", r = e.description || e.eventSummary || "", l = e.image || "";
427
436
  } else if (t === "collection") {
428
- const a = e.slug || y(e.collectionTitle || "");
429
- c = this._buildEntityUrl("collection", e.id || "", a), s = C({
437
+ const o = e.slug || y(e.collectionTitle || "");
438
+ c = this._buildEntityUrl("collection", e.id || "", o), s = M({
430
439
  collection: e,
431
440
  baseEventUrl: c,
432
441
  defaultTimeZone: this._venueTimeZone
433
- }), r = e.collectionTitle || "", o = e.description || e.summary || "", l = e.coverImage || "";
442
+ }), a = e.collectionTitle || "", r = e.description || e.summary || "", l = e.coverImage || "";
434
443
  }
435
- s && this._injectJsonLd(s), c && this._setCanonical(c), r && this._setMeta("og:title", r), o && this._setMeta("og:description", o), l && this._setMeta("og:image", l), c && this._setMeta("og:url", c), this._setMeta("og:type", "website"), this._setMeta("twitter:card", "summary_large_image"), o && this._setMeta("description", o), r && (document.title = `${r} | ${this._venueName}`), this._state = "entity";
444
+ 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";
436
445
  }
437
446
  /**
438
447
  * Called when the user navigates back to the event listing.
@@ -456,19 +465,19 @@ const f = class f {
456
465
  }
457
466
  };
458
467
  f._activeInstance = null;
459
- let S = f;
468
+ let T = f;
460
469
  export {
461
- S as HostSeoController,
462
- C as buildCollectionJsonLd,
463
- O as buildEventJsonLd,
464
- L as buildOffers,
465
- $ as buildPerformers,
466
- T as buildPostalAddress,
467
- D as buildSeriesJsonLd,
468
- M as escapeJsonLdForScript,
470
+ T as HostSeoController,
471
+ M as buildCollectionJsonLd,
472
+ $ as buildEventJsonLd,
473
+ O as buildOffers,
474
+ U as buildPerformers,
475
+ N as buildPostalAddress,
476
+ C as buildSeriesJsonLd,
477
+ w as escapeJsonLdForScript,
469
478
  v as formatDateTimeWithOffset,
470
- N as getEventStatus,
471
- _ as getTicketAvailability,
472
- I as parseAddressToPostal
479
+ E as getEventStatus,
480
+ S as getTicketAvailability,
481
+ L as parseAddressToPostal
473
482
  };
474
483
  //# sourceMappingURL=seo.mjs.map