@getmicdrop/venue-calendar 4.3.122 → 4.3.124

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 (137) hide show
  1. package/dist/{AddOnCard-BkEFPzAX.js → AddOnCard-BCakRkN0.js} +18 -18
  2. package/dist/{ArrowLeftIcon-t-CY0sbi.js → ArrowLeftIcon-B6vERrBh.js} +1 -1
  3. package/dist/{BlockPlaceholder-BmEZ68_q.js → BlockPlaceholder-CInLJaAM.js} +1 -1
  4. package/dist/{Calendar-hxcQBkTF.js → Calendar-DV_SrEdT.js} +131 -150
  5. package/dist/{CalendarFoundryView-CSAKDe-F.js → CalendarFoundryView-Cx60F-de.js} +968 -966
  6. package/dist/{CalendarIcon-B5JWs0gm.js → CalendarIcon-BA9OTu6n.js} +1 -1
  7. package/dist/{CartView-CQZw_kwm.js → CartView-DXL2fN6s.js} +279 -276
  8. package/dist/{CheckIcon-BSwoGox7.js → CheckIcon-CsHdBvm7.js} +1 -1
  9. package/dist/{Checkout-Bsx9d4qD.js → Checkout-BDogQG64.js} +378 -376
  10. package/dist/Checkout-puHwDIls.js +1934 -0
  11. package/dist/{CheckoutTimer-Bpt5gPyA.js → CheckoutTimer-KkahlL47.js} +5 -5
  12. package/dist/{ChevronDownIcon-CVZ0usBx.js → ChevronDownIcon-CfmGVqjm.js} +1 -1
  13. package/dist/ChevronRightOutline-CiG8UHni.js +23 -0
  14. package/dist/{CloseIcon-DUnvWXUY.js → CloseIcon-0KKo8fB2.js} +1 -1
  15. package/dist/{CollectionView-DXkBRGeQ.js → CollectionView-COd_e_aK.js} +6 -6
  16. package/dist/{Event-CmD84Ni8.js → Event-BYhY0nEy.js} +604 -518
  17. package/dist/EventCard-am-bIial.js +175 -0
  18. package/dist/{EventPage-4ToDFEaL.js → EventPage-DOiyzTGz.js} +289 -265
  19. package/dist/{Input-BXZmvQ0p.js → Input-CUn5WW7v.js} +1 -1
  20. package/dist/{LocationIcon-E-7CQh4E.js → LocationIcon-MUNzCw0b.js} +1 -1
  21. package/dist/{PasswordInput-DzXNIwRc.js → PasswordInput-uLRaGMSt.js} +1 -1
  22. package/dist/{PhoneInput-DnmN_L03.js → PhoneInput-5l-M5ykF.js} +1 -1
  23. package/dist/{RecommendationsRail-CrBSsbBD.js → RecommendationsRail-ShRQ7JzA.js} +69 -66
  24. package/dist/{ScarcityBadge-BL4shc2w.js → ScarcityBadge-BvLoTIiM.js} +6 -6
  25. package/dist/{SeriesPage-Dt-T6mco.js → SeriesPage-DMYXn2vA.js} +2 -2
  26. package/dist/{Spinner-B2rdbspc.js → Spinner-CwCn-yPI.js} +1 -1
  27. package/dist/{Success-BTm0jRAO.js → Success-BP76tviw.js} +175 -172
  28. package/dist/{TagIcon-BY8tK_qA.js → TagIcon-CUfTUPrP.js} +1 -1
  29. package/dist/{ViewTicketsEmbed-BjqniKb9.js → ViewTicketsEmbed-DnMqRwJI.js} +17 -16
  30. package/dist/{WarningCircleIcon-C5Lc7qkF.js → WarningCircleIcon-BVUWnzFt.js} +1 -1
  31. package/dist/{WarningTriIcon-BM8qc9xx.js → WarningTriIcon-CBHdMLyJ.js} +1 -1
  32. package/dist/adapter-BaqXgSqI.js +164 -0
  33. package/dist/api-BUAptAYH.js +489 -0
  34. package/dist/checkoutState-DKdzYK3y.js +198 -0
  35. package/dist/client-BxgiVv8K.js +262 -0
  36. package/dist/{constants-C6MZgb2S.js → constants-lKAMwRvZ.js} +5 -1
  37. package/dist/{copyToClipboard-F-akSgaF.js → copyToClipboard-BaAhnhZ9.js} +1 -1
  38. package/dist/{createErrorGate.svelte-CEGaIQeI.js → createErrorGate.svelte-BCjQmoDN.js} +1 -1
  39. package/dist/cta-BE_N5pBc.js +116 -0
  40. package/dist/{datetime-BnKG6Hjm.js → datetime-BetkhP3Y.js} +47 -47
  41. package/dist/{de-BHcAXwnM.js → de-C3szl-Vf.js} +10 -4
  42. package/dist/{de-BPmqZ6ao.js → de-CX7o2WAr.js} +5 -1
  43. package/dist/{defaultLabels-BbNEEsF7.js → defaultLabels-D7c3DLP3.js} +378 -401
  44. package/dist/{defaults-CcPpWiyw.js → defaults-QFkzo2Vg.js} +6 -6
  45. package/dist/{es-BV3Sgeg-.js → es-DS1-fjU8.js} +5 -1
  46. package/dist/{es-DZ3yceh-.js → es-QnJXFKEx.js} +10 -4
  47. package/dist/{event-DfqUhl5j.js → event-DFyH3dNo.js} +1 -1
  48. package/dist/{event-transform-DJYPMj8I.js → event-transform-za8lXql7.js} +18 -18
  49. package/dist/{eventStatusStream-DXyc5Eng.js → eventStatusStream-CaDLn9GX.js} +1 -1
  50. package/dist/{fr-Dyi163Vk.js → fr-BVgQDC6c.js} +10 -4
  51. package/dist/{fr-BJ0VQGEj.js → fr-CN3PiNzU.js} +5 -1
  52. package/dist/{href-CfWGAmkP.js → href--Xjr4Dsb.js} +3 -3
  53. package/dist/i18n-Bd9CN9cj.js +497 -0
  54. package/dist/i18n-Cwq8IQ_c.js +28 -0
  55. package/dist/{id-CVXaHHqU.js → id-CPG4tPVY.js} +5 -1
  56. package/dist/{id-DvFRZVAm.js → id-DCcXxLEY.js} +10 -4
  57. package/dist/{it-C0lzsHje.js → it-CjwnCYFF.js} +5 -1
  58. package/dist/{it-Bh05tcLv.js → it-CufAwhe3.js} +10 -4
  59. package/dist/{ja-Dl2r6tQ6.js → ja-C2uiNCJX.js} +5 -1
  60. package/dist/{ja-CU4PQS4j.js → ja-CMa_nsLY.js} +10 -4
  61. package/dist/{ko-DINqFSE1.js → ko-Bh97byDf.js} +5 -1
  62. package/dist/{ko-DDk6EdWm.js → ko-BwJHUjqS.js} +10 -4
  63. package/dist/locales/{4.3.122 → 4.3.124}/flow/de.js +1 -1
  64. package/dist/locales/{4.3.122 → 4.3.124}/flow/es.js +1 -1
  65. package/dist/locales/{4.3.122 → 4.3.124}/flow/fr.js +1 -1
  66. package/dist/locales/{4.3.122 → 4.3.124}/flow/id.js +1 -1
  67. package/dist/locales/{4.3.122 → 4.3.124}/flow/it.js +1 -1
  68. package/dist/locales/{4.3.122 → 4.3.124}/flow/ja.js +1 -1
  69. package/dist/locales/{4.3.122 → 4.3.124}/flow/ko.js +1 -1
  70. package/dist/locales/{4.3.122 → 4.3.124}/flow/nl.js +1 -1
  71. package/dist/locales/{4.3.122 → 4.3.124}/flow/pl.js +1 -1
  72. package/dist/locales/{4.3.122 → 4.3.124}/flow/pt-br.js +1 -1
  73. package/dist/locales/{4.3.122 → 4.3.124}/flow/tr.js +1 -1
  74. package/dist/locales/{4.3.122 → 4.3.124}/flow/zh.js +1 -1
  75. package/dist/locales/4.3.124/main/de.js +1 -0
  76. package/dist/locales/4.3.124/main/es.js +1 -0
  77. package/dist/locales/4.3.124/main/fr.js +1 -0
  78. package/dist/locales/4.3.124/main/id.js +1 -0
  79. package/dist/locales/4.3.124/main/it.js +1 -0
  80. package/dist/locales/4.3.124/main/ja.js +1 -0
  81. package/dist/locales/4.3.124/main/ko.js +1 -0
  82. package/dist/locales/4.3.124/main/nl.js +1 -0
  83. package/dist/locales/4.3.124/main/pl.js +1 -0
  84. package/dist/locales/4.3.124/main/pt-br.js +1 -0
  85. package/dist/locales/4.3.124/main/tr.js +1 -0
  86. package/dist/locales/4.3.124/main/zh.js +1 -0
  87. package/dist/look-island.svelte-QW0yvxsq.js +1278 -0
  88. package/dist/looks/4.3.124/looks.js +242 -0
  89. package/dist/looks/4.3.124/micdrop-wordmark-BYMG6vLR.svg +1 -0
  90. package/dist/looks/4.3.124/microphone-Ccv4r-kd.webp +0 -0
  91. package/dist/looks/4.3.124/superuser-CZF6a5gO.webp +0 -0
  92. package/dist/looks/4.3.124/treasury-DUE7lZzT.webp +0 -0
  93. package/dist/looks/4.3.124/user-image-yuS4errP.svg +9 -0
  94. package/dist/navigation-BYEhsDX4.js +176 -0
  95. package/dist/{nl-DOSKYHSx.js → nl-BQALrtyB.js} +10 -4
  96. package/dist/{nl-D92n5tHa.js → nl-ve_OaXOQ.js} +5 -1
  97. package/dist/normalizers-CqGXhPZo.js +44 -0
  98. package/dist/{phoneUtils-CS66SHie.js → phoneUtils-CL8tIxoM.js} +4 -0
  99. package/dist/{pixels-CFwOgA2N.js → pixels-CV8Zw_Kn.js} +1 -1
  100. package/dist/{pl-BlZHcnlS.js → pl-BHBBOz2I.js} +5 -1
  101. package/dist/{pl-CkLEymA2.js → pl-DaPcPjBE.js} +10 -4
  102. package/dist/{pt-br-BHuCQSM-.js → pt-br-BxdP86Vr.js} +10 -4
  103. package/dist/{pt-br-BrxthY0b.js → pt-br-D30dkLzU.js} +5 -1
  104. package/dist/{serverTotals-B8SJCzxE.js → serverTotals-DGQ7a35U.js} +1 -1
  105. package/dist/{showcase-state-options-KO_TYk3I.js → showcase-state-options-DTl2gdkG.js} +3 -3
  106. package/dist/to-event-card-props-CklRkTpt.js +205 -0
  107. package/dist/{tr-BnAdi4HO.js → tr-CFVBCuqV.js} +5 -1
  108. package/dist/{tr-Bvc34ODh.js → tr-CSfagpI3.js} +10 -4
  109. package/dist/types/index.d.ts +21 -4
  110. package/dist/utils-CowZZZtC.js +219 -0
  111. package/dist/venue-calendar.css +1 -1
  112. package/dist/venue-calendar.es.js +1550 -1836
  113. package/dist/venue-calendar.iife.js +35 -35
  114. package/dist/venue-calendar.umd.js +183 -54
  115. package/dist/widget-key-context-DX9WCLIM.js +744 -0
  116. package/dist/{zh-K0hOzZ3G.js → zh-DWMcKVLH.js} +10 -4
  117. package/dist/{zh-Tg1OTvWs.js → zh-DeEOoOFR.js} +5 -1
  118. package/package.json +4 -4
  119. package/dist/Checkout-CN1o3v9L.js +0 -1933
  120. package/dist/api-0hNBT78w.js +0 -654
  121. package/dist/i18n-CIpUYDU6.js +0 -28
  122. package/dist/i18n-DyjdmQSR.js +0 -608
  123. package/dist/locales/4.3.122/main/de.js +0 -1
  124. package/dist/locales/4.3.122/main/es.js +0 -1
  125. package/dist/locales/4.3.122/main/fr.js +0 -1
  126. package/dist/locales/4.3.122/main/id.js +0 -1
  127. package/dist/locales/4.3.122/main/it.js +0 -1
  128. package/dist/locales/4.3.122/main/ja.js +0 -1
  129. package/dist/locales/4.3.122/main/ko.js +0 -1
  130. package/dist/locales/4.3.122/main/nl.js +0 -1
  131. package/dist/locales/4.3.122/main/pl.js +0 -1
  132. package/dist/locales/4.3.122/main/pt-br.js +0 -1
  133. package/dist/locales/4.3.122/main/tr.js +0 -1
  134. package/dist/locales/4.3.122/main/zh.js +0 -1
  135. package/dist/to-event-card-props-DYIfPN8e.js +0 -379
  136. package/dist/utils-BzgFQSTg.js +0 -412
  137. package/dist/widget-key-context-CmI7Qdtf.js +0 -991
