@getmicdrop/venue-calendar 4.3.23 → 4.3.25

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 (106) hide show
  1. package/dist/{ArrowLeftIcon-I5Ui2MMv.js → ArrowLeftIcon-BEoyQzGt.js} +1 -1
  2. package/dist/{BlockPlaceholder-CwJDSlRr.js → BlockPlaceholder-BEiQTRGx.js} +1 -1
  3. package/dist/{Calendar-BDxdp1v2.js → Calendar-iTWNcPZK.js} +236 -230
  4. package/dist/{CalendarFoundryView-BhyEWlgT.js → CalendarFoundryView-CdpyX54O.js} +67 -63
  5. package/dist/{CalendarIcon-iKBZIhcT.js → CalendarIcon-DxOagkl5.js} +1 -1
  6. package/dist/CartView-DSSU-0-_.js +2245 -0
  7. package/dist/{Checkout-BDKHhmry.js → Checkout-7yLVA4hl.js} +247 -247
  8. package/dist/Checkout-CSLSP9pn.js +1845 -0
  9. package/dist/{CheckoutTimer-Bq2I13Ae.js → CheckoutTimer-Dxct5HmQ.js} +5 -5
  10. package/dist/{ChevronDownIcon-BfAxe9v2.js → ChevronDownIcon-DIQAmQyH.js} +1 -1
  11. package/dist/{ClockIcon-nFiAeDJe.js → ClockIcon-CVPj8q7F.js} +1 -1
  12. package/dist/{CloseIcon-DvKvCZWt.js → CloseIcon-BQm8Xs1P.js} +1 -1
  13. package/dist/{CollectionView-Bec8fJQA.js → CollectionView-Ts2WvCFr.js} +6 -6
  14. package/dist/{Event-K1P6JhKj.js → Event-DX0I8oGA.js} +658 -617
  15. package/dist/{EventPage-Yvui8CAC.js → EventPage-DR1G4PGV.js} +295 -262
  16. package/dist/{Input-CwFaXbO6.js → Input-Bpq_mV4s.js} +1 -1
  17. package/dist/{MailIcon-BRBkliz8.js → MailIcon-Wrsqe_uW.js} +1 -1
  18. package/dist/{PasswordInput-DsnCCqzu.js → PasswordInput-eMxkf9IC.js} +1 -1
  19. package/dist/{RecommendationsRail-D_JcJEX0.js → RecommendationsRail-Bxj7iK68.js} +119 -117
  20. package/dist/{ScarcityBadge-Bik8VKze.js → ScarcityBadge-D1IzCyTk.js} +3 -3
  21. package/dist/{SeriesPage-BAqPdsgR.js → SeriesPage-DCTxtpMx.js} +3 -3
  22. package/dist/{Success-CSZ6OYWj.js → Success-Di5qC4Op.js} +17 -17
  23. package/dist/{TagIcon-BlkIiP6A.js → TagIcon-DAHUalS9.js} +1 -1
  24. package/dist/{ViewTicketsEmbed-D1JmKNf1.js → ViewTicketsEmbed-B0agtnsM.js} +33 -33
  25. package/dist/{WarningCircleIcon-mcDExvi6.js → WarningCircleIcon-u-Y8M0N1.js} +1 -1
  26. package/dist/{WarningTriIcon-KJ6AJZhg.js → WarningTriIcon-DroD8KGE.js} +1 -1
  27. package/dist/api/api.cjs +1 -1
  28. package/dist/api/api.mjs +283 -280
  29. package/dist/api/cta.d.ts +4 -0
  30. package/dist/api/types.d.ts +3 -1
  31. package/dist/{api-Bv-5UTvm.js → api-DxEN4thz.js} +79 -79
  32. package/dist/{constants-Dkkkks8H.js → constants-DuFw4kZc.js} +2 -1
  33. package/dist/{copyToClipboard-DGHxXO-R.js → copyToClipboard-CX0-qsMi.js} +1 -1
  34. package/dist/{de-CzupmMIa.js → de-BnjqU4K3.js} +1 -0
  35. package/dist/{defaultLabels-DP7tY9Pg.js → defaultLabels-BgBbv_Mu.js} +243 -234
  36. package/dist/{es-B-vQxM9Z.js → es-BJSttnC2.js} +1 -0
  37. package/dist/{event-transform-CQxO_ACI.js → event-transform-y9eZBvZJ.js} +9 -9
  38. package/dist/{eventStatusStream-CJodQtGK.js → eventStatusStream-uZrfQOCm.js} +1 -1
  39. package/dist/{fr-B2g-kG7i.js → fr-DqfagdtN.js} +1 -0
  40. package/dist/{href-B0sNxICB.js → href-EZSiOTvJ.js} +2 -2
  41. package/dist/{i18n-D6loEmFz.js → i18n-BZAWUSFx.js} +2 -2
  42. package/dist/i18n-CK8CaXLk.js +560 -0
  43. package/dist/{id-Dgu5-FC6.js → id-B1c1JsNl.js} +1 -0
  44. package/dist/{it-C580sMYp.js → it-DiFjoVSe.js} +1 -0
  45. package/dist/{ja-DLki4zXU.js → ja-CfeBSXBd.js} +1 -0
  46. package/dist/{ko-BUcfb1Gi.js → ko-DIjhPkQ7.js} +1 -0
  47. package/dist/locales/4.3.25/flow/de.js +1 -0
  48. package/dist/locales/4.3.25/flow/es.js +1 -0
  49. package/dist/locales/4.3.25/flow/fr.js +1 -0
  50. package/dist/locales/4.3.25/flow/id.js +1 -0
  51. package/dist/locales/4.3.25/flow/it.js +1 -0
  52. package/dist/locales/4.3.25/flow/ja.js +1 -0
  53. package/dist/locales/4.3.25/flow/ko.js +1 -0
  54. package/dist/locales/4.3.25/flow/nl.js +1 -0
  55. package/dist/locales/{4.3.23 → 4.3.25}/flow/pl.js +1 -1
  56. package/dist/locales/4.3.25/flow/pt-br.js +1 -0
  57. package/dist/locales/{4.3.23 → 4.3.25}/flow/tr.js +1 -1
  58. package/dist/locales/4.3.25/flow/zh.js +1 -0
  59. package/dist/{navigation-CJ403ByO.js → navigation-Dh-hGmN9.js} +2 -2
  60. package/dist/{nl-CivAQA0D.js → nl-DH8ATeT-.js} +1 -0
  61. package/dist/{order-totals-sQNKjXcZ.js → order-totals-CfYOfTyw.js} +4 -4
  62. package/dist/{orders-D1dybiYD.js → orders-BQRru8sl.js} +3 -3
  63. package/dist/{phoneUtils-B_9g7GJj.js → phoneUtils-DK8ry3Ji.js} +1 -1
  64. package/dist/{pixels-BMkfBngV.js → pixels-CAgpvPd8.js} +2 -2
  65. package/dist/{pl-C5VwFH2B.js → pl-DHSf0Tay.js} +1 -0
  66. package/dist/{promo-lMaGYLo-.js → promo-aAygcEn7.js} +3 -3
  67. package/dist/{pt-br-B0w9dhVB.js → pt-br-bUE81YH0.js} +1 -0
  68. package/dist/{scarcity-CZEPC-UR.js → scarcity-Dgvp7aCF.js} +67 -67
  69. package/dist/seo/seo.cjs +1 -1
  70. package/dist/seo/seo.mjs +50 -43
  71. package/dist/{serverTotals-BWRzJsle.js → serverTotals-96Luutwl.js} +8 -8
  72. package/dist/{showcase-state-options-CEKhIK66.js → showcase-state-options-DcNFRj34.js} +1 -1
  73. package/dist/{to-event-card-props-DUWp0etY.js → to-event-card-props-CgUk4zJ7.js} +31 -29
  74. package/dist/{tr-LGkP5gpA.js → tr--NLWW7qi.js} +1 -0
  75. package/dist/types/index.d.ts +6 -0
  76. package/dist/{utils-CuLU8uyA.js → utils-CiFOOjQd.js} +72 -69
  77. package/dist/venue-calendar.es.js +1228 -1164
  78. package/dist/venue-calendar.iife.js +52 -52
  79. package/dist/venue-calendar.umd.js +49 -49
  80. package/dist/{zh-D2ZAdq3T.js → zh-ZYCR67Kf.js} +1 -0
  81. package/package.json +2 -2
  82. package/dist/CartView-9PGGgyk_.js +0 -2245
  83. package/dist/Checkout-BP3JTPsO.js +0 -1845
  84. package/dist/i18n-CMpXpjPv.js +0 -544
  85. package/dist/locales/4.3.23/flow/de.js +0 -1
  86. package/dist/locales/4.3.23/flow/es.js +0 -1
  87. package/dist/locales/4.3.23/flow/fr.js +0 -1
  88. package/dist/locales/4.3.23/flow/id.js +0 -1
  89. package/dist/locales/4.3.23/flow/it.js +0 -1
  90. package/dist/locales/4.3.23/flow/ja.js +0 -1
  91. package/dist/locales/4.3.23/flow/ko.js +0 -1
  92. package/dist/locales/4.3.23/flow/nl.js +0 -1
  93. package/dist/locales/4.3.23/flow/pt-br.js +0 -1
  94. package/dist/locales/4.3.23/flow/zh.js +0 -1
  95. /package/dist/locales/{4.3.23 → 4.3.25}/main/de.js +0 -0
  96. /package/dist/locales/{4.3.23 → 4.3.25}/main/es.js +0 -0
  97. /package/dist/locales/{4.3.23 → 4.3.25}/main/fr.js +0 -0
  98. /package/dist/locales/{4.3.23 → 4.3.25}/main/id.js +0 -0
  99. /package/dist/locales/{4.3.23 → 4.3.25}/main/it.js +0 -0
  100. /package/dist/locales/{4.3.23 → 4.3.25}/main/ja.js +0 -0
  101. /package/dist/locales/{4.3.23 → 4.3.25}/main/ko.js +0 -0
  102. /package/dist/locales/{4.3.23 → 4.3.25}/main/nl.js +0 -0
  103. /package/dist/locales/{4.3.23 → 4.3.25}/main/pl.js +0 -0
  104. /package/dist/locales/{4.3.23 → 4.3.25}/main/pt-br.js +0 -0
  105. /package/dist/locales/{4.3.23 → 4.3.25}/main/tr.js +0 -0
  106. /package/dist/locales/{4.3.23 → 4.3.25}/main/zh.js +0 -0
