@getmicdrop/venue-calendar 4.3.39 → 4.3.40

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 (64) hide show
  1. package/dist/{ArrowLeftIcon-BMuyNOqe.js → ArrowLeftIcon-DahiD9EF.js} +1 -1
  2. package/dist/{BlockPlaceholder-CUusOhOf.js → BlockPlaceholder-BfbLTliy.js} +1 -1
  3. package/dist/{Calendar-Dy-jZDff.js → Calendar-CM-dDG7x.js} +13 -13
  4. package/dist/{CalendarFoundryView-BWyEe7Xe.js → CalendarFoundryView-Bv0EsOwe.js} +630 -612
  5. package/dist/{CalendarIcon-B1JasL-W.js → CalendarIcon-DOAS1a6F.js} +1 -1
  6. package/dist/{CartView-CyU9g9ss.js → CartView-CYJMgWS2.js} +615 -617
  7. package/dist/{Checkout-DrP1KLR_.js → Checkout-C8BrLSYw.js} +54 -54
  8. package/dist/{Checkout-BGXlW2j2.js → Checkout-D6GEwsKQ.js} +24 -24
  9. package/dist/{CheckoutTimer-CAKT63di.js → CheckoutTimer-DjaTq2_0.js} +2 -2
  10. package/dist/{ChevronDownIcon--mG1fNDx.js → ChevronDownIcon-CiYpE3Hq.js} +1 -1
  11. package/dist/{ClockIcon-B8ahXV8G.js → ClockIcon-BSlM7HM2.js} +1 -1
  12. package/dist/{CloseIcon-C9guTa4C.js → CloseIcon-ojn3Lny5.js} +1 -1
  13. package/dist/{CollectionView-BhBCM-01.js → CollectionView-BZuyx4kC.js} +5 -5
  14. package/dist/{Event-DyX1UrZe.js → Event-CqQ0yP-h.js} +87 -87
  15. package/dist/{EventPage-DxyEqU7R.js → EventPage-CMH2gocB.js} +9 -9
  16. package/dist/{Input-DNzDcf6I.js → Input-Ck0Q7LwW.js} +1 -1
  17. package/dist/{MailIcon-Cf77TYiB.js → MailIcon-CqCCKGgC.js} +1 -1
  18. package/dist/{PasswordInput-C-BH1Do3.js → PasswordInput-yTDvehkW.js} +1 -1
  19. package/dist/{RecommendationsRail-CG0vCtgJ.js → RecommendationsRail-CN_dtLWp.js} +131 -131
  20. package/dist/{ScarcityBadge-D0D6Hqp0.js → ScarcityBadge-BJrsvt6e.js} +8 -8
  21. package/dist/{SeriesPage-D9_Nn8gF.js → SeriesPage-B1bK_MeR.js} +3 -3
  22. package/dist/{Success-Db843hJe.js → Success-D8dgqzkd.js} +44 -44
  23. package/dist/{TagIcon-DUY8KSZ0.js → TagIcon-D_kSJfGZ.js} +1 -1
  24. package/dist/{WarningCircleIcon-C1-Aj9ut.js → WarningCircleIcon-DhNvSQag.js} +1 -1
  25. package/dist/{WarningTriIcon-BrwQ58VB.js → WarningTriIcon-V6pL3ERG.js} +1 -1
  26. package/dist/{api-DDVVRbC-.js → api-Di0gC83p.js} +1 -1
  27. package/dist/{constants-7hsFMWgp.js → constants-CQ8nJvPW.js} +1 -1
  28. package/dist/{copyToClipboard-4LAkJ_1y.js → copyToClipboard-zcPgoppJ.js} +1 -1
  29. package/dist/{event-transform-CbFR1hRl.js → event-transform-BpB65AAX.js} +4 -4
  30. package/dist/{href-B4azVXj-.js → href-B-lH1SYh.js} +1 -1
  31. package/dist/{i18n-srcm-H61.js → i18n-BpodazP1.js} +102 -102
  32. package/dist/{order-totals-DFE6UVG4.js → order-totals-iUg6d6MJ.js} +1 -1
  33. package/dist/{phoneUtils-CxLRaM5n.js → phoneUtils-BPEB92vB.js} +1 -1
  34. package/dist/{scarcity-DqbDh1cS.js → scarcity-CJ6IsR7f.js} +2 -11
  35. package/dist/{to-event-card-props-CRaeqRxY.js → to-event-card-props-Cr5Uq0Ef.js} +8 -8
  36. package/dist/{utils-kRsfuFcG.js → utils-CG0ZJ6gb.js} +1 -1
  37. package/dist/venue-calendar.es.js +59 -59
  38. package/dist/venue-calendar.iife.js +59 -59
  39. package/dist/venue-calendar.umd.js +56 -56
  40. package/package.json +2 -2
  41. /package/dist/locales/{4.3.39 → 4.3.40}/flow/de.js +0 -0
  42. /package/dist/locales/{4.3.39 → 4.3.40}/flow/es.js +0 -0
  43. /package/dist/locales/{4.3.39 → 4.3.40}/flow/fr.js +0 -0
  44. /package/dist/locales/{4.3.39 → 4.3.40}/flow/id.js +0 -0
  45. /package/dist/locales/{4.3.39 → 4.3.40}/flow/it.js +0 -0
  46. /package/dist/locales/{4.3.39 → 4.3.40}/flow/ja.js +0 -0
  47. /package/dist/locales/{4.3.39 → 4.3.40}/flow/ko.js +0 -0
  48. /package/dist/locales/{4.3.39 → 4.3.40}/flow/nl.js +0 -0
  49. /package/dist/locales/{4.3.39 → 4.3.40}/flow/pl.js +0 -0
  50. /package/dist/locales/{4.3.39 → 4.3.40}/flow/pt-br.js +0 -0
  51. /package/dist/locales/{4.3.39 → 4.3.40}/flow/tr.js +0 -0
  52. /package/dist/locales/{4.3.39 → 4.3.40}/flow/zh.js +0 -0
  53. /package/dist/locales/{4.3.39 → 4.3.40}/main/de.js +0 -0
  54. /package/dist/locales/{4.3.39 → 4.3.40}/main/es.js +0 -0
  55. /package/dist/locales/{4.3.39 → 4.3.40}/main/fr.js +0 -0
  56. /package/dist/locales/{4.3.39 → 4.3.40}/main/id.js +0 -0
  57. /package/dist/locales/{4.3.39 → 4.3.40}/main/it.js +0 -0
  58. /package/dist/locales/{4.3.39 → 4.3.40}/main/ja.js +0 -0
  59. /package/dist/locales/{4.3.39 → 4.3.40}/main/ko.js +0 -0
  60. /package/dist/locales/{4.3.39 → 4.3.40}/main/nl.js +0 -0
  61. /package/dist/locales/{4.3.39 → 4.3.40}/main/pl.js +0 -0
  62. /package/dist/locales/{4.3.39 → 4.3.40}/main/pt-br.js +0 -0
  63. /package/dist/locales/{4.3.39 → 4.3.40}/main/tr.js +0 -0
  64. /package/dist/locales/{4.3.39 → 4.3.40}/main/zh.js +0 -0
