@getmicdrop/venue-calendar 4.3.120 → 4.3.122

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/README.md +22 -0
  2. package/dist/{AddOnCard-BGFpF6uw.js → AddOnCard-BkEFPzAX.js} +5 -5
  3. package/dist/{ArrowLeftIcon-pPaJkbnp.js → ArrowLeftIcon-t-CY0sbi.js} +1 -1
  4. package/dist/{BlockPlaceholder-BgLtwJnm.js → BlockPlaceholder-BmEZ68_q.js} +1 -1
  5. package/dist/{Calendar-DFPyzgRC.js → Calendar-hxcQBkTF.js} +3 -3
  6. package/dist/{CalendarFoundryView-BI_LlpB6.js → CalendarFoundryView-CSAKDe-F.js} +19 -19
  7. package/dist/{CalendarIcon-C_6MSRyE.js → CalendarIcon-B5JWs0gm.js} +1 -1
  8. package/dist/{CartView-9YSoRvTw.js → CartView-CQZw_kwm.js} +719 -716
  9. package/dist/{CheckIcon-sr8D0z-b.js → CheckIcon-BSwoGox7.js} +1 -1
  10. package/dist/{Checkout-BLkYIKoR.js → Checkout-Bsx9d4qD.js} +378 -378
  11. package/dist/{Checkout-BS3r4Qii.js → Checkout-CN1o3v9L.js} +328 -328
  12. package/dist/{CheckoutTimer-DY1NKJXP.js → CheckoutTimer-Bpt5gPyA.js} +2 -2
  13. package/dist/{ChevronDownIcon-Co6rRQp-.js → ChevronDownIcon-CVZ0usBx.js} +1 -1
  14. package/dist/{CloseIcon-DpRE5O8y.js → CloseIcon-DUnvWXUY.js} +1 -1
  15. package/dist/CollectionView-DXkBRGeQ.js +141 -0
  16. package/dist/{Event-DUq4tYBE.js → Event-CmD84Ni8.js} +684 -680
  17. package/dist/EventPage-4ToDFEaL.js +1201 -0
  18. package/dist/{Input-CsHb9Z8e.js → Input-BXZmvQ0p.js} +1 -1
  19. package/dist/{LocationIcon-Dxk7snUC.js → LocationIcon-E-7CQh4E.js} +1 -1
  20. package/dist/{PasswordInput-BlL0w_yr.js → PasswordInput-DzXNIwRc.js} +1 -1
  21. package/dist/{RecommendationsRail-Dq9t0T02.js → RecommendationsRail-CrBSsbBD.js} +124 -124
  22. package/dist/{ScarcityBadge-Bj_YMxz4.js → ScarcityBadge-BL4shc2w.js} +4 -4
  23. package/dist/{SeriesPage-CaPTQRSo.js → SeriesPage-Dt-T6mco.js} +2 -2
  24. package/dist/{Spinner-BgdjQygI.js → Spinner-B2rdbspc.js} +1 -1
  25. package/dist/{Success-tXgS0BXp.js → Success-BTm0jRAO.js} +201 -201
  26. package/dist/{TagIcon-Kq7_bapx.js → TagIcon-BY8tK_qA.js} +1 -1
  27. package/dist/ViewTicketsEmbed-BjqniKb9.js +660 -0
  28. package/dist/{WarningCircleIcon-BdbAYYi4.js → WarningCircleIcon-C5Lc7qkF.js} +1 -1
  29. package/dist/{WarningTriIcon-D8otatZe.js → WarningTriIcon-BM8qc9xx.js} +1 -1
  30. package/dist/api/api.cjs +1 -1
  31. package/dist/api/api.mjs +258 -252
  32. package/dist/api/cart-addons.d.ts +2 -1
  33. package/dist/api/checkout-availability.d.ts +2 -25
  34. package/dist/api/client.d.ts +4 -7
  35. package/dist/api/events.d.ts +23 -22
  36. package/dist/api/gift-cards.d.ts +7 -6
  37. package/dist/api/orders.d.ts +13 -12
  38. package/dist/api/promo.d.ts +5 -4
  39. package/dist/api/surge-queue.d.ts +5 -34
  40. package/dist/api/venues.d.ts +5 -4
  41. package/dist/api/waitlist.d.ts +5 -9
  42. package/dist/{api-DG7ztpYi.js → api-0hNBT78w.js} +174 -169
  43. package/dist/{copyToClipboard-DSangJpP.js → copyToClipboard-F-akSgaF.js} +1 -1
  44. package/dist/{createErrorGate.svelte-CEBpRAmr.js → createErrorGate.svelte-CEGaIQeI.js} +1 -1
  45. package/dist/{datetime-YTw6PkGP.js → datetime-BnKG6Hjm.js} +1 -1
  46. package/dist/{de-CbwqVvg6.js → de-BHcAXwnM.js} +0 -1
  47. package/dist/{defaultLabels-CsRGNP7f.js → defaultLabels-BbNEEsF7.js} +0 -1
  48. package/dist/{defaults-UDvnrGu0.js → defaults-CcPpWiyw.js} +2 -2
  49. package/dist/{es-Dxqulvec.js → es-DZ3yceh-.js} +0 -1
  50. package/dist/{event-CW18bU9h.js → event-DfqUhl5j.js} +1 -1
  51. package/dist/{event-transform-CyRMeKW_.js → event-transform-DJYPMj8I.js} +4 -4
  52. package/dist/{eventStatusStream-Cf7PaLka.js → eventStatusStream-DXyc5Eng.js} +9 -9
  53. package/dist/{fr-0aCE52FE.js → fr-Dyi163Vk.js} +0 -1
  54. package/dist/{href-yqxAPbkW.js → href-CfWGAmkP.js} +3 -3
  55. package/dist/i18n-CIpUYDU6.js +28 -0
  56. package/dist/{i18n-MF3q-UBI.js → i18n-DyjdmQSR.js} +4 -4
  57. package/dist/{id-7ClY2Dwb.js → id-DvFRZVAm.js} +0 -1
  58. package/dist/{it-z-heX6Hy.js → it-Bh05tcLv.js} +0 -1
  59. package/dist/{ja-ecBzr5l9.js → ja-CU4PQS4j.js} +0 -1
  60. package/dist/{ko-Blnq1Wc_.js → ko-DDk6EdWm.js} +0 -1
  61. package/dist/locales/4.3.122/main/de.js +1 -0
  62. package/dist/locales/4.3.122/main/es.js +1 -0
  63. package/dist/locales/4.3.122/main/fr.js +1 -0
  64. package/dist/locales/4.3.122/main/id.js +1 -0
  65. package/dist/locales/4.3.122/main/it.js +1 -0
  66. package/dist/locales/4.3.122/main/ja.js +1 -0
  67. package/dist/locales/4.3.122/main/ko.js +1 -0
  68. package/dist/locales/4.3.122/main/nl.js +1 -0
  69. package/dist/locales/4.3.122/main/pl.js +1 -0
  70. package/dist/locales/4.3.122/main/pt-br.js +1 -0
  71. package/dist/locales/4.3.122/main/tr.js +1 -0
  72. package/dist/locales/4.3.122/main/zh.js +1 -0
  73. package/dist/{nl-Bm2Lee3j.js → nl-DOSKYHSx.js} +0 -1
  74. package/dist/{pixels-BAPQbj_Y.js → pixels-CFwOgA2N.js} +8 -8
  75. package/dist/{pl-DIp-gYhF.js → pl-CkLEymA2.js} +0 -1
  76. package/dist/{pt-br-BmcVsgbQ.js → pt-br-BHuCQSM-.js} +0 -1
  77. package/dist/{serverTotals-D57U4Nju.js → serverTotals-B8SJCzxE.js} +1 -1
  78. package/dist/{showcase-state-options-zfQoPg37.js → showcase-state-options-KO_TYk3I.js} +1 -1
  79. package/dist/{to-event-card-props-Dn1eDOiJ.js → to-event-card-props-DYIfPN8e.js} +9 -13
  80. package/dist/{tr-BshxS2DN.js → tr-Bvc34ODh.js} +0 -1
  81. package/dist/{utils-CdNe7KGe.js → utils-BzgFQSTg.js} +82 -78
  82. package/dist/venue-calendar.es.js +1444 -1444
  83. package/dist/venue-calendar.iife.js +30 -30
  84. package/dist/venue-calendar.umd.js +43 -43
  85. package/dist/{orders-BWVwv3P0.js → widget-key-context-CmI7Qdtf.js} +290 -279
  86. package/dist/{zh-B06ZsUNX.js → zh-K0hOzZ3G.js} +0 -1
  87. package/package.json +1 -1
  88. package/dist/CollectionView-DyFDlCmo.js +0 -138
  89. package/dist/EventPage-m5SlifRu.js +0 -1200
  90. package/dist/ViewTicketsEmbed-BnuypZ1H.js +0 -660
  91. package/dist/i18n-B-AwhAMH.js +0 -28
  92. package/dist/locales/4.3.120/main/de.js +0 -1
  93. package/dist/locales/4.3.120/main/es.js +0 -1
  94. package/dist/locales/4.3.120/main/fr.js +0 -1
  95. package/dist/locales/4.3.120/main/id.js +0 -1
  96. package/dist/locales/4.3.120/main/it.js +0 -1
  97. package/dist/locales/4.3.120/main/ja.js +0 -1
  98. package/dist/locales/4.3.120/main/ko.js +0 -1
  99. package/dist/locales/4.3.120/main/nl.js +0 -1
  100. package/dist/locales/4.3.120/main/pl.js +0 -1
  101. package/dist/locales/4.3.120/main/pt-br.js +0 -1
  102. package/dist/locales/4.3.120/main/tr.js +0 -1
  103. package/dist/locales/4.3.120/main/zh.js +0 -1
  104. /package/dist/locales/{4.3.120 → 4.3.122}/flow/de.js +0 -0
  105. /package/dist/locales/{4.3.120 → 4.3.122}/flow/es.js +0 -0
  106. /package/dist/locales/{4.3.120 → 4.3.122}/flow/fr.js +0 -0
  107. /package/dist/locales/{4.3.120 → 4.3.122}/flow/id.js +0 -0
  108. /package/dist/locales/{4.3.120 → 4.3.122}/flow/it.js +0 -0
  109. /package/dist/locales/{4.3.120 → 4.3.122}/flow/ja.js +0 -0
  110. /package/dist/locales/{4.3.120 → 4.3.122}/flow/ko.js +0 -0
  111. /package/dist/locales/{4.3.120 → 4.3.122}/flow/nl.js +0 -0
  112. /package/dist/locales/{4.3.120 → 4.3.122}/flow/pl.js +0 -0
  113. /package/dist/locales/{4.3.120 → 4.3.122}/flow/pt-br.js +0 -0
  114. /package/dist/locales/{4.3.120 → 4.3.122}/flow/tr.js +0 -0
  115. /package/dist/locales/{4.3.120 → 4.3.122}/flow/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-B7ixYndz.js";