@@ -1,5 +1,5 @@
1
1
  import { C as e, O as t, S as n, T as r, _ as i, b as a } from "./Button-klwKgfhG.js";
2
- import { x as o } from "./scarcity-CZEPC-UR.js";
2
+ import { x as o } from "./scarcity-Dgvp7aCF.js";
3
3
  import { d as s, n as c, r as l } from "./z-index-BgKs9X9U.js";
4
4
  import { t as u } from "./RequiredIndicator-CYcnRFsA.js";
5
5
  import "svelte/internal/disclose-version";
@@ -1,4 +1,4 @@
1
- import { q as e } from "./scarcity-CZEPC-UR.js";
1
+ import { q as e } from "./scarcity-Dgvp7aCF.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 { O as e } from "./Button-klwKgfhG.js";
2
- import { t } from "./Input-CwFaXbO6.js";
2
+ import { t } from "./Input-Bpq_mV4s.js";
3
3
  import { d as n, n as r, r as i } from "./z-index-BgKs9X9U.js";
4
4
  import { t as a } from "./lazyOnce-CCfEO1xG.js";
5
5
  import "svelte/internal/disclose-version";
@@ -1,36 +1,37 @@
1
- import { i as e, p as t, q as n } from "./scarcity-CZEPC-UR.js";
2
- import { t as r } from "./copyToClipboard-DGHxXO-R.js";
3
- import { D as i, b as a, h as o, x as s } from "./defaultLabels-DP7tY9Pg.js";
4
- import { I as c, R as l } from "./orders-D1dybiYD.js";
5
- import { c as u, i as d, s as f, t as p } from "./to-event-card-props-DUWp0etY.js";
1
+ import { i as e, p as t, q as n } from "./scarcity-Dgvp7aCF.js";
2
+ import { t as r } from "./copyToClipboard-CX0-qsMi.js";
3
+ import { A as i, C as a, g as o, x as s } from "./defaultLabels-BgBbv_Mu.js";
4
+ import { I as c, R as l } from "./orders-BQRru8sl.js";
5
+ import { c as u, i as d, s as f, t as p } from "./to-event-card-props-CgUk4zJ7.js";
6
6
  import { t as m } from "./Heading-D6bWtGZA.js";
