@getmicdrop/venue-calendar 4.3.49 → 4.3.51

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 (115) hide show
  1. package/dist/{ArrowLeftIcon-C2kBPBFF.js → ArrowLeftIcon-BVz8rVy-.js} +1 -1
  2. package/dist/{BlockPlaceholder-BPa9clun.js → BlockPlaceholder-BMor_G7G.js} +1 -1
  3. package/dist/{Calendar-CoMyT0j0.js → Calendar-c-VQOPhK.js} +3 -3
  4. package/dist/{CalendarFoundryView-BoQPNIdw.js → CalendarFoundryView-Bq547Oiz.js} +960 -960
  5. package/dist/{CalendarIcon-DOoS4b_i.js → CalendarIcon-B1zQMDYt.js} +1 -1
  6. package/dist/{CartView-CVKiyVOl.js → CartView-hWsZGkVQ.js} +34 -34
  7. package/dist/{Checkout-CylGX5N6.js → Checkout-BwxyqHY_.js} +14 -14
  8. package/dist/{Checkout-BIau3rG4.js → Checkout-pjUaSvU6.js} +45 -43
  9. package/dist/{CheckoutTimer-DZ6F5dzh.js → CheckoutTimer-DjYTRwVK.js} +3 -3
  10. package/dist/{ChevronDownIcon-lXHBGCo7.js → ChevronDownIcon-8-uVEhg0.js} +1 -1
  11. package/dist/{ClockIcon-D9JBjN9o.js → ClockIcon-CubuxycE.js} +1 -1
  12. package/dist/{CloseIcon-wRJUEVbd.js → CloseIcon-pz6eBxlB.js} +1 -1
  13. package/dist/{CollectionView-CGBHaoZ4.js → CollectionView-CWwhiJHK.js} +6 -6
  14. package/dist/{Event-D1NTFNzv.js → Event-Cj5-V360.js} +18 -18
  15. package/dist/{EventPage-DmMzUsSw.js → EventPage-Gh0QX1Wk.js} +14 -14
  16. package/dist/{Input-BXowmV9D.js → Input-B0S168FA.js} +1 -1
  17. package/dist/{MailIcon-89dLUSGH.js → MailIcon-B4iLV34K.js} +1 -1
  18. package/dist/{PasswordInput-CDkeouk0.js → PasswordInput-Dd_mQxbp.js} +1 -1
  19. package/dist/{RecommendationsRail-DFL2WV70.js → RecommendationsRail-D7NWOEEf.js} +117 -110
  20. package/dist/{ScarcityBadge-B3aj_cj2.js → ScarcityBadge--Rh62z2D.js} +3 -3
  21. package/dist/{SeriesPage-CMrrm_XY.js → SeriesPage-Dx0PFJkE.js} +3 -3
  22. package/dist/{Success-hWdOedro.js → Success-Fj5TXPWu.js} +17 -17
  23. package/dist/{TagIcon-DZblUUlO.js → TagIcon-DVXKjStU.js} +1 -1
  24. package/dist/{ViewTicketsEmbed-DEOXlEri.js → ViewTicketsEmbed-DByaBHeq.js} +126 -130
  25. package/dist/{WarningCircleIcon-ftHkzPAT.js → WarningCircleIcon-CbNmDN5r.js} +1 -1
  26. package/dist/{WarningTriIcon-Cg5rWRNQ.js → WarningTriIcon-CZPGuEl3.js} +1 -1
  27. package/dist/api/api.cjs +1 -1
  28. package/dist/api/api.mjs +0 -2
  29. package/dist/api/checkout-availability.d.ts +4 -1
  30. package/dist/api/gate-password-cache.d.ts +4 -3
  31. package/dist/api/gift-cards.d.ts +10 -0
  32. package/dist/api/route-manifest.d.ts +21 -4
  33. package/dist/api/transformers/collection.d.ts +0 -5
  34. package/dist/api/transformers/event.d.ts +0 -1
  35. package/dist/api/transformers/index.d.ts +14 -18
  36. package/dist/api/transformers/series.d.ts +0 -5
  37. package/dist/api/transformers/venue.d.ts +1 -0
  38. package/dist/{api-BqDkZFK5.js → api-Cbbszsig.js} +118 -221
  39. package/dist/{constants-MMSOmBOv.js → constants-CJyMUKEX.js} +3 -45
  40. package/dist/{copyToClipboard-DOMJZVtr.js → copyToClipboard-DfqOeS1-.js} +1 -1
  41. package/dist/{createErrorGate.svelte-ynzMl2GO.js → createErrorGate.svelte-Ct8gFqvn.js} +1 -1
  42. package/dist/{de-FgvcqC9U.js → de-DdgY9gjK.js} +2 -0
  43. package/dist/{defaultLabels-BSBaNwtj.js → defaultLabels-C7rJdC-m.js} +2 -0
  44. package/dist/{defaults-BBHeX0iC.js → defaults-DBpwynsR.js} +2 -2
  45. package/dist/{es-ZfMjiCqP.js → es-h09gGjTK.js} +2 -0
  46. package/dist/{event-CYFedL-k.js → event-B4F3zifd.js} +1 -1
  47. package/dist/{event-transform-CJLXVtwq.js → event-transform-rUtOP2f0.js} +165 -57
  48. package/dist/{eventStatusStream-CnfHWNfU.js → eventStatusStream-CeFdF0pM.js} +1 -1
  49. package/dist/{fr-CyvLPH_R.js → fr-JaiZa_7i.js} +2 -0
  50. package/dist/href-C_CnchY7.js +136 -0
  51. package/dist/{i18n-CbpdmhA9.js → i18n-CEpacwpz.js} +5 -5
  52. package/dist/i18n-iYGbHTiH.js +28 -0
  53. package/dist/{id-_uuo39TH.js → id-DLwaroVD.js} +2 -0
  54. package/dist/{it-9uMqIZ8z.js → it-BzBtirlA.js} +2 -0
  55. package/dist/{ja-Cwc9R9HU.js → ja-Bg0GgXOg.js} +2 -0
  56. package/dist/{ko-Kkkes7wd.js → ko-CTS9jPS0.js} +2 -0
  57. package/dist/locales/4.3.51/main/de.js +1 -0
  58. package/dist/locales/4.3.51/main/es.js +1 -0
  59. package/dist/locales/4.3.51/main/fr.js +1 -0
  60. package/dist/locales/4.3.51/main/id.js +1 -0
  61. package/dist/locales/4.3.51/main/it.js +1 -0
  62. package/dist/locales/4.3.51/main/ja.js +1 -0
  63. package/dist/locales/4.3.51/main/ko.js +1 -0
  64. package/dist/locales/4.3.51/main/nl.js +1 -0
  65. package/dist/locales/4.3.51/main/pl.js +1 -0
  66. package/dist/locales/4.3.51/main/pt-br.js +1 -0
  67. package/dist/locales/4.3.51/main/tr.js +1 -0
  68. package/dist/locales/4.3.51/main/zh.js +1 -0
  69. package/dist/{nl-DZRosnmw.js → nl-8mSRvFG5.js} +2 -0
  70. package/dist/{order-totals-DhMhim7I.js → order-totals-c3zn-HDr.js} +3 -3
  71. package/dist/{orders-B7_DrFsF.js → orders-DZbxfNI9.js} +1 -1
  72. package/dist/{pixels-D7_ylXj9.js → pixels-CoXwcqE_.js} +2 -2
  73. package/dist/{pl-NUon2ul9.js → pl-B8-WC_Mo.js} +2 -0
  74. package/dist/{promo-CpP1Qjsg.js → promo-X_5x9P0A.js} +1 -1
  75. package/dist/{pt-br-9XGniVhr.js → pt-br-QgRkwqJk.js} +2 -0
  76. package/dist/{scarcity-nbBD95Iy.js → scarcity-Do5MrSwn.js} +1 -1
  77. package/dist/serverTotals-6RxxdfwU.js +712 -0
  78. package/dist/{showcase-state-options-DxMKyehO.js → showcase-state-options-nn-CiCd1.js} +4 -50
  79. package/dist/to-event-card-props-DwRTJ3x9.js +484 -0
  80. package/dist/{tr-Dzx6RI84.js → tr-BRjs9Thn.js} +2 -0
  81. package/dist/{utils-CBt88H2f.js → utils--rXGNV9Z.js} +2 -2
  82. package/dist/venue-calendar.css +1 -1
  83. package/dist/venue-calendar.es.js +1032 -1026
  84. package/dist/venue-calendar.iife.js +54 -117
  85. package/dist/venue-calendar.umd.js +53 -116
  86. package/dist/{zh-C_214Y7E.js → zh-CWmj934h.js} +2 -0
  87. package/package.json +2 -2
  88. package/dist/href-B5fLLW1E.js +0 -136
  89. package/dist/i18n-CCPr-2JE.js +0 -28
  90. package/dist/locales/4.3.49/main/de.js +0 -1
  91. package/dist/locales/4.3.49/main/es.js +0 -1
  92. package/dist/locales/4.3.49/main/fr.js +0 -1
  93. package/dist/locales/4.3.49/main/id.js +0 -1
  94. package/dist/locales/4.3.49/main/it.js +0 -1
  95. package/dist/locales/4.3.49/main/ja.js +0 -1
  96. package/dist/locales/4.3.49/main/ko.js +0 -1
  97. package/dist/locales/4.3.49/main/nl.js +0 -1
  98. package/dist/locales/4.3.49/main/pl.js +0 -1
  99. package/dist/locales/4.3.49/main/pt-br.js +0 -1
  100. package/dist/locales/4.3.49/main/tr.js +0 -1
  101. package/dist/locales/4.3.49/main/zh.js +0 -1
  102. package/dist/serverTotals-pNSdZn5U.js +0 -3014
  103. package/dist/to-event-card-props-C9_64NFb.js +0 -447
  104. /package/dist/locales/{4.3.49 → 4.3.51}/flow/de.js +0 -0
  105. /package/dist/locales/{4.3.49 → 4.3.51}/flow/es.js +0 -0
  106. /package/dist/locales/{4.3.49 → 4.3.51}/flow/fr.js +0 -0
  107. /package/dist/locales/{4.3.49 → 4.3.51}/flow/id.js +0 -0
  108. /package/dist/locales/{4.3.49 → 4.3.51}/flow/it.js +0 -0
  109. /package/dist/locales/{4.3.49 → 4.3.51}/flow/ja.js +0 -0
  110. /package/dist/locales/{4.3.49 → 4.3.51}/flow/ko.js +0 -0
  111. /package/dist/locales/{4.3.49 → 4.3.51}/flow/nl.js +0 -0
  112. /package/dist/locales/{4.3.49 → 4.3.51}/flow/pl.js +0 -0
  113. /package/dist/locales/{4.3.49 → 4.3.51}/flow/pt-br.js +0 -0
  114. /package/dist/locales/{4.3.49 → 4.3.51}/flow/tr.js +0 -0
  115. /package/dist/locales/{4.3.49 → 4.3.51}/flow/zh.js +0 -0