@@ -1,6 +1,6 @@
1
1
  import { c as e, d as t, h as n, m as r, p as i, v as a } from "./sizing-B7ixYndz.js";
2
2
  import { t as o } from "./ExclamationCircleOutline-D3XbhOwM.js";
3
- import { w as s } from "./datetime-BnKG6Hjm.js";
3
+ import { w as s } from "./datetime-BetkhP3Y.js";
4
4
  import { l as c, u as l, y as u } from "./portalContainment-CeAVqIb-.js";
5
5
  import { n as ee, t as d } from "./controlAria-CGb-KeRn.js";
6
6
  import "svelte/internal/disclose-version";
@@ -1,4 +1,4 @@
1
- import { X as e } from "./datetime-BnKG6Hjm.js";
1
+ import { X as e } from "./datetime-BetkhP3Y.js";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as t from "svelte/internal/client";
4
4
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/DownloadIcon.svelte
@@ -1,5 +1,5 @@
1
1
  import { v as e } from "./sizing-B7ixYndz.js";
2
- import { t } from "./Input-BXZmvQ0p.js";
2
+ import { t } from "./Input-CUn5WW7v.js";
3
3
  import { l as n, u as r, y as i } from "./portalContainment-CeAVqIb-.js";
4
4
  import { t as a } from "./lazyOnce-CCfEO1xG.js";