2
2
  import { t as o } from "./ExclamationCircleOutline-D3XbhOwM.js";
3
- import { w as s } from "./datetime-YTw6PkGP.js";
3
+ import { w as s } from "./datetime-BnKG6Hjm.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-YTw6PkGP.js";
1
+ import { X as e } from "./datetime-BnKG6Hjm.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-CsHb9Z8e.js";
2
+ import { t } from "./Input-BXZmvQ0p.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";
@@ -1,40 +1,40 @@
1
- import { X as e, d as t, n } from "./datetime-YTw6PkGP.js";
2
- import { t as r } from "./copyToClipboard-DSangJpP.js";
3
- import { C as i, O as a, g as o, x as s } from "./defaultLabels-CsRGNP7f.js";
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";
4
4
  import { r as c } from "./Button-VUB2WJ88.js";
5
- import { K as l, V as u, z as d } from "./orders-BWVwv3P0.js";
6
- import { L as f } from "./api-DG7ztpYi.js";
7
- import { t as p } from "./Heading-vOVPxhJF.js";
8
- import { t as m } from "./Grid-kuP6V0GW.js";
9
- import { a as h, o as g, t as _ } from "./to-event-card-props-Dn1eDOiJ.js";
10
- import { n as v } from "./imageUrl-xyMedKrE.js";
11
- import { t as y } from "./event-CW18bU9h.js";
12
- import { t as b } from "./venue-BBoZBuhu.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";
12
+ import { t as x } from "./venue-BBoZBuhu.js";
13
13
  import "svelte/internal/disclose-version";
