@getmicdrop/venue-calendar 4.3.39 → 4.3.41

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 (68) 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-MI9p1Q-2.js} +3082 -3043
  5. package/dist/{CalendarIcon-B1JasL-W.js → CalendarIcon-DOAS1a6F.js} +1 -1
  6. package/dist/{CartView-CyU9g9ss.js → CartView-BqskyKSN.js} +670 -671
  7. package/dist/{Checkout-BGXlW2j2.js → Checkout-BHRHU4AS.js} +24 -24
  8. package/dist/{Checkout-DrP1KLR_.js → Checkout-DuvjKPyz.js} +54 -54
  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-DwLFFpwW.js} +5 -5
  14. package/dist/{Event-DyX1UrZe.js → Event-BIqxB0kY.js} +239 -227
  15. package/dist/{EventPage-DxyEqU7R.js → EventPage-BAKtJTkf.js} +82 -80
  16. package/dist/Input-DMfgmBL7.js +301 -0
  17. package/dist/{MailIcon-Cf77TYiB.js → MailIcon-CqCCKGgC.js} +1 -1
  18. package/dist/{PasswordInput-C-BH1Do3.js → PasswordInput-BrgHYGYw.js} +1 -1
  19. package/dist/{RecommendationsRail-CG0vCtgJ.js → RecommendationsRail-Dmq3C4UQ.js} +131 -130
  20. package/dist/{ScarcityBadge-D0D6Hqp0.js → ScarcityBadge-BJrsvt6e.js} +8 -8
  21. package/dist/{SeriesPage-D9_Nn8gF.js → SeriesPage-lA7Y1MCK.js} +3 -3
  22. package/dist/{Success-Db843hJe.js → Success-DxJkVp0V.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-Dew6DCL7.js → event-DY17tQ0r.js} +21 -48
  30. package/dist/{event-transform-CbFR1hRl.js → event-transform-BhldGx8B.js} +24 -23
  31. package/dist/{href-B4azVXj-.js → href-B-lH1SYh.js} +1 -1
  32. package/dist/{i18n-srcm-H61.js → i18n-BpodazP1.js} +102 -102
  33. package/dist/imageUrl-Bata3II2.js +29 -0
  34. package/dist/{order-totals-DFE6UVG4.js → order-totals-iUg6d6MJ.js} +1 -1
  35. package/dist/{phoneUtils-CxLRaM5n.js → phoneUtils-BPEB92vB.js} +1 -1
  36. package/dist/{scarcity-DqbDh1cS.js → scarcity-CJ6IsR7f.js} +2 -11
  37. package/dist/{to-event-card-props-CRaeqRxY.js → to-event-card-props-Cr5Uq0Ef.js} +8 -8
  38. package/dist/{utils-kRsfuFcG.js → utils-D3cl-uGb.js} +1 -1
  39. package/dist/venue-calendar.css +1 -1
  40. package/dist/venue-calendar.es.js +60 -60
  41. package/dist/venue-calendar.iife.js +40 -40
  42. package/dist/venue-calendar.umd.js +52 -52
  43. package/package.json +2 -2
  44. package/dist/Input-DNzDcf6I.js +0 -292
  45. /package/dist/locales/{4.3.39 → 4.3.41}/flow/de.js +0 -0
  46. /package/dist/locales/{4.3.39 → 4.3.41}/flow/es.js +0 -0
  47. /package/dist/locales/{4.3.39 → 4.3.41}/flow/fr.js +0 -0
  48. /package/dist/locales/{4.3.39 → 4.3.41}/flow/id.js +0 -0
  49. /package/dist/locales/{4.3.39 → 4.3.41}/flow/it.js +0 -0
  50. /package/dist/locales/{4.3.39 → 4.3.41}/flow/ja.js +0 -0
  51. /package/dist/locales/{4.3.39 → 4.3.41}/flow/ko.js +0 -0
  52. /package/dist/locales/{4.3.39 → 4.3.41}/flow/nl.js +0 -0
  53. /package/dist/locales/{4.3.39 → 4.3.41}/flow/pl.js +0 -0
  54. /package/dist/locales/{4.3.39 → 4.3.41}/flow/pt-br.js +0 -0
  55. /package/dist/locales/{4.3.39 → 4.3.41}/flow/tr.js +0 -0
  56. /package/dist/locales/{4.3.39 → 4.3.41}/flow/zh.js +0 -0
  57. /package/dist/locales/{4.3.39 → 4.3.41}/main/de.js +0 -0
  58. /package/dist/locales/{4.3.39 → 4.3.41}/main/es.js +0 -0
  59. /package/dist/locales/{4.3.39 → 4.3.41}/main/fr.js +0 -0
  60. /package/dist/locales/{4.3.39 → 4.3.41}/main/id.js +0 -0
  61. /package/dist/locales/{4.3.39 → 4.3.41}/main/it.js +0 -0
  62. /package/dist/locales/{4.3.39 → 4.3.41}/main/ja.js +0 -0
  63. /package/dist/locales/{4.3.39 → 4.3.41}/main/ko.js +0 -0
  64. /package/dist/locales/{4.3.39 → 4.3.41}/main/nl.js +0 -0
  65. /package/dist/locales/{4.3.39 → 4.3.41}/main/pl.js +0 -0
  66. /package/dist/locales/{4.3.39 → 4.3.41}/main/pt-br.js +0 -0
  67. /package/dist/locales/{4.3.39 → 4.3.41}/main/tr.js +0 -0
  68. /package/dist/locales/{4.3.39 → 4.3.41}/main/zh.js +0 -0
