@getmicdrop/venue-calendar 4.3.57 → 4.3.58

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 (114) hide show
  1. package/dist/AddOnCard-TEUXB3Sd.js +340 -0
  2. package/dist/{ArrowLeftIcon-DjqiKzR8.js → ArrowLeftIcon-C0jreEw8.js} +1 -1
  3. package/dist/{BlockPlaceholder-CgZr2Euq.js → BlockPlaceholder-DdoOD0gZ.js} +1 -1
  4. package/dist/{Calendar-CS_RqyU_.js → Calendar-BWLg7fOl.js} +3 -3
  5. package/dist/{CalendarFoundryView-DKZpskoX.js → CalendarFoundryView-apVO50Ap.js} +73 -75
  6. package/dist/{CalendarIcon-D9Z9YFz6.js → CalendarIcon-BOEpooZq.js} +1 -1
  7. package/dist/CartView-CTL1DQem.js +2293 -0
  8. package/dist/Checkout-B9OHWxzh.js +1933 -0
  9. package/dist/Checkout-D7Cgj12j.js +1076 -0
  10. package/dist/{CheckoutTimer-Ch4McYLj.js → CheckoutTimer-DPNmc1BX.js} +5 -5
  11. package/dist/{ChevronDownIcon-D9I-5bmz.js → ChevronDownIcon-Czxsi1W2.js} +1 -1
  12. package/dist/{CloseIcon-DPdjPdoi.js → CloseIcon-hLh5XXvh.js} +1 -1
  13. package/dist/{CollectionView-BBRXKR7L.js → CollectionView-LFCwHiPj.js} +13 -13
  14. package/dist/{Event-lTxMeEFL.js → Event-C63PLQhq.js} +431 -616
  15. package/dist/EventPage-CyDAwaQF.js +1200 -0
  16. package/dist/{Input-CDw-j5fQ.js → Input-dF1ZPavc.js} +1 -1
  17. package/dist/{MailIcon-C__hyCKr.js → MailIcon-T9SmOpQr.js} +1 -1
  18. package/dist/{PasswordInput-D3Pwparw.js → PasswordInput-B64o-TXR.js} +1 -1
  19. package/dist/{RecommendationsRail-BAdqxvuS.js → RecommendationsRail-Cb_c4ohM.js} +47 -47
  20. package/dist/ScarcityBadge-14VWzOL2.js +145 -0
  21. package/dist/{SeriesPage-iAbX0ZTM.js → SeriesPage-DeALgf5s.js} +3 -3
  22. package/dist/{Spinner-6QTo7mi8.js → Spinner-CW1KZMkc.js} +1 -1
  23. package/dist/{Success-B2T0Pbuw.js → Success-Dcd9bWCn.js} +85 -86
  24. package/dist/{TagIcon-DwWcRiXS.js → TagIcon-C8DU69Jv.js} +1 -1
  25. package/dist/{ViewTicketsEmbed-D8SEO2Zw.js → ViewTicketsEmbed-CWLSFG06.js} +14 -15
  26. package/dist/{WarningCircleIcon-C2fJjhKf.js → WarningCircleIcon-Cj8SHVfz.js} +26 -5
  27. package/dist/{WarningTriIcon-OqM9Rfwq.js → WarningTriIcon-CfCwvwsQ.js} +1 -1
  28. package/dist/__SKIP_NAVIGATION__-AOx8SI54.js +6 -0
  29. package/dist/api/api.cjs +1 -1
  30. package/dist/api/api.mjs +64 -32
  31. package/dist/api/cart-addons.d.ts +61 -0
  32. package/dist/api/index.d.ts +2 -0
  33. package/dist/{api-DMjowaFJ.js → api-Br260RVo.js} +190 -127
  34. package/dist/{constants-DC0xZ-Ja.js → constants-DWS8C09a.js} +3 -0
  35. package/dist/{copyToClipboard-CL9BmJA4.js → copyToClipboard-C_fcBdn4.js} +1 -1
  36. package/dist/{createErrorGate.svelte-DwTTmYou.js → createErrorGate.svelte-jZMaO7KA.js} +1 -1
  37. package/dist/{de-DWVo-yVF.js → de-BEfuIgIj.js} +3 -0
  38. package/dist/{defaultLabels-BaVkGLw4.js → defaultLabels-CqkC-rOG.js} +530 -427
  39. package/dist/{defaults-C6to4-1V.js → defaults-BLhQWNFt.js} +2 -2
  40. package/dist/{es-D2JTgwLx.js → es-Bd4g_HxR.js} +3 -0
  41. package/dist/{event-xgg-eiTq.js → event-DaWMe2IV.js} +1 -1
  42. package/dist/{event-transform-BF1WYBSP.js → event-transform-WnvEyzV-.js} +19 -19
  43. package/dist/{eventStatusStream-8vyVag0u.js → eventStatusStream-DgWemzCE.js} +1 -1
  44. package/dist/{fr-kMyKMhNC.js → fr-Blc79wvV.js} +3 -0
  45. package/dist/{href-DO3HKeJp.js → href-x-W1j8EY.js} +2 -2
  46. package/dist/{i18n-jISDKw5F.js → i18n-DFWp9lQ_.js} +2 -2
  47. package/dist/{i18n-toTFR5-t.js → i18n-DgjCm8g6.js} +93 -93
  48. package/dist/{id-ePSZ9pc6.js → id-DzzsiF4d.js} +3 -0
  49. package/dist/{it-CBG5vN1f.js → it-B4zXRsxu.js} +3 -0
  50. package/dist/{ja-BEOrhLFG.js → ja-eT4_QPKd.js} +3 -0
  51. package/dist/{ko-D8x_4jV4.js → ko-B8Fmrldj.js} +3 -0
  52. package/dist/locales/4.3.58/flow/de.js +1 -0
  53. package/dist/locales/4.3.58/flow/es.js +1 -0
  54. package/dist/locales/4.3.58/flow/fr.js +1 -0
  55. package/dist/locales/4.3.58/flow/id.js +1 -0
  56. package/dist/locales/4.3.58/flow/it.js +1 -0
  57. package/dist/locales/4.3.58/flow/ja.js +1 -0
  58. package/dist/locales/4.3.58/flow/ko.js +1 -0
  59. package/dist/locales/4.3.58/flow/nl.js +1 -0
  60. package/dist/locales/4.3.58/flow/pl.js +1 -0
  61. package/dist/locales/4.3.58/flow/pt-br.js +1 -0
  62. package/dist/locales/4.3.58/flow/tr.js +1 -0
  63. package/dist/locales/4.3.58/flow/zh.js +1 -0
  64. package/dist/{nl-Vc5Wd3re.js → nl-Dnug8LYt.js} +3 -0
  65. package/dist/{orders-FcXWw6b-.js → orders-DlyjunUM.js} +4 -4
  66. package/dist/{pixels-B85kohqd.js → pixels-n1zu1IhF.js} +1 -1
  67. package/dist/{pl-Dnjh6Wpy.js → pl-C3XxoYWF.js} +3 -0
  68. package/dist/{pt-br-BJa34BZo.js → pt-br-Y40SBe4b.js} +3 -0
  69. package/dist/{scarcity-CR1Pa81F.js → scarcity-KJNxIMxj.js} +100 -100
  70. package/dist/{serverTotals-DeOPPRj6.js → serverTotals-Cb7pt5Z-.js} +8 -8
  71. package/dist/{showcase-state-options-BGmvUaQ_.js → showcase-state-options-Ce1_tYvH.js} +1 -1
  72. package/dist/{to-event-card-props-DLOxO2oP.js → to-event-card-props-KoNvp_D9.js} +15 -16
  73. package/dist/{tr-Do7HmDL7.js → tr-2zIJ-vq2.js} +3 -0
  74. package/dist/{utils-DpC4fy4Z.js → utils-VHFV7pBb.js} +2 -2
  75. package/dist/venue-calendar.css +1 -1
  76. package/dist/venue-calendar.es.js +191 -192
  77. package/dist/venue-calendar.iife.js +21 -21
  78. package/dist/venue-calendar.umd.js +53 -53
  79. package/dist/{zh-Dn20V0BT.js → zh-vNYvCXO7.js} +3 -0
  80. package/package.json +220 -220
  81. package/dist/Badge-BsWJrQII.js +0 -108
  82. package/dist/CartView-Dz3Pet0D.js +0 -2294
  83. package/dist/Checkout-Bqe1P7Jr.js +0 -1849
  84. package/dist/Checkout-CFv2AX68.js +0 -1040
  85. package/dist/ClockIcon-C7nkbmvv.js +0 -25
  86. package/dist/EventPage-Cqkelq-1.js +0 -1201
  87. package/dist/ScarcityBadge-BXn6HM_K.js +0 -116
  88. package/dist/liveAnnouncer-D3xVL7qA.js +0 -32
  89. package/dist/locales/4.3.57/flow/de.js +0 -1
  90. package/dist/locales/4.3.57/flow/es.js +0 -1
  91. package/dist/locales/4.3.57/flow/fr.js +0 -1
  92. package/dist/locales/4.3.57/flow/id.js +0 -1
  93. package/dist/locales/4.3.57/flow/it.js +0 -1
  94. package/dist/locales/4.3.57/flow/ja.js +0 -1
  95. package/dist/locales/4.3.57/flow/ko.js +0 -1
  96. package/dist/locales/4.3.57/flow/nl.js +0 -1
  97. package/dist/locales/4.3.57/flow/pl.js +0 -1
  98. package/dist/locales/4.3.57/flow/pt-br.js +0 -1
  99. package/dist/locales/4.3.57/flow/tr.js +0 -1
  100. package/dist/locales/4.3.57/flow/zh.js +0 -1
  101. package/dist/order-totals-5X0jD77w.js +0 -151
  102. package/dist/promo-BNwWtZjP.js +0 -37
  103. /package/dist/locales/{4.3.57 → 4.3.58}/main/de.js +0 -0
  104. /package/dist/locales/{4.3.57 → 4.3.58}/main/es.js +0 -0
  105. /package/dist/locales/{4.3.57 → 4.3.58}/main/fr.js +0 -0
  106. /package/dist/locales/{4.3.57 → 4.3.58}/main/id.js +0 -0
  107. /package/dist/locales/{4.3.57 → 4.3.58}/main/it.js +0 -0
  108. /package/dist/locales/{4.3.57 → 4.3.58}/main/ja.js +0 -0
  109. /package/dist/locales/{4.3.57 → 4.3.58}/main/ko.js +0 -0
  110. /package/dist/locales/{4.3.57 → 4.3.58}/main/nl.js +0 -0
  111. /package/dist/locales/{4.3.57 → 4.3.58}/main/pl.js +0 -0
  112. /package/dist/locales/{4.3.57 → 4.3.58}/main/pt-br.js +0 -0
  113. /package/dist/locales/{4.3.57 → 4.3.58}/main/tr.js +0 -0
  114. /package/dist/locales/{4.3.57 → 4.3.58}/main/zh.js +0 -0