@@ -1,38 +1,38 @@
1
- import { K as e, f as t, i as n } from "./scarcity-nbBD95Iy.js";
2
- import { t as r } from "./copyToClipboard-DOMJZVtr.js";
3
- import { A as i, C as a, g as o, k as s, x as c } from "./defaultLabels-BSBaNwtj.js";
4
- import { B as l, R as u } from "./orders-B7_DrFsF.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-C9_64NFb.js";
7
- import { n as g } from "./imageUrl-Bata3II2.js";
8
- import { z as _ } from "./api-BqDkZFK5.js";
9
- import { t as v } from "./event-CYFedL-k.js";
10
- import { t as y } from "./venue-CBos8YTa.js";
1
+ import { K as e, f as t, i as n } from "./scarcity-Do5MrSwn.js";
2
+ import { t as r } from "./copyToClipboard-DfqOeS1-.js";
3
+ import { A as i, C as a, g as o, k as s, x as c } from "./defaultLabels-C7rJdC-m.js";
4
+ import { B as l, R as u, W as d } from "./orders-DZbxfNI9.js";
5
+ import { t as f } from "./Heading-D6bWtGZA.js";
6
+ import { c as p, i as m, s as h, t as g } from "./to-event-card-props-DwRTJ3x9.js";
7
+ import { n as _ } from "./imageUrl-Bata3II2.js";
8
+ import { P as v } from "./api-Cbbszsig.js";
9
+ import { t as y } from "./event-B4F3zifd.js";
10
+ import { t as b } from "./venue-CBos8YTa.js";
11
11
  import "svelte/internal/disclose-version";