@@ -1,37 +1,37 @@
1
- import { i as e, p as t, q as n } from "./scarcity-DqbDh1cS.js";
2
- import { t as r } from "./copyToClipboard-4LAkJ_1y.js";
3
- import { A as i, C as a, g as o, x as s } from "./defaultLabels-BkjXKQDd.js";
4
- import { B as c, R as l } from "./orders-DABdaHOy.js";
5
- import { t as u } from "./Heading-D6bWtGZA.js";
6
- import { c as d, i as f, s as p, t as m } from "./to-event-card-props-CRaeqRxY.js";
7
- import { r as h, t as g } from "./event-Dew6DCL7.js";
8
- import { z as _ } from "./api-DDVVRbC-.js";
9
- import { t as v } from "./venue-CBos8YTa.js";
1
+ import { K as e, f as t, i as n } from "./scarcity-CJ6IsR7f.js";
2
+ import { t as r } from "./copyToClipboard-zcPgoppJ.js";
3
+ import { A as i, C as a, g as o, k as s, x as c } from "./defaultLabels-BkjXKQDd.js";
4
+ import { B as l, R as u } from "./orders-DABdaHOy.js";
5
+ import { t as d } from "./Heading-D6bWtGZA.js";
6
+ import { c as f, i as p, s as m, t as h } from "./to-event-card-props-Cr5Uq0Ef.js";
7
+ import { r as g, t as _ } from "./event-Dew6DCL7.js";
8
+ import { z as v } from "./api-Di0gC83p.js";
9
+ import { t as y } from "./venue-CBos8YTa.js";
10
10
  import "svelte/internal/disclose-version";
