@getmicdrop/venue-calendar 4.3.9 → 4.3.11

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 (117) hide show
  1. package/dist/{ArrowLeftIcon-B6RmtBIh.js → ArrowLeftIcon-BYu_Qbkb.js} +1 -1
  2. package/dist/{Badge-DsuBHDo4.js → Badge-DCHGGod2.js} +8 -9
  3. package/dist/{BlockPlaceholder-BvArmbbO.js → BlockPlaceholder-BoPMt_9Z.js} +2 -2
  4. package/dist/{Button-CxQO7vwF.js → Button-vmWb6wKc.js} +52 -23
  5. package/dist/{Calendar-Dei3Ahdk.js → Calendar-D11ctjrD.js} +286 -260
  6. package/dist/{CalendarFoundryView-Df10CTZS.js → CalendarFoundryView-DKhpjxnV.js} +4254 -4257
  7. package/dist/{CalendarIcon-DJh5V_U9.js → CalendarIcon-C8-UVSje.js} +1 -1
  8. package/dist/CartView-IqOekmQg.js +2245 -0
  9. package/dist/{Checkout-CZGmzTDh.js → Checkout-ByQsDGg3.js} +339 -317
  10. package/dist/Checkout-C0lQ0AwV.js +1846 -0
  11. package/dist/{CheckoutTimer-BubF7ziC.js → CheckoutTimer-B0E9KnHc.js} +3 -3
  12. package/dist/{ChevronDownIcon-MTzda9yz.js → ChevronDownIcon-C1uJ2yvz.js} +1 -1
  13. package/dist/{ClockIcon-Dit8R1GZ.js → ClockIcon-Dk9q65sX.js} +1 -1
  14. package/dist/{CloseIcon-XqvbBmiA.js → CloseIcon-CyR73vpD.js} +1 -1
  15. package/dist/{CollectionView-B_rrXaQH.js → CollectionView-B-CNyf9Z.js} +8 -8
  16. package/dist/{CropImage-mVbYhD9Y.js → CropImage-4WcoXkHt.js} +163 -153
  17. package/dist/{Event-WtVZMQfA.js → Event-B4x0sGkc.js} +1002 -730
  18. package/dist/{EventPage-B14U0-Hm.js → EventPage--xwhM503.js} +244 -237
  19. package/dist/{Heading-PKl9dm72.js → Heading-Br1Yqnvg.js} +1 -1
  20. package/dist/{Image-BWo4QBld.js → Image-M5RaWbKU.js} +1 -1
  21. package/dist/{Input-Bl1wqeUH.js → Input-Bk8lP6TX.js} +53 -53
  22. package/dist/{MailIcon-DQTusrr4.js → MailIcon-Ic2SruY-.js} +1 -1
  23. package/dist/{Modal-CDIhIlu-.js → Modal-CLeZUJ_i.js} +2 -2
  24. package/dist/{ModalFooter-DwkZn9ls.js → ModalFooter-CSoG_uic.js} +47 -48
  25. package/dist/{ModalHeader-BSsyLaXY.js → ModalHeader-DpKxDJT_.js} +2 -2
  26. package/dist/{PasswordInput-CnjRiZJ7.js → PasswordInput-BHj_lokg.js} +2 -2
  27. package/dist/{shareCopyFeedback.svelte-oxKGmiOe.js → RecommendationsRail-8AVZ0aLE.js} +204 -89
  28. package/dist/{ScarcityBadge-B4e3Z_Oz.js → ScarcityBadge-DakRfDx4.js} +11 -11
  29. package/dist/{SeriesPage-DszQMCy9.js → SeriesPage-BaOeDNb6.js} +5 -5
  30. package/dist/{Spinner-BRgBJYJn.js → Spinner-a1KCKWxZ.js} +2 -2
  31. package/dist/{Success-BYVtvNeO.js → Success-BtUgc4H7.js} +277 -244
  32. package/dist/{TagIcon-BAZxGlbC.js → TagIcon-BiYfs6T7.js} +1 -1
  33. package/dist/{ViewTicketsEmbed-BHDAkYuv.js → ViewTicketsEmbed-Lxg7n02-.js} +30 -30
  34. package/dist/{WarningCircleIcon-SBK0lpqR.js → WarningCircleIcon-AuYbQdPU.js} +1 -1
  35. package/dist/{WarningTriIcon-Bj3xpe3S.js → WarningTriIcon-BzI-tSDG.js} +1 -1
  36. package/dist/{__SKIP_PATHS__-B3-kZeYN.js → __SKIP_PATHS__-B3OPLTzA.js} +1 -1
  37. package/dist/api/api.cjs +1 -1
  38. package/dist/api/api.mjs +1 -1
  39. package/dist/{api-CTiZ6rza.js → api-C1M2t6HU.js} +5 -5
  40. package/dist/{browser-CziWLQ0z.js → browser-DrfMvEfn.js} +7 -7
  41. package/dist/{labels-IV_I9087.js → constants-YG4UeBdR.js} +17 -4
  42. package/dist/{copyToClipboard-C5D-wCS_.js → copyToClipboard-3SejVveg.js} +1 -1
  43. package/dist/{de-K0-gFyNH.js → de-CzupmMIa.js} +14 -1
  44. package/dist/{defaultLabels-CpurXn7c.js → defaultLabels-CXCsTwix.js} +16 -16
  45. package/dist/{es-DsZSuXW4.js → es-B-vQxM9Z.js} +14 -1
  46. package/dist/{event-d06xVg2P.js → event-DAjJ01GM.js} +1 -1
  47. package/dist/{event-transform-BjPTqPq1.js → event-transform-DNqGTQhp.js} +47 -46
  48. package/dist/{eventStatusStream-BhQUTdOZ.js → eventStatusStream-CLLN-Rvf.js} +2 -2
  49. package/dist/{fr-BmHldIKE.js → fr-B2g-kG7i.js} +14 -1
  50. package/dist/{href-DMLDnIDe.js → href-DuxMJt4c.js} +3 -3
  51. package/dist/{i18n-CASpRf85.js → i18n-Ct9Bo-Vp.js} +158 -108
  52. package/dist/{i18n--3wPB7-n.js → i18n-KdVjJUV5.js} +2 -2
  53. package/dist/{id-CBHA4B6C.js → id-Dgu5-FC6.js} +14 -1
  54. package/dist/{imageOptimizer-D8g9XVns.js → imageOptimizer-Ba8P7ZEJ.js} +12 -13
  55. package/dist/{it-CK6ravjO.js → it-C580sMYp.js} +14 -1
  56. package/dist/{ja-COO0Ibrr.js → ja-DLki4zXU.js} +14 -1
  57. package/dist/{ko-D8YqNrZs.js → ko-BUcfb1Gi.js} +14 -1
  58. package/dist/locales/4.3.11/flow/de.js +1 -0
  59. package/dist/locales/4.3.11/flow/es.js +1 -0
  60. package/dist/locales/4.3.11/flow/fr.js +1 -0
  61. package/dist/locales/4.3.11/flow/id.js +1 -0
  62. package/dist/locales/4.3.11/flow/it.js +1 -0
  63. package/dist/locales/4.3.11/flow/ja.js +1 -0
  64. package/dist/locales/4.3.11/flow/ko.js +1 -0
  65. package/dist/locales/4.3.11/flow/nl.js +1 -0
  66. package/dist/locales/4.3.11/flow/pl.js +1 -0
  67. package/dist/locales/4.3.11/flow/pt-br.js +1 -0
  68. package/dist/locales/4.3.11/flow/tr.js +1 -0
  69. package/dist/locales/4.3.11/flow/zh.js +1 -0
  70. package/dist/{nl-Bk3DPD7e.js → nl-CivAQA0D.js} +14 -1
  71. package/dist/order-totals-DyVkHVqG.js +151 -0
  72. package/dist/{orders-BK47iONR.js → orders-rH0WZYOW.js} +18 -18
  73. package/dist/{phoneUtils-YjT5IJ25.js → phoneUtils-BFrVEwkQ.js} +1 -1
  74. package/dist/{pixels-DjK-0XYz.js → pixels-mdd6C3Bk.js} +3 -3
  75. package/dist/{pl-CPmO94ic.js → pl-C5VwFH2B.js} +14 -1
  76. package/dist/{promo-DkM9sLly.js → promo-CTRn_F4t.js} +1 -1
  77. package/dist/{pt-br-Ch6NFhW6.js → pt-br-B0w9dhVB.js} +14 -1
  78. package/dist/{constants-rFRS1lF-.js → scarcity-Ccj5RlrR.js} +2 -5
  79. package/dist/{serverTotals-CvJBYArq.js → serverTotals-Dk3z9sIA.js} +1 -1
  80. package/dist/{showcase-state-options-x_9iSBsd.js → showcase-state-options-8-egiV5-.js} +1 -1
  81. package/dist/{to-event-card-props-9y7sVBi_.js → to-event-card-props-a4k6D100.js} +9 -9
  82. package/dist/{tr-CXnalLJT.js → tr-LGkP5gpA.js} +14 -1
  83. package/dist/{utils-D80jLqKH.js → utils-BseYYrbn.js} +82 -78
  84. package/dist/venue-calendar.css +1 -1
  85. package/dist/venue-calendar.es.js +89 -91
  86. package/dist/venue-calendar.iife.js +48 -49
  87. package/dist/venue-calendar.umd.js +43 -44
  88. package/dist/{zh-CM2J1Py4.js → zh-D2ZAdq3T.js} +14 -1
  89. package/package.json +2 -2
  90. package/dist/CartView-DPzvlZwV.js +0 -2245
  91. package/dist/Checkout-CaamQTXi.js +0 -1846
  92. package/dist/keyboard-fiZFqeNA.js +0 -29
  93. package/dist/locales/4.3.9/flow/de.js +0 -1
  94. package/dist/locales/4.3.9/flow/es.js +0 -1
  95. package/dist/locales/4.3.9/flow/fr.js +0 -1
  96. package/dist/locales/4.3.9/flow/id.js +0 -1
  97. package/dist/locales/4.3.9/flow/it.js +0 -1
  98. package/dist/locales/4.3.9/flow/ja.js +0 -1
  99. package/dist/locales/4.3.9/flow/ko.js +0 -1
  100. package/dist/locales/4.3.9/flow/nl.js +0 -1
  101. package/dist/locales/4.3.9/flow/pl.js +0 -1
  102. package/dist/locales/4.3.9/flow/pt-br.js +0 -1
  103. package/dist/locales/4.3.9/flow/tr.js +0 -1
  104. package/dist/locales/4.3.9/flow/zh.js +0 -1
  105. package/dist/order-totals-Buq9HeZa.js +0 -131
  106. /package/dist/locales/{4.3.9 → 4.3.11}/main/de.js +0 -0
  107. /package/dist/locales/{4.3.9 → 4.3.11}/main/es.js +0 -0
  108. /package/dist/locales/{4.3.9 → 4.3.11}/main/fr.js +0 -0
  109. /package/dist/locales/{4.3.9 → 4.3.11}/main/id.js +0 -0
  110. /package/dist/locales/{4.3.9 → 4.3.11}/main/it.js +0 -0
  111. /package/dist/locales/{4.3.9 → 4.3.11}/main/ja.js +0 -0
  112. /package/dist/locales/{4.3.9 → 4.3.11}/main/ko.js +0 -0
  113. /package/dist/locales/{4.3.9 → 4.3.11}/main/nl.js +0 -0
  114. /package/dist/locales/{4.3.9 → 4.3.11}/main/pl.js +0 -0
  115. /package/dist/locales/{4.3.9 → 4.3.11}/main/pt-br.js +0 -0
  116. /package/dist/locales/{4.3.9 → 4.3.11}/main/tr.js +0 -0
  117. /package/dist/locales/{4.3.9 → 4.3.11}/main/zh.js +0 -0