7
- import { d as h, l as g } from "./navigation-CJ403ByO.js";
8
- import { t as _ } from "./venue-CBos8YTa.js";
7
+ import { d as h, l as g } from "./navigation-Dh-hGmN9.js";
8
+ import { O as _ } from "./api-DxEN4thz.js";
9
+ import { t as v } from "./venue-CBos8YTa.js";
9
10
  import "svelte/internal/disclose-version";
10
- import * as v from "svelte/internal/client";
11
+ import * as y from "svelte/internal/client";
11
12
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ExportIcon.svelte
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();
13
+ var b = y.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>"), x = y.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), S = y.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
14
+ function C(e, t) {
15
+ y.push(t, !0);
16
+ let r = y.prop(t, "size", 3, "24"), i = y.prop(t, "color", 3, "currentColor"), a = y.prop(t, "class", 3, ""), o = n(), s = y.derived(() => t.weight ?? o?.weight ?? "regular");
17
+ var c = S();
17
18
  let l;
18
- var u = v.child(c), d = (e) => {
19
- var t = y();
20
- v.append(e, t);
21
- }, f = (e) => {
19
+ var u = y.child(c), d = (e) => {
22
20
  var t = b();
23
- v.next(2), v.append(e, t);
21
+ y.append(e, t);
22
+ }, f = (e) => {
23
+ var t = x();
24
+ y.next(2), y.append(e, t);
24
25
  };
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();
26
+ y.if(u, (e) => {
27
+ y.get(s) === "fill" ? e(d) : e(f, -1);
28
+ }), y.reset(c), y.template_effect(() => {
29
+ y.set_class(c, 0, y.clsx(a())), y.set_attribute(c, "width", r()), y.set_attribute(c, "height", r()), l = y.set_style(c, "", l, { color: i() === "currentColor" ? void 0 : i() });
30
+ }), y.append(e, c), y.pop();
30
31
  }
31
32
  //#endregion
32
33
  //#region src/lib/api/transformers/address.ts
33
- function C(e) {
34
+ function w(e) {
34
35
  if (!e) return [];
35
36
  let t = e.split(",").map((e) => e.trim());
36
37
  if (t.length < 2) return [e];
@@ -41,17 +42,17 @@ function C(e) {
41
42
  }
42
43
  return [t[0], t.slice(1).join(", ")];
43
44
  }
44
- function w(e) {
45
+ function T(e) {
45
46
  return e ? `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e)}` : "";
46
47
  }
47
48
  //#endregion
48
49
  //#region src/lib/api/transformers/faq.ts
49
- var T = "FAQ", E = 40, D = /^q\s*[:.)-]\s*/i, O = /^a\s*[:.)-]\s*/i;
50
- function k(e) {
50
+ var E = "FAQ", D = 40, O = /^q\s*[:.)-]\s*/i, k = /^a\s*[:.)-]\s*/i;
51
+ function A(e) {
51
52
  if (Array.isArray(e)) return e.map((e) => ({
52
53
  question: String(e?.question ?? "").trim(),
53
54
  answer: String(e?.answer ?? "").trim()
54
- })).filter((e) => e.question || e.answer).slice(0, E);
55
+ })).filter((e) => e.question || e.answer).slice(0, D);
55
56
  if (typeof e != "string") return [];