14
- import * as x from "svelte/internal/client";
14
+ import * as S from "svelte/internal/client";
15
15
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ExportIcon.svelte
16
- 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>");
17
- function T(t, n) {
18
- x.push(n, !0);
19
- 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");
20
- var c = w();
16
+ var C = S.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>"), w = S.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), T = S.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
17
+ function E(t, n) {
18
+ S.push(n, !0);
19
+ let r = S.prop(n, "size", 3, "24"), i = S.prop(n, "color", 3, "currentColor"), a = S.prop(n, "class", 3, ""), o = e(), s = S.derived(() => n.weight ?? o?.weight ?? "regular");
20
+ var c = T();
21
21
  let l;
22
- var u = x.child(c), d = (e) => {
23
- var t = S();
24
- x.append(e, t);
25
- }, f = (e) => {
22
+ var u = S.child(c), d = (e) => {
26
23
  var t = C();
27
- x.next(2), x.append(e, t);
24
+ S.append(e, t);
25
+ }, f = (e) => {
26
+ var t = w();
27
+ S.next(2), S.append(e, t);
28
28
  };
29
- x.if(u, (e) => {
30
- x.get(s) === "fill" ? e(d) : e(f, -1);
31
- }), x.reset(c), x.template_effect(() => {
32
- 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() });
33
- }), x.append(t, c), x.pop();
29
+ S.if(u, (e) => {
30
+ S.get(s) === "fill" ? e(d) : e(f, -1);
31
+ }), S.reset(c), S.template_effect(() => {
32
+ S.set_class(c, 0, S.clsx(a())), S.set_attribute(c, "width", r()), S.set_attribute(c, "height", r()), l = S.set_style(c, "", l, { color: i() === "currentColor" ? void 0 : i() });
33
+ }), S.append(t, c), S.pop();
34
34
  }