12
- import * as b from "svelte/internal/client";
12
+ import * as x from "svelte/internal/client";
13
13
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ExportIcon.svelte
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();
14
+ var S = x.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>"), C = x.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), w = x.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
15
+ function T(t, n) {
16
+ x.push(n, !0);
17
+ let r = x.prop(n, "size", 3, "24"), i = x.prop(n, "color", 3, "currentColor"), a = x.prop(n, "class", 3, ""), o = e(), s = x.derived(() => n.weight ?? o?.weight ?? "regular");
18
+ var c = w();
19
19
  let l;
20
- var u = b.child(c), d = (e) => {
21
- var t = x();
22
- b.append(e, t);
23
- }, f = (e) => {
20
+ var u = x.child(c), d = (e) => {
24
21
  var t = S();
25
- b.next(2), b.append(e, t);
22
+ x.append(e, t);
23
+ }, f = (e) => {
24
+ var t = C();
25
+ x.next(2), x.append(e, t);
26
26
  };
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();
27
+ x.if(u, (e) => {
28
+ x.get(s) === "fill" ? e(d) : e(f, -1);
29
+ }), x.reset(c), x.template_effect(() => {
30
+ x.set_class(c, 0, x.clsx(a())), x.set_attribute(c, "width", r()), x.set_attribute(c, "height", r()), l = x.set_style(c, "", l, { color: i() === "currentColor" ? void 0 : i() });
31
+ }), x.append(t, c), x.pop();
32
32
  }
33
33
  //#endregion
34
34
  //#region src/lib/api/transformers/address.ts
35
- function T(e) {
35
+ function E(e) {
36
36
  if (!e) return [];
37
37
  let t = e.split(",").map((e) => e.trim());
38
38
  if (t.length < 2) return [e];
@@ -43,17 +43,17 @@ function T(e) {
43
43
  }
44
44
  return [t[0], t.slice(1).join(", ")];
45
45
  }
46
- function E(e) {
46
+ function D(e) {
47
47
  return e ? `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e)}` : "";
48
48
  }
49
49
  //#endregion
50
50
  //#region src/lib/api/transformers/faq.ts
51
- var D = "FAQ", O = 40, k = /^q\s*[:.)-]\s*/i, A = /^a\s*[:.)-]\s*/i;
52
- function j(e) {
51
+ var O = "FAQ", k = 40, A = /^q\s*[:.)-]\s*/i, j = /^a\s*[:.)-]\s*/i;
52
+ function M(e) {
53
53
  if (Array.isArray(e)) return e.map((e) => ({
54
54
  question: String(e?.question ?? "").trim(),
55
55
  answer: String(e?.answer ?? "").trim()
56
- })).filter((e) => e.question || e.answer).slice(0, O);
56
+ })).filter((e) => e.question || e.answer).slice(0, k);
57
57
  if (typeof e != "string") return [];