5
5
  import "svelte/internal/disclose-version";
@@ -5,7 +5,7 @@ import { d as c, l, u, y as d } from "./portalContainment-CeAVqIb-.js";
5
5
  import { t as f } from "./portal-D-oaEWsY.js";
6
6
  import { t as p } from "./floatingPosition-XIv5DYuP.js";
7
7
  import { n as m, t as h } from "./controlAria-CGb-KeRn.js";
8
- import { a as g, c as _, i as v, l as y, n as b, o as x, r as S, s as C, t as w, u as T } from "./phoneUtils-CS66SHie.js";
8
+ import { a as g, c as _, i as v, l as y, n as b, o as x, r as S, s as C, t as w, u as T } from "./phoneUtils-CL8tIxoM.js";
9
9
  import "svelte/internal/disclose-version";
10
10
  import * as E from "svelte/internal/client";
11
11
  import { onMount as ee, tick as D, untrack as O } from "svelte";
@@ -1,14 +1,16 @@
1
- import { X as e, d as t, n } from "./datetime-BnKG6Hjm.js";
2
- import { t as r } from "./copyToClipboard-F-akSgaF.js";
3
- import { C as i, O as a, g as o, x as s } from "./defaultLabels-BbNEEsF7.js";
1
+ import { X as e, d as t, n } from "./datetime-BetkhP3Y.js";
2
+ import { t as r } from "./copyToClipboard-BaAhnhZ9.js";
3
+ import { _ as i, f as a, w as o, y as s } from "./defaultLabels-D7c3DLP3.js";
4
4
  import { r as c } from "./Button-VUB2WJ88.js";