11
- import * as y from "svelte/internal/client";
11
+ import * as b from "svelte/internal/client";
12
12
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ExportIcon.svelte
13
- var b = y.from_svg("<path d=\"M216,112v96a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V112A16,16,0,0,1,56,96h64v48a8,8,0,0,0,16,0V96h64A16,16,0,0,1,216,112ZM136,43.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,69.66L120,43.31V96h16Z\"></path>"), x = y.from_svg("<path d=\"M176,104h24a8,8,0,0,1,8,8v96a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H80\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path><polyline points=\"88 64 128 24 168 64\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></polyline><line x1=\"128\" y1=\"24\" x2=\"128\" y2=\"136\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line>", 1), S = y.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
14
- function C(e, t) {
15
- y.push(t, !0);
16
- let r = y.prop(t, "size", 3, "24"), i = y.prop(t, "color", 3, "currentColor"), a = y.prop(t, "class", 3, ""), o = n(), s = y.derived(() => t.weight ?? o?.weight ?? "regular");
17
- var c = S();
13
+ var x = b.from_svg("<path d=\"M216,112v96a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V112A16,16,0,0,1,56,96h64v48a8,8,0,0,0,16,0V96h64A16,16,0,0,1,216,112ZM136,43.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,69.66L120,43.31V96h16Z\"></path>"), S = b.from_svg("<path d=\"M176,104h24a8,8,0,0,1,8,8v96a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H80\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path><polyline points=\"88 64 128 24 168 64\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></polyline><line x1=\"128\" y1=\"24\" x2=\"128\" y2=\"136\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line>", 1), C = b.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
14
+ function w(t, n) {
15
+ b.push(n, !0);
16
+ let r = b.prop(n, "size", 3, "24"), i = b.prop(n, "color", 3, "currentColor"), a = b.prop(n, "class", 3, ""), o = e(), s = b.derived(() => n.weight ?? o?.weight ?? "regular");
17
+ var c = C();
18
18
  let l;
19
- var u = y.child(c), d = (e) => {
20
- var t = b();
21
- y.append(e, t);
22
- }, f = (e) => {
19
+ var u = b.child(c), d = (e) => {
23
20
  var t = x();
24
- y.next(2), y.append(e, t);
21
+ b.append(e, t);
22
+ }, f = (e) => {
23
+ var t = S();
24
+ b.next(2), b.append(e, t);
25
25
  };
26
- y.if(u, (e) => {
27
- y.get(s) === "fill" ? e(d) : e(f, -1);
28
- }), y.reset(c), y.template_effect(() => {
29
- y.set_class(c, 0, y.clsx(a())), y.set_attribute(c, "width", r()), y.set_attribute(c, "height", r()), l = y.set_style(c, "", l, { color: i() === "currentColor" ? void 0 : i() });
30
- }), y.append(e, c), y.pop();
26
+ b.if(u, (e) => {
27
+ b.get(s) === "fill" ? e(d) : e(f, -1);
28
+ }), b.reset(c), b.template_effect(() => {
29
+ b.set_class(c, 0, b.clsx(a())), b.set_attribute(c, "width", r()), b.set_attribute(c, "height", r()), l = b.set_style(c, "", l, { color: i() === "currentColor" ? void 0 : i() });
30
+ }), b.append(t, c), b.pop();
31
31
  }
32
32
  //#endregion
33
33
  //#region src/lib/api/transformers/address.ts
34
- function w(e) {
34
+ function T(e) {
35
35
  if (!e) return [];
36
36
  let t = e.split(",").map((e) => e.trim());
37
37
  if (t.length < 2) return [e];
@@ -42,17 +42,17 @@ function w(e) {
42
42
  }
43
43
  return [t[0], t.slice(1).join(", ")];
44
44
  }
45
- function T(e) {
45
+ function E(e) {
46
46
  return e ? `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e)}` : "";
47
47
  }
48
48
  //#endregion
49
49
  //#region src/lib/api/transformers/faq.ts
50
- var E = "FAQ", D = 40, O = /^q\s*[:.)-]\s*/i, k = /^a\s*[:.)-]\s*/i;
51
- function A(e) {
50
+ var D = "FAQ", O = 40, k = /^q\s*[:.)-]\s*/i, A = /^a\s*[:.)-]\s*/i;
51
+ function j(e) {
52
52
  if (Array.isArray(e)) return e.map((e) => ({
53
53
  question: String(e?.question ?? "").trim(),
54
54
  answer: String(e?.answer ?? "").trim()
55
- })).filter((e) => e.question || e.answer).slice(0, D);
55
+ })).filter((e) => e.question || e.answer).slice(0, O);
56
56
  if (typeof e != "string") return [];
57
57
  let t = e.trim();
58
58
  if (!t) return [];