56
57
  let t = e.trim();
57
58
  if (!t) return [];
@@ -59,33 +60,33 @@ function k(e) {
59
60
  if (n.length === 0) return [];
60
61
  let r = [], i = null;
61
62
  for (let e of n) {
62
- let t = D.test(e), n = O.test(e);
63
+ let t = O.test(e), n = k.test(e);
63
64
  if (t || !n && e.endsWith("?")) {
64
65
  i && r.push(i), i = {
65
- question: e.replace(D, "").trim(),
66
+ question: e.replace(O, "").trim(),
66
67
  answer: ""
67
68
  };
68
69
  continue;
69
70
  }
70
- let a = e.replace(O, "").trim();
71
+ let a = e.replace(k, "").trim();
71
72
  if (!i) {
72
73
  i = {
73
- question: T,
74
+ question: E,
74
75
  answer: a
75
76
  };
76
77
  continue;
77
78
  }
78
79
  i.answer = i.answer ? `${i.answer}\n${a}` : a;
79
80
  }
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,
81
+ return i && r.push(i), r.some((e) => e.question !== E) ? r.filter((e) => e.question || e.answer).slice(0, D) : [{
82
+ question: E,
82
83
  answer: n.join("\n")
83
84
  }];
84
85
  }
85
86
  //#endregion