@@ -1,37 +1,38 @@
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 { n as g } from "./imageUrl-Bata3II2.js";
8
+ import { z as _ } from "./api-Di0gC83p.js";
9
+ import { t as v } from "./event-DY17tQ0r.js";
10
+ import { t as y } from "./venue-CBos8YTa.js";
10
11
  import "svelte/internal/disclose-version";
11
- import * as y from "svelte/internal/client";
12
+ import * as b from "svelte/internal/client";
12
13
  //#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();
14
+ 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>");
15
+ function w(t, n) {
16
+ b.push(n, !0);
17
+ 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");
18
+ var c = C();
18
19
  let l;
19
- var u = y.child(c), d = (e) => {
20
- var t = b();
21
- y.append(e, t);
22
- }, f = (e) => {
20
+ var u = b.child(c), d = (e) => {
23
21
  var t = x();
24
- y.next(2), y.append(e, t);
22
+ b.append(e, t);
23
+ }, f = (e) => {
24
+ var t = S();
25
+ b.next(2), b.append(e, t);
25
26
  };
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();
27
+ b.if(u, (e) => {
28
+ b.get(s) === "fill" ? e(d) : e(f, -1);
29
+ }), b.reset(c), b.template_effect(() => {
30
+ 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() });
31
+ }), b.append(t, c), b.pop();
31
32
  }
32
33
  //#endregion
33
34
  //#region src/lib/api/transformers/address.ts
34
- function w(e) {
35
+ function T(e) {
35
36
  if (!e) return [];
36
37
  let t = e.split(",").map((e) => e.trim());
37
38
  if (t.length < 2) return [e];
@@ -42,17 +43,17 @@ function w(e) {
42
43
  }
43
44
  return [t[0], t.slice(1).join(", ")];
44
45
  }
45
- function T(e) {
46
+ function E(e) {
46
47
  return e ? `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e)}` : "";
47
48
  }
48
49
  //#endregion
49
50
  //#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) {
51
+ var D = "FAQ", O = 40, k = /^q\s*[:.)-]\s*/i, A = /^a\s*[:.)-]\s*/i;
52
+ function j(e) {
52
53
  if (Array.isArray(e)) return e.map((e) => ({
53
54
  question: String(e?.question ?? "").trim(),
54
55
  answer: String(e?.answer ?? "").trim()
55
- })).filter((e) => e.question || e.answer).slice(0, D);
56
+ })).filter((e) => e.question || e.answer).slice(0, O);
56
57
  if (typeof e != "string") return [];
57
58
  let t = e.trim();
58
59
  if (!t) return [];