@@ -60,33 +60,33 @@ function A(e) {
60
60
  if (n.length === 0) return [];
61
61
  let r = [], i = null;
62
62
  for (let e of n) {
63
- let t = O.test(e), n = k.test(e);
63
+ let t = k.test(e), n = A.test(e);
64
64
  if (t || !n && e.endsWith("?")) {
65
65
  i && r.push(i), i = {
66
- question: e.replace(O, "").trim(),
66
+ question: e.replace(k, "").trim(),
67
67
  answer: ""
68
68
  };
69
69
  continue;
70
70
  }
71
- let a = e.replace(k, "").trim();
71
+ let a = e.replace(A, "").trim();
72
72
  if (!i) {
73
73
  i = {
74
- question: E,
74
+ question: D,
75
75
  answer: a
76
76
  };
77
77
  continue;
78
78
  }
79
79
  i.answer = i.answer ? `${i.answer}\n${a}` : a;
80
80
  }
81
- return i && r.push(i), r.some((e) => e.question !== E) ? r.filter((e) => e.question || e.answer).slice(0, D) : [{
82
- question: E,
81
+ return i && r.push(i), r.some((e) => e.question !== D) ? r.filter((e) => e.question || e.answer).slice(0, O) : [{
82
+ question: D,
83
83
  answer: n.join("\n")
84
84
  }];
85
85
  }
86
86
  //#endregion
87
87
  //#region src/lib/api/transformers/series.ts
88
- function j(t) {
89
- let n = t, r = a(t.timeZone || n.timezone || n.time_zone || "UTC"), i = h(t.image || "", { cdn: !0 }), o = (t.occurrences || []).map((e) => {
88
+ function M(e) {
89
+ let t = e, r = a(e.timeZone || t.timezone || t.time_zone), i = g(e.image || "", { cdn: !0 }), o = (e.occurrences || []).map((e) => {
90
90
  let t = e.venue, n = t ? [t.name, t.stageName].filter(Boolean).join(" — ") : "", r = t ? t.googleLocationNameCache || [
91
91
  t.address,
92
92
  t.city,
@@ -103,16 +103,16 @@ function j(t) {
103
103
  ...n ? { venueName: n } : {},
104
104
  ...r ? { venueAddress: r } : {}
105
105
  };
106
- }), s = t.occurrences?.[0], c = s?.startDateTime ? e(s.startDateTime, r) : "", l = A(t.venue?.faq), u = (t.performers || []).map((e, t) => ({
106
+ }), s = e.occurrences?.[0], c = s?.startDateTime ? n(s.startDateTime, r) : "", l = j(e.venue?.faq), u = (e.performers || []).map((e, t) => ({
107
107
  id: t + 1,
108
108
  displayName: e.displayName || [e.firstName, e.lastName].filter(Boolean).join(" "),
109
109
  profileImage: e.profileImage || void 0
110
- })), d = t.venue?.location || t.venue?.googleLocationNameCache || "";
110
+ })), d = e.venue?.location || e.venue?.googleLocationNameCache || "";
111
111
  return {
112
- id: t.id,
113
- title: t.title || "",
112
+ id: e.id,
113
+ title: e.title || "",
114
114
  slug: "",
115
- description: t.description || t.eventSummary || "",
115
+ description: e.description || e.eventSummary || "",
116
116
  date: c,
117
117
  startDateTime: s?.startDateTime || "",
118
118
  endDateTime: s?.endDateTime || "",
@@ -120,8 +120,8 @@ function j(t) {
120
120
  timezone: r,
121
121
  imageUrl: i,
122
122
  venue: {
123
- id: t.venue?.id || 0,
124
- name: t.venue?.name || "",
123
+ id: e.venue?.id || 0,
124
+ name: e.venue?.name || "",
125
125
  address: d,
126
126
  timezone: r,
127
127
  serviceFeePercentage: 0,
@@ -131,31 +131,31 @@ function j(t) {
131
131
  performers: u,
132
132
  tickets: [],
133
133
  faqs: l,
134
- disclaimer: t.venue?.disclaimer || void 0,
135
- ...v(t.venue),
134
+ disclaimer: e.venue?.disclaimer || void 0,
135
+ ...y(e.venue),
136
136
  status: "on_sale",
137
- eventSeriesId: t.id,
137
+ eventSeriesId: e.id,
138
138
  seriesOccurrences: o,
139
139
  isPasswordProtected: !1,
140
140
  isRegistrationEvent: !1,
141
141
  totalTicketsRemaining: 0,
142
142
  totalTicketsCapacity: 0,
143
- venueAddressLines: w(d),
144
- googleMapsUrl: T(d)
143
+ venueAddressLines: T(d),
144
+ googleMapsUrl: E(d)
145
145
  };
146
146
  }
147
147
  //#endregion
148
148
  //#region src/lib/api/transformers/collection.ts
149
- function M(e) {
149
+ function N(e) {
150
150
  let t = (e.events || []).map((e) => ({
151
151
  id: e.id,
152
152
  name: e.title || "",
153
153
  slug: e.slug || "",
154
- image: h(e.image || "", { cdn: !0 }),
154
+ image: g(e.image || "", { cdn: !0 }),
155
155
  startDateTime: e.startDateTime || "",
156
156
  status: e.status || "on_sale",
157
157
  timezone: e.timeZone || e.timezone || e.venue?.timeZone || e.venue?.timezone || ""
158
- })), n = h(e.coverImage || "", { cdn: !0 });
158
+ })), n = g(e.coverImage || "", { cdn: !0 });
159
159
  return {
160
160
  id: e.id,
161
161
  title: e.collectionTitle || "",
@@ -165,13 +165,13 @@ function M(e) {
165
165
  startDateTime: "",
166
166
  endDateTime: "",
167
167
  doorsOpenTime: "",
168
- timezone: "UTC",
168
+ timezone: s,
169
169
  imageUrl: n,
170
170
  venue: {
171
171
  id: 0,
172
172
  name: "",
173
173
  address: "",
174
- timezone: "UTC",
174
+ timezone: s,
175
175
  serviceFeePercentage: 0,
176
176
  serviceFeeCents: 0,
177
177
  taxPercentage: 0
@@ -190,15 +190,15 @@ function M(e) {
190
190
  }
191
191
  //#endregion
192
192
  //#region src/lib/public-calendar-flow/transform.ts
193
- function N(e) {
193
+ function P(e) {
194
194
  let t = i(), n = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity ?? 0, r = e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart, a = e.salesEnd || e.saleEnd || e.onSaleEnd;
195
195
  if (n <= 0) return "sold_out";
196
- let c = s(a);
197
- if (c && o(c, t) < 0) return "sales_ended";
198
- let l = s(r);
196
+ let s = c(a);
197
+ if (s && o(s, t) < 0) return "sales_ended";
198
+ let l = c(r);
199
199
  return l && o(l, t) > 0 ? "coming_soon" : "on_sale";
200
200
  }
201
- function P(e, t, n = !1) {
201
+ function F(e, t, n = !1) {
202
202
  let r = (e || "").toLowerCase().replace(/\s+/g, "_");
203
203
  if (r === "cancelled" || r === "canceled") return "cancelled";
204
204
  if (r === "postponed") return "postponed";
@@ -212,8 +212,8 @@ function P(e, t, n = !1) {
212
212
  }
213
213
  return r === "sold_out" || r === "soldout" ? "sold_out" : r === "coming_soon" || r === "comingsoon" ? "coming_soon" : r === "sales_ended" || r === "salesended" ? "sales_ended" : "on_sale";
214
214
  }
215
- function F(n) {
216
- let r = g(n), i = r.venue || {}, o = a(r.timeZone || r.timezone || i.timeZone || i.timezone || "UTC"), s = (n.availableTickets || []).map((e) => ({
215
+ function I(e) {
216
+ let r = _(e), i = r.venue || {}, o = a(r.timeZone || r.timezone || i.timeZone || i.timezone), s = (e.availableTickets || []).map((e) => ({
217
217
  id: e.id || e.ID,
218
218
  name: e.name || e.title || "",
219
219
  description: e.description || void 0,
@@ -223,14 +223,14 @@ function F(n) {
223
223
  quantityTotal: e.totalCapacity ?? e.quantity ?? 0,
224
224
  minPerOrder: e.minPerOrder ?? e.minQuantity ?? 1,
225
225
  maxPerOrder: e.maxPerOrder ?? e.maxQuantity ?? 10,
226
- status: N(e),
226
+ status: P(e),
227
227
  salesStartDate: e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart || void 0,
228
228
  salesEndDate: e.salesEnd || e.saleEnd || e.onSaleEnd || void 0,
229
229
  isDonation: e.type === 2 || e.ticketType === 2 || e.isDonation === !0,
230
- isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= _.HIDDEN,
230
+ isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= v.HIDDEN,
231
231
  ticketType: e.type || e.ticketType || void 0,
232
232
  sectionName: e.sectionName || e.section || void 0
233
- })), c = s.filter((e) => !e.isHidden && !e.isDonation && e.status === "on_sale"), l = c.reduce((e, t) => e + t.quantityAvailable, 0), u = c.reduce((e, t) => e + t.quantityTotal, 0), d = n.hasPurchasableHiddenTickets === !0, f = P(r.status, s, d), p = n.image || n.imageUrl || n.image_url || "", m = p.startsWith("http") ? p : h(p, { cdn: !0 }), y = {
233
+ })), c = s.filter((e) => !e.isHidden && !e.isDonation && e.status === "on_sale"), l = c.reduce((e, t) => e + t.quantityAvailable, 0), u = c.reduce((e, t) => e + t.quantityTotal, 0), d = e.hasPurchasableHiddenTickets === !0, f = F(r.status, s, d), p = e.image || e.imageUrl || e.image_url || "", m = p.startsWith("http") ? p : g(p, { cdn: !0 }), h = {
234
234
  id: i.id || i.ID || 0,
235
235
  name: i.name || i.googleLocationNameCache || "",
236
236
  address: i.address || i.googleLocationNameCache || "",
@@ -244,7 +244,7 @@ function F(n) {
244
244
  displayName: e.displayName || e.name || "",
245
245
  profileImage: e.avatar || e.profileImage || void 0,
246
246
  role: e.role || void 0
247
- })), x = r.faqs ? A(r.faqs) : A(i.faq), S = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
247
+ })), x = r.faqs ? j(r.faqs) : j(i.faq), S = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
248
248
  id: e.id ?? e.eventId ?? t + 1,
249
249
  slug: e.slug || "",
250
250
  startDateTime: e.startDateTime || e.startTime || "",
@@ -252,7 +252,7 @@ function F(n) {
252
252
  status: e.ctaState?.reason === "sold_out" ? "sold_out" : "on_sale",
253
253
  ctaText: e.ctaState?.text || "",
254
254
  ctaDisabled: e.ctaState?.disabled || !1
255
- })), C = r.startDateTime ? e(r.startDateTime, o) : "";
255
+ })), C = r.startDateTime ? n(r.startDateTime, o) : "";
256
256
  return {
257
257
  id: r.id,
258
258
  title: r.title || "",
@@ -264,13 +264,13 @@ function F(n) {
264
264
  doorsOpenTime: r.doorsOpenTime || "",
265
265
  timezone: o,
266
266
  imageUrl: m,
267
- venue: y,
267
+ venue: h,
268
268
  performers: b,
269
269
  tickets: s,
270
- ...Array.isArray(n.addOns) && n.addOns.length > 0 ? { addOns: n.addOns } : {},
270
+ ...Array.isArray(e.addOns) && e.addOns.length > 0 ? { addOns: e.addOns } : {},
271
271
  faqs: x,
272
272
  disclaimer: r.disclaimer || i.disclaimer || void 0,
273
- ...v(i),
273
+ ...y(i),
274
274
  status: f,
275
275
  salesStatus: r.salesStatus || void 0,
276
276
  ...d ? { hasPurchasableHiddenTickets: !0 } : {},
@@ -290,19 +290,19 @@ function F(n) {
290
290
  summary: r.eventSummary || void 0,
291
291
  postSalesMessage: r.postSalesMessage || void 0,
292
292
  collectionId: r.collectionId || void 0,
293
- venueAddressLines: w(i.address || i.googleLocationNameCache || ""),
294
- googleMapsUrl: T(i.address || i.googleLocationNameCache || "")
293
+ venueAddressLines: T(i.address || i.googleLocationNameCache || ""),
294
+ googleMapsUrl: E(i.address || i.googleLocationNameCache || "")
295
295
  };
296
296
  }
297
- function I(e) {
298
- return j(e);
299
- }
300
297
  function L(e) {
301
298
  return M(e);
302
299
  }
300
+ function R(e) {
301
+ return N(e);
302
+ }
303
303
  //#endregion
304
304
  //#region src/lib/public-calendar-flow/shareEventLink.ts
305
- async function R(e) {
305
+ async function z(e) {
306
306
  if (typeof navigator < "u" && typeof navigator.share == "function") try {
307
307
  return await navigator.share({ url: e }), "shared";
308
308
  } catch (e) {
@@ -312,21 +312,21 @@ async function R(e) {
312
312
  }
313
313
  //#endregion
314
314
  //#region src/lib/public-calendar-flow/shareCopyFeedback.svelte.ts
315
- function z() {
316
- let e = y.state("idle"), t = y.state(""), n;
315
+ function B() {
316
+ let e = b.state("idle"), t = b.state(""), n;
317
317
  async function r(r) {
318
- let i = await R(r);
319
- i === "copied" ? (y.set(t, ""), y.set(e, "copied"), clearTimeout(n), n = setTimeout(() => y.set(e, "idle"), 2500)) : i === "failed" && (clearTimeout(n), y.set(e, "failed"), y.set(t, r, !0));
318
+ let i = await z(r);
319
+ i === "copied" ? (b.set(t, ""), b.set(e, "copied"), clearTimeout(n), n = setTimeout(() => b.set(e, "idle"), 2500)) : i === "failed" && (clearTimeout(n), b.set(e, "failed"), b.set(t, r, !0));
320
320
  }
321
321
  function i() {
322
322
  clearTimeout(n);
323
323
  }
324
324
  return {
325
325
  get copyState() {
326
- return y.get(e);
326
+ return b.get(e);
327
327
  },
328
328
  get copyFailedUrl() {
329
- return y.get(t);
329
+ return b.get(t);
330
330
  },
331
331
  share: r,
332
332
  dispose: i
@@ -334,40 +334,40 @@ function z() {
334
334
  }
335
335
  //#endregion
336
336
  //#region src/lib/api/recommendations.ts
337
- async function B(e, t = "event_page", n) {
338
- return e ? (await c(`${l()}/events/${e}/recommendations?surface=${t}`, { widgetKey: n }))?.recommendations ?? [] : [];
337
+ async function V(e, t = "event_page", n) {
338
+ return e ? (await l(`${u()}/events/${e}/recommendations?surface=${t}`, { widgetKey: n }))?.recommendations ?? [] : [];
339
339
  }
340
340
  //#endregion
341
341
  //#region src/lib/public-calendar-flow/recommendation-cards.ts
342
- function V(t) {
343
- return t.filter((e) => !!e.startsAt).map((t) => ({
344
- eventID: t.eventId,
345
- name: t.title,
346
- date: e(t.startsAt, t.timeZone),
347
- startDateTime: t.startsAt,
348
- imageUrl: t.image ?? "",
342
+ function H(e) {
343
+ return e.filter((e) => !!e.startsAt).map((e) => ({
344
+ eventID: e.eventId,
345
+ name: e.title,
346
+ date: n(e.startsAt, e.timeZone),
347
+ startDateTime: e.startsAt,
348
+ imageUrl: e.image ?? "",
349
349
  status: "on_sale",
350
- timeZone: t.timeZone,
351
- venueName: t.venueName,
350
+ timeZone: e.timeZone,
351
+ venueName: e.venueName,
352
352
  ticketsRemaining: void 0,
353
353
  ticketsTotal: void 0
354
354
  }));
355
355
  }
356
356
  //#endregion
357
357
  //#region src/lib/public-calendar-flow/RecommendationsRail.svelte
358
- var H = y.from_html("<span class=\"self-start rounded-full bg-status-info-bg px-2 py-0.5 text-status-info-text\" data-testid=\"recommendation-why\"> </span>"), U = y.from_html("<div class=\"flex flex-col gap-2\"><!> <!></div>"), W = y.from_html("<section data-testid=\"recommendations-rail\"><div class=\"mb-4\"><!></div> <!></section>");
359
- function G(e, t) {
360
- y.push(t, !0);
361
- let n = y.prop(t, "surface", 3, "event_page"), r = y.prop(t, "locale", 3, "en"), i = y.state(y.proxy([]));
362
- y.user_effect(() => {
358
+ var U = b.from_html("<span class=\"self-start rounded-full bg-status-info-bg px-2 py-0.5 text-status-info-text\" data-testid=\"recommendation-why\"> </span>"), W = b.from_html("<div class=\"flex flex-col gap-2\"><!> <!></div>"), G = b.from_html("<section data-testid=\"recommendations-rail\"><div class=\"mb-4\"><!></div> <!></section>");
359
+ function K(e, t) {
360
+ b.push(t, !0);
361
+ let n = b.prop(t, "surface", 3, "event_page"), r = b.prop(t, "locale", 3, "en"), i = b.state(b.proxy([]));
362
+ b.user_effect(() => {
363
363
  let e = t.eventId, r = !0;
364
- return B(e, n(), t.widgetKey).then((n) => {
365
- r && e === t.eventId && y.set(i, n, !0);
364
+ return V(e, n(), t.widgetKey).then((n) => {
365
+ r && e === t.eventId && b.set(i, n, !0);
366
366
  }), () => {
367
367
  r = !1;
368
368
  };
369
369
  });
370
- let a = y.derived(() => f(V(y.get(i))));
370
+ let a = b.derived(() => p(H(b.get(i))));
371
371
  function o(e) {
372
372
  let n = s(e);
373
373
  if (!n) return "";
@@ -381,7 +381,7 @@ function G(e, t) {
381
381
  }
382
382
  }
383
383
  function s(e) {
384
- return y.get(i).find((t) => t.eventId === e.eventID);
384
+ return b.get(i).find((t) => t.eventId === e.eventID);
385
385
  }
386
386
  function c(e) {
387
387
  let n = s(e)?.url;
@@ -391,57 +391,57 @@ function G(e, t) {
391
391
  }
392
392
  t.onselect?.(e);
393
393
  }
394
- var l = y.comment(), h = y.first_child(l), g = (e) => {
395
- var n = W(), i = y.child(n), s = y.child(i);
396
- u(s, {
394
+ var l = b.comment(), u = b.first_child(l), g = (e) => {
395
+ var n = G(), i = b.child(n), s = b.child(i);
396
+ d(s, {
397
397
  size: "xl",
398
398
  weight: "semibold",
399
399
  children: (e, n) => {
400
- y.next();
401
- var r = y.text();
402
- y.template_effect(() => y.set_text(r, t.labels.recommendationsHeading)), y.append(e, r);
400
+ b.next();
401
+ var r = b.text();
402
+ b.template_effect(() => b.set_text(r, t.labels.recommendationsHeading)), b.append(e, r);
403
403
  },
404
404
  $$slots: { default: !0 }
405
- }), y.reset(i);
406
- var l = y.sibling(i, 2);
407
- d(l, {
405
+ }), b.reset(i);
406
+ var l = b.sibling(i, 2);
407
+ f(l, {
408
408
  cols: "auto",
409
409
  minWidth: "240px",
410
410
  gap: "6",
411
411
  children: (e, n) => {
412
- var i = y.comment(), s = y.first_child(i);
413
- y.each(s, 17, () => y.get(a), (e) => e.event.eventID, (e, n) => {
414
- let i = y.derived(() => {
415
- let { pillEvents: e, ...i } = m(y.get(n), t.labels, r());
412
+ var i = b.comment(), s = b.first_child(i);
413
+ b.each(s, 17, () => b.get(a), (e) => e.event.eventID, (e, n) => {
414
+ let i = b.derived(() => {
415
+ let { pillEvents: e, ...i } = h(b.get(n), t.labels, r());
416
416
  return {
417
417
  _pillEvents: e,
418
418
  card: i
419
419
  };
420
420
  });
421
- var a = U(), s = y.child(a);
422
- p(s, y.spread_props(() => y.get(i).card, {
421
+ var a = W(), s = b.child(a);
422
+ m(s, b.spread_props(() => b.get(i).card, {
423
423
  layout: "vertical",
424
424
  density: "standard",
425
425
  get placeholderImage() {
426
426
  return t.placeholderImage;
427
427
  },
428
- onclick: () => c(y.get(n).event)
428
+ onclick: () => c(b.get(n).event)
429
429
  }));
430
- var l = y.sibling(s, 2), u = (e) => {
431
- var t = H(), r = y.child(t, !0);
432
- y.reset(t), y.template_effect((e) => y.set_text(r, e), [() => o(y.get(n).event)]), y.append(e, t);
433
- }, d = y.derived(() => o(y.get(n).event));
434
- y.if(l, (e) => {
435
- y.get(d) && e(u);
436
- }), y.reset(a), y.append(e, a);
437
- }), y.append(e, i);
430
+ var l = b.sibling(s, 2), u = (e) => {
431
+ var t = U(), r = b.child(t, !0);
432
+ b.reset(t), b.template_effect((e) => b.set_text(r, e), [() => o(b.get(n).event)]), b.append(e, t);
433
+ }, d = b.derived(() => o(b.get(n).event));
434
+ b.if(l, (e) => {
435
+ b.get(d) && e(u);
436
+ }), b.reset(a), b.append(e, a);
437
+ }), b.append(e, i);
438
438
  },
439
439
  $$slots: { default: !0 }
440
- }), y.reset(n), y.append(e, n);
440
+ }), b.reset(n), b.append(e, n);
441
441
  };
442
- y.if(h, (e) => {
443
- y.get(a).length > 0 && e(g);
444
- }), y.append(e, l), y.pop();
442
+ b.if(u, (e) => {
443
+ b.get(a).length > 0 && e(g);
444
+ }), b.append(e, l), b.pop();
445
445
  }
446
446
  //#endregion
447
- export { I as a, L as i, z as n, C as o, F as r, G as t };
447
+ export { L as a, R as i, B as n, w as o, I as r, K as t };
@@ -1,5 +1,5 @@
1
- import { t as e } from "./WarningCircleIcon-C1-Aj9ut.js";
2
- import { n as t, q as n } from "./scarcity-DqbDh1cS.js";
1
+ import { t as e } from "./WarningCircleIcon-DhNvSQag.js";
2
+ import { K as t, n } from "./scarcity-CJ6IsR7f.js";
3
3
  import { t as r } from "./Badge-n7TfNjln.js";
4
4
  import { t as i } from "./defaultLabels-BkjXKQDd.js";
5
5
  import { n as a } from "./liveAnnouncer-D3xVL7qA.js";
@@ -7,9 +7,9 @@ import "svelte/internal/disclose-version";
7
7
  import * as o from "svelte/internal/client";
8
8
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/SubtractIcon.svelte
9
9
  var s = o.from_svg("<path d=\"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z\"></path>"), c = o.from_svg("<line x1=\"40\" y1=\"128\" x2=\"216\" y2=\"128\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line>"), l = o.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
10
- function u(e, t) {
11
- o.push(t, !0);
12
- let r = o.prop(t, "size", 3, "24"), i = o.prop(t, "color", 3, "currentColor"), a = o.prop(t, "class", 3, ""), u = n(), d = o.derived(() => t.weight ?? u?.weight ?? "regular");
10
+ function u(e, n) {
11
+ o.push(n, !0);
12
+ let r = o.prop(n, "size", 3, "24"), i = o.prop(n, "color", 3, "currentColor"), a = o.prop(n, "class", 3, ""), u = t(), d = o.derived(() => n.weight ?? u?.weight ?? "regular");
13
13
  var f = l();
14
14
  let p;
15
15
  var m = o.child(f), h = (e) => {
@@ -37,9 +37,9 @@ function m(e) {
37
37
  (p[e] ??= a(f))(e, { politeness: "polite" });
38
38
  }
39
39
  var h = o.from_html("<span><!> </span>");
40
- function g(n, a) {
40
+ function g(t, a) {
41
41
  o.push(a, !0);
42
- let s = o.prop(a, "context", 3, "browse"), c = o.prop(a, "variant", 3, "default"), l = o.prop(a, "isFree", 3, !1), u = o.prop(a, "labels", 3, i), d = o.derived(() => t(a.remaining, a.total)), f = o.derived(() => {
42
+ let s = o.prop(a, "context", 3, "browse"), c = o.prop(a, "variant", 3, "default"), l = o.prop(a, "isFree", 3, !1), u = o.prop(a, "labels", 3, i), d = o.derived(() => n(a.remaining, a.total)), f = o.derived(() => {
43
43
  let e = u().statusSoldOut || "Sold out", t = u().statusSellingFast || "Selling fast", n = u().scarcityOnlyNLeft || "Only {remaining} left";
44
44
  return o.get(d) === "sold-out" ? {
45
45
  type: "sold-out",
@@ -110,7 +110,7 @@ function g(n, a) {
110
110
  };
111
111
  o.if(y, (e) => {
112
112
  o.get(f) && e(b);
113
- }), o.append(n, v), o.pop();
113
+ }), o.append(t, v), o.pop();
114
114
  }
115
115
  //#endregion
116
116
  export { d as n, u as r, g as t };
@@ -1,7 +1,7 @@
1
1
  import { E as e } from "./Button-klwKgfhG.js";
2
- import { t } from "./Event-DyX1UrZe.js";
3
- import { a as n } from "./RecommendationsRail-CG0vCtgJ.js";
4
- import { n as r } from "./ScarcityBadge-D0D6Hqp0.js";
2
+ import { t } from "./Event-CqQ0yP-h.js";
3
+ import { a as n } from "./RecommendationsRail-CN_dtLWp.js";
4
+ import { n as r } from "./ScarcityBadge-BJrsvt6e.js";
5
5
  import { t as i } from "./__SKIP_PATHS__-C0ixDSSm.js";
6
6
  import "svelte/internal/disclose-version";
7
7
  import * as a from "svelte/internal/client";