58
58
  let t = e.trim();
59
59
  if (!t) return [];
@@ -61,33 +61,33 @@ function j(e) {
61
61
  if (n.length === 0) return [];
62
62
  let r = [], i = null;
63
63
  for (let e of n) {
64
- let t = k.test(e), n = A.test(e);
64
+ let t = A.test(e), n = j.test(e);
65
65
  if (t || !n && e.endsWith("?")) {
66
66
  i && r.push(i), i = {
67
- question: e.replace(k, "").trim(),
67
+ question: e.replace(A, "").trim(),
68
68
  answer: ""
69
69
  };
70
70
  continue;
71
71
  }
72
- let a = e.replace(A, "").trim();
72
+ let a = e.replace(j, "").trim();
73
73
  if (!i) {
74
74
  i = {
75
- question: D,
75
+ question: O,
76
76
  answer: a
77
77
  };
78
78
  continue;
79
79
  }
80
80
  i.answer = i.answer ? `${i.answer}\n${a}` : a;
81
81
  }
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,
82
+ return i && r.push(i), r.some((e) => e.question !== O) ? r.filter((e) => e.question || e.answer).slice(0, k) : [{
83
+ question: O,
84
84
  answer: n.join("\n")
85
85
  }];
86
86
  }
87
87
  //#endregion
88
88
  //#region src/lib/api/transformers/series.ts