5
- import { J as l, U as u, V as d, n as f } from "./widget-key-context-CmI7Qdtf.js";
6
- import { L as p } from "./api-0hNBT78w.js";
7
- import { t as m } from "./Heading-vOVPxhJF.js";
8
- import { t as h } from "./Grid-kuP6V0GW.js";
9
- import { a as g, o as _, t as v } from "./to-event-card-props-DYIfPN8e.js";
10
- import { n as y } from "./imageUrl-xyMedKrE.js";
11
- import { t as b } from "./event-DfqUhl5j.js";
5
+ import { n as l } from "./widget-key-context-DX9WCLIM.js";
6
+ import { t as u } from "./Heading-vOVPxhJF.js";
7
+ import { h as d, l as f, s as p } from "./client-BxgiVv8K.js";
8
+ import { t as m } from "./Grid-kuP6V0GW.js";
9
+ import { t as h } from "./EventCard-am-bIial.js";
10
+ import { n as g } from "./imageUrl-xyMedKrE.js";
11
+ import { m as _ } from "./navigation-BYEhsDX4.js";
12
+ import { o as v, t as y } from "./to-event-card-props-CklRkTpt.js";
13
+ import { t as b } from "./event-DFyH3dNo.js";
12
14
  import { t as x } from "./venue-BBoZBuhu.js";
13
15
  import "svelte/internal/disclose-version";
14
16
  import * as S from "svelte/internal/client";
