@getmicdrop/venue-calendar 4.3.0 → 4.3.1
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/{Badge-XNQHeoZJ.js → Badge-Gg5PWs7f.js} +39 -60
- package/dist/Calendar-bhl8Q8us.js +1332 -0
- package/dist/{CalendarFoundryView-9LW4nveh.js → CalendarFoundryView-C2O_AmBk.js} +5881 -5311
- package/dist/CartView-D57bwixz.js +2245 -0
- package/dist/{Checkbox-BexPyTGk.js → Checkbox-24CWEsty.js} +1 -1
- package/dist/{Checkout-D_oRIhxJ.js → Checkout-BqaJK6UP.js} +136 -135
- package/dist/{Checkout-C6xmGlWs.js → Checkout-DQWeMchu.js} +100 -100
- package/dist/{CollectionView-BdVW1cJz.js → CollectionView-B-PR54hU.js} +3 -3
- package/dist/CropImage-CxLcNArr.js +445 -0
- package/dist/{Event-I5Wu3_AC.js → Event-DxNC58Zb.js} +327 -325
- package/dist/{EventPage-BjrFGlDJ.js → EventPage-Y3NWzmN0.js} +38 -38
- package/dist/{Heading-KNE3t6AC.js → Heading-cKAx0Ogl.js} +3 -1
- package/dist/Input-D1FpSX5Q.js +292 -0
- package/dist/{Modal-c4rwVXSs.js → Modal-LkN8lh_m.js} +5 -2
- package/dist/ModalFooter-B_8f1Z5p.js +301 -0
- package/dist/{PasswordInput-Dm4Z88em.js → PasswordInput-Bt6tvpzi.js} +19 -15
- package/dist/{ScarcityBadge-DMI7KfDF.js → ScarcityBadge-g0dRh6K7.js} +1 -1
- package/dist/{SeriesPage-BQGc51bF.js → SeriesPage-D2305oP-.js} +2 -2
- package/dist/{Spinner-C8M6STFM.js → Spinner-LroI7eOC.js} +1 -1
- package/dist/{Success-CxJiJEdx.js → Success-ClXshzvl.js} +1 -1
- package/dist/{ViewTicketsEmbed-D-w4zHtm.js → ViewTicketsEmbed-CvuMdTA7.js} +4 -4
- package/dist/{browser-By3zPFZd.js → browser-viCaCwoW.js} +1 -1
- package/dist/imageOptimizer-BwLwBMI6.js +112 -0
- package/dist/keyboard-fiZFqeNA.js +29 -0
- package/dist/{modalManager.svelte-CQrpnx4J.js → modalManager.svelte-B9mhX1cG.js} +1 -1
- package/dist/{phoneUtils-by0RmQv1.js → phoneUtils-C2GGZYvA.js} +319 -319
- package/dist/portal-DqxEuE-7.js +166 -0
- package/dist/{to-event-card-props-BdO47New.js → to-event-card-props-dIhKdERf.js} +103 -97
- package/dist/types/index.d.ts +11 -0
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +1053 -969
- package/dist/venue-calendar.iife.js +60 -60
- package/dist/venue-calendar.umd.js +57 -57
- package/dist/z-index-BgKs9X9U.js +225 -0
- package/package.json +220 -220
- package/dist/Calendar-C5tzjUQM.js +0 -1333
- package/dist/CartView-C4Fpn8mC.js +0 -2245
- package/dist/CropImage-D70HuWqC.js +0 -404
- package/dist/Input-Docb71Sc.js +0 -489
- package/dist/ModalFooter-CFgAtDI3.js +0 -464
- package/dist/api/api.cjs +0 -1
- package/dist/api/api.mjs +0 -1442
- package/dist/api/client.d.ts +0 -157
- package/dist/api/cta.d.ts +0 -50
- package/dist/api/events.d.ts +0 -202
- package/dist/api/gift-cards.d.ts +0 -119
- package/dist/api/index.d.ts +0 -46
- package/dist/api/orders.d.ts +0 -193
- package/dist/api/promo.d.ts +0 -45
- package/dist/api/result.d.ts +0 -78
- package/dist/api/route-manifest.d.ts +0 -206
- package/dist/api/transformers/address.d.ts +0 -18
- package/dist/api/transformers/cart.d.ts +0 -34
- package/dist/api/transformers/collection.d.ts +0 -12
- package/dist/api/transformers/event.d.ts +0 -177
- package/dist/api/transformers/faq.d.ts +0 -40
- package/dist/api/transformers/giftCard.d.ts +0 -11
- package/dist/api/transformers/index.d.ts +0 -27
- package/dist/api/transformers/order.d.ts +0 -44
- package/dist/api/transformers/performer.d.ts +0 -8
- package/dist/api/transformers/series.d.ts +0 -12
- package/dist/api/transformers/venue.d.ts +0 -65
- package/dist/api/types.d.ts +0 -554
- package/dist/api/venues.d.ts +0 -33
- package/dist/api/waitlist.d.ts +0 -77
- package/dist/imageOptimizer-CB3wKJU8.js +0 -47
- package/dist/seo/HostSeoController.d.ts +0 -68
- package/dist/seo/buildCollectionJsonLd.d.ts +0 -8
- package/dist/seo/buildEventJsonLd.d.ts +0 -9
- package/dist/seo/buildSeriesJsonLd.d.ts +0 -6
- package/dist/seo/helpers.d.ts +0 -88
- package/dist/seo/index.d.ts +0 -10
- package/dist/seo/seo.cjs +0 -1
- package/dist/seo/seo.mjs +0 -592
- package/dist/seo/types.d.ts +0 -156
- package/dist/z-index-B0Vk_Mp1.js +0 -27
- /package/dist/locales/{4.3.0 → 4.3.1}/flow/de.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/flow/es.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/flow/id.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/flow/it.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/flow/zh.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/main/de.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/main/es.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/main/fr.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/main/id.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/main/it.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/main/ja.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/main/ko.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/main/nl.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/main/pl.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/main/pt-br.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/main/tr.js +0 -0
- /package/dist/locales/{4.3.0 → 4.3.1}/main/zh.js +0 -0
package/dist/seo/seo.mjs
DELETED
|
@@ -1,592 +0,0 @@
|
|
|
1
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/utils/timezones.js
|
|
2
|
-
function e() {
|
|
3
|
-
return "America/Los_Angeles";
|
|
4
|
-
}
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/richtext/index.js
|
|
7
|
-
var t = /<\/(?:p|div|h[1-6]|li|ul|ol|blockquote|tr)>/gi, n = /<br\s*\/?>/gi, r = /<[^>]*>/g, i = {
|
|
8
|
-
"&": "&",
|
|
9
|
-
"<": "<",
|
|
10
|
-
">": ">",
|
|
11
|
-
""": "\"",
|
|
12
|
-
"'": "'",
|
|
13
|
-
"'": "'",
|
|
14
|
-
" ": " "
|
|
15
|
-
};
|
|
16
|
-
function a(e) {
|
|
17
|
-
return e.replace(/&#x([0-9a-f]+);/gi, (e, t) => o(parseInt(t, 16))).replace(/&#(\d+);/g, (e, t) => o(Number(t))).replace(/&[a-z0-9]+;/gi, (e) => i[e.toLowerCase()] ?? e);
|
|
18
|
-
}
|
|
19
|
-
function o(e) {
|
|
20
|
-
return Number.isFinite(e) && e > 0 && e <= 1114111 ? String.fromCodePoint(e) : "";
|
|
21
|
-
}
|
|
22
|
-
function s(e, i) {
|
|
23
|
-
if (!e) return "";
|
|
24
|
-
let o = String(e).replace(n, " ").replace(t, " ").replace(r, "");
|
|
25
|
-
if (o = a(o).replace(/\s+/g, " ").trim(), i && i > 0 && o.length > i) {
|
|
26
|
-
let e = o.slice(0, i), t = e.lastIndexOf(" ");
|
|
27
|
-
o = (t > 40 ? e.slice(0, t) : e).trimEnd() + "…";
|
|
28
|
-
}
|
|
29
|
-
return o;
|
|
30
|
-
}
|
|
31
|
-
//#endregion
|
|
32
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/datetime/now.js
|
|
33
|
-
function c() {
|
|
34
|
-
return /* @__PURE__ */ new Date();
|
|
35
|
-
}
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/AppError.js
|
|
38
|
-
var l = class extends Error {
|
|
39
|
-
constructor(e, t, n = {}) {
|
|
40
|
-
super(e), this.name = "AppError", this.code = t, this.status = n.status ?? 500, this.details = n.details, this.timestamp = c(), this.recoverable = n.recoverable ?? !0, this.cause = n.cause, Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
|
|
41
|
-
}
|
|
42
|
-
toJSON() {
|
|
43
|
-
return {
|
|
44
|
-
name: this.name,
|
|
45
|
-
code: this.code,
|
|
46
|
-
message: this.message,
|
|
47
|
-
status: this.status,
|
|
48
|
-
details: this.details,
|
|
49
|
-
timestamp: this.timestamp.toISOString(),
|
|
50
|
-
recoverable: this.recoverable,
|
|
51
|
-
stack: this.stack,
|
|
52
|
-
cause: this.cause?.message
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
getUserMessage(e) {
|
|
56
|
-
return this.message;
|
|
57
|
-
}
|
|
58
|
-
isRetryable() {
|
|
59
|
-
return this.recoverable;
|
|
60
|
-
}
|
|
61
|
-
}, u = class extends l {
|
|
62
|
-
constructor(e, t, n = {}) {
|
|
63
|
-
super(e, t, {
|
|
64
|
-
status: 422,
|
|
65
|
-
recoverable: !1,
|
|
66
|
-
...n
|
|
67
|
-
}), this.name = "ValueGuardError";
|
|
68
|
-
}
|
|
69
|
-
}, d = class extends u {
|
|
70
|
-
constructor(e, t, n) {
|
|
71
|
-
super(e, t, { details: n }), this.name = "DateTimeError";
|
|
72
|
-
}
|
|
73
|
-
}, f;
|
|
74
|
-
(function(e) {
|
|
75
|
-
e.INVALID_TIMEZONE = "INVALID_TIMEZONE", e.INVALID_ISO_STRING = "INVALID_ISO_STRING", e.INVALID_DATE = "INVALID_DATE", e.INVALID_TIME = "INVALID_TIME", e.MISSING_TIMEZONE = "MISSING_TIMEZONE", e.PARSE_ERROR = "PARSE_ERROR";
|
|
76
|
-
})(f ||= {});
|
|
77
|
-
//#endregion
|
|
78
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/types/brands.js
|
|
79
|
-
function p(e, t, n, r = 0, i = 0, a = 0) {
|
|
80
|
-
let o = new Date(Date.UTC(e, t - 1, n, r, i, a));
|
|
81
|
-
return e >= 0 && e <= 99 && o.setUTCFullYear(e), o;
|
|
82
|
-
}
|
|
83
|
-
//#endregion
|
|
84
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/datetime/instant.js
|
|
85
|
-
var m = /^(\d{4})-(\d{2})-(\d{2})(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?(?:Z|[+-]\d{2}:\d{2}))?$/, h = /^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?$/;
|
|
86
|
-
function g(e, t, n) {
|
|
87
|
-
let r = p(e, t, n);
|
|
88
|
-
return r.getUTCFullYear() === e && r.getUTCMonth() === t - 1 && r.getUTCDate() === n;
|
|
89
|
-
}
|
|
90
|
-
var _ = /^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,9}))? ?([+-])(\d{2}):?(\d{2})(?: [A-Za-z][A-Za-z0-9_/+-]*)?(?: m=[+-][\d.]+)?$/, v = p(1, 1, 1).getTime();
|
|
91
|
-
function y(e) {
|
|
92
|
-
let t = m.exec(e);
|
|
93
|
-
if (t) {
|
|
94
|
-
let [, n, r, i] = t;
|
|
95
|
-
return {
|
|
96
|
-
iso: e,
|
|
97
|
-
year: +n,
|
|
98
|
-
month: +r,
|
|
99
|
-
day: +i
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
let n = _.exec(e);
|
|
103
|
-
if (n) {
|
|
104
|
-
let [, e, t, r, i, a, o, s, c, l, u] = n;
|
|
105
|
-
return {
|
|
106
|
-
iso: `${e}-${t}-${r}T${i}:${a}:${o}${s ? `.${s.slice(0, 3).padEnd(3, "0")}` : ""}${c}${l}:${u}`,
|
|
107
|
-
year: +e,
|
|
108
|
-
month: +t,
|
|
109
|
-
day: +r
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
return null;
|
|
113
|
-
}
|
|
114
|
-
function b(e) {
|
|
115
|
-
if (typeof e == "number") {
|
|
116
|
-
if (!Number.isFinite(e)) return null;
|
|
117
|
-
let t = new Date(e);
|
|
118
|
-
return Number.isNaN(t.getTime()) ? null : t;
|
|
119
|
-
}
|
|
120
|
-
if (typeof e != "string") return null;
|
|
121
|
-
let t = y(e.trim());
|
|
122
|
-
if (!t || !g(t.year, t.month, t.day)) return null;
|
|
123
|
-
let n = new Date(t.iso);
|
|
124
|
-
return Number.isNaN(n.getTime()) ? null : n;
|
|
125
|
-
}
|
|
126
|
-
function x(e) {
|
|
127
|
-
let t = b(e);
|
|
128
|
-
return t !== null && t.getTime() === v;
|
|
129
|
-
}
|
|
130
|
-
function S(e, t) {
|
|
131
|
-
if (e.getTime() === v) throw new d(`toInstant: ${JSON.stringify(t)} is the backend's UNSET marker (Go's zero time.Time), not a moment — the field was never filled in. toInstant is the REQUIRED-timestamp door, so an unset value here is a bug: returning the year-1 instant it names would sort this row ahead of every real date and answer "yes" to "has this started?". If the field is allowed to be unset, read it with toInstantOrNull (null), ask isAbsentTimestamp why it is missing, and order it with compareWireInstants.`, f.INVALID_ISO_STRING, { value: t });
|
|
132
|
-
}
|
|
133
|
-
function C(e, t) {
|
|
134
|
-
if (!(e instanceof Date) || Number.isNaN(e.getTime())) throw new d(`${t} must be a valid Date`, f.INVALID_DATE, { value: e });
|
|
135
|
-
}
|
|
136
|
-
function w(e, t) {
|
|
137
|
-
return C(e, "compareInstants(a)"), C(t, "compareInstants(b)"), e.getTime() - t.getTime();
|
|
138
|
-
}
|
|
139
|
-
function T(e) {
|
|
140
|
-
if (typeof e == "number") {
|
|
141
|
-
if (!Number.isFinite(e)) throw new d(`toInstant: epoch milliseconds must be a finite number, got ${e}`, f.INVALID_DATE, { value: e });
|
|
142
|
-
let t = new Date(e);
|
|
143
|
-
return C(t, "toInstant(value)"), S(t, e), t;
|
|
144
|
-
}
|
|
145
|
-
if (typeof e != "string" || e.trim() === "") throw new d(`toInstant: a UTC ISO timestamp or epoch ms is required, got ${JSON.stringify(e)}`, typeof e == "string" ? f.INVALID_ISO_STRING : f.INVALID_DATE, { value: e });
|
|
146
|
-
let t = y(e);
|
|
147
|
-
if (!t) throw h.test(e) ? new d(`toInstant: ${JSON.stringify(e)} carries a time but no timezone, so it is not an instant — it would resolve on the viewer's clock and land on a different calendar day for a viewer in Los Angeles than one in London. Send a UTC wire timestamp (2026-06-09T20:00:00Z) or an explicit offset (2026-06-09T13:00:00-07:00). If this is a local wall-clock value, it belongs in datetime/local or parseLocalToUTC(value, timezone), not here.`, f.MISSING_TIMEZONE, { value: e }) : new d(`toInstant: not an ISO-8601 timestamp: ${JSON.stringify(e)}`, f.INVALID_ISO_STRING, { value: e });
|
|
148
|
-
let { year: n, month: r, day: i } = t;
|
|
149
|
-
if (!g(n, r, i)) throw new d(`toInstant: ${n}-${r}-${i} is not a real calendar date: ${JSON.stringify(e)}`, f.INVALID_ISO_STRING, { value: e });
|
|
150
|
-
let a = new Date(t.iso);
|
|
151
|
-
if (Number.isNaN(a.getTime())) throw new d(`toInstant: ISO-8601 shaped but not a real instant: ${JSON.stringify(e)}`, f.INVALID_ISO_STRING, { value: e });
|
|
152
|
-
return S(a, e), a;
|
|
153
|
-
}
|
|
154
|
-
function E(e) {
|
|
155
|
-
if (e == null || typeof e == "string" && e.trim() === "" || x(e)) return null;
|
|
156
|
-
try {
|
|
157
|
-
return T(e);
|
|
158
|
-
} catch {
|
|
159
|
-
return null;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
//#endregion
|
|
163
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/utils/formatters.js
|
|
164
|
-
function D(e) {
|
|
165
|
-
return Math.round((e + 2 ** -52) * 100) / 100;
|
|
166
|
-
}
|
|
167
|
-
//#endregion
|
|
168
|
-
//#region src/lib/core/datetime.js
|
|
169
|
-
function O(e) {
|
|
170
|
-
if (e == null) return null;
|
|
171
|
-
let t = Number(e);
|
|
172
|
-
return Number.isFinite(t) ? t : null;
|
|
173
|
-
}
|
|
174
|
-
function k(e) {
|
|
175
|
-
let t = O(e?.price);
|
|
176
|
-
return t === null ? null : t === 0 ? 0 : D(t + (O(e?.fee) ?? 0));
|
|
177
|
-
}
|
|
178
|
-
//#endregion
|
|
179
|
-
//#region src/lib/seo/helpers.ts
|
|
180
|
-
function A(e) {
|
|
181
|
-
return e.replace(/</g, "\\u003c").replace(/>/g, "\\u003e").replace(/&/g, "\\u0026");
|
|
182
|
-
}
|
|
183
|
-
function j(t, n) {
|
|
184
|
-
if (!t) return null;
|
|
185
|
-
let r = new Date(t);
|
|
186
|
-
if (isNaN(r.getTime())) return null;
|
|
187
|
-
let i = {
|
|
188
|
-
year: "numeric",
|
|
189
|
-
month: "2-digit",
|
|
190
|
-
day: "2-digit",
|
|
191
|
-
hour: "2-digit",
|
|
192
|
-
minute: "2-digit",
|
|
193
|
-
second: "2-digit",
|
|
194
|
-
hour12: !1,
|
|
195
|
-
timeZoneName: "shortOffset"
|
|
196
|
-
}, a;
|
|
197
|
-
try {
|
|
198
|
-
a = new Intl.DateTimeFormat("en-US", {
|
|
199
|
-
...i,
|
|
200
|
-
timeZone: n
|
|
201
|
-
});
|
|
202
|
-
} catch {
|
|
203
|
-
a = new Intl.DateTimeFormat("en-US", {
|
|
204
|
-
...i,
|
|
205
|
-
timeZone: e()
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
let o = a.formatToParts(r), s = (e) => o.find((t) => t.type === e)?.value || "", c = s("year"), l = s("month"), u = s("day"), d = s("hour"), f = s("minute"), p = s("second"), m = s("timeZoneName"), h = "+00:00";
|
|
209
|
-
if (m) {
|
|
210
|
-
let e = m.match(/GMT([+-])(\d+)(?::(\d+))?/);
|
|
211
|
-
e && (h = `${e[1]}${e[2].padStart(2, "0")}:${e[3] || "00"}`);
|
|
212
|
-
}
|
|
213
|
-
return `${c}-${l}-${u}T${d}:${f}:${p}${h}`;
|
|
214
|
-
}
|
|
215
|
-
function M(e) {
|
|
216
|
-
if (!e) return null;
|
|
217
|
-
let t = e.split(",").map((e) => e.trim());
|
|
218
|
-
if (t.length < 2) return {
|
|
219
|
-
"@type": "PostalAddress",
|
|
220
|
-
streetAddress: e,
|
|
221
|
-
addressCountry: "US"
|
|
222
|
-
};
|
|
223
|
-
let n = t[t.length - 1].match(/^([A-Z]{2})\s+(\d{5}(?:-\d{4})?)$/);
|
|
224
|
-
return n && t.length >= 3 ? {
|
|
225
|
-
"@type": "PostalAddress",
|
|
226
|
-
streetAddress: t.slice(0, -2).join(", "),
|
|
227
|
-
addressLocality: t[t.length - 2],
|
|
228
|
-
addressRegion: n[1],
|
|
229
|
-
postalCode: n[2],
|
|
230
|
-
addressCountry: "US"
|
|
231
|
-
} : {
|
|
232
|
-
"@type": "PostalAddress",
|
|
233
|
-
streetAddress: t[0],
|
|
234
|
-
addressLocality: t.slice(1).join(", "),
|
|
235
|
-
addressCountry: "US"
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
|
-
function N(e, t) {
|
|
239
|
-
if (e && (e.city || e.state || e.postalCode)) {
|
|
240
|
-
let t = { "@type": "PostalAddress" };
|
|
241
|
-
return e.address && (t.streetAddress = e.address), e.city && (t.addressLocality = e.city), e.state && (t.addressRegion = e.state), e.postalCode && (t.postalCode = e.postalCode), t.addressCountry = e.country || "US", t;
|
|
242
|
-
}
|
|
243
|
-
return M(e && e.address || t || null);
|
|
244
|
-
}
|
|
245
|
-
function P(e) {
|
|
246
|
-
if (!e) return "https://schema.org/EventScheduled";
|
|
247
|
-
let t = e.toLowerCase();
|
|
248
|
-
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";
|
|
249
|
-
}
|
|
250
|
-
function F(e) {
|
|
251
|
-
if ((e.remainingCapacity ?? e.quantityRemaining ?? e.quantity) === 0 || e.soldOut) return "https://schema.org/SoldOut";
|
|
252
|
-
let t = c(), n = E(e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart), r = E(e.salesEnd || e.saleEnd || e.onSaleEnd);
|
|
253
|
-
return n && w(n, t) > 0 ? "https://schema.org/PreOrder" : r && w(r, t) < 0 ? "https://schema.org/SoldOut" : "https://schema.org/InStock";
|
|
254
|
-
}
|
|
255
|
-
function I(e, t, n, r = {}) {
|
|
256
|
-
return e === t ? {
|
|
257
|
-
"@type": "Offer",
|
|
258
|
-
price: e,
|
|
259
|
-
priceCurrency: "USD",
|
|
260
|
-
availability: n,
|
|
261
|
-
...r
|
|
262
|
-
} : {
|
|
263
|
-
"@type": "AggregateOffer",
|
|
264
|
-
lowPrice: e,
|
|
265
|
-
highPrice: t,
|
|
266
|
-
priceCurrency: "USD",
|
|
267
|
-
availability: n,
|
|
268
|
-
...r
|
|
269
|
-
};
|
|
270
|
-
}
|
|
271
|
-
function L(e, t) {
|
|
272
|
-
if (!e || e.length === 0) return null;
|
|
273
|
-
let n = e.filter((e) => {
|
|
274
|
-
let t = e.visibility ?? 0, n = t === 0 || t === 1, r = e.salesChannel !== 2;
|
|
275
|
-
return n && r;
|
|
276
|
-
});
|
|
277
|
-
if (n.length === 0) return null;
|
|
278
|
-
let r = n.map((e) => k({
|
|
279
|
-
price: e.price,
|
|
280
|
-
fee: e.fee
|
|
281
|
-
})).filter((e) => e != null);
|
|
282
|
-
if (r.length === 0) return null;
|
|
283
|
-
let i = Math.min(...r), a = Math.max(...r), o = n[0];
|
|
284
|
-
return I(i, a, F(o), {
|
|
285
|
-
url: t || void 0,
|
|
286
|
-
validFrom: o?.salesBegin || o?.salesStart || void 0
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
function R(e) {
|
|
290
|
-
if (!e || e.length === 0) return null;
|
|
291
|
-
let t = e.filter((e) => {
|
|
292
|
-
let t = e.acceptedState === 2, n = !e.shouldBeHidden, r = e.RosterPerformer?.User?.performerProfile, i = r?.firstName || r?.lastName || r?.displayName;
|
|
293
|
-
return t && n && i;
|
|
294
|
-
});
|
|
295
|
-
return t.length === 0 ? null : t.map((e) => {
|
|
296
|
-
let t = e.RosterPerformer?.User?.performerProfile;
|
|
297
|
-
return {
|
|
298
|
-
"@type": "PerformingGroup",
|
|
299
|
-
name: t?.displayName || [t?.firstName, t?.lastName].filter(Boolean).join(" ")
|
|
300
|
-
};
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
//#endregion
|
|
304
|
-
//#region src/lib/seo/buildEventJsonLd.ts
|
|
305
|
-
function z(t) {
|
|
306
|
-
let { event: n, venue: r, venueTimeZone: i = e(), eventUrl: a, organizer: o } = t;
|
|
307
|
-
if (!n) return null;
|
|
308
|
-
let c = j(n.startDateTime, i);
|
|
309
|
-
if (!n.name || !c || !r?.name) return null;
|
|
310
|
-
let l = N(r, r?.googleLocationNameCache), u = {
|
|
311
|
-
"@type": "Place",
|
|
312
|
-
name: r.name
|
|
313
|
-
};
|
|
314
|
-
l && (u.address = l);
|
|
315
|
-
let d = {
|
|
316
|
-
"@context": "https://schema.org",
|
|
317
|
-
"@type": "Event",
|
|
318
|
-
name: n.name,
|
|
319
|
-
startDate: c,
|
|
320
|
-
eventStatus: P(n.status),
|
|
321
|
-
eventAttendanceMode: "https://schema.org/OfflineEventAttendanceMode",
|
|
322
|
-
location: u
|
|
323
|
-
}, f = j(n.endDateTime, i);
|
|
324
|
-
f && (d.endDate = f);
|
|
325
|
-
let p = s(n.description) || n.eventSummary;
|
|
326
|
-
p && (d.description = p);
|
|
327
|
-
let m = n.image || n.coverImage || n.ShowImage;
|
|
328
|
-
m && (d.image = [m]);
|
|
329
|
-
let h = L(n.availableTickets, a);
|
|
330
|
-
h && (d.offers = h);
|
|
331
|
-
let g = R(n.performers);
|
|
332
|
-
if (g && g.length > 0 && (d.performer = g), o?.name) {
|
|
333
|
-
let e = {
|
|
334
|
-
"@type": "Organization",
|
|
335
|
-
name: o.name
|
|
336
|
-
};
|
|
337
|
-
o.url && (e.url = o.url), d.organizer = e;
|
|
338
|
-
}
|
|
339
|
-
return a && (d.url = a), d;
|
|
340
|
-
}
|
|
341
|
-
//#endregion
|
|
342
|
-
//#region src/lib/seo/buildSeriesJsonLd.ts
|
|
343
|
-
function B(e) {
|
|
344
|
-
switch (e) {
|
|
345
|
-
case "available": return "https://schema.org/InStock";
|
|
346
|
-
case "sold_out": return "https://schema.org/SoldOut";
|
|
347
|
-
case "coming_soon": return "https://schema.org/PreOrder";
|
|
348
|
-
case "ended": return "https://schema.org/SoldOut";
|
|
349
|
-
default: return "https://schema.org/InStock";
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
function V(e, t) {
|
|
353
|
-
if (!e || e.length === 0) return null;
|
|
354
|
-
let n = e.filter((e) => e.status !== "sold_out" && e.status !== "ended");
|
|
355
|
-
if (n.length === 0) {
|
|
356
|
-
let t = e.map((e) => e.price).filter((e) => !isNaN(e));
|
|
357
|
-
return t.length === 0 ? null : I(Math.min(...t), Math.max(...t), "https://schema.org/SoldOut");
|
|
358
|
-
}
|
|
359
|
-
let r = n.map((e) => e.price).filter((e) => !isNaN(e));
|
|
360
|
-
return r.length === 0 ? null : I(Math.min(...r), Math.max(...r), B(n[0].status));
|
|
361
|
-
}
|
|
362
|
-
function H(e) {
|
|
363
|
-
let { series: t, baseEventUrl: n } = e;
|
|
364
|
-
if (!t.title || !t.occurrences || t.occurrences.length === 0 || !t.venue?.name) return null;
|
|
365
|
-
let r = N(t.venue, t.venue.googleLocationNameCache), i = {
|
|
366
|
-
"@type": "Place",
|
|
367
|
-
name: t.venue.name
|
|
368
|
-
};
|
|
369
|
-
r && (i.address = r);
|
|
370
|
-
let a = {
|
|
371
|
-
"@context": "https://schema.org",
|
|
372
|
-
"@type": "EventSeries",
|
|
373
|
-
name: t.title,
|
|
374
|
-
location: i
|
|
375
|
-
}, o = s(t.description) || t.eventSummary;
|
|
376
|
-
o && (a.description = o), t.image && (a.image = [t.image]);
|
|
377
|
-
let c = t.performers?.filter((e) => e.displayName);
|
|
378
|
-
c && c.length > 0 && (a.performer = c.map((e) => ({
|
|
379
|
-
"@type": "PerformingGroup",
|
|
380
|
-
name: e.displayName
|
|
381
|
-
})));
|
|
382
|
-
let l = [];
|
|
383
|
-
for (let e of t.occurrences) {
|
|
384
|
-
let r = j(e.startDateTime, t.timeZone);
|
|
385
|
-
if (!r) continue;
|
|
386
|
-
let a = {
|
|
387
|
-
"@type": "Event",
|
|
388
|
-
name: e.title,
|
|
389
|
-
startDate: r,
|
|
390
|
-
eventStatus: P(e.status),
|
|
391
|
-
location: i
|
|
392
|
-
};
|
|
393
|
-
n && (a["@id"] = `${n}/${e.id}-${e.slug}`);
|
|
394
|
-
let o = j(e.endDateTime, t.timeZone);
|
|
395
|
-
o && (a.endDate = o);
|
|
396
|
-
let s = V(e.tickets, e.status);
|
|
397
|
-
s && (a.offers = s), l.push(a);
|
|
398
|
-
}
|
|
399
|
-
return l.length === 0 ? null : (a.subEvent = l, a);
|
|
400
|
-
}
|
|
401
|
-
//#endregion
|
|
402
|
-
//#region src/lib/seo/buildCollectionJsonLd.ts
|
|
403
|
-
function U(e) {
|
|
404
|
-
let { collection: t, baseEventUrl: n } = e;
|
|
405
|
-
if (!t.collectionTitle || !t.events || t.events.length === 0) return null;
|
|
406
|
-
let r = [];
|
|
407
|
-
for (let e of t.events) {
|
|
408
|
-
if (!e.title) continue;
|
|
409
|
-
let t = {
|
|
410
|
-
"@type": "ListItem",
|
|
411
|
-
position: r.length + 1,
|
|
412
|
-
name: e.title
|
|
413
|
-
};
|
|
414
|
-
n && (t.url = e.slug ? `${n}/${e.id}-${e.slug}` : `${n}/${e.id}`), r.push(t);
|
|
415
|
-
}
|
|
416
|
-
if (r.length === 0) return null;
|
|
417
|
-
let i = {
|
|
418
|
-
"@context": "https://schema.org",
|
|
419
|
-
"@type": "CollectionPage",
|
|
420
|
-
name: t.collectionTitle
|
|
421
|
-
}, a = s(t.description) || t.summary;
|
|
422
|
-
return a && (i.description = a), t.coverImage && (i.image = [t.coverImage]), i.mainEntity = {
|
|
423
|
-
"@type": "ItemList",
|
|
424
|
-
numberOfItems: r.length,
|
|
425
|
-
itemListElement: r
|
|
426
|
-
}, i;
|
|
427
|
-
}
|
|
428
|
-
//#endregion
|
|
429
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/routing/slug.js
|
|
430
|
-
var W = 70;
|
|
431
|
-
function G(e) {
|
|
432
|
-
return e.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "").slice(0, W).replace(/-+$/g, "");
|
|
433
|
-
}
|
|
434
|
-
//#endregion
|
|
435
|
-
//#region src/lib/seo/HostSeoController.ts
|
|
436
|
-
var K = class t {
|
|
437
|
-
static _activeInstance = null;
|
|
438
|
-
_state = "idle";
|
|
439
|
-
_venueName;
|
|
440
|
-
_venueAddress;
|
|
441
|
-
_venueTimeZone;
|
|
442
|
-
_baseUrl;
|
|
443
|
-
_originals = null;
|
|
444
|
-
_originalsSaved = !1;
|
|
445
|
-
_events = [];
|
|
446
|
-
constructor(n) {
|
|
447
|
-
typeof document > "u" || (t._activeInstance && t._activeInstance !== this && t._activeInstance.destroy(), this._venueName = n.venueName, this._venueAddress = n.venueAddress, this._venueTimeZone = n.venueTimeZone || e(), this._baseUrl = n.baseUrl || window.location.origin + window.location.pathname, this._saveOriginals(), t._activeInstance = this);
|
|
448
|
-
}
|
|
449
|
-
_saveOriginals() {
|
|
450
|
-
if (this._originalsSaved) return;
|
|
451
|
-
let e = document.querySelector("link[rel=\"canonical\"]"), t = document.querySelector("meta[property=\"og:title\"]"), n = document.querySelector("meta[property=\"og:description\"]"), r = document.querySelector("meta[property=\"og:image\"]"), i = document.querySelector("meta[property=\"og:url\"]"), a = document.querySelector("meta[property=\"og:type\"]"), o = document.querySelector("meta[name=\"description\"]");
|
|
452
|
-
this._originals = {
|
|
453
|
-
title: document.title,
|
|
454
|
-
canonicalHref: e?.getAttribute("href") ?? null,
|
|
455
|
-
ogTitle: t?.getAttribute("content") ?? null,
|
|
456
|
-
ogDescription: n?.getAttribute("content") ?? null,
|
|
457
|
-
ogImage: r?.getAttribute("content") ?? null,
|
|
458
|
-
ogUrl: i?.getAttribute("content") ?? null,
|
|
459
|
-
ogType: a?.getAttribute("content") ?? null,
|
|
460
|
-
metaDescription: o?.getAttribute("content") ?? null
|
|
461
|
-
}, this._originalsSaved = !0;
|
|
462
|
-
}
|
|
463
|
-
_injectJsonLd(e) {
|
|
464
|
-
if (typeof document > "u") return;
|
|
465
|
-
document.querySelectorAll("script[data-micdrop=\"jsonld\"]").forEach((e) => e.remove());
|
|
466
|
-
let t = document.createElement("script");
|
|
467
|
-
t.setAttribute("type", "application/ld+json"), t.setAttribute("data-micdrop", "jsonld"), t.textContent = JSON.stringify(e), document.head.appendChild(t);
|
|
468
|
-
}
|
|
469
|
-
_setMeta(e, t) {
|
|
470
|
-
if (!(typeof document > "u")) {
|
|
471
|
-
if (e.startsWith("og:")) {
|
|
472
|
-
let n = document.querySelector(`meta[property="${e}"]`);
|
|
473
|
-
n ? n.setAttribute("content", t) : (n = document.createElement("meta"), n.setAttribute("property", e), n.setAttribute("content", t), n.setAttribute("data-micdrop", "og"), document.head.appendChild(n));
|
|
474
|
-
} else {
|
|
475
|
-
let n = document.querySelector(`meta[name="${e}"]`);
|
|
476
|
-
n ? n.setAttribute("content", t) : (n = document.createElement("meta"), n.setAttribute("name", e), n.setAttribute("content", t), n.setAttribute("data-micdrop", "meta"), document.head.appendChild(n));
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
_setCanonical(e) {
|
|
481
|
-
if (typeof document > "u") return;
|
|
482
|
-
let t = document.querySelector("link[rel=\"canonical\"]");
|
|
483
|
-
t ? t.setAttribute("href", e) : (t = document.createElement("link"), t.setAttribute("rel", "canonical"), t.setAttribute("href", e), t.setAttribute("data-micdrop", "canonical"), document.head.appendChild(t));
|
|
484
|
-
}
|
|
485
|
-
_removeAllInjected() {
|
|
486
|
-
typeof document > "u" || document.querySelectorAll("[data-micdrop]").forEach((e) => e.remove());
|
|
487
|
-
}
|
|
488
|
-
_restoreOriginals() {
|
|
489
|
-
if (!(typeof document > "u" || !this._originals)) {
|
|
490
|
-
if (document.title = this._originals.title, this._originals.canonicalHref !== null) {
|
|
491
|
-
let e = document.querySelector("link[rel=\"canonical\"]");
|
|
492
|
-
e && e.setAttribute("href", this._originals.canonicalHref);
|
|
493
|
-
}
|
|
494
|
-
this._restoreMetaProperty("og:title", this._originals.ogTitle), this._restoreMetaProperty("og:description", this._originals.ogDescription), this._restoreMetaProperty("og:image", this._originals.ogImage), this._restoreMetaProperty("og:url", this._originals.ogUrl), this._restoreMetaProperty("og:type", this._originals.ogType), this._restoreMetaName("description", this._originals.metaDescription), this._originalsSaved = !1;
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
_restoreMetaProperty(e, t) {
|
|
498
|
-
let n = document.querySelector(`meta[property="${e}"]`);
|
|
499
|
-
t !== null && n ? n.setAttribute("content", t) : t === null && n?.hasAttribute("data-micdrop") && n.remove();
|
|
500
|
-
}
|
|
501
|
-
_restoreMetaName(e, t) {
|
|
502
|
-
let n = document.querySelector(`meta[name="${e}"]`);
|
|
503
|
-
t !== null && n ? n.setAttribute("content", t) : t === null && n?.hasAttribute("data-micdrop") && n.remove();
|
|
504
|
-
}
|
|
505
|
-
_buildItemList(e) {
|
|
506
|
-
return {
|
|
507
|
-
"@context": "https://schema.org",
|
|
508
|
-
"@type": "ItemList",
|
|
509
|
-
itemListElement: e.map((e, t) => {
|
|
510
|
-
let n = e.slug || G(e.name || "");
|
|
511
|
-
return {
|
|
512
|
-
"@type": "ListItem",
|
|
513
|
-
position: t + 1,
|
|
514
|
-
url: `${this._baseUrl}?e=${e.id}-${n}`
|
|
515
|
-
};
|
|
516
|
-
})
|
|
517
|
-
};
|
|
518
|
-
}
|
|
519
|
-
_buildEntityUrl(e, t, n) {
|
|
520
|
-
let r = e === "event" ? "e" : e === "series" ? "s" : "c";
|
|
521
|
-
return `${this._baseUrl}?${r}=${t}-${n}`;
|
|
522
|
-
}
|
|
523
|
-
onEventsLoaded(e, t) {
|
|
524
|
-
if (typeof document > "u" || this._state === "destroyed") return;
|
|
525
|
-
if (t) {
|
|
526
|
-
this._venueName = t.name || this._venueName, this._venueAddress = t.address || t.googleLocationNameCache || this._venueAddress;
|
|
527
|
-
let e = t.timeZone || t.timezone;
|
|
528
|
-
e && (this._venueTimeZone = e);
|
|
529
|
-
}
|
|
530
|
-
this._events = e;
|
|
531
|
-
let n = this._buildItemList(e);
|
|
532
|
-
this._injectJsonLd(n), this._state = "listing";
|
|
533
|
-
}
|
|
534
|
-
onEntitySelected(e, t, n) {
|
|
535
|
-
if (typeof document > "u" || this._state === "destroyed") return;
|
|
536
|
-
if (this._saveOriginals(), n) {
|
|
537
|
-
this._venueName = n.name || this._venueName, this._venueAddress = n.address || n.googleLocationNameCache || this._venueAddress;
|
|
538
|
-
let e = n.timeZone || n.timezone;
|
|
539
|
-
e && (this._venueTimeZone = e);
|
|
540
|
-
}
|
|
541
|
-
let r = null, i = "", a = "", o = "", c = "", l = "";
|
|
542
|
-
if (e === "event") {
|
|
543
|
-
let e = t.slug || G(t.name || "");
|
|
544
|
-
l = this._buildEntityUrl("event", t.id || t.eventID || "", e), r = z({
|
|
545
|
-
event: t,
|
|
546
|
-
venue: {
|
|
547
|
-
name: this._venueName,
|
|
548
|
-
googleLocationNameCache: this._venueAddress
|
|
549
|
-
},
|
|
550
|
-
venueTimeZone: this._venueTimeZone,
|
|
551
|
-
eventUrl: l
|
|
552
|
-
}), i = t.name || "", a = t.description || "", o = t.eventSummary || "", c = t.image || t.coverImage || t.ShowImage || "";
|
|
553
|
-
} else if (e === "series") {
|
|
554
|
-
let e = t.slug || G(t.title || "");
|
|
555
|
-
l = this._buildEntityUrl("series", t.id || "", e), r = H({
|
|
556
|
-
series: {
|
|
557
|
-
...t,
|
|
558
|
-
venue: {
|
|
559
|
-
name: this._venueName,
|
|
560
|
-
googleLocationNameCache: this._venueAddress
|
|
561
|
-
},
|
|
562
|
-
timeZone: this._venueTimeZone
|
|
563
|
-
},
|
|
564
|
-
baseEventUrl: l
|
|
565
|
-
}), i = t.title || "", a = t.description || "", o = t.eventSummary || "", c = t.image || "";
|
|
566
|
-
} else if (e === "collection") {
|
|
567
|
-
let e = t.slug || G(t.collectionTitle || "");
|
|
568
|
-
l = this._buildEntityUrl("collection", t.id || "", e), r = U({
|
|
569
|
-
collection: t,
|
|
570
|
-
baseEventUrl: l,
|
|
571
|
-
defaultTimeZone: this._venueTimeZone
|
|
572
|
-
}), i = t.collectionTitle || "", a = t.description || "", o = t.summary || "", c = t.coverImage || "";
|
|
573
|
-
}
|
|
574
|
-
r && this._injectJsonLd(r), l && this._setCanonical(l), i && this._setMeta("og:title", i);
|
|
575
|
-
let u = s(a, 160) || s(o, 160);
|
|
576
|
-
u ? this._setMeta("og:description", u) : this._restoreMetaProperty("og:description", this._originals?.ogDescription ?? null), c && this._setMeta("og:image", c), l && this._setMeta("og:url", l), this._setMeta("og:type", "website"), this._setMeta("twitter:card", "summary_large_image"), u ? this._setMeta("description", u) : this._restoreMetaName("description", this._originals?.metaDescription ?? null), i && (document.title = `${i} | ${this._venueName}`), this._state = "entity";
|
|
577
|
-
}
|
|
578
|
-
onBackToListing() {
|
|
579
|
-
if (!(typeof document > "u") && this._state !== "destroyed") {
|
|
580
|
-
if (this._restoreOriginals(), this._removeAllInjected(), this._events.length > 0) {
|
|
581
|
-
let e = this._buildItemList(this._events);
|
|
582
|
-
this._injectJsonLd(e);
|
|
583
|
-
}
|
|
584
|
-
this._saveOriginals(), this._state = "listing";
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
destroy() {
|
|
588
|
-
typeof document > "u" || this._state !== "destroyed" && (this._removeAllInjected(), this._restoreOriginals(), t._activeInstance === this && (t._activeInstance = null), this._state = "destroyed");
|
|
589
|
-
}
|
|
590
|
-
};
|
|
591
|
-
//#endregion
|
|
592
|
-
export { K as HostSeoController, U as buildCollectionJsonLd, z as buildEventJsonLd, L as buildOffers, R as buildPerformers, N as buildPostalAddress, H as buildSeriesJsonLd, A as escapeJsonLdForScript, j as formatDateTimeWithOffset, P as getEventStatus, F as getTicketAvailability, M as parseAddressToPostal };
|