89
- function M(e) {
90
- let t = e.seriesId ?? e.id ?? 0, r = e, i = a(e.timeZone || r.timezone || r.time_zone), o = g(e.image || "", { cdn: !0 }), s = (e.occurrences || []).map((e) => {
89
+ function N(e) {
90
+ 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) => {
91
91
  let t = e.venue, n = t ? [t.name, t.stageName].filter(Boolean).join(" — ") : "", r = t ? t.googleLocationNameCache || [
92
92
  t.address,
93
93
  t.city,
@@ -104,7 +104,7 @@ function M(e) {
104
104
  ...n ? { venueName: n } : {},
105
105
  ...r ? { venueAddress: r } : {}
106
106
  };
107
- }), c = e.occurrences?.[0], l = c?.startDateTime ? n(c.startDateTime, i) : "", u = j(e.venue?.faq), d = (e.performers || []).map((e, t) => ({
107
+ }), c = e.occurrences?.[0], l = c?.startDateTime ? n(c.startDateTime, i) : "", u = M(e.venue?.faq), d = (e.performers || []).map((e, t) => ({
108
108
  id: t + 1,
109
109
  displayName: e.displayName || [e.firstName, e.lastName].filter(Boolean).join(" "),
110
110
  profileImage: e.profileImage || void 0
@@ -133,7 +133,7 @@ function M(e) {
133
133
  tickets: [],
134
134
  faqs: u,
135
135
  disclaimer: e.venue?.disclaimer || void 0,
136
- ...y(e.venue),
136
+ ...b(e.venue),
137
137
  status: "on_sale",
138
138
  eventSeriesId: t,
139
139
  seriesOccurrences: s,
@@ -141,22 +141,22 @@ function M(e) {
141
141
  isRegistrationEvent: !1,
142
142
  totalTicketsRemaining: 0,
143
143
  totalTicketsCapacity: 0,
144
- venueAddressLines: T(f),
145
- googleMapsUrl: E(f)
144
+ venueAddressLines: E(f),
145
+ googleMapsUrl: D(f)
146
146
  };
147
147
  }
148
148
  //#endregion
149
149
  //#region src/lib/api/transformers/collection.ts
150
- function N(e) {
150
+ function P(e) {
151
151
  let t = (e.events || []).map((e) => ({
152
152
  id: e.id,
153
153
  name: e.title || "",
154
154
  slug: e.slug || "",
155
- image: g(e.image || "", { cdn: !0 }),
155
+ image: _(e.image || "", { cdn: !0 }),
156
156
  startDateTime: e.startDateTime || "",
157
157
  status: e.status || "on_sale",
158
158
  timezone: e.timeZone || e.timezone || e.venue?.timeZone || e.venue?.timezone || ""
159
- })), n = g(e.coverImage || "", { cdn: !0 });
159
+ })), n = _(e.coverImage || "", { cdn: !0 });
160
160
  return {
161
161
  id: e.id,
162
162
  title: e.collectionTitle || "",
@@ -191,7 +191,7 @@ function N(e) {
191
191
  }
192
192
  //#endregion
193
193
  //#region src/lib/public-calendar-flow/transform.ts
194
- function P(e) {
194
+ function F(e) {
195
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;
196
196
  if (n <= 0) return "sold_out";
197
197
  let s = c(a);
@@ -199,7 +199,7 @@ function P(e) {
199
199
  let l = c(r);
200
200
  return l && o(l, t) > 0 ? "coming_soon" : "on_sale";
201
201
  }
202
- function F(e, t, n = !1) {
202
+ function I(e, t, n = !1) {
203
203
  let r = (e || "").toLowerCase().replace(/\s+/g, "_");
204
204
  if (r === "cancelled" || r === "canceled") return "cancelled";
205
205
  if (r === "postponed") return "postponed";
@@ -213,8 +213,8 @@ function F(e, t, n = !1) {
213
213
  }
214
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";
215
215
  }
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) => ({
216
+ function L(e) {
217
+ let r = y(e), i = r.venue || {}, o = a(r.timeZone || r.timezone || i.timeZone || i.timezone), s = (e.availableTickets || []).map((e) => ({
218
218
  id: e.id || e.ID,
219
219
  name: e.name || e.title || "",
220
220
  description: e.description || void 0,
@@ -224,14 +224,14 @@ function I(e) {
224
224
  quantityTotal: e.totalCapacity ?? e.total ?? e.sectionCapacity ?? e.quantity ?? 0,
225
225
  minPerOrder: e.minPerOrder ?? e.minQuantity ?? 1,
226
226
  maxPerOrder: e.maxPerOrder ?? e.maxQuantity ?? 10,
227
- status: P(e),
227
+ status: F(e),
228
228
  salesStartDate: e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart || void 0,
229
229
  salesEndDate: e.salesEnd || e.saleEnd || e.onSaleEnd || void 0,
230
230
  isDonation: e.type === 2 || e.ticketType === 2 || e.isDonation === !0,
231
- isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= _.HIDDEN,
231
+ isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= v.HIDDEN,
232
232
  ticketType: e.type || e.ticketType || void 0,
233
233
  sectionName: e.sectionName || e.section || void 0
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
+ })), 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 = {
235
235
  id: i.id || i.ID || 0,
236
236
  name: i.name || i.googleLocationNameCache || "",
237
237
  address: i.address || i.googleLocationNameCache || "",
@@ -240,12 +240,12 @@ function I(e) {
240
240
  serviceFeeCents: i.serviceFeeCents == null ? 0 : i.serviceFeeCents,
241
241
  taxPercentage: i.taxPercentage ?? i.tax ?? 0,
242
242
  contactEmail: i.contactEmail || i.email || void 0
243
- }, b = (r.performers || []).map((e) => ({
243
+ }, g = (r.performers || []).map((e) => ({
244
244
  id: e.id || e.ID,
245
245
  displayName: e.displayName || e.name || "",
246
246
  profileImage: e.avatar || e.profileImage || void 0,
247
247
  role: e.role || void 0
248
- })), x = r.faqs ? j(r.faqs) : j(i.faq), S = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
248
+ })), x = r.faqs ? M(r.faqs) : M(i.faq), S = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
249
249
  id: e.id ?? e.eventId ?? t + 1,
250
250
  slug: e.slug || "",
251
251
  startDateTime: e.startDateTime || e.startTime || "",
@@ -266,12 +266,12 @@ function I(e) {
266
266
  timezone: o,
267
267
  imageUrl: m,
268
268
  venue: h,
269
- performers: b,
269
+ performers: g,
270
270
  tickets: s,
271
271
  ...Array.isArray(e.addOns) && e.addOns.length > 0 ? { addOns: e.addOns } : {},
272
272
  faqs: x,
273
273
  disclaimer: r.disclaimer || i.disclaimer || void 0,
274
- ...y(i),
274
+ ...b(i),
275
275
  status: f,
276
276
  salesStatus: r.salesStatus || void 0,
277
277
  ...d ? { hasPurchasableHiddenTickets: !0 } : {},
@@ -291,19 +291,19 @@ function I(e) {
291
291
  summary: r.eventSummary || void 0,
292
292
  postSalesMessage: r.postSalesMessage || void 0,
293
293
  collectionId: r.collectionId || void 0,
294
- venueAddressLines: T(i.address || i.googleLocationNameCache || ""),
295
- googleMapsUrl: E(i.address || i.googleLocationNameCache || "")
294
+ venueAddressLines: E(i.address || i.googleLocationNameCache || ""),
295
+ googleMapsUrl: D(i.address || i.googleLocationNameCache || "")
296
296
  };
297
297
  }
298
- function L(e) {
299
- return M(e);
300
- }
301
298
  function R(e) {
302
299
  return N(e);
303
300
  }
301
+ function z(e) {
302
+ return P(e);
303
+ }
304
304
  //#endregion
305
305
  //#region src/lib/public-calendar-flow/shareEventLink.ts
306
- async function z(e) {
306
+ async function B(e) {
307
307
  if (typeof navigator < "u" && typeof navigator.share == "function") try {
308
308
  return await navigator.share({ url: e }), "shared";
309
309
  } catch (e) {
@@ -313,21 +313,21 @@ async function z(e) {
313
313
  }
314
314
  //#endregion
315
315
  //#region src/lib/public-calendar-flow/shareCopyFeedback.svelte.ts
316
- function B() {
317
- let e = b.state("idle"), t = b.state(""), n;
316
+ function V() {
317
+ let e = x.state("idle"), t = x.state(""), n;
318
318
  async function r(r) {
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));
319
+ let i = await B(r);
320
+ i === "copied" ? (x.set(t, ""), x.set(e, "copied"), clearTimeout(n), n = setTimeout(() => x.set(e, "idle"), 2500)) : i === "failed" && (clearTimeout(n), x.set(e, "failed"), x.set(t, r, !0));
321
321
  }
322
322
  function i() {
323
323
  clearTimeout(n);
324
324
  }
325
325
  return {
326
326
  get copyState() {
327
- return b.get(e);
327
+ return x.get(e);
328
328
  },
329
329
  get copyFailedUrl() {
330
- return b.get(t);
330
+ return x.get(t);
331
331
  },
332
332
  share: r,
333
333
  dispose: i
@@ -335,12 +335,19 @@ function B() {
335
335
  }
336
336
  //#endregion
337
337
  //#region src/lib/api/recommendations.ts
338
- async function V(e, t = "event_page", n) {
339
- return e ? (await l(`${u()}/events/${e}/recommendations?surface=${t}`, { widgetKey: n }))?.recommendations ?? [] : [];
338
+ var H = /* @__PURE__ */ new Map();
339
+ function U(e, t = "event_page", n) {
340
+ if (!e) return Promise.resolve([]);
341
+ let r = `${u()}/events/${e}/recommendations?surface=${t}`, i = n || d() || "", a = `${r}|${i}`, o = H.get(a);
342
+ if (o) return o;
343
+ let s = l(r, { widgetKey: i || void 0 }).then((e) => e?.recommendations ?? [], () => []);
344
+ H.set(a, s);
345
+ let c = () => H.delete(a);
346
+ return s.then(c, c), s;
340
347
  }
341
348
  //#endregion
342
349
  //#region src/lib/public-calendar-flow/recommendation-cards.ts
343
- function H(e) {
350
+ function W(e) {
344
351
  return e.filter((e) => !!e.startsAt).map((e) => ({
345
352
  eventID: e.eventId,
346
353
  name: e.title,
@@ -356,19 +363,19 @@ function H(e) {
356
363
  }
357
364
  //#endregion
358
365
  //#region src/lib/public-calendar-flow/RecommendationsRail.svelte
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(() => {
366
+ var G = x.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>"), K = x.from_html("<div class=\"flex flex-col gap-2\"><!> <!></div>"), q = x.from_html("<section data-testid=\"recommendations-rail\"><div class=\"mb-4\"><!></div> <!></section>");
367
+ function J(e, t) {
368
+ x.push(t, !0);
369
+ let n = x.prop(t, "surface", 3, "event_page"), r = x.prop(t, "locale", 3, "en"), i = x.state(x.proxy([]));
370
+ x.user_effect(() => {
364
371
  let e = t.eventId, r = !0;
365
- return V(e, n(), t.widgetKey).then((n) => {
366
- r && e === t.eventId && b.set(i, n, !0);
372
+ return U(e, n(), t.widgetKey).then((n) => {
373
+ r && e === t.eventId && x.set(i, n, !0);
367
374
  }), () => {
368
375
  r = !1;
369
376
  };
370
377
  });
371
- let a = b.derived(() => p(H(b.get(i))));
378
+ let a = x.derived(() => m(W(x.get(i))));
372
379
  function o(e) {
373
380
  let n = s(e);
374
381
  if (!n) return "";
@@ -382,7 +389,7 @@ function K(e, t) {
382
389
  }
383
390
  }
384
391
  function s(e) {
385
- return b.get(i).find((t) => t.eventId === e.eventID);
392
+ return x.get(i).find((t) => t.eventId === e.eventID);
386
393
  }
387
394
  function c(e) {
388
395
  let n = s(e)?.url;
@@ -392,57 +399,57 @@ function K(e, t) {
392
399
  }
393
400
  t.onselect?.(e);
394
401
  }
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, {
402
+ var l = x.comment(), u = x.first_child(l), d = (e) => {
403
+ var n = q(), i = x.child(n), s = x.child(i);
404
+ f(s, {
398
405
  size: "xl",
399
406
  weight: "semibold",
400
407
  children: (e, n) => {
401
- b.next();
402
- var r = b.text();
403
- b.template_effect(() => b.set_text(r, t.labels.recommendationsHeading)), b.append(e, r);
408
+ x.next();
409
+ var r = x.text();
410
+ x.template_effect(() => x.set_text(r, t.labels.recommendationsHeading)), x.append(e, r);
404
411
  },
405
412
  $$slots: { default: !0 }
406
- }), b.reset(i);
407
- var l = b.sibling(i, 2);
408
- f(l, {
413
+ }), x.reset(i);
414
+ var l = x.sibling(i, 2);
415
+ p(l, {
409
416
  cols: "auto",
410
417
  minWidth: "240px",
411
418
  gap: "6",
412
419
  children: (e, n) => {
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());
420
+ var i = x.comment(), s = x.first_child(i);
421
+ x.each(s, 17, () => x.get(a), (e) => e.event.eventID, (e, n) => {
422
+ let i = x.derived(() => {
423
+ let { pillEvents: e, ...i } = g(x.get(n), t.labels, r());
417
424
  return {
418
425
  _pillEvents: e,
419
426
  card: i
420
427
  };
421
428
  });
422
- var a = W(), s = b.child(a);
423
- m(s, b.spread_props(() => b.get(i).card, {
429
+ var a = K(), s = x.child(a);
430
+ h(s, x.spread_props(() => x.get(i).card, {
424
431
  layout: "vertical",
425
432
  density: "standard",
426
433
  get placeholderImage() {
427
434
  return t.placeholderImage;
428
435
  },
429
- onclick: () => c(b.get(n).event)
436
+ onclick: () => c(x.get(n).event)
430
437
  }));
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
+ var l = x.sibling(s, 2), u = (e) => {
439
+ var t = G(), r = x.child(t, !0);
440
+ x.reset(t), x.template_effect((e) => x.set_text(r, e), [() => o(x.get(n).event)]), x.append(e, t);
441
+ }, d = x.derived(() => o(x.get(n).event));
442
+ x.if(l, (e) => {
443
+ x.get(d) && e(u);
444
+ }), x.reset(a), x.append(e, a);
445
+ }), x.append(e, i);
439
446
  },
440
447
  $$slots: { default: !0 }
441
- }), b.reset(n), b.append(e, n);
448
+ }), x.reset(n), x.append(e, n);
442
449
  };
443
- b.if(u, (e) => {
444
- b.get(a).length > 0 && e(g);
445
- }), b.append(e, l), b.pop();
450
+ x.if(u, (e) => {
451
+ x.get(a).length > 0 && e(d);
452
+ }), x.append(e, l), x.pop();
446
453
  }
447
454
  //#endregion
448
- export { L as a, R as i, B as n, w as o, I as r, K as t };
455
+ export { R as a, z as i, V as n, T as o, L as r, J as t };
@@ -1,7 +1,7 @@
1
- import { t as e } from "./WarningCircleIcon-ftHkzPAT.js";
2
- import { K as t, n } from "./scarcity-nbBD95Iy.js";
1
+ import { t as e } from "./WarningCircleIcon-CbNmDN5r.js";
2
+ import { K as t, n } from "./scarcity-Do5MrSwn.js";
3
3
  import { t as r } from "./Badge-n7TfNjln.js";
4
- import { t as i } from "./defaultLabels-BSBaNwtj.js";
4
+ import { t as i } from "./defaultLabels-C7rJdC-m.js";
5
5
  import { n as a } from "./liveAnnouncer-D3xVL7qA.js";
6
6
  import "svelte/internal/disclose-version";
7
7
  import * as o from "svelte/internal/client";
@@ -1,7 +1,7 @@
1
1
  import { E as e } from "./Button-klwKgfhG.js";
2
- import { t } from "./Event-D1NTFNzv.js";
3
- import { a as n } from "./RecommendationsRail-DFL2WV70.js";
4
- import { n as r } from "./ScarcityBadge-B3aj_cj2.js";
2
+ import { t } from "./Event-Cj5-V360.js";
3
+ import { a as n } from "./RecommendationsRail-D7NWOEEf.js";
4
+ import { n as r } from "./ScarcityBadge--Rh62z2D.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,26 +1,26 @@
1
1
  import { E as e } from "./Button-klwKgfhG.js";
2
- import { E as t, K as n, c as r, r as i } from "./scarcity-nbBD95Iy.js";
3
- import { t as a } from "./ArrowLeftIcon-C2kBPBFF.js";
4
- import { t as o } from "./CalendarIcon-DOoS4b_i.js";
5
- import { t as s } from "./ChevronDownIcon-lXHBGCo7.js";
6
- import { n as c, t as l } from "./MailIcon-89dLUSGH.js";
7
- import { n as u, o as d, r as f, t as p } from "./RecommendationsRail-DFL2WV70.js";
8
- import { n as m } from "./copyToClipboard-DOMJZVtr.js";
9
- import { M as h, N as g, U as _, V as v, i as y, z as b } from "./defaultLabels-BSBaNwtj.js";
10
- import { H as x, Q as S, X as C, _ as w, et as T, s as E } from "./orders-B7_DrFsF.js";
2
+ import { E as t, K as n, c as r, r as i } from "./scarcity-Do5MrSwn.js";
3
+ import { t as a } from "./ArrowLeftIcon-BVz8rVy-.js";
4
+ import { t as o } from "./CalendarIcon-B1zQMDYt.js";
5
+ import { t as s } from "./ChevronDownIcon-8-uVEhg0.js";
6
+ import { n as c, t as l } from "./MailIcon-B4iLV34K.js";
7
+ import { n as u, o as d, r as f, t as p } from "./RecommendationsRail-D7NWOEEf.js";
8
+ import { n as m } from "./copyToClipboard-DfqOeS1-.js";
9
+ import { M as h, N as g, U as _, V as v, i as y, z as b } from "./defaultLabels-C7rJdC-m.js";
10
+ import { H as x, Q as S, X as C, _ as w, et as T, s as E } from "./orders-DZbxfNI9.js";
11
11
  import { t as D } from "./liveAnnouncer-D3xVL7qA.js";
12
12
  import { n as O, t as k } from "./Heading-D6bWtGZA.js";
13
13
  import { t as A } from "./Text-CqjLjIF8.js";
14
- import { g as j, h as M } from "./api-BqDkZFK5.js";
15
- import { c as N, r as ee } from "./pixels-D7_ylXj9.js";
16
- import { i as P, n as F, t as I } from "./i18n-CbpdmhA9.js";
17
- import { n as L, t as R } from "./i18n-CCPr-2JE.js";
14
+ import { g as j, h as M } from "./api-Cbbszsig.js";
15
+ import { c as N, r as ee } from "./pixels-CoXwcqE_.js";
16
+ import { i as P, n as F, t as I } from "./i18n-CEpacwpz.js";
17
+ import { n as L, t as R } from "./i18n-iYGbHTiH.js";
18
18
  import { t as z } from "./__SKIP_PATHS__-C0ixDSSm.js";
19
- import { C as B, d as V, l as te, n as H } from "./utils-CBt88H2f.js";
20
- import { n as U, t as ne } from "./constants-MMSOmBOv.js";
21
- import { a as W, i as G, n as re, o as ie, r as K, s as q } from "./showcase-state-options-DxMKyehO.js";
19
+ import { C as B, d as V, l as te, n as H } from "./utils--rXGNV9Z.js";
20
+ import { n as U, t as ne } from "./constants-CJyMUKEX.js";
21
+ import { a as W, i as G, n as re, o as ie, r as K, s as q } from "./showcase-state-options-nn-CiCd1.js";
22
22
  import { n as ae, t as oe } from "./buyerEmail-BfCq-gDt.js";
23
- import { r as J } from "./defaults-BBHeX0iC.js";
23
+ import { r as J } from "./defaults-DBpwynsR.js";
24
24
  import "svelte/internal/disclose-version";
25
25
  import * as Y from "svelte/internal/client";
26
26
  import { SvelteMap as se } from "svelte/reactivity";
@@ -1,4 +1,4 @@
1
- import { K as e } from "./scarcity-nbBD95Iy.js";
1
+ import { K as e } from "./scarcity-Do5MrSwn.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/TagIcon.svelte