@@ -60,33 +61,33 @@ function A(e) {
60
61
  if (n.length === 0) return [];
61
62
  let r = [], i = null;
62
63
  for (let e of n) {
63
- let t = O.test(e), n = k.test(e);
64
+ let t = k.test(e), n = A.test(e);
64
65
  if (t || !n && e.endsWith("?")) {
65
66
  i && r.push(i), i = {
66
- question: e.replace(O, "").trim(),
67
+ question: e.replace(k, "").trim(),
67
68
  answer: ""
68
69
  };
69
70
  continue;
70
71
  }
71
- let a = e.replace(k, "").trim();
72
+ let a = e.replace(A, "").trim();
72
73
  if (!i) {
73
74
  i = {
74
- question: E,
75
+ question: D,
75
76
  answer: a
76
77
  };
77
78
  continue;
78
79
  }
79
80
  i.answer = i.answer ? `${i.answer}\n${a}` : a;
80
81
  }
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,
82
+ return i && r.push(i), r.some((e) => e.question !== D) ? r.filter((e) => e.question || e.answer).slice(0, O) : [{
83
+ question: D,
83
84
  answer: n.join("\n")
84
85
  }];
85
86
  }
86
87
  //#endregion
87
88
  //#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) => {
89
+ function M(e) {
90
+ let t = e, r = a(e.timeZone || t.timezone || t.time_zone), i = g(e.image || "", { cdn: !0 }), o = (e.occurrences || []).map((e) => {
90
91
  let t = e.venue, n = t ? [t.name, t.stageName].filter(Boolean).join(" — ") : "", r = t ? t.googleLocationNameCache || [
91
92
  t.address,
92
93
  t.city,
@@ -103,16 +104,16 @@ function j(t) {
103
104
  ...n ? { venueName: n } : {},
104
105
  ...r ? { venueAddress: r } : {}
105
106
  };
106
- }), s = t.occurrences?.[0], c = s?.startDateTime ? e(s.startDateTime, r) : "", l = A(t.venue?.faq), u = (t.performers || []).map((e, t) => ({
107
+ }), s = e.occurrences?.[0], c = s?.startDateTime ? n(s.startDateTime, r) : "", l = j(e.venue?.faq), u = (e.performers || []).map((e, t) => ({
107
108
  id: t + 1,
108
109
  displayName: e.displayName || [e.firstName, e.lastName].filter(Boolean).join(" "),
109
110
  profileImage: e.profileImage || void 0
110
- })), d = t.venue?.location || t.venue?.googleLocationNameCache || "";
111
+ })), d = e.venue?.location || e.venue?.googleLocationNameCache || "";
111
112
  return {
112
- id: t.id,
113
- title: t.title || "",
113
+ id: e.id,
114
+ title: e.title || "",
114
115
  slug: "",
115
- description: t.description || t.eventSummary || "",
116
+ description: e.description || e.eventSummary || "",
116
117
  date: c,
117
118
  startDateTime: s?.startDateTime || "",
118
119
  endDateTime: s?.endDateTime || "",
@@ -120,8 +121,8 @@ function j(t) {
120
121
  timezone: r,
121
122
  imageUrl: i,
122
123
  venue: {
123
- id: t.venue?.id || 0,
124
- name: t.venue?.name || "",
124
+ id: e.venue?.id || 0,
125
+ name: e.venue?.name || "",
125
126
  address: d,
126
127
  timezone: r,
127
128
  serviceFeePercentage: 0,
@@ -131,31 +132,31 @@ function j(t) {
131
132
  performers: u,
132
133
  tickets: [],
133
134
  faqs: l,
134
- disclaimer: t.venue?.disclaimer || void 0,
135
- ...v(t.venue),
135
+ disclaimer: e.venue?.disclaimer || void 0,
136
+ ...y(e.venue),
136
137
  status: "on_sale",
137
- eventSeriesId: t.id,
138
+ eventSeriesId: e.id,
138
139
  seriesOccurrences: o,
139
140
  isPasswordProtected: !1,
140
141
  isRegistrationEvent: !1,
141
142
  totalTicketsRemaining: 0,
142
143
  totalTicketsCapacity: 0,
143
- venueAddressLines: w(d),
144
- googleMapsUrl: T(d)
144
+ venueAddressLines: T(d),
145
+ googleMapsUrl: E(d)
145
146
  };
146
147
  }
147
148
  //#endregion
148
149
  //#region src/lib/api/transformers/collection.ts
149
- function M(e) {
150
+ function N(e) {
150
151
  let t = (e.events || []).map((e) => ({
151
152
  id: e.id,
152
153
  name: e.title || "",
153
154
  slug: e.slug || "",
154
- image: h(e.image || "", { cdn: !0 }),
155
+ image: g(e.image || "", { cdn: !0 }),
155
156
  startDateTime: e.startDateTime || "",
156
157
  status: e.status || "on_sale",
157
158
  timezone: e.timeZone || e.timezone || e.venue?.timeZone || e.venue?.timezone || ""
158
- })), n = h(e.coverImage || "", { cdn: !0 });
159
+ })), n = g(e.coverImage || "", { cdn: !0 });
159
160
  return {
160
161
  id: e.id,
161
162
  title: e.collectionTitle || "",
@@ -165,13 +166,13 @@ function M(e) {
165
166
  startDateTime: "",
166
167
  endDateTime: "",
167
168
  doorsOpenTime: "",
168
- timezone: "UTC",
169
+ timezone: s,
169
170
  imageUrl: n,
170
171
  venue: {
171
172
  id: 0,
172
173
  name: "",
173
174
  address: "",
174
- timezone: "UTC",
175
+ timezone: s,
175
176
  serviceFeePercentage: 0,
176
177
  serviceFeeCents: 0,
177
178
  taxPercentage: 0
@@ -190,15 +191,15 @@ function M(e) {
190
191
  }
191
192
  //#endregion
192
193
  //#region src/lib/public-calendar-flow/transform.ts
193
- function N(e) {
194
+ function P(e) {
194
195
  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
196
  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);
197
+ let s = c(a);
198
+ if (s && o(s, t) < 0) return "sales_ended";
199
+ let l = c(r);
199
200
  return l && o(l, t) > 0 ? "coming_soon" : "on_sale";
200
201
  }
201
- function P(e, t, n = !1) {
202
+ function F(e, t, n = !1) {
202
203
  let r = (e || "").toLowerCase().replace(/\s+/g, "_");
203
204
  if (r === "cancelled" || r === "canceled") return "cancelled";
204
205
  if (r === "postponed") return "postponed";
@@ -212,8 +213,8 @@ function P(e, t, n = !1) {
212
213
  }
213
214
  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
215
  }
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) => ({
216
+ function I(e) {
217
+ let r = v(e), i = r.venue || {}, o = a(r.timeZone || r.timezone || i.timeZone || i.timezone), s = (e.availableTickets || []).map((e) => ({
217
218
  id: e.id || e.ID,
218
219
  name: e.name || e.title || "",
219
220
  description: e.description || void 0,
@@ -223,14 +224,14 @@ function F(n) {
223
224
  quantityTotal: e.totalCapacity ?? e.quantity ?? 0,
224
225
  minPerOrder: e.minPerOrder ?? e.minQuantity ?? 1,
225
226
  maxPerOrder: e.maxPerOrder ?? e.maxQuantity ?? 10,
226
- status: N(e),
227
+ status: P(e),
227
228
  salesStartDate: e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart || void 0,
228
229
  salesEndDate: e.salesEnd || e.saleEnd || e.onSaleEnd || void 0,
229
230
  isDonation: e.type === 2 || e.ticketType === 2 || e.isDonation === !0,
230
231
  isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= _.HIDDEN,
231
232
  ticketType: e.type || e.ticketType || void 0,
232
233
  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 = {
234
+ })), 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
235
  id: i.id || i.ID || 0,
235
236
  name: i.name || i.googleLocationNameCache || "",
236
237
  address: i.address || i.googleLocationNameCache || "",
@@ -244,7 +245,7 @@ function F(n) {
244
245
  displayName: e.displayName || e.name || "",
245
246
  profileImage: e.avatar || e.profileImage || void 0,
246
247
  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) => ({
248
+ })), x = r.faqs ? j(r.faqs) : j(i.faq), S = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
248
249
  id: e.id ?? e.eventId ?? t + 1,
249
250
  slug: e.slug || "",
250
251
  startDateTime: e.startDateTime || e.startTime || "",
@@ -252,7 +253,7 @@ function F(n) {
252
253
  status: e.ctaState?.reason === "sold_out" ? "sold_out" : "on_sale",
253
254
  ctaText: e.ctaState?.text || "",
254
255
  ctaDisabled: e.ctaState?.disabled || !1
255
- })), C = r.startDateTime ? e(r.startDateTime, o) : "";
256
+ })), C = r.startDateTime ? n(r.startDateTime, o) : "";
256
257
  return {
257
258
  id: r.id,
258
259
  title: r.title || "",
@@ -264,13 +265,13 @@ function F(n) {
264
265
  doorsOpenTime: r.doorsOpenTime || "",
265
266
  timezone: o,
266
267
  imageUrl: m,
267
- venue: y,
268
+ venue: h,
268
269
  performers: b,
269
270
  tickets: s,
270
- ...Array.isArray(n.addOns) && n.addOns.length > 0 ? { addOns: n.addOns } : {},
271
+ ...Array.isArray(e.addOns) && e.addOns.length > 0 ? { addOns: e.addOns } : {},
271
272
  faqs: x,
272
273
  disclaimer: r.disclaimer || i.disclaimer || void 0,
273
- ...v(i),
274
+ ...y(i),
274
275
  status: f,
275
276
  salesStatus: r.salesStatus || void 0,
276
277
  ...d ? { hasPurchasableHiddenTickets: !0 } : {},
@@ -290,19 +291,19 @@ function F(n) {
290
291
  summary: r.eventSummary || void 0,
291
292
  postSalesMessage: r.postSalesMessage || void 0,
292
293
  collectionId: r.collectionId || void 0,
293
- venueAddressLines: w(i.address || i.googleLocationNameCache || ""),
294
- googleMapsUrl: T(i.address || i.googleLocationNameCache || "")
294
+ venueAddressLines: T(i.address || i.googleLocationNameCache || ""),
295
+ googleMapsUrl: E(i.address || i.googleLocationNameCache || "")
295
296
  };
296
297
  }
297
- function I(e) {
298
- return j(e);
299
- }
300
298
  function L(e) {
301
299
  return M(e);
302
300
  }
301
+ function R(e) {
302
+ return N(e);
303
+ }
303
304
  //#endregion
304
305
  //#region src/lib/public-calendar-flow/shareEventLink.ts
305
- async function R(e) {
306
+ async function z(e) {
306
307
  if (typeof navigator < "u" && typeof navigator.share == "function") try {
307
308
  return await navigator.share({ url: e }), "shared";
308
309
  } catch (e) {
@@ -312,21 +313,21 @@ async function R(e) {
312
313
  }
313
314
  //#endregion
314
315
  //#region src/lib/public-calendar-flow/shareCopyFeedback.svelte.ts
315
- function z() {
316
- let e = y.state("idle"), t = y.state(""), n;
316
+ function B() {
317
+ let e = b.state("idle"), t = b.state(""), n;
317
318
  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));
319
+ let i = await z(r);
320
+ 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
321
  }
321
322
  function i() {
322
323
  clearTimeout(n);
323
324
  }
324
325
  return {
325
326
  get copyState() {
326
- return y.get(e);
327
+ return b.get(e);
327
328
  },
328
329
  get copyFailedUrl() {
329
- return y.get(t);
330
+ return b.get(t);
330
331
  },
331
332
  share: r,
332
333
  dispose: i
@@ -334,40 +335,40 @@ function z() {
334
335
  }
335
336
  //#endregion
336
337
  //#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 ?? [] : [];
338
+ async function V(e, t = "event_page", n) {
339
+ return e ? (await l(`${u()}/events/${e}/recommendations?surface=${t}`, { widgetKey: n }))?.recommendations ?? [] : [];
339
340
  }
340
341
  //#endregion
341
342
  //#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 ?? "",
343
+ function H(e) {
344
+ return e.filter((e) => !!e.startsAt).map((e) => ({
345
+ eventID: e.eventId,
346
+ name: e.title,
347
+ date: n(e.startsAt, e.timeZone),
348
+ startDateTime: e.startsAt,
349
+ imageUrl: e.image ?? "",
349
350
  status: "on_sale",
350
- timeZone: t.timeZone,
351
- venueName: t.venueName,
351
+ timeZone: e.timeZone,
352
+ venueName: e.venueName,
352
353
  ticketsRemaining: void 0,
353
354
  ticketsTotal: void 0
354
355
  }));
355
356
  }
356
357
  //#endregion
357
358
  //#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(() => {
359
+ 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>");
360
+ function K(e, t) {
361
+ b.push(t, !0);
362
+ let n = b.prop(t, "surface", 3, "event_page"), r = b.prop(t, "locale", 3, "en"), i = b.state(b.proxy([]));
363
+ b.user_effect(() => {
363
364
  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);
365
+ return V(e, n(), t.widgetKey).then((n) => {
366
+ r && e === t.eventId && b.set(i, n, !0);
366
367
  }), () => {
367
368
  r = !1;
368
369
  };
369
370
  });
370
- let a = y.derived(() => f(V(y.get(i))));
371
+ let a = b.derived(() => p(H(b.get(i))));
371
372
  function o(e) {
372
373
  let n = s(e);
373
374
  if (!n) return "";
@@ -381,7 +382,7 @@ function G(e, t) {
381
382
  }
382
383
  }
383
384
  function s(e) {
384
- return y.get(i).find((t) => t.eventId === e.eventID);
385
+ return b.get(i).find((t) => t.eventId === e.eventID);
385
386
  }
386
387
  function c(e) {
387
388
  let n = s(e)?.url;
@@ -391,57 +392,57 @@ function G(e, t) {
391
392
  }
392
393
  t.onselect?.(e);
393
394
  }
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, {
395
+ var l = b.comment(), u = b.first_child(l), g = (e) => {
396
+ var n = G(), i = b.child(n), s = b.child(i);
397
+ d(s, {
397
398
  size: "xl",
398
399
  weight: "semibold",
399
400
  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);
401
+ b.next();
402
+ var r = b.text();
403
+ b.template_effect(() => b.set_text(r, t.labels.recommendationsHeading)), b.append(e, r);
403
404
  },
404
405
  $$slots: { default: !0 }
405
- }), y.reset(i);
406
- var l = y.sibling(i, 2);
407
- d(l, {
406
+ }), b.reset(i);
407
+ var l = b.sibling(i, 2);
408
+ f(l, {
408
409
  cols: "auto",
409
410
  minWidth: "240px",
410
411
  gap: "6",
411
412
  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());
413
+ var i = b.comment(), s = b.first_child(i);
414
+ b.each(s, 17, () => b.get(a), (e) => e.event.eventID, (e, n) => {
415
+ let i = b.derived(() => {
416
+ let { pillEvents: e, ...i } = h(b.get(n), t.labels, r());
416
417
  return {
417
418
  _pillEvents: e,
418
419
  card: i
419
420
  };
420
421
  });
421
- var a = U(), s = y.child(a);
422
- p(s, y.spread_props(() => y.get(i).card, {
422
+ var a = W(), s = b.child(a);
423
+ m(s, b.spread_props(() => b.get(i).card, {
423
424
  layout: "vertical",
424
425
  density: "standard",
425
426
  get placeholderImage() {
426
427
  return t.placeholderImage;
427
428
  },
428
- onclick: () => c(y.get(n).event)
429
+ onclick: () => c(b.get(n).event)
429
430
  }));
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);
431
+ var l = b.sibling(s, 2), u = (e) => {
432
+ var t = U(), r = b.child(t, !0);
433
+ b.reset(t), b.template_effect((e) => b.set_text(r, e), [() => o(b.get(n).event)]), b.append(e, t);
434
+ }, d = b.derived(() => o(b.get(n).event));
435
+ b.if(l, (e) => {
436
+ b.get(d) && e(u);
437
+ }), b.reset(a), b.append(e, a);
438
+ }), b.append(e, i);
438
439
  },
439
440
  $$slots: { default: !0 }
440
- }), y.reset(n), y.append(e, n);
441
+ }), b.reset(n), b.append(e, n);
441
442
  };
442
- y.if(h, (e) => {
443
- y.get(a).length > 0 && e(g);
444
- }), y.append(e, l), y.pop();
443
+ b.if(u, (e) => {
444
+ b.get(a).length > 0 && e(g);
445
+ }), b.append(e, l), b.pop();
445
446
  }
446
447
  //#endregion
447
- export { I as a, L as i, z as n, C as o, F as r, G as t };
448
+ 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-BIqxB0kY.js";
3
+ import { a as n } from "./RecommendationsRail-Dmq3C4UQ.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";