35
35
  //#endregion
36
36
  //#region src/lib/api/transformers/address.ts
37
- function E(e) {
37
+ function D(e) {
38
38
  if (!e) return [];
39
39
  let t = e.split(",").map((e) => e.trim());
40
40
  if (t.length < 2) return [e];
@@ -45,17 +45,17 @@ function E(e) {
45
45
  }
46
46
  return [t[0], t.slice(1).join(", ")];
47
47
  }
48
- function D(e) {
48
+ function O(e) {
49
49
  return e ? `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e)}` : "";
50
50
  }
51
51
  //#endregion
52
52
  //#region src/lib/api/transformers/faq.ts
53
- var O = "FAQ", k = 40, A = /^q\s*[:.)-]\s*/i, j = /^a\s*[:.)-]\s*/i;
54
- function M(e) {
53
+ var k = "FAQ", A = 40, j = /^q\s*[:.)-]\s*/i, M = /^a\s*[:.)-]\s*/i;
54
+ function N(e) {
55
55
  if (Array.isArray(e)) return e.map((e) => ({
56
56
  question: String(e?.question ?? "").trim(),
57
57
  answer: String(e?.answer ?? "").trim()
58
- })).filter((e) => e.question || e.answer).slice(0, k);
58
+ })).filter((e) => e.question || e.answer).slice(0, A);
59
59
  if (typeof e != "string") return [];
60
60
  let t = e.trim();
61
61
  if (!t) return [];