@@ -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-CFDo_qh_.js";
2
2
  import { t as o } from "./ExclamationCircleOutline-D3XbhOwM.js";
3
- import { b as s } from "./scarcity-CR1Pa81F.js";
3
+ import { b as s } from "./scarcity-KJNxIMxj.js";
4
4
  import { d as c, n as l, r as u } from "./z-index-Bo0dqmiq.js";
5
5
  import { t as d } from "./RequiredIndicator-CYcnRFsA.js";
6
6
  import "svelte/internal/disclose-version";
@@ -1,4 +1,4 @@
1
- import { K as e } from "./scarcity-CR1Pa81F.js";
1
+ import { K as e } from "./scarcity-KJNxIMxj.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-CFDo_qh_.js";
2
- import { t } from "./Input-CDw-j5fQ.js";
2
+ import { t } from "./Input-dF1ZPavc.js";
3
3
  import { d as n, n as r, r as i } from "./z-index-Bo0dqmiq.js";
4
4
  import { t as a } from "./lazyOnce-CCfEO1xG.js";
5
5
  import "svelte/internal/disclose-version";
@@ -1,14 +1,14 @@
1
- import { K as e, f as t, i as n } from "./scarcity-CR1Pa81F.js";
2
- import { t as r } from "./copyToClipboard-CL9BmJA4.js";
3
- import { D as i, S as a, b as o, h as s } from "./defaultLabels-BaVkGLw4.js";
1
+ import { K as e, f as t, i as n } from "./scarcity-KJNxIMxj.js";
2
+ import { t as r } from "./copyToClipboard-C_fcBdn4.js";
3
+ import { C as i, O as a, g as o, x as s } from "./defaultLabels-CqkC-rOG.js";
4
4
  import { r as c } from "./Button-AZ8OLQqj.js";