86
87
  //#region src/lib/api/transformers/series.ts
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) => {
88
+ function j(t) {
89
+ let n = t, r = a(t.timeZone || n.timezone || n.time_zone || "UTC"), i = h(t.image || "", { cdn: !0 }), o = (t.occurrences || []).map((e) => {
89
90
  let t = e.venue, n = t ? [t.name, t.stageName].filter(Boolean).join(" — ") : "", r = t ? t.googleLocationNameCache || [
90
91
  t.address,
91
92
  t.city,
@@ -102,7 +103,7 @@ function A(t) {
102
103
  ...n ? { venueName: n } : {},
103
104
  ...r ? { venueAddress: r } : {}
104
105
  };
105
- }), o = t.occurrences?.[0], c = o?.startDateTime ? e(o.startDateTime, r) : "", l = k(t.venue?.faq), u = (t.performers || []).map((e, t) => ({
106
+ }), s = t.occurrences?.[0], c = s?.startDateTime ? e(s.startDateTime, r) : "", l = A(t.venue?.faq), u = (t.performers || []).map((e, t) => ({
106
107
  id: t + 1,
107
108
  displayName: e.displayName || [e.firstName, e.lastName].filter(Boolean).join(" "),
108
109
  profileImage: e.profileImage || void 0
@@ -113,8 +114,8 @@ function A(t) {
113
114
  slug: "",
114
115
  description: t.description || t.eventSummary || "",
115
116
  date: c,
116
- startDateTime: o?.startDateTime || "",
117
- endDateTime: o?.endDateTime || "",
117
+ startDateTime: s?.startDateTime || "",
118
+ endDateTime: s?.endDateTime || "",
118
119
  doorsOpenTime: "",
119
120
  timezone: r,
120
121
  imageUrl: i,
@@ -131,28 +132,29 @@ function A(t) {
131
132
  tickets: [],
132
133
  faqs: l,
133
134
  disclaimer: t.venue?.disclaimer || void 0,
134
- ..._(t.venue),
135
+ ...v(t.venue),
135
136
  status: "on_sale",
136
137
  eventSeriesId: t.id,
137
- seriesOccurrences: a,
138
+ seriesOccurrences: o,
138
139
  isPasswordProtected: !1,
139
140
  isRegistrationEvent: !1,
140
141
  totalTicketsRemaining: 0,
141
142
  totalTicketsCapacity: 0,
142
- venueAddressLines: C(d),
143
- googleMapsUrl: w(d)
143
+ venueAddressLines: w(d),
144
+ googleMapsUrl: T(d)
144
145
  };
145
146
  }
146
147
  //#endregion
147
148
  //#region src/lib/api/transformers/collection.ts
148
- function j(e) {
149
+ function M(e) {
149
150
  let t = (e.events || []).map((e) => ({
150
151
  id: e.id,
151
152
  name: e.title || "",
152
153
  slug: e.slug || "",
153
154
  image: h(e.image || "", { cdn: !0 }),
154
155
  startDateTime: e.startDateTime || "",
155
- status: e.status || "on_sale"
156
+ status: e.status || "on_sale",
157
+ timezone: e.timeZone || e.timezone || e.venue?.timeZone || e.venue?.timezone || ""
156
158
  })), n = h(e.coverImage || "", { cdn: !0 });
157
159
  return {
158
160
  id: e.id,
@@ -188,15 +190,15 @@ function j(e) {
188
190
  }
189
191
  //#endregion
190
192
  //#region src/lib/public-calendar-flow/transform.ts
191
- function M(e) {
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;
193
+ function N(e) {
194
+ 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;
193
195
  if (n <= 0) return "sold_out";
194
- let c = a(s);
196
+ let c = s(a);
195
197
  if (c && o(c, t) < 0) return "sales_ended";
196
- let l = a(r);
198
+ let l = s(r);
197
199
  return l && o(l, t) > 0 ? "coming_soon" : "on_sale";
198
200
  }
199
- function N(e, t, n = !1) {
201
+ function P(e, t, n = !1) {
200
202
  let r = (e || "").toLowerCase().replace(/\s+/g, "_");
201
203
  if (r === "cancelled" || r === "canceled") return "cancelled";
202
204
  if (r === "postponed") return "postponed";
@@ -210,8 +212,8 @@ function N(e, t, n = !1) {
210
212
  }
211
213
  return r === "sold_out" || r === "soldout" ? "sold_out" : r === "coming_soon" || r === "comingsoon" ? "coming_soon" : r === "sales_ended" || r === "salesended" ? "sales_ended" : "on_sale";
212
214
  }
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) => ({
215
+ function F(n) {
216
+ let r = g(n), i = r.venue || {}, o = a(r.timeZone || r.timezone || i.timeZone || i.timezone || "UTC"), s = (n.availableTickets || []).map((e) => ({
215
217
  id: e.id || e.ID,
216
218
  name: e.name || e.title || "",
217
219
  description: e.description || void 0,
@@ -221,28 +223,28 @@ function P(n) {
221
223
  quantityTotal: e.totalCapacity ?? e.quantity ?? 0,
222
224
  minPerOrder: e.minPerOrder ?? e.minQuantity ?? 1,
223
225
  maxPerOrder: e.maxPerOrder ?? e.maxQuantity ?? 10,
224
- status: M(e),
226
+ status: N(e),
225
227
  salesStartDate: e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart || void 0,
226
228
  salesEndDate: e.salesEnd || e.saleEnd || e.onSaleEnd || void 0,
227
229
  isDonation: e.type === 2 || e.ticketType === 2 || e.isDonation === !0,
228
- isHidden: e.visibility === 2 || e.isHidden === !0,
230
+ isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= _.HIDDEN,
229
231
  ticketType: e.type || e.ticketType || void 0,
230
232
  sectionName: e.sectionName || e.section || void 0
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 = {
233
+ })), c = s.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 = P(r.status, s, d), p = n.image || n.imageUrl || n.image_url || "", m = p.startsWith("http") ? p : h(p, { cdn: !0 }), y = {
232
234
  id: i.id || i.ID || 0,
233
235
  name: i.name || i.googleLocationNameCache || "",
234
236
  address: i.address || i.googleLocationNameCache || "",
235
- timezone: a,
237
+ timezone: o,
236
238
  serviceFeePercentage: i.serviceFeePercentage ?? i.fee ?? 0,
237
239
  serviceFeeCents: i.serviceFeeCents == null ? 0 : i.serviceFeeCents,
238
240
  taxPercentage: i.taxPercentage ?? i.tax ?? 0,
239
241
  contactEmail: i.contactEmail || i.email || void 0
240
- }, y = (r.performers || []).map((e) => ({
242
+ }, b = (r.performers || []).map((e) => ({
241
243
  id: e.id || e.ID,
242
244
  displayName: e.displayName || e.name || "",
243
245
  profileImage: e.avatar || e.profileImage || void 0,
244
246
  role: e.role || void 0
245
- })), b = r.faqs ? k(r.faqs) : k(i.faq), x = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
247
+ })), x = r.faqs ? A(r.faqs) : A(i.faq), S = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
246
248
  id: e.id ?? e.eventId ?? t + 1,
247
249
  slug: e.slug || "",
248
250
  startDateTime: e.startDateTime || e.startTime || "",
@@ -250,30 +252,30 @@ function P(n) {
250
252
  status: e.ctaState?.reason === "sold_out" ? "sold_out" : "on_sale",
251
253
  ctaText: e.ctaState?.text || "Get tickets",
252
254
  ctaDisabled: e.ctaState?.disabled || !1
253
- })), S = r.startDateTime ? e(r.startDateTime, a) : "";
255
+ })), C = r.startDateTime ? e(r.startDateTime, o) : "";
254
256
  return {
255
257
  id: r.id,
256
258
  title: r.title || "",
257
259
  slug: r.slug || "",
258
260
  description: r.description || r.eventSummary || "",
259
- date: S,
261
+ date: C,
260
262
  startDateTime: r.startDateTime || "",
261
263
  endDateTime: r.endDateTime || "",
262
264
  doorsOpenTime: r.doorsOpenTime || "",
263
- timezone: a,
265
+ timezone: o,
264
266
  imageUrl: m,
265
- venue: v,
266
- performers: y,
267
- tickets: o,
267
+ venue: y,
268
+ performers: b,
269
+ tickets: s,
268
270
  ...Array.isArray(n.addOns) && n.addOns.length > 0 ? { addOns: n.addOns } : {},
269
- faqs: b,
271
+ faqs: x,
270
272
  disclaimer: r.disclaimer || i.disclaimer || void 0,
271
- ..._(i),
273
+ ...v(i),
272
274
  status: f,
273
275
  salesStatus: r.salesStatus || void 0,
274
276
  ...d ? { hasPurchasableHiddenTickets: !0 } : {},
275
277
  eventSeriesId: r.eventSeriesId || void 0,
276
- seriesOccurrences: x.length ? x : void 0,
278
+ seriesOccurrences: S.length ? S : void 0,
277
279
  isPasswordProtected: r.hasPassword === !0 || !!r.password,
278
280
  isRegistrationEvent: r.ticketType === 1 || r.eventTicketingType === 1,
279
281
  totalTicketsRemaining: l,
@@ -288,19 +290,19 @@ function P(n) {
288
290
  summary: r.eventSummary || void 0,
289
291
  postSalesMessage: r.postSalesMessage || void 0,
290
292
  collectionId: r.collectionId || void 0,
291
- venueAddressLines: C(i.address || i.googleLocationNameCache || ""),
292
- googleMapsUrl: w(i.address || i.googleLocationNameCache || "")
293
+ venueAddressLines: w(i.address || i.googleLocationNameCache || ""),
294
+ googleMapsUrl: T(i.address || i.googleLocationNameCache || "")
293
295
  };
294
296
  }
295
- function F(e) {
296
- return A(e);
297
- }
298
297
  function I(e) {
299
298
  return j(e);
300
299
  }
300
+ function L(e) {
301
+ return M(e);
302
+ }
301
303
  //#endregion
302
304
  //#region src/lib/public-calendar-flow/shareEventLink.ts
303
- async function L(e) {
305
+ async function R(e) {
304
306
  if (typeof navigator < "u" && typeof navigator.share == "function") try {
305
307
  return await navigator.share({ url: e }), "shared";
306
308
  } catch (e) {
@@ -310,21 +312,21 @@ async function L(e) {
310
312
  }
311
313
  //#endregion
312
314
  //#region src/lib/public-calendar-flow/shareCopyFeedback.svelte.ts
313
- function R() {
314
- let e = v.state("idle"), t = v.state(""), n;
315
+ function z() {
316
+ let e = y.state("idle"), t = y.state(""), n;
315
317
  async function r(r) {
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));
318
+ let i = await R(r);
319
+ i === "copied" ? (y.set(t, ""), y.set(e, "copied"), clearTimeout(n), n = setTimeout(() => y.set(e, "idle"), 2500)) : i === "failed" && (clearTimeout(n), y.set(e, "failed"), y.set(t, r, !0));
318
320
  }
319
321
  function i() {
320
322
  clearTimeout(n);
321
323
  }
322
324
  return {
323
325
  get copyState() {
324
- return v.get(e);
326
+ return y.get(e);
325
327
  },
326
328
  get copyFailedUrl() {
327
- return v.get(t);
329
+ return y.get(t);
328
330
  },
329
331
  share: r,
330
332
  dispose: i
@@ -332,12 +334,12 @@ function R() {
332
334
  }
333
335
  //#endregion
334
336
  //#region src/lib/api/recommendations.ts
335
- async function z(e, t = "event_page", n) {
337
+ async function B(e, t = "event_page", n) {
336
338
  return e ? (await l(`${c()}/events/${e}/recommendations?surface=${t}`, { widgetKey: n }))?.recommendations ?? [] : [];
337
339
  }
338
340
  //#endregion
339
341
  //#region src/lib/public-calendar-flow/recommendation-cards.ts
340
- function B(t) {
342
+ function V(t) {
341
343
  return t.filter((e) => !!e.startsAt).map((t) => ({
342
344
  eventID: t.eventId,
343
345
  name: t.title,
@@ -353,19 +355,19 @@ function B(t) {
353
355
  }
354
356
  //#endregion
355
357
  //#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(() => {
358
+ var H = y.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>"), U = y.from_html("<div class=\"flex flex-col gap-2\"><!> <!></div>"), W = y.from_html("<section data-testid=\"recommendations-rail\"><div class=\"mb-4\"><!></div> <!></section>");
359
+ function G(e, t) {
360
+ y.push(t, !0);
361
+ let n = y.prop(t, "surface", 3, "event_page"), r = y.prop(t, "locale", 3, "en"), i = y.state(y.proxy([]));
362
+ y.user_effect(() => {
361
363
  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
+ return B(e, n(), t.widgetKey).then((n) => {
365
+ r && e === t.eventId && y.set(i, n, !0);
364
366
  }), () => {
365
367
  r = !1;
366
368
  };
367
369
  });
368
- let a = v.derived(() => d(B(v.get(i))));
370
+ let a = y.derived(() => d(V(y.get(i))));
369
371
  function o(e) {
370
372
  let n = s(e);
371
373
  if (!n) return "";
@@ -379,7 +381,7 @@ function W(e, t) {
379
381
  }
380
382
  }
381
383
  function s(e) {
382
- return v.get(i).find((t) => t.eventId === e.eventID);
384
+ return y.get(i).find((t) => t.eventId === e.eventID);
383
385
  }
384
386
  function c(e) {
385
387
  let n = s(e)?.url;
@@ -389,57 +391,57 @@ function W(e, t) {
389
391
  }
390
392
  t.onselect?.(e);
391
393
  }
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
+ var l = y.comment(), h = y.first_child(l), g = (e) => {
395
+ var n = W(), i = y.child(n), s = y.child(i);
394
396
  m(s, {
395
397
  size: "xl",
396
398
  weight: "semibold",
397
399
  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);
400
+ y.next();
401
+ var r = y.text();
402
+ y.template_effect(() => y.set_text(r, t.labels.recommendationsHeading)), y.append(e, r);
401
403
  },
402
404
  $$slots: { default: !0 }
403
- }), v.reset(i);
404
- var l = v.sibling(i, 2);
405
+ }), y.reset(i);
406
+ var l = y.sibling(i, 2);
405
407
  u(l, {
406
408
  cols: "auto",
407
409
  minWidth: "240px",
408
410
  gap: "6",
409
411
  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());
412
+ var i = y.comment(), s = y.first_child(i);
413
+ y.each(s, 17, () => y.get(a), (e) => e.event.eventID, (e, n) => {
414
+ let i = y.derived(() => {
415
+ let { pillEvents: e, ...i } = p(y.get(n), t.labels, r());
414
416
  return {
415
417
  _pillEvents: e,
416
418
  card: i
417
419
  };
418
420
  });
419
- var a = H(), s = v.child(a);
420
- f(s, v.spread_props(() => v.get(i).card, {
421
+ var a = U(), s = y.child(a);
422
+ f(s, y.spread_props(() => y.get(i).card, {
421
423
  layout: "vertical",
422
424
  density: "standard",
423
425
  get placeholderImage() {
424
426
  return t.placeholderImage;
425
427
  },
426
- onclick: () => c(v.get(n).event)
428
+ onclick: () => c(y.get(n).event)
427
429
  }));
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);
430
+ var l = y.sibling(s, 2), u = (e) => {
431
+ var t = H(), r = y.child(t, !0);
432
+ y.reset(t), y.template_effect((e) => y.set_text(r, e), [() => o(y.get(n).event)]), y.append(e, t);
433
+ }, d = y.derived(() => o(y.get(n).event));
434
+ y.if(l, (e) => {
435
+ y.get(d) && e(u);
436
+ }), y.reset(a), y.append(e, a);
437
+ }), y.append(e, i);
436
438
  },
437
439
  $$slots: { default: !0 }
438
- }), v.reset(n), v.append(e, n);
440
+ }), y.reset(n), y.append(e, n);
439
441
  };
440
- v.if(h, (e) => {
441
- v.get(a).length > 0 && e(g);
442
- }), v.append(e, l), v.pop();
442
+ y.if(h, (e) => {
443
+ y.get(a).length > 0 && e(g);
444
+ }), y.append(e, l), y.pop();
443
445
  }
444
446
  //#endregion
445
- export { F as a, I as i, R as n, S as o, P as r, W as t };
447
+ export { I as a, L as i, z as n, C as o, F as r, G as t };
@@ -1,7 +1,7 @@
1
- import { t as e } from "./WarningCircleIcon-mcDExvi6.js";
2
- import { n as t, q as n } from "./scarcity-CZEPC-UR.js";
1
+ import { t as e } from "./WarningCircleIcon-u-Y8M0N1.js";
2
+ import { n as t, q as n } from "./scarcity-Dgvp7aCF.js";
3
3
  import { t as r } from "./Badge-n7TfNjln.js";
4
- import { t as i } from "./defaultLabels-DP7tY9Pg.js";
4
+ import { t as i } from "./defaultLabels-BgBbv_Mu.js";
5
5
  import { r as a } from "./__SKIP_PATHS__-BQgiZG5h.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-K1P6JhKj.js";
3
- import { a as n } from "./RecommendationsRail-D_JcJEX0.js";
4
- import { n as r } from "./ScarcityBadge-Bik8VKze.js";
2
+ import { t } from "./Event-DX0I8oGA.js";
3
+ import { a as n } from "./RecommendationsRail-Bxj7iK68.js";
4
+ import { n as r } from "./ScarcityBadge-D1IzCyTk.js";
5
5
  import { t as i } from "./__SKIP_PATHS__-BQgiZG5h.js";
6
6
  import "svelte/internal/disclose-version";
7
7
  import * as a from "svelte/internal/client";
@@ -1,24 +1,24 @@
1
1
  import { E as e } from "./Button-klwKgfhG.js";
2
- import { l as t, q as n, r } from "./scarcity-CZEPC-UR.js";
3
- import { t as i } from "./ArrowLeftIcon-I5Ui2MMv.js";
4
- import { t as a } from "./CalendarIcon-iKBZIhcT.js";
5
- import { t as o } from "./ChevronDownIcon-BfAxe9v2.js";
6
- import { n as s, t as c } from "./MailIcon-BRBkliz8.js";
7
- import { n as l, o as u, r as d, t as f } from "./RecommendationsRail-D_JcJEX0.js";
8
- import { n as p } from "./copyToClipboard-DGHxXO-R.js";
9
- import { B as m, R as h, i as g } from "./defaultLabels-DP7tY9Pg.js";
10
- import { B as _, J as v, Q as y, X as b, g as x, s as S } from "./orders-D1dybiYD.js";
2
+ import { l as t, q as n, r } from "./scarcity-Dgvp7aCF.js";
3
+ import { t as i } from "./ArrowLeftIcon-BEoyQzGt.js";
4
+ import { t as a } from "./CalendarIcon-DxOagkl5.js";
5
+ import { t as o } from "./ChevronDownIcon-DIQAmQyH.js";
6
+ import { n as s, t as c } from "./MailIcon-Wrsqe_uW.js";
7
+ import { n as l, o as u, r as d, t as f } from "./RecommendationsRail-Bxj7iK68.js";
8
+ import { n as p } from "./copyToClipboard-CX0-qsMi.js";
9
+ import { U as m, V as h, i as g } from "./defaultLabels-BgBbv_Mu.js";
10
+ import { B as _, J as v, Q as y, X as b, g as x, s as S } from "./orders-BQRru8sl.js";
11
11
  import { n as C, t as w } from "./__SKIP_PATHS__-BQgiZG5h.js";
12
12
  import { n as T, t as E } from "./Heading-D6bWtGZA.js";
13
13
  import { t as D } from "./Text-CqjLjIF8.js";
14
- import { a as O, o as k } from "./navigation-CJ403ByO.js";
15
- import "./api-Bv-5UTvm.js";
16
- import { c as A, r as j } from "./pixels-BMkfBngV.js";
17
- import { i as M, n as N, t as P } from "./i18n-CMpXpjPv.js";
18
- import { n as ee, t as F } from "./i18n-D6loEmFz.js";
19
- import { S as I, d as L, l as R, n as z } from "./utils-CuLU8uyA.js";
20
- import { n as B, t as te } from "./constants-Dkkkks8H.js";
21
- import { a as V, i as H, n as ne, o as re, r as U, s as W } from "./showcase-state-options-CEKhIK66.js";
14
+ import { a as O, o as k } from "./navigation-Dh-hGmN9.js";
15
+ import "./api-DxEN4thz.js";
16
+ import { c as A, r as j } from "./pixels-CAgpvPd8.js";
17
+ import { i as M, n as N, t as P } from "./i18n-CK8CaXLk.js";
18
+ import { n as ee, t as F } from "./i18n-BZAWUSFx.js";
19
+ import { C as I, d as L, l as R, n as z } from "./utils-CiFOOjQd.js";
20
+ import { n as B, t as te } from "./constants-DuFw4kZc.js";
21
+ import { a as V, i as H, n as ne, o as re, r as U, s as W } from "./showcase-state-options-DcNFRj34.js";
22
22
  import { n as ie, t as ae } from "./buyerEmail-BfCq-gDt.js";
23
23
  import "svelte/internal/disclose-version";
24
24
  import * as G from "svelte/internal/client";
@@ -1,4 +1,4 @@
1
- import { q as e } from "./scarcity-CZEPC-UR.js";
1
+ import { q as e } from "./scarcity-Dgvp7aCF.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