@@ -89,7 +91,7 @@ function N(e) {
89
91
  //#endregion
90
92
  //#region src/lib/api/transformers/series.ts
91
93
  function P(e) {
92
- let t = e.seriesId ?? e.id ?? 0, r = e, a = i(e.timeZone || r.timezone || r.time_zone), o = y(e.image || "", { cdn: !0 }), s = (e.occurrences || []).map((e) => {
94
+ let t = e.seriesId ?? e.id ?? 0, r = e, i = s(e.timeZone || r.timezone || r.time_zone), a = g(e.image || "", { cdn: !0 }), o = (e.occurrences || []).map((e) => {
93
95
  let t = e.venue, n = t ? [t.name, t.stageName].filter(Boolean).join(" — ") : "", r = t ? t.googleLocationNameCache || [
94
96
  t.address,
95
97
  t.city,
@@ -107,7 +109,7 @@ function P(e) {
107
109
  ...n ? { venueName: n } : {},
108
110
  ...r ? { venueAddress: r } : {}
109
111
  };
110
- }), c = e.occurrences?.[0], l = c?.startDateTime ? n(c.startDateTime, a) : "", u = N(e.venue?.faq), d = (e.performers || []).map((e, t) => ({
112
+ }), c = e.occurrences?.[0], l = c?.startDateTime ? n(c.startDateTime, i) : "", u = N(e.venue?.faq), d = (e.performers || []).map((e, t) => ({
111
113
  id: t + 1,
112
114
  displayName: e.displayName || [e.firstName, e.lastName].filter(Boolean).join(" "),
113
115
  profileImage: e.profileImage || void 0
@@ -121,13 +123,13 @@ function P(e) {
121
123
  startDateTime: c?.startDateTime || "",
122
124
  endDateTime: c?.endDateTime || "",
123
125
  doorsOpenTime: "",
124
- timezone: a,
125
- imageUrl: o,
126
+ timezone: i,
127
+ imageUrl: a,
126
128
  venue: {
127
129
  id: e.venue?.id || 0,
128
130
  name: e.venue?.name || "",
129
131
  address: f,
130
- timezone: a,
132
+ timezone: i,
131
133
  serviceFeePercentage: 0,
132
134
  serviceFeeCents: 0,
133
135
  taxPercentage: 0
@@ -139,7 +141,7 @@ function P(e) {
139
141
  ...x(e.venue),
140
142
  status: "on_sale",
141
143
  eventSeriesId: t,
142
- seriesOccurrences: s,
144
+ seriesOccurrences: o,
143
145
  isPasswordProtected: !1,
144
146
  isRegistrationEvent: !1,
145
147
  totalTicketsRemaining: 0,
@@ -155,12 +157,12 @@ function F(e) {
155
157
  id: e.id,
156
158
  name: e.title || "",
157
159
  slug: e.slug || "",
158
- image: y(e.image || "", { cdn: !0 }),
160
+ image: g(e.image || "", { cdn: !0 }),
159
161
  startDateTime: e.startDateTime || "",
160
162
  status: e.status || "on_sale",
161
163
  timezone: e.timeZone || e.timezone || e.venue?.timeZone || e.venue?.timezone || "",
162
164
  venueName: e.venue?.name || ""
163
- })), n = y(e.coverImage || "", { cdn: !0 });
165
+ })), n = g(e.coverImage || "", { cdn: !0 });
164
166
  return {
165
167
  id: e.id,
166
168
  title: e.collectionTitle || "",
@@ -170,13 +172,13 @@ function F(e) {
170
172
  startDateTime: "",
171
173
  endDateTime: "",
172
174
  doorsOpenTime: "",
173
- timezone: a,
175
+ timezone: o,
174
176
  imageUrl: n,
175
177
  venue: {
176
178
  id: 0,
177
179
  name: "",
178
180
  address: "",
179
- timezone: a,
181
+ timezone: o,
180
182
  serviceFeePercentage: 0,
181
183
  serviceFeeCents: 0,
182
184
  taxPercentage: 0
@@ -196,12 +198,12 @@ function F(e) {
196
198
  //#endregion
197
199
  //#region src/lib/public-calendar-flow/transform.ts
198
200
  function I(e) {
199
- let t = c(), n = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity ?? 0, r = e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart, i = e.salesEnd || e.saleEnd || e.onSaleEnd;
201
+ let t = c(), n = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity ?? 0, r = e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart, o = e.salesEnd || e.saleEnd || e.onSaleEnd;
200
202
  if (n <= 0) return "sold_out";
201
- let a = s(i);
202
- if (a && o(a, t) < 0) return "sales_ended";
203
- let l = s(r);
204
- return l && o(l, t) > 0 ? "coming_soon" : "on_sale";
203
+ let s = i(o);
204
+ if (s && a(s, t) < 0) return "sales_ended";
205
+ let l = i(r);
206
+ return l && a(l, t) > 0 ? "coming_soon" : "on_sale";
205
207
  }
206
208
  function L(e, t, n = !1) {
207
209
  let r = (e || "").toLowerCase().replace(/\s+/g, "_");
@@ -218,7 +220,7 @@ function L(e, t, n = !1) {
218
220
  return r === "sold_out" || r === "soldout" ? "sold_out" : r === "coming_soon" || r === "comingsoon" ? "coming_soon" : r === "sales_ended" || r === "salesended" ? "sales_ended" : "on_sale";
219
221
  }
220
222
  function R(e) {
221
- let r = b(e), a = r.venue || {}, o = i(r.timeZone || r.timezone || a.timeZone || a.timezone), s = (e.availableTickets || []).map((e) => ({
223
+ let r = b(e), i = r.venue || {}, a = s(r.timeZone || r.timezone || i.timeZone || i.timezone), o = (e.availableTickets || []).map((e) => ({
222
224
  id: e.id || e.ID,
223
225
  name: e.name || e.title || "",
224
226
  description: e.description || void 0,
@@ -232,24 +234,25 @@ function R(e) {
232
234
  salesStartDate: e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart || void 0,
233
235
  salesEndDate: e.salesEnd || e.saleEnd || e.onSaleEnd || void 0,
234
236
  isDonation: e.type === 2 || e.ticketType === 2 || e.isDonation === !0,
235
- isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= p.HIDDEN,
237
+ isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= _.HIDDEN,
236
238
  ticketType: e.type || e.ticketType || void 0,
237
239
  sectionName: e.sectionName || e.section || void 0
238
- })), 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 = L(r.status, s, d), m = e.image || e.imageUrl || e.image_url || "", h = m.startsWith("http") ? m : y(m, { cdn: !0 }), g = {
239
- id: a.id || a.ID || 0,
240
- name: a.name || a.googleLocationNameCache || "",
241
- address: a.address || a.googleLocationNameCache || "",
242
- timezone: o,
243
- serviceFeePercentage: a.serviceFeePercentage ?? a.fee ?? 0,
244
- serviceFeeCents: a.serviceFeeCents == null ? 0 : a.serviceFeeCents,
245
- taxPercentage: a.taxPercentage ?? a.tax ?? 0,
246
- contactEmail: a.contactEmail || a.email || void 0
247
- }, _ = (r.performers || []).map((e) => ({
240
+ })), c = o.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 = L(r.status, o, d), p = e.image || e.imageUrl || e.image_url || "", m = p.startsWith("http") ? p : g(p, { cdn: !0 }), h = {
241
+ id: i.id || i.ID || 0,
242
+ name: i.name || i.googleLocationNameCache || "",
243
+ address: i.address || i.googleLocationNameCache || "",
244
+ timezone: a,
245
+ serviceFeePercentage: i.serviceFeePercentage ?? i.fee ?? 0,
246
+ serviceFeeCents: i.serviceFeeCents == null ? 0 : i.serviceFeeCents,
247
+ taxPercentage: i.taxPercentage ?? i.tax ?? 0,
248
+ contactEmail: i.contactEmail || i.email || void 0,
249
+ ...typeof i.hasMultipleStages == "boolean" ? { hasMultipleStages: i.hasMultipleStages } : {}
250
+ }, v = (r.performers || []).map((e) => ({
248
251
  id: e.id || e.ID,
249
252
  displayName: e.displayName || e.name || "",
250
253
  profileImage: e.avatar || e.profileImage || void 0,
251
254
  role: e.role || void 0
252
- })), v = r.faqs ? N(r.faqs) : N(a.faq), S = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
255
+ })), y = r.faqs ? N(r.faqs) : N(i.faq), S = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
253
256
  id: e.id ?? e.eventId ?? t + 1,
254
257
  slug: e.slug || "",
255
258
  startDateTime: e.startDateTime || e.startTime || "",
@@ -258,7 +261,7 @@ function R(e) {
258
261
  ctaText: e.ctaState?.text || "",
259
262
  ctaDisabled: e.ctaState?.disabled || !1,
260
263
  ...e.ctaState?.reason ? { ctaReason: e.ctaState.reason } : {}
261
- })), C = r.startDateTime ? n(r.startDateTime, o) : "";
264
+ })), C = r.startDateTime ? n(r.startDateTime, a) : "";
262
265
  return {
263
266
  id: r.id,
264
267
  title: r.title || "",
@@ -268,15 +271,15 @@ function R(e) {
268
271
  startDateTime: r.startDateTime || "",
269
272
  endDateTime: r.endDateTime || "",
270
273
  doorsOpenTime: r.doorsOpenTime || "",
271
- timezone: o,
272
- imageUrl: h,
273
- venue: g,
274
- performers: _,
275
- tickets: s,
274
+ timezone: a,
275
+ imageUrl: m,
276
+ venue: h,
277
+ performers: v,
278
+ tickets: o,
276
279
  ...Array.isArray(e.addOns) && e.addOns.length > 0 ? { addOns: e.addOns } : {},
277
- faqs: v,
278
- disclaimer: r.disclaimer || a.disclaimer || void 0,
279
- ...x(a),
280
+ faqs: y,
281
+ disclaimer: r.disclaimer || i.disclaimer || void 0,
282
+ ...x(i),
280
283
  status: f,
281
284
  salesStatus: r.salesStatus || void 0,
282
285
  ...d ? { hasPurchasableHiddenTickets: !0 } : {},
@@ -297,8 +300,8 @@ function R(e) {
297
300
  postSalesMessage: r.postSalesMessage || void 0,
298
301
  ...V(f, r),
299
302
  collectionId: r.collectionId || void 0,
300
- venueAddressLines: D(a.address || a.googleLocationNameCache || ""),
301
- googleMapsUrl: O(a.address || a.googleLocationNameCache || "")
303
+ venueAddressLines: D(i.address || i.googleLocationNameCache || ""),
304
+ googleMapsUrl: O(i.address || i.googleLocationNameCache || "")
302
305
  };
303
306
  }
304
307
  function z(e) {
@@ -370,9 +373,9 @@ function G({ copiedMs: e = 2500 } = {}) {
370
373
  var K = /* @__PURE__ */ new Map();
371
374
  function q(e, t = "event_page", n) {
372
375
  if (!e) return Promise.resolve([]);
373
- let r = `${d()}/events/${e}/recommendations?surface=${t}`, i = n || l() || "", a = `${r}|${i}`, o = K.get(a);
376
+ let r = `${p()}/events/${e}/recommendations?surface=${t}`, i = n || d() || "", a = `${r}|${i}`, o = K.get(a);
374
377
  if (o) return o;
375
- let s = u(r, { widgetKey: i || void 0 }).then((e) => e?.recommendations ?? [], () => []);
378
+ let s = f(r, { widgetKey: i || void 0 }).then((e) => e?.recommendations ?? [], () => []);
376
379
  K.set(a, s);
377
380
  let c = () => K.delete(a);
378
381
  return s.then(c, c), s;
@@ -398,7 +401,7 @@ function J(e) {
398
401
  var Y = S.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>"), X = S.from_html("<div class=\"flex flex-col gap-2\"><!> <!></div>"), Z = S.from_html("<section data-testid=\"recommendations-rail\"><div class=\"mb-4\"><!></div> <!></section>");
399
402
  function Q(e, t) {
400
403
  S.push(t, !0);
401
- let n = S.prop(t, "surface", 3, "event_page"), r = S.prop(t, "locale", 3, "en"), i = S.prop(t, "widgetKey", 19, f), a = S.state(S.proxy([]));
404
+ let n = S.prop(t, "surface", 3, "event_page"), r = S.prop(t, "locale", 3, "en"), i = S.prop(t, "widgetKey", 19, l), a = S.state(S.proxy([]));
402
405
  S.user_effect(() => {
403
406
  let e = t.eventId, r = !0;
404
407
  return q(e, n(), i()).then((n) => {
@@ -407,7 +410,7 @@ function Q(e, t) {
407
410
  r = !1;
408
411
  };
409
412
  });
410
- let o = S.derived(() => g(J(S.get(a))));
413
+ let o = S.derived(() => v(J(S.get(a))));
411
414
  function s(e) {
412
415
  let n = c(e);
413
416
  if (!n) return "";
@@ -423,7 +426,7 @@ function Q(e, t) {
423
426
  function c(e) {
424
427
  return S.get(a).find((t) => t.eventId === e.eventID);
425
428
  }
426
- function l(e) {
429
+ function d(e) {
427
430
  let n = c(e)?.url;
428
431
  if (n) {
429
432
  window.location.assign(n);
@@ -431,9 +434,9 @@ function Q(e, t) {
431
434
  }
432
435
  t.onselect?.(e);
433
436
  }
434
- var u = S.comment(), d = S.first_child(u), p = (e) => {
437
+ var f = S.comment(), p = S.first_child(f), g = (e) => {
435
438
  var n = Z(), i = S.child(n), a = S.child(i);
436
- m(a, {
439
+ u(a, {
437
440
  size: "xl",
438
441
  weight: "semibold",
439
442
  children: (e, n) => {
@@ -444,7 +447,7 @@ function Q(e, t) {
444
447
  $$slots: { default: !0 }
445
448
  }), S.reset(i);
446
449
  var c = S.sibling(i, 2);
447
- h(c, {
450
+ m(c, {
448
451
  cols: "auto",
449
452
  minWidth: "240px",
450
453
  gap: "6",
@@ -452,36 +455,36 @@ function Q(e, t) {
452
455
  var i = S.comment(), a = S.first_child(i);
453
456
  S.each(a, 17, () => S.get(o), (e) => e.event.eventID, (e, n) => {
454
457
  let i = S.derived(() => {
455
- let { pillEvents: e, ...i } = v(S.get(n), t.labels, r());
458
+ let { pillEvents: e, ...i } = y(S.get(n), t.labels, r());
456
459
  return {
457
460
  _pillEvents: e,
458
461
  card: i
459
462
  };
460
463
  });
461
464
  var a = X(), o = S.child(a);
462
- _(o, S.spread_props(() => S.get(i).card, {
465
+ h(o, S.spread_props(() => S.get(i).card, {
463
466
  layout: "vertical",
464
467
  density: "standard",
465
468
  get placeholderImage() {
466
469
  return t.placeholderImage;
467
470
  },
468
- onclick: () => l(S.get(n).event)
471
+ onclick: () => d(S.get(n).event)
469
472
  }));
470
- var c = S.sibling(o, 2), u = (e) => {
473
+ var c = S.sibling(o, 2), l = (e) => {
471
474
  var t = Y(), r = S.child(t, !0);
472
475
  S.reset(t), S.template_effect((e) => S.set_text(r, e), [() => s(S.get(n).event)]), S.append(e, t);
473
- }, d = S.derived(() => s(S.get(n).event));
476
+ }, u = S.derived(() => s(S.get(n).event));
474
477
  S.if(c, (e) => {
475
- S.get(d) && e(u);
478
+ S.get(u) && e(l);
476
479
  }), S.reset(a), S.append(e, a);
477
480
  }), S.append(e, i);
478
481
  },
479
482
  $$slots: { default: !0 }
480
483
  }), S.reset(n), S.append(e, n);
481
484
  };
482
- S.if(d, (e) => {
483
- S.get(o).length > 0 && e(p);
484
- }), S.append(e, u), S.pop();
485
+ S.if(p, (e) => {
486
+ S.get(o).length > 0 && e(g);
487
+ }), S.append(e, f), S.pop();
485
488
  }
486
489
  //#endregion
487
490
  export { R as a, E as c, U as i, G as n, B as o, W as r, z as s, Q as t };
@@ -1,7 +1,7 @@
1
- import { X as e, _ as t } from "./datetime-BnKG6Hjm.js";
2
- import { t as n } from "./WarningCircleIcon-C5Lc7qkF.js";
3
- import { A as r, I as i, N as a, i as o, j as s, t as c } from "./defaultLabels-BbNEEsF7.js";
4
- import { U as l } from "./api-0hNBT78w.js";
1
+ import { X as e, _ as t } from "./datetime-BetkhP3Y.js";
2
+ import { t as n } from "./WarningCircleIcon-BVUWnzFt.js";
3
+ import { D as r, E as i, M as a, i as o, k as s, t as c } from "./defaultLabels-D7c3DLP3.js";
4
+ import { E as l } from "./api-BUAptAYH.js";
5
5
  import "svelte/internal/disclose-version";
6
6
  import * as u from "svelte/internal/client";
7
7
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/SubtractIcon.svelte
@@ -56,8 +56,8 @@ function b(e, t, n) {
56
56
  function x(e, t, n, o) {
57
57
  if (!g(o) || !(n > 0)) return 0;
58
58
  if (!_(o)) return b(t, n, o);
59
- let c = e.filter(({ quantity: e }) => e > 0).map(({ unitPrice: e, quantity: t }) => a(s(b(e, n, o)), t));
60
- return r(i(c));
59
+ let c = e.filter(({ quantity: e }) => e > 0).map(({ unitPrice: e, quantity: t }) => s(r(b(e, n, o)), t));
60
+ return i(a(c));
61
61
  }
62
62
  //#endregion
63
63
  //#region src/components/ScarcityBadge.svelte
@@ -1,6 +1,6 @@
1
- import { t as e } from "./Event-CmD84Ni8.js";
1
+ import { t as e } from "./Event-BYhY0nEy.js";
2
2
  import { g as t } from "./sizing-B7ixYndz.js";
3
- import { s as n } from "./RecommendationsRail-CrBSsbBD.js";
3
+ import { s as n } from "./RecommendationsRail-ShRQ7JzA.js";
4
4
  import { t as r } from "./__SKIP_NAVIGATION__-AOx8SI54.js";
5
5
  import { t as i } from "./__SKIP_PATHS__-C0ixDSSm.js";
6
6
  import "svelte/internal/disclose-version";
@@ -1,5 +1,5 @@
1
1
  import { l as e, v as t } from "./sizing-B7ixYndz.js";
2
- import { G as n } from "./defaultLabels-BbNEEsF7.js";
2
+ import { V as n } from "./defaultLabels-D7c3DLP3.js";
3
3
  import "svelte/internal/disclose-version";
4
4
  import * as r from "svelte/internal/client";
5
5
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Spinner/Spinner.svelte