5
- import { G as l, V as u, z as d } from "./orders-FcXWw6b-.js";
6
- import { t as f } from "./Heading-CZMbiuFu.js";
7
- import { t as p } from "./Grid-kuP6V0GW.js";
8
- import { i as m, s as h, t as g } from "./to-event-card-props-DLOxO2oP.js";
9
- import { n as _ } from "./imageUrl-Bata3II2.js";
10
- import { P as v } from "./api-DMjowaFJ.js";
11
- import { t as y } from "./event-xgg-eiTq.js";
5
+ import { G as l, V as u, z as d } from "./orders-DlyjunUM.js";
6
+ import { F as f } from "./api-Br260RVo.js";
7
+ import { t as p } from "./Heading-CZMbiuFu.js";
8
+ import { t as m } from "./Grid-kuP6V0GW.js";
9
+ import { i as h, s as g, t as _ } from "./to-event-card-props-KoNvp_D9.js";
10
+ import { n as v } from "./imageUrl-Bata3II2.js";
11
+ import { t as y } from "./event-DaWMe2IV.js";
12
12
  import { t as b } from "./venue-BBoZBuhu.js";
13
13
  import "svelte/internal/disclose-version";
14
14
  import * as x from "svelte/internal/client";
@@ -89,7 +89,7 @@ function M(e) {
89
89
  //#endregion
90
90
  //#region src/lib/api/transformers/series.ts
91
91
  function N(e) {
92
- let t = e.seriesId ?? e.id ?? 0, r = e, i = a(e.timeZone || r.timezone || r.time_zone), o = _(e.image || "", { cdn: !0 }), s = (e.occurrences || []).map((e) => {
92
+ let t = e.seriesId ?? e.id ?? 0, r = e, a = i(e.timeZone || r.timezone || r.time_zone), o = v(e.image || "", { cdn: !0 }), s = (e.occurrences || []).map((e) => {
93
93
  let t = e.venue, n = t ? [t.name, t.stageName].filter(Boolean).join(" — ") : "", r = t ? t.googleLocationNameCache || [
94
94
  t.address,
95
95
  t.city,
@@ -106,7 +106,7 @@ function N(e) {
106
106
  ...n ? { venueName: n } : {},
107
107
  ...r ? { venueAddress: r } : {}
108
108
  };
109
- }), c = e.occurrences?.[0], l = c?.startDateTime ? n(c.startDateTime, i) : "", u = M(e.venue?.faq), d = (e.performers || []).map((e, t) => ({
109
+ }), c = e.occurrences?.[0], l = c?.startDateTime ? n(c.startDateTime, a) : "", u = M(e.venue?.faq), d = (e.performers || []).map((e, t) => ({
110
110
  id: t + 1,
111
111
  displayName: e.displayName || [e.firstName, e.lastName].filter(Boolean).join(" "),
112
112
  profileImage: e.profileImage || void 0
@@ -120,13 +120,13 @@ function N(e) {
120
120
  startDateTime: c?.startDateTime || "",
121
121
  endDateTime: c?.endDateTime || "",
122
122
  doorsOpenTime: "",
123
- timezone: i,
123
+ timezone: a,
124
124
  imageUrl: o,
125
125
  venue: {
126
126
  id: e.venue?.id || 0,
127
127
  name: e.venue?.name || "",
128
128
  address: f,
129
- timezone: i,
129
+ timezone: a,
130
130
  serviceFeePercentage: 0,
131
131
  serviceFeeCents: 0,
132
132
  taxPercentage: 0
@@ -154,11 +154,11 @@ function P(e) {
154
154
  id: e.id,
155
155
  name: e.title || "",
156
156
  slug: e.slug || "",
157
- image: _(e.image || "", { cdn: !0 }),
157
+ image: v(e.image || "", { cdn: !0 }),
158
158
  startDateTime: e.startDateTime || "",
159
159
  status: e.status || "on_sale",
160
160
  timezone: e.timeZone || e.timezone || e.venue?.timeZone || e.venue?.timezone || ""
161
- })), n = _(e.coverImage || "", { cdn: !0 });
161
+ })), n = v(e.coverImage || "", { cdn: !0 });
162
162
  return {
163
163
  id: e.id,
164
164
  title: e.collectionTitle || "",
@@ -168,13 +168,13 @@ function P(e) {
168
168
  startDateTime: "",
169
169
  endDateTime: "",
170
170
  doorsOpenTime: "",
171
- timezone: i,
171
+ timezone: a,
172
172
  imageUrl: n,
173
173
  venue: {
174
174
  id: 0,
175
175
  name: "",
176
176
  address: "",
177
- timezone: i,
177
+ timezone: a,
178
178
  serviceFeePercentage: 0,
179
179
  serviceFeeCents: 0,
180
180
  taxPercentage: 0
@@ -196,10 +196,10 @@ function P(e) {
196
196
  function F(e) {
197
197
  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;
198
198
  if (n <= 0) return "sold_out";
199
- let a = o(i);
200
- if (a && s(a, t) < 0) return "sales_ended";
201
- let l = o(r);
202
- return l && s(l, t) > 0 ? "coming_soon" : "on_sale";
199
+ let a = s(i);
200
+ if (a && o(a, t) < 0) return "sales_ended";
201
+ let l = s(r);
202
+ return l && o(l, t) > 0 ? "coming_soon" : "on_sale";
203
203
  }
204
204
  function I(e, t, n = !1) {
205
205
  let r = (e || "").toLowerCase().replace(/\s+/g, "_");
@@ -216,7 +216,7 @@ function I(e, t, n = !1) {
216
216
  return r === "sold_out" || r === "soldout" ? "sold_out" : r === "coming_soon" || r === "comingsoon" ? "coming_soon" : r === "sales_ended" || r === "salesended" ? "sales_ended" : "on_sale";
217
217
  }
218
218
  function L(e) {
219
- let r = y(e), i = r.venue || {}, o = a(r.timeZone || r.timezone || i.timeZone || i.timezone), s = (e.availableTickets || []).map((e) => ({
219
+ let r = y(e), a = r.venue || {}, o = i(r.timeZone || r.timezone || a.timeZone || a.timezone), s = (e.availableTickets || []).map((e) => ({
220
220
  id: e.id || e.ID,
221
221
  name: e.name || e.title || "",
222
222
  description: e.description || void 0,
@@ -230,24 +230,24 @@ function L(e) {
230
230
  salesStartDate: e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart || void 0,
231
231
  salesEndDate: e.salesEnd || e.saleEnd || e.onSaleEnd || void 0,
232
232
  isDonation: e.type === 2 || e.ticketType === 2 || e.isDonation === !0,
233
- isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= v.HIDDEN,
233
+ isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= f.HIDDEN,
234
234
  ticketType: e.type || e.ticketType || void 0,
235
235
  sectionName: e.sectionName || e.section || void 0
236
- })), 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 = I(r.status, s, d), p = e.image || e.imageUrl || e.image_url || "", m = p.startsWith("http") ? p : _(p, { cdn: !0 }), h = {
237
- id: i.id || i.ID || 0,
238
- name: i.name || i.googleLocationNameCache || "",
239
- address: i.address || i.googleLocationNameCache || "",
236
+ })), 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, p = I(r.status, s, d), m = e.image || e.imageUrl || e.image_url || "", h = m.startsWith("http") ? m : v(m, { cdn: !0 }), g = {
237
+ id: a.id || a.ID || 0,
238
+ name: a.name || a.googleLocationNameCache || "",
239
+ address: a.address || a.googleLocationNameCache || "",
240
240
  timezone: o,
241
- serviceFeePercentage: i.serviceFeePercentage ?? i.fee ?? 0,
242
- serviceFeeCents: i.serviceFeeCents == null ? 0 : i.serviceFeeCents,
243
- taxPercentage: i.taxPercentage ?? i.tax ?? 0,
244
- contactEmail: i.contactEmail || i.email || void 0
245
- }, g = (r.performers || []).map((e) => ({
241
+ serviceFeePercentage: a.serviceFeePercentage ?? a.fee ?? 0,
242
+ serviceFeeCents: a.serviceFeeCents == null ? 0 : a.serviceFeeCents,
243
+ taxPercentage: a.taxPercentage ?? a.tax ?? 0,
244
+ contactEmail: a.contactEmail || a.email || void 0
245
+ }, _ = (r.performers || []).map((e) => ({
246
246
  id: e.id || e.ID,
247
247
  displayName: e.displayName || e.name || "",
248
248
  profileImage: e.avatar || e.profileImage || void 0,
249
249
  role: e.role || void 0
250
- })), x = r.faqs ? M(r.faqs) : M(i.faq), S = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
250
+ })), x = r.faqs ? M(r.faqs) : M(a.faq), S = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
251
251
  id: e.id ?? e.eventId ?? t + 1,
252
252
  slug: e.slug || "",
253
253
  startDateTime: e.startDateTime || e.startTime || "",
@@ -266,15 +266,15 @@ function L(e) {
266
266
  endDateTime: r.endDateTime || "",
267
267
  doorsOpenTime: r.doorsOpenTime || "",
268
268
  timezone: o,
269
- imageUrl: m,
270
- venue: h,
271
- performers: g,
269
+ imageUrl: h,
270
+ venue: g,
271
+ performers: _,
272
272
  tickets: s,
273
273
  ...Array.isArray(e.addOns) && e.addOns.length > 0 ? { addOns: e.addOns } : {},
274
274
  faqs: x,
275
- disclaimer: r.disclaimer || i.disclaimer || void 0,
276
- ...b(i),
277
- status: f,
275
+ disclaimer: r.disclaimer || a.disclaimer || void 0,
276
+ ...b(a),
277
+ status: p,
278
278
  salesStatus: r.salesStatus || void 0,
279
279
  ...d ? { hasPurchasableHiddenTickets: !0 } : {},
280
280
  eventSeriesId: r.eventSeriesId || void 0,
@@ -293,8 +293,8 @@ function L(e) {
293
293
  summary: r.eventSummary || void 0,
294
294
  postSalesMessage: r.postSalesMessage || void 0,
295
295
  collectionId: r.collectionId || void 0,
296
- venueAddressLines: E(i.address || i.googleLocationNameCache || ""),
297
- googleMapsUrl: D(i.address || i.googleLocationNameCache || "")
296
+ venueAddressLines: E(a.address || a.googleLocationNameCache || ""),
297
+ googleMapsUrl: D(a.address || a.googleLocationNameCache || "")
298
298
  };
299
299
  }
300
300
  function R(e) {
@@ -377,7 +377,7 @@ function J(e, t) {
377
377
  r = !1;
378
378
  };
379
379
  });
380
- let a = x.derived(() => m(W(x.get(i))));
380
+ let a = x.derived(() => h(W(x.get(i))));
381
381
  function o(e) {
382
382
  let n = s(e);
383
383
  if (!n) return "";
@@ -403,7 +403,7 @@ function J(e, t) {
403
403
  }
404
404
  var l = x.comment(), u = x.first_child(l), d = (e) => {
405
405
  var n = q(), i = x.child(n), s = x.child(i);
406
- f(s, {
406
+ p(s, {
407
407
  size: "xl",
408
408
  weight: "semibold",
409
409
  children: (e, n) => {
@@ -414,7 +414,7 @@ function J(e, t) {
414
414
  $$slots: { default: !0 }
415
415
  }), x.reset(i);
416
416
  var l = x.sibling(i, 2);
417
- p(l, {
417
+ m(l, {
418
418
  cols: "auto",
419
419
  minWidth: "240px",
420
420
  gap: "6",
@@ -422,14 +422,14 @@ function J(e, t) {
422
422
  var i = x.comment(), s = x.first_child(i);
423
423
  x.each(s, 17, () => x.get(a), (e) => e.event.eventID, (e, n) => {
424
424
  let i = x.derived(() => {
425
- let { pillEvents: e, ...i } = g(x.get(n), t.labels, r());
425
+ let { pillEvents: e, ...i } = _(x.get(n), t.labels, r());
426
426
  return {
427
427
  _pillEvents: e,
428
428
  card: i
429
429
  };
430
430
  });
431
431
  var a = K(), s = x.child(a);
432
- h(s, x.spread_props(() => x.get(i).card, {
432
+ g(s, x.spread_props(() => x.get(i).card, {
433
433
  layout: "vertical",
434
434
  density: "standard",
435
435
  get placeholderImage() {
@@ -0,0 +1,145 @@
1
+ import { K as e, n as t } from "./scarcity-KJNxIMxj.js";
2
+ import { t as n } from "./WarningCircleIcon-Cj8SHVfz.js";
3
+ import { A as r, I as i, N as a, i as o, j as s, t as c } from "./defaultLabels-CqkC-rOG.js";
4
+ import { V as l } from "./api-Br260RVo.js";
5
+ import "svelte/internal/disclose-version";
6
+ import * as u from "svelte/internal/client";
7
+ //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/SubtractIcon.svelte
8
+ var d = u.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>"), f = u.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>"), p = u.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
9
+ function m(t, n) {
10
+ u.push(n, !0);
11
+ let r = u.prop(n, "size", 3, "24"), i = u.prop(n, "color", 3, "currentColor"), a = u.prop(n, "class", 3, ""), o = e(), s = u.derived(() => n.weight ?? o?.weight ?? "regular");
12
+ var c = p();
13
+ let l;
14
+ var m = u.child(c), h = (e) => {
15
+ var t = d();
16
+ u.append(e, t);
17
+ }, g = (e) => {
18
+ var t = f();
19
+ u.append(e, t);
20
+ };
21
+ u.if(m, (e) => {
22
+ u.get(s) === "fill" ? e(h) : e(g, -1);
23
+ }), u.reset(c), u.template_effect(() => {
24
+ u.set_class(c, 0, u.clsx(a())), u.set_attribute(c, "width", r()), u.set_attribute(c, "height", r()), l = u.set_style(c, "", l, { color: i() === "currentColor" ? void 0 : i() });
25
+ }), u.append(t, c), u.pop();
26
+ }
27
+ //#endregion
28
+ //#region src/lib/utils/promo.ts
29
+ var h = [
30
+ "percentage",
31
+ "%",
32
+ "fixed",
33
+ "$"
34
+ ];
35
+ function g(e) {
36
+ return h.includes(e);
37
+ }
38
+ function _(e) {
39
+ return e === "percentage" || e === "%";
40
+ }
41
+ function v(e) {
42
+ if (e.appliesToAllTickets !== !1) return [];
43
+ let t = e.applyToTicketIds;
44
+ return Array.isArray(t) && t.length > 0 ? [...t] : [];
45
+ }
46
+ function y(e, t) {
47
+ if (!e || e.length === 0) return !0;
48
+ let n = Number(t);
49
+ return Number.isFinite(n) ? e.some((e) => Number(e) === n) : !1;
50
+ }
51
+ function b(e, t, n) {
52
+ if (!g(n) || !(t > 0) || !(e > 0)) return 0;
53
+ let r = _(n) ? e * t / 100 : t;
54
+ return Math.round(Math.max(0, Math.min(e, r)) * 100) / 100;
55
+ }
56
+ function x(e, t, n, o) {
57
+ if (!g(o) || !(n > 0)) return 0;
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));
61
+ }
62
+ //#endregion
63
+ //#region src/components/ScarcityBadge.svelte
64
+ var S = 200, C = Object.create(null);
65
+ function w(e) {
66
+ (C[e] ??= l(S))(e, { politeness: "polite" });
67
+ }
68
+ var T = u.from_html("<span><!> </span>");
69
+ function E(e, r) {
70
+ u.push(r, !0);
71
+ let i = u.prop(r, "context", 3, "browse"), a = u.prop(r, "variant", 3, "default"), s = u.prop(r, "isFree", 3, !1), l = u.prop(r, "labels", 3, c), d = u.derived(() => t(r.remaining, r.total)), f = u.derived(() => {
72
+ let e = l().statusSoldOut || "Sold out", t = l().statusSellingFast || "Selling fast", n = l().scarcityOnlyNLeft || "Only {remaining} left";
73
+ return u.get(d) === "sold-out" ? {
74
+ type: "sold-out",
75
+ text: e,
76
+ showFlame: !1
77
+ } : s() ? null : i() === "browse" ? u.get(d) === "urgent" || u.get(d) === "low" ? {
78
+ type: "scarcity",
79
+ text: t,
80
+ showFlame: !0
81
+ } : null : u.get(d) === "urgent" ? {
82
+ type: "scarcity",
83
+ text: n.replace("{remaining}", String(r.remaining)),
84
+ showFlame: !0
85
+ } : u.get(d) === "low" ? {
86
+ type: "scarcity",
87
+ text: t,
88
+ showFlame: !0
89
+ } : null;
90
+ }), p = u.derived(() => u.get(f)?.type === "sold-out" ? "error" : "warning"), m = u.derived(() => u.get(f)?.type === "sold-out" ? l().statusSoldOut || "Sold out" : `${l().scarcityLowAvailability || "Low availability"}: ${u.get(f)?.text}`), h = !1;
91
+ u.user_effect(() => {
92
+ let e = u.get(f)?.text;
93
+ if (!h) {
94
+ h = !0;
95
+ return;
96
+ }
97
+ e && w(e);
98
+ });
99
+ var g = u.comment(), _ = u.first_child(g), v = (e) => {
100
+ var t = u.comment(), r = u.first_child(t), i = (e) => {
101
+ var t = T(), r = u.child(t), i = (e) => {
102
+ n(e, { size: "16" });
103
+ };
104
+ u.if(r, (e) => {
105
+ u.get(f).showFlame && e(i);
106
+ });
107
+ var a = u.sibling(r);
108
+ u.reset(t), u.template_effect(() => {
109
+ u.set_class(t, 1, `inline-flex items-center gap-1 type-caption ${u.get(f).type === "sold-out" ? "text-status-error-text" : "text-accent-warning"}`), u.set_attribute(t, "aria-label", u.get(m)), u.set_text(a, ` ${u.get(f).text ?? ""}`);
110
+ }), u.append(e, t);
111
+ }, s = (e) => {
112
+ o(e, {
113
+ get variant() {
114
+ return u.get(p);
115
+ },
116
+ size: "sm",
117
+ leftIcon: (e) => {
118
+ var t = u.comment(), r = u.first_child(t), i = (e) => {
119
+ n(e, { size: "16" });
120
+ };
121
+ u.if(r, (e) => {
122
+ u.get(f).showFlame && e(i);
123
+ }), u.append(e, t);
124
+ },
125
+ children: (e, t) => {
126
+ u.next();
127
+ var n = u.text();
128
+ u.template_effect(() => u.set_text(n, u.get(f).text)), u.append(e, n);
129
+ },
130
+ $$slots: {
131
+ leftIcon: !0,
132
+ default: !0
133
+ }
134
+ });
135
+ };
136
+ u.if(r, (e) => {
137
+ a() === "minimal" ? e(i) : e(s, -1);
138
+ }), u.append(e, t);
139
+ };
140
+ u.if(_, (e) => {
141
+ u.get(f) && e(v);
142
+ }), u.append(e, g), u.pop();
143
+ }
144
+ //#endregion
145
+ export { x as a, v as i, _ as n, b as o, y as r, m as s, E as t };
@@ -1,7 +1,7 @@
1
- import { t as e } from "./Event-lTxMeEFL.js";
1
+ import { t as e } from "./Event-C63PLQhq.js";
2
2
  import { g as t } from "./sizing-CFDo_qh_.js";
3
- import { a as n } from "./RecommendationsRail-BAdqxvuS.js";
4
- import { n as r } from "./ScarcityBadge-BXn6HM_K.js";
3
+ import { a as n } from "./RecommendationsRail-Cb_c4ohM.js";
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";
7
7
  import * as a from "svelte/internal/client";
@@ -1,5 +1,5 @@
1
1
  import { l as e, v as t } from "./sizing-CFDo_qh_.js";
2
- import { i as n } from "./Badge-BsWJrQII.js";
2
+ import { W as n } from "./defaultLabels-CqkC-rOG.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