@@ -63,33 +63,33 @@ function M(e) {
63
63
  if (n.length === 0) return [];
64
64
  let r = [], i = null;
65
65
  for (let e of n) {
66
- let t = A.test(e), n = j.test(e);
66
+ let t = j.test(e), n = M.test(e);
67
67
  if (t || !n && e.endsWith("?")) {
68
68
  i && r.push(i), i = {
69
- question: e.replace(A, "").trim(),
69
+ question: e.replace(j, "").trim(),
70
70
  answer: ""
71
71
  };
72
72
  continue;
73
73
  }
74
- let a = e.replace(j, "").trim();
74
+ let a = e.replace(M, "").trim();
75
75
  if (!i) {
76
76
  i = {
77
- question: O,
77
+ question: k,
78
78
  answer: a
79
79
  };
80
80
  continue;
81
81
  }
82
82
  i.answer = i.answer ? `${i.answer}\n${a}` : a;
83
83
  }
84
- return i && r.push(i), r.some((e) => e.question !== O) ? r.filter((e) => e.question || e.answer).slice(0, k) : [{
85
- question: O,
84
+ return i && r.push(i), r.some((e) => e.question !== k) ? r.filter((e) => e.question || e.answer).slice(0, A) : [{
85
+ question: k,
86
86
  answer: n.join("\n")
87
87
  }];
88
88
  }
89
89
  //#endregion
90
90
  //#region src/lib/api/transformers/series.ts
91
- function N(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) => {
91
+ 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) => {
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,
@@ -107,7 +107,7 @@ function N(e) {
107
107
  ...n ? { venueName: n } : {},
108
108
  ...r ? { venueAddress: r } : {}
109
109
  };
110
- }), c = e.occurrences?.[0], l = c?.startDateTime ? n(c.startDateTime, a) : "", u = M(e.venue?.faq), d = (e.performers || []).map((e, t) => ({
110
+ }), c = e.occurrences?.[0], l = c?.startDateTime ? n(c.startDateTime, a) : "", u = N(e.venue?.faq), d = (e.performers || []).map((e, t) => ({
111
111
  id: t + 1,
112
112
  displayName: e.displayName || [e.firstName, e.lastName].filter(Boolean).join(" "),
113
113
  profileImage: e.profileImage || void 0
@@ -136,7 +136,7 @@ function N(e) {
136
136
  tickets: [],
137
137
  faqs: u,
138
138
  disclaimer: e.venue?.disclaimer || void 0,
139
- ...b(e.venue),
139
+ ...x(e.venue),
140
140
  status: "on_sale",
141
141
  eventSeriesId: t,
142
142
  seriesOccurrences: s,
@@ -144,23 +144,23 @@ function N(e) {
144
144
  isRegistrationEvent: !1,
145
145
  totalTicketsRemaining: 0,
146
146
  totalTicketsCapacity: 0,
147
- venueAddressLines: E(f),
148
- googleMapsUrl: D(f)
147
+ venueAddressLines: D(f),
148
+ googleMapsUrl: O(f)
149
149
  };
150
150
  }
151
151
  //#endregion
152
152
  //#region src/lib/api/transformers/collection.ts
153
- function P(e) {
153
+ function F(e) {
154
154
  let t = (e.events || []).map((e) => ({
155
155
  id: e.id,
156
156
  name: e.title || "",
157
157
  slug: e.slug || "",
158
- image: v(e.image || "", { cdn: !0 }),
158
+ image: y(e.image || "", { cdn: !0 }),
159
159
  startDateTime: e.startDateTime || "",
160
160
  status: e.status || "on_sale",
161
161
  timezone: e.timeZone || e.timezone || e.venue?.timeZone || e.venue?.timezone || "",
162
162
  venueName: e.venue?.name || ""
163
- })), n = v(e.coverImage || "", { cdn: !0 });
163
+ })), n = y(e.coverImage || "", { cdn: !0 });
164
164
  return {
165
165
  id: e.id,
166
166
  title: e.collectionTitle || "",
@@ -195,7 +195,7 @@ function P(e) {
195
195
  }
196
196
  //#endregion
197
197
  //#region src/lib/public-calendar-flow/transform.ts
198
- function F(e) {
198
+ function I(e) {
199
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;
200
200
  if (n <= 0) return "sold_out";
201
201
  let a = s(i);
@@ -203,7 +203,7 @@ function F(e) {
203
203
  let l = s(r);
204
204
  return l && o(l, t) > 0 ? "coming_soon" : "on_sale";
205
205
  }
206
- function I(e, t, n = !1) {
206
+ function L(e, t, n = !1) {
207
207
  let r = (e || "").toLowerCase().replace(/\s+/g, "_");
208
208
  if (r === "cancelled" || r === "canceled") return "cancelled";
209
209
  if (r === "postponed") return "postponed";
@@ -217,8 +217,8 @@ function I(e, t, n = !1) {
217
217
  }
218
218
  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
219
  }
220
- function L(e) {
221
- let r = y(e), a = r.venue || {}, o = i(r.timeZone || r.timezone || a.timeZone || a.timezone), s = (e.availableTickets || []).map((e) => ({
220
+ 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) => ({
222
222
  id: e.id || e.ID,
223
223
  name: e.name || e.title || "",
224
224
  description: e.description || void 0,
@@ -228,14 +228,14 @@ function L(e) {
228
228
  quantityTotal: e.totalCapacity ?? e.total ?? e.sectionCapacity ?? e.quantity ?? 0,
229
229
  minPerOrder: e.minPerOrder ?? e.minQuantity ?? 1,
230
230
  maxPerOrder: e.maxPerOrder ?? e.maxQuantity ?? 10,
231
- status: F(e),
231
+ status: I(e),
232
232
  salesStartDate: e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart || void 0,
233
233
  salesEndDate: e.salesEnd || e.saleEnd || e.onSaleEnd || void 0,
234
234
  isDonation: e.type === 2 || e.ticketType === 2 || e.isDonation === !0,
235
- isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= f.HIDDEN,
235
+ isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= p.HIDDEN,
236
236
  ticketType: e.type || e.ticketType || void 0,
237
237
  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, p = I(r.status, s, d), m = e.image || e.imageUrl || e.image_url || "", h = m.startsWith("http") ? m : v(m, { cdn: !0 }), g = {
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
239
  id: a.id || a.ID || 0,
240
240
  name: a.name || a.googleLocationNameCache || "",
241
241
  address: a.address || a.googleLocationNameCache || "",
@@ -249,7 +249,7 @@ function L(e) {
249
249
  displayName: e.displayName || e.name || "",
250
250
  profileImage: e.avatar || e.profileImage || void 0,
251
251
  role: e.role || void 0
252
- })), x = r.faqs ? M(r.faqs) : M(a.faq), S = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
252
+ })), v = r.faqs ? N(r.faqs) : N(a.faq), S = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
253
253
  id: e.id ?? e.eventId ?? t + 1,
254
254
  slug: e.slug || "",
255
255
  startDateTime: e.startDateTime || e.startTime || "",
@@ -274,10 +274,10 @@ function L(e) {
274
274
  performers: _,
275
275
  tickets: s,
276
276
  ...Array.isArray(e.addOns) && e.addOns.length > 0 ? { addOns: e.addOns } : {},
277
- faqs: x,
277
+ faqs: v,
278
278
  disclaimer: r.disclaimer || a.disclaimer || void 0,
279
- ...b(a),
280
- status: p,
279
+ ...x(a),
280
+ status: f,
281
281
  salesStatus: r.salesStatus || void 0,
282
282
  ...d ? { hasPurchasableHiddenTickets: !0 } : {},
283
283
  eventSeriesId: r.eventSeriesId || void 0,
@@ -295,28 +295,28 @@ function L(e) {
295
295
  displayTicketsLeft: r.displayTicketsLeft ?? !0,
296
296
  summary: r.eventSummary || void 0,
297
297
  postSalesMessage: r.postSalesMessage || void 0,
298
- ...B(p, r),
298
+ ...V(f, r),
299
299
  collectionId: r.collectionId || void 0,
300
- venueAddressLines: E(a.address || a.googleLocationNameCache || ""),
301
- googleMapsUrl: D(a.address || a.googleLocationNameCache || "")
300
+ venueAddressLines: D(a.address || a.googleLocationNameCache || ""),
301
+ googleMapsUrl: O(a.address || a.googleLocationNameCache || "")
302
302
  };
303
303
  }
304
- function R(e) {
305
- return N(e);
306
- }
307
304
  function z(e) {
308
305
  return P(e);
309
306
  }
310
- function B(e, t) {
307
+ function B(e) {
308
+ return F(e);
309
+ }
310
+ function V(e, t) {
311
311
  let n = e === "cancelled" ? t.canceledReason : e === "postponed" ? t.postponedReason : void 0;
312
312
  return n?.trim() ? { stateMessage: n.trim() } : {};
313
313
  }
314
314
  //#endregion
315
315
  //#region src/lib/public-calendar-flow/shareEventLink.ts
316
- async function V(e, t) {
317
- return await H(e, t) ? "shared" : await r(e) ? "copied" : "failed";
318
- }
319
316
  async function H(e, t) {
317
+ return await U(e, t) ? "shared" : await r(e) ? "copied" : "failed";
318
+ }
319
+ async function U(e, t) {
320
320
  if (typeof navigator > "u" || typeof navigator.share != "function") return !1;
321
321
  try {
322
322
  return await navigator.share(t ? {
@@ -327,7 +327,7 @@ async function H(e, t) {
327
327
  return e?.name === "AbortError";
328
328
  }
329
329
  }
330
- function U(e, t, n) {
330
+ function W(e, t, n) {
331
331
  let r = encodeURIComponent(e), i = encodeURIComponent(n), a = encodeURIComponent(`${n} ${e}`);
332
332
  return {
333
333
  messages: `sms:&body=${a}`,
@@ -339,26 +339,26 @@ function U(e, t, n) {
339
339
  }
340
340
  //#endregion
341
341
  //#region src/lib/public-calendar-flow/shareCopyFeedback.svelte.ts
342
- function W({ copiedMs: e = 2500 } = {}) {
343
- let t = x.state("idle"), n = x.state(""), i;
342
+ function G({ copiedMs: e = 2500 } = {}) {
343
+ let t = S.state("idle"), n = S.state(""), i;
344
344
  async function a(e, t) {
345
- s(await V(e, t), e);
345
+ s(await H(e, t), e);
346
346
  }
347
347
  async function o(e) {
348
348
  s(await r(e) ? "copied" : "failed", e);
349
349
  }
350
350
  function s(r, a) {
351
- r === "copied" ? (x.set(n, ""), x.set(t, "copied"), clearTimeout(i), i = setTimeout(() => x.set(t, "idle"), e)) : r === "failed" && (clearTimeout(i), x.set(t, "failed"), x.set(n, a, !0));
351
+ r === "copied" ? (S.set(n, ""), S.set(t, "copied"), clearTimeout(i), i = setTimeout(() => S.set(t, "idle"), e)) : r === "failed" && (clearTimeout(i), S.set(t, "failed"), S.set(n, a, !0));
352
352
  }
353
353
  function c() {
354
354
  clearTimeout(i);
355
355
  }
356
356
  return {
357
357
  get copyState() {
358
- return x.get(t);
358
+ return S.get(t);
359
359
  },
360
360
  get copyFailedUrl() {
361
- return x.get(n);
361
+ return S.get(n);
362
362
  },
363
363
  share: a,
364
364
  copy: o,
@@ -367,19 +367,19 @@ function W({ copiedMs: e = 2500 } = {}) {
367
367
  }
368
368
  //#endregion
369
369
  //#region src/lib/api/recommendations.ts
370
- var G = /* @__PURE__ */ new Map();
371
- function K(e, t = "event_page", n) {
370
+ var K = /* @__PURE__ */ new Map();
371
+ function q(e, t = "event_page", n) {
372
372
  if (!e) return Promise.resolve([]);
373
- let r = `${d()}/events/${e}/recommendations?surface=${t}`, i = n || l() || "", a = `${r}|${i}`, o = G.get(a);
373
+ let r = `${d()}/events/${e}/recommendations?surface=${t}`, i = n || l() || "", a = `${r}|${i}`, o = K.get(a);
374
374
  if (o) return o;
375
375
  let s = u(r, { widgetKey: i || void 0 }).then((e) => e?.recommendations ?? [], () => []);
376
- G.set(a, s);
377
- let c = () => G.delete(a);
376
+ K.set(a, s);
377
+ let c = () => K.delete(a);
378
378
  return s.then(c, c), s;
379
379
  }
380
380
  //#endregion
381
381
  //#region src/lib/public-calendar-flow/recommendation-cards.ts
382
- function q(e) {
382
+ function J(e) {
383
383
  return e.filter((e) => !!e.startsAt).map((e) => ({
384
384
  eventID: e.eventId,
385
385
  name: e.title,
@@ -395,21 +395,21 @@ function q(e) {
395
395
  }
396
396
  //#endregion
397
397
  //#region src/lib/public-calendar-flow/RecommendationsRail.svelte
398
- var J = 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>"), Y = x.from_html("<div class=\"flex flex-col gap-2\"><!> <!></div>"), X = x.from_html("<section data-testid=\"recommendations-rail\"><div class=\"mb-4\"><!></div> <!></section>");
399
- function Z(e, t) {
400
- x.push(t, !0);
401
- let n = x.prop(t, "surface", 3, "event_page"), r = x.prop(t, "locale", 3, "en"), i = x.state(x.proxy([]));
402
- x.user_effect(() => {
398
+ 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
+ function Q(e, t) {
400
+ 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([]));
402
+ S.user_effect(() => {
403
403
  let e = t.eventId, r = !0;
404
- return K(e, n(), t.widgetKey).then((n) => {
405
- r && e === t.eventId && x.set(i, n, !0);
404
+ return q(e, n(), i()).then((n) => {
405
+ r && e === t.eventId && S.set(a, n, !0);
406
406
  }), () => {
407
407
  r = !1;
408
408
  };
409
409
  });
410
- let a = x.derived(() => h(q(x.get(i))));
411
- function o(e) {
412
- let n = s(e);
410
+ let o = S.derived(() => g(J(S.get(a))));
411
+ function s(e) {
412
+ let n = c(e);
413
413
  if (!n) return "";
414
414
  switch (n.rule) {
415
415
  case "performer": return t.labels.recommendationFromTonightsLineup;
@@ -420,68 +420,68 @@ function Z(e, t) {
420
420
  default: return "";
421
421
  }
422
422
  }
423
- function s(e) {
424
- return x.get(i).find((t) => t.eventId === e.eventID);
425
- }
426
423
  function c(e) {
427
- let n = s(e)?.url;
424
+ return S.get(a).find((t) => t.eventId === e.eventID);
425
+ }
426
+ function l(e) {
427
+ let n = c(e)?.url;
428
428
  if (n) {
429
429
  window.location.assign(n);
430
430
  return;
431
431
  }
432
432
  t.onselect?.(e);
433
433
  }
434
- var l = x.comment(), u = x.first_child(l), d = (e) => {
435
- var n = X(), i = x.child(n), s = x.child(i);
436
- p(s, {
434
+ var u = S.comment(), d = S.first_child(u), p = (e) => {
435
+ var n = Z(), i = S.child(n), a = S.child(i);
436
+ m(a, {
437
437
  size: "xl",
438
438
  weight: "semibold",
439
439
  children: (e, n) => {
440
- x.next();
441
- var r = x.text();
442
- x.template_effect(() => x.set_text(r, t.labels.recommendationsHeading)), x.append(e, r);
440
+ S.next();
441
+ var r = S.text();
442
+ S.template_effect(() => S.set_text(r, t.labels.recommendationsHeading)), S.append(e, r);
443
443
  },
444
444
  $$slots: { default: !0 }
445
- }), x.reset(i);
446
- var l = x.sibling(i, 2);
447
- m(l, {
445
+ }), S.reset(i);
446
+ var c = S.sibling(i, 2);
447
+ h(c, {
448
448
  cols: "auto",
449
449
  minWidth: "240px",
450
450
  gap: "6",
451
451
  children: (e, n) => {
452
- var i = x.comment(), s = x.first_child(i);
453
- x.each(s, 17, () => x.get(a), (e) => e.event.eventID, (e, n) => {
454
- let i = x.derived(() => {
455
- let { pillEvents: e, ...i } = _(x.get(n), t.labels, r());
452
+ var i = S.comment(), a = S.first_child(i);
453
+ S.each(a, 17, () => S.get(o), (e) => e.event.eventID, (e, n) => {
454
+ let i = S.derived(() => {
455
+ let { pillEvents: e, ...i } = v(S.get(n), t.labels, r());
456
456
  return {
457
457
  _pillEvents: e,
458
458
  card: i
459
459
  };
460
460
  });
461
- var a = Y(), s = x.child(a);
462
- g(s, x.spread_props(() => x.get(i).card, {
461
+ var a = X(), o = S.child(a);
462
+ _(o, S.spread_props(() => S.get(i).card, {
463
463
  layout: "vertical",
464
464
  density: "standard",
465
465
  get placeholderImage() {
466
466
  return t.placeholderImage;
467
467
  },
468
- onclick: () => c(x.get(n).event)
468
+ onclick: () => l(S.get(n).event)
469
469
  }));
470
- var l = x.sibling(s, 2), u = (e) => {
471
- var t = J(), r = x.child(t, !0);
472
- x.reset(t), x.template_effect((e) => x.set_text(r, e), [() => o(x.get(n).event)]), x.append(e, t);
473
- }, d = x.derived(() => o(x.get(n).event));
474
- x.if(l, (e) => {
475
- x.get(d) && e(u);
476
- }), x.reset(a), x.append(e, a);
477
- }), x.append(e, i);
470
+ var c = S.sibling(o, 2), u = (e) => {
471
+ var t = Y(), r = S.child(t, !0);
472
+ 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));
474
+ S.if(c, (e) => {
475
+ S.get(d) && e(u);
476
+ }), S.reset(a), S.append(e, a);
477
+ }), S.append(e, i);
478
478
  },
479
479
  $$slots: { default: !0 }
480
- }), x.reset(n), x.append(e, n);
480
+ }), S.reset(n), S.append(e, n);
481
481
  };
482
- x.if(u, (e) => {
483
- x.get(a).length > 0 && e(d);
484
- }), x.append(e, l), x.pop();
482
+ S.if(d, (e) => {
483
+ S.get(o).length > 0 && e(p);
484
+ }), S.append(e, u), S.pop();
485
485
  }
486
486
  //#endregion
487
- export { L as a, T as c, H as i, W as n, z as o, U as r, R as s, Z as t };
487
+ 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-YTw6PkGP.js";
2
- import { t as n } from "./WarningCircleIcon-BdbAYYi4.js";
3
- import { A as r, I as i, N as a, i as o, j as s, t as c } from "./defaultLabels-CsRGNP7f.js";
4
- import { U as l } from "./api-DG7ztpYi.js";
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";
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
@@ -1,6 +1,6 @@
1
- import { t as e } from "./Event-DUq4tYBE.js";
1
+ import { t as e } from "./Event-CmD84Ni8.js";
2
2
  import { g as t } from "./sizing-B7ixYndz.js";
3
- import { s as n } from "./RecommendationsRail-Dq9t0T02.js";
3
+ import { s as n } from "./RecommendationsRail-CrBSsbBD.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-CsRGNP7f.js";
2
+ import { G as n } from "./defaultLabels-BbNEEsF7.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