@@ -1,33 +1,36 @@
1
- import { J as e, a as t, m as n } from "./constants-rFRS1lF-.js";
2
- import { t as r } from "./copyToClipboard-C5D-wCS_.js";
3
- import { D as i, b as a, h as o, x as s } from "./defaultLabels-CpurXn7c.js";
4
- import { r as c, t as l } from "./event-d06xVg2P.js";
5
- import { t as u } from "./venue-CBos8YTa.js";
1
+ import { i as e, p as t, q as n } from "./scarcity-Ccj5RlrR.js";
2
+ import { t as r } from "./copyToClipboard-3SejVveg.js";
3
+ import { D as i, b as a, h as o, x as s } from "./defaultLabels-CXCsTwix.js";
4
+ import { I as c, R as l } from "./orders-rH0WZYOW.js";
5
+ import { c as u, i as d, s as f, t as p } from "./to-event-card-props-a4k6D100.js";
6
+ import { t as m } from "./Heading-Br1Yqnvg.js";
7
+ import { r as h, t as g } from "./event-DAjJ01GM.js";
8
+ import { t as _ } from "./venue-CBos8YTa.js";
6
9
  import "svelte/internal/disclose-version";
7
- import * as d from "svelte/internal/client";
10
+ import * as v from "svelte/internal/client";
8
11
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ExportIcon.svelte
9
- var f = d.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>"), p = d.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), m = d.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
10
- function h(t, n) {
11
- d.push(n, !0);
12
- let r = d.prop(n, "size", 3, "24"), i = d.prop(n, "color", 3, "currentColor"), a = d.prop(n, "class", 3, ""), o = e(), s = d.derived(() => n.weight ?? o?.weight ?? "regular");
13
- var c = m();
12
+ var y = v.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>"), b = v.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), x = v.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
13
+ function S(e, t) {
14
+ v.push(t, !0);
15
+ let r = v.prop(t, "size", 3, "24"), i = v.prop(t, "color", 3, "currentColor"), a = v.prop(t, "class", 3, ""), o = n(), s = v.derived(() => t.weight ?? o?.weight ?? "regular");
16
+ var c = x();
14
17
  let l;
15
- var u = d.child(c), h = (e) => {
16
- var t = f();
17
- d.append(e, t);
18
- }, g = (e) => {
19
- var t = p();
20
- d.next(2), d.append(e, t);
18
+ var u = v.child(c), d = (e) => {
19
+ var t = y();
20
+ v.append(e, t);
21
+ }, f = (e) => {
22
+ var t = b();
23
+ v.next(2), v.append(e, t);
21
24
  };
22
- d.if(u, (e) => {
23
- d.get(s) === "fill" ? e(h) : e(g, -1);
24
- }), d.reset(c), d.template_effect(() => {
25
- d.set_class(c, 0, d.clsx(a())), d.set_attribute(c, "width", r()), d.set_attribute(c, "height", r()), l = d.set_style(c, "", l, { color: i() === "currentColor" ? void 0 : i() });
26
- }), d.append(t, c), d.pop();
25
+ v.if(u, (e) => {
26
+ v.get(s) === "fill" ? e(d) : e(f, -1);
27
+ }), v.reset(c), v.template_effect(() => {
28
+ v.set_class(c, 0, v.clsx(a())), v.set_attribute(c, "width", r()), v.set_attribute(c, "height", r()), l = v.set_style(c, "", l, { color: i() === "currentColor" ? void 0 : i() });
29
+ }), v.append(e, c), v.pop();
27
30
  }
28
31
  //#endregion
29
32
  //#region src/lib/api/transformers/address.ts
30
- function g(e) {
33
+ function C(e) {
31
34
  if (!e) return [];
32
35
  let t = e.split(",").map((e) => e.trim());
33
36
  if (t.length < 2) return [e];
@@ -38,17 +41,17 @@ function g(e) {
38
41
  }
39
42
  return [t[0], t.slice(1).join(", ")];
40
43
  }
41
- function _(e) {
44
+ function w(e) {
42
45
  return e ? `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e)}` : "";
43
46
  }
44
47
  //#endregion
45
48
  //#region src/lib/api/transformers/faq.ts
46
- var v = "FAQ", y = 40, b = /^q\s*[:.)-]\s*/i, x = /^a\s*[:.)-]\s*/i;
47
- function S(e) {
49
+ var T = "FAQ", E = 40, D = /^q\s*[:.)-]\s*/i, O = /^a\s*[:.)-]\s*/i;
50
+ function k(e) {
48
51
  if (Array.isArray(e)) return e.map((e) => ({
49
52
  question: String(e?.question ?? "").trim(),
50
53
  answer: String(e?.answer ?? "").trim()
51
- })).filter((e) => e.question || e.answer).slice(0, y);
54
+ })).filter((e) => e.question || e.answer).slice(0, E);
52
55
  if (typeof e != "string") return [];
53
56
  let t = e.trim();
54
57
  if (!t) return [];
@@ -56,33 +59,33 @@ function S(e) {
56
59
  if (n.length === 0) return [];
57
60
  let r = [], i = null;
58
61
  for (let e of n) {
59
- let t = b.test(e), n = x.test(e);
62
+ let t = D.test(e), n = O.test(e);
60
63
  if (t || !n && e.endsWith("?")) {
61
64
  i && r.push(i), i = {
62
- question: e.replace(b, "").trim(),
65
+ question: e.replace(D, "").trim(),
63
66
  answer: ""
64
67
  };
65
68
  continue;
66
69
  }
67
- let a = e.replace(x, "").trim();
70
+ let a = e.replace(O, "").trim();
68
71
  if (!i) {
69
72
  i = {
70
- question: v,
73
+ question: T,
71
74
  answer: a
72
75
  };
73
76
  continue;
74
77
  }
75
78
  i.answer = i.answer ? `${i.answer}\n${a}` : a;
76
79
  }
77
- return i && r.push(i), r.some((e) => e.question !== v) ? r.filter((e) => e.question || e.answer).slice(0, y) : [{
78
- question: v,
80
+ return i && r.push(i), r.some((e) => e.question !== T) ? r.filter((e) => e.question || e.answer).slice(0, E) : [{
81
+ question: T,
79
82
  answer: n.join("\n")
80
83
  }];
81
84
  }
82
85
  //#endregion
83
86
  //#region src/lib/api/transformers/series.ts
84
- function C(e) {
85
- let n = e, r = s(e.timeZone || n.timezone || n.time_zone || "UTC"), i = c(e.image || "", { cdn: !0 }), a = (e.occurrences || []).map((e) => {
87
+ function A(t) {
88
+ let n = t, r = s(t.timeZone || n.timezone || n.time_zone || "UTC"), i = h(t.image || "", { cdn: !0 }), a = (t.occurrences || []).map((e) => {
86
89
  let t = e.venue, n = t ? [t.name, t.stageName].filter(Boolean).join(" — ") : "", r = t ? t.googleLocationNameCache || [
87
90
  t.address,
88
91
  t.city,
@@ -99,58 +102,58 @@ function C(e) {
99
102
  ...n ? { venueName: n } : {},
100
103
  ...r ? { venueAddress: r } : {}
101
104
  };
102
- }), o = e.occurrences?.[0], l = o?.startDateTime ? t(o.startDateTime, r) : "", d = S(e.venue?.faq), f = (e.performers || []).map((e, t) => ({
105
+ }), o = t.occurrences?.[0], c = o?.startDateTime ? e(o.startDateTime, r) : "", l = k(t.venue?.faq), u = (t.performers || []).map((e, t) => ({
103
106
  id: t + 1,
104
107
  displayName: e.displayName || [e.firstName, e.lastName].filter(Boolean).join(" "),
105
108
  profileImage: e.profileImage || void 0
106
- })), p = e.venue?.location || e.venue?.googleLocationNameCache || "";
109
+ })), d = t.venue?.location || t.venue?.googleLocationNameCache || "";
107
110
  return {
108
- id: e.id,
109
- title: e.title || "",
111
+ id: t.id,
112
+ title: t.title || "",
110
113
  slug: "",
111
- description: e.description || e.eventSummary || "",
112
- date: l,
114
+ description: t.description || t.eventSummary || "",
115
+ date: c,
113
116
  startDateTime: o?.startDateTime || "",
114
117
  endDateTime: o?.endDateTime || "",
115
118
  doorsOpenTime: "",
116
119
  timezone: r,
117
120
  imageUrl: i,
118
121
  venue: {
119
- id: e.venue?.id || 0,
120
- name: e.venue?.name || "",
121
- address: p,
122
+ id: t.venue?.id || 0,
123
+ name: t.venue?.name || "",
124
+ address: d,
122
125
  timezone: r,
123
126
  serviceFeePercentage: 0,
124
127
  serviceFeeCents: 0,
125
128
  taxPercentage: 0
126
129
  },
127
- performers: f,
130
+ performers: u,
128
131
  tickets: [],
129
- faqs: d,
130
- disclaimer: e.venue?.disclaimer || void 0,
131
- ...u(e.venue),
132
+ faqs: l,
133
+ disclaimer: t.venue?.disclaimer || void 0,
134
+ ..._(t.venue),
132
135
  status: "on_sale",
133
- eventSeriesId: e.id,
136
+ eventSeriesId: t.id,
134
137
  seriesOccurrences: a,
135
138
  isPasswordProtected: !1,
136
139
  isRegistrationEvent: !1,
137
140
  totalTicketsRemaining: 0,
138
141
  totalTicketsCapacity: 0,
139
- venueAddressLines: g(p),
140
- googleMapsUrl: _(p)
142
+ venueAddressLines: C(d),
143
+ googleMapsUrl: w(d)
141
144
  };
142
145
  }
143
146
  //#endregion
144
147
  //#region src/lib/api/transformers/collection.ts
145
- function w(e) {
148
+ function j(e) {
146
149
  let t = (e.events || []).map((e) => ({
147
150
  id: e.id,
148
151
  name: e.title || "",
149
152
  slug: e.slug || "",
150
- image: c(e.image || "", { cdn: !0 }),
153
+ image: h(e.image || "", { cdn: !0 }),
151
154
  startDateTime: e.startDateTime || "",
152
155
  status: e.status || "on_sale"
153
- })), n = c(e.coverImage || "", { cdn: !0 });
156
+ })), n = h(e.coverImage || "", { cdn: !0 });
154
157
  return {
155
158
  id: e.id,
156
159
  title: e.collectionTitle || "",
@@ -185,7 +188,7 @@ function w(e) {
185
188
  }
186
189
  //#endregion
187
190
  //#region src/lib/public-calendar-flow/transform.ts
188
- function T(e) {
191
+ function M(e) {
189
192
  let t = i(), n = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity ?? 0, r = e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart, s = e.salesEnd || e.saleEnd || e.onSaleEnd;
190
193
  if (n <= 0) return "sold_out";
191
194
  let c = a(s);
@@ -193,7 +196,7 @@ function T(e) {
193
196
  let l = a(r);
194
197
  return l && o(l, t) > 0 ? "coming_soon" : "on_sale";
195
198
  }
196
- function E(e, t, n = !1) {
199
+ function N(e, t, n = !1) {
197
200
  let r = (e || "").toLowerCase().replace(/\s+/g, "_");
198
201
  if (r === "cancelled" || r === "canceled") return "cancelled";
199
202
  if (r === "postponed") return "postponed";
@@ -207,25 +210,25 @@ function E(e, t, n = !1) {
207
210
  }
208
211
  return r === "sold_out" || r === "soldout" ? "sold_out" : r === "coming_soon" || r === "comingsoon" ? "coming_soon" : r === "sales_ended" || r === "salesended" ? "sales_ended" : "on_sale";
209
212
  }
210
- function D(e) {
211
- let r = l(e), i = r.venue || {}, a = s(r.timeZone || r.timezone || i.timeZone || i.timezone || "UTC"), o = (e.availableTickets || []).map((e) => ({
213
+ function P(n) {
214
+ let r = g(n), i = r.venue || {}, a = s(r.timeZone || r.timezone || i.timeZone || i.timezone || "UTC"), o = (n.availableTickets || []).map((e) => ({
212
215
  id: e.id || e.ID,
213
216
  name: e.name || e.title || "",
214
217
  description: e.description || void 0,
215
- price: n(e.price),
218
+ price: t(e.price),
216
219
  fee: e.fee == null ? 0 : e.fee,
217
220
  quantityAvailable: e.remainingCapacity ?? e.quantityRemaining ?? e.quantity ?? 0,
218
221
  quantityTotal: e.totalCapacity ?? e.quantity ?? 0,
219
222
  minPerOrder: e.minPerOrder ?? e.minQuantity ?? 1,
220
223
  maxPerOrder: e.maxPerOrder ?? e.maxQuantity ?? 10,
221
- status: T(e),
224
+ status: M(e),
222
225
  salesStartDate: e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart || void 0,
223
226
  salesEndDate: e.salesEnd || e.saleEnd || e.onSaleEnd || void 0,
224
227
  isDonation: e.type === 2 || e.ticketType === 2 || e.isDonation === !0,
225
228
  isHidden: e.visibility === 2 || e.isHidden === !0,
226
229
  ticketType: e.type || e.ticketType || void 0,
227
230
  sectionName: e.sectionName || e.section || void 0
228
- })), d = o.filter((e) => !e.isHidden && !e.isDonation), f = d.reduce((e, t) => e + t.quantityAvailable, 0), p = d.reduce((e, t) => e + t.quantityTotal, 0), m = e.hasPurchasableHiddenTickets === !0, h = E(r.status, o, m), v = e.image || e.imageUrl || e.image_url || "", y = v.startsWith("http") ? v : c(v, { cdn: !0 }), b = {
231
+ })), c = o.filter((e) => !e.isHidden && !e.isDonation), l = c.reduce((e, t) => e + t.quantityAvailable, 0), u = c.reduce((e, t) => e + t.quantityTotal, 0), d = n.hasPurchasableHiddenTickets === !0, f = N(r.status, o, d), p = n.image || n.imageUrl || n.image_url || "", m = p.startsWith("http") ? p : h(p, { cdn: !0 }), v = {
229
232
  id: i.id || i.ID || 0,
230
233
  name: i.name || i.googleLocationNameCache || "",
231
234
  address: i.address || i.googleLocationNameCache || "",
@@ -234,12 +237,12 @@ function D(e) {
234
237
  serviceFeeCents: i.serviceFeeCents == null ? 0 : i.serviceFeeCents,
235
238
  taxPercentage: i.taxPercentage ?? i.tax ?? 0,
236
239
  contactEmail: i.contactEmail || i.email || void 0
237
- }, x = (r.performers || []).map((e) => ({
240
+ }, y = (r.performers || []).map((e) => ({
238
241
  id: e.id || e.ID,
239
242
  displayName: e.displayName || e.name || "",
240
243
  profileImage: e.avatar || e.profileImage || void 0,
241
244
  role: e.role || void 0
242
- })), C = r.faqs ? S(r.faqs) : S(i.faq), w = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
245
+ })), b = r.faqs ? k(r.faqs) : k(i.faq), x = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
243
246
  id: e.id ?? e.eventId ?? t + 1,
244
247
  slug: e.slug || "",
245
248
  startDateTime: e.startDateTime || e.startTime || "",
@@ -247,33 +250,34 @@ function D(e) {
247
250
  status: e.ctaState?.reason === "sold_out" ? "sold_out" : "on_sale",
248
251
  ctaText: e.ctaState?.text || "Get tickets",
249
252
  ctaDisabled: e.ctaState?.disabled || !1
250
- })), D = r.startDateTime ? t(r.startDateTime, a) : "";
253
+ })), S = r.startDateTime ? e(r.startDateTime, a) : "";
251
254
  return {
252
255
  id: r.id,
253
256
  title: r.title || "",
254
257
  slug: r.slug || "",
255
258
  description: r.description || r.eventSummary || "",
256
- date: D,
259
+ date: S,
257
260
  startDateTime: r.startDateTime || "",
258
261
  endDateTime: r.endDateTime || "",
259
262
  doorsOpenTime: r.doorsOpenTime || "",
260
263
  timezone: a,
261
- imageUrl: y,
262
- venue: b,
263
- performers: x,
264
+ imageUrl: m,
265
+ venue: v,
266
+ performers: y,
264
267
  tickets: o,
265
- faqs: C,
268
+ ...Array.isArray(n.addOns) && n.addOns.length > 0 ? { addOns: n.addOns } : {},
269
+ faqs: b,
266
270
  disclaimer: r.disclaimer || i.disclaimer || void 0,
267
- ...u(i),
268
- status: h,
271
+ ..._(i),
272
+ status: f,
269
273
  salesStatus: r.salesStatus || void 0,
270
- ...m ? { hasPurchasableHiddenTickets: !0 } : {},
274
+ ...d ? { hasPurchasableHiddenTickets: !0 } : {},
271
275
  eventSeriesId: r.eventSeriesId || void 0,
272
- seriesOccurrences: w.length ? w : void 0,
276
+ seriesOccurrences: x.length ? x : void 0,
273
277
  isPasswordProtected: r.hasPassword === !0 || !!r.password,
274
278
  isRegistrationEvent: r.ticketType === 1 || r.eventTicketingType === 1,
275
- totalTicketsRemaining: f,
276
- totalTicketsCapacity: p,
279
+ totalTicketsRemaining: l,
280
+ totalTicketsCapacity: u,
277
281
  stageName: r.stage?.name || r.stageName || void 0,
278
282
  ageRestriction: r.ageRestriction || void 0,
279
283
  displayAgeRestriction: r.displayAgeRestriction ?? !1,
@@ -284,19 +288,19 @@ function D(e) {
284
288
  summary: r.eventSummary || void 0,
285
289
  postSalesMessage: r.postSalesMessage || void 0,
286
290
  collectionId: r.collectionId || void 0,
287
- venueAddressLines: g(i.address || i.googleLocationNameCache || ""),
288
- googleMapsUrl: _(i.address || i.googleLocationNameCache || "")
291
+ venueAddressLines: C(i.address || i.googleLocationNameCache || ""),
292
+ googleMapsUrl: w(i.address || i.googleLocationNameCache || "")
289
293
  };
290
294
  }
291
- function O(e) {
292
- return C(e);
295
+ function F(e) {
296
+ return A(e);
293
297
  }
294
- function k(e) {
295
- return w(e);
298
+ function I(e) {
299
+ return j(e);
296
300
  }
297
301
  //#endregion
298
302
  //#region src/lib/public-calendar-flow/shareEventLink.ts
299
- async function A(e) {
303
+ async function L(e) {
300
304
  if (typeof navigator < "u" && typeof navigator.share == "function") try {
301
305
  return await navigator.share({ url: e }), "shared";
302
306
  } catch (e) {
@@ -306,25 +310,136 @@ async function A(e) {
306
310
  }
307
311
  //#endregion
308
312
  //#region src/lib/public-calendar-flow/shareCopyFeedback.svelte.ts
309
- function j() {
310
- let e = d.state("idle"), t = d.state(""), n;
313
+ function R() {
314
+ let e = v.state("idle"), t = v.state(""), n;
311
315
  async function r(r) {
312
- let i = await A(r);
313
- i === "copied" ? (d.set(t, ""), d.set(e, "copied"), clearTimeout(n), n = setTimeout(() => d.set(e, "idle"), 2500)) : i === "failed" && (clearTimeout(n), d.set(e, "failed"), d.set(t, r, !0));
316
+ let i = await L(r);
317
+ i === "copied" ? (v.set(t, ""), v.set(e, "copied"), clearTimeout(n), n = setTimeout(() => v.set(e, "idle"), 2500)) : i === "failed" && (clearTimeout(n), v.set(e, "failed"), v.set(t, r, !0));
314
318
  }
315
319
  function i() {
316
320
  clearTimeout(n);
317
321
  }
318
322
  return {
319
323
  get copyState() {
320
- return d.get(e);
324
+ return v.get(e);
321
325
  },
322
326
  get copyFailedUrl() {
323
- return d.get(t);
327
+ return v.get(t);
324
328
  },
325
329
  share: r,
326
330
  dispose: i
327
331
  };
328
332
  }
329
333
  //#endregion
330
- export { h as a, O as i, D as n, k as r, j as t };
334
+ //#region src/lib/api/recommendations.ts
335
+ async function z(e, t = "event_page", n) {
336
+ return e ? (await l(`${c()}/events/${e}/recommendations?surface=${t}`, { widgetKey: n }))?.recommendations ?? [] : [];
337
+ }
338
+ //#endregion
339
+ //#region src/lib/public-calendar-flow/recommendation-cards.ts
340
+ function B(t) {
341
+ return t.filter((e) => !!e.startsAt).map((t) => ({
342
+ eventID: t.eventId,
343
+ name: t.title,
344
+ date: e(t.startsAt, t.timeZone),
345
+ startDateTime: t.startsAt,
346
+ imageUrl: t.image ?? "",
347
+ status: "on_sale",
348
+ timeZone: t.timeZone,
349
+ venueName: t.venueName,
350
+ ticketsRemaining: void 0,
351
+ ticketsTotal: void 0
352
+ }));
353
+ }
354
+ //#endregion
355
+ //#region src/lib/public-calendar-flow/RecommendationsRail.svelte
356
+ var V = v.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>"), H = v.from_html("<div class=\"flex flex-col gap-2\"><!> <!></div>"), U = v.from_html("<section data-testid=\"recommendations-rail\"><div class=\"mb-4\"><!></div> <!></section>");
357
+ function W(e, t) {
358
+ v.push(t, !0);
359
+ let n = v.prop(t, "surface", 3, "event_page"), r = v.prop(t, "locale", 3, "en"), i = v.state(v.proxy([]));
360
+ v.user_effect(() => {
361
+ let e = t.eventId, r = !0;
362
+ return z(e, n(), t.widgetKey).then((n) => {
363
+ r && e === t.eventId && v.set(i, n, !0);
364
+ }), () => {
365
+ r = !1;
366
+ };
367
+ });
368
+ let a = v.derived(() => d(B(v.get(i))));
369
+ function o(e) {
370
+ let n = s(e);
371
+ if (!n) return "";
372
+ switch (n.rule) {
373
+ case "performer": return t.labels.recommendationFromTonightsLineup;
374
+ case "genre": return t.labels.recommendationSimilarShow;
375
+ case "weekday": return t.labels.recommendationSameNight;
376
+ case "similar": return t.labels.recommendationYouMightLike;
377
+ case "pin": return t.labels.recommendationFeatured;
378
+ default: return "";
379
+ }
380
+ }
381
+ function s(e) {
382
+ return v.get(i).find((t) => t.eventId === e.eventID);
383
+ }
384
+ function c(e) {
385
+ let n = s(e)?.url;
386
+ if (n) {
387
+ window.location.assign(n);
388
+ return;
389
+ }
390
+ t.onselect?.(e);
391
+ }
392
+ var l = v.comment(), h = v.first_child(l), g = (e) => {
393
+ var n = U(), i = v.child(n), s = v.child(i);
394
+ m(s, {
395
+ size: "xl",
396
+ weight: "semibold",
397
+ children: (e, n) => {
398
+ v.next();
399
+ var r = v.text();
400
+ v.template_effect(() => v.set_text(r, t.labels.recommendationsHeading)), v.append(e, r);
401
+ },
402
+ $$slots: { default: !0 }
403
+ }), v.reset(i);
404
+ var l = v.sibling(i, 2);
405
+ u(l, {
406
+ cols: "auto",
407
+ minWidth: "240px",
408
+ gap: "6",
409
+ children: (e, n) => {
410
+ var i = v.comment(), s = v.first_child(i);
411
+ v.each(s, 17, () => v.get(a), (e) => e.event.eventID, (e, n) => {
412
+ let i = v.derived(() => {
413
+ let { pillEvents: e, ...i } = p(v.get(n), t.labels, r());
414
+ return {
415
+ _pillEvents: e,
416
+ card: i
417
+ };
418
+ });
419
+ var a = H(), s = v.child(a);
420
+ f(s, v.spread_props(() => v.get(i).card, {
421
+ layout: "vertical",
422
+ density: "standard",
423
+ get placeholderImage() {
424
+ return t.placeholderImage;
425
+ },
426
+ onclick: () => c(v.get(n).event)
427
+ }));
428
+ var l = v.sibling(s, 2), u = (e) => {
429
+ var t = V(), r = v.child(t, !0);
430
+ v.reset(t), v.template_effect((e) => v.set_text(r, e), [() => o(v.get(n).event)]), v.append(e, t);
431
+ }, d = v.derived(() => o(v.get(n).event));
432
+ v.if(l, (e) => {
433
+ v.get(d) && e(u);
434
+ }), v.reset(a), v.append(e, a);
435
+ }), v.append(e, i);
436
+ },
437
+ $$slots: { default: !0 }
438
+ }), v.reset(n), v.append(e, n);
439
+ };
440
+ v.if(h, (e) => {
441
+ v.get(a).length > 0 && e(g);
442
+ }), v.append(e, l), v.pop();
443
+ }
444
+ //#endregion
445
+ export { F as a, I as i, R as n, S as o, P as r, W as t };
@@ -1,15 +1,15 @@
1
- import { t as e } from "./WarningCircleIcon-SBK0lpqR.js";
2
- import { J as t, r as n } from "./constants-rFRS1lF-.js";
3
- import { t as r } from "./Badge-DsuBHDo4.js";
4
- import { t as i } from "./defaultLabels-CpurXn7c.js";
5
- import { u as a } from "./__SKIP_PATHS__-B3-kZeYN.js";
1
+ import { t as e } from "./WarningCircleIcon-AuYbQdPU.js";
2
+ import { n as t, q as n } from "./scarcity-Ccj5RlrR.js";
3
+ import { t as r } from "./Badge-DCHGGod2.js";
4
+ import { t as i } from "./defaultLabels-CXCsTwix.js";
5
+ import { u as a } from "./__SKIP_PATHS__-B3OPLTzA.js";
6
6
  import "svelte/internal/disclose-version";
7
7
  import * as o from "svelte/internal/client";
8
8
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/SubtractIcon.svelte
9
9
  var s = o.from_svg("<path d=\"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z\"></path>"), c = o.from_svg("<line x1=\"40\" y1=\"128\" x2=\"216\" y2=\"128\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line>"), l = o.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
10
- function u(e, n) {
11
- o.push(n, !0);
12
- let r = o.prop(n, "size", 3, "24"), i = o.prop(n, "color", 3, "currentColor"), a = o.prop(n, "class", 3, ""), u = t(), d = o.derived(() => n.weight ?? u?.weight ?? "regular");
10
+ function u(e, t) {
11
+ o.push(t, !0);
12
+ let r = o.prop(t, "size", 3, "24"), i = o.prop(t, "color", 3, "currentColor"), a = o.prop(t, "class", 3, ""), u = n(), d = o.derived(() => t.weight ?? u?.weight ?? "regular");
13
13
  var f = l();
14
14
  let p;
15
15
  var m = o.child(f), h = (e) => {
@@ -37,9 +37,9 @@ function m(e) {
37
37
  (p[e] ??= a(f))(e, { politeness: "polite" });
38
38
  }
39
39
  var h = o.from_html("<span><!> </span>");
40
- function g(t, a) {
40
+ function g(n, a) {
41
41
  o.push(a, !0);
42
- let s = o.prop(a, "context", 3, "browse"), c = o.prop(a, "variant", 3, "default"), l = o.prop(a, "isFree", 3, !1), u = o.prop(a, "labels", 3, i), d = o.derived(() => n(a.remaining, a.total)), f = o.derived(() => {
42
+ let s = o.prop(a, "context", 3, "browse"), c = o.prop(a, "variant", 3, "default"), l = o.prop(a, "isFree", 3, !1), u = o.prop(a, "labels", 3, i), d = o.derived(() => t(a.remaining, a.total)), f = o.derived(() => {
43
43
  let e = u().statusSoldOut || "Sold out", t = u().statusSellingFast || "Selling fast", n = u().scarcityOnlyNLeft || "Only {remaining} left";
44
44
  return o.get(d) === "sold-out" ? {
45
45
  type: "sold-out",
@@ -110,7 +110,7 @@ function g(t, a) {
110
110
  };
111
111
  o.if(y, (e) => {
112
112
  o.get(f) && e(b);
113
- }), o.append(t, v), o.pop();
113
+ }), o.append(n, v), o.pop();
114
114
  }
115
115
  //#endregion
116
116
  export { d as n, u as r, g as t };
@@ -1,8 +1,8 @@
1
- import { x as e } from "./Button-CxQO7vwF.js";
2
- import { t } from "./Event-WtVZMQfA.js";
3
- import { i as n } from "./shareCopyFeedback.svelte-oxKGmiOe.js";
4
- import { n as r } from "./ScarcityBadge-B4e3Z_Oz.js";
5
- import { t as i } from "./__SKIP_PATHS__-B3-kZeYN.js";
1
+ import { E as e } from "./Button-vmWb6wKc.js";
2
+ import { t } from "./Event-B4x0sGkc.js";
3
+ import { a as n } from "./RecommendationsRail-8AVZ0aLE.js";
4
+ import { n as r } from "./ScarcityBadge-DakRfDx4.js";
5
+ import { t as i } from "./__SKIP_PATHS__-B3OPLTzA.js";
6
6
  import "svelte/internal/disclose-version";
7
7
  import * as a from "svelte/internal/client";
8
8
  //#region src/components/Views/SeriesPage.svelte
@@ -1,5 +1,5 @@
1
- import { C as e, p as t } from "./Button-CxQO7vwF.js";
2
- import { i as n } from "./Badge-DsuBHDo4.js";
1
+ import { O as e, v as t } from "./Button-vmWb6wKc.js";
2
+ import { i as n } from "./Badge-DCHGGod2.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